:root {
  --bg: #0f1115; --card: #181b22; --card2: #20242d; --line: #2a2f3a;
  --text: #eef0f4; --muted: #8b93a3; --accent: #ff6b35; --accent-ink: #1a0c05;
  --ok: #3ecf8e; --danger: #ff5d5d; --radius: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior: none; background: var(--bg); }
/* behave like an app, not a web page: no double-tap zoom, no text-selection/callout on buttons, no rubber-banding */
* { touch-action: manipulation; }
body { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; overscroll-behavior: none; }
input, textarea, .ai-note { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img, svg { -webkit-user-drag: none; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(96px + var(--safe-b)); min-height: 100vh; min-height: 100dvh; }
h1 { font-size: 26px; margin: 22px 0 14px; letter-spacing: -.3px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 0 10px; font-weight: 600; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: var(--card2); border-radius: 10px; padding: 12px 16px; min-height: 44px; }
button:active { opacity: .75; }
button.primary { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
button.danger { background: transparent; color: var(--danger); }
button.block { width: 100%; }
input, textarea { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; min-height: 44px; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea { resize: vertical; min-height: 64px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; min-width: 0; }

.card { background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; display: block; }
.card .t { font-weight: 650; }
.card .s { color: var(--muted); font-size: 14px; margin-top: 2px; }
.card.planned { border-left: 3px solid var(--accent); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--card2); color: var(--muted); }
.pill.ai { background: #2b2140; color: #b8a3ff; }
.pill.live { background: #3a2316; color: var(--accent); }
.pill.done { background: #15301f; color: var(--ok); }
.empty { color: var(--muted); text-align: center; padding: 28px 0; }

nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(15,17,21,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; justify-content: center; padding-bottom: var(--safe-b); z-index: 5; }
nav.tabs div { display: flex; width: 100%; max-width: 560px; }
nav.tabs a { flex: 1; text-align: center; padding: 12px 0 10px; font-size: 12px; color: var(--muted); }
nav.tabs a b { display: block; font-size: 20px; line-height: 1.1; }
nav.tabs a.on { color: var(--accent); }

.top { display: flex; align-items: center; gap: 8px; padding: 14px 0 6px; position: sticky; top: 0; background: var(--bg); z-index: 4; }
.top .back { font-size: 30px; line-height: 1; padding: 0 10px 4px 0; color: var(--muted); }
.top input { font-size: 20px; font-weight: 650; background: transparent; border: 0; padding: 6px 0; }
#saved { font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 52px; text-align: right; }
.meta { display: flex; gap: 10px; align-items: center; margin: 6px 0 10px; }
.meta input[type=date] { width: auto; }

.ex { background: var(--card); border-radius: var(--radius); padding: 12px 12px 8px; margin: 12px 0; }
.ex-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ex-h b { font-size: 17px; flex: 1; min-width: 0; }
.ex-h .grp { font-size: 12px; color: var(--muted); }
.ex-h button { padding: 4px 10px; min-height: 36px; background: transparent; color: var(--muted); font-size: 20px; }
.ex .note { font-size: 14px; padding: 8px 10px; min-height: 36px; margin: 4px 0 6px; background: var(--card2); border-color: transparent; }
.sets-h, .set { display: grid; grid-template-columns: 22px minmax(0, 1fr) 58px 48px 42px 42px; gap: 5px; align-items: center; }
.sets-h { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0; }
.set { margin: 6px 0; }
.set .n { color: var(--muted); text-align: center; font-weight: 600; }
.set .hint { font-size: 12px; line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set .hint .tg { color: var(--accent); font-weight: 600; }
.set .hint .pv { color: var(--muted); }
.set input { text-align: center; padding: 8px 2px; font-size: 17px; font-weight: 600; }
.tick { padding: 0; width: 42px; height: 44px; font-size: 20px; background: var(--card2); color: var(--muted); }
.set.done .tick { background: var(--ok); color: #06210f; }
.set.done input { color: var(--ok); }
.addset { width: 100%; background: transparent; color: var(--muted); border: 1px dashed var(--line); margin: 6px 0 4px; }
.add-ex { display: flex; gap: 8px; margin: 14px 0; }
.add-ex button { white-space: nowrap; }
.actions { display: grid; gap: 10px; margin-top: 22px; }
.ai-note { background: #1d1830; border: 1px solid #332a55; border-radius: var(--radius); padding: 12px 14px; font-size: 14px; white-space: pre-wrap; margin-bottom: 8px; }
.ai-note b { color: #b8a3ff; display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }

#toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 99px; z-index: 9; font-size: 14px; }

.login { margin-top: 18vh; text-align: center; }
.login img { width: 72px; border-radius: 18px; }
.login form { display: grid; gap: 10px; margin-top: 20px; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; }

.sess { background: var(--card); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; }
.sess .sets { margin-top: 4px; font-variant-numeric: tabular-nums; }
.sess .sets span { display: inline-block; background: var(--card2); border-radius: 8px; padding: 2px 8px; margin: 2px 4px 2px 0; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 4px; }
.stats div { background: var(--card); border-radius: var(--radius); padding: 10px 12px; }
.stats b { display: block; font-size: 20px; }
.stats span { font-size: 12px; color: var(--muted); }
svg.spark { width: 100%; height: 90px; background: var(--card); border-radius: var(--radius); margin: 8px 0; }

@media (min-width: 400px) {
  .sets-h, .set { grid-template-columns: 24px minmax(0, 1fr) 66px 54px 46px 46px; gap: 6px; }
  .tick { width: 46px; }
}
.ex-h .ex-fig { flex: none; position: relative; width: 46px; height: 38px; border-radius: 8px; background: var(--card2); overflow: hidden; }
.ex-fig .fg { position: absolute; inset: 0; }
.sess .sets small { color: var(--accent); font-size: 11px; font-weight: 600; }

/* RPE chip on each set */
.set .rpe { padding: 0; width: 100%; height: 44px; min-height: 44px; font-size: 11px; letter-spacing: .05em; color: var(--muted); background: transparent; border: 1px dashed var(--line); border-radius: 10px; }
.set .rpe.has { font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--accent); border: 1px solid var(--accent); background: rgba(255,107,53,.1); }

/* quick RPE strip after ticking a set */
#rpebar { position: fixed; left: 50%; bottom: calc(72px + var(--safe-b)); transform: translateX(-50%); width: min(560px, calc(100% - 24px)); z-index: 7; display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #1b1f28; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.5); animation: rise .2s ease-out; }
#rpebar span { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; padding: 0 6px 0 4px; }
#rpebar button { flex: 1; min-width: 0; min-height: 44px; padding: 0; font-size: 17px; font-weight: 700; }
#rpebar button[data-more], #rpebar button[data-x] { flex: none; width: 34px; background: transparent; color: var(--muted); font-size: 16px; font-weight: 400; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* modal: bottom sheet on phones, centred card on wide screens */
body.no-scroll { overflow: hidden; }
.modal { position: fixed; left: 0; right: 0; top: 0; height: 100%; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.modal-bg { position: absolute; inset: 0; touch-action: none; background: rgba(5,6,9,.66); animation: fadeIn .18s ease-out; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: calc(100% - 14px); display: flex; flex-direction: column; background: #151820; border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.5); padding-bottom: var(--safe-b); animation: sheetUp .24s cubic-bezier(.2,.85,.25,1); }
.modal.tall .sheet { height: calc(100% - 14px); }
.grab { flex: none; padding: 9px 0 3px; display: grid; place-items: center; touch-action: none; }
.grab i { width: 40px; height: 4px; border-radius: 4px; background: #3a4050; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(40%); opacity: .4; } }
@media (min-width: 640px) {
  .modal { align-items: center; }
  .sheet { border-radius: 22px; border-bottom: 1px solid var(--line); max-height: min(86vh, 780px); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
  .modal.tall .sheet { height: min(86vh, 780px); }
}
@media (prefers-reduced-motion: reduce) { .modal-bg, .sheet, #rpebar { animation: none; } }
.sheet-h { flex: none; padding: 0 16px 6px; }
.sheet-title { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 8px; }
.sheet-title b { font-size: 19px; }
.sheet-title .x { background: transparent; color: var(--muted); font-size: 20px; padding: 0 8px; min-height: 40px; }
.sheet-h input[type=search] { -webkit-appearance: none; appearance: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 10px 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 36px; padding: 0 14px; border-radius: 99px; background: var(--card2); color: var(--muted); font-size: 14px; }
.chips button.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
#pk-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 16px 14px; }
#pk-list h2 { margin: 16px 0 6px; }
.sheet-f { flex: none; padding: 10px 16px 12px; border-top: 1px solid var(--line); }

/* picker rows */
.pk-row { display: flex; align-items: stretch; background: var(--card); border-radius: 14px; margin: 7px 0; overflow: hidden; border: 2px solid transparent; }
.pk-row.sel { border-color: var(--accent); }
.pk-thumb { position: relative; flex: none; width: 78px; min-height: 66px; padding: 0; border-radius: 0; background: var(--card2); }
.pk-thumb .fg, .pk-fig .fg { position: absolute; inset: 0; }
.pk-thumb .play { position: absolute; right: 4px; bottom: 3px; font-size: 9px; font-style: normal; line-height: 1; color: #c9ceda; background: rgba(0,0,0,.45); border-radius: 6px; padding: 2px 5px; }
.pk-row.open .pk-thumb .play { color: var(--accent); }
.pk-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; background: transparent; border-radius: 0; padding: 8px 12px; }
.pk-main .tx { flex: 1; min-width: 0; }
.pk-main .nm { display: block; font-weight: 650; line-height: 1.25; }
.pk-main .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.pk-main .hist { display: block; font-size: 12px; color: var(--accent); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-row.inuse .nm::after { content: ' · in workout'; font-weight: 400; font-size: 12px; color: var(--ok); }
.chk { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 14px; color: transparent; }
.pk-row.sel .chk { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pk-prev { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: -2px 0 9px; padding: 12px; display: grid; gap: 10px; }
.pk-fig { position: relative; background: var(--card2); border-radius: 12px; aspect-ratio: 6 / 5; width: 100%; max-width: 300px; margin: 0 auto; overflow: hidden; }
.pk-prev .tags span { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--card2); color: var(--muted); margin-right: 6px; }
.pk-prev p { margin: 0; color: #c9ceda; font-size: 14.5px; line-height: 1.45; }

/* RPE sheet */
.rp-sub { color: var(--muted); font-size: 14px; margin: -4px 0 2px; }
.rp-body { padding: 4px 16px 14px; text-align: center; }
.rp-val { font-size: 56px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.rp-txt { color: var(--muted); min-height: 24px; margin-bottom: 12px; }
.rp-grid { display: grid; gap: 8px; margin: 8px 0; }
.rp-grid.whole { grid-template-columns: repeat(6, 1fr); }
.rp-grid.half { grid-template-columns: repeat(5, 1fr); padding: 0 8%; }
.rp-grid button { min-height: 54px; padding: 0; font-size: 20px; font-weight: 700; }
.rp-grid.half button { background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.rp-grid button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rp-body > .ghost { margin-top: 10px; }
.rp-body > .ghost:disabled { opacity: .35; }

/* ---------- polish: nav, headers, cards ---------- */
nav.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; font-size: 11px; font-weight: 500; }
nav.tabs a svg { width: 24px; height: 24px; }
h1.has-sub { margin-bottom: 0; }
.sub-h { color: var(--muted); font-size: 14px; margin: 2px 0 14px; }
.small { font-size: 13px; }
.more-link { display: block; text-align: center; color: var(--muted); padding: 10px 0; font-size: 14px; }
.card.live { border-left: 3px solid var(--ok); }
.pill.live { background: #15301f; color: var(--ok); }
#wclock { font-variant-numeric: tabular-nums; }
.empty.big { padding: 48px 12px; line-height: 1.5; }
.foot { color: var(--muted); font-size: 13px; text-align: center; margin: 18px 0 8px; line-height: 1.5; }
input.search { margin: 0 0 12px; }
.top .ttl { font-size: 20px; font-weight: 700; line-height: 1.2; }

/* home: this week */
.week { display: block; background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.wk-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.streak { color: var(--text); font-weight: 600; }
.wk-n { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.wk-n b { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; }
.wk-n span { font-size: 12px; color: var(--muted); }
.wk-cmp { font-size: 12px; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* stat tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.tile { background: var(--card); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.tile .l { display: block; font-size: 12px; color: var(--muted); }
.tile .v { display: block; font-size: 26px; font-weight: 700; line-height: 1.2; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .v small { font-size: 14px; font-weight: 600; color: var(--muted); }
.tile .d { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* chart panels */
.panel { background: var(--card); border-radius: var(--radius); padding: 14px 14px 10px; margin: 12px 0; }
.panel-h { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.panel-h b { display: block; font-size: 16px; }
.panel-h span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.ctl { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-bottom: 8px; }
.seg { display: inline-flex; background: var(--card2); border-radius: 10px; padding: 3px; gap: 2px; margin-bottom: 8px; }
.ctl .seg { margin-bottom: 0; }
.seg button { min-height: 34px; padding: 0 11px; font-size: 13px; font-weight: 600; background: transparent; color: var(--muted); border-radius: 8px; }
.seg button.on { background: #343a48; color: var(--text); }
.chart { position: relative; margin: 0 -2px; }
.chart svg { display: block; touch-action: pan-y; outline: none; overflow: visible; font-family: inherit; }
.chart svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.chart .tt { position: absolute; z-index: 3; pointer-events: none; background: #0c0e12; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 12px; color: var(--muted); white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.chart .tt b { display: block; color: var(--text); font-size: 15px; }
.chart .tt span { display: block; }
.tv { margin-top: 6px; }
.tv summary { font-size: 12.5px; color: var(--muted); padding: 6px 0; cursor: pointer; list-style: none; }
.tv summary::-webkit-details-marker { display: none; }
.tv summary::before { content: '▸ '; }
.tv[open] summary::before { content: '▾ '; }
.tv table, table.rm { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tv th, .tv td, .rm th, .rm td { text-align: right; padding: 7px 4px; border-top: 1px solid var(--line); }
.tv th:first-child, .tv td:first-child, .rm th:first-child, .rm td:first-child { text-align: left; }
.tv th, .rm th { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-top: 0; }
.rm td:nth-child(2) { text-align: left; }
.rm th:nth-child(2) { text-align: left; }

/* muscle balance bars: single hue, value at the tip */
.hb { display: grid; grid-template-columns: 78px 1fr 34px; align-items: center; gap: 10px; margin: 9px 0; font-size: 14px; }
.hb-l { color: var(--muted); }
.hb-t { height: 10px; }
.hb-t i { display: block; height: 100%; background: #ea5c2a; border-radius: 0 4px 4px 0; min-width: 3px; }
.hb-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* main lifts */
.lift { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.panel-h + .lift { border-top: 0; padding-top: 2px; }
.lift .tx { flex: 1; min-width: 0; }
.lift .tx b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lift .tx span { display: block; font-size: 12.5px; color: var(--muted); }
.lift .ex-fig, .exrow .ex-fig { flex: none; position: relative; width: 46px; height: 38px; border-radius: 8px; background: var(--card2); overflow: hidden; }
.sparkline { flex: none; }
.chg { flex: none; min-width: 58px; text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--ok); }
.chg.down, .chg.flat { color: var(--muted); }

/* exercises list */
.exrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.exrow .t { display: block; font-weight: 650; }
.exrow .s { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
.chev { color: var(--muted); font-size: 22px; }

/* exercise page */
.how-row { display: flex; gap: 12px; align-items: center; }
.how-row p { margin: 0; font-size: 14px; color: #c9ceda; line-height: 1.45; }
.how-fig { position: relative; flex: none; width: 84px; height: 70px; padding: 0; border-radius: 10px; background: var(--card2); overflow: hidden; }
.how-fig .fg { position: absolute; inset: 0; }
.how-fig .play { position: absolute; right: 4px; bottom: 3px; font-size: 9px; font-style: normal; color: #c9ceda; background: rgba(0,0,0,.45); border-radius: 6px; padding: 2px 5px; }
#how-anim.pk-fig { margin-top: 12px; }
a.sess { display: block; }
.sess .row .small { font-weight: 400; }

/* finish summary */
.sum { padding: 4px 16px 14px; }
.sum-top { text-align: center; padding: 6px 0 14px; }
.sum-ic { font-size: 44px; line-height: 1.1; }
.sum-top b { display: block; font-size: 21px; margin-top: 6px; }
.sum-top span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.sum-n { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin-bottom: 14px; }
.sum-n div { background: var(--card); border-radius: 12px; padding: 10px; text-align: center; }
.sum-n b { display: block; font-size: 19px; }
.sum-n span { font-size: 12px; color: var(--muted); }
.sum-prs { display: grid; gap: 8px; margin-bottom: 14px; }
.pr { background: #2a1d12; border: 1px solid #4a2f1a; border-radius: 12px; padding: 10px 12px; }
.pr b { display: block; }
.pr span { display: block; font-size: 13.5px; color: #f3c9a8; margin-top: 2px; }

/* rest timer: countdown pill */
#rest { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: 99px; padding: 5px; display: flex; align-items: center; gap: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.5); z-index: 6; }
#rest .rt { min-width: 92px; text-align: center; font-variant-numeric: tabular-nums; font-size: 16px; }
#rest button { background: rgba(0,0,0,.16); color: inherit; min-height: 38px; min-width: 44px; padding: 0 10px; border-radius: 99px; font-weight: 700; font-size: 14px; }
#rest button[data-x] { min-width: 38px; }
#rest.over { background: var(--ok); color: #06210f; }
