:root { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; color:#14233a; background:#f5f8fc; font-size:16px; -webkit-text-size-adjust:100%; }
* { box-sizing:border-box; }
body { margin:0; min-height:100dvh; }
button, input, select { font:inherit; }
button { cursor:pointer; touch-action:manipulation; }
button:disabled { opacity:.47; cursor:not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible { outline:3px solid #729def; outline-offset:2px; }
.app-shell { max-width:1150px; min-height:100dvh; margin:auto; padding:0 22px 100px; }
.site-header { min-height:90px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #e5ebf3; }
.brand { border:0; background:transparent; display:flex; align-items:center; gap:13px; padding:10px 0; color:inherit; text-align:left; }
.brand-icon { width:43px; height:43px; border-radius:14px; background:#243b62; color:white; display:grid; place-items:center; font-size:26px; }
.brand b { display:block; font-size:21px; letter-spacing:-.04em; }
.brand small { font-size:10px; color:#8392a9; letter-spacing:.17em; font-weight:700; }
.top-meta { font-size:14px; color:#65758e; display:flex; align-items:center; gap:12px; text-align:right; }
.online-dot { width:8px; height:8px; border-radius:50%; background:#40ac88; }
h1,h2,h3,p { margin-top:0; }
h1 { font-size:clamp(30px,4vw,43px); letter-spacing:-.055em; margin-bottom:8px; }
h2 { font-size:clamp(20px,2.5vw,25px); letter-spacing:-.035em; margin-bottom:14px; }
h3 { font-size:18px; letter-spacing:-.02em; }
p { line-height:1.65; }
.subtle { color:#73829a; }
.eyebrow { text-transform:uppercase; color:#6e8bba; font-size:12px; font-weight:800; letter-spacing:.16em; }
.hero { margin:28px 0 22px; padding:34px; border-radius:26px; color:#fff; background:linear-gradient(120deg,#172942 0%,#27436b 65%,#375e8c 100%); overflow:hidden; position:relative; }
.hero:after { content:""; position:absolute; right:-110px; top:-120px; width:340px; height:340px; border:1px solid rgba(255,255,255,.16); border-radius:50%; box-shadow:0 0 0 46px rgba(255,255,255,.035), 0 0 0 95px rgba(255,255,255,.03); pointer-events:none; }
.hero p { color:#d0def0; max-width:630px; }
.hero .eyebrow { color:#b2c8e8; }
.hero .badge { background:#ffffff22; color:white; }
.badge { display:inline-flex; align-items:center; padding:7px 12px; border-radius:100px; font-size:12px; font-weight:800; color:#25518d; background:#e7effc; }
.layout-two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.tile { width:100%; min-height:185px; border:1px solid #e5ebf4; border-radius:22px; box-shadow:0 8px 26px #25446509; background:#fff; text-align:left; padding:25px; display:flex; flex-direction:column; align-items:flex-start; gap:13px; color:#1a2942; transition:transform .15s, box-shadow .15s; }
.tile:active { transform:scale(.99); }
.tile .tile-icon { width:49px; height:49px; border-radius:14px; background:#eaf0fb; display:grid; place-items:center; color:#2f5b9d; font-size:26px; }
.tile.cardio .tile-icon { background:#e5f7ee; color:#168d69; }
.tile strong { font-size:23px; }
.tile small { color:#75849b; font-size:13px; }
.panel { background:#fff; border:1px solid #e7edf5; border-radius:20px; padding:23px; margin:15px 0; box-shadow:0 6px 20px rgba(38,63,96,.025); }
.panel.compact { padding:19px; }
.panel-heading { display:flex; gap:12px; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; margin-bottom:17px; }
.panel-heading h2, .panel-heading h3 { margin:0; }
.stack { display:flex; flex-direction:column; gap:14px; }
.row { display:flex; align-items:center; gap:11px; flex-wrap:wrap; }
.space { justify-content:space-between; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:12px; border:1px solid #dbe5f0; color:#243d5e; background:#fff; min-height:44px; padding:10px 17px; font-size:14px; font-weight:750; }
.btn.primary { background:#284a7d; border-color:#284a7d; color:white; }
.btn.green { background:#167f66; border-color:#167f66; color:white; }
.btn.weak { background:#f1f5fb; }
.btn.danger { color:#aa3434; border-color:#f1ced0; background:#fff8f8; }
.btn.full { width:100%; }
.btn.tiny { min-height:35px; font-size:12px; padding:7px 11px; }
.mode-head { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:18px; margin-top:27px; }
.mode-head h1 { margin:0 0 5px; }
.notice { padding:15px 18px; background:#fff9ed; border:1px solid #f5e6be; border-radius:14px; color:#815c19; font-size:13px; line-height:1.7; }
.notice strong { font-weight:850; }
.setting-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:750; color:#51627b; min-width:0; }
.field input, .field select { min-height:44px; border:1px solid #d7e1ed; padding:9px 11px; border-radius:10px; background:#fff; color:#223650; max-width:100%; }
.field input[type=range] { padding:0; width:100%; }
.player-box { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.player-symbol { width:43px; height:43px; border-radius:12px; background:#e8eef9; display:grid; place-items:center; font-size:23px; }
.player-box b { font-size:15px; }
.player-box small { display:block; color:#8290a4; font-size:12px; margin-top:4px; }
.controls { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.stat-number { font-size:39px; font-weight:850; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.timer-number { font-size:clamp(38px,5vw,62px); font-weight:850; letter-spacing:.02em; font-variant-numeric:tabular-nums; line-height:1.2; }
.timer-label { color:#7890ad; font-weight:750; font-size:12px; text-transform:uppercase; }
.timer-line { display:flex; align-items:center; justify-content:space-between; gap:15px; flex-wrap:wrap; margin:12px 0; }
.pillset { display:flex; gap:8px; flex-wrap:wrap; }
.pillset button { padding:8px 13px; background:#f3f7fc; border:1px solid #dce5ef; border-radius:10px; color:#375274; font-weight:700; }
.pillset button.selected { background:#23477b; color:#fff; border-color:#23477b; }
.section-title { margin:29px 0 13px; display:flex; gap:12px; flex-wrap:wrap; align-items:baseline; }
.section-title h2 { margin:0; }
.section-title small { font-size:13px; color:#8694a9; }
.exercise-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.exercise { padding:19px; border:1px solid #e5ebf2; border-radius:18px; background:#fff; min-width:0; }
.exercise.done { border-color:#9ad8ba; background:#fbfffd; }
.exercise-name { font-size:16px; font-weight:850; letter-spacing:-.02em; margin-bottom:4px; }
.exercise-english { display:block; font-size:12px; color:#8b9ab0; font-weight:600; margin-top:1px; }
.goal { color:#536d8e; font-size:13px; margin:10px 0 14px; }
.reps-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.reps-grid .field { text-align:center; align-items:stretch; gap:5px; font-size:11px; white-space:nowrap; }
.reps-grid .field input { width:100%; min-width:0; text-align:center; min-height:44px; font-size:16px; padding:8px 4px; font-variant-numeric:tabular-nums; }
.side-inputs { display:flex; flex-direction:column; gap:7px; }
.side-label { display:inline-block; font-size:11px; color:#7e90a5; font-weight:800; margin-bottom:5px; }
.done-label { display:flex; gap:9px; align-items:center; margin-top:14px; font-size:13px; font-weight:800; }
input[type=checkbox] { width:21px; height:21px; accent-color:#177e61; cursor:pointer; }
.steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.step { display:flex; gap:10px; align-items:flex-start; background:#f6f9fd; padding:12px; border-radius:12px; font-size:13px; line-height:1.55; }
.step input { flex-shrink:0; }
.step small { color:#7e8ea4; display:block; }
.metric-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.metric { border-radius:14px; padding:15px; background:#f4f7fb; }
.metric strong { display:block; font-size:25px; font-variant-numeric:tabular-nums; }
.metric span { color:#8795a9; font-size:12px; }
.progress-track { height:10px; border-radius:50px; overflow:hidden; background:#ebf0f6; margin-top:17px; }
.progress-fill { height:100%; background:#1a9c7b; transition:width .2s; }
.interval-stage { background:#172c47; color:white; padding:22px; border-radius:17px; text-align:center; }
.interval-stage .timer-label { color:#b8c8df; }
.interval-stage .timer-number { font-size:clamp(44px,6vw,70px); }
.interval-stage .stage-name { font-size:clamp(17px,3vw,22px); font-weight:850; }
.interval-stage .stage-en { color:#a9c0dd; font-size:12px; }
.interval-stage.resting { background:#1a6e5c; }
.large-select { min-height:46px; padding:10px 12px; border:1px solid #d9e3ef; border-radius:11px; background:white; min-width:180px; max-width:100%; }
.chartbox { margin-top:20px; background:#f8fafd; border-radius:16px; padding:15px; overflow:hidden; }
.chartbox svg { display:block; width:100%; height:auto; min-height:225px; }
.chart-points { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.chart-points span { background:#eef3f9; border-radius:10px; padding:7px 11px; font-size:12px; }
.record-row { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; padding:13px 0; border-bottom:1px solid #edf1f6; }
.record-row:last-child { border-bottom:0; }
.record-row strong { font-size:14px; }
.record-row small { display:block; margin-top:3px; color:#8292a6; }
.muted-note { color:#8a99ad; font-size:12px; }
.divider { height:1px; background:#edf0f4; margin:18px 0; }
input[type=file] { max-width:100%; }
.bottom-nav { position:fixed; z-index:20; bottom:0; left:0; right:0; padding:8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)); background:rgba(255,255,255,.95); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border-top:1px solid #e6eaf1; display:flex; align-items:center; justify-content:center; gap:clamp(8px,5vw,55px); }
.nav-button { background:transparent; border:0; padding:5px 9px; min-width:55px; display:flex; flex-direction:column; align-items:center; gap:1px; color:#94a2b6; font-size:11px; font-weight:850; }
.nav-button span { font-size:24px; line-height:1.2; }
.nav-button.active { color:#2a5287; }
.toast { position:fixed; z-index:40; top:14px; left:50%; transform:translateX(-50%); color:white; background:#243951; padding:12px 18px; border-radius:12px; box-shadow:0 8px 30px #0003; max-width:90vw; font-size:14px; }
@media (max-width:760px) { .app-shell {padding:0 14px 110px;} .site-header {min-height:72px;} .hero { padding:23px; margin-top:19px; } .layout-two,.setting-grid,.exercise-grid {grid-template-columns:1fr;} .metric-grid {grid-template-columns:repeat(2,1fr);} .steps {grid-template-columns:1fr;} .tile {min-height:150px;} .top-meta {font-size:12px;} .panel {padding:17px;} }
@media (max-width:380px) { .top-meta {display:none;} .reps-grid {gap:4px;} .reps-grid .field {font-size:10px;} }
@media (min-width:900px) { .setting-grid .panel {margin:0;} }
@media (prefers-reduced-motion:reduce) { *,*:before,*:after { scroll-behavior:auto!important; transition:none!important; } }
