:root {
  color-scheme: light;
  --ink: #112033;
  --muted: #68758a;
  --line: #dfe6ec;
  --soft: #f4f7f9;
  --paper: #ffffff;
  --navy: #071827;
  --navy-2: #0c2537;
  --teal: #17a887;
  --mint: #71e6c1;
  --mint-soft: #e9faf5;
  --blue: #2869d8;
  --danger: #ba3d4f;
  --warning: #c17816;
  --shadow: 0 22px 60px rgba(15, 35, 52, 0.1);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(40, 105, 216, 0.3);
  outline-offset: 2px;
}

a {
  color: inherit;
}

.eyebrow {
  display: inline-block;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.button,
.icon-button,
.text-button {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #05231d;
  background: var(--mint);
  box-shadow: 0 12px 24px rgba(23, 168, 135, 0.18);
}

.button.primary:hover {
  background: #85edcc;
}

.button.secondary,
.button.compact {
  color: var(--ink);
  background: #edf2f5;
}

.button.compact {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
}

.button.wide {
  width: 100%;
}

.text-button {
  padding: 8px 0;
  color: var(--blue);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
}

label {
  display: grid;
  gap: 7px;
  color: #38485b;
  font-size: 0.78rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ced8e0;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

textarea {
  min-height: 94px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(23, 168, 135, 0.1);
  outline: 0;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 700;
}

.form-status.error {
  color: var(--danger);
}

/* Login */

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 10%, rgba(113, 230, 193, 0.12), transparent 32%),
    linear-gradient(135deg, #061320 0%, #0a2334 58%, #123347 100%);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
}

.login-brand {
  display: flex;
  max-width: 760px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(42px, 8vw, 100px);
  color: #fff;
}

.login-brand img {
  width: 190px;
  height: auto;
}

.login-brand h1 {
  max-width: 660px;
  margin: 18px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.login-brand p {
  max-width: 590px;
  color: #b8c8d1;
  font-size: 1.05rem;
}

.login-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.login-trust li {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d3e1e6;
  font-size: 0.78rem;
}

.login-card {
  align-self: center;
  width: min(480px, calc(100% - 48px));
  margin: 36px auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.28);
}

.login-card-heading {
  margin-bottom: 30px;
}

.login-card-heading h2,
.form-intro h3 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.login-card-heading p,
.form-intro p {
  margin: 0;
  color: var(--muted);
}

.login-card form {
  display: grid;
  gap: 17px;
}

.form-intro {
  margin-bottom: 4px;
}

/* Application frame */

.app-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 0%, rgba(23, 168, 135, 0.09), transparent 28%),
    var(--soft);
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  min-height: 78px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 0 clamp(20px, 4vw, 64px);
  color: #fff;
  background: rgba(7, 24, 39, 0.97);
  box-shadow: 0 8px 28px rgba(4, 18, 29, 0.18);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 128px;
}

