:root {
  color-scheme: light;
  --navy: #071b33;
  --navy-2: #0d2a4d;
  --blue: #155eef;
  --blue-dark: #0b4bd4;
  --red: #a62639;
  --ink: #17263b;
  --muted: #607086;
  --line: #dbe3ec;
  --line-strong: #bbc8d8;
  --surface: #fff;
  --surface-soft: #f4f7fa;
  --success: #087a55;
  --success-soft: #e7f7f0;
  --warning: #a15c05;
  --warning-soft: #fff4dc;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px #071b3314, 0 8px 24px #071b3308;
  --shadow-lg: 0 2px 6px #071b3314, 0 28px 70px #071b3317;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--surface-soft);
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  transition-property:
    color, background-color, border-color, box-shadow, opacity, transform;
  transition-duration: 140ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
button:active,
.button:active {
  transform: scale(0.96);
}
button:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.025em;
  color: var(--navy);
}
p {
  text-wrap: pretty;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mono,
code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.eyebrow,
.step-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px #ffffff1f;
}
.brand-logo {
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.brand small {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 1px;
}
.brand.centered {
  justify-content: center;
}
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.72rem 1.1rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow:
    0 1px 2px #071b3330,
    0 6px 14px #155eef29;
}
.button-primary:hover {
  background: var(--blue-dark);
}
.button-secondary {
  background: #fff;
  color: var(--navy);
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    0 1px 2px #071b330d;
}
.button-secondary:hover {
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px #91a3b9;
}
.button-block {
  width: 100%;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.icon-button:hover {
  background: #ffffff12;
}
.field {
  display: grid;
  gap: 7px;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}
.field > span {
  justify-self: end;
  margin-top: -1.7rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}
.field input,
.field select,
.field textarea,
.code-block {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  padding: 0.72rem 0.85rem;
  outline: 0;
}
.field textarea {
  resize: vertical;
  line-height: 1.55;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #8da0b8;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.code-block:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #155eef24;
}
.field input[readonly] {
  background: var(--surface-soft);
  color: var(--muted);
  cursor: default;
}
.field [aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px #b4231817;
}
.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 650;
}
.field-help {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 550;
  line-height: 1.45;
}
.field-help a {
  color: var(--blue);
  font-weight: 700;
}
.alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin: 0 0 18px;
  font-size: 0.9rem;
  font-weight: 650;
}
.alert-error {
  background: var(--danger-soft);
  color: #8c1d15;
  box-shadow: inset 0 0 0 1px #f2b8b3;
}
.alert-success {
  background: var(--success-soft);
  color: #075f44;
  box-shadow: inset 0 0 0 1px #a8dec9;
}
.pricing-notice {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  color: #714006;
  background: var(--warning-soft);
  box-shadow: inset 0 0 0 1px #e9c987;
}
.pricing-notice strong {
  display: block;
  color: #714006;
  margin-bottom: 4px;
}
.pricing-notice p {
  margin: 0;
  font-size: 0.88rem;
}
.pricing-notice a {
  color: #714006;
  font-weight: 750;
}
.customer-page {
  background:
    radial-gradient(circle at 100% 0, #dceaff 0, transparent 30rem),
    linear-gradient(#f9fbfd, #eff4f8);
  min-height: 100vh;
}
.renewal-shell {
  width: min(calc(100% - 32px), 860px);
  margin: 0 auto;
  padding: 24px 0 38px;
}
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
}
.secure-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}
.secure-label span {
  font-size: 0.7rem;
  color: var(--success);
}
.renewal-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}
.renewal-intro h1 {
  font-size: clamp(2.05rem, 5vw, 3.35rem);
  line-height: 1.02;
  margin-bottom: 16px;
  max-width: 690px;
}
.renewal-intro > div > p:last-child {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 600px;
  margin-bottom: 0;
}
.price-card {
  display: grid;
  align-content: center;
  min-height: 145px;
  padding: 18px;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.price-card span,
.price-card small {
  color: #c2d3e8;
  font-size: 0.76rem;
  font-weight: 650;
}
.price-card strong {
  font-size: 2.8rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin: 8px 0;
}
.stepper {
  margin-bottom: 14px;
}
.stepper ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
}
.stepper li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8795a8;
  font-size: 0.78rem;
  font-weight: 750;
}
.stepper li:not(:last-child)::after {
  content: "";
  height: 1px;
  background: var(--line-strong);
  position: absolute;
  left: 38px;
  right: 10px;
  top: 15px;
}
.stepper li span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e7edf4;
  color: #718198;
  box-shadow: 0 0 0 4px var(--surface-soft);
}
.stepper li.is-active {
  color: var(--navy);
}
.stepper li.is-active span {
  background: var(--blue);
  color: #fff;
}
.stepper li.is-complete span {
  background: var(--success);
  color: transparent;
}
.stepper li.is-complete span::after {
  content: "✓";
  color: #fff;
  position: absolute;
}
.stepper li.is-complete::after {
  background: var(--success);
}
.renewal-card {
  padding: clamp(24px, 5vw, 48px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.renewal-card section[hidden],
[hidden] {
  display: none !important;
}
.section-heading {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  line-height: 1.1;
  margin-bottom: 9px;
  outline: none;
}
.section-heading p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}
.field-span-2 {
  grid-column: span 2;
}

form[action="/api/contact"] .field-grid {
  margin-bottom: 20px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}
.form-actions-end {
  justify-content: flex-end;
}
.choice-group,
.address-block {
  border: 0;
  margin: 0;
  padding: 0;
}
.choice-group > legend,
.address-block > legend {
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 64px;
  margin: 9px 0;
  padding: 14px;
  border-radius: 13px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.choice-card:hover {
  box-shadow: inset 0 0 0 1px #9aadc3;
  background: #fbfcfe;
}
.choice-card:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--blue);
  background: #f3f7ff;
}
.choice-card input,
.toggle-row input,
.consent-row input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--blue);
}
.choice-card strong,
.choice-card small {
  display: block;
}
.choice-card small,
.toggle-row small {
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
.choice-group.compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice-group.compact legend {
  grid-column: 1/-1;
}
.choice-group.compact .choice-card {
  margin: 0;
}
.annual-report-group {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.conditional-panel {
  margin: 24px 0;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
.conditional-panel > h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.conditional-panel > .field {
  margin-bottom: 20px;
}
.address-block {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.toggle-row,
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  color: var(--navy);
  cursor: pointer;
}
.toggle-row strong,
.toggle-row small {
  display: block;
}
.review-list {
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.review-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.review-list > div:last-child {
  border-bottom: 0;
}
.review-list span {
  color: var(--muted);
}
.review-list strong {
  text-align: right;
}
.order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 20px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
}
.order-summary span,
.order-summary small {
  display: block;
}
.order-summary-copy {
  min-width: 0;
}
.order-summary-label {
  text-wrap: pretty;
}
.order-summary small {
  color: #c6d5e7;
  font-size: 0.78rem;
  margin-top: 3px;
}
.order-summary > strong {
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}
.consent-row {
  margin: 12px 0;
}
.secure-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 13px;
  background: var(--success-soft);
  color: #075f44;
}
.secure-note > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-weight: 900;
}
.secure-note p {
  margin: 0;
  font-size: 0.86rem;
}
.customer-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 4px;
  color: var(--muted);
  font-size: 0.76rem;
}
.customer-footer p {
  margin: 0;
}
.noscript {
  padding: 1rem;
  background: var(--danger-soft);
  text-align: center;
}
.status-page {
  display: grid;
  place-items: center;
}
.status-shell {
  width: min(calc(100% - 32px), 610px);
  padding: 40px 0;
  text-align: center;
}
.status-card {
  margin-top: 30px;
  padding: clamp(28px, 7vw, 54px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.status-card h1 {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.08;
}
.status-card > p:not(.eyebrow) {
  color: var(--muted);
}
.status-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 900;
}
.status-icon-pending {
  background: #eaf1ff;
}
.status-icon-pending span {
  width: 25px;
  height: 25px;
  border: 3px solid #9ab8ef;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.status-icon-success {
  background: var(--success-soft);
  color: var(--success);
}
.status-icon-warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.status-icon-neutral {
  background: var(--surface-soft);
  color: var(--muted);
}
.reference-chip {
  display: inline-flex;
  margin: 8px 0 24px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font:
    0.72rem "SFMono-Regular",
    monospace;
}
.status-support {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 20px;
}
.contact-thanks-card > p:not(.eyebrow) {
  max-width: 470px;
  margin-inline: auto;
}
.contact-thanks-next {
  display: grid;
  gap: 5px;
  margin: 4px 0 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--success-soft);
  color: #075f44;
  text-align: left;
  box-shadow: inset 0 0 0 1px #a8dec9;
}
.contact-thanks-next strong,
.contact-thanks-next span {
  display: block;
}
.contact-thanks-next strong {
  font-size: 0.86rem;
}
.contact-thanks-next span {
  font-size: 0.8rem;
  line-height: 1.5;
}
.status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.admin-page {
  background: #f5f7fa;
}
.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}
.admin-main {
  min-width: 0;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  background: var(--navy);
  color: #fff;
}
.admin-brand {
  padding: 0 8px;
  color: #fff;
  margin-bottom: 34px;
}
.admin-brand .brand-mark {
  background: #fff;
  color: var(--navy);
}
.admin-brand small {
  color: #9fb4cc;
}
.admin-sidebar nav {
  display: grid;
  gap: 5px;
}
.admin-sidebar nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #b7c7da;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active {
  background: #ffffff12;
  color: #fff;
}
.admin-sidebar nav a.is-active {
  box-shadow: inset 3px 0 0 #69a2ff;
}
.sidebar-account {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px 8px 0;
  border-top: 1px solid #ffffff1a;
}
.sidebar-account strong,
.sidebar-account small {
  display: block;
}
.sidebar-account strong {
  font-size: 0.8rem;
}
.sidebar-account small {
  color: #9fb4cc;
  font-size: 0.7rem;
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #e5edfb;
  color: var(--navy);
  font-weight: 850;
}
.mobile-admin-bar {
  display: none;
}
.admin-content {
  width: min(calc(100% - 48px), 1320px);
  margin: 0 auto;
  padding: 40px 0 60px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.page-heading h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  margin-bottom: 10px;
}
.page-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.metric-card {
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.metric-card span,
.metric-card strong,
.metric-card small {
  display: block;
}
.metric-card span,
.metric-card small {
  color: var(--muted);
  font-size: 0.76rem;
}
.metric-card strong {
  font-size: 1.75rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  margin: 6px 0 2px;
}
.filter-card,
.data-card,
.side-card,
.form-library-card {
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.filter-card {
  padding: 20px;
  margin-bottom: 18px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 16px;
  font-size: 0.84rem;
}
.data-card {
  overflow: hidden;
  margin-bottom: 18px;
}
.data-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.data-card-head h2 {
  font-size: 1.08rem;
  margin-bottom: 3px;
}
.data-card-head p,
.data-card-head > span {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #fbfcfd;
}
td {
  font-size: 0.84rem;
}
td strong,
td small {
  display: block;
}
td small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 0.72rem;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf1f6;
  color: #4d5e73;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
}
.status-paid,
.status-completed {
  background: var(--success-soft);
  color: var(--success);
}
.status-needs_review,
.status-in_process,
.status-checkout_created,
.status-payment_pending,
.status-pilot {
  background: #eaf1ff;
  color: #174fa8;
}
.status-attention_required,
.status-payment_exception,
.status-disputed,
.status-payment_failed {
  background: var(--warning-soft);
  color: var(--warning);
}
.status-refunded,
.status-checkout_expired {
  background: #f0ecff;
  color: #6941c6;
}
.row-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.15rem;
}
.row-link:hover {
  background: #edf3ff;
}
.empty-state {
  text-align: center !important;
  padding: 52px !important;
}
.empty-state strong,
.empty-state span {
  display: block;
}
.empty-state span {
  margin-top: 5px;
  color: var(--muted);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 0.78rem;
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 22px;
}
.breadcrumb a {
  text-decoration: none;
}
.detail-heading {
  align-items: center;
}
.status-stack {
  display: flex;
  gap: 8px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 8px 22px 22px;
}
.detail-list > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.detail-list > div:nth-child(odd) {
  padding-right: 18px;
}
.detail-list dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.detail-list dd {
  margin: 4px 0 0;
  font-weight: 650;
}
.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 22px 22px;
}
.address-grid > div {
  padding: 16px;
  border-radius: 13px;
  background: var(--surface-soft);
}
.address-grid h3 {
  font-size: 0.84rem;
}
.address-grid p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
.note-form {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.note-form .button {
  margin-top: 12px;
}
.timeline {
  padding: 8px 22px 18px;
}
.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  padding: 12px 0;
}
.timeline article:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 30px;
  bottom: -12px;
  width: 1px;
  background: var(--line);
}
.timeline-dot {
  width: 13px;
  height: 13px;
  margin-top: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--blue);
}
.timeline p {
  margin-bottom: 4px;
}
.timeline strong,
.timeline small {
  display: block;
}
.timeline small {
  font-size: 0.72rem;
  color: var(--muted);
}
.empty-inline {
  padding: 12px 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.side-card {
  padding: 20px;
  margin-bottom: 18px;
}
.side-card h2 {
  font-size: 1rem;
}
.workflow-steps {
  display: grid;
  margin: 16px 0;
}
.workflow-steps > div {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.workflow-steps > div span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line-strong);
}
.workflow-steps > div.is-active {
  color: var(--navy);
}
.workflow-steps > div.is-active span {
  box-shadow: inset 0 0 0 4px var(--blue);
}
.workflow-steps > div.is-complete {
  color: var(--success);
}
.workflow-steps > div.is-complete span {
  background: var(--success);
  box-shadow: none;
}
.completion-note {
  text-align: center;
  color: var(--success);
  font-weight: 750;
}
.compact-list {
  margin: 0;
}
.compact-list > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.compact-list dt {
  color: var(--muted);
}
.compact-list dd {
  margin: 0;
  font-weight: 750;
}
.stripe-ids {
  display: grid;
  gap: 4px;
  margin-top: 15px;
}
.stripe-ids span {
  font-size: 0.67rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.stripe-ids code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 7px;
  border-radius: 7px;
  background: var(--surface-soft);
  font-size: 0.68rem;
}
.event-row {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 9px;
  padding: 9px 0;
}
.status-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--success);
}
.event-row strong,
.event-row small {
  display: block;
  font-size: 0.7rem;
}
.event-row small {
  color: var(--muted);
}
.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.dashboard-heading h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}
.dashboard-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}
.range-picker {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: #e9edf3;
}
.range-picker a {
  display: grid;
  place-items: center;
  min-width: 72px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}
