:root {
  --bg: #15151b;
  --card: #1f1f27;
  --line: #2e2e39;
  --gold: #e8b84a;
  --green: #3fc07a;
  --text: #f2eee6;
  --muted: #8c8a93;
  --red: #e86a5a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  width: 360px;
  padding: 0 14px 12px;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.4 Inter, "Segoe UI", system-ui, sans-serif;
}
.hidden { display: none !important; }

.tabs { display: flex; gap: 4px; margin: 0 -14px 12px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); }
.tabs button {
  flex: 1; background: none; border: 0; color: var(--muted); font: 600 12.5px/1 inherit;
  padding: 9px 4px 10px; border-bottom: 2px solid transparent; cursor: pointer;
}
.tabs button.active { color: var(--text); border-color: var(--gold); }
.tabs button .dot { display: inline-block; min-width: 16px; padding: 1px 4px; margin-left: 4px; border-radius: 99px; background: var(--gold); color: var(--bg); font-size: 10px; }
.panel { display: none; }
.panel.active { display: block; }

header { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
header img { flex: none; border-radius: 14px; background: var(--card); }
h1 { margin: 0 0 2px; font-size: 16px; font-weight: 800; }
#sub { margin: 0; color: var(--muted); font-size: 12px; }
body.running h1 { color: var(--green); }

.card, .stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.card { margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.label { display: block; color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.val { display: block; font-size: 16px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: 12px; }
.muted b { color: var(--text); }
.small { font-size: 11px; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.row-head .label { display: inline; }

.bars { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.bars.short { height: 40px; gap: 6px; }
.bars i { flex: 1; min-height: 2px; background: var(--line); border-radius: 2px 2px 0 0; }
.bars i.on { background: var(--gold); }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 4px; }

.hint { color: var(--muted); font-size: 12px; margin: 2px 0 10px; }
.watch input, .num {
  width: 100%; background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 9px 10px; font: 12px ui-monospace, Consolas, monospace; margin-bottom: 8px;
}
.watch input:focus, .num:focus { outline: 1px solid var(--gold); }
.num { width: 64px; padding: 3px 6px; margin: 0 4px; display: inline-block; }
.err { color: var(--red); font-size: 12px; margin: 4px 0 0; min-height: 0; }

.btn {
  background: var(--line); color: var(--text); border: 0; border-radius: 9px; padding: 8px 12px;
  font: 600 12.5px/1 inherit; cursor: pointer;
}
.btn:hover { filter: brightness(1.15); }
.btn.primary { background: var(--gold); color: var(--bg); }
.btn.wide { width: 100%; margin-top: 8px; }
.btn:disabled { opacity: .4; cursor: default; filter: none; }
.link { background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 12px; padding: 0; }

.who { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--muted); font: 12px ui-monospace, Consolas, monospace; }
.claim { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.claim .big { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.claim .big b { color: var(--gold); }
.claim .actions { display: flex; flex-direction: column; gap: 6px; }

.pairs { list-style: none; margin: 0; padding: 0; }
.pairs li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pairs li:first-child { border-top: 0; padding-top: 0; }
.pairs .lv { color: var(--gold); font-weight: 700; margin-right: 6px; }
.pairs .ready { color: var(--green); font-weight: 600; }
.pairs .none { color: var(--muted); }

.toggle { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; cursor: pointer; }
.toggle input[type=checkbox] { accent-color: var(--gold); }

footer { display: flex; gap: 6px; align-items: center; font-size: 12px; margin-top: 10px; }
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer span { color: var(--muted); }
footer .net { margin-left: auto; font-size: 11px; border: 1px solid var(--line); padding: 1px 7px; border-radius: 99px; }
