/* =====================================================================
   Maxinet My Account — "From our tower to your home" design (CEO, 2026-10-22).
   Ported from the approved prototype. Fonts are self-hosted Metropolis.
   ===================================================================== */
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/metropolis-400.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/metropolis-500.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/metropolis-600.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/metropolis-700.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/metropolis-800.woff2") format("woff2"); }
/* Layout: sidebar shell on desktop, icon rail on tablets, top bar + bottom tabs on phones.
   One bold element: the night-sky "link" panel (base station → home) in deep plum with gold signal.
   Everything else stays quiet: lavender-tinted neutrals, white surfaces, purple for action, magenta for urgency. */
:root {
  --brand: #521B92;
  --brand-hover: #44147D;
  --magenta: #E72C70;
  --gold: #F5B82E;
  --night: #1B0A35;
  --night-2: #2A0F50;
  --night-text: #F6F1FF;
  --night-muted: #BFB2DA;

  --bg: #F4F2F8;
  --surface: #FFFFFF;
  --surface-2: #F9F7FC;
  --sunken: #EEEAF5;
  --line: #E6E1EF;
  --line-strong: #D2C9E1;
  --text: #1A1030;
  --text-2: #463E5C;
  --muted: #625A78;
  --faint: #736B89;
  --urgent: #D41F62;
  --accent: #5B1FA3;
  --accent-soft: #F0E8FB;
  --ring: rgba(91, 31, 163, .35);
  --on-brand: #FFFFFF;
  --chart: #6A2DB8;
  --chart-dim: #D9CCEE;

  --ok: #137A3C;       --ok-soft: #E1F4E8;
  --warn: #9C5208;     --warn-soft: #FCEFD8;
  --danger: #B3203F;   --danger-soft: #FCE7EC;
  --info: #2A4DB3;     --info-soft: #E4EAFB;

  --shadow-1: 0 1px 2px rgba(26, 16, 48, .05), 0 2px 8px rgba(26, 16, 48, .04);
  --shadow-2: 0 2px 6px rgba(26, 16, 48, .06), 0 18px 48px rgba(43, 15, 82, .14);
  --shadow-night: 0 24px 60px -20px rgba(43, 15, 82, .55);

  --font: "Metropolis", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-xs: 7px;

  --side-w: 256px;
  --top-h: 64px;
  --tab-h: 64px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #7A3BD1;
    --brand-hover: #8A4FDB;
    --night: #150828;
    --night-2: #230C44;
    --bg: #0E0A16;
    --surface: #17121F;
    --surface-2: #1C1626;
    --sunken: #120E1A;
    --line: #2A2338;
    --line-strong: #3B3250;
    --text: #F3EFFA;
    --text-2: #D3CBE2;
    --muted: #A69DB9;
    --faint: #8A829E;
    --accent: #C7A6FF;
    --accent-soft: rgba(160, 110, 255, .15);
    --ring: rgba(199, 166, 255, .45);
    --chart: #B08AF5;
    --chart-dim: #3A2E52;
    --ok: #5BD68A;     --ok-soft: rgba(52, 199, 105, .14);
    --warn: #F6B54A;   --warn-soft: rgba(245, 160, 40, .14);
    --danger: #FF7A97; --danger-soft: rgba(255, 80, 120, .14);
    --info: #9DB5FF;   --info-soft: rgba(110, 140, 255, .15);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 48px rgba(0, 0, 0, .45);
    --shadow-night: 0 24px 60px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #7A3BD1;
  --brand-hover: #8A4FDB;
  --night: #150828;
  --night-2: #230C44;
  --bg: #0E0A16;
  --surface: #17121F;
  --surface-2: #1C1626;
  --sunken: #120E1A;
  --line: #2A2338;
  --line-strong: #3B3250;
  --text: #F3EFFA;
  --text-2: #D3CBE2;
  --muted: #A69DB9;
  --faint: #8A829E;
  --accent: #C7A6FF;
  --accent-soft: rgba(160, 110, 255, .15);
  --ring: rgba(199, 166, 255, .45);
  --chart: #B08AF5;
  --chart-dim: #3A2E52;
  --ok: #5BD68A;     --ok-soft: rgba(52, 199, 105, .14);
  --warn: #F6B54A;   --warn-soft: rgba(245, 160, 40, .14);
  --danger: #FF7A97; --danger-soft: rgba(255, 80, 120, .14);
  --info: #9DB5FF;   --info-soft: rgba(110, 140, 255, .15);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 48px rgba(0, 0, 0, .45);
  --shadow-night: 0 24px 60px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--surface);
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; font-weight: 800; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p a, .note-line a, .myra-foot a, .helpful a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; flex: none; }
.ico-lg { width: 24px; height: 24px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.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; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent-soft); }

