/**
 * Domain.af — account portal design system
 * Light by default, optional dark. Mobile first.
 *
 *  1 Tokens        5 Buttons        9  Tables
 *  2 Base          6 Cards & grids  10 Empty / callouts / alerts
 *  3 Shell         7 Badges         11 Steps, timeline, misc
 *  4 Page header   8 Forms          12 Modal & PIN
 */

/* 1. Tokens ------------------------------------------------------------ */
:root {
  --ac-bg: #f6f7f9;
  --ac-surface: #ffffff;
  --ac-surface-2: #f9fafb;
  --ac-line: #e6e8ec;
  --ac-line-2: #eef0f3;
  --ac-text: #0f1419;
  --ac-text-2: #4b5563;
  --ac-text-3: #6b7280;
  --ac-ink: #111827;
  --ac-ink-text: #ffffff;
  --ac-brand: #e85a4f;
  --ac-brand-soft: #fdeceb;
  --ac-focus: #2563eb;
  --ac-success: #15803d;  --ac-success-bg: #ecfdf3;
  --ac-warning: #b45309;  --ac-warning-bg: #fffbeb;
  --ac-danger: #b91c1c;   --ac-danger-bg: #fef2f2;
  --ac-info: #1d4ed8;     --ac-info-bg: #eff6ff;
  --ac-neutral: #4b5563;  --ac-neutral-bg: #f3f4f6;
  --ac-radius: 14px;
  --ac-radius-sm: 10px;
  --ac-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --ac-shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.14);
  --ac-top-h: 3.75rem;
  --ac-max: 76rem;
}
html.dark {
  --ac-bg: #0b0d12;
  --ac-surface: #14171d;
  --ac-surface-2: #181c23;
  --ac-line: #262b34;
  --ac-line-2: #1e232b;
  --ac-text: #f3f4f6;
  --ac-text-2: #b6bcc7;
  --ac-text-3: #8d95a3;
  --ac-ink: #f3f4f6;
  --ac-ink-text: #0f1419;
  --ac-brand-soft: rgba(232, 90, 79, 0.14);
  --ac-focus: #60a5fa;
  --ac-success: #4ade80; --ac-success-bg: rgba(34, 197, 94, 0.12);
  --ac-warning: #fbbf24; --ac-warning-bg: rgba(245, 158, 11, 0.12);
  --ac-danger: #f87171;  --ac-danger-bg: rgba(239, 68, 68, 0.12);
  --ac-info: #60a5fa;    --ac-info-bg: rgba(59, 130, 246, 0.14);
  --ac-neutral: #b6bcc7; --ac-neutral-bg: rgba(255, 255, 255, 0.07);
  --ac-shadow: none;
  --ac-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
}

/* 2. Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ac {
  margin: 0;
  background: var(--ac-bg);
  color: var(--ac-text);
  font: 400 0.9375rem/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ac :where(a) { color: inherit; text-decoration: none; }
.ac h1, .ac h2, .ac h3, .ac h4, .ac p { margin: 0; }
.ac :focus-visible { outline: 2px solid var(--ac-focus); outline-offset: 2px; border-radius: 6px; }
.ac [hidden] { display: none !important; }
.ac-skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: .6rem 1rem; background: var(--ac-ink); color: var(--ac-ink-text); border-radius: 0 0 8px 0; }
.ac-skip:focus { left: 0; }
.ac-muted { color: var(--ac-text-3); font-size: .875rem; }
.ac-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.ac-strong { font-weight: 600; color: var(--ac-text); }
.ac-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.ac-row--between { justify-content: space-between; }
.ac-stack { display: grid; gap: 1rem; }
.ac-stack--lg { gap: 1.5rem; }
.ac-right { text-align: right; }
@media (max-width: 639px) { .ac-hide-sm { display: none !important; } }

/* 3. Shell ------------------------------------------------------------- */
.ac-top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--ac-surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--ac-line); }
.ac-top__inner { display: flex; align-items: center; gap: 1rem; max-width: var(--ac-max); height: var(--ac-top-h); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 900px) { .ac-top__inner { padding: 0 1.5rem; gap: 2rem; } }
.ac-brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -.02em; }
.ac-brand__mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px; background: var(--ac-ink); color: var(--ac-ink-text); font-size: .75rem; font-weight: 700; }
.ac-brand__name { font-size: 1.05rem; }
.ac-brand__name span { color: var(--ac-brand); }
.ac-nav { display: none; align-items: center; gap: .25rem; margin-right: auto; }
@media (min-width: 900px) { .ac-nav { display: flex; } }
.ac-nav__link { padding: .45rem .8rem; border-radius: 8px; color: var(--ac-text-2); font-weight: 500; font-size: .9rem; transition: background .12s, color .12s; }
.ac-nav__link:hover { background: var(--ac-neutral-bg); color: var(--ac-text); }
.ac-nav__link.is-active { background: var(--ac-neutral-bg); color: var(--ac-text); font-weight: 600; }
.ac-top__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
@media (min-width: 900px) { .ac-top__actions { margin-left: 0; } }
.ac-icon-btn { position: relative; display: inline-grid; place-items: center; width: 2.35rem; height: 2.35rem; border: 0; border-radius: 10px; background: transparent; color: var(--ac-text-2); cursor: pointer; }
.ac-icon-btn:hover { background: var(--ac-neutral-bg); color: var(--ac-text); }
.ac-dot { position: absolute; top: 2px; right: 1px; min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem; border-radius: 999px; background: var(--ac-brand); color: #fff; font-size: .625rem; font-weight: 700; line-height: 1.05rem; text-align: center; }
.ac-credit { display: inline-flex; align-items: baseline; gap: .4rem; padding: .35rem .7rem; border: 1px solid var(--ac-line); border-radius: 999px; font-size: .8125rem; color: var(--ac-text-2); }
.ac-credit strong { color: var(--ac-text); font-variant-numeric: tabular-nums; }
.ac-credit.is-low { border-color: color-mix(in srgb, var(--ac-warning) 40%, var(--ac-line)); background: var(--ac-warning-bg); }
@media (max-width: 480px) { .ac-credit span { display: none; } }

.ac-menu { position: relative; }
.ac-menu > summary { list-style: none; cursor: pointer; }
.ac-menu > summary::-webkit-details-marker { display: none; }
.ac-user { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .5rem .25rem .25rem; border-radius: 999px; color: var(--ac-text-2); }
.ac-user:hover { background: var(--ac-neutral-bg); }
.ac-user__name { display: none; font-size: .875rem; font-weight: 500; color: var(--ac-text); }
@media (min-width: 640px) { .ac-user__name { display: inline; } }
.ac-avatar { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--ac-brand-soft); color: var(--ac-brand); font-size: .75rem; font-weight: 700; }
.ac-menu__panel { position: absolute; top: calc(100% + .5rem); z-index: 60; display: grid; min-width: 15rem; padding: .4rem; border: 1px solid var(--ac-line); border-radius: 12px; background: var(--ac-surface); box-shadow: var(--ac-shadow-lg); }
.ac-menu__panel--end { right: 0; }
.ac-menu__panel a, .ac-menu__panel button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .65rem; border: 0; border-radius: 8px; background: none; color: var(--ac-text); font: inherit; font-size: .875rem; text-align: left; cursor: pointer; }
.ac-menu__panel a:hover, .ac-menu__panel button:hover { background: var(--ac-neutral-bg); }
.ac-menu__who { display: grid; gap: .1rem; padding: .6rem .65rem .7rem; margin-bottom: .3rem; border-bottom: 1px solid var(--ac-line-2); font-size: .8125rem; color: var(--ac-text-3); }
.ac-menu__who strong { color: var(--ac-text); font-size: .9rem; }
.ac-menu__theme { display: flex; align-items: center; gap: .3rem; padding: .35rem .65rem; margin: .3rem 0; border-top: 1px solid var(--ac-line-2); border-bottom: 1px solid var(--ac-line-2); font-size: .8125rem; color: var(--ac-text-3); }
.ac-menu__theme span { margin-right: auto; }
.ac-menu__theme button { width: auto; padding: .25rem .6rem; border: 1px solid var(--ac-line); font-size: .8125rem; }
.ac-menu__theme button.is-active { background: var(--ac-ink); border-color: var(--ac-ink); color: var(--ac-ink-text); }

