/* ==========================================================================
   TRACK — brutalist monochrome. Helvetica, hard edges, no radius.
   ========================================================================== */
:root {
  --acc: #FF4F00;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: 16px;
  --gap: 3px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --b: 2px;
}
[data-theme="dark"] {
  --bg: #000; --fg: #fff; --mute: #8a8a8a; --line: #fff; --line2: #2a2a2a;
  --panel: #0b0b0b; --c-miss: #1c1c1c; --c-faint: #0c0c0c; --c-off: #3a3a3a;
  --scrim: rgba(0,0,0,.72); color-scheme: dark;
}
[data-theme="light"] {
  --bg: #fff; --fg: #000; --mute: #6a6a6a; --line: #000; --line2: #d2d2d2;
  --panel: #f4f4f4; --c-miss: #e2e2e2; --c-faint: #f3f3f3; --c-off: #bdbdbd;
  --scrim: rgba(0,0,0,.45); color-scheme: light;
}

* { box-sizing: border-box; border-radius: 0 !important; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.3;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  touch-action: manipulation; overscroll-behavior-y: none;
  min-height: 100dvh;
  padding-left: var(--sal); padding-right: var(--sar);
}
body.locked { overflow: hidden; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }

/* Status-bar strip: black-translucent status bar text is always white, so keep it on black */
body::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: var(--sat);
  background: #000; z-index: 100;
}

/* ---------- type ---------- */
.lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--mute); }
.h1 { font-size: 34px; font-weight: 900; letter-spacing: -.045em; line-height: .9; text-transform: uppercase; margin: 0; }
.h2 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1; text-transform: uppercase; margin: 0; }
.mute { color: var(--mute); }
.acc { color: var(--acc); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  padding: calc(var(--sat) + 14px) var(--pad) 12px;
  border-bottom: var(--b) solid var(--line);
  display: flex; align-items: flex-end; gap: 8px;
}
.top .h1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .acts { display: flex; gap: 6px; }
.ib {
  width: 44px; height: 44px; border: var(--b) solid var(--line);
  display: grid; place-items: center; flex: none;
}
.ib svg { width: 20px; height: 20px; }
.ib.plus { background: var(--acc); border-color: var(--acc); color: #000; }
.ib.on { background: var(--fg); color: var(--bg); }
.ib:active, .btn:active, .qa:active { transform: translate(1px, 1px); }

/* ---------- layout ---------- */
main { padding: 12px var(--pad) calc(var(--sab) + 96px); }
.row { display: flex; gap: 8px; align-items: center; }
.sp { flex: 1; }
.stack > * + * { margin-top: 12px; }
.section { margin-top: 28px; }
.section > .lbl:first-child { display: block; padding-bottom: 8px; border-bottom: var(--b) solid var(--line); margin-bottom: 12px; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; flex: 1; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 32px; padding: 0 12px; border: var(--b) solid var(--line2);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }

/* ---------- buttons / inputs ---------- */
.btn {
  min-height: 44px; padding: 0 14px; border: var(--b) solid var(--line);
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 11px; }
.btn.block { display: flex; width: 100%; }
.btn.pri { background: var(--fg); color: var(--bg); }
.btn.hot { background: var(--acc); border-color: var(--acc); color: #000; }
.btn.danger { border-color: var(--acc); color: var(--acc); }
.btn.ghost { border-color: var(--line2); }
.btn:disabled { opacity: .35; }
.btn svg { width: 14px; height: 14px; }

.in, select.in, textarea.in {
  width: 100%; min-height: 48px; padding: 12px; font-size: 16px; background: transparent;
  border: var(--b) solid var(--line); outline: none; -webkit-appearance: none; appearance: none;
}
textarea.in { min-height: 96px; resize: vertical; line-height: 1.4; }
.in:focus { border-color: var(--acc); }
select.in {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px;
}
input[type="date"].in { min-height: 48px; display: block; }
.field + .field { margin-top: 18px; }
.field > .lbl { display: block; margin-bottom: 6px; }

.seg { display: flex; border: var(--b) solid var(--line); }
.seg button {
  flex: 1; min-height: 44px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  border-right: var(--b) solid var(--line); padding: 0 4px;
}
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--fg); color: var(--bg); }

