/* Layout: top bar + tabs on desktop, bottom tab bar on phones; content in a centred column of cards. */
:root {
  --bg: #f4f6f3; --panel: #ffffff; --panel-2: #eef2ee; --ink: #13201b; --muted: #5d6b65; --line: #dfe5df;
  --accent: #0f7b5f; --accent-soft: #d9efe7; --buy: #0f7b5f; --buy-soft: #dcf1e8; --sell: #c2413a; --sell-soft: #f9e1df;
  --warn: #b26b00; --warn-soft: #fbedd5; --shadow: 0 1px 2px rgba(19,32,27,.06), 0 6px 24px rgba(19,32,27,.06);
  --c1: #0f7b5f; --c2: #3a63c8; --c3: #8a8f8c; --c4: #c27a12;
  --sans: "IBM Plex Sans", "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1210; --panel: #141c19; --panel-2: #1b2521; --ink: #e5ece8; --muted: #94a39c; --line: #26322d;
    --accent: #3ccc9c; --accent-soft: #163a2f; --buy: #3ccc9c; --buy-soft: #133329; --sell: #f2706a; --sell-soft: #3a1b1a;
    --warn: #f0b04a; --warn-soft: #3a2c12; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.25);
    --c1: #3ccc9c; --c2: #7a9cff; --c3: #7d8783; --c4: #f0b04a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1210; --panel: #141c19; --panel-2: #1b2521; --ink: #e5ece8; --muted: #94a39c; --line: #26322d;
  --accent: #3ccc9c; --accent-soft: #163a2f; --buy: #3ccc9c; --buy-soft: #133329; --sell: #f2706a; --sell-soft: #3a1b1a;
  --warn: #f0b04a; --warn-soft: #3a2c12; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.25);
  --c1: #3ccc9c; --c2: #7a9cff; --c3: #7d8783; --c4: #f0b04a; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); padding-bottom: env(safe-area-inset-bottom, 0px); }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.15; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.topbar-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; display: block; box-shadow: 0 1px 3px rgba(7,90,69,.3); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-weight: 500; color: var(--muted); font-size: .72rem; letter-spacing: .06em; }
.tabs { display: flex; gap: 4px; margin-left: 10px; }
.tabs a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 999px; font-weight: 500; }
.tabs a.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.status { margin-left: auto; font-size: .78rem; color: var(--muted); text-align: right; white-space: nowrap; }
.status b { color: var(--ink); }

/* universe switch */
.uni-seg { margin-left: auto; }
.uni-seg + .status { margin-left: 12px; }
.uni-seg { flex-wrap: nowrap; flex: none; }
.uni-seg button { white-space: nowrap; }
@media (max-width: 560px) {
  .uni-seg:not([hidden]) + .status { display: none; }
  .brand-text small { display: none; }
  .brand-text { white-space: nowrap; font-size: .92rem; }
  .topbar-in { gap: 10px; }
  .uni-seg button { padding: 6px 9px; font-size: .8rem; }
}

/* bottom bar (phones) */
.bottombar { display: none; }
@media (max-width: 760px) {
  .tabs { display: none; }
  .status { font-size: .7rem; }
  .bottombar { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); }
  .bottombar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .7rem; padding: 4px 0; }
  .bottombar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .bottombar a.on { color: var(--accent); }
  main { padding-bottom: 90px !important; }
}

