/* Teknora SaaS console - Teknora EAM identity (tokens.css "teknora": navy #005495, leaf green #43a047, sky #00a1df).
   Light by default; [data-theme="dark"] on <html> (toggle in the sidebar). The sidebar stays navy in both. */
:root {
  --bg: #eef2f7; --surface: #ffffff; --surface-2: #f6f8fb; --ink: #13233a; --muted: #5d6b80; --line: #dfe5ee; --line-strong: #cbd5e1;
  --brand: #005495; --brand-hover: #003d6d; --brand-ink: #ffffff; --brand-soft: #e6f0f9; --accent: #43a047; --accent-soft: #e8f5e9; --sky: #00a1df;
  --ok: #15803d; --ok-soft: #e3f5e8; --warn: #b45309; --warn-soft: #fdf1dc; --bad: #c0262d; --bad-soft: #fde8e8;
  --info: #0b6aa8; --info-soft: #e2f0fa; --idle: #64748b; --idle-soft: #edf1f5;
  --side-a: #062a4d; --side-b: #00467d; --side-ink: #dbe7f3; --side-muted: #8fb0cf; --side-hover: #ffffff14; --side-on: #ffffff1f;
  --chart-1: #005495; --chart-2: #43a047; --chart-3: #00a1df; --chart-4: #f59e0b; --chart-5: #8b5cf6; --chart-6: #db2777; --chart-grid: #e6ebf2;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px #0b2a4a0f, 0 8px 24px -12px #0b2a4a26; --shadow-lift: 0 2px 4px #0b2a4a14, 0 18px 40px -18px #0b2a4a40;
  --font: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-display: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #08111e; --surface: #0f1b2c; --surface-2: #0c1625; --ink: #e6edf6; --muted: #93a4bb; --line: #1f2f45; --line-strong: #2b3e58;
  --brand: #4fa3e0; --brand-hover: #74b8ea; --brand-ink: #04101d; --brand-soft: #12283f; --accent: #5cc464; --accent-soft: #132c1a; --sky: #33bce8;
  --ok: #4ade80; --ok-soft: #10291a; --warn: #fbbf24; --warn-soft: #2e230c; --bad: #f87171; --bad-soft: #341517;
  --info: #60b4f0; --info-soft: #0f2539; --idle: #94a3b8; --idle-soft: #18222f;
  --side-a: #040c17; --side-b: #0a2238; --side-ink: #d6e2ef; --side-muted: #7f9bb8; --side-hover: #ffffff0f; --side-on: #ffffff17;
  --chart-1: #4fa3e0; --chart-2: #5cc464; --chart-3: #33bce8; --chart-4: #fbbf24; --chart-5: #a78bfa; --chart-6: #f472b6; --chart-grid: #1c2b40;
  --shadow: 0 1px 2px #0006, 0 8px 24px -12px #000a; --shadow-lift: 0 2px 4px #0008, 0 18px 40px -18px #000c;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.55; }
body { min-height: 100vh; transition: background-color .2s; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 24px; } h2 { font-size: 15.5px; } h3 { font-size: 14px; }
.num, td.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 2px; padding: 20px 14px 14px;
  background: linear-gradient(180deg, var(--side-a), var(--side-b)); color: var(--side-ink); }
.side::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: 60px; width: 220px; height: 220px; opacity: .06; pointer-events: none;
  background: url(/brand/mark-white.png) center / contain no-repeat; }
