/* Mailvora design system
   ------------------------------------------------------------------------
   Tokens first (light, then dark), then base, layout and components.
   Theme: refined emerald on graphite. Neutrals carry a faint green undertone
   so the accent, the landing video and the surfaces read as one palette.
   Status colours are reserved for state and always paired with an icon and
   text. */

:root {
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --brand-900: #08100d;
  --brand-800: #0f211b;
  --brand-700: #065f46;
  --brand-600: #0b7a5c;
  --brand-500: #0e8f6b;
  --brand-400: #22b07f;
  --brand-300: #5fd4a8;
  --brand-200: #a7ebcf;
  --brand-100: #d7f5e8;
  --brand-50: #effaf5;

  --bg: #f6f7f6;
  --surface: #ffffff;
  --surface-2: #f8f9f8;
  --surface-3: #eef0ef;
  --border: #e3e7e5;
  --border-strong: #cbd2cf;
  --text: #111816;
  --text-2: #3d4844;
  --text-3: #66726d;
  --accent: var(--brand-600);
  --accent-hover: var(--brand-700);
  --accent-soft: var(--brand-50);
  --accent-text: #ffffff;
  --accent-ring: rgba(11, 122, 92, .28);
  --sidebar-bg: var(--brand-900);
  --sidebar-text: #cddbd4;
  --sidebar-muted: #8fa39a;
  --sidebar-active: rgba(95, 212, 168, .16);

  --success: #1a7f37;
  --success-soft: #e6f4e8;
  --warning: #9a5b00;
  --warning-soft: #fff3dc;
  --danger: #b4233c;
  --danger-soft: #fdebee;
  --info: #145f91;
  --info-soft: #e5f2fb;
  --neutral: #54625d;
  --neutral-soft: #eef1f0;

  --s-delivered: #1f8a63;
  --s-accepted: #4aa3c8;
  --s-pending: #c9a227;
  --s-failed: #c94a5f;
  --s-other: #9aa6a2;

  --shadow-sm: 0 1px 2px rgba(10, 20, 16, .06);
  --shadow: 0 1px 3px rgba(10, 20, 16, .08), 0 1px 2px rgba(10, 20, 16, .05);
  --shadow-lg: 0 18px 40px rgba(10, 20, 16, .16);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --sidebar-w: 256px;
  --topbar-h: 60px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f0d;
    --surface: #111816;
    --surface-2: #151d1a;
    --surface-3: #1b2521;
    --border: #232e2a;
    --border-strong: #31403a;
    --text: #e9efec;
    --text-2: #b5c2bd;
    --text-3: #8a9893;
    --accent: var(--brand-300);
    --accent-hover: var(--brand-200);
    --accent-soft: #0f2b22;
    --accent-text: #0a0f0d;
    --accent-ring: rgba(95, 212, 168, .32);
    --sidebar-bg: #050a08;
    --success: #6fdd8b;
    --success-soft: #13291a;
    --warning: #f0b955;
    --warning-soft: #33280f;
    --danger: #f2788c;
    --danger-soft: #3a1820;
    --info: #6cb8ea;
    --info-soft: #112a3a;
    --neutral: #a6b3ad;
    --neutral-soft: #1a2420;
    --s-delivered: #4fd1a0;
    --s-accepted: #6cb8ea;
    --s-pending: #e3c058;
    --s-failed: #f2788c;
    --s-other: #6f7d77;
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f0d; --surface: #111816; --surface-2: #151d1a; --surface-3: #1b2521; --border: #232e2a;
  --border-strong: #31403a; --text: #e9efec; --text-2: #b5c2bd; --text-3: #8a9893; --accent: var(--brand-300);
  --accent-hover: var(--brand-200); --accent-soft: #0f2b22; --accent-text: #0a0f0d; --accent-ring: rgba(95, 212, 168, .32);
  --sidebar-bg: #050a08; --success: #6fdd8b; --success-soft: #13291a; --warning: #f0b955; --warning-soft: #33280f;
  --danger: #f2788c; --danger-soft: #3a1820; --info: #6cb8ea; --info-soft: #112a3a; --neutral: #a6b3ad;
  --neutral-soft: #1a2420; --s-delivered: #4fd1a0; --s-accepted: #6cb8ea; --s-pending: #e3c058; --s-failed: #f2788c;
  --s-other: #6f7d77; --shadow-lg: 0 18px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ── base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: 1.6rem; font-weight: 750; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0 0 .8rem; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
small, .small { font-size: .85rem; }
code, kbd, pre, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-3); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
kbd { border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 .35em; background: var(--surface); }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-200); color: var(--brand-900); }
.muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.break { overflow-wrap: anywhere; }
.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; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--accent); color: var(--accent-text); padding: 10px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.icon-xs { width: 13px; height: 13px; vertical-align: -2px; }
.icon-sm { width: 15px; height: 15px; vertical-align: -2px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .span-2 { grid-column: auto; } }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.25rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 40px;
  padding: .5rem .95rem; border: 1px solid var(--btn-bd); border-radius: var(--radius-sm); background: var(--btn-bg);
  color: var(--btn-fg); font: 600 .92rem/1.2 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; box-shadow: var(--shadow-sm);
}
.btn:hover { text-decoration: none; background: var(--surface-2); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"], .btn.is-busy { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--accent-text); --btn-bd: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.btn-danger:hover { background: var(--danger); filter: brightness(.94); color: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--surface-3); }
.btn-soft { --btn-bg: var(--accent-soft); --btn-fg: var(--accent); --btn-bd: transparent; box-shadow: none; }
.btn-sm { min-height: 32px; padding: .3rem .65rem; font-size: .84rem; }
.btn-lg { min-height: 50px; padding: .75rem 1.3rem; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-icon { min-width: 40px; padding: .45rem; }
.btn-sm.btn-icon { min-width: 32px; padding: .3rem; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-button { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.link-danger { color: var(--danger); }

/* ── forms ────────────────────────────────────────────────────────────── */
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field > label, .label { font-weight: 600; font-size: .9rem; color: var(--text); }
.field .hint, .hint { color: var(--text-3); font-size: .84rem; margin: 0; }
.field-error { display: flex; align-items: center; gap: .3rem; color: var(--danger); font-size: .85rem; margin: 0; font-weight: 550; }
.input, input[type=text].input, select.input, textarea.input {
  width: 100%; min-height: 42px; padding: .55rem .75rem; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: 400 .95rem/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 110px; resize: vertical; }
textarea.input.code { font-family: var(--mono); font-size: .86rem; min-height: 260px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input::placeholder { color: var(--text-3); }
select.input { appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a7873' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 16px; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .addon { display: flex; align-items: center; padding: 0 .75rem; background: var(--surface-2); border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); font-size: .9rem; white-space: nowrap; }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: none; }
.password-field { position: relative; }
.password-field .input { padding-right: 2.8rem; }
.password-field .reveal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.check { display: flex; align-items: flex-start; gap: .55rem; cursor: pointer; font-size: .93rem; }
.check input { margin-top: .25rem; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.choice-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice { position: relative; display: flex; gap: .55rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-size: .9rem; }
.choice input { accent-color: var(--accent); margin-top: .2rem; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); background: var(--accent-soft); }
.choice strong { display: block; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
legend { font-weight: 650; margin-bottom: .5rem; padding: 0; }
.form-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: 1.25rem; }
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--border-strong); position: relative; transition: background .15s; cursor: pointer; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: var(--shadow); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }

/* ── cards & surfaces ─────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-body { padding: 1.25rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-foot { padding: .85rem 1.25rem; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card + .card { margin-top: 1.25rem; }
:is(.grid, .grid-2, .grid-3, .grid-4) > .card + .card { margin-top: 0; }
.card-danger { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.card-danger .card-head { background: var(--danger-soft); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.section-title { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 1.75rem 0 .75rem; }
.dl { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: .55rem 1.25rem; margin: 0; }
.dl dt { color: var(--text-3); font-size: .88rem; }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; gap: .15rem; } .dl dd { margin-bottom: .55rem; } }

.stat { padding: 1.1rem 1.2rem; }
.stat-label { display: flex; align-items: center; gap: .45rem; color: var(--text-3); font-size: .85rem; font-weight: 600; }
.stat-value { font-size: 1.75rem; font-weight: 750; letter-spacing: -.02em; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.stat-foot { color: var(--text-3); font-size: .82rem; margin-top: .2rem; }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

/* ── badges ───────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 650; white-space: nowrap; line-height: 1.45; border: 1px solid transparent; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-neutral { background: var(--neutral-soft); color: var(--neutral); }
.badge-brand { background: var(--accent-soft); color: var(--accent); }
.tag { display: inline-block; padding: .05rem .45rem; border-radius: 5px; background: var(--surface-3); color: var(--text-2); font-size: .78rem; font-family: var(--mono); }

/* ── alerts / flash ───────────────────────────────────────────────────── */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius); border: 1px solid; margin-bottom: 1rem; font-size: .93rem; }
.alert .icon { margin-top: 2px; }
.alert p:last-child { margin-bottom: 0; }
.alert-success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 30%, transparent); color: var(--text); }
.alert-success > .icon { color: var(--success); }
.alert-error, .alert-danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--text); }
.alert-error > .icon, .alert-danger > .icon { color: var(--danger); }
.alert-warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 30%, transparent); color: var(--text); }
.alert-warning > .icon { color: var(--warning); }
.alert-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); color: var(--text); }
.alert-info > .icon { color: var(--info); }
.alert .dismiss { margin-left: auto; }
.flash-stack { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: .6rem; width: min(420px, calc(100vw - 36px)); }
.flash-stack .alert { margin: 0; box-shadow: var(--shadow-lg); animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── tables ───────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; padding: .65rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a.row-link { color: var(--text); font-weight: 600; }
.table-compact td, .table-compact th { padding: .5rem .75rem; }
.cell-title { font-weight: 600; color: var(--text); }
.cell-sub { color: var(--text-3); font-size: .82rem; }
.toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .85rem 1.25rem; border-bottom: 1px solid var(--border); }
.toolbar .input { min-height: 38px; width: auto; }
.toolbar .search { flex: 1 1 220px; max-width: 360px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.25rem; border-top: 1px solid var(--border); font-size: .88rem; color: var(--text-3); }