.ac-sub { border-top: 1px solid var(--ac-line-2); }
.ac-sub__inner { display: flex; gap: .25rem; max-width: var(--ac-max); margin: 0 auto; padding: 0 1rem; overflow-x: auto; scrollbar-width: none; }
.ac-sub__inner::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .ac-sub__inner { padding: 0 1.5rem; } }
.ac-sub__link { flex: none; padding: .7rem .8rem; border-bottom: 2px solid transparent; color: var(--ac-text-3); font-size: .875rem; font-weight: 500; white-space: nowrap; }
.ac-sub__link:hover { color: var(--ac-text); }
.ac-sub__link.is-active { border-bottom-color: var(--ac-ink); color: var(--ac-text); font-weight: 600; }

.ac-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--ac-line); background: var(--ac-surface); }
@media (min-width: 900px) { .ac-tabbar { display: none; } }
.ac-tabbar__link { display: grid; justify-items: center; gap: .15rem; padding: .55rem .25rem .45rem; color: var(--ac-text-3); font-size: .6875rem; font-weight: 500; }
.ac-tabbar__link.is-active { color: var(--ac-text); font-weight: 600; }
.ac-tabbar__link.is-active svg { color: var(--ac-brand); }

.ac-main { max-width: var(--ac-max); margin: 0 auto; padding: 1.25rem 1rem 6rem; display: grid; gap: 1.25rem; align-content: start; min-height: calc(100vh - var(--ac-top-h)); }
@media (min-width: 900px) { .ac-main { padding: 2rem 1.5rem 3rem; gap: 1.5rem; min-height: 60vh; } }
.ac-footer { max-width: var(--ac-max); margin: 0 auto; padding: 0 1rem 5.5rem; color: var(--ac-text-3); font-size: .75rem; text-align: center; }
@media (min-width: 900px) { .ac-footer { padding: 0 1.5rem 2rem; } }

/* 4. Page header ------------------------------------------------------- */
.ac-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.ac-page-head h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
@media (min-width: 900px) { .ac-page-head h1 { font-size: 1.75rem; } }
.ac-page-head p { margin-top: .3rem; max-width: 40rem; color: var(--ac-text-3); }
.ac-page-head__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ac-back { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .4rem; color: var(--ac-text-3); font-size: .8125rem; }
.ac-back:hover { color: var(--ac-text); }

/* 5. Buttons ----------------------------------------------------------- */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.5rem; padding: .5rem 1rem; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: .875rem; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, transform .05s; }
.ac-btn:active { transform: translateY(1px); }
.ac-btn[disabled], .ac-btn.is-disabled { opacity: .5; pointer-events: none; }
.ac-btn--primary { background: var(--ac-ink); color: var(--ac-ink-text); }
.ac-btn--primary:hover { background: color-mix(in srgb, var(--ac-ink) 88%, var(--ac-brand)); }
.ac-btn--brand { background: var(--ac-brand); color: #fff; }
.ac-btn--brand:hover { background: color-mix(in srgb, var(--ac-brand) 88%, #000); }
.ac-btn--secondary { background: var(--ac-surface); border-color: var(--ac-line); color: var(--ac-text); }
.ac-btn--secondary:hover { background: var(--ac-surface-2); border-color: color-mix(in srgb, var(--ac-line) 60%, var(--ac-text-3)); }
.ac-btn--ghost { background: transparent; color: var(--ac-text-2); }
.ac-btn--ghost:hover { background: var(--ac-neutral-bg); color: var(--ac-text); }
.ac-btn--danger { background: var(--ac-danger-bg); border-color: color-mix(in srgb, var(--ac-danger) 25%, transparent); color: var(--ac-danger); }
.ac-btn--danger:hover { background: color-mix(in srgb, var(--ac-danger) 14%, var(--ac-surface)); }
.ac-btn--sm { min-height: 2rem; padding: .3rem .7rem; border-radius: 8px; font-size: .8125rem; }
.ac-btn--lg { min-height: 3rem; padding: .7rem 1.4rem; font-size: .95rem; }
.ac-btn--block { width: 100%; }
.ac-link { color: var(--ac-info); font-weight: 500; }
.ac-link:hover { text-decoration: underline; }

/* 6. Cards & grids ----------------------------------------------------- */
.ac-card { border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-surface); box-shadow: var(--ac-shadow); }
.ac-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--ac-line-2); }
.ac-card__head h2, .ac-card__head h3 { font-size: 1rem; font-weight: 650; letter-spacing: -.01em; }
.ac-card__head p { color: var(--ac-text-3); font-size: .8125rem; }
.ac-card__body { padding: 1.25rem; }
.ac-card .ac-card__body > * + * { margin-top: 1rem; }
.ac-card--flush .ac-card__body { padding: 0; }
.ac-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem; padding: .9rem 1.25rem; border-top: 1px solid var(--ac-line-2); background: var(--ac-surface-2); border-radius: 0 0 var(--ac-radius) var(--ac-radius); }
.ac-card--danger { border-color: color-mix(in srgb, var(--ac-danger) 30%, var(--ac-line)); }
.ac-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ac-grid--2, .ac-grid--3, .ac-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ac-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ac-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ac-split { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .ac-split { grid-template-columns: minmax(0, 1fr) 21rem; } .ac-split--wide { grid-template-columns: minmax(0, 1fr) 26rem; } }
.ac-aside { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .ac-aside--sticky { position: sticky; top: calc(var(--ac-top-h) + 3rem); } }