.side .logo { display: flex; flex-direction: column; gap: 4px; padding: 2px 10px 22px; }
.side .logo img { width: 150px; height: auto; display: block; }
.side .logo span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--side-muted); font-weight: 600; }
[dir="rtl"] .side .logo span { letter-spacing: 0; }
.side .nav-label { font-size: 11px; color: var(--side-muted); padding: 14px 12px 6px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
[dir="rtl"] .side .nav-label { letter-spacing: 0; }
.side a.nav { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--side-ink); font-weight: 500; }
.side a.nav:hover { background: var(--side-hover); color: #fff; }
.side a.nav.on { background: var(--side-on); color: #fff; font-weight: 600; }
.side a.nav.on::before { content: ""; position: absolute; inset-inline-start: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: #5cc464; }
[dir="rtl"] .side a.nav.on::before { border-radius: 4px 0 0 4px; }
.side a.nav .cnt { margin-inline-start: auto; background: #f8717133; color: #fecaca; font-size: 11.5px; padding: 0 8px; border-radius: 999px; font-weight: 600; }
.side .grow { flex: 1; min-height: 16px; }
.side .me { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: #ffffff0d; border: 1px solid #ffffff14; }
.side .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--font-display); font-weight: 600; font-size: 13px;
  background: linear-gradient(135deg, #43a047, #00a1df); color: #fff; }
.side .who > div { min-width: 0; }
.side .who b { display: block; color: #fff; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .who small { color: var(--side-muted); font-size: 11.5px; }
.side .prefs { display: flex; gap: 6px; }
.side select, .side .icon-btn { background: #ffffff12; color: var(--side-ink); border: 1px solid #ffffff1f; border-radius: 8px; }
.side select { flex: 1; min-width: 0; padding: 6px 8px; font-size: 12.5px; width: auto; }
.side select:hover, .side select:focus { border-color: #ffffff55; box-shadow: none; }
.side select option { color: #13233a; background: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 32px; padding: 0; cursor: pointer; flex: none; font: inherit; }
.side .icon-btn:hover { background: #ffffff24; color: #fff; }
.side .out { display: flex; align-items: center; gap: 8px; color: var(--side-muted); font-size: 12.5px; }
.side .out:hover { color: #fff; }
.main { padding: 26px 32px 56px; min-width: 0; max-width: 1480px; width: 100%; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.head .crumb { color: var(--muted); font-size: 12.5px; margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.head .sub { color: var(--muted); margin-top: 4px; }
.head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 264px; z-index: 20; transform: translateX(-105%); transition: transform .2s; }
  [dir="rtl"] .side { transform: translateX(105%); }
  .shell.open .side { transform: none; box-shadow: 0 0 0 100vmax #04101d80; }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: linear-gradient(90deg, var(--side-a), var(--side-b)); position: sticky; top: 0; z-index: 10; }
  .topbar img { height: 26px; width: auto; }
  .topbar .icon-btn { background: #ffffff14; color: #fff; border: 1px solid #ffffff22; border-radius: 8px; }
  .main { padding: 18px 16px 48px; }
  h1 { font-size: 20px; }
}

/* ---------------------------------------------------------------- blocks */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card > .card-h { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card > .card-h .hint { font-weight: 400; }
.card > .card-b { padding: 16px 18px; }
.grid { display: grid; gap: 16px; }
.grid.k4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid.k-status { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid.c2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid.c3 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1200px) { .grid.c3 { grid-template-columns: 1fr 1fr; } .grid.c3 > :first-child { grid-column: 1 / -1; } }
@media (max-width: 1000px) { .grid.c2, .grid.c3 { grid-template-columns: 1fr; } }
.mb { margin-bottom: 16px; }

/* welcome band */
.welcome { position: relative; overflow: hidden; border-radius: 18px; padding: 24px 26px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(120% 140% at 100% 0%, #00a1df55 0%, transparent 55%), linear-gradient(120deg, #003d6d, #005495 55%, #0b6d9f); box-shadow: var(--shadow-lift); }
:root[data-theme="dark"] .welcome { background: radial-gradient(120% 140% at 100% 0%, #00a1df33 0%, transparent 55%), linear-gradient(120deg, #06213b, #0a3a63 60%, #0b4f74); }
.welcome::after { content: ""; position: absolute; inset-inline-end: -30px; top: -40px; width: 230px; height: 230px; opacity: .1; background: url(/brand/mark-white.png) center / contain no-repeat; }
.welcome .w-row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.welcome h1 { font-size: 24px; color: #fff; }
.welcome p { margin: 6px 0 0; color: #cfe2f3; max-width: 62ch; }
.welcome .btn { background: #fff; color: #003d6d; border-color: #fff; }
.welcome .btn:hover { background: #e8f5e9; color: #003d6d; }
.welcome .pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.welcome .pill { background: #ffffff1a; border: 1px solid #ffffff26; color: #eaf3fb; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; }
.welcome .pill b { color: #fff; font-variant-numeric: tabular-nums; }

/* KPI tiles */
.kpi { padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.kpi .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.kpi .ico svg.i { width: 21px; height: 21px; }
.kpi .ico.c1 { background: var(--brand-soft); color: var(--brand); }
.kpi .ico.c2 { background: var(--accent-soft); color: var(--accent); }
.kpi .ico.c3 { background: var(--info-soft); color: var(--sky); }
.kpi .ico.c4 { background: var(--bad-soft); color: var(--bad); }
.kpi .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi .label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi .value { font-family: var(--font-display); font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.25; overflow-wrap: anywhere; }
.kpi .value small { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .foot { font-size: 12px; color: var(--muted); }
a.status-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; color: var(--ink); transition: transform .15s, box-shadow .15s; border-top: 3px solid var(--tile, var(--line)); }
a.status-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--ink); }
a.status-tile .value { font-family: var(--font-display); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.t-trial { --tile: var(--info); } .t-active { --tile: var(--ok); } .t-grace, .t-provisioning { --tile: var(--warn); }
.t-read_only, .t-suspended, .t-failed { --tile: var(--bad); } .t-cancelled { --tile: var(--idle); }

/* charts (inline SVG drawn by app.js) */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid-line { stroke: var(--chart-grid); stroke-width: 1; }
.chart .bar { fill: var(--chart-1); }
.chart .bar.now { fill: var(--accent); }
.chart .bar:hover { opacity: .85; }
.chart .line { fill: none; stroke: var(--sky); stroke-width: 2; }
.chart .dot { fill: var(--surface); stroke: var(--sky); stroke-width: 2; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.legend i.l-line { height: 3px; border-radius: 2px; vertical-align: 3px; }
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut-wrap svg { width: 150px; height: 150px; flex: none; }
.donut-wrap .total { font-family: var(--font-display); font-size: 26px; font-weight: 600; fill: var(--ink); }
.donut-wrap .total-l { font-size: 11px; fill: var(--muted); }
.donut-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 140px; }
.donut-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.donut-list li b { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.donut-list i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.hbars { display: flex; flex-direction: column; gap: 14px; }
.hbar .top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 5px; }
.hbar .top b { font-variant-numeric: tabular-nums; }
.hbar .track { height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--sky)); }
[dir="rtl"] .hbar .fill { background: linear-gradient(270deg, var(--brand), var(--sky)); }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.date-chip { display: grid; place-items: center; width: 44px; height: 46px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); flex: none; line-height: 1.05; }
.date-chip b { font-family: var(--font-display); font-size: 17px; }
.date-chip small { font-size: 10.5px; }

.note { padding: 11px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.note.info { background: var(--info-soft); color: var(--info); }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.ok { background: var(--ok-soft); color: var(--ok); }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: start; font-weight: 600; color: var(--muted); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--brand-soft); }
td.num, th.num { text-align: end; }
.co { display: flex; align-items: center; gap: 11px; min-width: 0; }
.co .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
.empty { color: var(--muted); padding: 30px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty svg.i { width: 30px; height: 30px; opacity: .55; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; font-family: var(--font); letter-spacing: 0; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-active, .b-paid, .b-ok, .b-done { background: var(--ok-soft); color: var(--ok); }
.b-trial, .b-open, .b-queued { background: var(--info-soft); color: var(--info); }
.b-grace, .b-provisioning, .b-running { background: var(--warn-soft); color: var(--warn); }
.b-read_only, .b-suspended, .b-failed, .b-bad { background: var(--bad-soft); color: var(--bad); }
.b-cancelled, .b-void { background: var(--idle-soft); color: var(--idle); }

/* ---------------------------------------------------------------- forms */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 11px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--brand); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); }
input[type="checkbox"] { width: auto; accent-color: var(--brand); }
.check { display: flex; align-items: center; gap: 8px; }
.hint { color: var(--muted); font-size: 12px; }
.btn { font: inherit; font-weight: 600; border-radius: var(--radius-sm); padding: 9px 16px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn svg.i { width: 16px; height: 16px; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); box-shadow: 0 6px 14px -8px var(--brand); }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-ink); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.btn.danger:hover { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.btn.small { padding: 5px 11px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search { position: relative; flex: 1; max-width: 360px; min-width: 180px; }
.search svg.i { position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search input { padding-inline-start: 34px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { font: inherit; border: 0; background: none; padding: 5px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.seg button:hover { color: var(--brand); }
.seg button.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); font-weight: 600; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { font: inherit; background: none; border: 0; padding: 10px 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.tabs button:hover { color: var(--brand); }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tabs button svg.i { width: 16px; height: 16px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
pre.log { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-family: var(--font-mono); font-size: 12px; max-height: 260px; overflow: auto; white-space: pre-wrap; direction: ltr; text-align: left; margin: 6px 0 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); margin-top: 5px; z-index: 1; }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.k-pay::before { border-color: var(--accent); }
.timeline li.k-bad::before { border-color: var(--bad); }
.timeline .when { display: block; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.secret { font-family: var(--font-mono); background: var(--warn-soft); padding: 2px 8px; border-radius: 6px; user-select: all; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: var(--shadow-lift); }
dialog::backdrop { background: #04101d99; backdrop-filter: blur(2px); }
dialog .card-b { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.toast { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 30; max-width: 380px; box-shadow: var(--shadow-lift); animation: rise .2s ease-out; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.addr { display: flex; align-items: stretch; direction: ltr; }
.addr input { border-start-end-radius: 0; border-end-end-radius: 0; }
.addr span { border: 1px solid var(--line-strong); border-inline-start: 0; padding: 9px 11px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: spin 1s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.plan-card .card-h .price { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.plan-card .card-h .price small { color: var(--muted); font-size: 12px; font-weight: 500; }
.plan-card .card-h code { font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }

/* ---------------------------------------------------------------- sign-in */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login .brand-pane { position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  background: radial-gradient(90% 80% at 85% 10%, #00a1df4d 0%, transparent 60%), radial-gradient(70% 60% at 10% 100%, #43a04740 0%, transparent 60%), linear-gradient(150deg, #04213d, #005495); }
.login .brand-pane::after { content: ""; position: absolute; inset-inline-end: -90px; bottom: -70px; width: 460px; height: 460px; opacity: .08; background: url(/brand/mark-white.png) center / contain no-repeat; }
.login .brand-pane img { width: 190px; height: auto; position: relative; z-index: 1; }
.login .brand-pane h2 { font-size: 32px; line-height: 1.25; max-width: 18ch; position: relative; z-index: 1; color: #fff; }
.login .brand-pane p { color: #cfe2f3; max-width: 46ch; font-size: 15px; position: relative; z-index: 1; margin: 12px 0 0; }
.login .feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.login .feats li { display: flex; gap: 10px; align-items: center; color: #e2eef8; }
.login .feats li span { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #ffffff1a; color: #9be3a0; flex: none; }
.login .form-pane { display: flex; flex-direction: column; padding: 28px 16px; background: var(--bg); }
.login .form-pane .prefs { display: flex; justify-content: flex-end; gap: 8px; }
.login .form-pane .prefs select { width: auto; }
.login .form-pane .prefs .icon-btn { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: var(--radius-sm); width: 40px; height: 40px; }
.login .box { width: min(420px, 100%); margin: auto; display: flex; flex-direction: column; gap: 18px; padding-block: 24px; }
.login .box img.logo { width: 170px; height: auto; }
.login .box h1 { font-size: 26px; }
.login .box .sub { color: var(--muted); margin-top: -10px; }
.login .box .btn.primary { justify-content: center; padding: 11px 16px; }
.login .foot { text-align: center; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login .brand-pane { padding: 26px 20px; }
  .login .brand-pane h2 { font-size: 22px; }
  .login .feats { display: none; }
}