/* ── empty states ─────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 2.75rem 1.5rem; color: var(--text-2); }
.empty-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 1rem; background: var(--accent-soft); color: var(--accent); }
.empty-icon .icon { width: 26px; height: 26px; }
.empty h3 { margin-bottom: .35rem; }
.empty p { max-width: 460px; margin: 0 auto 1.1rem; color: var(--text-3); }

/* ── copy fields & code ───────────────────────────────────────────────── */
.copy-field { display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem .55rem .85rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); font-family: var(--mono); font-size: .88rem; }
.copy-field .value { flex: 1; min-width: 0; overflow-wrap: anywhere; user-select: all; }
.copy-btn.is-copied { color: var(--success); }
.secret-box { border: 1px dashed var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 1rem; }
pre.code { margin: 0; padding: 1rem 1.1rem; background: #0e1c19; color: #d6ebe4; border-radius: var(--radius); overflow-x: auto; font-size: .84rem; line-height: 1.6; }
pre.code .c { color: #7f9d94; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; overflow-x: auto; }
.tab { padding: .6rem .9rem; border: 0; background: none; color: var(--text-2); font: 600 .9rem var(--font); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.is-active, .tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ── avatars ──────────────────────────────────────────────────────────── */
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand-200); color: var(--brand-900); font-weight: 750; font-size: .8rem; flex: none; letter-spacing: .02em; }
.avatar-sm { width: 26px; height: 26px; font-size: .68rem; }
.avatar-lg { width: 46px; height: 46px; font-size: 1rem; }

/* ── dropdown (details) ───────────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .35rem; }
.dropdown-menu.left { left: 0; right: auto; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .55rem .7rem; border: 0; background: none; border-radius: var(--radius-sm); color: var(--text); font: 500 .9rem var(--font); text-align: left; cursor: pointer; text-decoration: none; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-3); }
.dropdown-menu .divider { height: 1px; background: var(--border); margin: .3rem 0; }
.dropdown-menu .head { padding: .55rem .7rem; color: var(--text-3); font-size: .8rem; }

/* ── modal (dialog) ───────────────────────────────────────────────────── */
dialog.modal { border: 0; padding: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: min(480px, calc(100vw - 32px)); background: var(--surface); color: var(--text); }
dialog.modal::backdrop { background: rgba(8, 20, 17, .55); backdrop-filter: blur(2px); }
.modal-body { padding: 1.4rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.4rem; border-top: 1px solid var(--border); background: var(--surface-2); }

/* ── console shell ────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--sidebar-bg); color: var(--sidebar-text); display: flex; flex-direction: column; padding: 1rem .8rem; }
.brand { display: flex; align-items: center; gap: .65rem; padding: .35rem .5rem 1rem; color: #fff; font-weight: 800; letter-spacing: .06em; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand small { display: block; font-size: .62rem; font-weight: 650; letter-spacing: .18em; color: var(--sidebar-muted); }
.org-switch { margin: 0 .2rem 1rem; }
.org-switch > summary { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--radius); background: rgba(255,255,255,.06); color: #fff; }
.org-switch > summary:hover { background: rgba(255,255,255,.1); }
.org-switch .org-meta { min-width: 0; flex: 1; }
.org-switch .org-name { display: block; font-weight: 650; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-switch .org-plan { display: block; font-size: .74rem; color: var(--sidebar-muted); }
.org-switch .dropdown-menu { left: 0; right: 0; }
.nav-group { margin-bottom: .9rem; }
.nav-label { padding: .3rem .7rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sidebar-muted); }
.nav-link { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: var(--radius-sm); color: var(--sidebar-text); font-weight: 550; font-size: .92rem; text-decoration: none; }
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav-link.is-active { background: var(--sidebar-active); color: #fff; box-shadow: inset 3px 0 0 var(--brand-300); }
.nav-link .icon { color: var(--sidebar-muted); }
.nav-link.is-active .icon { color: var(--brand-300); }
.nav-link .count { margin-left: auto; font-size: .72rem; background: rgba(255,255,255,.1); padding: 0 .45rem; border-radius: 99px; }
.sidebar-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-h); display: flex; align-items: center; gap: .8rem; padding: 0 1.5rem; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar .crumbs { display: flex; align-items: center; gap: .4rem; color: var(--text-3); font-size: .9rem; min-width: 0; }
.topbar .crumbs a { color: var(--text-2); }
.topbar .spacer { flex: 1; }
.menu-toggle { display: none; }
.env-pill { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 99px; background: var(--warning-soft); color: var(--warning); }
.content { padding: 1.75rem 1.5rem 3rem; width: 100%; max-width: 1240px; margin: 0 auto; }
.content-narrow { max-width: 820px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { margin-bottom: .2rem; }
.page-head p { margin: 0; color: var(--text-3); max-width: 680px; }
.page-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.banner { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.5rem; font-size: .9rem; border-bottom: 1px solid var(--border); }
.banner-warning { background: var(--warning-soft); }
.banner-danger { background: var(--danger-soft); }
.banner-info { background: var(--info-soft); }

@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); z-index: 50; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(8, 20, 17, .45); z-index: 45; }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 1rem; }
  .content { padding: 1.25rem 1rem 2.5rem; }
}

/* ── onboarding checklist ─────────────────────────────────────────────── */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 1.25rem; border-top: 1px solid var(--border); }
.checklist li:first-child { border-top: 0; }
.checklist .tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); color: transparent; flex: none; }
.checklist li.done .tick { background: var(--success); border-color: var(--success); color: #fff; }
.checklist li.done .ck-title { color: var(--text-3); text-decoration: line-through; }
.checklist .ck-title { font-weight: 600; }

/* ── meters & charts ──────────────────────────────────────────────────── */
.meter + .meter { margin-top: 1rem; }
.meter-head { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; margin-bottom: .35rem; }
.meter-value { color: var(--text-3); font-variant-numeric: tabular-nums; }
.meter-track { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter-track span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.meter-warning .meter-track span { background: var(--warning); }
.meter-danger .meter-track span { background: var(--danger); }
.chart { width: 100%; height: 220px; display: block; }
.chart .gridline { stroke: var(--border); stroke-width: 1; }
.chart .baseline { stroke: var(--border-strong); stroke-width: 1; }
.chart .axis { fill: var(--text-3); font-size: 10px; font-family: var(--font); }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: color-mix(in srgb, var(--text) 5%, transparent); }
.s-delivered { fill: var(--s-delivered); background: var(--s-delivered); }
.s-accepted { fill: var(--s-accepted); background: var(--s-accepted); }
.s-pending { fill: var(--s-pending); background: var(--s-pending); }
.s-failed { fill: var(--s-failed); background: var(--s-failed); }
.s-other { fill: var(--s-other); background: var(--s-other); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .82rem; color: var(--text-2); margin-top: .5rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ── timeline ─────────────────────────────────────────────────────────── */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.8rem; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: -2px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.timeline .t-title { font-weight: 650; }
.timeline .t-meta { color: var(--text-3); font-size: .84rem; }

/* ── public site ──────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-nav { display: flex; align-items: center; gap: 1.25rem; max-width: 1180px; margin: 0 auto; padding: .85rem 1.25rem; }
.site-nav .brand { color: var(--text); padding: 0; }
.site-nav .brand small { color: var(--text-3); }
.site-links { display: flex; gap: 1.1rem; margin-left: 1.5rem; }
.site-links a { color: var(--text-2); font-weight: 550; font-size: .93rem; }
.site-nav .actions { margin-left: auto; display: flex; gap: .6rem; align-items: center; }
@media (max-width: 760px) { .site-links { display: none; } }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 3.5rem; background: radial-gradient(1000px 420px at 85% -10%, color-mix(in srgb, var(--brand-300) 28%, transparent), transparent 60%), radial-gradient(700px 360px at -10% 20%, color-mix(in srgb, var(--brand-400) 14%, transparent), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 3rem; } }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .02em; margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.12rem; color: var(--text-2); max-width: 580px; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.trust-row { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 2rem; color: var(--text-3); font-size: .88rem; }
.trust-row span { display: inline-flex; gap: .45rem; align-items: center; }
.hero-visual { position: relative; }
.mock-window { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: .7rem .9rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-body { padding: 1.1rem; }
.mock-float { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: .8rem 1rem; font-size: .85rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.section-head p { color: var(--text-2); font-size: 1.05rem; }
.feature { padding: 1.4rem; }
.feature .stat-icon { margin-bottom: .9rem; width: 42px; height: 42px; border-radius: 12px; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--text-2); margin: 0; font-size: .94rem; }
.audience { padding: 1.75rem; display: flex; flex-direction: column; }
.audience ul { margin: 1rem 0 1.4rem; padding: 0; list-style: none; display: grid; gap: .55rem; }
.audience li { display: flex; gap: .55rem; align-items: flex-start; color: var(--text-2); }
.audience li .icon { color: var(--success); margin-top: 3px; }
.audience .btn { margin-top: auto; align-self: flex-start; }
.steps-row { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.steps-row > div { counter-increment: step; position: relative; padding: 1.25rem; }
.steps-row > div::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 800; margin-bottom: .75rem; }
@media (max-width: 900px) { .steps-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps-row { grid-template-columns: 1fr; } }
.plan-toggle { display: inline-flex; padding: .25rem; border-radius: 99px; background: var(--surface-3); margin: 0 auto 2rem; }
.plan-toggle a { padding: .45rem 1.1rem; border-radius: 99px; color: var(--text-2); font-weight: 650; font-size: .9rem; }
.plan-toggle a.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); text-decoration: none; }
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { padding: 1.5rem; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan .ribbon { position: absolute; top: -12px; left: 1.5rem; background: var(--accent); color: var(--accent-text); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 99px; }
.plan .price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin: .5rem 0 .1rem; }
.plan .price small { font-size: .9rem; font-weight: 550; color: var(--text-3); letter-spacing: 0; }
.plan .per-seat { color: var(--text-2); font-size: .9rem; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; display: grid; gap: .5rem; font-size: .92rem; color: var(--text-2); }
.plan li { display: flex; gap: .5rem; }
.plan li .icon { color: var(--success); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.code-panel { background: #0e1c19; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.code-panel .tabs { border-color: rgba(255,255,255,.08); margin: 0; padding: 0 .75rem; }
.code-panel .tab { color: #8fb0a7; }
.code-panel .tab.is-active { color: var(--brand-300); border-color: var(--brand-300); }
.code-panel pre.code { border-radius: 0; background: transparent; }
.cta-band { border-radius: var(--radius-xl); padding: 2.5rem; background: linear-gradient(135deg, var(--brand-800), var(--brand-600)); color: #eafaf4; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .35rem; }
.cta-band p { margin: 0; color: #c7e7dc; }
.cta-band .btn-primary { --btn-bg: #fff; --btn-fg: var(--brand-800); --btn-bd: #fff; }
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--border); color: var(--text-3); font-size: .88rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.site-footer a { display: block; color: var(--text-3); margin: .3rem 0; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: var(--text-2); }

/* ── auth pages ───────────────────────────────────────────────────────── */
.auth { display: grid; grid-template-columns: 1fr minmax(380px, 520px); min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-700) 60%, var(--brand-500) 100%); color: #e4f4ee; padding: 2.5rem; display: flex; flex-direction: column; }
.auth-art .brand { color: #fff; padding: 0; }
.auth-art h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; max-width: 480px; margin-top: auto; }
.auth-art p { color: #bfe0d5; max-width: 460px; }
.auth-art .art { position: absolute; right: -40px; top: 18%; width: min(520px, 70%); opacity: .95; }
.auth-points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.auth-points li { display: flex; gap: .55rem; align-items: center; color: #d3ece3; font-size: .95rem; }
.auth-points .icon { color: var(--brand-300); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem clamp(1.25rem, 5vw, 3.5rem); background: var(--surface); }
.auth-panel h1 { font-size: 1.6rem; }
.auth-panel .sub { color: var(--text-3); margin-bottom: 1.6rem; }
.auth-panel .foot { margin-top: 1.5rem; color: var(--text-3); font-size: .9rem; text-align: center; }
.auth-mobile-brand { display: none; margin-bottom: 1.5rem; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-mobile-brand { display: flex; } .auth-panel { justify-content: flex-start; padding-top: 2rem; } }
.otp { letter-spacing: .4em; font-family: var(--mono); font-size: 1.4rem; text-align: center; }
.minimal { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.minimal-card { width: min(520px, 100%); }

/* ── webmail ──────────────────────────────────────────────────────────── */
.mail-shell { display: grid; grid-template-columns: 236px minmax(300px, 400px) minmax(0, 1fr); height: 100vh; overflow: hidden; background: var(--bg); }
.mail-shell.no-reader { grid-template-columns: 236px minmax(0, 1fr); }
.mail-side { display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--border); padding: 1rem .75rem; overflow-y: auto; }
.mail-side .brand { color: var(--text); padding: .2rem .4rem 1rem; }
.mail-side .brand small { color: var(--text-3); }
.compose-btn { margin-bottom: 1rem; }
.folder { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 550; font-size: .92rem; text-decoration: none; }
.folder:hover { background: var(--surface-3); text-decoration: none; color: var(--text); }
.folder.is-active { background: var(--accent-soft); color: var(--accent); }
.folder .count { margin-left: auto; font-size: .76rem; font-weight: 700; color: var(--accent); }
.mail-side .connect-card { margin-top: auto; padding: .9rem; border-radius: var(--radius); background: linear-gradient(150deg, var(--brand-700), var(--brand-500)); color: #e9f8f2; font-size: .86rem; }
.mail-side .connect-card strong { display: block; color: #fff; margin-bottom: .25rem; }
.mail-side .connect-card .btn { margin-top: .6rem; --btn-bg: #fff; --btn-fg: var(--brand-800); --btn-bd: #fff; }
.quota { margin-top: .9rem; font-size: .8rem; color: var(--text-3); }
.mail-list { display: flex; flex-direction: column; border-right: 1px solid var(--border); background: var(--surface); min-width: 0; overflow: hidden; }
.mail-list-head { display: flex; align-items: center; gap: .5rem; padding: .75rem .9rem; border-bottom: 1px solid var(--border); }
.mail-list-head form { flex: 1; }
.mail-list-head .input { min-height: 38px; }
.mail-bulk { display: flex; align-items: center; gap: .3rem; padding: .4rem .9rem; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: .85rem; }
.mail-items { overflow-y: auto; flex: 1; }
.mail-item { display: grid; grid-template-columns: auto 1fr; gap: .2rem .65rem; padding: .75rem .9rem; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; position: relative; }
.mail-item:hover { background: var(--surface-2); text-decoration: none; }
.mail-item.is-unread { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.mail-item.is-unread .mi-from, .mail-item.is-unread .mi-subject { font-weight: 750; }
.mail-item.is-unread::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.mail-item.is-active { background: var(--accent-soft); }
.mail-item .mi-check { grid-row: span 3; padding-top: .1rem; }
.mail-item .mi-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.mi-top { display: flex; justify-content: space-between; gap: .5rem; min-width: 0; }
.mi-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.mi-date { color: var(--text-3); font-size: .78rem; white-space: nowrap; }
.mi-subject { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.mi-subject .icon { width: 13px; height: 13px; color: var(--text-3); margin-right: 3px; }
.mail-reader { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--bg); }
.reader-head { padding: 1.2rem 1.5rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.reader-head h1 { font-size: 1.25rem; margin-bottom: .75rem; overflow-wrap: anywhere; }
.reader-meta { display: flex; gap: .75rem; align-items: flex-start; }
.reader-meta .who { min-width: 0; flex: 1; font-size: .9rem; }
.reader-meta .who strong { display: block; }
.reader-actions { display: flex; gap: .4rem; flex-wrap: wrap; padding: .6rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.reader-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem 2rem; }
.mail-frame { width: 100%; min-height: 420px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.mail-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font); background: var(--surface); padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--border); margin: 0; }
.attachments { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.attachment { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font-size: .88rem; text-decoration: none; }
.attachment:hover { border-color: var(--accent); text-decoration: none; }
.reader-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--text-3); padding: 2rem; }
.mail-page { overflow-y: auto; }
.mail-page .content { max-width: 960px; }
.compose-form .field { margin-bottom: .7rem; }
.compose-form textarea.input { min-height: 320px; }
.mobile-only { display: none; }
@media (max-width: 1100px) { .mail-shell { grid-template-columns: 210px minmax(260px, 340px) minmax(0, 1fr); } }
@media (max-width: 900px) {
  .mail-shell, .mail-shell.no-reader { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 100vh; overflow: visible; }
  .mail-side { display: none; }
  .mail-shell.nav-open .mail-side { display: flex; position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); z-index: 50; box-shadow: var(--shadow-lg); }
  .mail-shell.reading .mail-list { display: none; }
  .mail-shell:not(.reading) .mail-reader { display: none; }
  .mobile-only { display: inline-flex; }
  .mail-list { border-right: 0; min-height: 100vh; }
  .reader-head, .reader-actions, .reader-body { padding-left: 1rem; padding-right: 1rem; }
}

/* ── setup wizard (mobile first) ──────────────────────────────────────── */
.setup { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.setup-top { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.setup-top .brand { color: var(--text); padding: 0; }
.setup-top .brand small { color: var(--text-3); }
.setup-main { width: 100%; max-width: 760px; margin: 0 auto; padding: 1.25rem 1rem 6rem; }
.setup h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); letter-spacing: -.02em; }
.setup .lede { color: var(--text-2); font-size: 1.04rem; }
.progress { margin: .25rem 0 1.25rem; }
.progress-label { display: flex; justify-content: space-between; font-size: .84rem; color: var(--text-3); margin-bottom: .4rem; font-weight: 600; }
.progress-track { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--brand-300)); border-radius: 99px; }
.stages { display: flex; gap: .35rem; margin-bottom: 1.25rem; overflow-x: auto; padding-bottom: .25rem; }
.stages li { list-style: none; flex: none; display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--text-3); font-weight: 600; padding: .25rem .6rem; border-radius: 99px; background: var(--surface-3); }
.stages li.is-done { color: var(--success); background: var(--success-soft); }
.stages li.is-current { color: var(--accent-text); background: var(--accent); }
.stages { padding-left: 0; margin-top: 0; }
.big-choice { display: grid; gap: .75rem; }
.big-choice a, .big-choice button { display: flex; align-items: center; gap: 1rem; width: 100%; min-height: 76px; padding: 1rem 1.1rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .05s; }
.big-choice a:hover, .big-choice button:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); text-decoration: none; }
.big-choice a:active { transform: translateY(1px); }
.big-choice .bc-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.big-choice .bc-icon .icon { width: 24px; height: 24px; }
.big-choice .bc-text { flex: 1; min-width: 0; }
.big-choice .bc-text strong { display: block; font-size: 1.04rem; }
.big-choice .bc-text span { color: var(--text-3); font-size: .88rem; }
.big-choice .chev { color: var(--text-3); }
.step-card { padding: 1.25rem; }
.step-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 1.5rem; align-items: start; }
@media (max-width: 680px) { .step-layout { grid-template-columns: 1fr; } .step-visual { order: -1; max-width: 220px; margin: 0 auto; } }
.step-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 800; margin-bottom: .6rem; }
.step-card h2 { font-size: 1.3rem; }
.step-body { font-size: 1.06rem; }
.why { display: flex; gap: .55rem; padding: .75rem .9rem; background: var(--info-soft); border-radius: var(--radius); font-size: .92rem; color: var(--text-2); margin: 1rem 0; }
.why .icon { color: var(--info); margin-top: 2px; }
details.cant-find { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); margin-top: .5rem; }
details.cant-find summary { cursor: pointer; padding: .7rem .9rem; font-weight: 600; font-size: .92rem; display: flex; gap: .5rem; align-items: center; }
details.cant-find > div { padding: 0 .9rem .85rem; color: var(--text-2); font-size: .92rem; }
.settings-list { display: grid; gap: .55rem; margin: 1rem 0; }
.setting { display: grid; grid-template-columns: 1fr auto; gap: .25rem .6rem; align-items: center; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.setting .s-label { font-size: .8rem; color: var(--text-3); font-weight: 600; }
.setting .s-value { font-family: var(--mono); font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; grid-column: 1; }
.setting .copy-btn { grid-row: 1 / span 2; grid-column: 2; }
.setting .s-help { font-size: .78rem; color: var(--text-3); grid-column: 1; }
.step-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: .6rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--border); }
.step-nav .inner { display: flex; gap: .6rem; width: 100%; max-width: 760px; margin: 0 auto; }
.step-nav .btn { flex: 1; min-height: 50px; font-size: 1rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.check-item { display: flex; gap: .8rem; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.check-item .ci-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.check-item.ok .ci-icon { background: var(--success-soft); color: var(--success); }
.check-item.bad .ci-icon { background: var(--danger-soft); color: var(--danger); }
.check-item.unknown .ci-icon { background: var(--neutral-soft); color: var(--neutral); }
.check-item .ci-title { font-weight: 650; }
.check-item .ci-text { color: var(--text-2); font-size: .92rem; margin: .15rem 0 0; }
.verify-code { font-family: var(--mono); font-size: 1.9rem; font-weight: 800; letter-spacing: .25em; padding: .8rem 1rem; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); text-align: center; overflow-wrap: anywhere; }
.qr-box { display: inline-block; padding: .75rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.qr-box svg { display: block; width: 180px; height: 180px; }
.help-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.help-grid a { display: flex; gap: .6rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font-weight: 600; font-size: .93rem; }
.help-grid a:hover { border-color: var(--accent); text-decoration: none; }
.support-card { display: flex; gap: .9rem; align-items: flex-start; }

/* phone illustration */
.phone { width: 100%; max-width: 220px; height: auto; display: block; filter: drop-shadow(0 14px 22px rgba(10, 20, 16, .18)); }
.phone-body { fill: #1b2824; }
.phone-screen { fill: var(--surface); }
.phone-notch { fill: #1b2824; }
.phone-status { fill: var(--text-2); font: 600 10px var(--font); }
.phone-bar { fill: var(--surface-2); }
.phone-title { fill: var(--text); font: 700 13px var(--font); }
.phone-field { fill: var(--surface-2); stroke: var(--border-strong); }
.phone-row { fill: var(--surface); stroke: var(--border); }
.phone-text { fill: var(--text-2); font: 500 11px var(--font); }
.phone-text-strong { fill: var(--text); font-weight: 700; }
.phone-muted { fill: var(--text-3); font: 500 11px var(--font); }
.phone-line { fill: var(--surface-3); }
.phone-line-soft { opacity: .65; }
.phone-dot { fill: var(--brand-200); }
.phone-avatar { fill: var(--brand-400); }
.phone-button { fill: var(--accent); }
.phone-button-text { fill: var(--accent-text); font: 700 11px var(--font); }
.phone-highlight { stroke: var(--brand-400); stroke-width: 2; }
.phone-row.phone-highlight { fill: var(--accent-soft); }
.phone-pulse { fill: none; stroke: var(--brand-400); stroke-width: 2; stroke-dasharray: 4 3; animation: pulse 1.6s ease-in-out infinite; }
.phone-chevron { fill: none; stroke: var(--accent); stroke-width: 2; }
.phone-home { fill: var(--border-strong); }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .phone-pulse, .flash-stack .alert { animation: none; } html { scroll-behavior: auto; } }

/* ── invoice / print ──────────────────────────────────────────────────── */
.invoice { padding: 2rem; }
.invoice-head { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.invoice-total { font-size: 1.4rem; font-weight: 800; }
.handout { max-width: 720px; margin: 0 auto; }
@media print {
  .sidebar, .topbar, .no-print, .flash-stack, .banner, .step-nav, .site-header, .site-footer { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
  .content { padding: 0; max-width: none; }
  a { color: inherit; }
}

/* ── misc ─────────────────────────────────────────────────────────────── */
.kv-inline { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: .9rem; }
.kv-inline span { color: var(--text-3); }
.inline-form { display: inline; }
.divider-text { display: flex; align-items: center; gap: .75rem; color: var(--text-3); font-size: .82rem; margin: 1.25rem 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.preview-frame { width: 100%; height: 560px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.preview-mobile { max-width: 390px; margin: 0 auto; display: block; }
.dns-value { font-family: var(--mono); font-size: .82rem; overflow-wrap: anywhere; }
.scope-grid { display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.callout { padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ── setup: connection tests ──────────────────────────────────────────── */
.verify-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.verify-grid h2 { display: flex; align-items: center; gap: .45rem; font-size: 1.1rem; margin: 0 0 .5rem; }
.verify-grid .input.verify-code { font-size: 1.5rem; padding: .6rem; }
.step-visual { margin: 0; }
.mi-preview { grid-column: 2; }
.help-grid a { flex-direction: column; align-items: flex-start; gap: .25rem; }
.progress-track { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .3s; }

/* ── brand lockup ─────────────────────────────────────────────────────── */
.brand .brand-word { font-weight: 800; letter-spacing: -.01em; font-size: 1.12rem; line-height: 1; }
.brand .brand-word b { font-weight: 800; background: linear-gradient(90deg, #2fd09a, #0b7a5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font-size: .6rem; letter-spacing: .16em; font-weight: 650; opacity: .7; margin-top: 3px; }

/* ── landing: dark hero and send simulation ───────────────────────────── */
.hero-dark { background: radial-gradient(900px 520px at 78% 8%, rgba(11, 122, 92, .38), transparent 62%), radial-gradient(700px 420px at 5% 90%, rgba(47, 208, 154, .16), transparent 60%), linear-gradient(180deg, #060c0a 0%, #0b1612 100%); color: #e9efec; padding: 4.2rem 0 4.6rem; isolation: isolate; }
.hero-network { position: relative; grid-column: 2; grid-row: 1; min-width: 0; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid rgba(120, 200, 170, .25); border-radius: 22px; background: #08100d; box-shadow: 0 40px 80px rgba(0, 0, 0, .4); }
.hero-network::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 9, 7, .08), transparent 55%, rgba(4, 9, 7, .26)); }
.hero-network-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-dark .hero-copy { grid-column: 1; grid-row: 1; }
.hero-dark .hero-grid { grid-template-columns: .9fr 1.1fr; }
.hero-dark .hero-grid { position: relative; z-index: 1; }
.hero-dark h1 { color: #fff; }
.hero-dark h1 em { color: transparent; background: linear-gradient(90deg, #6ee0b5, #1fa476); -webkit-background-clip: text; background-clip: text; }
.hero-dark .lead { color: #bccbc4; }
.hero-dark .trust-row span { color: #a3b5ad; }
.hero-glow { position: absolute; inset: auto -10% -40% -10%; height: 60%; background: radial-gradient(closest-side, rgba(11, 122, 92, .25), transparent); filter: blur(30px); z-index: -1; }
.page-home .section { padding-block: clamp(3.25rem, 6vw, 5rem); }
.page-home .section-head { margin-bottom: 2rem; }
.page-home .card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.page-home .card:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); box-shadow: var(--shadow); }
.page-home .audience:hover { transform: translateY(-3px); }
.page-home .feature { height: 100%; }
@media (max-width: 920px) {
  .hero-dark .hero-grid { gap: 2rem; }
  .hero-network { grid-column: 1; grid-row: 2; width: min(100%, 680px); margin-inline: auto; }
  .hero-dark .hero-copy { grid-row: 1; }
  .hero-dark { padding-block: 3.5rem; }
}
@media (max-width: 600px) {
  .hero-dark { padding-block: 2.75rem 3rem; }
  .hero-dark .hero-grid { gap: 1.5rem; }
  .hero-dark .lead { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .trust-row { gap: .65rem 1rem; margin-top: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .page-home .card { transition: none; }
  .page-home .audience:hover { transform: none; }
}
.eyebrow-glow { color: #8fe6c4; border-color: rgba(95, 212, 168, .35); background: rgba(95, 212, 168, .08); }
.btn-glow { box-shadow: 0 10px 30px rgba(11, 122, 92, .45); }
.btn-ghost-light { background: rgba(255, 255, 255, .06); color: #e9efec; border: 1px solid rgba(255, 255, 255, .18); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.page-home .site-header { background: #060c0a; border-bottom-color: rgba(255, 255, 255, .08); }
.page-home .site-header .site-links a, .page-home .site-nav .brand, .page-home .site-header .btn-ghost { color: #e9efec; }
.page-home .site-header .btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.page-home .site-nav .brand small { color: #8fa39a; }

.sim { --sim-line: rgba(120, 200, 170, .18); position: relative; border-radius: 22px; padding: 1rem; background: linear-gradient(180deg, rgba(14, 28, 23, .92), rgba(8, 16, 13, .92)); border: 1px solid rgba(120, 200, 170, .2); box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); color: #e2ece7; }
.sim-tabs { display: flex; gap: .35rem; margin-bottom: .8rem; flex-wrap: wrap; }
.sim-tab { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .8rem; font-weight: 650; padding: .38rem .7rem; border-radius: 99px; border: 1px solid var(--sim-line); background: transparent; color: #a3b5ad; cursor: pointer; }
.sim-tab.is-active { background: rgba(11, 122, 92, .25); color: #fff; border-color: rgba(95, 212, 168, .5); }
.sim-stage { display: grid; grid-template-columns: 1.15fr 1fr .9fr; gap: .8rem; align-items: stretch; min-height: 300px; }
.sim-composer { position: relative; display: flex; flex-direction: column; border-radius: 14px; background: #08100d; border: 1px solid var(--sim-line); overflow: hidden; }
.sim-composer-bar { display: flex; align-items: center; gap: .3rem; padding: .5rem .7rem; border-bottom: 1px solid var(--sim-line); font: 600 .7rem var(--mono); color: #8a9d95; }
.sim-composer-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3a33; }
.sim-composer-bar i:first-child { background: #ff5f57; }
.sim-composer-bar i:nth-child(2) { background: #febc2e; }
.sim-composer-bar i:nth-child(3) { background: #28c840; }
.sim-composer-bar span { margin-left: .5rem; }
.sim-code { flex: 1; margin: 0; padding: .75rem .8rem 3rem; font: .72rem/1.6 var(--mono); color: #bfe9d6; white-space: pre-wrap; word-break: break-word; background: none; min-height: 210px; }
.sim-code::after { content: "\258D"; color: #5fd4a8; animation: sim-blink 1s steps(1) infinite; }
.is-sending .sim-code::after, .is-delivered .sim-code::after { content: none; }
.sim-send { position: absolute; right: .7rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .35rem; font: 700 .78rem var(--font); padding: .45rem .9rem; border-radius: 9px; border: 0; color: #fff; background: linear-gradient(90deg, #0b7a5c, #14b884); box-shadow: 0 6px 18px rgba(11, 122, 92, .45); pointer-events: none; transition: transform .15s; }
.is-sending .sim-send { transform: scale(.94); filter: brightness(1.2); }
.sim-flight { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: .8rem; border-radius: 14px; border: 1px solid var(--sim-line); background: rgba(6, 12, 10, .6); }
.sim-track { list-style: none; margin: 0; padding: 0 0 0 .2rem; display: grid; gap: .55rem; position: relative; }
.sim-track::before { content: ""; position: absolute; left: 13px; top: 12px; bottom: 12px; width: 2px; background: var(--sim-line); }
.sim-track li { position: relative; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: .55rem; font-size: .8rem; color: #879a92; transition: color .3s; }
.sim-track b { font-weight: 650; }
.sim-track small { font: .68rem var(--mono); color: #5fd4a8; }
.sim-node { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #10201a; border: 2px solid #2c3d36; color: transparent; transition: all .3s; }
.sim-track li.is-active { color: #fff; }
.sim-track li.is-active .sim-node { border-color: #5fd4a8; box-shadow: 0 0 0 6px rgba(95, 212, 168, .15); animation: sim-pulse 1s infinite; }
.sim-track li.is-done { color: #e2ece7; }
.sim-track li.is-done .sim-node { background: linear-gradient(135deg, #2fd09a, #0b7a5c); border-color: transparent; color: #fff; }
.sim-envelope { --sim-pos: 0; position: absolute; right: 1rem; top: calc(10px + var(--sim-pos) * 120px); width: 34px; height: 34px; opacity: 0; filter: drop-shadow(0 6px 14px rgba(20, 184, 132, .6)); transition: top .6s cubic-bezier(.4, 0, .2, 1), opacity .3s; pointer-events: none; }
.is-sending .sim-envelope { opacity: 1; }
.sim-log { margin-top: auto; min-height: 92px; padding: .5rem .6rem; border-radius: 10px; background: #060c0a; border: 1px solid var(--sim-line); font: .64rem/1.65 var(--mono); color: #7fe3a9; overflow: hidden; }
.sim-log-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: sim-in .35s ease-out; }
.sim-phone { position: relative; border-radius: 26px; padding: 1.6rem .55rem .6rem; background: #0c1311; border: 3px solid #24302b; box-shadow: inset 0 0 0 2px #060b09; overflow: hidden; }
.sim-phone-notch { position: absolute; left: 50%; top: 7px; width: 54px; height: 13px; margin-left: -27px; border-radius: 10px; background: #060b09; }
.sim-phone-status { position: absolute; top: 6px; left: 14px; right: 14px; display: flex; justify-content: space-between; font-size: .58rem; color: #a3b5ad; font-weight: 700; }
.sim-toast { position: absolute; left: .45rem; right: .45rem; top: 1.7rem; z-index: 2; display: flex; gap: .45rem; align-items: center; padding: .5rem .55rem; border-radius: 13px; background: rgba(30, 46, 40, .94); backdrop-filter: blur(8px); font-size: .66rem; transform: translateY(-140%); opacity: 0; transition: transform .45s cubic-bezier(.2, .9, .3, 1.3), opacity .3s; }
.sim-toast b, .sim-toast span { display: block; color: #fff; }
.sim-toast span { color: #bccbc4; }
.is-delivered .sim-toast { transform: none; opacity: 1; animation: sim-toast-out .5s 2.6s forwards; }
.sim-inbox { border-radius: 14px; background: #f6f7f6; color: #111816; height: 100%; overflow: hidden; }
.sim-inbox-head { padding: .55rem .7rem .35rem; font-weight: 800; font-size: .95rem; }
.sim-mail { display: flex; gap: .45rem; padding: .5rem .6rem; border-top: 1px solid #e3e7e5; font-size: .64rem; line-height: 1.35; }
.sim-mail b, .sim-mail span, .sim-mail small { display: block; }
.sim-mail span { color: #3d4844; }
.sim-mail small { color: #66726d; }
.sim-avatar { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #d7f5e8; color: #0b7a5c; font-weight: 800; font-size: .7rem; }
.sim-mail.is-new { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; background: #effaf5; transition: max-height .5s, opacity .4s, padding .4s; }
.is-delivered .sim-mail.is-new { max-height: 120px; padding-top: .5rem; padding-bottom: .5rem; opacity: 1; }
.sim-auth { display: inline-flex; align-items: center; gap: .2rem; margin-top: .2rem; font-style: normal; font-weight: 700; color: #137a52; font-size: .58rem; }
.sim-stats { display: flex; align-items: center; gap: 1.2rem; margin-top: .8rem; padding: .6rem .3rem 0; border-top: 1px solid var(--sim-line); flex-wrap: wrap; }
.sim-stats div b { display: block; font-size: 1.05rem; color: #fff; }
.sim-stats div span { font-size: .7rem; color: #879a92; }
.sim-replay { margin-left: auto; display: inline-flex; gap: .35rem; align-items: center; font: 650 .75rem var(--font); color: #a3b5ad; background: transparent; border: 1px solid var(--sim-line); border-radius: 99px; padding: .35rem .7rem; cursor: pointer; }
.sim-replay:hover { color: #fff; border-color: rgba(95, 212, 168, .5); }
@keyframes sim-blink { 50% { opacity: 0; } }
@keyframes sim-pulse { 50% { box-shadow: 0 0 0 10px rgba(95, 212, 168, .05); } }
@keyframes sim-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes sim-toast-out { to { transform: translateY(-140%); opacity: 0; } }
@media (max-width: 1180px) { .hero-dark .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .sim-stage { grid-template-columns: 1fr 1fr; } .sim-phone { grid-column: span 2; max-width: 300px; margin: 0 auto; width: 100%; } }
@media (max-width: 560px) { .sim-stage { grid-template-columns: 1fr; } .sim-phone { grid-column: auto; } .sim-envelope { display: none; } }
@media (prefers-reduced-motion: reduce) { .sim *, .sim *::after { animation: none !important; transition: none !important; } }
.tool-teaser .input-group .input { min-width: 0; }

/* ── sign-in providers ─────────────────────────────────────────────────── */
.btn-google { gap: .7rem; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; }
.btn-google:hover { background: #f7fbf9; border-color: #c9dbd3; color: #1f1f1f; }
.verify-hero { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; margin-bottom: 1rem; color: #fff; background: linear-gradient(135deg, #2fd09a, #0b7a5c); box-shadow: 0 10px 30px rgba(11, 122, 92, .35); }
.input-lg { min-height: 50px; font-size: 1rem; }

/* ── tools ─────────────────────────────────────────────────────────────── */
.hero-compact { padding: 3rem 0 2.2rem; }
.hero-compact h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.tool-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1.4rem; }
.tool-tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .95rem; border-radius: 99px; color: #bccbc4; border: 1px solid rgba(255, 255, 255, .14); font-weight: 600; font-size: .9rem; text-decoration: none; }
.tool-tabs a:hover { color: #fff; border-color: rgba(95, 212, 168, .5); }
.tool-tabs a.is-active { color: #fff; background: rgba(11, 122, 92, .35); border-color: rgba(95, 212, 168, .6); }
.tools-section { padding-top: 2rem; }
.tools-section .container { max-width: 980px; }
.tool-form { box-shadow: var(--shadow-lg); }
.tool-report { display: grid; gap: .75rem; }
.tool-score { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.tool-score .btn { margin-left: auto; }
.grade { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; font-size: 2rem; font-weight: 800; color: #fff; }
.grade-a { background: linear-gradient(135deg, #1fbf7a, #0e8a55); }
.grade-b { background: linear-gradient(135deg, #2fd09a, #0b7a5c); }
.grade-c { background: linear-gradient(135deg, #f5b942, #d68a00); }
.grade-d, .grade-f { background: linear-gradient(135deg, #f2788c, #c3304b); }
.tool-section > summary { cursor: pointer; list-style: none; }
.tool-section > summary::-webkit-details-marker { display: none; }
.tool-section.is-fail { border-left: 4px solid var(--danger); }
.tool-section.is-warn { border-left: 4px solid var(--warning); }
.tool-section.is-pass { border-left: 4px solid var(--success); }
.tool-findings { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .4rem; }
.tool-findings li { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; }
.tool-findings li.is-pass { color: var(--success); }
.tool-findings li.is-fail { color: var(--danger); }
.tool-findings li.is-warn { color: var(--warning); }
.tool-findings li.is-info { color: var(--text-2); }
.tool-findings li span { color: var(--text); }
.tool-record { margin: .3rem 0 .6rem; padding: .6rem .75rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: .78rem; white-space: pre-wrap; word-break: break-all; }
.tool-mx { padding: .5rem 0; border-top: 1px solid var(--border); }
.tool-quick { display: flex; gap: .35rem; flex-wrap: wrap; }
@media (max-width: 640px) { .tool-form .grid { grid-template-columns: 1fr !important; } }

/* ── M-Pesa payments ──────────────────────────────────────────────────── */
.pay-panel { border: 1px solid color-mix(in srgb, #2bb54a 45%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, #2bb54a 6%, var(--surface)), var(--surface)); }
.mpesa-badge { font-weight: 900; letter-spacing: .04em; color: #fff; background: #2bb54a; border-radius: 8px; padding: .3rem .6rem; font-size: .8rem; }
.pay-card { max-width: 560px; margin: 2rem auto; }
.pay-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; margin-bottom: 1rem; color: #fff; background: linear-gradient(135deg, #2fd09a, #0b7a5c); }
.pay-success .pay-icon { background: linear-gradient(135deg, #1fbf7a, #0e8a55); }
.pay-error .pay-icon { background: linear-gradient(135deg, #f2788c, #c3304b); }
.pay-warning .pay-icon { background: linear-gradient(135deg, #f5b942, #d68a00); }
.pay-icon.is-waiting { animation: pay-pulse 1.6s ease-in-out infinite; }
.pay-amount { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
@keyframes pay-pulse { 50% { box-shadow: 0 0 0 16px rgba(11, 122, 92, .12); } }
@media (prefers-reduced-motion: reduce) { .pay-icon.is-waiting { animation: none; } }

/* ══ 2026 refresh: console chrome, cards and new components ═══════════════ */
:root { --radius: 12px; --radius-lg: 16px; --ring-soft: 0 0 0 1px var(--border); }
body { background: radial-gradient(1200px 500px at 100% -10%, color-mix(in srgb, var(--brand-300) 9%, transparent), transparent 60%), var(--bg); background-attachment: fixed; }

/* Sidebar: deep navy with a soft glow, pill navigation */
.sidebar { background: radial-gradient(420px 260px at 0% 0%, rgba(11, 122, 92, .28), transparent 70%), linear-gradient(180deg, #0c1713 0%, #08100d 100%); border-right: 1px solid rgba(255, 255, 255, .06); }
.sidebar .brand { color: #fff; }
.sidebar .brand small { color: #8fa39a; }
.nav-link { border-radius: 10px; transition: background .15s, color .15s; }
.nav-link:hover { background: rgba(255, 255, 255, .06); }
.nav-link.is-active { background: linear-gradient(90deg, rgba(11, 122, 92, .38), rgba(47, 208, 154, .12)); color: #fff; box-shadow: inset 2px 0 0 #5fd4a8; }
.nav-label { letter-spacing: .14em; }
.upgrade-cta { display: flex; gap: .6rem; align-items: center; margin-top: .6rem; padding: .7rem .8rem; border-radius: 12px; color: #fff; text-decoration: none; background: linear-gradient(135deg, #0b7a5c, #14b884); box-shadow: 0 10px 24px rgba(11, 122, 92, .35); }
.upgrade-cta:hover { text-decoration: none; filter: brightness(1.08); }
.upgrade-cta b, .upgrade-cta small { display: block; }
.upgrade-cta small { opacity: .85; font-size: .72rem; }

/* Topbar */
.topbar { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(160%) blur(12px); }

/* Cards and stats */
.card { border-radius: var(--radius-lg); border-color: var(--border); box-shadow: 0 1px 2px rgba(10, 20, 16, .04), 0 8px 24px rgba(10, 20, 16, .04); }
.card-head { border-bottom-color: var(--border); }
.stat { border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--accent-soft) 40%, var(--surface))); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(10, 20, 16, .04); }
.stat-value { letter-spacing: -.02em; }
.page-head h1 { font-size: 1.75rem; letter-spacing: -.02em; }
.btn-primary { background: linear-gradient(135deg, var(--brand-600), var(--brand-500)); border-color: transparent; }
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-700), var(--brand-600)); }
.table thead th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

/* Theme switch: light / dark / system */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--surface-3); border: 1px solid var(--border); }
.theme-switch button { display: grid; place-items: center; width: 30px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: pointer; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-checked="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(10, 20, 16, .15); }
.page-home .site-header .theme-switch { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.page-home .site-header .theme-switch button { color: #8fa39a; }
.page-home .site-header .theme-switch button[aria-checked="true"] { background: rgba(255, 255, 255, .14); color: #fff; }

/* Floating help */
.help-widget { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.help-widget > summary { list-style: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; color: #fff; background: linear-gradient(135deg, #0b7a5c, #14b884); box-shadow: 0 12px 28px rgba(11, 122, 92, .45); transition: transform .15s; }
.help-widget > summary::-webkit-details-marker { display: none; }
.help-widget > summary:hover { transform: translateY(-2px); }
.help-widget[open] > summary { transform: rotate(8deg); }
.help-panel { position: absolute; right: 0; bottom: 66px; width: min(360px, calc(100vw - 32px)); padding: 1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(10, 20, 16, .25); animation: help-in .18s ease-out; }
.help-head strong { display: block; font-size: 1.05rem; }
.help-links { display: grid; gap: .25rem; margin: .8rem 0; }
.help-links a { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem .6rem; border-radius: 10px; color: var(--text); text-decoration: none; }
.help-links a:hover { background: var(--surface-2); }
.help-links a > svg { color: var(--accent); flex: none; margin-top: 2px; }
.help-links b, .help-links small { display: block; }
.help-links small { color: var(--text-3); font-size: .78rem; }
@keyframes help-in { from { opacity: 0; transform: translateY(6px); } }
@media print { .help-widget { display: none; } }

/* Landing: video showcase */
.showcase { padding: 4rem 0; background: linear-gradient(180deg, #0b1612 0%, var(--bg) 100%); }
.showcase-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.showcase-frame { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: #030605; box-shadow: 0 0 0 1px rgba(95, 212, 168, .25), 0 40px 90px rgba(0, 0, 0, .45), 0 0 80px rgba(11, 122, 92, .25); }
.showcase-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 70%, rgba(2, 6, 5, .45)); }
.showcase-points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .9rem; }
.showcase-points li { display: flex; gap: .7rem; align-items: flex-start; }
.showcase-points li > svg { flex: none; color: var(--accent); margin-top: 3px; }
.showcase-points b { display: block; }
@media (max-width: 900px) { .showcase-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* Tools hub */
.tools-hero h1 em { font-style: normal; }
.tools-badges { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin-top: 1.2rem; color: #a3b5ad; font-size: .88rem; font-weight: 600; }
.tools-badges span { display: inline-flex; gap: .3rem; align-items: center; }
.tools-search { position: relative; max-width: 560px; margin: -3.4rem auto 2rem; }
.tools-search > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.tools-search .input { padding-left: 46px; border-radius: 14px; box-shadow: 0 18px 40px rgba(10, 20, 16, .18); }
.tools-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.tool-card { --tone: #0b7a5c; position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; box-shadow: 0 1px 2px rgba(10, 20, 16, .04); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tool-card:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--tone) 50%, var(--border)); box-shadow: 0 18px 40px rgba(10, 20, 16, .12); }
.tool-cat { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tone-ink); }
.tool-card strong { font-size: 1.08rem; }
.tool-sum { color: var(--text-2); font-size: .9rem; flex: 1; }
.tool-go { display: inline-flex; gap: .3rem; align-items: center; margin-top: .5rem; color: var(--tone-ink); font-weight: 700; font-size: .88rem; transition: gap .15s; }
.tool-card:hover .tool-go { gap: .55rem; }
.tool-title { display: flex; align-items: center; gap: 1rem; margin: .4rem 0 .2rem; }
.tool-title h1 { margin: .2rem 0 0; }
.back-link { display: inline-flex; gap: .3rem; align-items: center; color: #a3b5ad; font-size: .86rem; font-weight: 600; }
.back-link:hover { color: #fff; }
.tool-inline { display: grid; grid-template-columns: 1fr 170px auto; gap: .6rem; align-items: end; }
@media (max-width: 640px) { .tool-inline { grid-template-columns: 1fr; } }
.score-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: .5rem; max-width: 360px; }
.score-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f2788c, #f5b942 45%, #1fbf7a 85%); }
.bl-grid { display: flex; gap: .4rem; flex-wrap: wrap; }
.bl-item { display: inline-flex; gap: .3rem; align-items: center; padding: .25rem .6rem; border-radius: 99px; font-size: .8rem; font-weight: 600; border: 1px solid var(--border); }
.bl-item.is-clean { color: var(--success); background: var(--success-soft); }
.bl-item.is-listed { color: var(--danger); background: var(--danger-soft); }

/* Domain: server settings cards */
.server-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.server-card { padding: 1rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.server-card h3 { display: flex; align-items: center; gap: .45rem; font-size: 1rem; color: var(--accent); }
.server-row { display: grid; grid-template-columns: 120px 1fr; gap: .6rem; align-items: center; padding: .35rem 0; border-top: 1px solid var(--border); }
.server-row > span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 760px) { .server-cards { grid-template-columns: 1fr; } }
.control-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.control-list li { display: grid; grid-template-columns: 20px 1fr auto; gap: .55rem; align-items: center; }

.showcase .sim { min-width: 0; }
/* The simulation gets the full width; the copy sits above it as a centred header. */
.showcase-grid { grid-template-columns: 1fr; gap: 2.2rem; }
.showcase-copy { order: -1; max-width: 900px; margin: 0 auto; text-align: center; }
.showcase-copy .text-2 { max-width: 680px; margin-left: auto; margin-right: auto; }
.showcase-points { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; text-align: left; margin-top: 1.6rem; }
@media (max-width: 760px) { .showcase-points { grid-template-columns: 1fr; } }
.showcase .sim-stage { grid-template-columns: 1.35fr 1fr .8fr; min-height: 340px; }
.showcase .sim-code { white-space: pre; overflow-x: auto; word-break: normal; font-size: .74rem; scrollbar-width: thin; }
.sim-mail small, .sim-mail span, .sim-mail b { font-size: inherit; }
.sim-mail > div { min-width: 0; }
.sim-mail small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sim-auth { white-space: nowrap; }
@media (max-width: 860px) { .showcase .sim-stage { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .showcase .sim-stage { grid-template-columns: 1fr; } }
.hero-network .hero-network:hover .chart-figure { margin: 0; }
.dns-records td:nth-child(2) { min-width: 230px; }
.dns-records td:nth-child(3) { min-width: 300px; }
.dns-records td:nth-child(4) { min-width: 170px; }
.dns-records .copy-field { font-size: .8rem; }
.dns-records .copy-field .value { overflow-wrap: break-word; word-break: break-all; }
.sim-mail .sim-avatar { display: grid; font-size: .7rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; }
.powered-by { letter-spacing: .02em; }
.powered-by strong { letter-spacing: .08em; font-weight: 750; color: var(--brand-300); }

/* Tool tones: a light and a deep stop per tool; --tone-ink mixes the light
   stop with the text colour, so labels read well in both themes. */
.tone-emerald { --tone-a: #34d399; --tone-b: #047857; }
.tone-sky { --tone-a: #38bdf8; --tone-b: #0369a1; }
.tone-violet { --tone-a: #a78bfa; --tone-b: #6d28d9; }
.tone-amber { --tone-a: #fbbf24; --tone-b: #c2410c; }
.tone-rose { --tone-a: #fb7185; --tone-b: #be123c; }
.tone-indigo { --tone-a: #818cf8; --tone-b: #4338ca; }
:is(.tool-card, .tool-title)[class*="tone-"] { --tone: var(--tone-b); --tone-ink: color-mix(in srgb, var(--tone-a) 55%, var(--text)); }
.tool-icon { position: relative; display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; color: #fff; margin-bottom: .55rem;
  background: linear-gradient(145deg, var(--tone-a, #34d399) 0%, var(--tone-b, #047857) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -10px 18px rgba(0, 0, 0, .14), 0 10px 22px -8px color-mix(in srgb, var(--tone-b, #047857) 70%, transparent);
  transition: transform .2s cubic-bezier(.2, .8, .3, 1.2), box-shadow .2s; }
.tool-icon::after { content: ""; position: absolute; inset: 1px 1px 52% 1px; border-radius: 15px 15px 12px 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0)); pointer-events: none; }
.tool-icon .icon { position: relative; z-index: 1; width: 26px; height: 26px; stroke-width: 1.9; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)); }
.tool-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .55; transition: opacity .2s;
  background: radial-gradient(380px circle at 0 0, color-mix(in srgb, var(--tone-a) 13%, transparent), transparent 55%); }
.tool-card:hover::before { opacity: 1; }
.tool-card:hover .tool-icon { transform: translateY(-2px) rotate(-5deg) scale(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -10px 18px rgba(0, 0, 0, .14), 0 16px 30px -10px color-mix(in srgb, var(--tone-b) 85%, transparent); }
.tool-card > * { position: relative; }
.tool-title .tool-icon { width: 58px; height: 58px; border-radius: 18px; margin-bottom: 0; }
.tool-title .tool-icon .icon { width: 28px; height: 28px; }
@media (prefers-reduced-motion: reduce) { .tool-icon, .tool-card:hover .tool-icon { transition: none; transform: none; } }
:is(.tool-card, .tool-title)[class*="tone-"] { --tone-ink: var(--tone-b); }
:root[data-theme="dark"] :is(.tool-card, .tool-title)[class*="tone-"] { --tone-ink: color-mix(in srgb, var(--tone-a) 55%, var(--text)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.tool-card, .tool-title)[class*="tone-"] { --tone-ink: color-mix(in srgb, var(--tone-a) 55%, var(--text)); } }

/* ── documentation (wiki rendered at /docs and /admin/docs) ───────────── */
.section-tight { padding-top: 2rem; padding-bottom: 3rem; }
.docs-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr) 200px; gap: 2.5rem; align-items: start; }
.docs-nav, .docs-toc { position: sticky; top: calc(var(--topbar-h) + 1rem); max-height: calc(100vh - var(--topbar-h) - 2rem); overflow: auto; display: flex; flex-direction: column; gap: .1rem; font-size: .9rem; scrollbar-width: thin; }
.docs-nav a, .docs-toc a { color: var(--text-2); padding: .32rem .7rem; border-radius: 8px; border-left: 2px solid transparent; text-decoration: none; }
.docs-nav a:hover, .docs-toc a:hover { color: var(--text); background: var(--surface-2); }
.docs-nav a.is-active { color: var(--accent); background: var(--accent-soft); border-left-color: var(--accent); font-weight: 650; }
.docs-nav-home { display: inline-flex; align-items: center; gap: .45rem; font-weight: 650; }
.docs-nav-title { margin: 1rem 0 .3rem; padding: 0 .7rem; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.docs-toc a { font-size: .84rem; padding: .25rem .6rem; }
.docs-article { min-width: 0; max-width: 820px; }
.docs-article > h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.02em; margin: .3rem 0 1rem; }
.docs-crumbs { display: flex; align-items: center; gap: .35rem; font-size: .84rem; color: var(--text-3); }
.docs-crumbs a { color: var(--text-3); }
.docs-body { font-size: 1rem; line-height: 1.75; color: var(--text); }
.docs-body > p:first-child { font-size: 1.12rem; color: var(--text-2); }
.docs-body h2 { margin: 2.4rem 0 .8rem; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: 1.45rem; scroll-margin-top: calc(var(--topbar-h) + 1rem); }
.docs-body h3 { margin: 1.8rem 0 .6rem; font-size: 1.15rem; scroll-margin-top: calc(var(--topbar-h) + 1rem); }
.docs-body h4 { margin: 1.4rem 0 .5rem; font-size: 1rem; }
.doc-anchor { float: left; margin-left: -1.1em; padding-right: .3em; color: var(--text-3); opacity: 0; text-decoration: none; }
.docs-body :is(h2, h3, h4):hover .doc-anchor { opacity: 1; }
.docs-body ul, .docs-body ol { padding-left: 1.4rem; margin: .6rem 0 1rem; }
.docs-body li { margin: .3rem 0; }
.docs-body li > ul, .docs-body li > ol { margin: .3rem 0; }
.docs-body code { font-family: var(--mono); font-size: .86em; padding: .12em .4em; border-radius: 6px; background: var(--surface-3); color: var(--text); overflow-wrap: anywhere; }
.doc-code { margin: 1rem 0 1.4rem; padding: 1rem 1.1rem; border-radius: 12px; background: #08100d; border: 1px solid #1b2521; color: #cfe9dd; font: .84rem/1.65 var(--mono); overflow-x: auto; }
.doc-code code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.doc-code[data-lang]::before { content: attr(data-lang); display: block; margin-bottom: .5rem; font: 700 .68rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: #8a9d95; }
.doc-table { margin: 1rem 0 1.4rem; border: 1px solid var(--border); border-radius: 12px; }
.doc-table .table { font-size: .9rem; margin: 0; }
.doc-table th { white-space: nowrap; }
.doc-table td { vertical-align: top; line-height: 1.55; }
.doc-ref { border-bottom: 1px dotted var(--text-3); }
.docs-footer { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--border); font-size: .86rem; color: var(--text-3); }
.docs-footer p { margin: 0; }
.docs-group { margin: 2.2rem 0 1rem; font-size: 1.2rem; }
.docs-group:first-child { margin-top: 0; }
.docs-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.docs-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem 1.3rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.docs-card:hover { text-decoration: none; transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 14px 32px rgba(10, 20, 16, .1); }
.docs-card span:not(.docs-card-go) { color: var(--text-2); font-size: .9rem; flex: 1; }
.docs-card-go { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent); font-weight: 700; font-size: .86rem; }
@media (max-width: 1180px) { .docs-shell { grid-template-columns: 220px minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 820px) { .docs-shell { grid-template-columns: 1fr; gap: 1rem; } .docs-nav { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: .3rem; } .docs-nav-title { display: none; } .docs-nav a { border: 1px solid var(--border); border-radius: 99px; padding: .3rem .8rem; } }
.doc-facts td:first-child { width: 32%; font-weight: 650; color: var(--text); background: var(--surface-2); }
.doc-task { list-style: none; position: relative; margin-left: -1.4rem; padding-left: 1.9rem; }
.doc-check { position: absolute; left: 0; top: .32em; width: 1.05em; height: 1.05em; border-radius: 4px; border: 1.5px solid var(--border-strong); background: var(--surface); }
.doc-check.is-done { border-color: var(--accent); background: var(--accent); }
.doc-check.is-done::after { content: ""; position: absolute; left: .32em; top: .1em; width: .3em; height: .55em; border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* System infrastructure page (operator console) */
.infra-previews { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.infra-preview { margin: 0; overflow: hidden; }
.infra-preview img { display: block; width: 100%; height: 300px; object-fit: contain; object-position: center top; padding: .6rem; background: var(--surface-2); border-bottom: 1px solid var(--border); transition: transform .2s; }
.infra-preview a:hover img { transform: scale(1.02); }
.infra-preview figcaption { padding: .7rem .9rem; font-size: .85rem; font-weight: 600; color: var(--text-2); }
.infra-contents { list-style: none; margin: 0; padding: .4rem 1.25rem 1rem; }
.infra-contents li { display: flex; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.infra-contents li:last-child { border-bottom: 0; }
.infra-contents b { flex: none; width: 2.2rem; color: var(--accent); }
.infra-contents span { display: flex; flex-direction: column; }
.infra-contents small { color: var(--text-3); }
.docs-download { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.4rem; padding: .9rem 1.1rem; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); background: var(--accent-soft); color: var(--text); text-decoration: none; }
.docs-download:hover { text-decoration: none; border-color: var(--accent); }
.docs-download > .icon:first-child { width: 28px; height: 28px; color: var(--accent); }
.docs-download span { display: flex; flex-direction: column; flex: 1; }
.docs-download small { color: var(--text-2); }
.infra-previews > .card + .card { margin-top: 0; }