.ac-stat { display: grid; gap: .15rem; padding: 1.1rem 1.25rem; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-surface); box-shadow: var(--ac-shadow); color: inherit; }
a.ac-stat:hover { border-color: color-mix(in srgb, var(--ac-line) 50%, var(--ac-text-3)); }
.ac-stat__label { color: var(--ac-text-3); font-size: .8125rem; font-weight: 500; }
.ac-stat__value { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ac-stat__hint { color: var(--ac-text-3); font-size: .8125rem; }
.ac-stat--warning .ac-stat__value { color: var(--ac-warning); }
.ac-stat--danger .ac-stat__value { color: var(--ac-danger); }

.ac-kv { display: grid; gap: .85rem; margin: 0; }
.ac-kv > div { display: grid; gap: .1rem; }
.ac-kv dt { color: var(--ac-text-3); font-size: .8125rem; }
.ac-kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 640px) { .ac-kv--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ac-kv--cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ac-kv--inline > div { display: flex; justify-content: space-between; gap: 1rem; }
.ac-kv--inline dd { text-align: right; }

.ac-list { display: grid; margin: 0; padding: 0; list-style: none; }
.ac-list > li, .ac-list__row { display: flex; align-items: center; gap: .85rem; padding: .85rem 1.25rem; border-top: 1px solid var(--ac-line-2); color: inherit; }
.ac-list > li:first-child, .ac-list__row:first-child { border-top: 0; }
a.ac-list__row:hover { background: var(--ac-surface-2); }
.ac-list__main { flex: 1; min-width: 0; display: grid; }
.ac-list__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-list__sub { color: var(--ac-text-3); font-size: .8125rem; }
.ac-list__end { text-align: right; font-variant-numeric: tabular-nums; }

.ac-hero { display: grid; gap: 1.25rem; padding: 1.5rem; border-radius: var(--ac-radius); background: linear-gradient(135deg, #111827, #1f2937 55%, #3b1d1b); color: #fff; }
@media (min-width: 800px) { .ac-hero { grid-template-columns: 1fr auto; align-items: center; padding: 2rem; } }
.ac-hero h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; }
.ac-hero p { margin-top: .35rem; color: rgba(255, 255, 255, .75); }
.ac-hero .ac-btn--secondary { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.ac-hero .ac-btn--secondary:hover { background: rgba(255,255,255,.18); }
.ac-hero .ac-btn--primary { background: #fff; color: #111827; }

/* 7. Badges ------------------------------------------------------------ */
.ac-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; background: var(--ac-neutral-bg); color: var(--ac-neutral); font-size: .75rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.ac-badge::before { content: ""; width: .4rem; height: .4rem; border-radius: 999px; background: currentColor; opacity: .8; }
.ac-badge--plain::before { display: none; }
.ac-badge--success { background: var(--ac-success-bg); color: var(--ac-success); }
.ac-badge--warning { background: var(--ac-warning-bg); color: var(--ac-warning); }
.ac-badge--danger { background: var(--ac-danger-bg); color: var(--ac-danger); }
.ac-badge--info { background: var(--ac-info-bg); color: var(--ac-info); }
.ac-chip { display: inline-flex; align-items: center; padding: .2rem .6rem; border: 1px solid var(--ac-line); border-radius: 999px; font-size: .8125rem; color: var(--ac-text-2); }

/* 8. Forms ------------------------------------------------------------- */
.ac-form { display: grid; gap: 1.1rem; }
.ac-form--cols { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ac-form--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ac-span-2 { grid-column: 1 / -1; } }
.ac-field { display: grid; gap: .35rem; align-content: start; }
.ac-label { font-size: .875rem; font-weight: 600; color: var(--ac-text); }
.ac-label small { font-weight: 400; color: var(--ac-text-3); }
.ac-input, .ac-select, .ac-textarea { width: 100%; min-height: 2.6rem; padding: .55rem .8rem; border: 1px solid var(--ac-line); border-radius: 10px; background: var(--ac-surface); color: var(--ac-text); font: inherit; font-size: .9375rem; transition: border-color .12s, box-shadow .12s; }
.ac-textarea { min-height: 6rem; resize: vertical; }
.ac-input::placeholder, .ac-textarea::placeholder { color: var(--ac-text-3); opacity: .8; }
.ac-input:hover, .ac-select:hover, .ac-textarea:hover { border-color: color-mix(in srgb, var(--ac-line) 50%, var(--ac-text-3)); }
.ac-input:focus, .ac-select:focus, .ac-textarea:focus { outline: none; border-color: var(--ac-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac-ink) 12%, transparent); }
.ac-input[readonly], .ac-input:disabled, .ac-select:disabled { background: var(--ac-surface-2); color: var(--ac-text-3); }
.ac-field.has-error .ac-input, .ac-field.has-error .ac-select, .ac-input.is-invalid { border-color: var(--ac-danger); }
.ac-help { color: var(--ac-text-3); font-size: .8125rem; }
.ac-error { color: var(--ac-danger); font-size: .8125rem; font-weight: 500; }
.ac-input-group { display: flex; }
.ac-input-group .ac-input { border-radius: 10px 0 0 10px; }
.ac-input-group .ac-btn { border-radius: 0 10px 10px 0; }
.ac-check { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; cursor: pointer; }
.ac-check input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--ac-ink); }
.ac-choice { display: flex; align-items: flex-start; gap: .75rem; padding: .9rem 1rem; border: 1px solid var(--ac-line); border-radius: 12px; cursor: pointer; transition: border-color .12s, background .12s; }
.ac-choice:hover { background: var(--ac-surface-2); }
.ac-choice:has(input:checked) { border-color: var(--ac-ink); background: var(--ac-surface-2); box-shadow: inset 0 0 0 1px var(--ac-ink); }
.ac-choice input { margin-top: .2rem; accent-color: var(--ac-ink); }
.ac-choice strong { display: block; font-weight: 600; }
.ac-choice small { color: var(--ac-text-3); }
.ac-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ac-chips button { padding: .4rem .85rem; border: 1px solid var(--ac-line); border-radius: 999px; background: var(--ac-surface); color: var(--ac-text); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; }
.ac-chips button:hover, .ac-chips button.is-active { background: var(--ac-ink); border-color: var(--ac-ink); color: var(--ac-ink-text); }
.ac-search { display: flex; gap: .5rem; }
.ac-search .ac-input { flex: 1; }
.ac-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ac-filters .ac-input, .ac-filters .ac-select { width: auto; min-width: 9rem; }
.ac-filters .ac-search { flex: 1; min-width: 14rem; }

/* 9. Tables ------------------------------------------------------------ */
.ac-table-wrap { overflow-x: auto; }
.ac-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ac-table th { padding: .7rem 1.25rem; background: var(--ac-surface-2); border-bottom: 1px solid var(--ac-line); color: var(--ac-text-3); font-size: .75rem; font-weight: 600; letter-spacing: .02em; text-align: left; white-space: nowrap; }
.ac-table td { padding: .85rem 1.25rem; border-top: 1px solid var(--ac-line-2); vertical-align: middle; }
.ac-table tbody tr:first-child td { border-top: 0; }
.ac-table tbody tr:hover { background: var(--ac-surface-2); }
.ac-table .is-end { text-align: right; }
.ac-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.ac-table td a.ac-cell-link { font-weight: 600; }
.ac-table td a.ac-cell-link:hover { text-decoration: underline; }
@media (max-width: 719px) {
  .ac-table--cards thead { display: none; }
  .ac-table--cards, .ac-table--cards tbody, .ac-table--cards tr, .ac-table--cards td { display: block; width: 100%; }
  .ac-table--cards tr { padding: .9rem 1.1rem; border-top: 1px solid var(--ac-line-2); }
  .ac-table--cards tbody tr:first-child { border-top: 0; }
  .ac-table--cards td { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border: 0; text-align: right; }
  .ac-table--cards td::before { content: attr(data-label); color: var(--ac-text-3); font-size: .8125rem; text-align: left; }
  .ac-table--cards td[data-label=""]::before, .ac-table--cards td:not([data-label])::before { display: none; }
  .ac-table--cards td.is-primary { display: block; padding-bottom: .4rem; text-align: left; font-size: 1rem; }
  .ac-table--cards td.is-primary::before { display: none; }
  .ac-table--cards td.is-actions { justify-content: flex-end; padding-top: .5rem; }
}
.ac-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.25rem; border-top: 1px solid var(--ac-line-2); color: var(--ac-text-3); font-size: .8125rem; }
.ac-pagination nav { display: flex; gap: .3rem; flex-wrap: wrap; }
.ac-pagination a, .ac-pagination span[aria-current] { padding: .3rem .65rem; border: 1px solid var(--ac-line); border-radius: 8px; color: var(--ac-text); }
.ac-pagination span[aria-current] { background: var(--ac-ink); border-color: var(--ac-ink); color: var(--ac-ink-text); }

