/* Placeholder look for v0 (bones). The real design pass comes later with Rachel. */
:root { --bg: #f4f2ee; --card: #fff; --ink: #1d1d1b; --sub: #6b6a66; --line: #e2dfd8; --accent: #1f2a24; --go: #2f6b4f; --done: #e6f1ea; --pr: #a8641a; --danger: #a33a2c; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.4 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; }
button, input, .btn { font: inherit; color: inherit; }
button, .btn { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-height: 40px; cursor: pointer; }
input { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; width: 100%; min-width: 0; }
main { padding: 12px 14px 150px; max-width: 640px; margin: 0 auto; }
h1 { font-size: 20px; margin: 0; flex: 1; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--sub); margin: 22px 2px 8px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 10px) 14px 10px; background: var(--bg); border-bottom: 1px solid var(--line); }
.who { font-size: 13px; color: var(--sub); }
.title-in { font-weight: 600; flex: 1; border-color: transparent; background: transparent; padding: 4px; }
.clock { font-variant-numeric: tabular-nums; color: var(--sub); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 8px 0; display: block; width: 100%; text-align: left; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; margin-top: 8px; }
.gap { gap: 10px; margin-top: 16px; }
.grow { flex: 1; min-width: 0; }
.sub { color: var(--sub); font-size: 13px; }
.note { font-size: 13px; margin-top: 2px; }
.center { text-align: center; }
.big { display: block; width: 100%; min-height: 52px; font-weight: 600; background: var(--accent); color: #fff; border: 0; border-radius: 14px; margin: 10px 0; }
.big.ghost { background: transparent; color: var(--accent); border: 1px dashed var(--sub); }
.go { background: var(--go); color: #fff; border: 0; font-weight: 600; }
.link { background: none; border: 0; padding: 4px 0; min-height: 0; color: var(--accent); text-align: left; }
.danger-link { background: none; border: 0; color: var(--danger); display: block; margin: 18px auto; }
.banner { width: 100%; background: #fbeed9; border-color: #e7cf9f; margin-bottom: 6px; }
.list span:last-child { color: var(--sub); font-size: 22px; }
.lbl { display: block; font-size: 13px; color: var(--sub); margin: 6px 0; }
.lbl input { margin-top: 3px; color: var(--ink); font-size: 16px; }
.grid { display: grid; grid-template-columns: 70px 1fr 90px; gap: 8px; }

/* Active workout */
.ex-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.demo { width: 72px; height: 72px; padding: 0; overflow: hidden; flex: none; border-radius: 12px; background: #fff; }
.demo img { width: 100%; height: 100%; object-fit: cover; }
.demo.none { font-size: 11px; color: var(--sub); }
.set { display: grid; grid-template-columns: 22px 1fr 64px 64px 44px; gap: 6px; align-items: center; padding: 4px 6px; border-radius: 8px; margin: 2px -6px; }
.set:has(.sw) { grid-template-columns: 22px 1fr 64px 64px 56px 44px; }
.set.head { font-size: 12px; color: var(--sub); }
.set.done { background: var(--done); }
.set .n { color: var(--sub); text-align: center; font-size: 14px; }
.set .prev { color: var(--sub); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fld { display: flex; flex-direction: column; align-items: stretch; text-align: center; }
.fld input { text-align: center; font-size: 17px; padding: 7px 4px; }
.fld small { display: none; }
.chk { min-height: 40px; padding: 0; font-size: 18px; }
.set.done .chk { background: var(--go); color: #fff; border-color: var(--go); }
.sw { min-height: 40px; padding: 0 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.sw.on { background: var(--pr); color: #fff; border-color: var(--pr); }
.pr { grid-column: 2 / -1; font-size: 12px; font-weight: 600; color: var(--pr); }
.ex-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ex-tools button { font-size: 14px; min-height: 36px; padding: 4px 10px; }

.rest { position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 58px); z-index: 6; display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--accent); color: #fff; overflow: hidden; }
.rest .fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.14); transition: width .25s linear; }
.rest span { flex: 1; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; position: relative; }
.rest button { position: relative; background: transparent; color: #fff; border-color: rgba(255,255,255,.4); min-height: 36px; }
.rest.over { background: var(--go); }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { border: 0; border-radius: 0; background: none; min-height: 56px; font-size: 13px; color: var(--sub); }
.tabs button.on { color: var(--accent); font-weight: 700; }

/* Records */
.goal .bar { position: relative; height: 14px; background: var(--line); border-radius: 7px; margin: 10px 0 8px; }
.goal .bar div { height: 100%; background: var(--go); border-radius: 7px; }
.goal .bar i { position: absolute; top: -3px; width: 3px; height: 20px; background: var(--ink); border-radius: 2px; }
.sets { margin: 6px 0 0; padding-left: 22px; }
.prs { padding-left: 30px; }
.demo-wide { width: 100%; padding: 0; overflow: hidden; background: #fff; }
.demo-wide img { width: 100%; display: block; }

/* Overlays */
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(20,20,18,.45); display: flex; align-items: flex-end; }
.sheet { background: var(--bg); width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0; padding: 14px 14px calc(env(safe-area-inset-bottom) + 14px); display: flex; flex-direction: column; }
.pick-list { overflow-y: auto; margin-top: 10px; }
.pick { display: flex; justify-content: space-between; width: 100%; text-align: left; margin: 4px 0; gap: 10px; }
.demo-full { background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; }
.demo-full img { width: 100%; max-width: 560px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 130px; z-index: 30; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 20px; font-size: 14px; }
input::placeholder { color: #c4c1b9; }
.first { padding-top: 22vh; text-align: center; }
.first h1 { font-size: 34px; }
