:root{--bg:#f7fbfc;--panel:#fff;--panel2:#f8fcff;--line:#dfe9ed;--txt:#10233e;--muted:#708197;--green:#0aa76f;--blue:#168eea;--orange:#d99528;--red:#ef4865;--shadow:0 10px 30px rgba(52,84,103,.10)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;background:linear-gradient(180deg,#f9fcfd 0%,#eef9f8 58%,#f7fbfc 100%);color:var(--txt);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif;-webkit-font-smoothing:antialiased}
button,input,textarea{font:inherit}.dashboard,.screen{max-width:520px;margin:auto;padding:0 14px 104px}
.exact-home{max-width:520px;margin:auto;padding:0 14px 104px}
.masthead{height:182px;margin:0 -14px 8px;padding:25px 22px 18px;position:relative;overflow:hidden;background-image:linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.54) 42%,rgba(255,255,255,.08) 77%),url('/alpine.svg');background-size:cover;background-position:center top;border-radius:0 0 30px 30px}
.masthead:after{content:"";position:absolute;inset:auto 0 0;height:46px;background:linear-gradient(transparent,rgba(247,251,252,.94))}
.mastbrand{position:relative;z-index:2;display:flex;align-items:center;gap:10px;color:#08243d}
.mastbrand b{display:block;font-size:22px;line-height:1;letter-spacing:.03em}.mastbrand small{display:block;margin-top:5px;font-size:9px;letter-spacing:.22em;color:#40647a}
.mountain-mark{display:grid;place-items:center;width:48px;height:38px;font-size:32px;color:#07885e;filter:drop-shadow(14px 2px 0 #63cbb0)}
.mastdate{position:relative;z-index:2;margin-top:27px;font-size:16px;font-weight:900;color:#112b49}.mastquote{position:relative;z-index:2;margin-top:13px;font-size:22px;font-weight:800;font-style:italic;color:#117e83;letter-spacing:.02em}
.home-date-strip{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e2eaee;border-radius:18px;padding:10px 12px;margin:8px 0 10px;box-shadow:0 7px 22px rgba(64,93,109,.07);font-size:13px}
.cal-ico{color:#0a9366;margin-right:7px}.today-btn{position:static;border:1px solid #a9dec9;background:linear-gradient(145deg,#ecfff5,#e2f8ee);color:#087852;border-radius:999px;padding:9px 18px;font-size:12px;font-weight:900;box-shadow:none}
.hero{background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(240,253,248,.97));border:1px solid #dcebe5;border-radius:24px;padding:15px;box-shadow:var(--shadow);overflow:hidden;position:relative}
.hero:after{content:"";position:absolute;right:-25px;bottom:-40px;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle,rgba(0,182,119,.11),transparent 68%)}
.hero-route{position:absolute;right:11px;top:26px;width:118px;height:88px;opacity:.42}.hero-route:before{content:"";position:absolute;right:9px;top:12px;width:81px;height:47px;border:5px solid #05a66d;border-left-color:transparent;border-bottom-color:transparent;border-radius:50% 42% 52% 36%;transform:rotate(18deg)}
.hero-route i{position:absolute;width:9px;height:9px;background:#0ab679;border:2px solid white;border-radius:50%;box-shadow:0 2px 8px rgba(10,182,121,.25)}.hero-route i:nth-child(1){right:82px;top:59px}.hero-route i:nth-child(2){right:10px;top:8px}.hero-route i:nth-child(3){right:38px;top:38px}
.eyebrow{color:#099664;font-size:11px;font-weight:800;letter-spacing:.08em}.hero-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px;position:relative;z-index:1}.hero h1{font-size:23px;color:#0a203d;margin:7px 0 6px}.train-pill{white-space:nowrap;background:#dff8ec;color:#07905d;border-radius:999px;padding:6px 9px;font-size:8px;font-weight:900}.sub{color:#708197;max-width:77%;font-size:10px;line-height:1.45}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:13px;position:relative;z-index:1}.metric{background:#fff;border:1px solid #e2ebee;border-radius:15px;padding:8px 4px;min-width:0;box-shadow:0 5px 16px rgba(68,98,113,.06)}.metric small{display:block;color:#65758b;font-size:8.5px;margin:5px 0 3px}.metric strong{display:block;font-size:13.5px;margin:0;color:#11233d;white-space:nowrap}.metric strong em{font-size:10px;color:#0c9b60;font-style:normal}.metric-icon{display:block;font-size:20px;font-weight:900}.m-blue .metric-icon{color:#148fe8}.m-green .metric-icon{color:#0c9a62}.m-gold .metric-icon{color:#be8128}.m-red .metric-icon{color:#ef4865}
.row{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quick-row{margin-top:9px}.card{background:rgba(255,255,255,.96);border:1px solid #e0eaee;border-radius:20px;box-shadow:0 8px 22px rgba(59,87,103,.07)}.quick-card{display:grid;grid-template-columns:30px 1fr auto;align-items:start;gap:9px;padding:11px;min-height:96px}.quick-card h3{font-size:12px;margin:1px 0 7px}.quick-card .value{font-size:22px;font-weight:900}.quick-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:12px;background:#e9f6ff;color:#148fe8;font-size:18px}.recovery-card .quick-icon{background:#e8f7f4;color:#147b78}.chev{font-size:25px;color:#526b82}.tiny{font-size:10px;color:#738399;line-height:1.5}.blue{color:#168eea}.green{color:#0aa76f}
.motivation-card{margin-top:9px;background:linear-gradient(115deg,#ffffff,#e9faf2);border:1px solid #dceae3;border-radius:20px;padding:13px;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;box-shadow:0 8px 22px rgba(59,87,103,.06)}.motivation-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:white;color:#12986a;box-shadow:0 4px 14px rgba(0,0,0,.07);font-size:23px}.motivation-card b{display:block;color:#08784f;font-size:12px}.motivation-card small{display:block;color:#697d8f;margin-top:4px;font-size:9px}.script-mark{font-size:9px;color:#36af8a;font-style:italic;text-align:right;line-height:1.1}
.section{margin-top:13px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:0 2px 8px}.section-title h2{font-size:15px;margin:0;color:#10233e}.section-title button,.ghost{background:#f2f8fb;color:#2e6f9f;border:1px solid #d8e5eb;border-radius:12px;padding:8px 10px;font-weight:800;font-size:11px}.monthnav{display:flex;gap:8px}
.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;background:#fff;border:1px solid #e0e9ed;padding:9px;border-radius:22px;box-shadow:0 8px 22px rgba(59,87,103,.06)}.dow,.day{display:flex;align-items:center;justify-content:center;border-radius:12px;font-size:11px}.dow{color:#8a99a8;min-height:26px}.day{background:#fbfdfe;border:1px solid transparent;color:#43566d;min-height:45px;aspect-ratio:auto;padding:5px 2px 16px;position:relative}.day.has{border-color:#d9e9e1;background:#f8fdfb}.day.active{background:linear-gradient(145deg,#e2f9ef,#d3f4e6);border-color:#97d5b8;color:#076a49;box-shadow:none}.day .dot{position:absolute;bottom:13px;width:4px;height:4px;background:#0aa76f;border-radius:50%}.day .worklabel{position:absolute;left:3px;right:3px;bottom:3px;min-height:13px;padding:1px 2px;border-radius:5px;background:#eef7ff;color:#2876a8;border:1px solid #d3e6f3;font-size:6.8px;font-weight:900;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.day.has .worklabel{bottom:10px}.day.active .worklabel{background:#caeddd;color:#09684a;border-color:#8ac9aa}.day.work-off .worklabel{background:#fff6d9;color:#a87810;border-color:#eed994}.day.work-leave .worklabel{background:#fff0f3;color:#bd536b;border-color:#ebbdc8}
.detail{margin-top:10px;padding:14px}.detail .title{font-weight:900;font-size:16px}.badge{display:inline-flex;margin-top:8px;padding:5px 8px;border-radius:9px;background:#e3f8ee;color:#07865b;font-size:10px;font-weight:800}
.page-kicker{font-size:9px;font-weight:900;letter-spacing:.14em;color:#0c9b67;margin:16px 2px 5px}.record-controls{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:9px}.datepick,.search{width:100%;background:#fff;border:1px solid #dce7ec;border-radius:14px;padding:11px 12px;color:#16304d;outline:none;box-shadow:0 5px 15px rgba(64,92,108,.05)}.datepick{height:44px}.search{height:44px}.list{display:flex;flex-direction:column;gap:10px}.item-wrap{display:flex;flex-direction:column;gap:7px}.item{background:#fff;border:1px solid #e0e9ed;border-radius:17px;padding:13px 14px;display:flex;justify-content:space-between;gap:12px;box-shadow:0 6px 18px rgba(56,86,102,.05)}.item .main{font-size:14px;font-weight:800;color:#122741}.item .meta{color:#738399;font-size:10px;margin-top:5px;line-height:1.45}.item .num{text-align:right;white-space:nowrap;font-size:12px}.record-date,.sleep-date{appearance:none;border:0;background:transparent;color:#17304a;font:inherit;font-size:13px;font-weight:900;padding:0;text-align:left;text-decoration:underline;text-decoration-color:#92b2c7;text-underline-offset:3px;cursor:pointer}.record-detail,.sleep-detail{display:none;background:#f8fcfe;border:1px solid #dce8ed;border-radius:15px;padding:11px 12px}.item-wrap.open .record-detail,.sleep-wrap.open .sleep-detail{display:block}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px}.detail-grid span{display:block;color:#738399;font-size:9px;margin-bottom:2px}.detail-grid b{font-size:12px;word-break:break-word}.sleep-badge{display:inline-flex;padding:4px 7px;border-radius:99px;background:#eaf3ff;color:#2565a5;border:1px solid #cfe0f1;font-size:9px;font-weight:800}.sleep-score{color:#2565a5}
.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stats-grid .card{padding:15px 14px;min-height:92px}.stats-grid .value{font-size:20px;font-weight:900}.stats-grid .card:nth-child(odd) .value{color:#0a8359}.stats-grid .card:nth-child(even) .value{color:#237ca8}.stats-charts{display:grid;grid-template-columns:1fr;gap:10px;margin-top:14px}.chart-card{background:#fff;border:1px solid #e0e9ed;border-radius:20px;padding:13px;box-shadow:0 8px 22px rgba(59,87,103,.06)}.chart-head{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-bottom:11px}.chart-head b{font-size:13px;color:#10233e}.chart-head span{font-size:9px;color:#8291a1}.mini-chart{display:flex;align-items:flex-end;gap:4px;height:88px;padding:7px 2px 19px;border-bottom:1px solid #e8eef1;position:relative}.bar-col{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}.bar{width:74%;min-width:4px;border-radius:6px 6px 2px 2px;min-height:2px}.bar.distance{background:linear-gradient(180deg,#4dc4ff,#168eea)}.bar.ascent{background:linear-gradient(180deg,#5fd4ad,#0aa76f)}.bar-col i{position:absolute;bottom:-17px;font-style:normal;font-size:7px;color:#8a99a8}.chart-total{font-size:13px;font-weight:900;color:#0b8459;white-space:nowrap}.chart-total.blue{color:#237ca8}
.settings-exact .card{padding:14px}.setting{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid #edf1f3}.setting:last-child{border:0}.notice{background:#f4fbf8;border:1px dashed #bcdcca;border-radius:15px;padding:12px;color:#5f766d;font-size:11px;line-height:1.55}.work-calendar-card{margin-top:10px;padding:10px}.work-calendar-card .work-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.work-day{min-height:86px!important;border-radius:12px!important;padding:11px 3px 4px!important;background:#fff!important;border:1px solid #dce7eb!important}.work-day.selected{background:#eaf8f2!important;border-color:#62b994!important;box-shadow:0 0 0 2px #62b994!important}.work-session{font-size:8px!important;padding:3px!important}.work-label{font-size:7px!important}.work-hr,.work-session-metrics{font-size:7px!important}
.bottom-nav{position:fixed;z-index:1500;bottom:max(6px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(520px,calc(100% - 14px));background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border:1px solid #e3eaed;box-shadow:0 -10px 28px rgba(52,77,91,.08);border-radius:24px 24px 0 0;display:grid;grid-template-columns:repeat(4,1fr);padding:4px}.bottom-nav button{border:0;background:transparent;color:#667789;font-size:8px;min-height:52px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.bottom-nav button b{font-size:19px;line-height:1}.bottom-nav button.active{color:#07875c;background:#e4f7ee;font-weight:800}
.empty{color:#8998a7;font-size:11px;padding:20px;text-align:center}
@media(max-width:390px){.masthead{height:168px}.hero h1{font-size:21px}.metrics{gap:5px}.quick-card{grid-template-columns:30px 1fr auto}.stats-grid .value{font-size:20px}}
/* Keep work and recovery side by side on the home dashboard. */
.quick-row .recovery-card{grid-column:auto!important}

.chart-picked{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:2px 0 8px;padding:8px 10px;border-radius:12px;background:#f3faf7;border:1px solid #d8ebe2;color:#17364a;font-size:10px}
.chart-picked b{font-size:11px;color:#0a8359}.chart-picked span{font-weight:800}.chart-picked.muted{color:#7d8c9b;font-weight:600}
.bar-col{border:0;background:transparent;padding:0;cursor:pointer}
.bar-col.selected .bar{outline:2px solid rgba(16,35,62,.18);outline-offset:2px}
.bar-col:focus-visible{outline:2px solid #0aa76f;outline-offset:2px;border-radius:6px}

.stats-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:2px}
.stats-topline .page-kicker{margin-top:16px}
.stats-date-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:4px;margin-top:14px}
.stats-date-wrap label{font-size:8px;font-weight:800;color:#7d8c9b;letter-spacing:.04em}
.stats-datepick{min-width:132px;height:40px;padding:7px 10px;border:1px solid #d7e5ea;border-radius:12px;background:#fff;color:#17304a;font-size:12px;font-weight:800;box-shadow:0 5px 15px rgba(64,92,108,.05)}
@media(max-width:390px){.stats-datepick{min-width:124px;height:38px;font-size:11px}.stats-topline{gap:8px}}

.selected-training-card{margin-top:14px;padding:14px;border:1px solid #dfe9ed;border-radius:18px;background:linear-gradient(145deg,#ffffff,#f6fbf9);box-shadow:0 6px 18px rgba(56,86,102,.05)}
.selected-training-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.selected-training-kicker{display:block;font-size:9px;font-weight:900;letter-spacing:.08em;color:#0a9366;margin-bottom:4px}
.selected-training-head h3{margin:0;color:#10233e;font-size:18px}
.selected-training-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.selected-training-metrics>div{background:#fff;border:1px solid #e5edf0;border-radius:12px;padding:9px}
.selected-training-metrics span{display:block;font-size:8px;color:#8090a0;margin-bottom:3px}
.selected-training-metrics b{display:block;font-size:12px;color:#17304a;word-break:break-word}
.selected-training-purpose{margin-top:10px;padding:10px 11px;border-radius:12px;background:#eef9f4;color:#356b59;font-size:10px;line-height:1.5}
.selected-training-detail{margin-top:8px;padding:10px 11px;border-radius:12px;background:#f7fafc;color:#53677a;font-size:10px;line-height:1.55;white-space:pre-wrap;max-height:180px;overflow:auto}
@media(max-width:390px){.selected-training-metrics{grid-template-columns:1fr 1fr}.selected-training-metrics>div:last-child{grid-column:1/-1}}
