/* FunPay Helper — «loot ledger»: an ink rail, paper ledger, and game-rarity colours used for meaning
   (legendary gold = money & main action, uncommon green = working, rare blue = info, red = trouble).
   Display: Unbounded (headings, big numbers only). Text: Onest. Class names are shared with app.js — keep them. */
:root {
  --ink: #172033; --ink-2: #222d45; --ink-text: #c9d1e3; --ink-muted: #7d89a6;
  --bg: #eef1f5; --panel: #fafbfc; --panel-2: #f1f3f7; --text: #172033; --muted: #5d6880; --line: #dde2ea; --line-2: #c9d0dc;
  --accent: #e09a2b; --accent-ink: #3a2400; --accent-2: #fbeed6;
  --ok: #1f8f5a; --ok-bg: #dff3e8; --warn: #b5690c; --warn-bg: #fdf0da; --bad: #cc3b3b; --bad-bg: #fbe5e5;
  --info: #2f6fd6; --info-bg: #e3edfc;
  --r-lg: 18px; --r-md: 12px; --r-sm: 8px;
  --shadow: 0 1px 0 rgba(23,32,51,.04);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #090e1a; --ink-2: #172038; --ink-text: #c9d1e3; --ink-muted: #6f7b98;
    --bg: #151d30; --panel: #1a2340; --panel-2: #1e2843; --text: #e7ebf3; --muted: #95a0b8; --line: #28324d; --line-2: #34405f;
    --accent: #f0ac3d; --accent-ink: #2a1a00; --accent-2: #3a2c14;
    --ok: #3fc581; --ok-bg: #163527; --warn: #f0ae4b; --warn-bg: #3a2b12; --bad: #ff7272; --bad-bg: #3e1d22;
    --info: #6ea2ff; --info-bg: #1b2b4d; --shadow: none;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
a { color: var(--info); cursor: pointer; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- ink rail (the one bold element) ---------- */
.layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: var(--ink-text); padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; height: 100vh; border-right: 1px solid rgba(255,255,255,.04); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand b { display: block; font: 600 15px/1.2 var(--display); letter-spacing: .01em; color: #fff; }
.brand small { color: var(--ink-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.brand.big b { font-size: 19px; color: var(--text); }
.logo { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  font: 700 17px/1 var(--display); flex: none; }
nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
nav a { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink-text); font-weight: 500; }
nav a:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
nav a i { font-style: normal; width: 20px; text-align: center; opacity: .85; }
nav a.active { background: var(--ink-2); color: #fff; }
nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.sidebar .btn { background: transparent; border-color: var(--ink-2); color: var(--ink-text); }
.sidebar .btn:hover { border-color: var(--ink-muted); color: #fff; }
.sidebar .btn.download { border-style: dashed; }

/* ---------- page ---------- */
main { padding: 26px 34px 48px; min-width: 0; max-width: 1480px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; }
.topbar h1 { margin: 0; font: 600 24px/1.2 var(--display); letter-spacing: -.01em; }
.top-actions { display: flex; align-items: center; gap: 12px; }

.btn { border: 1px solid var(--line-2); background: var(--panel); color: var(--text); padding: 8px 15px; border-radius: var(--r-sm); font: 500 14px/1.3 var(--font);
  cursor: pointer; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); border-color: var(--accent); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; }
.btn.download { text-align: center; }
@media (max-width: 860px) { .btn.download { display: none; } }
.btn.small { padding: 5px 11px; font-size: 13px; }
.btn.wide { width: 100%; padding: 11px; }
.btn:disabled { opacity: .45; cursor: default; }

.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.kpi .label { color: var(--muted); font-size: 13px; }
.kpi .value { font: 700 28px/1.15 var(--font); margin-top: 6px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .value .small { font-weight: 500; letter-spacing: 0; }
.kpi .sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.two { grid-template-columns: 1fr 1fr; }
.mb { margin-bottom: 16px; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--info); }
.pill.mute { background: var(--panel-2); color: var(--muted); }

.list { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover td { background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.clip { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.feature { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.feature p { margin: 4px 0 0; color: var(--muted); }
.feature .danger-note { color: var(--warn); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.rule { margin-bottom: 12px; }
.rule-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.rule-title { font-weight: 600; font-size: 15.5px; }
.rule-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font-size: 12.5px; background: var(--panel-2); }
.chip b { font-weight: 600; }
.chip.helper { border-color: var(--ok); } .chip.pulse { opacity: .85; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar input, .toolbar select, select { border: 1px solid var(--line-2); background: var(--panel); color: var(--text); padding: 8px 10px; border-radius: var(--r-sm); font: inherit; }
.empty { color: var(--muted); padding: 26px; text-align: center; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: linear-gradient(90deg, var(--ink) 0 38%, var(--bg) 38% 100%); }
.login-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; width: 100%; max-width: 380px;
  box-shadow: 0 24px 60px rgba(13,19,34,.18); display: flex; flex-direction: column; gap: 18px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.login-card input { border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); border-radius: 10px; padding: 11px 12px; font: inherit; }
.error { color: var(--bad); margin: 0; min-height: 1em; }
@media (max-width: 860px) { .login { background: var(--bg); } }

.modal { position: fixed; inset: 0; background: rgba(13,19,34,.55); display: grid; place-items: center; padding: 16px; z-index: 10; }
.modal-card { background: var(--panel); border-radius: var(--r-lg); padding: 24px; max-width: 460px; width: 100%; box-shadow: 0 24px 60px rgba(13,19,34,.3); }
.modal-card h3 { margin: 0 0 8px; font: 600 18px/1.3 var(--display); } .modal-card p { color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal-actions .btn.danger { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px;
  z-index: 20; max-width: calc(100% - 32px); box-shadow: 0 12px 30px rgba(13,19,34,.3); border-left: 4px solid var(--accent); }

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .value { font-size: 22px; }
  .row { flex-wrap: wrap; }
  .rule-head > div:last-child { flex-wrap: wrap; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 10px; }
  nav { flex-direction: row; overflow-x: auto; flex-basis: 100%; order: 3; }
  nav a { white-space: nowrap; }
  nav a.active::before { left: 10px; right: 10px; top: auto; bottom: 2px; width: auto; height: 3px; border-radius: 3px; }
  main { padding: 18px 16px 32px; }
  .two { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 20px; }
}

/* ---------- dashboard ---------- */
.hello { margin-bottom: 4px; }
.hello h2 { margin: 2px 0 4px; font: 600 30px/1.15 var(--display); letter-spacing: -.02em; }
.cap { font-size: 13px; }
.small { font-size: 13px; } .mt { margin-top: 12px; }
.banner { display: flex; gap: 14px; align-items: center; margin: 18px 0 16px; border-left: 4px solid var(--ok); }
.banner.warn { border-left-color: var(--warn); }
.banner-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: var(--ok-bg); color: var(--ok); flex: none; }
.banner.warn .banner-icon { background: var(--warn-bg); color: var(--warn); }
/* KPI ledger: one strip with dividers instead of six floating cards */
.kpis.five, .kpis.six { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; }
.kpis.five > .card, .kpis.six > .card { border: 0; border-radius: 0; box-shadow: none; background: transparent; border-right: 1px solid var(--line); }
.kpis.six > .card:first-child { background: var(--accent-2); }
.kpis.six > .card:first-child .value { color: var(--text); }
.bar { height: 6px; border-radius: 999px; background: var(--panel-2); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.chart-row { grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr); margin-bottom: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.metric { border-right: 1px solid var(--line); padding: 10px 14px; min-width: 0; }
.metric:last-child { border-right: 0; }
.metric span { display: block; font-size: 12.5px; color: var(--muted); }
.metric b { font: 700 17px/1.3 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.metric.active { background: var(--accent-2); }
.chart svg { width: 100%; height: 250px; display: block; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.75; stroke-linecap: round; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .avg-line { stroke: var(--muted); stroke-dasharray: 3 5; opacity: .55; }
.chart .axis { fill: var(--muted); font: 11.5px var(--font); } .chart .axis.strong { fill: var(--text); font-weight: 600; }
.chart .val { fill: var(--text); font: 600 11.5px var(--font); opacity: .85; }
.chart .dot-pt { fill: var(--panel); stroke: var(--accent); stroke-width: 2.25; }
.chart .hit { fill: transparent; cursor: pointer; } .chart .pt:hover .hit, .chart .pt.sel .hit { fill: var(--accent-2); opacity: .7; }
.chart .pt.sel .dot-pt { fill: var(--accent); }
.day-box { border-left: 4px solid var(--accent); background: var(--accent-2); border-radius: var(--r-md); padding: 14px 16px; }
.day-box .value { font: 700 30px/1.15 var(--font); letter-spacing: -.02em; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.acc-card { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 13px; background: var(--panel); }
.acc-main { flex: 1; min-width: 0; } .acc-main b { display: block; }
.acc-side { text-align: right; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.avatar { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; background: var(--panel-2); }
.avatar.letter { display: grid; place-items: center; font: 700 16px/1 var(--display); color: var(--accent-ink); background: var(--accent); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
@media (max-width: 860px) {
  .chart-row { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 0; } .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hello h2 { font-size: 22px; }
  .kpis.five > .card, .kpis.six > .card { border-bottom: 1px solid var(--line); }
}

/* ---------- plugins & settings ---------- */
.group-title { font: 600 14px/1.3 var(--display); margin: 26px 0 12px; color: var(--muted); letter-spacing: .01em; }
.group-title:first-child { margin-top: 0; }
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.plugin { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; border-radius: var(--r-md); }
.plugin.on { box-shadow: inset 4px 0 0 var(--ok); }
.plugin.soon { opacity: .6; }
.plugin-head { display: flex; gap: 12px; }
.plugin-head b { font-size: 15.5px; }
.plugin-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 19px; flex: none; }
.plugin-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.form-grid input, .filters input, .toolbar input { border: 1px solid var(--line-2); background: var(--panel); color: var(--text); border-radius: var(--r-sm); padding: 8px 10px; font: inherit; }
textarea { font: inherit; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .filters .chip input { width: 90px; padding: 3px 6px; margin-left: 4px; }
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
.snav { display: flex; flex-direction: column; gap: 2px; }
.snav a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); font-weight: 500; }
.snav a.active { background: var(--panel); box-shadow: inset 3px 0 0 var(--accent); } .snav a:hover { background: var(--panel); text-decoration: none; }
.sbody h3 { margin: 0 0 4px; font: 600 20px/1.25 var(--display); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; } .swatch { width: 34px; height: 34px; border-radius: 10px; border: 3px solid transparent; cursor: pointer; }
.swatch.sel { border-color: var(--text); }
@media (max-width: 860px) { .settings { grid-template-columns: minmax(0, 1fr); } .snav { flex-direction: row; overflow-x: auto; } }

.boot { position: fixed; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: var(--muted);
  font-size: 15px; background: var(--bg); z-index: 50; text-align: center; padding: 16px; }
.boot small { color: var(--bad); white-space: pre-wrap; max-width: 640px; font-size: 13px; }
.card .toolbar { margin-bottom: 0; }
.card .toolbar select, select.small { padding: 5px 9px; font-size: 13px; border-radius: var(--r-sm); }
/* KPI ledger never leaves a lonely last cell: 6 → 3 → 2 columns */
.kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1360px) { .kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis.six > .card { border-bottom: 1px solid var(--line); } }
@media (max-width: 700px) { .kpis.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- platform switcher (FunPay ⇄ GameBoost), like an account switcher ---------- */
:root { --gb: #4f7cff; --gb-ink: #fff; }
.logo.gb, body.gb .brand .logo { background: var(--gb); color: var(--gb-ink); }
.logo.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
.platform { position: relative; }
.platform-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; cursor: pointer;
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.06); color: var(--ink-text); font: inherit; text-align: left; }
.platform-btn:hover { border-color: var(--ink-muted); }
.platform-btn > i { font-style: normal; margin-left: auto; color: var(--ink-muted); }
.platform-text b, .platform-item b { display: block; color: #fff; font-weight: 600; font-size: 14px; line-height: 1.2; }
.platform-text small, .platform-item small { display: block; color: var(--ink-muted); font-size: 12px; }
.platform-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); background: var(--ink-2); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.35); z-index: 5; }
.platform-cap { color: var(--ink-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px 4px; }
.platform-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; border: 0; background: transparent;
  color: var(--ink-text); font: inherit; text-align: left; cursor: pointer; }
.platform-item:hover { background: rgba(255,255,255,.06); }
.platform-item .tick { font-style: normal; margin-left: auto; color: var(--accent); visibility: hidden; }
.platform-item.gb .tick { color: var(--gb); }
.platform-item.current .tick { visibility: visible; }
body.gb nav a.active::before { background: var(--gb); }
:root { --eld: #f2b705; --eld-ink: #1b1400; }
.logo.eld, body.eld .brand .logo { background: var(--eld); color: var(--eld-ink); }
.platform-item.eld .tick { color: var(--eld); }
body.eld nav a.active::before { background: var(--eld); }
.eld-title { max-width: 520px; }
@media (max-width: 860px) { .platform { order: 2; margin-left: auto; } .platform-btn small, .platform-btn > i { display: none; } .platform-menu { bottom: auto; top: calc(100% + 8px); left: auto; width: 240px; } }

/* ---------- GameBoost pages ---------- */
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 16px; }
.kpis.four > .card { border: 0; border-radius: 0; box-shadow: none; background: transparent; border-right: 1px solid var(--line); }
.kpis.four > .card:last-child { border-right: 0; }
@media (max-width: 1100px) { .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis.four > .card { border-bottom: 1px solid var(--line); } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font: 600 13px/1 var(--font); background: var(--panel-2); color: var(--muted); border: 1px solid var(--line-2); }
.steps li.done::before { content: "✓"; background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.steps li b { display: block; }
.steps li .muted { font-size: 13.5px; }
code.url { display: inline-block; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-size: 13px; word-break: break-all; }
.gb-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .gb-grid { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 16px; }
.url-row { flex-direction: column; align-items: stretch; gap: 4px; }
.url-row code.url { display: block; }
.form-grid .lbl { display: flex; align-items: center; gap: 8px; }
/* short screens: the menu scrolls, switcher and buttons stay visible */
.sidebar { gap: 16px; }
.sidebar nav { overflow-y: auto; min-height: 0; scrollbar-width: thin; }
@media (max-height: 760px) { .sidebar nav a { padding: 8px 12px; } }
.cell-num { width: 92px; padding: 5px 7px; text-align: right; font-variant-numeric: tabular-nums; }