.brand span {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.app-header nav {
  display: flex;
  gap: 6px;
}

.app-header nav a {
  padding: 9px 14px;
  border-radius: 9px;
  color: #c3d0d7;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.app-header nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.user-cluster {
  display: flex;
  align-items: center;
  gap: 9px;
}

.user-cluster > div {
  display: grid;
  margin-right: 6px;
  text-align: right;
}

.user-cluster strong {
  max-width: 190px;
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-cluster span {
  color: #9fb0ba;
  font-size: 0.68rem;
}

.icon-button {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  color: #dce8ec;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
}

.app-page main,
.app-page footer {
  width: min(1480px, calc(100% - clamp(32px, 7vw, 112px)));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 22px;
  padding: clamp(54px, 7vw, 96px) 0 36px;
}

.hero h1 {
  max-width: 840px;
  margin: 12px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.5vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.057em;
  line-height: 0.98;
}

.hero p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.tenant-control,
.company-chip {
  display: grid;
  min-width: 220px;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.tenant-control label,
.company-chip span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tenant-control select {
  min-height: 36px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  font-weight: 800;
}

.company-chip strong {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.metric-grid article {
  display: grid;
  min-height: 124px;
  align-content: space-between;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.metric-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 12px 38px rgba(16, 36, 52, 0.05);
}

.plan-surface {
  margin-bottom: clamp(54px, 7vw, 90px);
  padding: clamp(26px, 4vw, 42px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.section-heading > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: #086c57;
  background: var(--mint-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.plan-summary {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px;
}

.plan-name {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 150px;
  padding: 24px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(113, 230, 193, 0.25), transparent 38%),
    var(--navy);
}

.plan-name span,
.plan-name small {
  color: #a9bbc5;
}

.plan-name strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.plan-summary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.plan-summary dl div {
  display: grid;
  align-content: center;
  min-height: 74px;
  padding: 16px;
  background: #fff;
}

.plan-summary dt {
  color: var(--muted);
  font-size: 0.68rem;
}

.plan-summary dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.commercial-workspace,
.support-workspace {
  padding: 0 0 clamp(66px, 8vw, 110px);
}

.surface-status {
  margin: -12px 0 22px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(23, 168, 135, 0.07);
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.form-card {
  padding: 24px;
}

.card-heading {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 22px;
}

.card-heading h3,
.ledger-card h3,
.ticket h3 {
  margin: 0;
  font-size: 1.03rem;
}

.card-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.step-number {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #076c57;
  background: var(--mint-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.data-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.data-form .full {
  grid-column: 1 / -1;
}

.calculation-preview {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px dashed #b9cacb;
  border-radius: 11px;
  color: #397064;
  background: #f7fcfa;
  font-size: 0.78rem;
  font-weight: 700;
}

.form-card > .button {
  width: 100%;
  margin-top: 14px;
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.ledger-card {
  min-width: 0;
  padding: 22px;
}

.ledger-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.ledger-card > header span {
  color: var(--muted);
  font-size: 0.72rem;
}

.record-list {
  display: grid;
  max-height: 500px;
  gap: 10px;
  overflow: auto;
}

.record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid #e5eaee;
  border-radius: 13px;
  background: #fbfcfd;
}

.record > div {
  display: grid;
  min-width: 0;
}

.record strong,
.record small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record small,
.record-value span {
  color: var(--muted);
  font-size: 0.69rem;
}

.record-kicker {
  color: var(--teal);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-value {
  flex: 0 0 auto;
  text-align: right;
}

.empty-state {
  display: grid;
  min-height: 110px;
  place-content: center;
  gap: 4px;
  padding: 24px;
  border: 1px dashed #cdd7dd;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 18px;
}

.sticky-card {
  position: sticky;
  top: 100px;
}

.ticket-list {
  display: grid;
  gap: 14px;
}

.ticket {
  padding: 24px;
}

.ticket > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.ticket-badges {
  display: flex;
  gap: 6px;
}

.ticket-badges span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #486071;
  background: #edf2f5;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: capitalize;
}

.ticket-badges .priority-critical {
  color: #8e2437;
  background: #feecef;
}

.ticket-badges .priority-high {
  color: #8d5510;
  background: #fff5e2;
}

.ticket-description {
  margin: 18px 0 8px;
  color: #34475a;
  white-space: pre-wrap;
}

.ticket-meta {
  color: var(--muted);
  font-size: 0.69rem;
}

.ticket-thread {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding-left: 14px;
  border-left: 2px solid #dce8e6;
}

.ticket-message {
  padding: 11px 13px;
  border-radius: 10px;
  background: #f3f7f8;
}

.ticket-message.internal {
  border: 1px solid #efd5a5;
  background: #fff8ea;
}

.ticket-message > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.68rem;
}

.ticket-message span {
  color: var(--muted);
}

.ticket-message p {
  margin: 6px 0 0;
  font-size: 0.84rem;
  white-space: pre-wrap;
}

.ticket-admin {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  align-items: end;
  gap: 9px;
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 13px;
  background: #f5f7f9;
}

.ticket-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
}

.ticket-reply textarea {
  min-height: 74px;
}

.check {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.check input {
  width: 16px;
  min-height: 16px;
}

.team-workspace {
  margin-top: 86px;
}

.leads-workspace {
  margin-top: 86px;
}

.leads-card {
  padding: 26px;
}

.leads-heading {
  align-items: center;
  justify-content: space-between;
}

.lead-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.app-header nav a.active {
  color: #fff;
  background: rgba(80, 165, 255, 0.16);
  border-color: rgba(80, 165, 255, 0.36);
}

.lead-management {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(150, 180, 215, 0.16);
}

.lead-management label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.lead-management input,
.lead-management select,
.lead-management textarea {
  width: 100%;
}

.lead-management .wide,
.lead-conversion,
.lead-management > button {
  grid-column: 1 / -1;
}

.lead-conversion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(80, 165, 255, 0.24);
  border-radius: 14px;
  background: rgba(80, 165, 255, 0.06);
}

.lead-conversion button {
  grid-column: 1 / -1;
}

.opportunity-history {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.record.org-root {
  border-left: 3px solid rgba(80, 165, 255, 0.72);
}

.record.org-child {
  margin-left: 1.25rem;
  border-left: 2px solid rgba(80, 165, 255, 0.28);
  position: relative;
}

.record.org-child::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 1.3rem;
  width: 1rem;
  border-top: 1px solid rgba(80, 165, 255, 0.35);
}

@media (max-width: 720px) {
  .record.org-child {
    margin-left: 0.65rem;
  }
}

@media (max-width: 720px) {
  .lead-management,
  .lead-conversion {
    grid-template-columns: 1fr;
  }
}

.lead-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfcfd;
}

.lead-card header,
.lead-card footer,
.lead-contact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.lead-card h3 {
  margin: 4px 0 2px;
  font-size: 1.15rem;
}

.lead-card p,
.lead-card dd {
  margin: 0;
}

.lead-activity-count {
  flex: none;
  color: var(--muted);
  font-size: 0.76rem;
}

.lead-contact {
  flex-wrap: wrap;
  font-size: 0.86rem;
}

.lead-contact a {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.lead-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 0;
}

.lead-details div {
  min-width: 0;
}

.lead-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead-details dd {
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.lead-card footer {
  flex-wrap: wrap;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.69rem;
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  gap: 18px;
  align-items: start;
}

.team-list-card {
  min-height: 100%;
}

.credential-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #edf8f3;
  overflow-wrap: anywhere;
}

.credential-status:empty {
  display: none;
}

.credential-status.error {
  background: #fff0ef;
}

.form-help {
  margin: 0;
  padding: 11px 13px;
  border-radius: 11px;
  color: var(--muted);
  background: var(--soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.app-page footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 1180px) {
  .app-header {
    gap: 18px;
  }

  .workspace-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workspace-grid > :last-child {
    grid-column: 1 / -1;
  }

  .hero {
    grid-template-columns: 1fr auto;
  }

  .hero-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 440px;
    padding-bottom: 30px;
  }

  .login-card {
    margin-top: -52px;
  }

  .app-header {
    grid-template-columns: 1fr auto;
  }

  .app-header nav {
    display: none;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-summary {
    grid-template-columns: 1fr;
  }

  .workspace-grid,
  .ledger-grid,
  .lead-list,
  .team-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .workspace-grid > :last-child {
    grid-column: auto;
  }

  .sticky-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .login-brand {
    min-height: 390px;
    padding: 34px 24px 80px;
  }

  .login-brand h1 {
    font-size: 3rem;
  }

  .login-trust {
    display: none;
  }

  .login-card {
    width: calc(100% - 24px);
    padding: 28px 22px;
  }

  .app-header {
    min-height: 68px;
    padding: 0 14px;
  }

  .brand img {
    width: 106px;
  }

  .user-cluster > div,
  .user-cluster > a.icon-button {
    display: none;
  }

  .app-page main,
  .app-page footer {
    width: min(100% - 24px, 1480px);
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .tenant-control,
  .company-chip {
    width: 100%;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .metric-grid article {
    min-height: 104px;
    padding: 16px;
  }

  .section-heading {
    display: grid;
  }

  .section-heading h2 {
    font-size: 2.4rem;
  }

  .plan-summary dl,
  .data-form {
    grid-template-columns: 1fr;
  }

  .data-form .full {
    grid-column: auto;
  }

  .form-card,
  .ledger-card,
  .ticket,
  .plan-surface {
    padding: 18px;
    border-radius: 18px;
  }

  .record {
    align-items: start;
    flex-direction: column;
  }

  .lead-details {
    grid-template-columns: 1fr;
  }

  .lead-card header {
    display: grid;
  }

  .record-value {
    text-align: left;
  }

  .ticket > header {
    display: grid;
  }

  .ticket-admin,
  .ticket-reply {
    grid-template-columns: 1fr;
  }

  .app-page footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