.wds { display: grid; grid-template-columns: repeat(7, 1fr); border: var(--b) solid var(--line); }
.wds button { min-height: 44px; font-weight: 800; border-right: var(--b) solid var(--line); font-size: 13px; }
.wds button:last-child { border-right: 0; }
.wds button.on { background: var(--fg); color: var(--bg); }

.toggle { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border: var(--b) solid var(--line); padding: 0 12px; width: 100%; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }
.toggle .sw { width: 44px; height: 24px; border: var(--b) solid var(--line); position: relative; flex: none; }
.toggle .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: var(--mute); }
.toggle.on .sw { background: var(--acc); border-color: var(--acc); }
.toggle.on .sw::after { left: 22px; background: #000; }

/* ---------- habit card ---------- */
.card { border: var(--b) solid var(--line); margin-bottom: 12px; --hc: var(--fg); background: var(--bg); }
.card.dragging { border-color: var(--acc); opacity: .9; }
.ch { display: flex; align-items: center; gap: 10px; padding: 10px; }
.ic { width: 44px; height: 44px; border: var(--b) solid var(--line2); display: grid; place-items: center; flex: none; color: var(--hc); }
.ic svg { width: 28px; height: 28px; }
.ct { flex: 1; min-width: 0; text-align: left; }
.ct .nm { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct .ds { font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.ct .mt { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct .mt .acc { color: var(--acc); }
.qa { width: 52px; height: 52px; border: var(--b) solid var(--line); display: grid; place-items: center; flex: none; position: relative; touch-action: manipulation; -webkit-touch-callout: none; }
.qa svg.px { width: 24px; height: 24px; }
.qa.on { background: var(--hc); border-color: var(--hc); color: var(--bg); }
.qa.qc { border: 0; }
.qa.qc svg.ring { position: absolute; inset: 0; width: 52px; height: 52px; }
.qa.qc .plus { font-size: 26px; font-weight: 300; line-height: 1; }
.qa.qc.full .plus { color: var(--hc); }
.tb { height: 52px; min-width: 52px; border: var(--b) solid var(--line2); display: grid; place-items: center; flex: none; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 0 6px; }
.tb svg { width: 16px; height: 16px; }
.tb.run { border-color: var(--acc); color: var(--acc); }
.grip { width: 32px; height: 44px; display: grid; place-items: center; touch-action: none; flex: none; color: var(--mute); }
.grip svg { width: 18px; height: 18px; }
.gw { padding: 0 10px 10px; }

/* ---------- grids ---------- */
.g { display: grid; gap: var(--gap); }
.g.wk { grid-template-rows: repeat(7, auto); grid-auto-flow: column; grid-template-columns: repeat(var(--cols), 1fr); }
.yr-wrap { display: flex; gap: 6px; }
.yr-days { display: grid; grid-template-rows: 12px repeat(7, 11px); gap: var(--gap); font-size: 8px; font-weight: 700; color: var(--mute); line-height: 11px; }
.yr-scroll { overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.yr-scroll::-webkit-scrollbar { display: none; }
.yr-months { display: grid; grid-auto-flow: column; grid-auto-columns: 11px; gap: var(--gap); height: 12px; margin-bottom: var(--gap); font-size: 8px; font-weight: 700; letter-spacing: .06em; color: var(--mute); }
.yr-months span { white-space: nowrap; }
.g.yr { grid-template-rows: repeat(7, 11px); grid-auto-columns: 11px; grid-auto-flow: column; width: max-content; }
.g.mo { grid-template-columns: repeat(7, 1fr); }
.mo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mo-head .lbl { color: var(--fg); }
.mo-nav { width: 36px; height: 32px; border: var(--b) solid var(--line2); display: grid; place-items: center; }
.mo-nav svg { width: 12px; height: 12px; }
.mo-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--gap); font-size: 9px; font-weight: 700; color: var(--mute); text-align: center; margin-bottom: 4px; letter-spacing: .1em; }

.c { aspect-ratio: 1; position: relative; background: var(--c-miss); }
.g.yr .c { aspect-ratio: auto; }
.c.done { background: var(--hc, var(--fg)); }
.c.l1 { background: color-mix(in srgb, var(--hc, var(--fg)) 28%, var(--c-miss)); }
.c.l2 { background: color-mix(in srgb, var(--hc, var(--fg)) 52%, var(--c-miss)); }
.c.l3 { background: color-mix(in srgb, var(--hc, var(--fg)) 76%, var(--c-miss)); }
.c.missed, .c.open { background: var(--c-miss); }
.c.off { background: linear-gradient(var(--c-off), var(--c-off)) center / 3px 3px no-repeat transparent; box-shadow: inset 0 0 0 1px var(--c-faint); }
.c.before, .c.future { background: var(--c-faint); }
.c.today { box-shadow: inset 0 0 0 2px var(--acc); }
.c.cm::after { content: ''; position: absolute; top: 0; right: 0; border-top: 5px solid var(--acc); border-left: 5px solid transparent; }
.g.mo .c { display: flex; align-items: flex-start; justify-content: flex-start; padding: 3px 4px; font-size: 11px; font-weight: 700; }
.g.mo .c.done { color: var(--bg); }
.g.mo .c.cm::after { border-top-width: 8px; border-left-width: 8px; }
.g.mo .c.blank { background: none; }

/* ---------- banners ---------- */
.banner { display: flex; align-items: center; gap: 10px; border: var(--b) solid var(--acc); padding: 10px 12px; margin-bottom: 12px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.banner .sp { color: var(--acc); }
.empty { border: var(--b) dashed var(--line2); padding: 40px 20px; text-align: center; }
.empty .h2 { margin-bottom: 8px; }

/* ---------- overlays ---------- */
.ov { position: fixed; inset: 0; z-index: 50; }
.ov .scrim { position: absolute; inset: 0; background: var(--scrim); }
.panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 90dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--bg); border-top: var(--b) solid var(--line);
  padding: 0 calc(var(--pad) + var(--sar)) calc(var(--sab) + 20px) calc(var(--pad) + var(--sal));
  overscroll-behavior: contain;
}
.panel.full { top: 0; max-height: none; border-top: 0; }
.ph {
  position: sticky; top: 0; z-index: 2; background: var(--bg); display: flex; align-items: flex-start; gap: 10px;
  padding: 16px 0 12px; border-bottom: var(--b) solid var(--line); margin-bottom: 16px;
}
.panel.full .ph { padding-top: calc(var(--sat) + 14px); }
.ph .t { flex: 1; min-width: 0; }
.ph .t .lbl { display: block; margin-bottom: 4px; }
.dialog .panel { bottom: auto; top: 50%; left: 16px; right: 16px; transform: translateY(-50%); border: var(--b) solid var(--line); padding: 18px; max-height: 80dvh; }
.dialog .msg { font-size: 15px; line-height: 1.4; margin: 10px 0 18px; white-space: pre-line; }
.dialog .btns { display: flex; flex-direction: column; gap: 8px; }

.stepper { display: grid; grid-template-columns: 56px 1fr 56px; border: var(--b) solid var(--line); }
.stepper button { min-height: 56px; font-size: 26px; font-weight: 300; }
.stepper button:first-child { border-right: var(--b) solid var(--line); }
.stepper button:last-child { border-left: var(--b) solid var(--line); }
.stepper input { border: 0; background: transparent; text-align: center; font-size: 28px; font-weight: 800; width: 100%; min-width: 0; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bigtoggle { width: 100%; min-height: 64px; border: var(--b) solid var(--line); font-size: 18px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 12px; }
.bigtoggle svg { width: 22px; height: 22px; }
.bigtoggle.on { background: var(--hc, var(--fg)); color: var(--bg); border-color: var(--hc, var(--fg)); }
.note { font-size: 12px; border-left: 4px solid var(--acc); padding: 8px 10px; margin-bottom: 16px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }

/* icon picker */
.icgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; margin-top: 10px; }
.icgrid button { aspect-ratio: 1; border: var(--b) solid var(--line2); display: grid; place-items: center; }
.icgrid button svg { width: 26px; height: 26px; }
.icgrid button.on { border-color: var(--acc); background: var(--acc); color: #000; }
.icgrid button.add { font-size: 22px; font-weight: 300; border-style: dashed; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.swatches button, .swatches label { aspect-ratio: 1; border: var(--b) solid var(--line2); position: relative; display: grid; place-items: center; font-size: 9px; font-weight: 800; letter-spacing: .08em; overflow: hidden; }
.swatches .on { box-shadow: inset 0 0 0 3px var(--bg), 0 0 0 2px var(--acc); border-color: var(--acc); }
.swatches input[type="color"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; }
details.adv { border: var(--b) solid var(--line2); margin-top: 22px; }
details.adv summary { list-style: none; min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
details.adv summary::-webkit-details-marker { display: none; }
details.adv summary::after { content: '+'; font-size: 22px; font-weight: 300; }
details.adv[open] summary::after { content: '−'; }
details.adv .inner { padding: 0 12px 14px; }

/* pixel editor */
.pe { display: grid; grid-template-columns: repeat(16, 1fr); border: var(--b) solid var(--line); touch-action: none; width: 100%; max-width: 420px; margin: 0 auto; background: var(--c-faint); }
.pe i { aspect-ratio: 1; box-shadow: inset 0 0 0 .5px var(--line2); display: block; }
.pe i.on { background: var(--fg); box-shadow: none; }
.pe-prev { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 14px 0; }
.pe-prev svg { width: 32px; height: 32px; }
.pe-prev .bx { border: var(--b) solid var(--line2); padding: 6px; display: grid; }
.pe-prev .bx.big svg { width: 64px; height: 64px; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-head .h2 { flex: 1; text-align: center; }
.cal-wd { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--mute); border-bottom: var(--b) solid var(--line); padding-bottom: 6px; }
.cal-wd span { padding-left: 4px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid var(--line2); touch-action: pan-y; }
.cd { min-height: 72px; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); padding: 4px; position: relative; text-align: left; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.cd .dn { font-size: 13px; font-weight: 800; }
.cd.out { opacity: .25; }
.cd.fut .dn { color: var(--mute); }
.cd.today { box-shadow: inset 0 0 0 2px var(--acc); }
.cd .mini { display: flex; flex-wrap: wrap; gap: 2px; }
.cd .mini i { width: 6px; height: 6px; background: var(--c-miss); display: block; }
.cd .mini i.done { background: var(--hc, var(--fg)); }
.cd .mini i.partial { background: color-mix(in srgb, var(--hc, var(--fg)) 45%, var(--c-miss)); }
.cd .mini i.missed { background: transparent; box-shadow: inset 0 0 0 1px var(--mute); }
.cd .fr { font-size: 9px; font-weight: 800; letter-spacing: .06em; margin-top: auto; color: var(--mute); }
.cd .fr.all { color: var(--fg); }
.cd.single { --hc: var(--fg); }
.cd.single.done { background: var(--hc); color: var(--bg); }
.cd.single.done .fr { color: var(--bg); }
.cd.single.partial { background: color-mix(in srgb, var(--hc) 40%, transparent); }
.cd.single.missed { background: var(--c-miss); }
.cd.single.off .dn::after { content: ' ·'; color: var(--mute); }
.cd.cm::after { content: ''; position: absolute; top: 0; right: 0; border-top: 9px solid var(--acc); border-left: 9px solid transparent; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--mute); text-transform: uppercase; }
.cal-legend span { display: inline-flex; gap: 6px; align-items: center; }
.cal-legend i { width: 10px; height: 10px; display: inline-block; }

/* day list */
.dl { border-top: var(--b) solid var(--line); }
.dlr { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line2); --hc: var(--fg); }
.dlr .ic { width: 38px; height: 38px; }
.dlr .ic svg { width: 22px; height: 22px; }
.dlr .qa { width: 44px; height: 44px; }
.mini-step { display: flex; border: var(--b) solid var(--line); }
.mini-step button { width: 36px; height: 40px; font-size: 20px; }
.mini-step span { min-width: 44px; display: grid; place-items: center; font-weight: 800; font-size: 13px; border-left: var(--b) solid var(--line); border-right: var(--b) solid var(--line); }

/* ---------- stats ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--b) solid var(--line); border-left: var(--b) solid var(--line); }
.tile { border-right: var(--b) solid var(--line); border-bottom: var(--b) solid var(--line); padding: 12px; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; }
.tile .v { font-size: 34px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.tile .v small { font-size: 14px; font-weight: 800; letter-spacing: 0; margin-left: 2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); text-align: right; padding: 6px 4px; border-bottom: var(--b) solid var(--line); }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl td { padding: 9px 4px; text-align: right; border-bottom: 1px solid var(--line2); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td:first-child { max-width: 110px; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; font-weight: 800; }
.tbl tr.sel td { color: var(--acc); }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); font-size: 9px; font-weight: 700; fill: var(--mute); letter-spacing: .06em; }
.chart .ax { stroke: var(--line); stroke-width: 2; }
.chart .gl { stroke: var(--line2); stroke-width: 1; }
.chart .bar { fill: var(--fg); }
.chart .bar.hi { fill: var(--acc); }
.chart .ln { stroke: var(--fg); stroke-width: 2; fill: none; }
.chart .ar { fill: color-mix(in srgb, var(--fg) 12%, transparent); }
.chart .dot { fill: var(--acc); }
.kv { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.kv b { color: var(--acc); }
.pct4 { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--b) solid var(--line); }
.pct4 div { padding: 10px; border-right: var(--b) solid var(--line); }
.pct4 div:last-child { border-right: 0; }
.pct4 .v { font-size: 22px; font-weight: 900; letter-spacing: -.03em; margin-top: 4px; }

/* ---------- settings ---------- */
.li { display: flex; align-items: center; gap: 8px; min-height: 52px; border-bottom: 1px solid var(--line2); }
.li .nm { flex: 1; min-width: 0; font-weight: 800; text-transform: uppercase; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .ic { width: 36px; height: 36px; }
.li .ic svg { width: 20px; height: 20px; }
.foot { margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--line2); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.foot .lbl { flex: 1; }

/* ---------- bars ---------- */
#timerbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--acc); color: #000; display: flex; align-items: center; gap: 10px;
  padding: 0 calc(var(--pad) + var(--sar)) var(--sab) calc(var(--pad) + var(--sal)); min-height: calc(48px + var(--sab));
  font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
}
#timerbar .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#timerbar button { border: var(--b) solid #000; min-height: 32px; padding: 0 10px; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
#updatebar { position: fixed; left: 0; right: 0; top: 0; z-index: 90; padding-top: var(--sat); background: var(--acc); }
#updatebar button { width: 100%; min-height: 40px; color: #000; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
#toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--sab) + 64px); z-index: 95;
  background: var(--fg); color: var(--bg); padding: 12px 16px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  max-width: calc(100% - 32px); text-align: center;
}