.range-picker a:hover {
  color: var(--navy);
}
.range-picker a.is-active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 3px #071b3320;
}
.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.analytics-metric {
  position: relative;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.analytics-metric > span,
.analytics-metric > strong,
.analytics-metric > small {
  display: block;
}
.analytics-metric > span {
  padding-right: 44px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}
.analytics-metric > strong {
  margin: 18px 0 4px;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}
.analytics-metric > small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}
.metric-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 850;
}
.metric-revenue .metric-icon {
  background: var(--success-soft);
  color: var(--success);
}
.metric-conversion .metric-icon {
  background: #f0ecff;
  color: #6941c6;
}
.metric-contacts .metric-icon {
  background: #fff1e8;
  color: #b45309;
}
.work-alert {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fffaf0;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px #f4d79f;
  text-decoration: none;
}
.work-alert-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--warning-soft);
  color: var(--warning);
  font-weight: 900;
}
.work-alert strong,
.work-alert small {
  display: block;
}
.work-alert strong {
  font-size: 0.88rem;
}
.work-alert small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.73rem;
}
.work-alert-link {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}
.analytics-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.analytics-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 0;
}
.analytics-card-head .eyebrow {
  margin-bottom: 5px;
  font-size: 0.66rem;
}
.analytics-card-head h2 {
  margin-bottom: 4px;
  font-size: 1.12rem;
}
.analytics-card-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.analytics-card-head > a {
  margin-top: 20px;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}
