:root { --ink:#17312b; --muted:#61736d; --paper:#f6f4ee; --card:#fffdf8; --line:#d8ded8; --accent:#d96138; --green:#2f6b58; --soft:#e7efe9; --warning:#f9edd2; --shadow:0 14px 35px rgba(22,48,41,.10); }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font:16px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font:inherit; }
button { border:0; border-radius:12px; cursor:pointer; min-height:48px; padding:12px 16px; font-weight:750; }
button:focus-visible, input:focus-visible, select:focus-visible { outline:3px solid #eea789; outline-offset:2px; }
.app-shell { max-width:680px; min-height:100dvh; margin:auto; padding:24px 18px 40px; }
.topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; }
.brand { font-family:Georgia, serif; font-size:1.6rem; letter-spacing:-.04em; }
.brand span { color:var(--accent); }
.eyebrow { color:var(--green); font-size:.74rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; margin:0 0 7px; }
h1,h2,h3,p { margin-top:0; } h1 { font:700 clamp(2.1rem, 7vw, 3.2rem)/1.03 Georgia, serif; letter-spacing:-.055em; margin-bottom:14px; } h2 { font:700 1.45rem/1.15 Georgia,serif; letter-spacing:-.035em; margin-bottom:10px; } h3 { margin-bottom:4px; font-size:1rem; }
.lead { font-size:1.1rem; color:#40534c; max-width:53ch; }
.card { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:20px; box-shadow:var(--shadow); margin:18px 0; }
.workout-card { border-top:5px solid var(--accent); }
.meta { display:flex; flex-wrap:wrap; gap:8px; color:var(--muted); font-size:.92rem; }
.pill { display:inline-flex; align-items:center; background:var(--soft); color:var(--green); border-radius:999px; padding:5px 10px; font-weight:700; font-size:.81rem; }
.actions { display:grid; gap:10px; margin-top:20px; } .actions.inline { display:flex; flex-wrap:wrap; } .actions.inline button { flex:1 1 170px; }
.primary { color:white; background:var(--ink); } .primary:hover { background:#285146; } .secondary { background:#e9e8e2; color:var(--ink); } .text { padding:5px; min-height:auto; color:var(--green); background:transparent; }
.notice { background:var(--warning); border-radius:12px; padding:12px 14px; color:#654d1f; font-size:.9rem; }
.exercise-row { padding:15px 0; border-bottom:1px solid var(--line); display:flex; gap:12px; } .exercise-row:last-child { border:0; padding-bottom:0; } .number { flex:0 0 28px; height:28px; display:grid; place-items:center; border-radius:50%; background:var(--soft); color:var(--green); font-size:.83rem; font-weight:800; }
.exercise-row p { margin:2px 0 0; color:var(--muted); font-size:.9rem; }
.progress { height:8px; border-radius:99px; overflow:hidden; background:#e1e6df; margin:13px 0 27px; }.progress i { display:block; height:100%; background:var(--accent); transition:width .25s; }
.timer { font:700 3.7rem/1 Georgia,serif; letter-spacing:-.07em; margin:18px 0; }.timer-label { color:var(--muted); font-weight:700; }
.set-card { background:#f1f5f0; padding:15px; border-radius:14px; margin:18px 0; }.set-card strong { display:block; font-size:1.08rem; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.field { display:grid; gap:5px; color:var(--muted); font-size:.84rem; font-weight:700; }.field input,.field select { border:1px solid #bfcac1; background:white; border-radius:10px; min-height:46px; padding:9px; color:var(--ink); }
.set-dots { display:flex; gap:7px; margin-top:12px; }.set-dot { width:13px; height:13px; border-radius:50%; border:2px solid #aac0b3; }.set-dot.done { background:var(--green); border-color:var(--green); }
.choice { text-align:left; border:1px solid var(--line); background:white; margin:8px 0; width:100%; }.choice small { display:block; color:var(--muted); font-weight:500; margin-top:3px; }.choice:hover { border-color:var(--green); }
.nav { position:sticky; bottom:0; display:flex; gap:5px; background:rgba(246,244,238,.92); padding:12px 0 2px; backdrop-filter:blur(8px); }.nav button { flex:1; min-height:42px; padding:8px; background:transparent; color:var(--muted); font-size:.8rem; }.nav button.active { color:var(--green); background:var(--soft); }
.empty { padding:26px 0; color:var(--muted); text-align:center; }.history-item { padding:14px 0; border-bottom:1px solid var(--line); }.history-item:last-child { border:0; }.history-item p { color:var(--muted); font-size:.9rem; margin:4px 0 0; }
@media (min-width:700px) { .app-shell { padding-top:40px; } .actions { grid-template-columns:1fr 1fr; } .actions .primary:first-child:last-child { grid-column:1/-1; } }