/* page */
main { max-width: 1180px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
.page { display: flex; flex-direction: column; gap: 18px; animation: fade .25s ease-out; }
@keyframes fade { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page { animation: none; } }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow { margin: 0 0 4px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sub { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.foot-note { color: var(--muted); font-size: .82rem; margin: 0; max-width: 90ch; }

/* hero + market */
.hero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-end; }
.market { display: flex; flex-direction: column; gap: 6px; min-width: 230px; padding: 14px 16px; }
.market-row { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .9rem; }
.market-row b { color: var(--ink); }
.filter-pill { margin-top: 4px; text-align: center; font-weight: 600; font-size: .85rem; padding: 6px 10px; border-radius: 999px; }
.filter-pill.on { background: var(--buy-soft); color: var(--buy); }
.filter-pill.off { background: var(--sell-soft); color: var(--sell); }
.banner { border-radius: var(--r); padding: 14px 16px; background: var(--warn-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.banner b { color: var(--warn); }

/* strategy card */
.strat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.strat-name { font-size: 1.25rem; font-weight: 700; }
.strat-label { color: var(--muted); font-size: .85rem; }
.badge { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.badge.yes { background: var(--accent-soft); color: var(--accent); }
.orders { display: flex; flex-direction: column; gap: 8px; }
.order { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); }
.order .side { font-weight: 700; font-size: .75rem; letter-spacing: .06em; padding: 4px 8px; border-radius: 8px; }
.order.buy .side { background: var(--buy-soft); color: var(--buy); }
.order.sell .side { background: var(--sell-soft); color: var(--sell); }
.order .tk { font-weight: 700; font-size: 1.05rem; }
.order .why { grid-column: 2 / 4; color: var(--muted); font-size: .82rem; }
.order .amt { text-align: right; font-size: .85rem; }
.empty { color: var(--muted); padding: 14px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
.mini { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; color: var(--muted); font-size: .82rem; }
.mini b { color: var(--ink); }
details.skipped { margin-top: 10px; font-size: .85rem; color: var(--muted); }
details.skipped summary { cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-family: var(--mono); font-size: .78rem; padding: 3px 8px; border-radius: 8px; background: var(--panel-2); color: var(--ink); }

/* kpis */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kpi .l { font-size: .76rem; color: var(--muted); }
.kpi .v { font-family: var(--mono); font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pos { color: var(--buy); } .neg { color: var(--sell); } .warn { color: var(--warn); }

/* position card */
.pcard { display: flex; flex-direction: column; gap: 10px; }
.pcard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pcard .tk { font-size: 1.25rem; font-weight: 700; }
.pcard .pl { font-family: var(--mono); font-weight: 600; font-size: 1.1rem; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .85rem; }
.kv span { color: var(--muted); } .kv b { font-family: var(--mono); font-weight: 500; text-align: right; }
.stopbar { position: relative; height: 10px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.stopbar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--buy); }
.stopbar.tight i { background: var(--warn); }
.stoplabel { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); }
.next { font-size: .82rem; font-weight: 600; padding: 6px 10px; border-radius: 10px; background: var(--panel-2); color: var(--muted); }
.next.sell { background: var(--sell-soft); color: var(--sell); }

/* segmented control + filters */
.seg { display: inline-flex; background: var(--panel-2); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 500; font-size: .86rem; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters input[type=search] { font: inherit; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); min-width: 0; width: 180px; max-width: 100%; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); }

/* history timeline */
.timeline { display: flex; flex-direction: column; gap: 14px; }
.day { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.day-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--panel-2); font-weight: 600; font-size: .9rem; }
.day-head span { color: var(--muted); font-weight: 500; }
.hrow { display: grid; grid-template-columns: 64px 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .88rem; }
.hrow:first-of-type { border-top: 0; }
.hrow .side { font-weight: 700; font-size: .72rem; letter-spacing: .05em; text-align: center; padding: 3px 0; border-radius: 7px; }
.hrow .side.buy { background: var(--buy-soft); color: var(--buy); } .hrow .side.sell { background: var(--sell-soft); color: var(--sell); }
.hrow .st { font-size: .75rem; color: var(--muted); }
.hrow .tk { font-weight: 700; }
.hrow .r { text-align: right; font-family: var(--mono); font-size: .82rem; }
.hrow.dim { opacity: .55; }
@media (max-width: 520px) { .hrow { grid-template-columns: 54px minmax(0, 1fr) auto; } .hrow .strat { display: none; } }

/* charts + tables */
.chart-card { padding: 14px 14px 8px; }
.chart { position: relative; min-height: 300px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--muted); margin: 0 4px 6px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.scroll { overflow-x: auto; }
.tbl { border-collapse: collapse; width: 100%; font-size: .86rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { color: var(--muted); font-weight: 500; font-size: .78rem; }
.tbl td { font-family: var(--mono); }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: .8rem; box-shadow: var(--shadow); }
.tip .d { color: var(--muted); }

/* docs */
.doc { max-width: 900px; line-height: 1.65; overflow-wrap: anywhere; }
.doc h1 { font-size: 1.6rem; margin: .2em 0 .6em; } .doc h2 { font-size: 1.2rem; margin: 1.6em 0 .5em; } .doc h3 { margin: 1.3em 0 .4em; }
.doc table { border-collapse: collapse; display: block; overflow-x: auto; font-size: .88rem; margin: 10px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.doc td:first-child, .doc th:first-child { white-space: nowrap; }
.doc th { background: var(--panel-2); }
.doc code { font-family: var(--mono); font-size: .86em; background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }
.doc pre { background: var(--panel-2); padding: 12px; border-radius: 10px; overflow-x: auto; }
.doc pre code { background: none; padding: 0; }
.doc blockquote { margin: 1em 0; padding: 4px 14px; border-left: 3px solid var(--accent); color: var(--muted); }

/* settings */
.mode-pill { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.mode-pill.ok { background: var(--accent-soft); color: var(--accent); }
.mode-pill.warn { background: var(--warn-soft); color: var(--warn); }
.banner.ok { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.banner.err { background: var(--sell-soft); border-color: color-mix(in srgb, var(--sell) 35%, transparent); }
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 18px; align-items: start; }
.set-card { display: flex; flex-direction: column; gap: 14px; }
.set-card h2 { margin: 0; }
.set-card p { margin: 0; }
.set-card-head { display: flex; gap: 12px; align-items: flex-start; }
.set-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-2); color: var(--accent); }
.set-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.set-ico.line { background: #06c755; color: #fff; }
.set-ico.line svg { fill: currentColor; stroke: none; }
.hint { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lbl { font-size: .84rem; font-weight: 600; }
.field input:not([type=checkbox]), .field textarea { font: inherit; font-size: 16px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); min-width: 0; }
.field textarea { resize: vertical; line-height: 1.45; }
.field textarea.mono { font-family: var(--mono); font-size: 14px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input:disabled, .field textarea:disabled { opacity: .6; }
.secret { display: flex; gap: 8px; }
.secret input { flex: 1; font-family: var(--mono) !important; }
.state { font-size: .78rem; font-weight: 600; color: var(--muted); }
.state.ok { color: var(--accent); } .state.miss { color: var(--warn); }
.count { font-weight: 500; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
.switches { display: flex; flex-direction: column; gap: 10px; }
.switch { display: flex; gap: 12px; align-items: center; cursor: pointer; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { flex: none; position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line); transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch span { display: flex; flex-direction: column; font-size: .9rem; }
.switch small { color: var(--muted); font-size: .78rem; }
.actions { display: flex; gap: 10px; align-items: center; }
.actions.wrap { flex-wrap: wrap; }
.btn, .ghost { font: inherit; font-weight: 600; font-size: .88rem; border-radius: 10px; padding: 9px 14px; cursor: pointer; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--panel); }
.btn.primary:hover:not(:disabled) { color: var(--panel); filter: brightness(1.08); }
.btn:disabled, .ghost:disabled { opacity: .5; cursor: not-allowed; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.primary.busy::after { border-color: var(--panel); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.ghost { background: none; color: var(--muted); }
.ghost.sm { padding: 6px 10px; font-size: .8rem; }
.fixed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fixed div { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; font-size: .76rem; color: var(--muted); }
.fixed b { color: var(--ink); font-size: .95rem; }
.mini-h { font-size: .85rem; margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.runs { display: flex; flex-direction: column; gap: 6px; }
.run { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .82rem; padding: 7px 10px; border-radius: 10px; background: var(--panel-2); }
.run .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.run.error .dot { background: var(--sell); } .run.skip .dot { background: var(--c3); }
.run .t { color: var(--muted); font-family: var(--mono); font-size: .76rem; }
.run .m { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.savebar { position: sticky; bottom: 12px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px;
  border-radius: 14px; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .86rem; color: var(--muted); }
.savebar.dirty { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); color: var(--ink); }
@media (max-width: 760px) { .savebar { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: min(92vw, 520px); padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: .88rem; box-shadow: var(--shadow); }
.toast.err { background: var(--sell); color: #fff; }
@media (max-width: 760px) { .toast { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); } }
.set-card code { font-family: var(--mono); font-size: .84em; background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }

.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); cursor: pointer; border: 1px solid transparent; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.choice span { display: flex; flex-direction: column; font-size: .9rem; }
.choice small { color: var(--muted); font-size: .78rem; }

.uni-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--panel-2); color: var(--muted); font-size: .86rem; }
.uni-note button { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.choices .lbl { margin: 0 0 2px; }

.quota { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; color: var(--muted); }
.quota b { color: var(--ink); }
.quota .bar { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.quota .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.quota.warn .bar i { background: var(--warn); } .quota.full .bar i { background: var(--sell); }
.quota.full b { color: var(--sell); }
.run .line-ok { color: var(--accent); font-weight: 600; } .run .line-bad { color: var(--sell); font-weight: 600; }
