/* Jump It: the Storm Chaser neumorphic language (Frost for light, Blue Hour for dark).
   Soft raised surfaces, insets for wells, crisp Geist Mono numbers. Hard = coral, easy = blue, rest = green. */

:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #E8EEF4; --surface: #EEF3F8; --bg-hi: #FFFFFF; --bg-lo: #C3CDD8;
  --ink: #14202E; --muted: #536274;
  --hard: #FF6B5A; --hard-ink: #B3392A; --easy: #4F8FE8; --easy-ink: #2D64B5; --rest: #2FA672; --rest-ink: #17704A;
  --accent: var(--hard); --on-accent: #14202E;
  --edge: 1px solid rgba(20, 32, 46, .06);
  --raise: 8px 8px 18px var(--bg-lo), -8px -8px 18px var(--bg-hi);
  --raise-sm: 4px 4px 10px var(--bg-lo), -4px -4px 10px var(--bg-hi);
  --inset: inset 4px 4px 9px var(--bg-lo), inset -4px -4px 9px var(--bg-hi);
  --glow: 0 10px 24px rgba(255, 107, 90, .35);
  --texture: radial-gradient(rgba(20, 32, 46, .05) .8px, transparent 1.2px);
  --radius: 24px; --radius-chip: 16px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121A26; --surface: #172131; --bg-hi: #1C2738; --bg-lo: #0A0F17;
  --ink: #E9F0F7; --muted: #9AA9BA;
  --hard-ink: #FF8A7A; --easy: #5B9BF2; --easy-ink: #8DB8F7; --rest: #3FC88B; --rest-ink: #4FD69C;
  --edge: 1px solid rgba(233, 240, 247, .06);
  --raise: 6px 6px 16px var(--bg-lo), -5px -5px 14px var(--bg-hi), inset 0 1px 0 rgba(255, 255, 255, .04);
  --raise-sm: 3px 3px 8px var(--bg-lo), -3px -3px 8px var(--bg-hi);
  --inset: inset 4px 4px 10px var(--bg-lo), inset -3px -3px 8px var(--bg-hi);
  --glow: 0 10px 28px rgba(255, 107, 90, .45);
  --texture: radial-gradient(rgba(233, 240, 247, .035) .8px, transparent 1.2px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100dvh; background-color: var(--bg); background-image: var(--texture); background-size: 6px 6px;
  color: var(--ink); font-family: Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased; transition: background-color .4s;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -.01em; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 700; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; line-height: 1.45; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.app { max-width: 520px; margin: 0 auto; min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; }
body[data-page="run"] .app, body[data-page="done"] .app, body[data-page="edit"] .app { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

/* ---------- surfaces ---------- */
.card { background: var(--bg); border: var(--edge); border-radius: var(--radius); box-shadow: var(--raise); padding: 16px; }
.card.inset { box-shadow: var(--inset); background: var(--surface); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 48px; padding: 0 16px;
  border-radius: var(--radius-chip); border: var(--edge); background: var(--bg); box-shadow: var(--raise-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s;
}
.btn:active, .chip:active, .card.entry:active, .start:active { transform: scale(.96); box-shadow: var(--inset); }
.btn.icon { padding: 0; }
.btn.sm { min-height: 40px; min-width: 40px; padding: 0 12px; font-size: 13px; }
.btn.icon.sm { padding: 0; }
.btn.primary { background: var(--hard); color: var(--on-accent); box-shadow: var(--glow); border-color: transparent; }
.btn.ghost { box-shadow: none; background: transparent; }
.btn.danger { color: var(--hard-ink); }
.btn.wide { width: 100%; }
.btn.spotify { color: #128C4A; }
[data-theme="dark"] .btn.spotify { color: #3FD07A; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 12px; border: var(--edge);
  background: var(--bg); box-shadow: var(--raise-sm); font-size: 13px; font-weight: 600; cursor: pointer; }
.chip.go { background: var(--hard); color: var(--on-accent); border-color: transparent; }
.chip svg { width: 14px; height: 14px; }

/* ---------- top bar, brand, dock ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.topbar .title { font-size: 18px; font-weight: 700; text-align: center; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; }
.brand img { border-radius: 12px; box-shadow: var(--raise-sm); }
.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 10;
  display: flex; gap: 4px; padding: 6px; border-radius: 22px; background: var(--bg); border: var(--edge); box-shadow: var(--raise); width: min(440px, calc(100% - 32px)); }
.dock a { flex: 1; text-align: center; padding: 12px 4px; border-radius: 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dock a.on { color: var(--ink); box-shadow: var(--inset); background: var(--surface); }
.dock[hidden] { display: none; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; transition: .25s; z-index: 30; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- home ---------- */
.stats { display: flex; gap: 8px; justify-content: space-around; text-align: center; padding: 18px 12px; }
.stats > div { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.stats .muted { font-size: 12.5px; }
.big { font-size: 30px; font-weight: 700; line-height: 1.1; }
.list { display: flex; flex-direction: column; gap: 16px; }
.workout { display: flex; flex-direction: column; gap: 12px; }
.workout-main { display: flex; flex-direction: column; gap: 8px; }
.workout-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.workout h3 { font-size: 19px; }
.workout .time { font-size: 17px; font-weight: 600; }
.summary { margin: 0; font-size: 12.5px; }
.strip { display: flex; gap: 2px; height: 10px; border-radius: 6px; overflow: hidden; box-shadow: var(--inset); padding: 2px; background: var(--surface); }
.strip i { display: block; border-radius: 3px; min-width: 1px; }
.strip .hard { background: var(--hard); } .strip .easy { background: var(--easy); } .strip .rest { background: var(--rest); opacity: .55; }
.workout-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- editor ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field.row { flex-direction: row; align-items: center; justify-content: space-between; }
.field > input, .field textarea, select, .block-name {
  border: var(--edge); border-radius: 14px; background: var(--surface); box-shadow: var(--inset); padding: 12px 14px; color: var(--ink); font-size: 16px; font-weight: 500; min-height: 46px; width: 100%; }
textarea { resize: vertical; }
select { appearance: none; padding-right: 30px; flex: 1; min-width: 0; font-size: 15px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.stepper { display: flex; align-items: center; gap: 4px; border-radius: 16px; background: var(--surface); box-shadow: var(--inset); padding: 4px; flex: none; }
.stepper button { width: 38px; height: 38px; border-radius: 12px; border: var(--edge); background: var(--bg); box-shadow: var(--raise-sm); font-size: 20px; font-weight: 600; cursor: pointer; }
.stepper label { display: flex; align-items: baseline; }
.stepper input { width: 48px; border: 0; background: transparent; text-align: right; font-family: "Geist Mono", monospace; font-weight: 600; font-size: 17px; padding: 0; -moz-appearance: textfield; color: var(--ink); }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper span { color: var(--muted); font-size: 13px; width: 16px; padding-left: 2px; }
.block { display: flex; flex-direction: column; gap: 12px; }
.block-head { display: flex; gap: 8px; align-items: center; }
.block-name { font-family: var(--display); font-weight: 700; font-size: 17px; flex: 1; min-width: 0; }
.block-tools { display: flex; gap: 6px; }
.intervals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.iv { border-radius: 18px; padding: 10px; background: var(--surface); box-shadow: var(--inset); display: flex; flex-direction: column; gap: 10px; border-left: 5px solid var(--c); }
.iv.hard { --c: var(--hard); } .iv.easy { --c: var(--easy); } .iv.rest { --c: var(--rest); }
.iv-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.iv-row select { order: 3; flex: 1 0 100%; }
.iv-row .btn { margin-left: auto; }
.iv-row .grow { flex: 1; font-size: 13px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); box-shadow: var(--inset); }
.iv .seg { background: var(--bg); }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px 6px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; min-height: 36px; }
.seg button.on { background: var(--bg); color: var(--ink); box-shadow: var(--raise-sm); }
.iv.hard .seg button.on { color: var(--hard-ink); } .iv.easy .seg button.on { color: var(--easy-ink); } .iv.rest .seg button.on { color: var(--rest-ink); }
.seg.stack button { display: flex; flex-direction: column; gap: 2px; padding: 10px 6px; }
.seg.stack small { font-weight: 500; font-size: 11px; line-height: 1.3; }
.add { align-self: flex-start; }
.rest-after { border-top: 1px dashed var(--bg-lo); padding-top: 12px; }
.edit-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.edit-foot > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.edit-foot .muted { font-size: 12px; }

/* ---------- ready ---------- */
.ready { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 18px; }
.ready p { margin: 0; }
.ready .note { font-size: 14px; }
.ready-fig { width: 140px; height: 150px; display: grid; place-items: center; border-radius: 50%; }
.start { margin: 18px 0 8px; width: 148px; height: 148px; border-radius: 50%; border: 0; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; background: var(--hard); color: var(--on-accent); box-shadow: var(--glow), var(--raise);
  font-family: var(--display); font-weight: 800; font-size: 22px; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.start svg { width: 44px; height: 44px; }
.style-row { display: flex; gap: 12px; overflow-x: auto; padding: 12px 4px 16px; margin: 0 -4px; }
.style-mini { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; font-size: 12.5px; font-weight: 600; }

/* ---------- figures ---------- */
.fig { overflow: visible; }
.fig .limb { stroke: var(--ink); stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.fig .head { fill: var(--hard); }
.fig .eye { fill: var(--ink); }
.fig .smile { stroke: var(--ink); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.fig .handle { fill: var(--easy); }
.fig .rope { stroke: var(--muted); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.fig .shadow { fill: var(--ink); opacity: .1; }
.fig .rope.under, .fig .leg-b { opacity: 0; }
.fig.anim .body { animation: hop .5s ease-in-out infinite; transform-box: view-box; }
.fig.anim .shadow { animation: shadow .5s ease-in-out infinite; transform-origin: 50px 110px; transform-box: view-box; }
.fig.anim .rope.over { animation: ropeA .5s steps(1) infinite; }
.fig.anim .rope.under { animation: ropeB .5s steps(1) infinite; }
.fig.anim .leg-a { animation: legA 1s steps(1) infinite; }
.fig.anim .leg-b { animation: legB 1s steps(1) infinite; }
.fig.anim.double .body { animation-duration: .7s; } .fig.anim.double .rope { animation-duration: .35s; }
.fig.anim.move-x .body { animation-name: hopX; animation-duration: 1s; }
.fig.anim.move-y .body { animation-name: hopY; animation-duration: 1s; }
.fig.anim.still .body, .fig.anim.still .shadow { animation: none; }
.fig.anim .rope.side { animation: swing 1s ease-in-out infinite; transform-origin: 50px 68px; transform-box: view-box; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes hopX { 0%, 100% { transform: translate(-6px, 0); } 25% { transform: translate(0, -7px); } 50% { transform: translate(6px, 0); } 75% { transform: translate(0, -7px); } }
@keyframes hopY { 0%, 100% { transform: translateY(0) scale(1); } 25% { transform: translateY(-7px) scale(1.03); } 50% { transform: translateY(0) scale(1.06); } 75% { transform: translateY(-7px) scale(1.03); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.75); } }
@keyframes ropeA { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes ropeB { 0% { opacity: 0; } 50% { opacity: 1; } }
@keyframes legA { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes legB { 0% { opacity: 0; } 50% { opacity: 1; } }
@keyframes swing { 0%, 100% { transform: rotate(0); } 50% { transform: scaleX(-1); } }
@media (prefers-reduced-motion: reduce) { .fig.anim * { animation: none !important; } .fig.anim .rope.over { opacity: 1; } }

/* ---------- run ---------- */
.run { display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: calc(100dvh - 48px); --c: var(--rest); --c-ink: var(--rest-ink); }
.run[data-intensity="hard"] { --c: var(--hard); --c-ink: var(--hard-ink); }
.run[data-intensity="easy"] { --c: var(--easy); --c-ink: var(--easy-ink); }
.run-top { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; }
.run-where { font-size: 13px; color: var(--muted); text-align: center; flex: 1; }
.run-total { font-size: 15px; color: var(--muted); min-width: 48px; text-align: right; }
.ring-wrap { position: relative; width: min(78vw, 330px); aspect-ratio: 1; border-radius: 50%; box-shadow: var(--raise); background: var(--bg); margin-top: 6px; }
.ring { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 14; }
.ring .track { stroke: var(--surface); filter: drop-shadow(1px 1px 1px var(--bg-lo)); }
.ring .prog { stroke: var(--c); stroke-linecap: butt; stroke-dasharray: 1000; transition: stroke .3s; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 45%, transparent)); }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; padding: 0 30px; }
.phase { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--c-ink); text-transform: uppercase; letter-spacing: .04em; }
.clock { font-size: clamp(64px, 22vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.style-name { font-size: 15px; font-weight: 600; color: var(--muted); min-height: 20px; }
.run.final .clock { color: var(--c-ink); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.run.paused .clock { opacity: .45; }
.run-fig { height: 112px; display: grid; place-items: center; }
.cue { margin: 0; text-align: center; font-size: 14px; max-width: 340px; min-height: 40px; line-height: 1.4; }
.next { width: 100%; text-align: center; font-size: 15px; padding: 14px; }
.next .hard { color: var(--hard-ink); } .next .easy { color: var(--easy-ink); } .next .rest { color: var(--rest-ink); }
.overall { width: 100%; height: 8px; border-radius: 4px; box-shadow: var(--inset); background: var(--surface); overflow: hidden; }
.overall i { display: block; height: 100%; background: var(--c); border-radius: 4px; transition: width .2s linear, background .3s; }
.controls { display: flex; gap: 22px; align-items: center; margin-top: auto; padding-top: 8px; }
.btn.round { border-radius: 50%; width: 60px; height: 60px; }
.btn.round.big { width: 84px; height: 84px; background: var(--c); color: var(--on-accent); box-shadow: var(--raise); border-color: transparent; }
.btn.round.big svg { width: 32px; height: 32px; }

/* ---------- finish + log ---------- */
.finish { display: flex; flex-direction: column; gap: 16px; }
.finish h1 { font-size: 32px; font-weight: 800; text-align: center; }
.finish > p { margin: -10px 0 0; text-align: center; }
.confetti { display: grid; place-items: center; margin-top: 12px; }
.feels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.feels button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 2px; border-radius: 16px; border: var(--edge);
  background: var(--bg); box-shadow: var(--raise-sm); cursor: pointer; }
.feels span { font-size: 26px; }
.feels small { font-size: 11px; font-weight: 600; color: var(--muted); }
.feels button.on { box-shadow: var(--inset); background: var(--surface); outline: 2px solid var(--hard); }
.finish-actions { display: flex; justify-content: space-between; gap: 12px; }
.finish-actions .primary { flex: 1; }
.day { font-size: 13px; color: var(--muted); font-family: Geist, sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.entry { display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%; cursor: pointer; }
.entry-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.entry-head .mono { font-size: 13px; color: var(--muted); white-space: nowrap; }
.entry-feel { font-size: 14px; font-weight: 600; }
.entry-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); white-space: pre-wrap; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px; }

/* ---------- styles + settings ---------- */
.styles-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.style-card { display: flex; gap: 14px; align-items: center; scroll-margin: 100px; }
.style-card:target { outline: 2px solid var(--hard); }
.style-card h4 { font-size: 16px; margin-bottom: 4px; }
.style-card p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.toggle > span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.toggle small { font-size: 12.5px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { flex: none; width: 52px; height: 30px; border-radius: 15px; background: var(--surface); box-shadow: var(--inset); position: relative; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); box-shadow: var(--raise-sm); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.toggle input:checked + i { background: var(--hard); }
.toggle input:checked + i::after { transform: translateX(22px); }
.toggle input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }
input[type=range] { accent-color: var(--hard); width: 100%; }
.test-row { display: flex; flex-wrap: wrap; gap: 8px; }
.seg.wide button { min-height: 42px; }

@media (min-width: 560px) { .styles-grid { grid-template-columns: 1fr 1fr; } .style-card { flex-direction: column; text-align: center; } }

/* ---------- v0.2: week, plans, ropes, guide ---------- */
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.chip.on { box-shadow: var(--inset); background: var(--surface); color: var(--ink); outline: 2px solid var(--hard); }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 18px; }
.hero p { margin: 0 0 8px; line-height: 1.5; }

/* Rope chip: a dot that grows with the weight, so 1 / 2 / 4 / 8 oz read at a glance without color. */
.rope-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 7px; border-radius: 10px; background: var(--surface);
  box-shadow: var(--inset); font: 600 12px/1 "Geist Mono", monospace; color: var(--ink); white-space: nowrap; flex: none; }
.rope-chip::before { content: ""; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--ink); }
.rope-1 { --dot: 4px; } .rope-2 { --dot: 6px; } .rope-4 { --dot: 8px; } .rope-8 { --dot: 11px; }
.rope-chip.big-chip { font-size: 15px; padding: 7px 12px 7px 10px; }
.rope-line { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; }

.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-head p { margin: 2px 0 0; font-size: 14px; }
.weeks { display: flex; gap: 4px; }
.weeks i { width: 14px; height: 14px; border-radius: 5px; background: var(--surface); box-shadow: var(--inset); }
.weeks i.past { background: var(--rest); box-shadow: none; opacity: .7; }
.weeks i.now { background: var(--hard); box-shadow: var(--glow); }
.weeks i.deload { border-radius: 50%; }

.advice { border-left: 6px solid var(--tone); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; --tone: var(--easy); }
.advice.go { --tone: var(--rest); } .advice.hold { --tone: var(--hard); } .advice.easy, .advice.info { --tone: var(--easy); }
.advice h3::before { content: "● "; color: var(--tone); }
.advice p { margin: 0 0 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }

.days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.day-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.day-row.rest-day { padding: 4px 14px; font-size: 13px; }
.dname { display: flex; flex-direction: column; align-items: center; width: 34px; flex: none; font-weight: 700; font-size: 13px; }
.dname small { font: 500 12px "Geist Mono", monospace; color: var(--muted); }
.day-row.today .dname { color: var(--hard-ink); }
.day-row.card.today { outline: 2px solid var(--hard); }
.day-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.day-main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-row.done { opacity: .8; }
.day-row.missed .day-main b { color: var(--muted); }
.day-row .chip.go { width: 40px; height: 40px; padding: 0; justify-content: center; }
.tick { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--rest); color: #fff; font-weight: 800; flex: none; }

.load { display: flex; flex-direction: column; gap: 10px; }
.load-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.load p { margin: 0; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 130px; padding-top: 18px; }
.bar-col { flex: 1; height: 100%; position: relative; border: 0; background: none; padding: 0 0 18px; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; }
.bar-col i { position: absolute; bottom: 18px; left: 18%; right: 18%; border-radius: 4px 4px 0 0; max-height: calc(100% - 18px); }
.bar-col i.done { background: var(--easy); }
.bar-col i.plan { border: 2px dashed var(--muted); border-bottom: 0; opacity: .7; }
.bar-col b { position: absolute; top: 0; font-size: 12px; color: var(--ink); }
.bar-col small { position: absolute; bottom: 0; font: 500 10.5px "Geist Mono", monospace; color: var(--muted); }
.bar-col.sel i.done { background: var(--easy-ink); }
.bar-col:hover i.done { filter: brightness(1.08); }

.programs { display: flex; flex-direction: column; gap: 14px; }
.program { text-align: left; display: flex; flex-direction: column; gap: 8px; cursor: pointer; font: inherit; color: inherit; }
.program.sel { outline: 3px solid var(--hard); }
.program p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.program-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 17px; font-family: var(--display); }
.tag { font: 600 11px Geist, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 8px; border-radius: 8px; box-shadow: var(--inset); background: var(--surface); }
.program-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); }
.goal { color: var(--ink); font-weight: 600; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.spark i { flex: 1; background: var(--easy); border-radius: 3px 3px 0 0; opacity: .85; }
.spark i.deload { opacity: .35; }
.daypick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.daypick button { min-height: 46px; border-radius: 14px; border: var(--edge); background: var(--bg); box-shadow: var(--raise-sm); font-weight: 600; font-size: 13px; cursor: pointer; }
.daypick button.on { background: var(--hard); color: var(--on-accent); box-shadow: var(--glow); }
.slots { display: flex; flex-direction: column; gap: 10px; }
.slots .field.row span { width: 40px; flex: none; }

.ropes { display: grid; grid-template-columns: 1fr; gap: 12px; }
.rope-card { display: flex; flex-direction: column; gap: 6px; }
.rope-card.unowned { opacity: .6; }
.rope-card p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.rope-top { display: flex; align-items: center; gap: 10px; }
.principles p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.principles b { color: var(--ink); }
.sublevel { font-size: 13px; margin: 4px 0 -4px; }
@media (min-width: 560px) { .ropes { grid-template-columns: 1fr 1fr; } }

/* v0.3: ropes per block */
.run-right { display: flex; align-items: center; gap: 8px; }
.style-name .swap { color: var(--ink); background: var(--surface); box-shadow: var(--inset); padding: 4px 10px; border-radius: 10px; font-weight: 700; }
.day-ropes { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.day-ropes .rope-chip { padding: 4px 7px 4px 6px; }
.rope-line .rope-chip + .muted { margin: 0 2px; }
.rope-line { flex-wrap: wrap; }
.block-rope .seg button { min-width: 40px; padding: 8px 4px; }
.day-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.day-row .day-ropes { justify-content: flex-start; }
