/* RankForge — design system. Identity: "forge" — warm graphite + molten ember,
   teal for live data. Crafted typography, restrained accent, real depth.
   Deliberately not the generic navy + blue-purple-gradient dashboard look.
   System-font stack only — no web-font fetch (robust offline, no FOIT). */
:root {
  /* — surfaces: warm-neutral graphite, stepped — */
  --bg: #0c0d0f;
  --bg-grain: #0e0f12;
  --s1: #141619;
  --s2: #1a1d21;
  --s3: #22262b;
  --hover: #1f2429;
  --border: #262a30;
  --border-2: #333941;
  --line: #1c1f24;

  /* — text: warm off-white — */
  --text: #edebe5;
  --muted: #9b9a93;
  --dim: #63635e;

  /* — accents — */
  --ember: #ff6a3d;          /* signature */
  --ember-2: #ff8a4c;
  --ember-soft: rgba(255,106,61,.13);
  --ember-line: rgba(255,106,61,.32);
  --teal: #26d0a8;           /* live data / positive */
  --teal-soft: rgba(38,208,168,.13);
  --gold: #e8b43c;           /* warning */
  --gold-soft: rgba(232,180,60,.13);
  --coral: #f2606a;          /* danger */
  --coral-soft: rgba(242,96,106,.13);
  --slate: #6f8cb8;          /* neutral info */
  --slate-soft: rgba(111,140,184,.13);

  --radius: 12px;
  --radius-sm: 9px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.55);
  --shadow-lg: 0 24px 60px -24px rgba(0,0,0,.7);
  --ring: 0 0 0 3px rgba(255,106,61,.22);

  --sans: 'Segoe UI', -apple-system, system-ui, 'Helvetica Neue', sans-serif;
  --body: -apple-system, 'Segoe UI', system-ui, 'Helvetica Neue', sans-serif;
  --mono: 'Cascadia Code', ui-monospace, 'SF Mono', Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font: 14px/1.55 var(--body);
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 78% -10%, rgba(255,106,61,.05), transparent 60%);
  display: flex; overflow: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, .display { font-family: var(--sans); letter-spacing: -.01em; }