.analytics-trend-card {
  margin-bottom: 18px;
}
.chart-legend {
  display: flex;
  gap: 16px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.72rem;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.chart-legend i,
.workflow-dot,
.payment-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.legend-service {
  background: var(--blue);
}
.legend-contact {
  background: #f59e0b;
}
.trend-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--trend-columns, 10), minmax(24px, 1fr));
  align-items: end;
  gap: 8px;
  min-height: 250px;
  margin: 20px 24px 24px;
  padding: 18px 8px 0;
  overflow-x: auto;
}
.trend-grid-lines {
  position: absolute;
  inset: 18px 0 31px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}
.trend-grid-lines i {
  border-top: 1px dashed var(--line);
}
.trend-bucket {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 190px 24px;
  gap: 8px;
  min-width: 24px;
}
.trend-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
}
.trend-bars > i {
  position: relative;
  width: min(12px, 38%);
  height: max(3px, var(--bar-height));
  border-radius: 5px 5px 2px 2px;
}
.trend-bars > i > b {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  color: var(--muted);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1;
  transform: translateX(-50%);
}
.trend-service {
  background: linear-gradient(180deg, #4d81f5, var(--blue));
}
.trend-contact {
  background: linear-gradient(180deg, #fbbf24, #d97706);
}
.trend-bucket > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.64rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: 18px;
  margin-bottom: 18px;
}
.analytics-lower {
  grid-template-columns: minmax(310px, 0.7fr) minmax(0, 1.3fr);
}
.form-performance-list {
  display: grid;
  gap: 18px;
  padding: 22px 24px 24px;
}
.form-performance-list article {
  min-width: 0;
}
.performance-row,
.performance-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.performance-row strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.performance-row span,
.performance-meta {
  color: var(--muted);
  font-size: 0.69rem;
  white-space: nowrap;
}
.performance-bar {
  height: 8px;
  margin: 8px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}
.performance-bar i {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #6c96f7);
}
.performance-meta span:last-child {
  color: var(--success);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.workflow-graphic,
.payment-stack {
  display: flex;
  height: 15px;
  margin: 26px 24px 20px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
.workflow-segment,
.payment-stack i {
  width: var(--segment);
  min-width: 0;
}
.workflow-segment.status-awaiting_payment {
  background: #94a3b8;
}
.workflow-segment.status-needs_review {
  background: #3b82f6;
}
.workflow-segment.status-attention_required {
  background: #ef8b32;
}
.workflow-segment.status-in_process {
  background: #7c5ce0;
}
.workflow-segment.status-completed {
  background: #22a06b;
}
.workflow-segment.status-cancelled {
  background: #64748b;
}
.workflow-list {
  padding: 0 24px 22px;
}
.workflow-list a {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 39px;
  color: var(--muted);
  font-size: 0.76rem;
  text-decoration: none;
}
.workflow-list a:hover span {
  color: var(--blue);
}
.workflow-list strong {
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.workflow-dot.status-awaiting_payment {
  background: #94a3b8;
}
.workflow-dot.status-needs_review {
  background: #3b82f6;
}
.workflow-dot.status-attention_required {
  background: #ef8b32;
}
.workflow-dot.status-in_process {
  background: #7c5ce0;
}
.workflow-dot.status-completed {
  background: #22a06b;
}
.workflow-dot.status-cancelled {
  background: #64748b;
}
.payment-paid {
  background: #22a06b;
}
.payment-active {
  background: #3b82f6;
}
.payment-unpaid {
  background: #94a3b8;
}
.payment-attention {
  background: #ef8b32;
}
.payment-health-list {
  display: grid;
  gap: 3px;
  padding: 0 24px 24px;
}
.payment-health-list > div {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--muted);
  font-size: 0.76rem;
}
.payment-health-list strong {
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.payment-health-list small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.recent-activity-list {
  padding: 12px 24px 20px;
}
.recent-activity-list a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.recent-activity-list a:last-child {
  border-bottom: 0;
}
.activity-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 850;
}
.activity-contact {
  background: #fff1e8;
  color: #b45309;
}
.recent-activity-list span,
.recent-activity-list strong,
.recent-activity-list small {
  display: block;
  min-width: 0;
}
.recent-activity-list strong,
.recent-activity-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-activity-list strong {
  color: var(--navy);
  font-size: 0.79rem;
}
.recent-activity-list small,
.recent-activity-list time {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}
.recent-activity-list time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.analytics-empty {
  display: grid;
  gap: 5px;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}
.analytics-empty strong {
  color: var(--navy);
  font-size: 0.9rem;
}
.embed-library {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.form-library-card {
  min-width: 0;
  padding: 24px;
}
.form-card-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.form-card-copy {
  min-width: 0;
}
.form-card-head h2 {
  font-size: 1.25rem;
  margin: 0;
  text-wrap: balance;
}
.form-card-head p {
  margin: 7px 0 0;
  color: var(--muted);
  text-wrap: pretty;
}
.form-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.form-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.route-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--surface-soft);
  font-size: 0.78rem;
}
.route-row span {
  color: var(--muted);
}
.route-row a {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.embed-code-panel {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #081a2f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.embed-code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #d9e6f5;
}
.embed-code-toolbar > label {
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.embed-copy-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.button-copy-code {
  min-width: 150px;
  min-height: 42px;
}
.button-copy-code.is-copied {
  background: var(--success);
  box-shadow: 0 7px 18px rgba(22, 128, 88, 0.2);
}
.code-block {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font:
    0.72rem/1.55 "SFMono-Regular",
    Consolas,
    monospace;
  background: #081a2f;
  color: #d9e6f5;
  border: 0;
  border-radius: 0;
  resize: vertical;
  min-height: 236px;
  margin: 0;
  padding: 18px;
  outline-offset: -3px;
}
.copy-status {
  color: #a9efcf;
  font-size: 0.78rem;
  font-weight: 750;
  text-align: right;
}
.contact-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.contact-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
}
.contact-filter .filter-actions {
  margin-top: 0;
  min-height: 46px;
}
.contact-request-list {
  display: grid;
  gap: 18px;
}
.contact-request-card {
  margin-bottom: 0;
}
.contact-request-body {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 0.66fr);
  gap: 24px;
  padding: 22px;
}
.contact-meta {
  display: grid;
  gap: 14px;
  margin: 0;
}
.contact-meta div {
  min-width: 0;
}
.contact-meta dt,
.contact-message > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-meta dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  font-weight: 650;
}
.contact-message {
  min-width: 0;
  padding: 16px;
  border-radius: 13px;
  background: var(--surface-soft);
}
.contact-message p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.users-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 18px;
}
.staff-list {
  padding: 6px 20px;
}
.staff-list article {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.staff-list article:last-child {
  border-bottom: 0;
}
.staff-list strong,
.staff-list small {
  display: block;
}
.staff-list small {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2px;
}
.create-user-card form {
  padding: 20px;
  display: grid;
  gap: 16px;
}
.login-page {
  min-height: 100vh;
  background: var(--navy);
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
}
.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 7vw, 80px);
  color: #d8e4f1;
  background: radial-gradient(circle at 0 100%, #173d6a 0, transparent 32rem);
}
.login-brand .brand {
  color: #fff;
}
.login-brand .brand-mark {
  background: #fff;
  color: var(--navy);
}
.login-brand .brand small {
  color: #9fb4cc;
}
.login-brand > div {
  max-width: 560px;
}
.login-brand h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
}
.login-brand > div > p:last-child {
  color: #aebfd2;
  font-size: 1.05rem;
}
.login-footnote {
  font-size: 0.76rem;
  color: #7991ad;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 28px;
  background: #f5f7fa;
  border-radius: 30px 0 0 30px;
}
.login-card {
  width: min(100%, 460px);
  padding: 38px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.login-card h2 {
  font-size: 1.75rem;
  margin-bottom: 6px;
}
.login-card > p:not(.step-kicker) {
  color: var(--muted);
}
.login-card form {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}
.login-support {
  text-align: center;
  font-size: 0.8rem !important;
  margin: 20px 0 0 !important;
}
@media (max-width: 1000px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: fixed;
    z-index: 20;
    left: 0;
    width: 248px;
    transform: translateX(-100%);
    transition-property: transform;
  }
  .menu-open .admin-sidebar {
    transform: translateX(0);
  }
  .mobile-admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 10px 22px;
    background: var(--navy);
    color: #fff;
  }
  .mobile-admin-bar .brand {
    color: #fff;
  }
  .mobile-admin-bar .brand-mark {
    width: 38px;
    height: 38px;
    background: #fff;
    color: var(--navy);
  }
  .admin-content {
    width: min(calc(100% - 32px), 900px);
    padding-top: 28px;
  }
  .detail-grid,
  .embed-library,
  .users-layout,
  .contact-request-body,
  .analytics-columns {
    grid-template-columns: 1fr;
  }
  .analytics-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-brand {
    display: none;
  }
  .login-panel {
    border-radius: 0;
    min-height: 100vh;
  }
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 660px) {
  .renewal-shell {
    width: min(calc(100% - 20px), 860px);
    padding-top: 14px;
  }
  .brand-bar {
    margin-bottom: 28px;
  }
  .secure-label {
    display: none;
  }
  .renewal-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .renewal-intro h1 {
    font-size: 2.15rem;
  }
  .price-card {
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 0;
  }
  .price-card strong {
    grid-row: 1/3;
    grid-column: 2;
    font-size: 2.35rem;
  }
  .stepper li {
    font-size: 0;
    gap: 0;
  }
  .stepper li span {
    font-size: 0.76rem;
  }
  .renewal-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .field-grid,
  .choice-group.compact,
  .detail-list,
  .address-grid,
  .metric-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .field-span-2 {
    grid-column: auto;
  }
  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .form-actions-end {
    align-items: stretch;
  }
  .form-actions .button {
    width: 100%;
  }
  .status-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .customer-footer,
  .page-heading,
  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .customer-footer {
    gap: 4px;
  }
  .admin-content {
    width: min(calc(100% - 20px), 900px);
  }
  .metric-grid {
    gap: 8px;
  }
  .range-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  .range-picker a {
    min-width: 0;
  }
  .analytics-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .analytics-metric {
    min-height: 132px;
  }
  .work-alert {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .work-alert-link {
    grid-column: 2;
  }
  .analytics-card-head {
    flex-direction: column;
  }
  .analytics-card-head > a,
  .chart-legend {
    margin-top: 0;
    padding-top: 0;
  }
  .trend-chart {
    margin-inline: 14px;
    padding-inline: 4px;
    overflow-x: hidden;
  }
  .trend-bucket:nth-child(odd) > span {
    visibility: hidden;
  }
  .trend-bucket:last-child > span {
    visibility: visible;
  }
  .trend-bucket > span {
    width: 44px;
    overflow: visible;
    justify-self: center;
    text-overflow: clip;
  }
  .form-performance-list,
  .workflow-list,
  .payment-health-list,
  .recent-activity-list {
    padding-inline: 18px;
  }
  .workflow-graphic,
  .payment-stack {
    margin-inline: 18px;
  }
  .recent-activity-list a {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 8px 0;
  }
  .recent-activity-list time {
    grid-column: 2;
    margin-top: -8px;
  }
  .contact-metrics,
  .contact-filter {
    grid-template-columns: 1fr;
  }
  .metric-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .metric-card strong {
    grid-row: 1/3;
    grid-column: 2;
  }
  .filter-actions {
    justify-content: space-between;
  }
  .status-stack {
    flex-wrap: wrap;
  }
  .data-card-head {
    align-items: flex-start;
  }
  .form-library-card {
    margin-bottom: 14px;
  }
  .form-card-title-row,
  .embed-code-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .embed-code-toolbar {
    padding: 16px;
  }
  .embed-copy-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    justify-content: space-between;
    width: 100%;
  }
  .button-copy-code {
    width: 100%;
    min-width: 0;
  }
  .route-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .route-row a {
    width: 100%;
  }
  .staff-list article {
    grid-template-columns: 38px 1fr;
  }
  .staff-list form {
    grid-column: 2;
  }
  .login-panel {
    padding: 10px;
  }
  .login-card {
    padding: 28px 20px;
    border-radius: 18px;
  }
  .table-wrap {
    margin: 0 -1px;
  }
  th,
  td {
    padding: 12px;
  }
}
.company-count-field {
  max-width: 360px;
  margin: 22px 0;
}
.company-stack {
  display: grid;
  gap: 22px;
}
.company-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  box-shadow: 0 1px 2px rgb(15 36 64 / 5%);
}
.company-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.company-card-head h3 {
  margin: 2px 0 0;
}
.copy-contact {
  flex: none;
}
.multi-review {
  display: grid;
  gap: 16px;
}
.review-company {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}
.review-company h3 {
  margin: 0 0 12px;
}
.review-company > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.forms-menu-shell {
  width: min(calc(100% - 32px), 1080px);
  margin: 0 auto;
  padding: 24px 0 40px;
}
.forms-menu-hero {
  max-width: 720px;
  padding: 46px 0 52px;
}
.forms-menu-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 6vw, 4.35rem);
  line-height: 0.98;
}
.forms-menu-hero > p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.forms-menu-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}
.forms-menu-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
}
.forms-menu-heading .eyebrow {
  margin-bottom: 4px;
}
.forms-count {
  flex: none;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.78rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.public-forms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 22px;
}
.public-form-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgb(7 27 51 / 8%),
    0 2px 4px rgb(7 27 51 / 5%),
    0 16px 38px rgb(7 27 51 / 7%);
  transition-property: color, box-shadow, transform;
}
.public-form-card:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgb(21 94 239 / 34%),
    0 3px 7px rgb(7 27 51 / 7%),
    0 22px 48px rgb(7 27 51 / 11%);
}
.public-form-card:focus-visible {
  outline: 3px solid rgb(21 94 239 / 25%);
  outline-offset: 3px;
}
.public-form-card:active {
  transform: scale(0.99);
}
.public-form-card-top,
.public-form-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.form-category,
.form-status {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-category {
  color: var(--red);
}
.form-status {
  color: var(--success);
}
.form-status span {
  margin-right: 4px;
  font-size: 0.62rem;
}
.public-form-card-copy {
  display: grid;
  gap: 8px;
}
.public-form-card-copy strong {
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.public-form-card-copy > span {
  color: var(--muted);
  font-size: 0.92rem;
  text-wrap: pretty;
}
.public-form-card-bottom {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.form-link-label {
  color: var(--blue);
}
.form-link-label span {
  display: inline-block;
  margin-left: 4px;
  transition-property: transform;
}
.public-form-card:hover .form-link-label span {
  transform: translateX(3px);
}
.forms-help-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin-top: 26px;
  padding: 30px;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.forms-help-card h2 {
  margin-bottom: 8px;
  color: #fff;
}
.forms-help-card p:last-child {
  margin-bottom: 0;
  color: #bdcbe0;
}
.forms-help-card .eyebrow {
  color: #ff9cab;
}
.forms-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.forms-menu-footer {
  margin-top: 28px;
}
@media (max-width: 600px) {
  .company-card { padding: 18px; }
  .company-card-head { flex-direction: column; }
  .copy-contact { width: 100%; }
  .review-company > div { flex-direction: column; gap: 2px; }
  .forms-menu-shell { width: min(calc(100% - 20px), 1080px); }
  .forms-menu-hero { padding: 30px 4px 38px; }
  .forms-menu-heading { align-items: center; }
  .public-forms-grid { grid-template-columns: 1fr; gap: 12px; }
  .public-form-card { min-height: 210px; padding: 20px; border-radius: 18px; }
  .forms-help-card { grid-template-columns: 1fr; padding: 24px 20px; }
  .forms-help-actions { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Service requests */
.requests-table{table-layout:fixed}.requests-table th,.requests-table td{padding:11px 9px;vertical-align:middle}.requests-table th{white-space:normal;overflow-wrap:anywhere}.requests-table th:nth-child(1){width:23%}.requests-table th:nth-child(2){width:18%}.requests-table th:nth-child(3){width:18%}.requests-table th:nth-child(4){width:12%}.requests-table th:nth-child(5){width:13%}.requests-table th:nth-child(6){width:10%}.requests-table th:nth-child(7){width:6%}.requests-table td:nth-child(1),.requests-table td:nth-child(2),.requests-table td:nth-child(3),.requests-table td:nth-child(6){white-space:normal;overflow-wrap:anywhere;line-height:1.35}.requests-table td:nth-child(3){font-size:.76rem}.requests-table td:nth-child(6){font-variant-numeric:tabular-nums}.requests-table th:last-child,.requests-table td:last-child{padding-inline:3px;text-align:center}.requests-table .row-link{margin-inline:auto}.requests-table .status-pill{max-width:100%;justify-content:center;padding-inline:5px;font-size:.61rem;line-height:1.2;text-align:center;white-space:normal}.pagination .is-disabled{cursor:default;opacity:.45}
@media (max-width:760px){.requests-table{min-width:720px}.pagination{align-items:flex-start;flex-direction:column;gap:12px}}

/* Internal invoices */
.admin-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}.admin-page-heading h1{font-size:clamp(2rem,4vw,2.8rem);line-height:1;margin-bottom:10px}.admin-page-heading p:last-child{margin-bottom:0;color:var(--muted)}.admin-card{min-width:0;padding:24px;border-radius:20px;background:#fff;box-shadow:var(--shadow-sm)}
.invoice-editor-grid,.invoice-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start}
.invoice-editor,.invoice-actions{display:grid;gap:22px}.invoice-summary-card{position:sticky;top:24px;padding:24px;border-radius:var(--radius-lg);background:linear-gradient(145deg,var(--navy),var(--navy-2));color:#fff;box-shadow:var(--shadow-lg)}
.invoice-summary-card .eyebrow{color:#ff9cab}.invoice-summary-card p{color:#c7d2e2}.invoice-total{font-size:2.75rem;font-weight:850;line-height:1;letter-spacing:-.055em;font-variant-numeric:tabular-nums;margin:12px 0}.button-block{width:100%;margin-top:10px}.button-large{min-height:54px}
.invoice-summary-card .secure-note{display:block;padding:0;border-radius:0;background:transparent;color:#c7d2e2;text-align:left}.invoice-next-step{margin:18px 0 6px;padding:15px 16px;border-radius:16px;background:rgb(255 255 255 / 10%)}.invoice-next-step strong{display:block;color:#fff;font-size:.94rem}.invoice-next-step p{margin:5px 0 0;font-size:.86rem;line-height:1.55;color:#e7eef8}
.card-heading-row,.invoice-document-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.invoice-lines{display:grid;gap:12px;margin-top:18px}.invoice-line{display:grid;grid-template-columns:40px minmax(300px,1.77fr) minmax(165px,1.35fr) minmax(133px,.5fr) 44px;gap:12px;align-items:end;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--surface-soft)}
.invoice-line-number{display:grid;place-items:center;width:36px;height:36px;margin-bottom:4px;border-radius:12px;background:#e7edf5;color:var(--navy);font-weight:850;font-variant-numeric:tabular-nums}.invoice-line label{margin:0}.line-amount{min-width:190px}.line-remove{margin-bottom:2px;color:var(--danger);font-size:1.35rem}.money-input{position:relative;min-width:0}.money-input span{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--muted);font-weight:750}.money-input input{width:100%;min-width:0;padding-left:29px;padding-right:14px;text-align:right;font-weight:800;font-variant-numeric:tabular-nums}
.invoice-table td small{display:block;color:var(--muted);margin-top:2px}.invoice-list-wrap{overflow-x:auto}.invoice-list-table{table-layout:fixed}.invoice-list-table th,.invoice-list-table td{padding:11px 10px;vertical-align:middle}.invoice-list-table th{white-space:normal;overflow-wrap:anywhere}.invoice-list-table th:nth-child(1){width:19%}.invoice-list-table th:nth-child(2){width:23%}.invoice-list-table th:nth-child(3){width:18%}.invoice-list-table th:nth-child(4){width:8%}.invoice-list-table th:nth-child(5){width:10%}.invoice-list-table th:nth-child(6){width:11%}.invoice-list-table th:nth-child(7){width:11%}.invoice-list-table th:nth-child(4),.invoice-list-table td:nth-child(4){text-align:center}.invoice-list-table th:nth-child(5),.invoice-list-table td:nth-child(5){text-align:right}.invoice-list-table td:nth-child(1),.invoice-list-table td:nth-child(2),.invoice-list-table td:nth-child(3),.invoice-list-table td:nth-child(7){white-space:normal;overflow-wrap:anywhere}.invoice-list-table td:nth-child(1) strong{font-size:.78rem;line-height:1.35}.invoice-list-table td:nth-child(2),.invoice-list-table td:nth-child(3){line-height:1.35}.invoice-list-table td:nth-child(4),.invoice-list-table td:nth-child(5),.invoice-list-table td:nth-child(7){font-variant-numeric:tabular-nums}.invoice-list-table .status-pill{max-width:100%;padding-inline:5px;font-size:.62rem}.status-pill.status-draft{background:#edf1f6;color:#4b5e74}.status-pill.status-sent{background:#eaf2ff;color:#1856b8}.status-pill.status-paid{background:var(--success-soft);color:var(--success)}.status-pill.status-refunded,.status-pill.status-disputed{background:var(--warning-soft);color:var(--warning)}.status-pill.status-void{background:var(--danger-soft);color:var(--danger)}
.invoice-document{padding:30px}.invoice-status-block{display:grid;justify-items:end;gap:8px}.invoice-status-block small{color:var(--muted)}.invoice-lines-table{width:100%;border-collapse:collapse;margin:28px 0;font-variant-numeric:tabular-nums}.invoice-lines-table th,.invoice-lines-table td{padding:14px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.invoice-lines-table th:last-child,.invoice-lines-table td:last-child{text-align:right;white-space:nowrap}.invoice-lines-table thead th{font-size:.73rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.invoice-lines-table tfoot th{font-size:1.05rem;color:var(--navy);border-top:2px solid var(--navy);border-bottom:0}.internal-note{margin-top:24px;padding:18px;border-radius:16px;background:var(--warning-soft);color:#5d410f}.internal-note p:last-child{margin:6px 0 0}.payment-direction{margin:14px 0 16px;padding:15px 16px;border-radius:16px;background:#eef4ff;color:var(--navy)}.payment-direction strong{display:block}.payment-direction p{margin:5px 0 0;color:#42536a;font-size:.88rem;line-height:1.55}.payment-link-field{margin-top:18px}.payment-link-field input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.76rem;background:var(--surface-soft)}.payment-copy-status{min-height:20px;margin:7px 0 0;color:var(--success);font-size:.8rem;font-weight:750}.proof-note{margin:12px 0 0;padding:12px;border-radius:12px;background:var(--warning-soft);color:#68490d;font-size:.84rem}.detail-list>div{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--line)}.detail-list dt{color:var(--muted)}.detail-list dd{margin:0;font-weight:750}.danger-zone{border:1px solid #efc2bd}.button-danger{background:var(--danger);color:#fff}.status-return-note{margin:22px 0 12px;color:var(--muted);font-variant-numeric:tabular-nums}
.invoice-pay-page{min-height:100vh;background:radial-gradient(circle at 15% 0,#dce9ff 0,transparent 34%),var(--surface-soft);color:var(--ink)}.invoice-pay-shell{width:min(calc(100% - 32px),900px);margin:0 auto;padding:34px 0 46px}.invoice-pay-brand{display:flex;align-items:center;gap:13px;margin-bottom:22px}.invoice-pay-brand strong,.invoice-pay-brand small{display:block}.invoice-pay-brand small{color:var(--muted)}.invoice-pay-card{padding:34px;border-radius:30px;background:#fff;box-shadow:var(--shadow-lg)}.invoice-pay-card h1{font-size:clamp(1.7rem,4vw,2.5rem);margin-bottom:6px}.invoice-pay-footer{text-align:center;color:var(--muted);font-size:.86rem;margin-top:22px}.card-payment-step{margin-top:26px;padding:24px;border-radius:22px;background:#eef4ff;box-shadow:inset 0 0 0 1px rgb(47 99 230 / 12%)}.card-payment-step h2{margin:4px 0 6px;color:var(--navy)}.card-payment-step>p:not(.eyebrow){margin:0 0 18px;color:#42536a;line-height:1.6}.secure-note{font-size:.84rem;color:var(--muted);text-align:center;margin:12px 0 0}.form-error{margin-top:12px;color:var(--danger);font-weight:700;text-align:center}.receipt-panel{display:flex;align-items:flex-start;gap:16px;padding:20px;border-radius:18px;background:var(--success-soft)}.receipt-panel h2{margin-bottom:4px}.receipt-panel p{margin:0}.receipt-check{display:inline-grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:50%;background:var(--success);color:#fff;font-size:1.5rem;font-weight:900}.status-card{text-align:center}.status-card .receipt-check{margin:0 auto 16px}.email-preview-page{background:#e7ebf0}.email-preview-shell{width:min(calc(100% - 32px),680px);margin:0 auto;padding:32px 0}.preview-banner{text-align:center;padding:10px;background:var(--warning-soft);color:#68490d;font-weight:800;border-radius:12px 12px 0 0}.email-preview-card{padding:36px;background:#fff;border-radius:0 0 24px 24px;box-shadow:var(--shadow-lg)}
.admin-embedded .admin-sidebar,.admin-embedded .mobile-admin-bar{display:none}.admin-embedded .admin-layout{grid-template-columns:minmax(0,1fr)}.admin-embedded .admin-main{margin-left:0}.admin-embedded .admin-content{padding:18px}.admin-embedded .admin-page-heading>a{display:none}
.invoice-embed-gate{min-height:420px;display:grid;place-items:center;padding:24px;background:var(--surface-soft)}.invoice-embed-gate-card{width:min(100%,560px);padding:36px;border:1px solid var(--line);border-radius:24px;background:#fff;text-align:center;box-shadow:var(--shadow-lg)}.invoice-embed-gate-card .brand-mark{margin:0 auto 22px}.invoice-embed-gate-card h1{font-size:clamp(1.65rem,4vw,2.35rem)}.invoice-embed-gate-card p:not(.eyebrow){max-width:460px;margin:0 auto 22px;color:var(--muted)}
.invoice-pay-card h1{overflow-wrap:anywhere}
@media (max-width:1000px){.invoice-editor-grid,.invoice-detail-grid{grid-template-columns:1fr}.invoice-summary-card{position:static;order:-1}.invoice-line{grid-template-columns:40px minmax(180px,1fr) minmax(180px,.7fr) 44px}.line-description{grid-column:2/5}}
@media (max-width:640px){.admin-page-heading{align-items:flex-start;flex-direction:column}.invoice-pay-shell{width:min(calc(100% - 20px),900px);padding-top:16px}.invoice-pay-card,.invoice-document{padding:20px;border-radius:20px}.invoice-line{grid-template-columns:40px minmax(0,1fr) 44px}.invoice-line label{grid-column:2/4}.invoice-line .line-remove{grid-column:3;grid-row:1}.line-amount{min-width:0}.invoice-document-header,.card-heading-row{align-items:flex-start}.invoice-lines-table{display:block;overflow-x:auto}.invoice-total{font-size:2.2rem}.card-payment-step{padding:18px;border-radius:18px}}
@media (max-width:760px){.invoice-list-table{min-width:720px}}
@media (max-width:640px){.invoice-pay-card .invoice-document-header{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.invoice-pay-card .invoice-document-header>.status-pill{grid-row:1;justify-self:start}.invoice-pay-card .invoice-document-header>div{grid-row:2;min-width:0}.invoice-pay-card .invoice-lines-table thead{display:none}.invoice-pay-card .invoice-lines-table tbody,.invoice-pay-card .invoice-lines-table tfoot{display:block}.invoice-pay-card .invoice-lines-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;padding:14px 0;border-bottom:1px solid var(--line)}.invoice-pay-card .invoice-lines-table tbody td{padding:0;border:0;text-align:left;white-space:normal}.invoice-pay-card .invoice-lines-table tbody td:nth-child(2){grid-column:1;color:var(--muted);font-size:.8rem}.invoice-pay-card .invoice-lines-table tbody td:last-child{grid-column:2;grid-row:1/3;align-self:center;text-align:right;white-space:nowrap}.invoice-pay-card .invoice-lines-table tfoot tr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}.invoice-pay-card .invoice-lines-table tfoot th{padding:14px 0}.invoice-pay-card .invoice-lines-table tfoot th:last-child{grid-column:2;text-align:right}}