.ac-seg { display: inline-flex; gap: .2rem; padding: .2rem; border-radius: 10px; background: var(--ac-neutral-bg); overflow-x: auto; max-width: 100%; }
.ac-seg a, .ac-seg button { flex: none; padding: .4rem .8rem; border: 0; border-radius: 8px; background: none; color: var(--ac-text-2); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ac-seg a.is-active, .ac-seg button.is-active { background: var(--ac-surface); color: var(--ac-text); box-shadow: var(--ac-shadow); }
.ac-seg small { margin-left: .3rem; color: var(--ac-text-3); font-weight: 600; }
.ac-progress { height: .45rem; border-radius: 999px; background: var(--ac-neutral-bg); overflow: hidden; }
.ac-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--ac-ink); }

/* 10. Empty, callouts, alerts ------------------------------------------ */
.ac-empty { display: grid; justify-items: center; gap: .6rem; padding: 3rem 1.5rem; text-align: center; }
.ac-empty__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--ac-neutral-bg); color: var(--ac-text-3); }
.ac-empty h2, .ac-empty h3 { font-size: 1.05rem; font-weight: 650; }
.ac-empty p { max-width: 26rem; color: var(--ac-text-3); }
.ac-alert, .ac-callout { display: flex; align-items: flex-start; gap: .65rem; padding: .85rem 1rem; border: 1px solid transparent; border-radius: 12px; font-size: .9rem; }
.ac-alert--success, .ac-callout--success { background: var(--ac-success-bg); color: var(--ac-success); border-color: color-mix(in srgb, var(--ac-success) 20%, transparent); }
.ac-alert--danger, .ac-callout--danger { background: var(--ac-danger-bg); color: var(--ac-danger); border-color: color-mix(in srgb, var(--ac-danger) 20%, transparent); }
.ac-alert--info, .ac-callout--info { background: var(--ac-info-bg); color: var(--ac-info); border-color: color-mix(in srgb, var(--ac-info) 20%, transparent); }
.ac-callout--warning { background: var(--ac-warning-bg); color: var(--ac-warning); border-color: color-mix(in srgb, var(--ac-warning) 25%, transparent); }
.ac-callout__body { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.ac-callout__body strong { color: inherit; }
.ac-callout__body span { color: var(--ac-text-2); font-size: .875rem; }
.ac-callout .ac-btn { flex: none; }

/* 11. Steps, timeline --------------------------------------------------- */
.ac-steps { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; }
.ac-steps li { flex: 1; min-width: 5.5rem; padding-top: .6rem; border-top: 3px solid var(--ac-line); color: var(--ac-text-3); font-size: .8125rem; font-weight: 500; }
.ac-steps li.is-done { border-top-color: var(--ac-success); color: var(--ac-text-2); }
.ac-steps li.is-current { border-top-color: var(--ac-ink); color: var(--ac-text); font-weight: 650; }
.ac-timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.ac-timeline li { position: relative; padding: 0 0 1rem 1.4rem; }
.ac-timeline li::before { content: ""; position: absolute; top: .45rem; left: .1rem; width: .5rem; height: .5rem; border-radius: 999px; background: var(--ac-text-3); }
.ac-timeline li::after { content: ""; position: absolute; top: 1.1rem; bottom: 0; left: calc(.1rem + .23rem); width: 1px; background: var(--ac-line); }
.ac-timeline li:last-child::after { display: none; }
.ac-timeline strong { font-weight: 600; }
.ac-timeline small { display: block; color: var(--ac-text-3); }
.ac-divider { height: 1px; margin: 0; border: 0; background: var(--ac-line-2); }
.ac-icon-tile { display: inline-grid; flex: none; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--ac-neutral-bg); color: var(--ac-text-2); }
.ac-icon-tile--brand { background: var(--ac-brand-soft); color: var(--ac-brand); }
.ac-icon-tile--success { background: var(--ac-success-bg); color: var(--ac-success); }
.ac-icon-tile--warning { background: var(--ac-warning-bg); color: var(--ac-warning); }
.ac-icon-tile--danger { background: var(--ac-danger-bg); color: var(--ac-danger); }
.ac-action-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .ac-action-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ac-action { display: grid; gap: .6rem; justify-items: start; padding: 1rem; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-surface); box-shadow: var(--ac-shadow); font-weight: 600; transition: border-color .12s; }
.ac-action:hover { border-color: var(--ac-ink); }
.ac-action small { display: block; color: var(--ac-text-3); font-weight: 400; font-size: .8125rem; }

