/* ShowStrong web — mirrors the native (Compose) design system 1:1.
   Tokens are the native theme: Volt #CCFF00 on near-black, one rationed accent. */
:root {
  --volt: #CCFF00;
  --on-volt: #0B0B0C;
  --bg: #0B0B0C;
  --surface: #161617;
  --surface-2: #202022;
  --on-bg: #F4F4F2;
  --muted: #9A9A93;
  --amber: #E0A100;
  --red: #E0563B;
  --nav-h: 64px;
  --maxw: 440px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: #050506;
  color: var(--on-bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

/* phone-width column, centered for desktop UI dev */
#app {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px #1c1c1e, 0 24px 80px rgba(0,0,0,.6);
}
#screen { flex: 1; overflow-y: auto; padding-bottom: calc(var(--nav-h) + 20px); }
.scr { padding: 16px 20px 32px; display: flex; flex-direction: column; gap: 14px; }

/* typography */
.eyebrow { text-transform: uppercase; color: var(--muted); font-size: 12px; letter-spacing: 2px; font-weight: 500; }
.h1 { font-size: 30px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.seclabel { text-transform: uppercase; color: var(--muted); font-size: 11px; letter-spacing: 1.2px; font-weight: 700; margin-top: 4px; }
.muted { color: var(--muted); }
.volt { color: var(--volt); }

/* cards / surfaces */
.card { background: var(--surface); border-radius: 16px; padding: 16px; }
.card.tight { padding: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; }
.gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; }
.grow { flex: 1; }
.pill { display: inline-block; border-radius: 20px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.pill.volt { background: var(--volt); color: var(--on-volt); }
.pill.ghost { background: var(--surface); color: var(--volt); }

/* buttons */
.btn { border: 0; cursor: pointer; font-family: inherit; border-radius: 16px; font-weight: 800; font-size: 17px;
  height: 54px; width: 100%; display: flex; align-items: center; justify-content: center; }
.btn.primary { background: var(--volt); color: var(--on-volt); }
.btn.outline { background: var(--bg); color: var(--volt); border: 1.5px solid var(--volt); }
.btn:active { filter: brightness(.92); }
.tbtn { background: none; border: 0; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 15px; color: var(--muted); padding: 8px 6px; }

/* exercise list */
.exrow { padding: 12px 20px; cursor: pointer; border-bottom: 1px solid var(--surface); }
.exrow:hover { background: #101011; }
.exrow .nm { font-size: 16px; font-weight: 600; }
.cathdr { color: var(--volt); font-size: 12px; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; padding: 18px 20px 6px; }
.badge { background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 500; border-radius: 6px; padding: 3px 8px; }
.search { width: 100%; background: var(--surface); border: 1px solid #2a2a2c; color: var(--on-bg); border-radius: 10px;
  padding: 12px 14px; font-family: inherit; font-size: 15px; }
.search:focus { outline: none; border-color: var(--volt); }

/* segmented (readiness etc.) */
.seg { display: flex; gap: 3px; background: var(--bg); border-radius: 8px; padding: 3px; flex: 1; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--muted); font-family: inherit; font-weight: 600;
  font-size: 13px; padding: 8px 4px; border-radius: 6px; cursor: pointer; }
.seg button.on { background: var(--volt); color: var(--on-volt); }

/* bottom nav */
.nav { position: sticky; bottom: 0; height: var(--nav-h); display: flex; background: #0d0d0e; border-top: 1px solid #1c1c1e; }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font-size: 11px; cursor: pointer; }
.nav a.on { color: var(--volt); }
.nav svg { width: 22px; height: 22px; }

.empty { color: var(--muted); font-size: 14px; padding-top: 8px; }

/* nav sits as a flex sibling (not overlapping), so screen needs no bottom gap */
#screen { padding-bottom: 0; }

/* small toggle pills (settings, intake) */
.seg-mini { border: 0; background: var(--surface); color: var(--muted); font-family: inherit; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.seg-mini.on { background: var(--volt); color: var(--on-volt); }
.chip { border: 1px solid var(--muted); background: var(--surface); color: var(--on-bg); font-family: inherit; font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 20px; cursor: pointer; }
.chip.on { background: var(--volt); color: var(--on-volt); border-color: var(--volt); }
.flowrow { display: flex; flex-wrap: wrap; gap: 8px; }
.stepbtn { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--volt); background: var(--bg); color: var(--volt); font-size: 28px; font-weight: 700; cursor: pointer; display: grid; place-items: center; }

/* profile form fields */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { color: var(--muted); font-size: 12px; }
.tin { width: 100%; background: var(--surface); border: 1px solid #2a2a2c; color: var(--on-bg); border-radius: 10px;
  padding: 12px 14px; font-family: inherit; font-size: 15px; }
.tin:focus { outline: none; border-color: var(--volt); }

/* toast */
.toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--surface-2); color: var(--on-bg);
  padding: 10px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.5); z-index: 9;
  opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 80%; text-align: center; }

/* player */
.player { display: flex; flex-direction: column; height: 100%; }
.prow { display: flex; align-items: center; padding: 4px; }
.pbar { height: 6px; background: var(--surface); margin: 0 12px; border-radius: 3px; overflow: hidden; }
.pbar > div { height: 100%; background: var(--volt); transition: width .2s; }
.rail { display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.chipn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: var(--surface); color: var(--muted); flex-shrink: 0; cursor: pointer; }
.chipn.done { background: var(--volt); color: var(--on-volt); }
.chipn.partial, .chipn.passed { background: var(--amber); color: var(--on-volt); }
.chipn.skip { background: transparent; border: 2px solid var(--red); color: var(--red); }
.chipn.cur { background: var(--surface); border: 2.5px solid var(--volt); color: var(--volt); }
.pbody { flex: 1; overflow-y: auto; padding: 4px 20px 12px; display: flex; flex-direction: column; gap: 12px; }
.pfoot { border-top: 1px solid var(--surface); padding: 12px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.cheer { align-self: center; background: var(--volt); color: var(--on-volt); font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 20px; }
.fillbar { flex: 1; height: 14px; border-radius: 7px; background: var(--surface); }
.fillbar.on { background: var(--volt); }
.centerbox { display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: 28px; }
