:root {
  --bg: #101311; --surface: #191e1a; --surface-2: #222922; --line: #344036;
  --text: #f1f4ed; --muted: #9ca99c; --lime: #d5f36f; --coral: #ff8b6a; --sky: #8ed5e7; --amber: #f3c26d;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(100%, 960px); margin: 0 auto; padding: 24px 20px 96px; }
.topbar { display: flex; justify-content: space-between; align-items: start; margin-bottom: 26px; }
.eyebrow { color: var(--lime); font: 700 11px/1.2 ui-monospace, SFMono-Regular, monospace; letter-spacing: .14em; margin: 0 0 8px; }
h1, h2, h3, p { margin-top: 0; } h1 { font-size: clamp(28px, 6vw, 48px); letter-spacing: -.03em; margin-bottom: 0; } h2 { font-size: 25px; margin-bottom: 5px; } h3 { font-size: 17px; margin-bottom: 6px; }
.icon-button { border: 1px solid var(--line); background: var(--surface); color: var(--lime); width: 44px; height: 44px; border-radius: 12px; font-size: 22px; }
.view-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 20px; }
.muted, .caption { color: var(--muted); } .caption { font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; grid-column: span 12; }
.panel.half { grid-column: span 6; } .panel.third { grid-column: span 4; }
.kicker { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.hero-number { font-size: 44px; font-weight: 750; letter-spacing: -.06em; line-height: 1; }
.progress-track { height: 8px; background: #303a31; border-radius: 99px; overflow: hidden; margin: 16px 0 8px; } .progress-fill { height: 100%; background: var(--lime); border-radius: inherit; }
.split-card { border-left: 4px solid var(--line); padding: 14px 16px; background: var(--surface-2); border-radius: 8px; margin-bottom: 10px; } .split-card.coral { border-color: var(--coral); } .split-card.lime { border-color: var(--lime); } .split-card.sky { border-color: var(--sky); } .split-card.amber { border-color: var(--amber); }
.split-row, .action-row, .exercise-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .split-row { margin-bottom: 3px; }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.primary, .secondary, .danger { border: 0; border-radius: 8px; padding: 12px 16px; min-height: 44px; font-weight: 700; } .primary { background: var(--lime); color: #172013; } .secondary { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); } .danger { background: #4b2925; color: #ffb3a0; }
.select { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.exercise { border-top: 1px solid var(--line); padding: 17px 0 4px; } .exercise:first-child { border-top: 0; padding-top: 0; } .exercise-head { align-items: start; } .exercise-tip { color: var(--muted); font-size: 12px; margin: 0 0 12px; }
.set-row { display: grid; grid-template-columns: 40px 1fr 1fr 44px; gap: 8px; align-items: center; margin: 8px 0; } .set-row label { color: var(--muted); font-size: 12px; } .set-row input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 7px; background: #121612; color: var(--text); padding: 8px 10px; } .set-row input:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.check { width: 42px; height: 42px; accent-color: var(--lime); } .timer { color: var(--amber); font-variant-numeric: tabular-nums; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; } .field input { min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background: #121612; color: var(--text); padding: 10px; } .error { color: #ff9d86; font-size: 12px; margin-top: 8px; }
.bottom-nav { position: fixed; z-index: 3; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 960px); display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(16,19,17,.96); border-top: 1px solid var(--line); backdrop-filter: blur(14px); } .nav-item { border: 0; background: transparent; color: var(--muted); display: grid; gap: 3px; justify-items: center; padding: 7px; } .nav-item span { font-size: 20px; line-height: 1; } .nav-item small { font-size: 11px; } .nav-item.active { color: var(--lime); }
.toast { position: fixed; z-index: 5; bottom: 84px; left: 50%; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--lime); color: #172013; border-radius: 7px; padding: 10px 14px; font-size: 13px; transition: .2s ease; } .toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty { padding: 24px 0; text-align: center; color: var(--muted); }
@media (max-width: 640px) { .app-shell { padding: 20px 14px 94px; } .panel.half, .panel.third { grid-column: span 12; } .view-head { align-items: start; flex-direction: column; } .hero-number { font-size: 38px; } }
