
:root{
  --bg:#0d0f12; --panel:#171a1f; --panel2:#20242b; --text:#f5f7fa; --muted:#a8afb9;
  --line:#343a43; --blue:#3b82f6; --green:#22c55e; --amber:#f59e0b; --red:#ef4444;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
body{padding-bottom:92px}
button,input,select,textarea{font:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
.topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:calc(14px + env(safe-area-inset-top)) 16px 12px;background:rgba(13,15,18,.95);backdrop-filter:blur(16px);border-bottom:1px solid #23272d}
h1{font-size:27px;margin:0}.subtitle{font-size:12px;color:var(--muted);margin-top:2px}
.iconBtn{width:42px;height:42px;border-radius:14px;border:1px solid var(--line);background:var(--panel2);color:white;font-weight:700}
#screen{max-width:720px;margin:auto;padding:15px 14px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:19px;padding:17px;margin-bottom:13px}
.card h2,.card h3{margin-top:0}.muted{color:var(--muted)}.small{font-size:13px}.tiny{font-size:12px}
.hero{font-size:24px;font-weight:800}.phase{font-size:16px;font-weight:700;color:#9ec5ff}
.btn{border:0;border-radius:14px;padding:14px 16px;background:var(--panel2);color:white;font-weight:800}
.btn.primary{background:var(--blue)}.btn.green{background:var(--green);color:#06210e}.btn.amber{background:var(--amber);color:#261700}.btn.red{background:var(--red)}
.btn.full{width:100%}.btnRow{display:grid;grid-template-columns:1fr 1fr;gap:9px}.btnRow3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.blockRow{display:flex;align-items:flex-start;gap:11px;padding:11px 0;border-bottom:1px solid #2b3037}.blockRow:last-child{border-bottom:0}
.minutes{width:34px;font-weight:800;font-variant-numeric:tabular-nums}.grow{flex:1}.ratingDot{font-size:18px}
.rule{border-left:4px solid var(--blue);padding-left:12px}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);padding:7px 6px calc(7px + env(safe-area-inset-bottom));background:rgba(18,21,25,.96);backdrop-filter:blur(16px);border-top:1px solid #2c3138}
.tab{background:transparent;border:0;color:#98a0aa;padding:10px 3px;font-size:12px;font-weight:800}.tab.active{color:white;background:#263142;border-radius:11px}
.progressTrack{height:9px;background:#252a31;border-radius:999px;overflow:hidden}.progressFill{height:100%;background:var(--green)}
.instruction{font-size:18px;line-height:1.4}.jogger{background:#101318;border-left:4px solid var(--blue);border-radius:10px;padding:12px 13px;margin:12px 0}
.checks{padding:0;margin:10px 0 0;list-style:none}.checks li{padding:8px 0;border-bottom:1px solid #2a2f36}.checks li:last-child{border-bottom:0}
.timer{font-size:52px;font-weight:800;text-align:center;font-variant-numeric:tabular-nums;margin:8px 0}
textarea,input,select{width:100%;background:#0f1216;color:white;border:1px solid var(--line);border-radius:12px;padding:12px}
textarea{min-height:88px;resize:vertical}.label{font-size:12px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.scoreBtn.selected.good{background:var(--green);color:#04210d}.scoreBtn.selected.work{background:var(--amber);color:#201300}.scoreBtn.selected.fail{background:var(--red)}
.pill{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:900}.pill.good{background:#123d24;color:#6ee7a0}.pill.work{background:#4b3507;color:#ffd37a}.pill.fail{background:#4e1717;color:#ff9292}.pill.none{background:#2c3138;color:#bcc3cc}
.metricGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.metric{background:#111419;border:1px solid #2c3138;border-radius:14px;padding:12px;text-align:center}.metric b{font-size:25px}
.historyItem{padding:11px 0;border-bottom:1px solid #2a2f36}.historyItem:last-child{border-bottom:0}
.checkRow{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid #2a2f36}.checkRow:last-child{border-bottom:0}.checkbox{font-size:23px;background:none;border:0;color:white;padding:0}
.modal{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.72);display:flex;align-items:flex-end;justify-content:center}.modal.hidden,.hidden{display:none!important}
.modalCard{width:100%;max-width:720px;max-height:88vh;overflow:auto;background:#15191e;border:1px solid #343a43;border-radius:24px 24px 0 0;padding:16px 16px calc(24px + env(safe-area-inset-bottom))}
.modalHead{display:flex;justify-content:space-between;align-items:center}.modalHead h2{margin:0}
.divider{height:1px;background:#2c3138;margin:14px 0}.warning{color:#ffd36a}.success{color:#7ce8a7}
.phaseBlock{padding:11px 0;border-bottom:1px solid #2a2f36}.phaseBlock:last-child{border-bottom:0}
.badge{font-size:11px;font-weight:900;background:#20324d;color:#9fc6ff;padding:4px 7px;border-radius:999px}
a{color:#9cc4ff}

.testBanner{
  position:sticky;
  top:81px;
  z-index:19;
  max-width:720px;
  margin:0 auto;
  padding:9px 14px;
  background:#7c2d12;
  color:#fff7ed;
  border-bottom:1px solid #f59e0b;
  border-top:1px solid #f59e0b;
  text-align:center;
  font-size:12px;
  font-weight:900;
  letter-spacing:.02em;
}
