:root {
  --lime: #C6F135;
  --lime-dim: #1f2d00;
  --lime-mid: #3a5200;
  --bg: #0a0a0a;
  --bg1: #111111;
  --bg2: #1a1a1a;
  --bg3: #222222;
  --bg4: #2a2a2a;
  --border: #252525;
  --border2: #333;
  --text: #ffffff;
  --text2: #888888;
  --text3: #7a7a7a;
  --danger: #ff4545;
  --warning: #ff9f0a;
  --gold: #FFD700;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: #000; overflow: hidden; }
body { font-family: 'Barlow', sans-serif; color: var(--text); }
#app { max-width: 420px; margin: 0 auto; height: 100vh; height: 100dvh; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; position: relative; padding-bottom: env(safe-area-inset-bottom); }
.screen { display: none; flex-direction: column; flex: 1; overflow: hidden; }
.screen.active { display: flex; }
.topbar { background: var(--bg1); padding: 12px 18px 14px; flex-shrink: 0; border-bottom: 1px solid var(--border); }
.topbar-row { display: flex; justify-content: space-between; align-items: center; }
.page-title { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 900; color: var(--text); letter-spacing: -0.5px; line-height: 1; }
.page-sub { font-size: 12px; color: var(--text3); margin-top: 4px; font-weight: 500; }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 14px; }
.scroll::-webkit-scrollbar { display: none; }
.tabbar { background: var(--bg1); border-top: 1px solid var(--border); display: flex; padding: 10px 0 16px; flex-shrink: 0; }
.tab-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; background: none; border: none; padding: 0; }
.tab-btn svg { width: 22px; height: 22px; }
.tab-btn span { font-size: 9px; font-weight: 700; color: var(--text3); letter-spacing: 0.8px; text-transform: uppercase; }
.tab-btn.active span { color: var(--lime); }
.sec-lbl { font-size: 10px; font-weight: 700; color: var(--text3); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; margin-top: 4px; }
.streak-card { background: var(--lime); border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.streak-num { font-family: 'Barlow Condensed', sans-serif; font-size: 48px; font-weight: 900; color: #1a2200; line-height: 1; letter-spacing: -2px; min-width: 54px; }
.streak-label { font-size: 14px; font-weight: 800; color: #1a2200; }
.streak-sub { font-size: 11px; color: #3a5200; margin-top: 3px; font-weight: 600; }
.streak-bolt { font-size: 30px; margin-left: auto; }
.rcard { background: var(--bg2); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 8px; border: 1px solid var(--border); cursor: pointer; -webkit-user-select: none; }
.rcard:active { background: var(--bg3); }
.rcard-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.rcard-name { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.rcard-meta { font-size: 12px; color: var(--text3); font-weight: 500; }
.rcard-bar-bg { height: 3px; background: var(--bg4); border-radius: 2px; margin-top: 10px; }
.rcard-bar-fill { height: 3px; background: var(--lime); border-radius: 2px; transition: width 0.4s; }
.rcard-actions { display: flex; gap: 6px; margin-top: 10px; }
.act-btn { flex: 1; background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--text3); padding: 7px; cursor: pointer; font-family: 'Barlow', sans-serif; text-align: center; }
.act-btn:active { opacity: 0.7; }
.act-btn.del { color: var(--danger); border-color: #3a1010; }
.pill { display: inline-flex; align-items: center; border-radius: 20px; font-size: 10px; font-weight: 700; padding: 4px 10px; }
.pill-lime { background: var(--lime); color: #1a2200; }
.pill-outline { border: 1.5px solid var(--lime); color: var(--lime); background: transparent; }
.pill-dim { background: var(--bg4); color: var(--text3); }
.pill-warn { background: #2a1f00; color: var(--warning); }
.fab { position: absolute; bottom: 82px; right: 18px; width: 52px; height: 52px; background: var(--lime); border-radius: 26px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; border: none; transition: transform 0.15s; }
.fab:active { transform: scale(0.93); }
.fab svg { width: 24px; height: 24px; stroke: #1a2200; }
.excard { background: var(--bg2); border-radius: var(--radius); padding: 13px 14px; margin-bottom: 8px; border: 1px solid var(--border); transition: border-color 0.2s; }
.excard.active-ex { border-color: var(--lime); border-width: 1.5px; }
.excard-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.excard-name { font-size: 14px; font-weight: 700; color: var(--text); }
.sets-row { display: flex; gap: 5px; flex-wrap: wrap; }
.set-chip { background: var(--bg3); border-radius: 8px; padding: 5px 10px; font-size: 11px; font-weight: 600; color: var(--text3); cursor: pointer; border: 1px solid transparent; transition: all 0.15s; -webkit-user-select: none; }
.set-chip.done { background: var(--lime-dim); color: var(--lime); border-color: var(--lime-mid); }
.set-chip.active-chip { border-color: var(--lime); color: var(--lime); background: transparent; }
.set-chip.pr-chip { background: #2a1f00; color: var(--gold); border-color: #5a4000; }
.set-chip:active { opacity: 0.7; }
.prog-bar-bg { background: var(--bg3); height: 4px; border-radius: 2px; margin-top: 10px; }
.prog-bar-fill { height: 4px; background: var(--lime); border-radius: 2px; transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }
.hist-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.date-box { background: var(--bg2); border-radius: var(--radius-xs); width: 40px; text-align: center; padding: 6px 4px; flex-shrink: 0; border: 1px solid var(--border); }
.date-d { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 900; color: var(--text); line-height: 1; }
.date-m { font-size: 9px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 1px; }
.hist-info { flex: 1; min-width: 0; }
.hist-title { font-size: 13px; font-weight: 700; color: var(--text); }
.hist-sub { font-size: 11px; color: var(--text3); font-weight: 500; margin-top: 2px; }
.hist-note { font-size: 11px; color: var(--text3); font-style: italic; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-check { width: 28px; height: 28px; background: var(--lime-dim); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hist-check svg { width: 14px; height: 14px; stroke: var(--lime); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.stat-box { background: var(--bg2); border-radius: var(--radius-sm); padding: 10px 8px; text-align: center; border: 1px solid var(--border); }
.stat-val { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 900; color: var(--lime); letter-spacing: -0.5px; line-height: 1; }
.stat-lbl { font-size: 9px; color: var(--text3); font-weight: 700; margin-top: 3px; letter-spacing: 0.5px; text-transform: uppercase; }
.cal-row { display: flex; gap: 4px; margin-bottom: 14px; }
.cal-day { flex: 1; background: var(--bg2); border-radius: 8px; padding: 7px 2px; text-align: center; border: 1px solid var(--border); }
.cal-day.trained { background: var(--lime-dim); border-color: var(--lime-mid); }
.cal-day.today { border: 1.5px solid var(--lime); }
.cal-day-lbl { font-size: 10px; font-weight: 700; color: var(--text3); }
.cal-day.trained .cal-day-lbl { color: var(--lime); }
.cal-day.today .cal-day-lbl { color: var(--text); }
.cal-dot { width: 4px; height: 4px; background: var(--lime); border-radius: 2px; margin: 3px auto 0; }
.modal-overlay { display: none; position: absolute; inset: 0; background: rgba(0,0,0,0.8); z-index: 100; align-items: flex-end; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg1); border-radius: 20px 20px 0 0; width: 100%; padding: 20px 20px 32px; border-top: 1px solid var(--border2); animation: slideUp 0.25s ease; max-height: 88vh; overflow-y: auto; }
.modal::-webkit-scrollbar { display: none; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-handle { width: 36px; height: 4px; background: var(--bg4); border-radius: 2px; margin: 0 auto 18px; }
.modal-title { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 900; color: var(--text); margin-bottom: 16px; letter-spacing: -0.3px; }
.input-group { margin-bottom: 12px; }
.input-lbl { font-size: 11px; font-weight: 700; color: var(--text3); letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 6px; }
.finput { width: 100%; background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius-sm); color: var(--text); font-size: 15px; font-family: 'Barlow', sans-serif; font-weight: 500; padding: 11px 14px; outline: none; transition: border-color 0.15s; }
.finput:focus { border-color: var(--lime); }
.finput-row { display: flex; gap: 8px; }
.finput-row .input-group { flex: 1; }
.btn-lime { width: 100%; background: var(--lime); color: #1a2200; font-family: 'Barlow Condensed', sans-serif; font-size: 17px; font-weight: 800; letter-spacing: 0.5px; border: none; border-radius: var(--radius-sm); padding: 14px; cursor: pointer; transition: opacity 0.15s, transform 0.1s; }
.btn-lime:active { opacity: 0.85; transform: scale(0.98); }
.btn-ghost { width: 100%; background: transparent; color: var(--text3); font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 600; border: 1px solid var(--border2); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; margin-top: 8px; transition: background 0.15s; }
.btn-ghost:active { background: var(--bg3); }
.btn-danger { background: transparent; color: var(--danger); font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 600; border: 1px solid #3a1010; border-radius: var(--radius-xs); padding: 7px 12px; cursor: pointer; }
.btn-danger:active { background: #2a0808; }
.back-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--lime); font-size: 13px; font-weight: 700; padding: 0; }
.back-btn svg { width: 18px; height: 18px; stroke: var(--lime); }
.finish-btn { background: var(--lime); color: #1a2200; font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 800; border: none; border-radius: 10px; padding: 9px 16px; cursor: pointer; }
.finish-btn:active { opacity: 0.8; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; text-align: center; }
.empty-icon { font-size: 40px; margin-bottom: 14px; opacity: 0.5; }
.empty-title { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800; color: var(--text2); margin-bottom: 6px; }
.empty-sub { font-size: 13px; color: var(--text3); font-weight: 500; }
.serie-edit-row { display: flex; align-items: center; gap: 8px; background: var(--bg2); border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--border); }
.serie-num { font-size: 11px; font-weight: 700; color: var(--text3); min-width: 22px; }
.serie-input { flex: 1; background: var(--bg3); border: 1px solid var(--border2); border-radius: 7px; color: var(--text); font-size: 13px; font-family: 'Barlow', sans-serif; font-weight: 600; padding: 6px 10px; outline: none; text-align: center; }
.serie-input:focus { border-color: var(--lime); }
.serie-sep { font-size: 11px; color: var(--text3); font-weight: 600; }
.serie-del { background: none; border: none; cursor: pointer; padding: 4px; color: var(--text3); font-size: 16px; line-height: 1; }
.serie-del:active { color: var(--danger); }
.toast { position: absolute; top: 16px; left: 50%; transform: translateX(-50%) translateY(-10px); background: var(--lime); color: #1a2200; font-size: 13px; font-weight: 700; padding: 10px 20px; border-radius: 20px; z-index: 300; opacity: 0; transition: opacity 0.3s, transform 0.3s; white-space: nowrap; pointer-events: none; max-width: 90%; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.pr { background: var(--gold); color: #1a1000; }
.toast.achievement { background: #1a1500; color: var(--gold); border: 1.5px solid var(--gold); }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.detail-exercises-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.add-ex-btn { background: var(--lime-dim); color: var(--lime); border: none; border-radius: 7px; font-size: 11px; font-weight: 700; padding: 5px 10px; cursor: pointer; }
.add-ex-btn:active { opacity: 0.7; }
.workout-prog-labels { display: flex; justify-content: space-between; margin-bottom: 5px; margin-top: 10px; }
.workout-prog-labels span { font-size: 11px; font-weight: 600; color: var(--text3); }
.workout-prog-labels span:last-child { color: var(--lime); font-weight: 700; }
.avatar { width: 36px; height: 36px; background: var(--lime-dim); border-radius: 18px; border: 1.5px solid var(--lime-mid); display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 900; color: var(--lime); flex-shrink: 0; cursor: pointer; }
.greeting-lbl { font-size: 12px; color: var(--text3); font-weight: 500; margin-bottom: 2px; }


.timer-btn.primary { background: var(--lime); color: #1a2200; border-color: var(--lime); }
.timer-btn:active { opacity: 0.7; }

/* PR BANNER */
.pr-banner { background: #2a1f00; border: 1.5px solid #5a4000; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.pr-banner-title { font-size: 13px; font-weight: 800; color: var(--gold); }
.pr-banner-sub { font-size: 11px; color: #8a6a00; margin-top: 2px; font-weight: 600; }

/* MEDALS */
.medals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.medal-card { background: var(--bg2); border-radius: var(--radius-sm); padding: 12px 14px; border: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.medal-card.earned.gold { border-color: #5a4000; background: #1a1500; }
.medal-card.earned.silver { border-color: #404040; background: #141414; }
.medal-card.earned.bronze { border-color: #4a2800; background: #160e00; }
.medal-icon { font-size: 26px; flex-shrink: 0; opacity: 0.25; }
.medal-card.earned .medal-icon { opacity: 1; }
.medal-name { font-size: 12px; font-weight: 700; color: var(--text3); }
.medal-card.earned .medal-name { color: var(--text); }
.medal-desc { font-size: 10px; color: var(--text3); margin-top: 2px; font-weight: 500; line-height: 1.3; }

/* NOTES */
.notes-area { width: 100%; background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-family: 'Barlow', sans-serif; padding: 12px 14px; outline: none; resize: none; min-height: 80px; line-height: 1.5; }
.notes-area:focus { border-color: var(--lime); }

/* EXPORT */
.export-row { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; margin-bottom: 8px; }
.export-row:active { background: var(--bg3); }
.export-row-icon { font-size: 20px; }
.export-row-info { flex: 1; }
.export-row-title { font-size: 14px; font-weight: 700; color: var(--text); }
.export-row-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }
/* SETTINGS ROWS */
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; cursor: pointer; }
.settings-row:active { background: var(--bg3); }
.settings-row-left { display: flex; align-items: center; gap: 12px; }
.settings-row-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.settings-row-title { font-size: 14px; font-weight: 600; color: var(--text); }
.settings-row-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }
.settings-row-arrow { font-size: 20px; color: var(--text3); }

.orm-result-box { background: var(--lime); border-radius: var(--radius); padding: 18px; text-align: center; margin-bottom: 16px; }
.orm-result-num { font-family: 'Barlow Condensed', sans-serif; font-size: 56px; font-weight: 900; color: #1a2200; line-height: 1; letter-spacing: -2px; }
.orm-result-lbl { font-size: 13px; font-weight: 700; color: #3a5200; margin-top: 4px; }
.orm-result-empty { background: var(--bg2); border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 16px; border: 1px solid var(--border); }
.orm-result-empty-txt { font-size: 13px; color: var(--text3); font-weight: 500; }
.orm-table { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.orm-table th { font-size: 10px; font-weight: 700; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--border); }
.orm-table td { font-size: 13px; padding: 9px 10px; border-bottom: 1px solid var(--border); color: var(--text2); font-weight: 500; }
.orm-table tr:last-child td { border-bottom: none; }
.orm-table td:last-child { text-align: right; font-weight: 700; color: var(--text); }
.orm-table tr.orm-hl td { color: var(--lime); font-weight: 800; }
.orm-history-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.orm-history-item:last-child { border-bottom: none; }
.orm-history-name { font-size: 13px; font-weight: 700; color: var(--text); }
.orm-history-val { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 900; color: var(--lime); }
.orm-tab-row { display: flex; gap: 6px; margin-bottom: 16px; }
.orm-tab { flex: 1; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 9px; font-size: 12px; font-weight: 700; color: var(--text3); cursor: pointer; text-align: center; font-family: 'Barlow', sans-serif; }
.orm-tab.active { background: var(--lime-dim); border-color: var(--lime-mid); color: var(--lime); }
.orm-tab:active { opacity: 0.7; }

html { color-scheme: dark; }
body { font-family: 'Barlow', 'Segoe UI', sans-serif; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
.page-title, .modal-title, .streak-num, .stat-val, .orm-result-num, .date-d, .rcard-name, .orm-history-val, .btn-lime {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
button { font-family: inherit; cursor: pointer; }
button.set-chip { font: inherit; appearance: none; }
.rcard-open .rcard-head { display: flex; }
.rcard-open .rcard-meta, .rcard-bar-bg, .rcard-bar-fill { display: block; }
.stat-val { overflow: hidden; text-overflow: ellipsis; }
.settings-copy { display: flex; flex-direction: column; min-width: 0; }
button:disabled { opacity: 0.45; cursor: default; }
.finput, .serie-input, .notes-area, select.finput { font-size: 16px; }
.finput::placeholder, .serie-input::placeholder, .notes-area::placeholder { color: #6f6f6f; }
select.finput { appearance: none; }
.input-group { display: block; }
.is-hidden { display: none !important; }
.rcard-name, .excard-name, .hist-title, .ex-pick-name span, .modal-title { overflow-wrap: anywhere; }
.hist-info { min-width: 0; }
.toast { top: auto; bottom: calc(108px + env(safe-area-inset-bottom)); white-space: normal; width: max-content; max-width: calc(100% - 28px); }
.rcard-open { display: block; width: 100%; background: none; border: none; color: inherit; text-align: left; padding: 0; }
.excard-head { gap: 8px; align-items: flex-start; }
.excard-actions { display: flex; gap: 4px; flex-shrink: 0; }
.icon-btn { background: var(--bg3); border: 1px solid var(--border2); color: var(--text2); border-radius: 8px; min-width: 36px; height: 34px; padding: 0 8px; font-size: 13px; font-weight: 800; }
.icon-btn.danger { color: var(--danger); border-color: #3a1010; }
.icon-btn:disabled { opacity: 0.35; }
button.settings-row, button.export-row { width: 100%; font: inherit; color: inherit; text-align: left; background: none; border: none; }
.continue-banner, .broken-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg2); border: 1px solid var(--lime-mid); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.broken-banner { border-color: #5a4000; align-items: flex-start; }
.continue-title { font-size: 14px; font-weight: 800; }
.continue-sub { font-size: 12px; color: var(--text2); margin-top: 2px; }
.chip-row { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 0; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--border2); background: var(--bg2); color: var(--text2); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 7px 11px; }
.chip[aria-pressed="true"] { background: var(--lime); color: #1a2200; border-color: var(--lime); }
#modal-picker { z-index: 160; }
#modal-picker.open { align-items: stretch; }
#modal-custom { z-index: 180; }
.picker-panel { background: var(--bg); width: 100%; height: 100%; display: flex; flex-direction: column; min-height: 0; }
.picker-panel .topbar, .picker-footer { flex-shrink: 0; }
.picker-footer { padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg1); display: flex; flex-direction: column; gap: 8px; }
.defaults-row { display: flex; gap: 8px; }
.defaults-row label { flex: 1; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text3); }
.defaults-row input { margin-top: 6px; }
.ex-pick { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; color: inherit; }
.ex-pick[aria-pressed="true"] { border-color: var(--lime); background: #141a00; }
.check { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--border2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; color: transparent; }
.ex-pick[aria-pressed="true"] .check { background: var(--lime); border-color: var(--lime); color: #1a2200; }
.ex-pick-body { flex: 1; min-width: 0; }
.ex-pick-name { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 14px; font-weight: 700; }
.ex-pick-alias { font-size: 11px; font-weight: 600; color: var(--text3); flex-shrink: 0; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-pick-meta { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--text3); }
.routine-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.routine-chip { background: var(--lime-dim); color: var(--lime); border: 1px solid var(--lime-mid); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.empty-inline { font-size: 13px; color: var(--text3); margin-bottom: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.scroll { overscroll-behavior: contain; }
.tabbar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.modal { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.fab { bottom: calc(78px + env(safe-area-inset-bottom)); }
#app { padding-bottom: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
@media (min-width: 800px) {
  body { display: flex; align-items: center; justify-content: center; }
  #app { width: 100%; height: min(920px, 100dvh); border: 1px solid #222; border-radius: 28px; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
}
@media (max-width: 360px) {
  .page-title { font-size: 24px; }
  .stat-val { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.last-time, .suggest-line { font-size: 12px; font-weight: 600; margin: 2px 0 8px; line-height: 1.35; }
.last-time { color: var(--text2); }
.suggest-line { color: var(--lime); }
.rest-bar { margin-top: 10px; background: #141a00; border: 1px solid var(--lime-mid); border-radius: 12px; padding: 8px 10px 10px; }
.rest-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
#rest-label { font-size: 12px; font-weight: 700; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rest-clock { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-size: 26px; font-weight: 800; color: var(--lime); line-height: 1; }
.rest-track { height: 4px; background: var(--bg4); border-radius: 2px; margin: 6px 0 8px; overflow: hidden; }
#rest-fill { height: 4px; width: 100%; background: var(--lime); border-radius: 2px; }
.rest-actions { display: flex; gap: 6px; }
.rest-actions button { flex: 1; background: var(--bg3); color: var(--text); border: 1px solid var(--border2); border-radius: 8px; padding: 8px 4px; font-size: 12px; font-weight: 700; }
.rest-mute { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.rest-mute input { width: 18px; height: 18px; accent-color: var(--lime); }