/* 12. Modal & PIN ------------------------------------------------------- */
.ac-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; }
.ac-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 20, 25, .5); }
.ac-modal__panel { position: relative; display: grid; gap: 1rem; width: min(30rem, 100%); max-height: 90vh; overflow: auto; padding: 1.5rem; border-radius: 16px; background: var(--ac-surface); box-shadow: var(--ac-shadow-lg); }
.ac-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ac-modal__head h2 { font-size: 1.125rem; font-weight: 700; }
.ac-modal__head p { margin-top: .2rem; color: var(--ac-text-3); font-size: .875rem; }
.ac-modal__head svg { transform: rotate(45deg); }
.ac-pin { padding: 1rem; border-radius: 12px; background: var(--ac-neutral-bg); font: 700 2rem ui-monospace, Menlo, monospace; letter-spacing: .25em; text-align: center; }

@media print { .ac-top, .ac-tabbar, .ac-footer, .ac-sub { display: none; } body.ac { background: #fff; } }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.ac .da-location-fields--inline { display: contents; }
.ac .da-location-fields--inline > div { display: grid; gap: .35rem; align-content: start; }
.ac-invoice-paper { position: relative; overflow-x: auto; padding: 1.5rem; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: #fff; color: #18181b; box-shadow: var(--ac-shadow); }
@media (min-width: 640px) { .ac-invoice-paper { padding: 2rem; } }
.ac-btn.is-active { border-color: var(--ac-ink); }

/* Support tickets */
.ac-link-row { cursor: pointer; }
.ac-dept { display: flex; align-items: flex-start; gap: .85rem; padding: 1rem; border: 1px solid var(--ac-line); border-radius: 12px; background: var(--ac-surface); color: var(--ac-text); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s; }
.ac-dept:hover { background: var(--ac-surface-2); }
.ac-dept.is-selected { border-color: var(--ac-ink); box-shadow: inset 0 0 0 1px var(--ac-ink); }
.ac-dept strong { display: block; font-weight: 600; }
.ac-dept small { display: block; color: var(--ac-text-3); font-size: .8125rem; }
.ac-wizard { display: grid; gap: 1rem; }
.ac-wizard__progress { display: grid; gap: .6rem; }
.ac-dropzone { display: grid; gap: .2rem; padding: 1.5rem; border: 2px dashed var(--ac-line); border-radius: 12px; background: var(--ac-surface-2); text-align: center; cursor: pointer; }
.ac-dropzone span { color: var(--ac-text-3); font-size: .8125rem; }
.ac-dropzone:hover, .ac-dropzone.is-over { border-color: var(--ac-ink); }
.ac-dropzone--compact { padding: .9rem; }
.ac-msg { display: grid; gap: .6rem; padding: 1rem 1.15rem; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-surface); box-shadow: var(--ac-shadow); }
.ac-msg--agent { background: var(--ac-info-bg); border-color: color-mix(in srgb, var(--ac-info) 20%, var(--ac-line)); }
.ac-msg__meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--ac-text-3); font-size: .8125rem; }
.ac-msg__meta strong { color: var(--ac-text); }
.ac-msg__role { margin-left: .4rem; padding: .05rem .45rem; border-radius: 999px; background: var(--ac-neutral-bg); font-size: .6875rem; font-weight: 600; }
.ac-msg__body { overflow-wrap: anywhere; }
.ac-msg__files { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.ac-msg__files a { padding: .25rem .6rem; border: 1px solid var(--ac-line); border-radius: 8px; font-size: .8125rem; }
.ac-toast { position: fixed; right: 1rem; bottom: 5.5rem; z-index: 80; padding: .7rem 1rem; border-radius: 10px; background: var(--ac-ink); color: var(--ac-ink-text); box-shadow: var(--ac-shadow-lg); font-size: .875rem; }
.ac-summary-lines { display: grid; gap: .5rem; margin: 0; }
.ac-summary-lines > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.ac-summary-lines dt { color: var(--ac-text-3); }
.ac-summary-lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.ac-summary-lines .is-total { padding-top: .75rem; border-top: 1px solid var(--ac-line); }
.ac-summary-lines .is-total dt { color: var(--ac-text); font-weight: 600; }
.ac-summary-lines .is-total dd { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }

/* Signed-out screens */
.ac-auth-page { display: flex; flex-direction: column; min-height: 100vh; }
.ac-auth-top { display: flex; align-items: center; justify-content: space-between; max-width: var(--ac-max); width: 100%; margin: 0 auto; padding: 1.25rem 1rem; }
.ac-auth-main { flex: 1; display: grid; place-items: start center; padding: 1rem 1rem 3rem; }
.ac-auth-card { width: min(28rem, 100%); display: grid; gap: 1.25rem; padding: 1.75rem; border: 1px solid var(--ac-line); border-radius: 18px; background: var(--ac-surface); box-shadow: var(--ac-shadow-lg); }
@media (min-width: 640px) { .ac-auth-card { padding: 2.25rem; margin-top: 2rem; } }
.ac-auth-card--wide { width: min(46rem, 100%); }
.ac-auth-card h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.ac-auth-card .ac-lead { margin-top: .4rem; color: var(--ac-text-3); }
.ac-auth-card--center { text-align: center; justify-items: center; }
.ac-auth-foot { text-align: center; color: var(--ac-text-3); font-size: .875rem; }
.ac-auth-foot a, .ac-auth-foot button { color: var(--ac-text); font-weight: 600; background: none; border: 0; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ac-or { display: flex; align-items: center; gap: .75rem; color: var(--ac-text-3); font-size: .8125rem; }
.ac-or::before, .ac-or::after { content: ""; flex: 1; height: 1px; background: var(--ac-line); }
.ac-pw { position: relative; }
.ac-pw .ac-input { padding-right: 4.5rem; }
.ac-pw button { position: absolute; top: 50%; right: .4rem; transform: translateY(-50%); padding: .3rem .6rem; border: 0; border-radius: 8px; background: none; color: var(--ac-text-2); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.ac-pw button:hover { background: var(--ac-neutral-bg); }
.ac-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 1rem; border-radius: 12px; background: var(--ac-neutral-bg); list-style: none; font-family: ui-monospace, Menlo, monospace; text-align: center; }
.ac-big-icon { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 16px; background: var(--ac-neutral-bg); color: var(--ac-text); }
.ac-big-icon--success { background: var(--ac-success-bg); color: var(--ac-success); }

@media (max-width: 520px) {
  .ac-brand__name { display: none; }
  .ac-user > svg { display: none; }
  .ac-top__inner { gap: .5rem; }
}

/* Register & transfer flows */
.ac-narrow { width: 100%; max-width: 56rem; margin-inline: auto; display: grid; gap: 1.5rem; }
.ac-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.ac-flow li { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border: 1px solid var(--ac-line); border-radius: 12px; background: var(--ac-surface); color: var(--ac-text-3); font-size: .8125rem; font-weight: 500; counter-increment: flow; }
.ac-flow li::before { content: counter(flow); display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--ac-neutral-bg); font-size: .75rem; font-weight: 700; }
.ac-flow li.is-current { border-color: var(--ac-ink); color: var(--ac-text); font-weight: 600; }
.ac-flow li.is-current::before { background: var(--ac-ink); color: var(--ac-ink-text); }
.ac-flow li.is-done { color: var(--ac-text-2); }
.ac-flow li.is-done::before { content: "✓"; background: var(--ac-success-bg); color: var(--ac-success); }
@media (max-width: 560px) { .ac-flow li { flex-direction: column; text-align: center; gap: .3rem; padding: .6rem .3rem; font-size: .75rem; } }

.ac-finder { display: grid; gap: 1rem; padding: 1.5rem; border-radius: 18px; background: linear-gradient(135deg, #111827, #1f2937 60%, #3b1d1b); color: #fff; }
@media (min-width: 640px) { .ac-finder { padding: 2.25rem; } }
.ac-finder h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.025em; }
.ac-finder p { color: rgba(255, 255, 255, .72); }
.ac-finder__bar { display: grid; gap: .6rem; }
@media (min-width: 640px) { .ac-finder__bar { grid-template-columns: 1fr auto; } }
.ac-finder__input { width: 100%; min-height: 3.4rem; padding: .8rem 1.1rem; border: 2px solid transparent; border-radius: 14px; background: #fff; color: #111827; font: inherit; font-size: 1.1rem; font-weight: 500; }
.ac-finder__input:focus { outline: none; border-color: var(--ac-brand); }
.ac-finder__opts { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; color: rgba(255, 255, 255, .8); font-size: .875rem; }
.ac-finder__opts select { min-height: 2.25rem; padding: .3rem .6rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; }
.ac-finder__opts select option { color: #111827; }
.ac-finder .ac-btn--brand { min-height: 3.4rem; padding-inline: 1.75rem; font-size: 1rem; }

.ac-result { overflow: hidden; }
.ac-result__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--ac-line-2); }
.ac-result__name { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; word-break: break-all; }
.ac-result--ok .ac-result__head { background: var(--ac-success-bg); }
.ac-result--no .ac-result__head { background: var(--ac-danger-bg); }
.ac-result__body { display: grid; gap: 1.25rem; padding: 1.5rem; }
.ac-tiles { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.ac-tile { position: relative; display: grid; gap: .1rem; padding: .9rem 1rem; border: 1px solid var(--ac-line); border-radius: 12px; background: var(--ac-surface); cursor: pointer; transition: border-color .12s, background .12s; }
.ac-tile:hover { background: var(--ac-surface-2); }
.ac-tile:has(input:checked) { border-color: var(--ac-ink); background: var(--ac-surface-2); box-shadow: inset 0 0 0 1px var(--ac-ink); }
.ac-tile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ac-tile__term { color: var(--ac-text-3); font-size: .8125rem; font-weight: 500; }
.ac-tile__price { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ac-tile__per { color: var(--ac-text-3); font-size: .75rem; }
.ac-tile__tag { position: absolute; top: -.5rem; right: .6rem; padding: .05rem .5rem; border-radius: 999px; background: var(--ac-ink); color: var(--ac-ink-text); font-size: .6875rem; font-weight: 600; }
.ac-buybar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; border-top: 1px solid var(--ac-line-2); background: var(--ac-surface-2); }
.ac-buybar__total { display: grid; }
.ac-buybar__total span { color: var(--ac-text-3); font-size: .8125rem; }
.ac-buybar__total strong { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ac-suggest { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.ac-suggest button { display: flex; justify-content: space-between; gap: .5rem; width: 100%; padding: .7rem .9rem; border: 1px solid var(--ac-line); border-radius: 10px; background: var(--ac-surface); color: var(--ac-text); font: inherit; font-size: .875rem; cursor: pointer; }
.ac-suggest button:hover { border-color: var(--ac-ink); }
.ac-suggest span { color: var(--ac-text-3); }
.ac-num-list { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; counter-reset: n; }
.ac-num-list li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; counter-increment: n; }
.ac-num-list li::before { content: counter(n); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--ac-neutral-bg); font-size: .8125rem; font-weight: 700; }
.ac-num-list strong { display: block; font-weight: 600; }
.ac-num-list span { color: var(--ac-text-3); font-size: .875rem; }
.ac-reveal { position: relative; }
.ac-reveal .ac-input { padding-right: 4.5rem; font-family: ui-monospace, Menlo, monospace; }
.ac-reveal button { position: absolute; top: 50%; right: .4rem; transform: translateY(-50%); padding: .3rem .6rem; border: 0; border-radius: 8px; background: none; color: var(--ac-text-2); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.ac-price-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.ac-price-table th { padding: .4rem 0; color: var(--ac-text-3); font-size: .75rem; font-weight: 600; text-align: left; }
.ac-price-table td { padding: .55rem 0; border-top: 1px solid var(--ac-line-2); }
.ac-price-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.ac-renew-timeline { display: flex; align-items: stretch; gap: .75rem; }
.ac-renew-timeline > div { flex: 1; display: grid; gap: .1rem; padding: .85rem 1rem; border: 1px solid var(--ac-line); border-radius: 12px; }
.ac-renew-timeline span { color: var(--ac-text-3); font-size: .8125rem; }
.ac-renew-timeline strong { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.ac-renew-timeline .is-new { border-color: var(--ac-success); background: var(--ac-success-bg); }
.ac-renew-timeline__arrow { align-self: center; flex: none !important; color: var(--ac-text-3); font-size: 1.25rem; }
@media (max-width: 520px) { .ac-renew-timeline { flex-direction: column; } .ac-renew-timeline__arrow { transform: rotate(90deg); align-self: center; } }

/* Checkout */
.ac-narrow--wide { max-width: 72rem; }
.ac-secure { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: var(--ac-success-bg); color: var(--ac-success); font-size: .8125rem; font-weight: 600; }
.ac-stepper { display: flex; margin: 0; padding: 0; list-style: none; }
.ac-stepper li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding-top: .1rem; color: var(--ac-text-3); font-size: .8125rem; font-weight: 500; text-align: center; }
.ac-stepper li:not(:last-child)::after { content: ""; position: absolute; top: .95rem; left: calc(50% + 1.2rem); right: calc(-50% + 1.2rem); height: 2px; background: var(--ac-line); }
.ac-stepper li.is-done:not(:last-child)::after { background: var(--ac-success); }
.ac-stepper__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 999px; background: var(--ac-surface); box-shadow: 0 0 0 2px var(--ac-line); color: var(--ac-text-3); font-size: .8125rem; font-weight: 700; }
.ac-stepper li.is-current { color: var(--ac-text); font-weight: 650; }
.ac-stepper li.is-current .ac-stepper__dot { background: var(--ac-ink); box-shadow: none; color: var(--ac-ink-text); }
.ac-stepper li.is-done .ac-stepper__dot { background: var(--ac-success); box-shadow: none; color: #fff; }
.ac-section-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.ac-item .ac-result__head { background: var(--ac-surface-2); }
.ac-expiry { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; font-size: .875rem; }
.ac-expiry svg { color: var(--ac-text-3); }
.ac-switch { display: flex; align-items: flex-start; gap: .9rem; cursor: pointer; }
.ac-switch input { position: absolute; opacity: 0; }
.ac-switch__track { position: relative; flex: none; width: 2.75rem; height: 1.6rem; border-radius: 999px; background: var(--ac-line); transition: background .15s; }
.ac-switch__track::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.ac-switch input:checked + .ac-switch__track { background: var(--ac-success); }
.ac-switch input:checked + .ac-switch__track::after { transform: translateX(1.15rem); }
.ac-switch input:focus-visible + .ac-switch__track { outline: 2px solid var(--ac-focus); outline-offset: 2px; }
.ac-switch__text { display: grid; gap: .15rem; }
.ac-switch__text small { color: var(--ac-text-3); font-size: .8125rem; }
.ac-perks > div { display: grid; gap: .2rem; padding: 1rem; border: 1px solid var(--ac-line); border-radius: 12px; background: var(--ac-surface); }
.ac-perks svg { color: var(--ac-brand); }
.ac-perks span { color: var(--ac-text-3); font-size: .8125rem; }
@media (max-width: 560px) { .ac-stepper li { font-size: .6875rem; } .ac-stepper li:not(:last-child)::after { left: calc(50% + 1rem); right: calc(-50% + 1rem); } }
.ac-cart-item { flex-wrap: wrap; }
.ac-trust { display: grid; gap: .5rem; margin: 0; padding: 0 .25rem; list-style: none; color: var(--ac-text-3); font-size: .8125rem; }
.ac-trust li { display: flex; align-items: center; gap: .5rem; }
.ac-trust svg { color: var(--ac-success); }

/* Domains list & workspace */
.ac-dom-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .ac-dom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ac-dom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ac-dom-card { position: relative; display: grid; gap: .85rem; align-content: start; padding: 1.15rem 1.25rem 1.1rem; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); background: var(--ac-surface); box-shadow: var(--ac-shadow); overflow: hidden; }
.ac-dom-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--ac-line); }
.ac-dom-card--success::before { background: var(--ac-success); }
.ac-dom-card--warning::before { background: var(--ac-warning); }
.ac-dom-card--danger::before { background: var(--ac-danger); }
.ac-dom-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.ac-dom-card__name { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; word-break: break-all; }
.ac-dom-card__name:hover { text-decoration: underline; }
.ac-dom-card__expiry { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.ac-dom-card__expiry span { display: block; color: var(--ac-text-3); font-size: .75rem; }
.ac-dom-card__expiry strong { font-size: .95rem; }
.ac-dom-card__days { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ac-dom-card__days.is-success { color: var(--ac-success); } .ac-dom-card__days.is-warning { color: var(--ac-warning); } .ac-dom-card__days.is-danger { color: var(--ac-danger); }
.ac-dom-card__flags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.ac-dom-card__flags li { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; background: var(--ac-neutral-bg); color: var(--ac-text-3); font-size: .75rem; font-weight: 500; }
.ac-dom-card__flags li.is-on { background: var(--ac-success-bg); color: var(--ac-success); }
.ac-dom-card__actions { display: flex; gap: .4rem; padding-top: .25rem; border-top: 1px solid var(--ac-line-2); padding-top: .8rem; }

.ac-dom-hero { display: grid; gap: 1.5rem; padding: 1.5rem; border: 1px solid var(--ac-line); border-radius: 18px; background: var(--ac-surface); box-shadow: var(--ac-shadow); }
@media (min-width: 860px) { .ac-dom-hero { grid-template-columns: minmax(0, 1fr) 17rem; padding: 1.75rem; } }
.ac-dom-hero__main { display: grid; gap: 1.25rem; align-content: start; }
.ac-dom-hero__name { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; word-break: break-all; line-height: 1.15; }
.ac-dom-facts { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin: 0; }
.ac-dom-facts dt { color: var(--ac-text-3); font-size: .75rem; }
.ac-dom-facts dd { margin: .1rem 0 0; font-weight: 600; }
.ac-dom-hero__side { display: grid; gap: .6rem; align-content: start; padding: 1.1rem; border-radius: 14px; background: var(--ac-surface-2); }
.ac-dom-hero__days { font-size: 2.4rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ac-dom-hero__days small { font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--ac-text-3); }
.ac-dom-hero__days.is-success { color: var(--ac-success); } .ac-dom-hero__days.is-warning { color: var(--ac-warning); } .ac-dom-hero__days.is-danger { color: var(--ac-danger); }
.ac-meter { height: .5rem; border-radius: 999px; background: var(--ac-line); overflow: hidden; }
.ac-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--ac-ink); }
.ac-meter--success > span { background: var(--ac-success); } .ac-meter--warning > span { background: var(--ac-warning); } .ac-meter--danger > span { background: var(--ac-danger); }

.ac-ws { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 960px) { .ac-ws { grid-template-columns: 15rem minmax(0, 1fr); gap: 1.75rem; } }
.ac-ws__nav { display: flex; gap: .25rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.ac-ws__nav::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .ac-ws__nav { position: sticky; top: calc(var(--ac-top-h) + 3.5rem); flex-direction: column; overflow: visible; gap: .15rem; } }
.ac-ws__group { display: none; margin: .9rem 0 .25rem .75rem; color: var(--ac-text-3); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ac-ws__group:first-child { margin-top: 0; }
@media (min-width: 960px) { .ac-ws__group { display: block; } }
.ac-ws__link { flex: none; display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 10px; color: var(--ac-text-2); font-size: .875rem; font-weight: 500; white-space: nowrap; }
.ac-ws__link:hover { background: var(--ac-neutral-bg); color: var(--ac-text); }
.ac-ws__link.is-active { background: var(--ac-ink); color: var(--ac-ink-text); font-weight: 600; }
.ac-ws__link small { margin-left: auto; padding: .05rem .45rem; border-radius: 999px; background: var(--ac-neutral-bg); color: var(--ac-text-2); font-size: .6875rem; font-weight: 700; }
.ac-ws__main { min-width: 0; display: grid; gap: 1.25rem; }
.ac-ws__main > .ac-split { grid-template-columns: minmax(0, 1fr); }
.ac-ws__main .ac-aside--sticky { position: static; }
.ac-switch-btn { position: relative; width: 2.75rem; height: 1.6rem; border: 0; border-radius: 999px; background: var(--ac-line); cursor: pointer; transition: background .15s; }
.ac-switch-btn span { position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.ac-switch-btn.is-on { background: var(--ac-success); }
.ac-switch-btn.is-on span { transform: translateX(1.15rem); }
.ac-dom-row td:first-child { box-shadow: inset 4px 0 0 var(--ac-line); }
.ac-dom-row--success td:first-child { box-shadow: inset 4px 0 0 var(--ac-success); }
.ac-dom-row--warning td:first-child { box-shadow: inset 4px 0 0 var(--ac-warning); }
.ac-dom-row--danger td:first-child { box-shadow: inset 4px 0 0 var(--ac-danger); }
.ac-dom-table .ac-cell-link { font-size: 1rem; }
.ac-dom-icons { display: inline-flex; gap: .35rem; }
.ac-dom-icons span { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; background: var(--ac-neutral-bg); color: var(--ac-text-3); }
.ac-dom-icons span.is-on { background: var(--ac-success-bg); color: var(--ac-success); }
@media (max-width: 719px) { .ac-dom-row td:first-child { box-shadow: none; } .ac-dom-row { border-left: 4px solid var(--ac-line); } .ac-dom-row--success { border-left-color: var(--ac-success); } .ac-dom-row--warning { border-left-color: var(--ac-warning); } .ac-dom-row--danger { border-left-color: var(--ac-danger); } }