/* ---------- Type scale ---------- */
.t-display { font-size: clamp(30px, 4.2vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.t-h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.t-h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.t-h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.t-body { font-size: 15px; }
.t-small { font-size: 13px; line-height: 1.45; }
.t-tiny { font-size: 12px; line-height: 1.4; }
.t-label { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 14.5px; letter-spacing: -.005em;
  white-space: nowrap; text-decoration: none !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(82, 27, 146, .55); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-urgent { background: var(--urgent); color: #fff; box-shadow: 0 6px 18px -6px rgba(231, 44, 112, .6); }
.btn-urgent:hover { filter: brightness(1.06); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--faint); }
.btn-ghost { background: transparent; color: var(--accent); padding: 0 12px; }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { filter: brightness(.97); }
.btn-white { background: #fff; color: #2A0F50; }
.btn-white:hover { background: #F3EDFF; }
.btn-glass { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-glass:hover { background: rgba(255,255,255,.18); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn.busy { pointer-events: none; }
.btn.busy .ico { animation: spin .8s linear infinite; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid transparent;
  display: inline-grid; place-items: center; background: transparent; color: var(--text-2);
  position: relative; transition: background-color .15s ease;
}
.icon-btn:hover { background: var(--sunken); color: var(--text); }
.icon-btn .badge-dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 2px var(--surface); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pills & chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  background: var(--sunken); color: var(--text-2);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.no-dot::before { display: none; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-brand { background: var(--accent-soft); color: var(--accent); }
.pill-neutral { background: var(--sunken); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--sunken); color: var(--muted); letter-spacing: .01em; }
.tag-sample { background: var(--warn-soft); color: var(--warn); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--faint); color: var(--text); }
.chip[aria-pressed="true"], .chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip .count { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }

/* ---------- Cards / panels ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.panel-flat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); background: var(--surface); }
.auth-night {
  position: relative; overflow: hidden; color: var(--night-text);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(231, 44, 112, .32), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(122, 59, 209, .45), transparent 60%),
    linear-gradient(160deg, var(--night-2), var(--night) 70%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding-block: 40px 36px; padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: 40px;
}
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 8px 20px -6px rgba(0,0,0,.5); }
.auth-brand b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; display: block; line-height: 1.1; }
.auth-brand span { font-size: 12.5px; color: var(--night-muted); }
.auth-copy { position: relative; z-index: 1; max-width: 30ch; }
.auth-copy h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; }
.auth-copy p { margin-top: 14px; color: var(--night-muted); font-size: 16px; max-width: 38ch; }
.auth-scene { position: relative; z-index: 1; margin-inline: -12px; }
.auth-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.auth-fact { display: grid; gap: 8px; font-size: 13.5px; color: var(--night-muted); line-height: 1.4; }
.auth-fact .ico { color: var(--gold); }
.auth-fact b { color: var(--night-text); font-weight: 700; display: block; }

.auth-form-side {
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 40px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  background: var(--surface);
}
.auth-box { width: 100%; max-width: 400px; margin-inline: auto; display: grid; gap: 22px; }
.auth-wordmark { width: 168px; height: auto; }
:root[data-theme="dark"] .auth-wordmark { filter: brightness(0) invert(1); opacity: .92; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-wordmark { filter: brightness(0) invert(1); opacity: .92; } }
.auth-box h1 { font-size: 30px; letter-spacing: -.035em; }
.auth-box .lede { color: var(--muted); margin-top: 6px; }
.auth-foot { display: grid; gap: 10px; text-align: center; font-size: 13.5px; color: var(--muted); }
.proto-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--warn); background: var(--warn-soft); padding: 10px 12px; border-radius: 10px; line-height: 1.4; }
.steps-dots { display: flex; gap: 6px; }
.steps-dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--line-strong); }
.steps-dots i.on { background: var(--brand); }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp input { height: 54px; text-align: center; font-size: 22px; font-weight: 800; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); font-variant-numeric: tabular-nums; min-width: 0; }
.otp input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; }
.field > label, .field-label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--text);
  font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.textarea { padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.input.invalid { border-color: var(--danger); }
.input-wrap { position: relative; }
.input-wrap > .ico-lead { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-wrap > .input { padding-left: 44px; }
.input-wrap > .reveal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.input-wrap > .input.has-reveal { padding-right: 48px; }
.hint { font-size: 12.5px; color: var(--muted); }
.error-text { font-size: 12.5px; color: var(--danger); font-weight: 600; }
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength i { height: 4px; border-radius: 4px; background: var(--line); }
.strength[data-s="1"] i:nth-child(-n+1) { background: var(--danger); }
.strength[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.strength[data-s="3"] i:nth-child(-n+3) { background: var(--ok); }
.strength[data-s="4"] i { background: var(--ok); }

.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: var(--sunken); border: 1px solid var(--line); }
.seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong); transition: background-color .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 2px; }

/* ---------- Shell ---------- */
.shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 14px 16px; padding-left: max(14px, env(safe-area-inset-left, 0px));
  background: var(--surface); border-right: 1px solid var(--line);
  overflow-y: auto;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; color: var(--text); text-decoration: none !important; }
.side-brand img { width: 38px; height: 38px; border-radius: 11px; }
.side-brand b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.side-brand span { font-size: 12px; color: var(--muted); font-weight: 600; }
.nav { display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 11px;
  color: var(--text-2); font-weight: 600; font-size: 14.5px; text-decoration: none !important; position: relative;
}
.nav a:hover { background: var(--sunken); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav a .nav-count { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--magenta); color: #fff; border-radius: 99px; padding: 1px 7px; }
.nav-label { font-size: 12px; font-weight: 600; color: var(--faint); padding: 14px 12px 6px; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; }
.side-status { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.side-status b { color: var(--text); display: block; font-size: 13px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-top: 4px; flex: none; box-shadow: 0 0 0 4px var(--ok-soft); }
.live-dot.off { background: var(--faint); box-shadow: 0 0 0 4px var(--sunken); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 0; background: transparent; text-align: left; width: 100%; }
.side-user:hover { background: var(--sunken); }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(140deg, #6A2DB8, var(--magenta)); letter-spacing: .02em; }
.avatar-lg { width: 72px; height: 72px; font-size: 26px; }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  height: var(--top-h);
  display: flex; align-items: center; gap: 12px;
  padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.top-brand { display: none; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.top-brand img { width: 34px; height: 34px; border-radius: 10px; }
.top-brand b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.search-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 14px; width: min(360px, 40vw);
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--faint); font-size: 14px; text-align: left;
}
.search-btn:hover { border-color: var(--line-strong); color: var(--muted); }
.search-btn kbd { margin-left: auto; font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--sunken); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.proto-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--warn); color: var(--warn); background: var(--warn-soft); font-size: 12.5px; font-weight: 700; }
.proto-chip:hover { filter: brightness(.98); }

.view { width: 100%; max-width: 1200px; margin-inline: auto; padding-block: 18px 56px; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); outline: none; }
.view-enter { animation: viewIn .32s cubic-bezier(.2,.7,.2,1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .lede { color: var(--muted); margin-top: 6px; max-width: 60ch; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 10px; background: none; border: 0; padding: 4px 0; }
.back:hover { color: var(--text); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-title h2 { font-size: 18px; font-weight: 800; }

.tabbar { display: none; }

/* ---------- Dashboard ---------- */
.greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.greet h1 { font-size: clamp(26px, 3.2vw, 32px); letter-spacing: -.035em; }
.greet p { color: var(--muted); margin-top: 4px; }
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }

/* Night link panel (the signature element) */
.night {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl); color: var(--night-text);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(231, 44, 112, .30), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(122, 59, 209, .40), transparent 65%),
    linear-gradient(155deg, var(--night-2), var(--night) 72%);
  box-shadow: var(--shadow-night);
}
.night[data-state="expired"] { background:
    radial-gradient(70% 90% at 100% 0%, rgba(231, 44, 112, .20), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(90, 50, 150, .35), transparent 65%),
    linear-gradient(155deg, #23103F, var(--night) 72%); }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; padding: 30px 32px 26px; min-height: 320px; }
.r2 > .card { height: 100%; }
.usage-card { display: flex; flex-direction: column; }
.usage-card .chart-wrap { margin-top: auto; }
.hero-info { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 2; min-width: 0; }
.hero-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-top .t-small { color: var(--night-muted); }
.hero-plan { font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--night-muted); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta b { color: var(--night-text); font-weight: 700; }
.hero-state { margin-top: 2px; }
.hero-state .big { font-size: 15.5px; color: var(--night-text); font-weight: 600; line-height: 1.45; max-width: 40ch; }
.hero-state .big strong { color: var(--gold); font-weight: 800; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.npill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.npill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.npill-ok { color: #8BF0B0; }
.npill-warn { color: #FFD27A; }
.npill-danger { color: #FF9DB8; }
.hero-scene { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.scene { width: 100%; height: auto; display: block; overflow: visible; }
.scene text { font-family: var(--font); }
.cycle { display: grid; gap: 8px; margin-top: 4px; }
.cycle-bar { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; height: 14px; }
.cycle-bar i { border-radius: 3px; background: rgba(255,255,255,.12); }
.cycle-bar i.on { background: var(--gold); }
.cycle-bar.warn i.on { background: #FF9D5C; }
.cycle-legend { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--night-muted); font-variant-numeric: tabular-nums; }

/* Quick renew card */
.renew-card { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.months { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.months button {
  display: grid; place-items: center; gap: 0; padding: 9px 0 8px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text);
  font-weight: 800; font-size: 18px; line-height: 1.05; font-variant-numeric: tabular-nums;
}
.months button small { font-size: 11px; font-weight: 600; color: var(--muted); }
.months button:hover { border-color: var(--faint); }
.months button[aria-pressed="true"] { border-color: var(--brand); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.months button[aria-pressed="true"] small { color: var(--accent); }
.sumrows { display: grid; gap: 10px; font-size: 14px; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sumrow span:first-child { color: var(--muted); min-width: 0; }
.sumrow span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sumrow.total { padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 15px; }
.sumrow.total span:first-child { color: var(--text); font-weight: 700; }
.sumrow.total span:last-child { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.paystack-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.paystack-line .ico-sm { color: var(--ok); }

/* Line check */
.linecheck { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.lc-path { display: grid; grid-template-columns: auto minmax(0,1fr) auto minmax(0,1fr) auto; align-items: center; gap: 6px; }
.lc-node { display: grid; justify-items: center; gap: 6px; text-align: center; width: 76px; }
.lc-node .orb { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sunken); color: var(--muted); border: 1.5px solid var(--line); transition: all .25s; position: relative; }
.lc-node span { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.lc-node.run .orb { color: var(--accent); border-color: var(--accent); }
.lc-node.run .orb::after { content: ""; position: absolute; inset: -5px; border-radius: 17px; border: 2px solid var(--accent); border-top-color: transparent; animation: spin .9s linear infinite; }
.lc-node.ok .orb { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.lc-node.warn .orb { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.lc-node.bad .orb { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.lc-wire { height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 11px); border-radius: 2px; margin-bottom: 22px; position: relative; overflow: hidden; }
.lc-wire.ok { background: var(--ok); opacity: .6; }
.lc-wire.flow::after { content: ""; position: absolute; top: -1px; left: -30%; width: 30%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: flow 1s linear infinite; }
@keyframes flow { to { left: 100%; } }
.lc-result { border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.lc-result b { font-size: 15px; }
.lc-result.ok { background: var(--ok-soft); }
.lc-result.ok b { color: var(--ok); }
.lc-result.warn { background: var(--warn-soft); }
.lc-result.warn b { color: var(--warn); }
.lc-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.lc-metric { background: var(--surface); border-radius: 10px; padding: 8px 10px; }
.lc-metric span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.lc-metric b { font-size: 15px; color: var(--text) !important; font-variant-numeric: tabular-nums; }

/* Usage chart */
.chart-wrap { position: relative; }
.chart { width: 100%; height: 190px; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--chart); transition: opacity .15s; }
.chart .bar.dim { fill: var(--chart-dim); }
.chart .hit { fill: transparent; cursor: default; }
.chart-wrap:hover .bar { opacity: .55; }
.chart-wrap .bar.hot { opacity: 1; }
.tooltip { position: absolute; pointer-events: none; z-index: 5; background: var(--text); color: var(--bg); font-size: 12.5px; font-weight: 600; padding: 7px 10px; border-radius: 9px; white-space: nowrap; transform: translate(-50%, -100%); box-shadow: var(--shadow-2); font-variant-numeric: tabular-nums; }
.tooltip span { display: block; font-weight: 500; opacity: .75; font-size: 11.5px; }
.stat-row { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 8px; }
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* Quick actions */
.qa-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.qa {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none !important;
  font-weight: 700; font-size: 14px; text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; min-width: 0;
}
.qa:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.qa .qa-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.qa .qa-ico.pink { background: var(--danger-soft); color: var(--danger); }
.qa .qa-ico.gold { background: var(--warn-soft); color: var(--warn); }
.qa .qa-ico.green { background: var(--ok-soft); color: var(--ok); }
.qa small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 1px; }
.qa > span { min-width: 0; }

/* Activity timeline */
.activity { display: grid; }
.act { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.act:last-child { border-bottom: 0; }
.act .act-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--sunken); color: var(--muted); }
.act b { font-size: 14px; display: block; }
.act p { font-size: 13px; color: var(--muted); }
.act time { font-size: 12.5px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.act-row-btn { all: unset; display: contents; cursor: pointer; }

.promo { position: relative; overflow: hidden; border-radius: var(--r-lg); display: block; text-decoration: none !important; color: #fff; background: var(--night); }
.promo img { width: 100%; height: auto; aspect-ratio: 10 / 3; object-fit: cover; }
.promo-tip { display: flex; gap: 14px; align-items: center; padding: 18px; }
.promo-tip .qa-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); flex: none; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow-1); }
.plan.current { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring), var(--shadow-1); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 28px; }
.plan-name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.plan-speed { display: flex; align-items: baseline; gap: 6px; }
.plan-speed b { font-size: 52px; font-weight: 800; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.plan-speed span { font-size: 16px; font-weight: 700; color: var(--muted); }
.speed-meter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; height: 8px; }
.speed-meter i { border-radius: 2px; background: var(--sunken); }
.speed-meter i.on { background: var(--chart); }
.plan-price { font-size: 15px; color: var(--muted); }
.plan-price b { font-size: 24px; color: var(--text); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--text-2); }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li .ico-sm { color: var(--ok); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plan-diff { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: -8px; }
.note-line { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13.5px; margin-top: 18px; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.co-step { padding: 22px; }
.co-step + .co-step { border-top: 1px solid var(--line); }
.co-step h2 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.co-step h2 .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800; }
.plan-radios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.radio-card { position: relative; display: grid; gap: 3px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); text-align: left; }
.radio-card:hover { border-color: var(--faint); }
.radio-card[aria-pressed="true"] { border-color: var(--brand); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--ring); }
.radio-card b { font-size: 15px; }
.radio-card span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.radio-card .tag { position: absolute; top: 10px; right: 10px; }
.methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.method { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); text-align: left; font-weight: 700; font-size: 14px; min-width: 0; }
.method:hover { border-color: var(--faint); }
.method[aria-pressed="true"] { border-color: var(--brand); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--ring); }
.method .mlogo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; letter-spacing: -.02em; }
.method small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.method > span { min-width: 0; }
.ml-mtn { background: #FFCB05; color: #1B1B1B; }
.ml-telecel { background: #E40000; color: #fff; }
.ml-at { background: #0E4D9C; color: #fff; }
.ml-card { background: var(--text); color: var(--bg); }
.ml-bank { background: var(--ok-soft); color: var(--ok); }
.summary-card { position: sticky; top: calc(var(--top-h) + 16px); }
.coverage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.coverage div span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.coverage div b { font-size: 15px; font-variant-numeric: tabular-nums; }
.coverage div:last-child { text-align: right; }
.coverage .ico { color: var(--faint); }

.paybar, .paybar-space { display: none; }

/* ---------- Lists & tables ---------- */
.list { display: grid; }
.row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; background: transparent; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.row:last-child { border-bottom: 0; }
button.row:hover, a.row:hover { background: var(--surface-2); }
.row-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.row-ico.pink { background: var(--danger-soft); color: var(--danger); }
.row-ico.green { background: var(--ok-soft); color: var(--ok); }
.row-body { flex: 1; min-width: 0; }
.row-title { font-weight: 700; font-size: 14.5px; }
.row-sub { font-size: 13px; color: var(--muted); }
.row .chev { color: var(--faint); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 12px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td.amt, .table th.amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody tr:hover { background: var(--surface-2); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.kv div span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.kv div b { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; word-break: break-word; }
.copy { border: 0; background: var(--sunken); color: var(--muted); border-radius: 7px; height: 26px; padding: 0 8px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.copy:hover { color: var(--text); }
.copy.done { color: var(--ok); background: var(--ok-soft); }

/* ---------- Tickets ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .chips { flex: 1; min-width: 0; }
.search-inline { position: relative; width: min(280px, 100%); }
.search-inline .input { min-height: 40px; padding-left: 40px; font-size: 14px; }
.search-inline .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.tk { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; background: transparent; border-left: 0; border-right: 0; border-top: 0; color: var(--text); }
.tk:last-child { border-bottom: 0; }
.tk:hover { background: var(--surface-2); }
.tk .stripe { align-self: stretch; border-radius: 0 4px 4px 0; background: var(--line-strong); }
.tk .stripe.s-open { background: var(--info); }
.tk .stripe.s-progress { background: var(--warn); }
.tk .stripe.s-hold { background: var(--faint); }
.tk .stripe.s-closed { background: var(--ok); }
.tk-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tk-no { font-size: 12.5px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.tk-subj { font-weight: 700; font-size: 15px; margin-top: 2px; }
.tk-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tk-meta span { display: inline-flex; align-items: center; gap: 5px; }
.tk-right { display: grid; justify-items: end; gap: 6px; }
.prio { font-size: 12px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.prio i { width: 5px; height: 12px; border-radius: 2px; background: var(--line-strong); display: inline-block; box-shadow: 7px 0 0 var(--line-strong), 14px 0 0 var(--line-strong); margin-right: 16px; flex: none; }
.prio.p-high i { background: var(--danger); box-shadow: 7px 0 0 var(--danger), 14px 0 0 var(--danger); }
.prio.p-medium i { background: var(--warn); box-shadow: 7px 0 0 var(--warn), 14px 0 0 var(--line-strong); }
.prio.p-low i { background: var(--ok); box-shadow: 7px 0 0 var(--line-strong), 14px 0 0 var(--line-strong); }
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 44px 20px; color: var(--muted); }
.empty .ei { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--sunken); color: var(--faint); }
.empty b { color: var(--text); font-size: 16px; }

.td-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 18px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); color: var(--faint); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.tl.done .dot { background: var(--ok); color: #fff; box-shadow: none; }
.tl.now .dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--ring); }
.tl b { font-size: 14px; display: block; }
.tl span { font-size: 12.5px; color: var(--muted); }
.report-sum { display: grid; gap: 12px; }
.finding { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.finding .fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.finding b { display: block; font-size: 14.5px; }
.finding p { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.check-group h3 { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; letter-spacing: 0; }
.check-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.check-group li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; }
.check-group li .mark { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; flex: none; margin-top: 1px; }
.mark.ok { background: var(--ok-soft); color: var(--ok); }
.mark.no { background: var(--danger-soft); color: var(--danger); }
.mark.warn { background: var(--warn-soft); color: var(--warn); }
.mark.na { background: var(--sunken); color: var(--faint); }
details.disclose { border-top: 1px solid var(--line); }
details.disclose summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 22px; font-weight: 700; font-size: 14.5px; }
details.disclose summary::-webkit-details-marker { display: none; }
details.disclose summary .ico { color: var(--faint); transition: transform .2s; }
details.disclose[open] summary .ico { transform: rotate(90deg); }
details.disclose .disc-body { padding: 0 22px 22px; }
.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.msg .bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 12px 14px; font-size: 14px; }
.msg.me { grid-template-columns: minmax(0, 1fr) 36px; }
.msg.me .bubble { background: var(--accent-soft); border-color: transparent; border-radius: 16px 4px 16px 16px; }
.msg .who { font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.msg .who b { color: var(--text); }
.staff-av { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--night); color: var(--gold); }
.stars { display: flex; gap: 6px; }
.stars button { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--faint); display: grid; place-items: center; }
.stars button.on { color: var(--gold); border-color: var(--gold); background: var(--warn-soft); }
.stars button.on svg { fill: currentColor; }

.issue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.issue { display: grid; gap: 10px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--surface); text-align: left; color: var(--text); }
.issue:hover { border-color: var(--faint); box-shadow: var(--shadow-1); }
.issue[aria-pressed="true"] { border-color: var(--brand); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--ring); }
.issue .ii { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sunken); color: var(--text-2); }
.issue[aria-pressed="true"] .ii { background: var(--brand); color: #fff; }
.issue b { font-size: 14.5px; }
.issue span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.quickfix { display: grid; gap: 8px; }
.qf { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.qf input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ok); flex: none; }
.qf b { display: block; font-size: 14px; }
.qf span { color: var(--muted); font-size: 13px; }
.dropzone { display: grid; place-items: center; gap: 6px; text-align: center; padding: 20px; border-radius: 14px; border: 1.5px dashed var(--line-strong); background: var(--surface-2); color: var(--muted); font-size: 13.5px; cursor: pointer; position: relative; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); color: var(--accent); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }

/* ---------- Myra ---------- */
.myra { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100dvh - var(--top-h) - 18px - 24px); min-height: 520px; overflow: hidden; }
.myra-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.myra-av { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: radial-gradient(circle at 30% 25%, #8E4FE0, var(--brand) 60%, #3C0F70); color: #fff; box-shadow: 0 6px 16px -6px rgba(82,27,146,.6); }
.myra-av.sm { width: 32px; height: 32px; border-radius: 10px; }
.myra-head .who { flex: 1; min-width: 0; }
.myra-head .who h1 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.myra-head .who span { font-size: 12.5px; color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.myra-head .who span.local { color: var(--muted); }
.myra-log { overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.mm { display: flex; gap: 10px; align-items: flex-end; max-width: min(640px, 92%); }
.mm .b { padding: 12px 15px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; min-width: 0; overflow-wrap: anywhere; }
.mm .b p + p, .mm .b ul, .mm .b ol { margin-top: 8px; }
.mm .b ul, .mm .b ol { padding-left: 18px; margin-bottom: 0; }
.mm .b li + li { margin-top: 3px; }
.mm.me { align-self: flex-end; flex-direction: row-reverse; }
.mm.me .b { background: var(--brand); color: #fff; border-color: transparent; border-radius: 18px 18px 6px 18px; }
.mm .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.myra-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.myra-compose { display: flex; gap: 10px; align-items: flex-end; padding: 14px 20px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.myra-compose textarea { flex: 1; min-height: 48px; max-height: 160px; resize: none; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); line-height: 1.4; font-size: 15px; }
.myra-compose textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.send { width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.send[disabled] { opacity: .45; }
.send.stop { background: var(--text); color: var(--bg); }
.myra-foot { font-size: 12px; color: var(--faint); text-align: center; padding: 0 20px 12px; }

/* ---------- Help ---------- */
.help-hero { padding: 28px; display: grid; gap: 16px; }
.help-hero h1 { font-size: clamp(24px, 3vw, 30px); }
.help-search { position: relative; max-width: 620px; }
.help-search .input { min-height: 54px; padding-left: 48px; font-size: 16px; border-radius: 14px; background: #fff; color: #1A1030; border-color: transparent; }
.help-search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8A80A3; }
.help-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin-top: 22px; }
.faq { border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .cat { font-size: 12px; font-weight: 700; color: var(--accent); display: block; margin-bottom: 3px; }
.faq summary b { font-size: 15px; font-weight: 700; }
.faq summary .ico { color: var(--faint); transition: transform .2s; }
.faq[open] summary .ico { transform: rotate(45deg); color: var(--accent); }
.faq .ans { padding: 0 20px 18px; color: var(--text-2); font-size: 14.5px; max-width: 70ch; }
.faq .helpful { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
mark { background: var(--warn-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.contact { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.contact:last-child { border-bottom: 0; }
.contact .row-ico { width: 38px; height: 38px; }
.contact b { display: block; font-size: 14.5px; }
.contact p { font-size: 13px; color: var(--muted); }
.contact .phone { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 800; font-size: 15.5px; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.hours { display: grid; gap: 6px; font-size: 13.5px; }
.hours div { display: flex; justify-content: space-between; gap: 10px; }
.hours div.today { font-weight: 700; color: var(--text); }
.hours div span:last-child { font-variant-numeric: tabular-nums; }

/* ---------- Account ---------- */
.acct-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 24px; }
.acct-head .who { flex: 1; min-width: 200px; }
.acct-head h1 { font-size: 24px; }
.acct-head p { color: var(--muted); }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.pref { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pref:last-child { border-bottom: 0; }
.pref .pb { flex: 1; min-width: 0; }
.pref b { display: block; font-size: 14.5px; }
.pref span { font-size: 13px; color: var(--muted); }
.device { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.device:last-child { border-bottom: 0; }
.device .row-ico { background: var(--sunken); color: var(--text-2); }

/* ---------- Overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(14, 6, 28, .48); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto;
  background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-2); border: 1px solid var(--line);
  animation: modalIn .22s cubic-bezier(.2,.8,.2,1);
}
.modal.wide { width: min(640px, calc(100vw - 32px)); }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 18px 20px 22px; display: grid; gap: 16px; }
.drawer {
  position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; animation: drawerIn .25s cubic-bezier(.2,.8,.2,1);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
}
@keyframes drawerIn { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { overflow-y: auto; flex: 1; }
.notif { display: grid; grid-template-columns: 36px minmax(0, 1fr) 10px; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; background: transparent; border-left: 0; border-right: 0; border-top: 0; color: var(--text); }
.notif:hover { background: var(--surface-2); }
.notif .act-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; }
.notif b { font-size: 14px; display: block; }
.notif p { font-size: 13px; color: var(--muted); }
.notif time { font-size: 12px; color: var(--faint); }
.notif .unread { width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); margin-top: 6px; }

.palette { position: fixed; z-index: 81; left: 50%; top: 12vh; transform: translateX(-50%); width: min(600px, calc(100vw - 32px)); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-2); border: 1px solid var(--line); overflow: hidden; animation: fadeIn .15s ease; }
.palette-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette-in .ico { color: var(--faint); }
.palette-in input { flex: 1; height: 58px; border: 0; background: transparent; font-size: 16px; outline: none; min-width: 0; }
.palette-list { max-height: min(420px, 60vh); overflow-y: auto; padding: 8px; }
.pal-group { font-size: 12px; font-weight: 600; color: var(--faint); padding: 10px 12px 4px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; width: 100%; border: 0; background: transparent; text-align: left; font-size: 14.5px; color: var(--text); }
.pal-item .ico { color: var(--muted); }
.pal-item[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.pal-item[aria-selected="true"] .ico { color: var(--accent); }
.pal-item small { margin-left: auto; color: var(--muted); font-size: 12px; }
.pal-item[aria-selected="true"] small { color: var(--accent); }

.popover { position: fixed; z-index: 82; width: min(340px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-2); padding: 16px; display: grid; gap: 12px; animation: fadeIn .15s ease; }
.state-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; width: 100%; }
.state-opt[aria-pressed="true"] { border-color: var(--brand); background: var(--accent-soft); }
.state-opt b { display: block; font-size: 14px; }
.state-opt span { font-size: 12.5px; color: var(--muted); }

.toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(440px, calc(100vw - 32px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-2); animation: toastIn .25s cubic-bezier(.2,.8,.2,1); max-width: 100%; }
.toast .ico { color: var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

.pay-wait { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 10px 0; }
.phone-ring { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); position: relative; }
.phone-ring::before, .phone-ring::after { content: ""; position: absolute; inset: -8px; border-radius: 32px; border: 2px solid var(--ring); animation: ring 1.8s ease-out infinite; }
.phone-ring::after { animation-delay: .9s; }
@keyframes ring { from { opacity: 1; transform: scale(.9); } to { opacity: 0; transform: scale(1.25); } }
.success-mark { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.success-mark svg { width: 40px; height: 40px; }
.success-mark path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .1s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.receipt { border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.receipt-top { padding: 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px dashed var(--line-strong); }
.receipt-top img { width: 36px; height: 36px; border-radius: 10px; }
.receipt-amt { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.receipt-rows { padding: 6px 18px 12px; }
.receipt-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.receipt-rows div:last-child { border-bottom: 0; }
.receipt-rows span:first-child { color: var(--muted); }
.receipt-rows span:last-child { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 14px; }
.alert b { display: block; }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.alert-danger p { color: var(--text-2); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-info p { color: var(--text-2); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-warn p { color: var(--text-2); }

.navprog { position: fixed; top: 0; left: 0; height: 3px; z-index: 100; background: linear-gradient(90deg, var(--brand), var(--magenta), var(--gold)); width: 0; opacity: 0; transition: width .35s ease, opacity .3s ease .2s; }
.navprog.go { width: 100%; opacity: 1; transition: width .35s ease, opacity 0s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blinkLight { 0%, 60%, 100% { opacity: 1; } 70%, 90% { opacity: .2; } }
.aviation { animation: blinkLight 2.4s infinite; }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: .9; } }
.star-tw { animation: twinkle 3.4s ease-in-out infinite; }
@keyframes arcPulse { 0% { opacity: 0; } 30% { opacity: .9; } 100% { opacity: 0; } }
.arc { animation: arcPulse 2.4s ease-out infinite; }
.arc.a2 { animation-delay: .4s; }
.arc.a3 { animation-delay: .8s; }

.offline {
  position: fixed; z-index: 95; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 10px);
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; max-width: calc(100vw - 32px);
  background: var(--text); color: var(--bg); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-2); animation: toastIn .25s ease;
}
.offline .ico-sm { color: var(--gold); flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .qa-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash .r2 { grid-column: span 6; }
  .dash .r2-wide { grid-column: span 12; }
  .checkout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1099px) {
  :root { --side-w: 80px; }
  .sidebar { padding-inline: 12px; align-items: center; }
  .side-brand { padding: 4px 0 18px; }
  .side-brand div, .nav a span.lbl, .nav-label, .side-status, .side-user .who { display: none; }
  .nav a { width: 52px; height: 48px; justify-content: center; padding: 0; }
  .nav a .nav-count { position: absolute; top: 4px; right: 2px; margin: 0; }
  .side-user { justify-content: center; }
  .span-8, .span-7, .span-5, .span-4, .span-6 { grid-column: span 12; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-scene { order: -1; margin-top: -6px; }
  .td-grid, .help-grid { grid-template-columns: minmax(0, 1fr); }
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .summary-card { position: static; }
  .acct-grid { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .auth-night { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: 28px; gap: 20px; }
  .auth-copy h2 { font-size: 32px; }
  .auth-copy p { font-size: 15px; }
  .auth-facts { display: none; }
}
@media (max-width: 759px) {
  .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-night { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 18px 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); gap: 6px; min-height: 176px; }
  .auth-brand img { width: 36px; height: 36px; border-radius: 10px; }
  .auth-brand b { font-size: 16px; }
  .auth-copy { max-width: 52%; margin-top: 14px; }
  .auth-copy h2 { font-size: 22px; letter-spacing: -.03em; }
  .auth-copy p { display: none; }
  .auth-scene { position: absolute; right: -8px; bottom: 0; width: 60%; margin: 0; opacity: .95; pointer-events: none; }
  .auth-scene .scene text { display: none; }
  .auth-wordmark { display: none; }
  .auth-form-side { justify-content: flex-start; padding-block: 22px 32px; }
  .auth-box { gap: 18px; }
  .auth-box h1 { font-size: 26px; }
  .dash .r2, .dash .r2-wide { grid-column: span 12; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); background: var(--surface); border-bottom-color: var(--line); }
  .top-brand { display: flex; }
  .search-btn { display: none; }
  .view { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 16px calc(var(--tab-h) + 32px + env(safe-area-inset-bottom, 0px)); }
  .tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
  .tabbar {
    display: block;
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { height: var(--tab-h); display: grid; place-items: center; align-content: center; gap: 3px; color: var(--faint); font-size: 11px; font-weight: 700; text-decoration: none !important; position: relative; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .tabbar a.tab-myra .tm { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: var(--brand); color: #fff; margin-top: -18px; box-shadow: 0 8px 18px -6px rgba(82,27,146,.6), 0 0 0 4px var(--surface); }
  .tabbar a.tab-myra[aria-current="page"]::before { display: none; }
  .hero { padding: 20px 18px 20px; min-height: 0; }
  .hero-plan { font-size: 34px; }
  .qa-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .qa { flex-direction: column; align-items: flex-start; gap: 10px; }
  .qa:last-child:nth-child(odd) { grid-column: span 2; flex-direction: row; align-items: center; }
  .dash { gap: 16px; }
  .card-pad { padding: 18px; }
  .plan-radios, .methods { grid-template-columns: minmax(0, 1fr); }
  .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .myra { height: calc(100dvh - var(--top-h) - var(--tab-h) - 32px - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px)); min-height: 420px; border-radius: 18px; }
  .myra-log { padding: 16px 14px; }
  .myra-compose { padding: 10px 12px 12px; }
  .myra-suggest { padding: 0 14px 10px; }
  .toasts { bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom, 0px)); }
  .paybar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; z-index: 45; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(26, 16, 48, .2); }
  .paybar b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
  .paybar-space { display: block; height: 72px; }
  .page-head { margin-bottom: 16px; }
  .tk { grid-template-columns: 4px minmax(0, 1fr); }
  .tk-right { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; gap: 12px; margin-top: -6px; }
  .lc-node { width: 64px; }
  .proto-chip .lbl { display: none; }
  .proto-chip { padding: 0 10px; }
  .help-hero { padding: 20px 18px; }
  .acct-head { padding: 20px 18px; }
  .drawer { width: 100vw; }
  .palette { top: 8vh; }
}
@media (max-width: 400px) {
  .months button { font-size: 16px; }
  .methods { grid-template-columns: minmax(0, 1fr); }
  .issue { padding: 14px; }
  .hero-actions .btn { flex: 1; }
  .lc-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===================================================================
   Ghanaian identity + motion layer
   =================================================================== */
:root {
  --wm-color: #5B1FA3;
  --wm-opacity: .055;
  --spot: rgba(122, 59, 209, .10);
  --k-gold: #F5B82E; --k-green: #13874B; --k-red: #E8343B; --k-black: #1B0A35; --k-mag: #E72C70; --k-pur: #7A3BD1;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wm-color: #C7A6FF; --wm-opacity: .05; --spot: rgba(199, 166, 255, .09); } }
:root[data-theme="dark"] { --wm-color: #C7A6FF; --wm-opacity: .05; --spot: rgba(199, 166, 255, .09); }

/* Adinkra watermark layer */
.adinkra-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; color: var(--wm-color); opacity: var(--wm-opacity);
  -webkit-mask-image: radial-gradient(120% 90% at 55% 45%, rgba(0,0,0,.55), #000 75%); mask-image: radial-gradient(120% 90% at 55% 45%, rgba(0,0,0,.55), #000 75%); }
.adinkra-par { position: absolute; inset: 0; will-change: transform; }
.adinkra-drift { position: absolute; top: 0; left: 0; width: calc(100% + 360px) !important; height: calc(100% + 720px) !important; animation: adkDrift 140s linear infinite; will-change: transform; }
@keyframes adkDrift { to { transform: translate3d(-360px, -360px, 0); } }
#root { position: relative; z-index: 1; }
.auth-form-side { background: transparent; }

/* Kente strips */
.kente {
  height: 6px; flex: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, var(--k-gold) 0 16px, var(--k-black) 16px 20px, var(--k-green) 20px 32px, var(--k-gold) 32px 36px, var(--k-mag) 36px 50px, var(--k-black) 50px 54px, var(--k-red) 54px 64px, var(--k-gold) 64px 68px, var(--k-pur) 68px 82px, var(--k-black) 82px 86px);
  background-size: auto, 86px 100%;
  animation: kenteSlide 14s linear infinite;
}
@keyframes kenteSlide { to { background-position: 0 0, 86px 0; } }
.hero > .kente, .auth-night > .kente, .help-hero > .kente { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; }
.sidebar > .kente { margin: -20px -14px 16px; margin-left: calc(-1 * max(14px, env(safe-area-inset-left, 0px))); height: 5px; }
.navprog { background-image: repeating-linear-gradient(90deg, var(--k-gold) 0 18px, var(--k-green) 18px 30px, var(--k-mag) 30px 46px, var(--k-pur) 46px 60px); }
.help-hero { position: relative; overflow: hidden; }

/* Time-of-day skies */
.night[data-sky="night"], .auth-night[data-sky="night"] { background:
  radial-gradient(70% 90% at 100% 0%, rgba(231, 44, 112, .30), transparent 60%),
  radial-gradient(60% 80% at 0% 100%, rgba(122, 59, 209, .40), transparent 65%),
  linear-gradient(155deg, var(--night-2), var(--night) 72%); }
.night[data-sky="day"], .auth-night[data-sky="day"] { background:
  radial-gradient(55% 70% at 92% 8%, rgba(255, 214, 107, .30), transparent 60%),
  radial-gradient(60% 80% at 0% 100%, rgba(231, 44, 112, .22), transparent 65%),
  linear-gradient(165deg, #5E24AD 0%, #42178A 55%, #2B1056 100%); }
.night[data-sky="dawn"], .auth-night[data-sky="dawn"] { background:
  radial-gradient(70% 60% at 60% 100%, rgba(255, 170, 90, .45), transparent 70%),
  linear-gradient(180deg, #24103F 0%, #4E1871 42%, #9C2C6E 78%, #D9634E 100%); }
.night[data-sky="dusk"], .auth-night[data-sky="dusk"] { background:
  radial-gradient(70% 60% at 60% 100%, rgba(255, 120, 60, .5), transparent 70%),
  linear-gradient(180deg, #1F0D38 0%, #531760 40%, #A2275C 74%, #E2593A 100%); }
.night[data-state="expired"]::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: rgba(12, 5, 24, .32); }
.night { --px: 0; --py: 0; }
.night::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, -999px) var(--my, -999px), rgba(245, 184, 46, .16), transparent 60%); }
.night:hover::after { opacity: 1; }
.scene .p-far { transform: translate(calc(var(--px) * -5px), calc(var(--py) * -3px)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.scene .p-mid { transform: translate(calc(var(--px) * -9px), calc(var(--py) * -4px)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.scene .p-near { transform: translate(calc(var(--px) * -14px), calc(var(--py) * -6px)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.shoot-wrap { transform: translate(400px, 26px); }
.shoot { opacity: 0; animation: shoot 9s ease-in 3s infinite; }
@keyframes shoot { 0% { opacity: 0; transform: translate(0, 0); } 2% { opacity: 1; } 9% { opacity: 0; transform: translate(-230px, 70px); } 100% { opacity: 0; transform: translate(-230px, 70px); } }
.cloud { animation: cloudDrift 26s ease-in-out infinite alternate; }
.cloud.c2 { animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes cloudDrift { from { transform: translateX(-18px); } to { transform: translateX(22px); } }
.sun-rays { animation: spin 60s linear infinite; transform-box: view-box; }
.gate-pulse { transform-box: fill-box; transform-origin: center; animation: gatePulse 2s ease-out infinite; }
@keyframes gatePulse { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.win { animation: winGlow 5s ease-in-out infinite; }
@keyframes winGlow { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }
.win-glow { animation: winGlow 5s ease-in-out infinite; }

/* Scene draws itself on first visit */
.draw-in .dr { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dashIn .9s cubic-bezier(.4,.1,.2,1) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes dashIn { to { stroke-dashoffset: 0; } }
.draw-in .pk, .draw-in .arc, .draw-in .beam-glow { opacity: 0; animation: appear .6s 1.5s forwards; }
.draw-in .arc { animation: appear .6s 1.5s forwards, arcPulse 2.4s 2.1s ease-out infinite; }
@keyframes appear { to { opacity: 1; } }

/* Adinkrahene broadcast rings behind the plan */
.hero-rings { position: absolute; z-index: 0; left: -90px; bottom: -120px; width: 380px; height: 380px; color: var(--gold); opacity: .09; pointer-events: none; }
.hero-rings svg { width: 100%; height: 100%; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.auth-night .hero-rings { left: auto; right: -110px; top: -120px; bottom: auto; width: 360px; height: 360px; opacity: .08; }

/* Page symbol watermark + footer */
.view { position: relative; }
.page-mark { position: absolute; z-index: 0; top: 4px; right: max(24px, env(safe-area-inset-right, 0px)); width: 168px; height: 168px; color: var(--wm-color); opacity: .09; pointer-events: none; }
.page-mark svg { width: 100%; height: 100%; animation: markFloat 9s ease-in-out infinite; }
.page-mark.mark-adinkrahene svg { animation: breathe 6s ease-in-out infinite; }
.page-mark.mark-nsoromma svg, .page-mark.mark-nyansapo svg, .page-mark.mark-mpatapo svg, .page-mark.mark-hwemudua svg { animation: spin 90s linear infinite; }
@keyframes markFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
.view > :not(.page-mark):not(.paybar):not(.paybar-space) { position: relative; z-index: 1; }
.page-sym { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 20px; border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: 13px; max-width: 70ch; }
.page-sym .ps-ico { width: 34px; height: 34px; flex: none; color: var(--accent); opacity: .8; }
.page-sym b { color: var(--text); }
.akwaaba { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .02em; margin-bottom: 6px; }
.akwaaba svg { width: 18px; height: 18px; animation: spin 24s linear infinite; }
.greet .twi-sub { color: var(--muted); }

/* Entrance */
.rise { animation: rise .55s cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.auth-copy h2 .w { display: inline-block; animation: wordUp .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes wordUp { from { opacity: 0; transform: translateY(18px) rotate(2deg); filter: blur(4px); } }

/* Ripple */
.btn, .qa, .chip, .method, .radio-card, .issue, .months button, .seg button, .row, .tk, .pal-item, .state-opt, .notif, .act { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .16; transform: scale(0); animation: ripple .6s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Spotlight + tilt */
.glow { position: relative; }
.glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(280px circle at var(--mx, -999px) var(--my, -999px), var(--spot), transparent 65%); }
.glow:hover::after { opacity: 1; }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .25s; will-change: transform; }
.tilt:hover { box-shadow: var(--shadow-2); }
.qa { transition: border-color .15s, transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.qa:hover { transform: translateY(-3px); }
.qa:hover .qa-ico { animation: icoPop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes icoPop { 40% { transform: scale(1.18) rotate(-6deg); } }
.plan.current { animation: currentPulse 3.2s ease-in-out infinite; }
@keyframes currentPulse { 0%, 100% { box-shadow: 0 0 0 4px var(--ring), var(--shadow-1); } 50% { box-shadow: 0 0 0 9px rgba(122, 59, 209, .12), var(--shadow-2); } }
.btn-primary, .btn-urgent { background-size: 220% 100%; }
.btn-urgent { background-image: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 45%, transparent 60%); animation: sheen 3.6s ease-in-out infinite; }
@keyframes sheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -40% 0; } }

/* Ticks, meters and bars */
.cycle-bar i { transform-origin: bottom; animation: tickUp .5s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--i, 0) * 22ms + 200ms); }
.speed-meter i.on { transform-origin: left; animation: tickUp .45s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--i, 0) * 40ms + 150ms); }
@keyframes tickUp { from { transform: scaleY(0); opacity: 0; } }
.speed-meter i.on { animation-name: tickRight; }
@keyframes tickRight { from { transform: scaleX(0); opacity: 0; } }
.chart .bar { transform-box: fill-box; transform-origin: bottom; animation: barUp .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes barUp { from { transform: scaleY(0); } }
.chart.no-anim .bar { animation: none; }

/* Sliding nav indicators */
.nav-wrap { position: relative; }
.nav-pill { position: absolute; top: 0; left: 0; border-radius: 11px; background: var(--accent-soft); z-index: 0; transition: transform .45s cubic-bezier(.3,1.25,.4,1), height .3s, width .3s, opacity .2s; pointer-events: none; }
.nav a { z-index: 1; }
.nav a[aria-current="page"] { background: transparent; }
.nav a:hover { background: color-mix(in srgb, var(--sunken) 70%, transparent); }
.nav a[aria-current="page"]:hover { background: transparent; }
.nav a .ico { transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.nav a:hover .ico { transform: scale(1.12); }
.tab-ind { display: none; }

/* Bell */
.icon-btn.ring svg { animation: bellRing 1.2s ease; transform-origin: 50% 10%; }
@keyframes bellRing { 10%, 30%, 50% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } 60%, 100% { transform: rotate(0); } }
.icon-btn .badge-dot { animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 2px var(--surface), 0 0 0 2px rgba(231,44,112,.5); } 50% { box-shadow: 0 0 0 2px var(--surface), 0 0 0 6px rgba(231,44,112,0); } }

/* Myra */
.mm.new { animation: msgIn .4s cubic-bezier(.2,.8,.2,1) both; }
.mm.me.new { transform-origin: bottom right; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.b.streaming::after { content: ""; display: inline-block; width: 7px; height: 15px; margin-left: 3px; vertical-align: -2px; border-radius: 2px; background: var(--accent); animation: caret .9s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.myra-av.thinking { animation: thinkGlow 1.4s ease-in-out infinite; }
@keyframes thinkGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(122, 59, 209, .5); } 50% { box-shadow: 0 0 0 8px rgba(122, 59, 209, 0); } }
.myra-head .myra-av svg { animation: twinkleIco 4s ease-in-out infinite; }
@keyframes twinkleIco { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.1) rotate(12deg); } }
.myra-log .page-mark { display: none; }

/* Ticket timeline */
.tl::before { transform-origin: top; animation: growY .6s ease both; animation-delay: calc(var(--i, 0) * 260ms + 200ms); }
@keyframes growY { from { transform: scaleY(0); } }
.tl .dot { animation: dotPop .45s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i, 0) * 260ms); }
@keyframes dotPop { from { transform: scale(0); } }
.tl.now .dot { animation: dotPop .45s cubic-bezier(.3,1.6,.5,1) both, nowPulse 2s 1s ease-in-out infinite; }
@keyframes nowPulse { 50% { box-shadow: 0 0 0 8px rgba(122, 59, 209, .08); } }
.finding { transition: transform .2s, box-shadow .2s; }
.finding:hover { transform: translateX(4px); }

/* Receipt prints out */
.receipt.print { animation: printOut .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes printOut { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.success-mark { animation: popIn .5s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } }

/* Line check */
.lc-facts { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 13.5px; }
.lc-result { animation: popIn .45s cubic-bezier(.3,1.5,.5,1) both; transform-origin: top center; }
.lc-node.ok .orb::before { content: ""; position: absolute; inset: -2px; border-radius: 16px; border: 2px solid var(--ok); animation: okRing .8s ease-out both; }
@keyframes okRing { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* Toasts spring */
.toast { animation: toastSpring .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes toastSpring { from { opacity: 0; transform: translateY(16px) scale(.94); } }

/* Confetti */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 120; pointer-events: none; }

/* Page and theme transitions */
#view { view-transition-name: page; }
::view-transition-old(page) { animation: vtOut .18s ease both; }
::view-transition-new(page) { animation: vtIn .42s cubic-bezier(.2,.75,.2,1) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }
html.theming #view { view-transition-name: none; }
html.theming::view-transition-old(root), html.theming::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theming::view-transition-old(root) { z-index: 1; }
html.theming::view-transition-new(root) { z-index: 2; }

/* Phones */
@media (max-width: 759px) {
  .tab-ind { display: block; position: absolute; top: 0; left: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); transition: transform .45s cubic-bezier(.3,1.25,.4,1), opacity .2s; z-index: 2; }
  .tabbar a[aria-current="page"]::before { display: none; }
  .tabbar a.tab-myra .tm { animation: myraBob 3.6s ease-in-out infinite; }
  @keyframes myraBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
  .page-mark { width: 116px; height: 116px; top: 0; }
  .hero-rings { width: 280px; height: 280px; left: -80px; bottom: -100px; }
  .auth-night .hero-rings { width: 220px; height: 220px; right: -70px; top: -70px; }
  .tilt { transform: none; }
}
@media (max-width: 1099px) {
  .sidebar > .kente { margin-left: -12px; margin-right: -12px; width: calc(100% + 24px); }
}
@media (hover: none) { .tilt { transform: none !important; } .qa:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .adinkra-drift, .kente, .page-mark svg, .hero-rings svg { animation: none !important; }
  ::view-transition-old(page), ::view-transition-new(page) { animation: none; }
}

/* =====================================================================
   Live-portal additions (not in the prototype)
   ===================================================================== */
.shell, .auth { position: relative; z-index: 1; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-ok p, .alert-danger div, .alert-info div, .alert-warn div, .alert-ok div { color: var(--text-2); }
.alert ul { margin: 0; padding-left: 18px; }
.flashes { display: grid; gap: 10px; margin-bottom: 18px; }

/* Line check: real states from App\Support\LineStatus */
.lc-result.bad { background: var(--danger-soft); }
.lc-result.bad b { color: var(--danger); }
.lc-result.unknown { background: var(--surface-2); border: 1px solid var(--line); }
.lc-result.unknown b { color: var(--text); }
.lc-result .t-tiny { color: var(--muted); }
.lc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Help card on home */
.help-card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.help-card .contact-rows { display: grid; gap: 8px; }
.help-card .contact-rows a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.help-card .contact-rows a:hover { border-color: var(--line-strong); }
.help-card .contact-rows b { display: block; font-size: 14px; }
.help-card .contact-rows span.sub { font-size: 12.5px; color: var(--muted); }
.help-card .row-ico { width: 36px; height: 36px; border-radius: 11px; }
.status-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.4; }
.status-line b { color: var(--text); display: block; font-size: 13.5px; }

/* Flyers (admin-managed "What's new") */
.flyers { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); }
.flyers::-webkit-scrollbar { display: none; }
.flyers > * { scroll-snap-align: start; }
.flyer-dots { display: flex; justify-content: center; gap: 6px; margin-top: -4px; }
.flyer-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.flyer { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--sunken); border: 1px solid var(--line); color: inherit; text-decoration: none !important; }
.flyer img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* Ticket conversation + reply box */
.thread { display: grid; gap: 16px; }
.msg .bubble { white-space: pre-line; overflow-wrap: anywhere; }
.msg .me-av { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px; }
.reply-box { display: flex; gap: 10px; align-items: flex-end; }
.reply-box textarea { flex: 1; min-height: 48px; max-height: 160px; resize: none; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); line-height: 1.4; font-size: 15px; }
.reply-box textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.tk-update { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--magenta); }
a.tk { text-decoration: none !important; }

/* Myra errors */
.mm.err .b { background: var(--danger-soft); border-color: transparent; color: var(--danger); }

/* Months picker as real radios (works without JS) */
.months label { display: contents; }
.months input { position: absolute; opacity: 0; pointer-events: none; }
.months input:checked + span { border-color: var(--brand); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.months input:checked + span small { color: var(--accent); }
.months input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 2px; }
.months span { display: grid; place-items: center; padding: 9px 0 8px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 800; font-size: 18px; line-height: 1.05; font-variant-numeric: tabular-nums; cursor: pointer; }
.months span:hover { border-color: var(--faint); }
.months span small { font-size: 11px; font-weight: 600; color: var(--muted); }
@media (max-width: 400px) { .months span { font-size: 16px; } }

/* Busy submit buttons */
.btn.busy { opacity: .75; }
.navprog { background-color: transparent; }

/* Payment note on the pay page */
.pay-err { margin-top: 4px; }

/* Receipt page (kept for when history is switched back on) */
@media print {
  .sidebar, .topbar, .tabbar, .adinkra-bg, .page-mark, .page-sym, .no-print { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
}

/* Plan picker on the pay page as real radios */
.plan-radios label { display: contents; }
.plan-radios input { position: absolute; opacity: 0; pointer-events: none; }
.plan-radios .radio-card { cursor: pointer; }
.plan-radios input:checked + .radio-card { border-color: var(--brand); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--ring); }
.plan-radios input:focus-visible + .radio-card { outline: 3px solid var(--ring); outline-offset: 2px; }
.co-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.co-note .ico-sm { color: var(--ok); margin-top: 2px; }
.method-logos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.method-logos .mlogo { width: auto; min-width: 36px; height: 28px; padding: 0 8px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; }

/* Ticket category picker as real radios */
.issue-grid label { display: contents; }
.issue-grid input { position: absolute; opacity: 0; pointer-events: none; }
.issue-grid .issue { cursor: pointer; }
.issue-grid input:checked + .issue { border-color: var(--brand); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--ring); }
.issue-grid input:checked + .issue .ii { background: var(--brand); color: #fff; }
.issue-grid input:focus-visible + .issue { outline: 3px solid var(--ring); outline-offset: 2px; }
.prio-seg { justify-self: start; display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 13px; background: var(--sunken); border: 1px solid var(--line); }
.prio-seg label { display: contents; }
.prio-seg input { position: absolute; opacity: 0; pointer-events: none; }
.prio-seg span { min-height: 38px; padding: 0 16px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; cursor: pointer; }
.prio-seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.prio-seg input:focus-visible + span { outline: 3px solid var(--ring); }

[hidden] { display: none !important; }
.help-hero { color: var(--night-text); }
.help-hero .lede { color: var(--night-muted); max-width: 52ch; }
.auth-box .input-wrap > .input:not(.has-reveal) { padding-right: 14px; }


/* ===================================================================
   Usage, live traffic, speed test, network status, auto-renew, alerts
   Series colours validated for colour-blind separation and contrast:
   light #6A2DB8 / #D3720F, dark #9B74E6 / #C8771F
   =================================================================== */
:root { --dl: #6A2DB8; --ul: #D3720F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --dl: #9B74E6; --ul: #C8771F; } }
:root[data-theme="dark"] { --dl: #9B74E6; --ul: #C8771F; }

.sw { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; flex: none; }
.sw.dl { background: var(--dl); }
.sw.ul { background: var(--ul); }
.sw.cap { background: repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 7px); height: 2px; }

.live-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 700; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: livePulse 1.6s ease-in-out infinite; }
.live-pill.off { background: var(--sunken); color: var(--muted); }
.live-pill.off i { animation: none; }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }

/* Live traffic */
.tr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tr-stat { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.tr-stat > span { display: flex; align-items: center; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tr-stat b { display: flex; align-items: baseline; gap: 5px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tr-stat b small { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.tr-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-bottom: 8px; }
.tr-legend span { display: inline-flex; align-items: center; }
.tr-wrap { position: relative; }
.tr-canvas { display: block; width: 100%; height: 280px; cursor: crosshair; }
.tr-canvas.mini { height: 112px; cursor: default; }
.tr-tip { transform: translate(-50%, -100%); white-space: nowrap; display: grid; gap: 2px; }
.tr-tip .tt-row { display: flex; align-items: center; gap: 2px; font-weight: 500; opacity: 1; font-size: 12.5px; }
.tr-tip .tt-row b { margin-left: 6px; font-weight: 800; }
.tr-tip .tt-ago { opacity: .7; font-size: 11.5px; font-weight: 500; }
.tr-paused { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); color: var(--muted); font-size: 14px; }
.tr-paused b { color: var(--text); font-size: 16px; }
.tr-paused .ei { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--danger-soft); color: var(--danger); }
.tr-paused.small b { font-size: 14px; }
.traffic-mini { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.traffic-mini .card-head { margin-bottom: 0; }
.tr-mini-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tr-mini-nums > div > span { display: flex; align-items: center; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tr-mini-nums b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tr-mini-nums b small { font-size: 12.5px; color: var(--muted); font-weight: 700; letter-spacing: 0; }

/* Usage page (live portal): 3-day tiles */
.traffic-card .card-head { align-items: flex-start; }
.tr-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; }
.tr-note .ico-sm { flex: none; margin-top: 2px; color: var(--muted); }
.ud-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ud { padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 8px; min-width: 0; }
.ud.today { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.ud-day { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.ud-day small { font-size: 12px; font-weight: 600; color: var(--muted); }
.ud-total { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ud-total small { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.ud-total.none { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.ud-bar { display: flex; height: 8px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.ud-bar i { display: block; height: 100%; transform-origin: left; animation: udGrow .8s cubic-bezier(.2,.8,.2,1) both; }
.ud-bar i.dl { background: var(--dl); }
.ud-bar i.ul { background: var(--ul); }
@keyframes udGrow { from { transform: scaleX(0); } }
.ud-split { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.ud-split span { display: inline-flex; align-items: center; }
.ud-sum { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--text-2); }
.ud-sum b { font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .tr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ud-grid { grid-template-columns: 1fr; } .tr-canvas { height: 200px; } .ud { grid-template-columns: 1fr auto; align-items: center; } .ud-day, .ud-bar, .ud-split { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .ud-bar i, .live-pill i { animation: none; } }

/* ===== Prototype round 2: logo mark, Report a problem ===== */
@keyframes fxBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.mx-mark { display: block; }
.mx-lockup { display: inline-flex; align-items: center; gap: 12px; }
.mx-lockup .mx-mark { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 10px 24px -10px rgba(82,27,146,.75); }
.mx-word { display: grid; line-height: 1; }
.mx-word b { font-size: 30px; font-weight: 800; letter-spacing: -.045em; }
.mx-a { color: #521B92; }
.mx-b { color: #C8246B; }
.mx-sub { font-size: 10.5px; font-weight: 700; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); margin-top: 4px; padding-left: 2px; }
:root[data-theme="dark"] .mx-a { color: #fff; }
:root[data-theme="dark"] .mx-b { color: #FF7AAE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mx-a { color: #fff; } :root:not([data-theme="light"]) .mx-b { color: #FF7AAE; } }
.side-brand:hover .mx-mark, .top-brand:hover .mx-mark { transform: rotate(-6deg) scale(1.05); }
.side-brand .mx-mark, .top-brand .mx-mark { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.side-brand .mx-mark { width: 38px; height: 38px; flex: none; border-radius: 11px; box-shadow: 0 6px 16px -8px rgba(82,27,146,.7); }
.top-brand .mx-mark { width: 34px; height: 34px; flex: none; border-radius: 10px; }
.auth-brand .mx-mark { width: 44px; height: 44px; flex: none; border-radius: 12px; box-shadow: 0 8px 20px -6px rgba(0,0,0,.5); }
@media (max-width: 760px) { .auth-brand .mx-mark { width: 36px; height: 36px; border-radius: 10px; } }
.staff-av img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.nav a .nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--magenta); color: #fff; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tabbar a .tab-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: var(--magenta); color: #fff; font-size: 10px; font-weight: 800; }
.quickfix { display: grid; gap: 10px; }
.qf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background-color .2s; }
.qf:hover { border-color: var(--line-strong); }
.qf input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ok); flex: none; }
.qf-text { display: grid; gap: 3px; min-width: 0; }
.qf-text b { font-size: 15px; }
.qf-text > span:not(.qf-step):not(.qf-done) { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.qf-step { font-size: 11.5px; font-weight: 800; color: var(--accent); letter-spacing: .03em; }
.qf-done { display: none; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ok); margin-top: 4px; }
.qf:has(input:checked) { border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok-soft) 60%, var(--surface-2)); }
.qf:has(input:checked) .qf-done { display: inline-flex; }
/* ---------- Report a problem ---------- */
.rp-jump { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); background: var(--warn-soft); color: var(--text); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: transform .2s; }
.rp-jump:hover { transform: translateY(-1px); }
.rp-jump .live-dot { margin: 0; background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent); animation: livePulse 1.6s ease-in-out infinite; color: var(--warn); }
.rp-jump .ico-sm { animation: fxBob 1.4s ease-in-out infinite; }
.rp-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.rp-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.rp-form { min-width: 0; }
.rp-side { display: grid; gap: 20px; position: sticky; top: 84px; }
.rp-reports { min-width: 0; }
.rp-issues { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rp-issues .issue { gap: 8px; padding: 14px; animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 40ms); }
.rp-issues .issue b { font-size: 14px; line-height: 1.25; }
.rp-hint { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.rp-hint .ico-sm { color: var(--accent); animation: fxBob 1.4s ease-in-out infinite; }
.rp-q-list { gap: 22px; }
.rp-q { display: grid; gap: 10px; }
.rp-q-l { font-size: 14.5px; font-weight: 700; color: var(--text); }
.rp-q-l .opt { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.rp-chips { flex-wrap: wrap; overflow: visible; }
.impact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.impact-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); text-align: left; font-size: 13.5px; font-weight: 600; line-height: 1.3; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.impact-opt:hover { border-color: var(--faint); }
.impact-opt[aria-pressed="true"] { border-color: var(--brand); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--ring); }
.io-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--sunken); color: var(--text-2); }
.impact-opt[aria-pressed="true"] .io-ico { background: var(--brand); color: #fff; }
.rp-contact { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.rp-contact .ico-sm { flex: none; margin-top: 2px; color: var(--accent); }
.rp-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.rp-next h2, .rp-talk h2 { margin-bottom: 14px; }
.rp-steps { list-style: none; display: grid; gap: 0; padding: 0; margin: 0; }
.rp-steps li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding-bottom: 16px; animation: rise .45s ease both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.rp-steps li:last-child { padding-bottom: 0; }
.rp-steps li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line); }
.rs-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.rp-steps b { display: block; font-size: 14px; line-height: 1.3; }
.rp-steps span:not(.rs-ico) { font-size: 13px; color: var(--muted); line-height: 1.4; }
.rp-open { display: flex; gap: 10px; align-items: flex-start; margin: -4px 0 14px; font-size: 13px; color: var(--muted); }
.rp-open b { display: block; font-size: 14px; color: var(--text); }
.rp-talk-btns { display: grid; gap: 8px; }
.rp-talk-btns .btn { justify-content: flex-start; }

.rp-reports { margin-top: 16px; scroll-margin-top: 80px; }
.rp-reports-head { margin-bottom: 6px; }
.rp-sub { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; font-size: 15px; font-weight: 800; }
.rp-sub .live-dot { margin: 0; background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent); animation: livePulse 1.6s ease-in-out infinite; color: var(--warn); }
.rp-sub .live-dot.off { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); animation: none; }
.rp-sub .count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; background: var(--sunken); color: var(--text-2); }
.rp-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rp-sub-row .rp-sub { margin-bottom: 12px; }
.rp-sub-row + .toolbar { margin-top: 0; }
.rp-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rp-cols > div { min-width: 0; }
.rp-live-grid { display: grid; gap: 16px; }
.rp-cols .tk { padding-right: 14px; }
@media (max-width: 1100px) { .rp-cols { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.rp-live { position: relative; display: grid; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 90ms); }
.rp-live::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--warn), var(--magenta)); }
.rp-live.fresh { animation: rise .5s both, rpFresh 2.4s ease .3s; }
@keyframes rpFresh { 0%, 100% { box-shadow: var(--shadow-1); } 25%, 60% { box-shadow: 0 0 0 4px var(--ring), 0 18px 40px -18px var(--accent); } }
.rp-live-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rp-live-date { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.rp-live h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.rp-track { list-style: none; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4px 0 2px; }
.rp-track::before, .rp-track::after { content: ""; position: absolute; top: 11px; left: 12.5%; right: 12.5%; height: 3px; border-radius: 3px; background: var(--line); }
.rp-track::after { right: auto; width: calc(75% * var(--p)); background: linear-gradient(90deg, var(--ok), color-mix(in srgb, var(--ok) 60%, var(--warn))); transform-origin: left; animation: tickRight .9s cubic-bezier(.2, .8, .2, 1) .2s both; }
.rp-track li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; text-align: center; }
.rp-track .dot { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2.5px solid var(--line-strong); color: #fff; animation: popIn .4s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 120ms + 200ms); }
.rp-track .dot .ico-sm { width: 13px; height: 13px; stroke-width: 3.2; }
.rp-track li.done .dot { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.rp-track li.now .dot, .rp-track li.hold .dot { border-color: var(--warn); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 22%, transparent); }
.rp-track li.now .dot::after, .rp-track li.hold .dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); animation: livePulse 1.6s ease-in-out infinite; color: var(--warn); }
.rp-track .lbl { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.rp-track li.done .lbl { color: var(--text-2); }
.rp-track li.now .lbl, .rp-track li.hold .lbl { color: var(--text); font-weight: 800; }
.rp-visit { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--info-soft); font-size: 13px; color: var(--text-2); }
.rp-visit .ico-sm { flex: none; margin-top: 2px; color: var(--info); }
.rp-visit b { display: block; font-size: 14px; color: var(--text); }
.rp-last { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding-top: 14px; border-top: 1px solid var(--line); }
.rp-last .staff-av, .rp-last .avatar { width: 34px; height: 34px; font-size: 12px; border-radius: 11px; }
.rp-last .avatar { border-radius: 50%; }
.rp-last-who { font-size: 12.5px; color: var(--muted); }
.rp-last-who b { color: var(--text); }
.rp-last p { margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.rp-last.quiet { grid-template-columns: auto minmax(0, 1fr); color: var(--muted); }
.rp-last.quiet .ico-sm { margin-top: 3px; color: var(--accent); }
.rp-last.quiet p { margin: 0; }
.rp-live-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-none { display: flex; gap: 10px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: var(--ok-soft); color: var(--text-2); font-size: 14px; font-weight: 600; }
.rp-none .ico-sm { color: var(--ok); }
.tk-right .ico.faint { color: var(--faint); }
@media (max-width: 1180px) {
  .rp-top { grid-template-columns: minmax(0, 1fr); }
  .rp-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .rp-issues { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rp-issues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  .rp-top { display: contents; }
  .rp-form { order: 1; }
  .rp-reports { order: 2; }
  .rp-side { order: 3; }
  .rp-side { grid-template-columns: minmax(0, 1fr); }
  .rp-reports { margin-top: 8px; }
  .rp-jump { width: 100%; justify-content: center; }
  .rp-live { padding: 16px; }
  .rp-live-date { margin-left: 0; width: 100%; }
  .rp-track .lbl { font-size: 11px; }
  .rp-submit .btn { width: 100%; }
}

/* Report form: radios styled like the prototype's pressed buttons */
.rp-chips label, .impact label { display: contents; }
.rp-chips input, .impact input { position: absolute; opacity: 0; pointer-events: none; }
.rp-chips input:checked + .chip { background: var(--text); border-color: var(--text); color: var(--bg); }
.rp-chips input:focus-visible + .chip, .impact input:focus-visible + .impact-opt { outline: 3px solid var(--ring); outline-offset: 2px; }
.impact input:checked + .impact-opt { border-color: var(--brand); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--ring); }
.impact input:checked + .impact-opt .io-ico { background: var(--brand); color: #fff; }
.rp-issues .issue { cursor: pointer; }
.rp-form .co-step[hidden] { display: none !important; }
.rp-step-flash { animation: rpFresh 1.6s ease; }
@media (prefers-reduced-motion: reduce) { .rp-jump .ico-sm, .rp-hint .ico-sm, .rp-issues .issue, .rp-steps li, .rp-live, .rp-track::after, .rp-track .dot { animation: none !important; } }

/* ---------- Account: Alerts (SMS / email per alert, reminder days, message preview) ---------- */
.alerts-grid { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ag-head, .ag-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, 64px); align-items: center; }
.ag-head { background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 12px; }
.ag-head span:not(:first-child), .ag-row > span:not(:first-child) { text-align: center; display: grid; place-items: center; }
.ag-row > span:first-child { min-width: 0; }
.ag-row { border-top: 1px solid var(--line); padding: 4px 12px; transition: background-color .2s; }
.ag-row.on { background: color-mix(in srgb, var(--accent-soft) 65%, transparent); }
.ag-name { background: none; border: 0; text-align: left; padding: 8px 0; color: var(--text); min-width: 0; cursor: pointer; font: inherit; }
.ag-name b { display: block; font-size: 14px; }
.ag-name span { font-size: 12.5px; color: var(--muted); }
.ag-name:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.ck { position: relative; width: 26px; height: 26px; display: inline-grid; place-items: center; cursor: pointer; }
.ck input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.ck input:disabled { cursor: not-allowed; }
.ck span { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; color: transparent; transition: all .15s; }
.ck input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; animation: ckPop .3s cubic-bezier(.3,1.6,.5,1); }
.ck input:disabled + span { opacity: .45; }
.ck input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 2px; }
@keyframes ckPop { 50% { transform: scale(1.18); } }
.al-saved { font-size: 12.5px; color: var(--muted); white-space: nowrap; min-height: 1em; }
.al-saved.ok { color: var(--ok, #1F7A5C); }
.al-saved.err { color: var(--danger); white-space: normal; text-align: right; max-width: 180px; }
.al-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .01em; }
.al-days { padding-top: 16px; }
.al-days .chips { margin-top: 8px; flex-wrap: wrap; }
.al-days .chip:disabled { opacity: .45; cursor: not-allowed; }
.sms-wrap { margin-top: 18px; }
.sms { margin-top: 8px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); max-width: 380px; }
.sms-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.sms-top img { width: 28px; height: 28px; border-radius: 8px; }
.sms-top b { display: block; font-size: 14px; }
.sms-top span { font-size: 11.5px; color: var(--muted); }
.sms-body { padding: 14px 12px 16px; }
.sms-msg { background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.08); color: var(--text); padding: 10px 13px; border-radius: 16px 16px 16px 4px; font-size: 14px; line-height: 1.45; max-width: 92%; animation: msgIn .4s cubic-bezier(.2,.8,.2,1) both; }
.al-foot { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
@media (max-width: 759px) {
  .ag-head, .ag-row { grid-template-columns: minmax(0, 1fr) repeat(2, 54px); padding-left: 10px; padding-right: 6px; }
  .ag-head { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .ck input:checked + span, .sms-msg { animation: none; } }
.plan-upto { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