::selection { background: rgba(255,106,61,.28); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #2a2f36; border-radius: 7px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #363c44; }
::-webkit-scrollbar-track { background: transparent; }
a { color: inherit; }

/* ───────────────────────── sidebar ───────────────────────── */
#sidebar {
  width: 248px; min-width: 248px; height: 100vh;
  background: linear-gradient(180deg, #101114, #0d0e10);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 20px 14px 14px;
}
.logo { display: flex; align-items: center; gap: 11px; padding: 2px 8px 20px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(150deg, var(--ember), #e0431f);
  display: grid; place-items: center;
  box-shadow: 0 4px 16px -2px rgba(255,106,61,.5), inset 0 1px 0 rgba(255,255,255,.25);
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-name { font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.logo-name span { color: var(--ember); }

#projectSelect {
  width: 100%; margin: 0 0 8px; padding: 10px 11px;
  background: var(--s1); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font: 500 13px var(--body); cursor: pointer; outline: none;
  transition: border-color .15s, background .15s;
}
#projectSelect:hover { border-color: var(--border-2); }
.btn-newproj { width: 100%; margin-bottom: 18px; justify-content: center; color: var(--muted); }

nav { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.nav-group { font: 600 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 14px 12px 6px; }
nav a {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: var(--radius-sm); color: var(--muted);
  text-decoration: none; font-weight: 500; font-size: 13.5px;
  transition: color .15s, background .15s;
}
nav a svg { width: 18px; height: 18px; stroke-width: 1.7; opacity: .85; flex: none; }
nav a:hover { background: var(--hover); color: var(--text); }
nav a.active { background: var(--ember-soft); color: #fff; }
nav a.active svg { color: var(--ember); opacity: 1; }
nav a.active::before { content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; background: var(--ember); border-radius: 0 3px 3px 0; }

.sidebar-foot { margin-top: auto; padding: 12px 12px 4px; font-size: 11.5px; color: var(--dim); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.ai-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.ai-dot.on { background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.ai-dot.off { background: var(--dim); }

/* ───────────────────────── main ───────────────────────── */
#main { flex: 1; height: 100vh; overflow-y: auto; padding: 30px 38px 72px; }
#view { animation: rise .32s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; gap: 18px; flex-wrap: wrap; }
.page-title { font-family: var(--sans); font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 4px; max-width: 720px; line-height: 1.5; }

/* ───────────────────────── primitives ───────────────────────── */
.card {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 14px; font-weight: 600; margin-bottom: 14px; letter-spacing: -.01em; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: 1fr 1fr; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) { .grid.c4 { grid-template-columns: 1fr 1fr; } .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }

button, .btn {
  font: 550 13px var(--body); cursor: pointer; border: 1px solid var(--border-2);
  background: var(--s2); color: var(--text);
  padding: 8px 15px; border-radius: var(--radius-sm);
  transition: all .16s ease; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
button:hover { border-color: #444b54; background: var(--s3); transform: translateY(-1px); }
button:active { transform: translateY(0); }
button:focus-visible { outline: none; box-shadow: var(--ring); }
button:disabled { opacity: .4; cursor: default; transform: none; }
button svg { width: 15px; height: 15px; stroke-width: 1.8; }
.btn-primary { background: var(--ember); border-color: transparent; color: #1a0d07; font-weight: 650; box-shadow: 0 2px 10px -2px rgba(255,106,61,.5); }
.btn-primary:hover { background: var(--ember-2); border-color: transparent; }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.btn-danger { color: var(--coral); }
.btn-danger:hover { border-color: rgba(242,96,106,.4); background: var(--coral-soft); }

input[type=text], input[type=password], input[type=number], textarea, select {
  font: 14px var(--body); background: var(--bg-grain); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 13px; outline: none;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--ember-line); box-shadow: var(--ring); }
textarea { resize: vertical; line-height: 1.6; }
label.fld { display: block; margin-bottom: 14px; }
label.fld span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 550; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  font: 600 11.5px var(--body); border-radius: 7px; white-space: nowrap; line-height: 1.3;
}
.badge.critical { background: var(--coral-soft); color: var(--coral); }
.badge.warning { background: var(--gold-soft); color: var(--gold); }
.badge.notice { background: var(--slate-soft); color: var(--slate); }
.badge.ok { background: var(--teal-soft); color: var(--teal); }
.badge.dim { background: var(--s3); color: var(--muted); }
.badge.geo { background: var(--ember-soft); color: var(--ember-2); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--dim); font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .09em; padding: 9px 11px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 10px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover td { background: rgba(255,106,61,.035); }
.tbl .url { font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; }

.empty { text-align: center; color: var(--dim); padding: 50px 24px; }
.empty .big { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 15px; background: var(--s2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--ember); }
.empty .big svg { width: 26px; height: 26px; stroke-width: 1.5; }
.empty h2, .empty h3 { color: var(--text); }

/* ───────────────────────── data viz ───────────────────────── */
.score-ring { position: relative; width: 132px; height: 132px; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--sans); font-size: 33px; font-weight: 600; font-variant-numeric: tabular-nums; }
.score-ring .lbl { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font: 600 10px var(--sans); color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }

.bar { height: 7px; background: var(--bg-grain); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.meter-row { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.meter-row .nm { width: 142px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.meter-row .bar { flex: 1; }
.meter-row .vv { width: 34px; text-align: right; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; font-family: var(--sans); }

.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .v { font-family: var(--sans); font-size: 28px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .k { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; }

/* ───────────────────────── issues / accordion ───────────────────────── */
.issue-group { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 9px; overflow: hidden; background: var(--s1); transition: border-color .15s; }
.issue-group:hover { border-color: var(--border-2); }
.issue-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; }
.issue-head:hover { background: var(--hover); }
.issue-head .t { flex: 1; font-weight: 500; font-size: 13.5px; }
.issue-head .cnt { font-family: var(--sans); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.issue-body { padding: 14px 16px; background: var(--bg-grain); border-top: 1px solid var(--border); font-size: 13px; }
.issue-body .fix { color: var(--teal); margin-bottom: 10px; padding-left: 16px; position: relative; }
.issue-body .fix::before { content: '→'; position: absolute; left: 0; }

/* ───────────────────────── progress / skeleton ───────────────────────── */
.task-progress { display: flex; align-items: center; gap: 13px; padding: 12px 16px; background: var(--ember-soft); border: 1px solid var(--ember-line); border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13px; color: var(--text); }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,106,61,.25); border-top-color: var(--ember); border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────────────────── tabs ───────────────────────── */
.tabs { display: flex; gap: 2px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.tabs button { border: none; background: none; padding: 9px 15px; border-radius: 0; color: var(--muted); font-weight: 550; position: relative; transform: none; }
.tabs button:hover { background: none; color: var(--text); transform: none; }
.tabs button.active { color: var(--text); }
.tabs button.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--ember); border-radius: 2px 2px 0 0; }

/* ───────────────────────── editor ───────────────────────── */
.editor-wrap { display: grid; grid-template-columns: 1fr 372px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .editor-wrap { grid-template-columns: 1fr; } }
.editor-main textarea { min-height: 480px; font-family: var(--mono); font-size: 13px; line-height: 1.75; }
.editor-main input { margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.term-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 6px 0; padding: 4px 10px; border-radius: 8px; font-size: 12px; background: var(--s2); border: 1px solid var(--border); }
.term-chip .c { font-variant-numeric: tabular-nums; color: var(--dim); font-size: 11px; }
.term-chip.missing { border-color: rgba(242,96,106,.4); color: var(--coral); }
.term-chip.low { border-color: rgba(232,180,60,.4); color: var(--gold); }
.term-chip.ok { border-color: rgba(38,208,168,.35); color: var(--teal); }
.term-chip.over, .term-chip.stuffed { border-color: var(--ember-line); color: var(--ember-2); }
.hint-list li { margin: 0 0 8px 18px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* ───────────────────────── code / diff ───────────────────────── */
pre.code { background: var(--bg-grain); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 15px; font-family: var(--mono); font-size: 12px; line-height: 1.65; overflow: auto; white-space: pre-wrap; word-break: break-word; max-height: 380px; }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 1000px) { .diff { grid-template-columns: 1fr; } }
.diff .before pre.code { border-color: rgba(242,96,106,.3); }
.diff .after pre.code { border-color: rgba(38,208,168,.3); }
.diff .cap { font: 600 10px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 6px; }

/* ───────────────────────── chunks ───────────────────────── */
.chunk { border: 1px solid var(--border); border-left: 3px solid var(--dim); border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 10px; background: var(--s1); }
.chunk.excellent { border-left-color: var(--teal); }
.chunk.good { border-left-color: var(--slate); }
.chunk.weak { border-left-color: var(--gold); }
.chunk.poor { border-left-color: var(--coral); }
.chunk .h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 5px; }
.chunk .h b { font-size: 13px; font-weight: 600; }
.chunk .prev { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; line-height: 1.5; }
.chunk .reasons li { font-size: 12px; color: var(--gold); margin-left: 16px; }

/* ───────────────────────── share of voice ───────────────────────── */
.sov-row { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; }
.sov-row .nm { width: 156px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sov-row .nm.mine { color: var(--ember); font-weight: 600; }
.sov-row .bar { flex: 1; height: 8px; }
.sov-row .pc { width: 44px; font: 600 12px var(--sans); text-align: right; font-variant-numeric: tabular-nums; }

/* ───────────────────────── toast / modal ───────────────────────── */
#toasts { position: fixed; bottom: 24px; right: 24px; z-index: 99; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--s2); border: 1px solid var(--border-2); border-left: 3px solid var(--ember); padding: 12px 17px; border-radius: var(--radius-sm); font-size: 13px; box-shadow: var(--shadow-lg); animation: slideIn .26s cubic-bezier(.2,.7,.2,1); max-width: 380px; }
.toast.err { border-left-color: var(--coral); }
.toast.ok { border-left-color: var(--teal); }
@keyframes slideIn { from { transform: translateX(28px); opacity: 0; } }

#modal-bg { position: fixed; inset: 0; background: rgba(6,7,9,.74); backdrop-filter: blur(5px); z-index: 50; display: grid; place-items: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
#modal-bg.hidden { display: none; }
.modal { background: var(--s1); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 26px; width: min(490px, 92vw); max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: rise .26s cubic-bezier(.2,.7,.2,1); }
.modal h2 { font-family: var(--sans); font-size: 18px; font-weight: 600; margin-bottom: 18px; }

/* ───────────────────────── utilities ───────────────────────── */
.hidden { display: none !important; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 12px; }
.mono { font-family: var(--mono); }
a.link { color: var(--ember-2); text-decoration: none; font-weight: 500; }
a.link:hover { text-decoration: underline; }
.score-num { font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; }
.g { color: var(--teal); } .a { color: var(--gold); } .r { color: var(--coral); }

/* ---- auth screen ---- */
.auth-screen { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; overflow: auto;
  background: radial-gradient(1200px 600px at 50% -10%, #16181c, var(--bg)); padding: 24px; }

/* ---- landing ---- */
.landing { width: 100%; max-width: 880px; margin: auto; padding: 20px 0; }
.landing-hero { text-align: center; padding: 24px 16px 34px; }
.landing-hero .auth-logo { justify-content: center; margin-bottom: 18px; }
.landing-hero h1 { font-size: 34px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; margin-bottom: 12px; }
.landing-sub { color: var(--muted); font-size: 15px; max-width: 620px; margin: 0 auto 22px; line-height: 1.55; }
.landing-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feat { display: flex; gap: 12px; align-items: flex-start; background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.feat-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--ember); background: var(--ember-soft); }
.feat b { color: var(--text); font-size: 14px; }
@media (max-width: 640px) { .landing-feats { grid-template-columns: 1fr; } .landing-hero h1 { font-size: 27px; } }
.auth-card { width: 100%; max-width: 380px; background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 30px 26px; box-shadow: var(--shadow-lg); }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-logo .logo-mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--ember), #e0431f); }
.auth-logo .logo-mark svg { width: 20px; height: 20px; }
.auth-logo .logo-name { font-size: 18px; font-weight: 700; color: var(--text); }
.auth-logo .logo-name span { color: var(--ember); }
.auth-card h2 { font-size: 19px; font-weight: 700; color: var(--text); }
.btn-block { width: 100%; justify-content: center; margin-top: 6px; }
.auth-switch a { color: var(--ember-2); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ---- workspace switcher + user bar (sidebar) ---- */
#wsBar { padding: 0 12px 10px; }
.ws-switch { display: flex; align-items: center; gap: 6px; }
.ws-switch select { flex: 1; min-width: 0; }
.ws-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 7px 10px; background: var(--s2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; cursor: pointer;
  background: var(--s2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--hover); }
.user-row { display: flex; align-items: center; gap: 6px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.user-email { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-soft { background: var(--s1); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }

/* ---- toggle switch ---- */
.switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.switch input { display: none; }
.switch span { position: absolute; inset: 0; background: var(--s3); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: var(--muted); border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--ember-soft); }
.switch input:checked + span::before { transform: translateX(16px); background: var(--ember); }

/* ---- alerts feed ---- */
.alert-feed { display: flex; flex-direction: column; }
.alert-row { display: flex; align-items: flex-start; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.alert-row:last-child { border-bottom: none; }
.alert-row.read { opacity: .5; }
.alert-row .btn-sm { flex: none; }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; background: currentColor; }
.alert-dot.r { color: var(--coral); } .alert-dot.a { color: var(--gold); } .alert-dot.dim { color: var(--dim); }
.alert-body { flex: 1; min-width: 0; }

/* ---- usage / quota bars ---- */
.usage-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.usage-label { width: 210px; font-size: 12.5px; color: var(--muted); }
.usage-bar { flex: 1; height: 7px; background: var(--s3); border-radius: 99px; overflow: hidden; }
.usage-fill { display: block; height: 100%; background: var(--ember); border-radius: 99px; transition: width .25s; }
.usage-fill.over { background: var(--coral); }
.usage-row b { width: 92px; text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; }

/* ---- onboarding checklist ---- */
.onb-card { border-color: var(--ember-line); }
.onb-bar { height: 6px; background: var(--s3); border-radius: 99px; overflow: hidden; }
.onb-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ember), var(--ember-2)); border-radius: 99px; transition: width .3s; }
.onb-steps { display: flex; flex-direction: column; }
.onb-step { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.onb-step:last-child { border-bottom: none; }
.onb-check { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--border-2); color: var(--teal); }
.onb-step.done .onb-check { background: var(--teal-soft); border-color: var(--teal); }
.onb-step.done .onb-label { color: var(--dim); text-decoration: line-through; }
.onb-label { flex: 1; font-size: 13.5px; }
.onb-go { flex: none; font-size: 12.5px; }
