@charset "UTF-8";
:root{color-scheme:light;--bg:#f5f7f8;--surface:#fff;--surface-2:#eef3f3;--text:#182b2c;--muted:#667779;--border:#dfe7e7;--accent:#087f72;--accent-hover:#066a60;--accent-soft:#e4f4ee;--danger:#b53d3d;--shadow:0 3px 18px #183d3b05;--radius:20px;--sidebar:238px;--font:Inter,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif}
:root[data-theme=dark]{color-scheme:dark;--bg:#101a1d;--surface:#172428;--surface-2:#1e3033;--text:#edf4f2;--muted:#a0b5b6;--border:#2a3d40;--accent:#58d3b3;--accent-hover:#79e4c8;--accent-soft:#1b3e36;--danger:#ff9898;--shadow:0 3px 18px #0001}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:var(--accent);text-decoration:none}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(26px,3vw,35px);line-height:1.18;letter-spacing:-1.1px;margin-bottom:10px;font-weight:700}h2{font-size:21px;line-height:1.3;letter-spacing:-.45px;margin-bottom:12px;font-weight:650}h3{font-size:17px;line-height:1.4;margin-bottom:8px}p{margin-bottom:14px}strong{font-weight:650}small{font-size:12px}svg{flex-shrink:0}.icon{vertical-align:middle}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:1.8px;font-size:10px;font-weight:750;color:var(--accent);margin-bottom:10px}.row{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}.spread{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:18px}.stack>p,.stack>h2{margin-bottom:0}.grid{display:grid;gap:20px;min-width:0}.grid>*{min-width:0}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.full{grid-column:1/-1}.preserve-lines{white-space:pre-wrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:20px;top:-80px;z-index:200;background:var(--surface);padding:14px}.skip-link:focus{top:12px}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);padding:34px 23px 24px;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:13px;align-items:center;color:var(--text);font-size:24px;font-weight:750;letter-spacing:-.9px;line-height:1.2}.brand small{display:block;color:var(--muted);font-size:10px;font-weight:450;letter-spacing:0;margin-top:7px}.brand-mark{width:43px;height:43px;display:inline-flex;align-items:center;justify-content:center;background:var(--accent);border-radius:13px;color:var(--surface);font-size:26px;font-weight:750;letter-spacing:-2px;flex-shrink:0}.brand-mark span{opacity:.7}.primary-nav{display:flex;flex-direction:column;gap:10px;margin-top:49px}.nav-link{display:flex;align-items:center;gap:15px;min-height:50px;padding:12px 14px;color:var(--muted);font-weight:550;border-radius:12px}.nav-link.active{background:var(--accent-soft);color:var(--accent);font-weight:700}.nav-link:hover{background:var(--surface-2);color:var(--text)}.nav-link.active:hover{background:var(--accent-soft);color:var(--accent)}.sidebar-bottom{margin-top:auto;display:grid;gap:6px}.privacy-label{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);padding:20px 13px 0;border-top:1px solid var(--border);margin-top:20px}.status-dot{display:inline-block;width:6px;height:6px;background:var(--accent);border-radius:50%;flex-shrink:0}.app-content{margin-left:var(--sidebar)}.topbar{height:90px;padding:0 44px;display:flex;align-items:center;justify-content:space-between;gap:16px}.today-label{font-size:13px;color:var(--muted)}.mobile-brand{display:none}.bottom-nav{display:none}main{padding:24px 44px 30px;max-width:1450px;margin:auto;outline:none}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.page-heading p:last-child{margin-bottom:0}.page-heading>.btn{flex-shrink:0}.page-footer{max-width:1450px;margin:auto;padding:12px 44px 28px;color:var(--muted);font-size:11px;display:flex;gap:20px}.page-footer>span{opacity:.7}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;min-width:48px;padding:10px;border:1px solid transparent;border-radius:13px;background:transparent;color:var(--muted);font-size:22px;line-height:1;text-decoration:none}.icon-button:hover{background:var(--surface-2);color:var(--text)}.danger{color:var(--danger)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:11px 18px;border:1px solid transparent;border-radius:11px;font-size:13px;font-weight:650;line-height:1.45;text-align:center;white-space:normal;transition:background .15s;color:var(--text);background:var(--surface-2)}.btn-primary{background:var(--accent);color:var(--surface)}.btn-primary:hover{background:var(--accent-hover)}.btn-secondary{background:var(--surface);border-color:var(--border);color:var(--text)}.btn-secondary:hover{background:var(--surface-2)}.btn-ghost{background:transparent;color:var(--accent)}.btn-ghost:hover{background:var(--accent-soft)}.btn-danger{background:transparent;color:var(--danger);border-color:var(--border)}.btn .icon{width:19px;height:19px}.btn[hidden],button[hidden],[hidden]{display:none!important}.pill,.badge{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:650;line-height:1.4;padding:7px 11px;border-radius:30px;background:var(--accent-soft);color:var(--accent)}.badge{font-size:10px;padding:5px 9px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);min-width:0;margin-bottom:22px}.grid>.card{margin-bottom:0}.card-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.card-header h2{margin-bottom:0}.card-header .eyebrow{margin-bottom:6px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:32px 0 18px}.section-heading h2{margin-bottom:0;font-size:19px}.section-heading .muted{font-size:12px}.daily-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px 34px;border:1px solid #d5e9e0;border-radius:var(--radius);background:linear-gradient(110deg,#e9f5ec 0%,#edf8f2 58%,#e1f0ef 100%);margin-bottom:24px;position:relative;overflow:hidden}.daily-hero:after{content:"";position:absolute;right:-70px;top:-100px;width:420px;height:420px;border:1px solid #087f7210;border-radius:50%;pointer-events:none}.daily-hero>.hero-weight,.daily-hero>div{position:relative;z-index:1}.daily-hero h2{font-size:25px;margin:17px 0 9px;letter-spacing:-.7px}.daily-hero p{color:#526f67;font-size:13px;margin-bottom:22px}.daily-hero .pill{background:#fff9;font-size:10px;letter-spacing:.1px}.daily-hero .btn-ghost{margin-left:5px}.hero-weight{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0;min-width:210px}.hero-weight>span{font-size:11px;color:#526f67}.hero-weight strong{font-size:60px;line-height:1.5;font-weight:620;letter-spacing:-3px;color:#174a3e}.hero-weight small{font-size:23px;font-weight:400;letter-spacing:-.7px}:root[data-theme=dark] .daily-hero{background:linear-gradient(110deg,#1b342c,#1b3435);border-color:#2a443c}:root[data-theme=dark] .daily-hero p,:root[data-theme=dark] .hero-weight>span{color:#a8cfc2}:root[data-theme=dark] .hero-weight strong{color:#d7f5e8}:root[data-theme=dark] .daily-hero .pill{background:#0d2527}.metric{padding:21px 23px}.metric-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.metric-label{font-size:12px;color:var(--muted);display:block}.metric-icon{color:var(--accent);width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--accent-soft)}.metric-icon .icon{width:19px;height:19px}.metric-value{font-size:31px;font-weight:650;line-height:1.3;letter-spacing:-1px;margin:4px 0 13px;overflow-wrap:anywhere}.metric-value small{font-size:12px;font-weight:450;letter-spacing:0;margin-left:7px;color:var(--muted)}.metric-detail{font-size:10px;color:var(--muted);line-height:1.5;margin-bottom:0;min-height:30px}.metrics-row{margin-bottom:24px}.dashboard-grid{grid-template-columns:minmax(0,1.9fr) minmax(260px,1fr);align-items:stretch}.dashboard-grid .card{height:100%;margin-bottom:0}.chart-container{height:260px;width:100%;position:relative;min-width:0}.chart-container>canvas{max-width:100%}.chart-legend{display:flex;gap:17px;color:var(--muted);font-size:10px;margin:0 0 20px;flex-wrap:wrap}.chart-legend>span{display:flex;align-items:center;gap:7px}.legend-dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}.legend-dot.raw{background:#92a4a7}.legend-dash{width:14px;border-top:2px dashed #bda471}.chart-note{font-size:10px;color:var(--muted);margin-top:15px}.chart-empty{min-height:270px}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;gap:5px;padding:35px 20px;color:var(--muted);font-size:13px}.empty-state>.icon{width:38px;height:38px;margin-bottom:15px;color:var(--accent);opacity:.7}.empty-state h3{color:var(--text)}.empty-state p{max-width:380px}.empty-state.compact{padding:15px 0;align-items:flex-start;text-align:left;gap:8px}.goal-nudge{padding:20px;background:var(--surface-2);border-radius:14px;margin-top:20px}.goal-nudge strong{font-size:13px}.goal-nudge p{font-size:11px;color:var(--muted);margin:7px 0 13px}.task-row{display:flex;gap:12px;align-items:center;min-height:64px;color:var(--text);border-bottom:1px solid var(--border);padding:12px 0}.task-row strong{font-size:13px}.task-row small{display:block;font-size:11px}.task-check{width:23px;height:23px;border:1px solid var(--border);border-radius:8px;flex-shrink:0}.task-check.checked{background:var(--accent-soft);border-color:var(--accent-soft);color:var(--accent)}.task-check .icon{width:21px;height:21px}.quick-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:24px}.quick-tiles>a{display:flex;align-items:center;gap:12px;padding:16px;color:var(--text);font-weight:600;font-size:12px;border-radius:12px;border:1px solid var(--border);background:var(--surface)}.quick-tiles>a>.icon{width:19px;height:19px;color:var(--accent)}.quick-tiles>a>.icon:last-child{margin-left:auto;width:15px}.quick-add{position:fixed;right:28px;bottom:26px;z-index:25;display:flex;align-items:center;justify-content:center;gap:6px;background:var(--accent);color:var(--surface);border:0;min-width:56px;height:54px;padding:0 19px;border-radius:17px;box-shadow:0 8px 30px #07564730;font-size:13px;font-weight:650}
.field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;min-width:0}.field small{font-size:11px;color:var(--muted);font-weight:400}.field:has(input[type=checkbox]){flex-direction:row;align-items:center;min-height:48px}.field input,.field select,.field textarea,input[type=date],input[type=search],select,textarea{width:100%;min-width:0;min-height:48px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:11px 12px;font-size:16px;outline-offset:2px}textarea{resize:vertical;min-height:90px}input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:21px;height:21px;min-height:21px;flex-shrink:0}input[type=date]{max-width:200px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid>.full,.form-grid>fieldset{grid-column:1/-1}.form-grid>fieldset{border:1px solid var(--border);border-radius:12px;padding:15px}.form-grid legend{font-size:12px;padding:0 6px}.form-hint{font-size:12px;color:var(--muted);margin:10px 0 18px}.form-error{padding:12px 14px;border:1px solid var(--danger);color:var(--danger);font-size:13px;background:var(--surface);border-radius:10px;margin:12px 0;overflow-wrap:anywhere}.form-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:20px;margin-top:6px;border-top:1px solid var(--border)}.form-actions .btn-primary{min-width:140px}.list{display:flex;flex-direction:column;gap:0}.list-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 0;border-bottom:1px solid var(--border);min-width:0}.list-row:last-child{border-bottom:0}.list-row>div:first-child{min-width:0;overflow-wrap:anywhere}.list-row strong{font-size:13px}.list-row small{display:block;font-size:11px;margin-top:4px}.list-row .row{flex-shrink:0}.file-row{color:var(--text)}.file-row .icon{color:var(--accent)}.progress-bar{width:100%;height:7px;border:0;border-radius:10px;appearance:none;background:var(--surface-2);overflow:hidden}.progress-bar::-webkit-progress-bar{background:var(--surface-2)}.progress-bar::-webkit-progress-value{background:var(--accent);border-radius:10px}.progress-bar::-moz-progress-bar{background:var(--accent)}.table-wrap{overflow-x:auto;border-radius:12px}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;color:var(--muted);font-weight:600}td,th{padding:12px;border-bottom:1px solid var(--border);vertical-align:top}.table-wrap input{min-width:65px}.tabs{display:flex;gap:5px;align-items:center;border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:4px}.tabs>a,.tabs>button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 16px;font-size:12px;font-weight:600;border:0;border-radius:9px;color:var(--muted);background:transparent}.tabs .active{background:var(--accent-soft);color:var(--accent)}.range-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:24px}.range-form{flex-wrap:nowrap}.range-form input{width:145px;font-size:12px}.range-form .btn{font-size:12px;padding-left:12px;padding-right:12px}.action-row{margin-bottom:24px}.goal-summary{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:20px;margin-top:24px}.goal-summary strong,.goal-summary small,.goal-summary span{display:block}.goal-summary strong{margin:8px 0;font-size:18px}.goal-summary .muted{font-size:11px}.goal-summary h2{font-size:28px}.goal-summary p{margin:0;font-size:13px;color:var(--muted)}.circumference-cards{margin-bottom:24px}.period-summary{margin-top:24px}.period-summary .grid>div{display:flex;flex-direction:column;gap:7px}.period-summary .muted{font-size:12px}.period-summary strong{font-size:21px}.period-summary small{color:var(--muted);font-size:11px}.health-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.health-actions .card{display:flex;flex-direction:column;gap:12px;text-align:left;font:inherit;margin:0;color:var(--text);padding:20px}.health-actions strong{font-size:13px}.health-actions span{font-size:11px;color:var(--muted)}.health-actions .icon{color:var(--accent)}.health-actions .card:hover{border-color:var(--accent)}
dialog{width:min(620px,calc(100% - 32px));max-height:90dvh;padding:0;border:1px solid var(--border);border-radius:24px;background:var(--surface);color:var(--text);box-shadow:0 25px 100px #0003;overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#0d242880;backdrop-filter:blur(3px)}.dialog-header{position:sticky;top:0;z-index:2;background:var(--surface);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 24px 12px;border-bottom:1px solid var(--border)}.dialog-header h2{margin:0;font-size:20px}#dialog-content{padding:24px}#dialog-content .card{padding:16px}#dialog-content .form-actions{position:sticky;bottom:-24px;background:var(--surface);padding:16px 0;margin-bottom:-12px;z-index:1}#dialog-content .list{max-height:300px;overflow:auto}#dialog-content .list-row{align-items:center}#dialog-content input:not([type=checkbox]):not([type=radio]):not([type=hidden]){min-height:48px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;min-width:0;background:var(--surface);color:var(--text);font-size:16px;max-width:100%}#dialog-content select{max-width:100%}#dialog-content pre{white-space:pre-wrap;word-break:break-all;font-size:11px;background:var(--surface-2);padding:12px;border-radius:10px}#dialog-content video{width:100%;max-height:280px;object-fit:cover;border-radius:12px}#dialog-content details>summary{min-height:48px;display:flex;align-items:center;cursor:pointer;color:var(--accent);font-size:13px}.quick-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick-menu>button,.quick-menu>a{min-height:90px;padding:15px;display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);font-size:13px;font-weight:600;text-align:left}.quick-menu .icon{color:var(--accent)}.toasts{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);z-index:100;display:flex;flex-direction:column;gap:8px;width:min(450px,calc(100% - 32px));pointer-events:none}.toast{padding:14px 18px;background:var(--text);color:var(--surface);border-radius:12px;box-shadow:0 5px 20px #0002;font-size:13px;pointer-events:auto;overflow-wrap:anywhere}.toast.error{background:var(--danger);color:#fff}.offline-banner{position:sticky;top:0;z-index:30;background:var(--text);color:var(--surface);font-size:12px;text-align:center;padding:10px 18px}.login-page{min-height:100dvh;display:grid;place-items:center;padding:30px;background:radial-gradient(ellipse at 30% 25%,var(--accent-soft),transparent 65%),var(--bg)}.login-card{width:100%;max-width:430px;padding:36px}.login-card .brand{margin-bottom:38px}.login-card h1{font-size:29px}.login-card form{display:flex;flex-direction:column;gap:20px;margin-top:27px}.login-card .btn-primary{width:100%}.login-card .muted{font-size:13px}.login-footer{margin:24px 0 0;text-align:center;font-size:11px!important}.print-layout{max-width:1100px;margin:auto;padding:30px}.print-layout h1{margin-top:25px}code{font-size:.85em;overflow-wrap:anywhere}details{border-radius:10px}summary{font-weight:600}ul,ol{padding-left:22px}.training-timer{font-variant-numeric:tabular-nums}body:has(dialog[open]){overflow:hidden}
@media(min-width:1500px){main{padding-top:34px}.topbar{max-width:1450px;margin:auto}}
@media(max-width:1200px){:root{--sidebar:205px}.sidebar{padding:30px 15px}.brand{font-size:22px}.brand small{font-size:9px}.topbar{padding:0 28px}main{padding:18px 28px 30px}.page-footer{padding:12px 28px 28px}.dashboard-grid{grid-template-columns:minmax(0,1.6fr) minmax(230px,1fr)}.daily-hero{padding:28px}.hero-weight{min-width:170px}.hero-weight strong{font-size:50px}.metric{padding:19px}.metric-value{font-size:28px}.health-actions{gap:12px}.health-actions .card{padding:16px}.range-controls{align-items:flex-start}.range-form{margin-left:auto}}
@media(max-width:1000px){:root{--sidebar:185px}.brand small{display:none}.brand{font-size:20px}.nav-link{gap:10px;padding:12px 10px;font-size:13px}.sidebar{padding:25px 13px}.topbar{height:75px;padding:0 22px}main{padding:16px 22px 25px}.dashboard-grid{grid-template-columns:1fr}.daily-hero h2{font-size:23px}.hero-weight strong{font-size:45px}.grid{gap:15px}.metric-value{font-size:26px}.metric-detail{font-size:10px}.health-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:21px}.range-form{margin-left:0}.goal-summary{grid-template-columns:1fr 1fr}.goal-summary>div:first-child{grid-column:1/-1}.quick-tiles{gap:10px}.quick-tiles>a{font-size:11px;padding:14px 10px}.quick-tiles>a>.icon:last-child{display:none}}
@media(max-width:760px),(max-width:1000px) and (max-height:600px){:root{--sidebar:0px;--radius:18px}.sidebar{display:none}.app-content{margin-left:0}.topbar{height:74px;padding:env(safe-area-inset-top) 20px 0;gap:12px}.topbar .today-label{display:none}.mobile-brand{display:flex;align-items:center;gap:10px;color:var(--text);font-size:20px;font-weight:750;letter-spacing:-.6px}.mobile-brand .brand-mark{width:34px;height:34px;border-radius:11px;font-size:21px}.topbar .row{gap:0}.topbar .icon-button{width:48px;min-width:48px}main{padding:18px 20px 32px}.page-heading{margin-bottom:23px;align-items:flex-start;flex-direction:column;gap:14px}.page-heading h1{font-size:28px;line-height:1.2;letter-spacing:-.8px}.page-heading .muted{font-size:13px}.eyebrow{font-size:9px;letter-spacing:1.6px;margin-bottom:10px}.bottom-nav{position:fixed;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 8px max(8px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);z-index:30;box-shadow:0 -4px 30px #153b3905}.bottom-nav .nav-link{display:flex;flex-direction:column;gap:4px;padding:7px 0;min-height:52px;border-radius:12px;font-size:9px;line-height:1.3}.bottom-nav .nav-link .icon{width:21px;height:21px}.bottom-nav .nav-link.active{background:var(--accent-soft)}.page-footer{padding:0 20px 110px;font-size:10px}.quick-add{bottom:calc(86px + env(safe-area-inset-bottom));right:19px;height:52px;min-width:52px;padding:0 16px;border-radius:16px}.quick-add span{font-size:12px}.daily-hero{padding:23px;gap:16px;flex-wrap:wrap;align-items:flex-start}.daily-hero>div:first-child{flex:1;min-width:185px}.daily-hero h2{font-size:24px;margin:17px 0 8px}.daily-hero p{font-size:12px;max-width:230px}.daily-hero .btn-primary{font-size:12px}.daily-hero .btn-ghost{margin-left:0;font-size:12px}.hero-weight{align-items:flex-start;min-width:0;flex-direction:row;gap:8px;align-items:baseline;flex-wrap:wrap;width:100%;border-top:1px solid #087f721a;padding-top:14px}.hero-weight>span:first-child{font-size:11px;width:100%}.hero-weight strong{font-size:43px;line-height:1.3;letter-spacing:-2px}.hero-weight strong small{font-size:17px}.hero-weight>span:last-child{margin-left:auto;font-size:10px}.daily-hero .pill{font-size:10px}.grid{gap:13px}.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics-row>.metric:last-child{grid-column:1/-1}.metrics-row>.metric:last-child{display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 15px}.metrics-row>.metric:last-child .metric-header{margin:0}.metrics-row>.metric:last-child .metric-icon{display:none}.metrics-row>.metric:last-child .metric-value{grid-column:2;grid-row:1/3;margin:0}.metrics-row>.metric:last-child .metric-detail{min-height:0;font-size:10px;margin-top:7px;grid-column:1;grid-row:2}.card{padding:20px;margin-bottom:18px}.metric{padding:18px}.metric-header{margin-bottom:14px}.metric-icon{width:28px;height:28px;border-radius:9px}.metric-icon .icon{width:17px;height:17px}.metric-label{font-size:10px}.metric-value{font-size:28px;letter-spacing:-1px;margin-bottom:9px}.metric-value small{display:inline-block;font-size:10px;margin-left:4px}.metric-detail{font-size:10px;min-height:30px}.dashboard-grid{gap:18px}.chart-container{height:235px}.chart-card{padding:19px 15px}.card-header{gap:12px;margin-bottom:18px;flex-wrap:wrap}.card-header h2{font-size:18px}.chart-legend{font-size:9px;gap:14px}.chart-note{font-size:9px}.section-heading{margin-top:28px;align-items:flex-start}.section-heading h2{font-size:18px}.section-heading>.muted{display:none}.quick-tiles{grid-template-columns:1fr;margin-top:18px}.quick-tiles>a{min-height:56px;font-size:12px;padding:13px 16px}.quick-tiles>a>.icon:last-child{display:block}.range-controls{display:flex;flex-direction:column;align-items:stretch;gap:14px}.range-controls .tabs{align-self:flex-start}.tabs>a,.tabs>button{min-height:48px;padding:10px 17px}.range-form{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;gap:7px}.range-form input{width:100%;max-width:100%;font-size:12px;padding:10px 6px}.range-form .btn{padding:10px;font-size:11px}.action-row{gap:6px}.action-row .btn{padding:10px 12px;font-size:12px}.circumference-cards .metric-value{font-size:28px}.goal-summary{grid-template-columns:1fr 1fr;padding:21px;gap:17px}.goal-summary strong{font-size:15px}.goal-summary .muted{font-size:10px}.period-summary .grid{grid-template-columns:1fr}.period-summary .grid>div{padding:10px 0;border-bottom:1px solid var(--border)}.period-summary .grid>div:last-child{border:0}.health-actions{gap:11px}.health-actions .card{padding:17px;gap:10px}.health-actions strong{font-size:12px}.health-actions span{font-size:10px}.health-actions .icon{width:22px;height:22px}.list-row{padding:15px 0;gap:9px;align-items:flex-start}.list-row .btn{font-size:11px;padding:10px}.list-row .row{gap:0;flex-shrink:1}.list-row .icon-button{min-width:48px;width:48px;font-size:18px}.list-row small{font-size:10px}.list-row strong{font-size:12px}.file-row{align-items:center}.table-wrap{margin-left:-4px;margin-right:-4px}.table-wrap td,.table-wrap th{padding:9px;font-size:11px}dialog{width:100%;max-width:100%;max-height:94dvh;margin:auto 0 0;border-radius:23px 23px 0 0;border-bottom:0;bottom:0;top:auto}.dialog-header{padding:13px 19px 10px}.dialog-header h2{font-size:19px}#dialog-content{padding:21px 20px max(24px,env(safe-area-inset-bottom))}#dialog-content .form-actions{bottom:-24px;padding:14px 0 max(14px,env(safe-area-inset-bottom));margin-bottom:-15px}#dialog-content .form-actions>.btn-primary{flex:1}.form-grid{gap:16px 12px}.field{font-size:11px}.field input,.field select{padding:11px 10px}.toasts{bottom:calc(150px + env(safe-area-inset-bottom))}.login-page{padding:20px}.login-card{padding:28px;box-shadow:none}.login-card h1{font-size:27px}.quick-menu{gap:10px}.quick-menu>a,.quick-menu>button{min-height:86px;font-size:12px;padding:14px}.grid-2{grid-template-columns:1fr}.form-grid.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.row>form{max-width:100%;flex-wrap:wrap}.row>.field{flex:1;min-width:100px}.goal-nudge{margin-top:17px}.btn{min-height:48px}}
@media(max-width:380px){main{padding-left:16px;padding-right:16px}.topbar{padding-left:16px;padding-right:16px}.daily-hero{padding:20px}.daily-hero h2{font-size:23px}.page-heading h1{font-size:26px}.metric{padding:16px}.metric-value{font-size:26px}.metric-icon{width:25px;height:25px}.btn{padding:10px 13px}.range-form{gap:5px}.range-form .btn{padding:10px 7px}.bottom-nav{padding-left:5px;padding-right:5px}.bottom-nav .nav-link{font-size:9px}.form-grid{gap:15px 10px}.quick-add span{display:none}.quick-add{padding:0;width:52px}.form-grid .field.full{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
#dialog-content .form-actions{bottom:0;margin-bottom:0}
/* Keep labels, long names and native controls inside their layout track. */
main, #dialog-content{overflow-wrap:anywhere}
.row>*, .card-header>*, .section-heading>*, .form-grid>*, fieldset{min-width:0;max-width:100%}
.field>input:not([type=checkbox]):not([type=radio]),.field>select,.field>textarea{margin-top:auto}
.field input[type=date]{max-width:100%}
.field:has(input[type=checkbox]){cursor:pointer}
label:has(>input[type=checkbox]),label:has(>input[type=radio]){display:flex;align-items:center;gap:10px;min-height:48px;cursor:pointer;flex-wrap:nowrap}
.list-row.stack,#dialog-content .list-row.stack{align-items:stretch}
.metric-detail,.list-row small,.chart-legend,.chart-note,.goal-summary .muted,.period-summary small{font-size:12px}
.login-page>.login-card{margin:0}
.weekday-picker{margin:0;border:1px solid var(--border);border-radius:12px;padding:12px}
.weekday-picker legend{font-size:13px;padding:0 6px}
.weekday-picker .row{gap:8px}
.reminder-day{justify-content:center;padding:8px 12px;background:var(--surface-2);border-radius:10px}
summary{cursor:pointer;min-height:48px;padding-block:12px}
.section-heading{flex-wrap:wrap}
.tabs{flex-wrap:wrap}
.range-form{align-items:flex-end}
.range-form .field{flex:1}
.range-form input{font-size:16px;width:160px}
input,select,textarea,button,summary{scroll-margin-block:90px 170px}
input[type=file]{max-width:100%;overflow:hidden}
@media(max-width:760px),(max-width:1000px) and (max-height:600px){
  .topbar{height:auto;min-height:74px;padding:calc(10px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left))}
  main{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  .eyebrow{font-size:11px;letter-spacing:1.3px}
  .bottom-nav .nav-link{font-size:12px;line-height:1.4;min-height:56px}
  .bottom-nav{padding-inline:max(5px,env(safe-area-inset-left)) max(5px,env(safe-area-inset-right))}
  .quick-add{bottom:calc(96px + env(safe-area-inset-bottom))}
  .page-footer{padding-bottom:calc(170px + env(safe-area-inset-bottom))}
  .metric-label,.metric-detail,.metrics-row>.metric:last-child .metric-detail,.metric-value small,
  .chart-note,.chart-legend,.goal-summary .muted,.health-actions span,.list-row small,
  .period-summary small,.task-row small,.goal-nudge p,.daily-hero .pill,.hero-weight>span:first-child,
  .hero-weight>span:last-child,.badge,.pill,.field small{font-size:12px}
  .field,.list-row strong,.health-actions strong,.task-row strong,.quick-tiles>a,.quick-menu>a,.quick-menu>button{font-size:14px}
  .btn,.list-row .btn,.action-row .btn,.daily-hero .btn-primary,.daily-hero .btn-ghost,.tabs>a,.tabs>button{font-size:14px}
  .metric-header{gap:6px}
  .metric-icon{flex-shrink:0}
  .metric-value small{white-space:nowrap}
  .metrics-row>.metric:last-child{grid-template-columns:minmax(0,1fr) auto}
  .metrics-row>.metric:last-child .metric-value{max-width:145px}
  .range-controls .tabs{align-self:stretch}
  .range-controls .tabs>a{flex:1;padding-inline:8px}
  .range-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .range-form input{font-size:16px;padding:11px 8px;width:100%}
  .range-form>.btn{grid-column:1/-1;font-size:14px}
  .form-grid,.form-grid.grid-2{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  .list-row{flex-wrap:wrap;gap:12px}
  .list-row>div:first-child{flex:1 1 150px}
  .list-row:not(.stack)>span:first-child{flex:1;min-width:0}
  .list-row>.row{flex:0 1 auto;gap:6px;margin-left:auto}
  .list-row.stack{align-items:stretch}
  .list-row.stack>div:first-child{flex-basis:auto}
  .list-row.stack>.row{width:100%;margin-left:0;flex:initial}
  .list-row.stack>.row.spread>div{flex:1 1 150px}
  .table-wrap td,.table-wrap th{font-size:13px;padding:10px}
  .dialog-header{padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right))}
  .dialog-header h2{overflow-wrap:anywhere;font-size:20px}
  #dialog-content{padding-inline:max(20px,env(safe-area-inset-left)) max(20px,env(safe-area-inset-right))}
  #dialog-content .form-actions{gap:10px}
  #dialog-content .form-actions>.btn{flex:1 1 110px}
  .form-actions .btn-primary{min-width:0}
  .login-card{padding:24px}
  .login-card .field{font-size:14px}
  .login-footer{font-size:12px!important}
}
@media(max-width:480px){
  .form-grid,.form-grid.grid-2{grid-template-columns:minmax(0,1fr)}
  .goal-summary{grid-template-columns:minmax(0,1fr)}
  .goal-summary strong{font-size:18px}
  .quick-menu>a,.quick-menu>button{padding:12px;gap:8px}
}
@media(max-width:360px){
  .range-form{grid-template-columns:minmax(0,1fr)}
  .metric{padding:14px}
  .metric-value{font-size:25px}
  .daily-hero{padding:18px}
  .login-page{padding:16px}
  .login-card{padding:22px}
}
.integration-bulk{padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.integration-bulk-actions{display:flex;flex-wrap:wrap;gap:10px}
.integration-bulk-actions>.btn{flex:1 1 180px}
.integration-bulk p{margin:0}
.integration-conflict-choice{align-items:flex-start!important;width:100%;min-width:0}
.integration-conflict-choice>span{min-width:0;overflow-wrap:anywhere}
.integration-conflict-source{display:block;font-size:12px;margin-top:4px}
.integration-bulk-summary{margin:0;display:grid;gap:8px}
.integration-bulk-summary>div{display:flex;justify-content:space-between;gap:16px}
.integration-bulk-summary dd{margin:0;font-weight:700}
.daily-hero .hero-action-title{font-size:18px;margin-bottom:18px}
@media(max-width:760px),(max-width:1000px) and (max-height:600px){.daily-hero{gap:13px}.daily-hero .hero-weight{order:-1;border-top:0;border-bottom:1px solid #087f721a;padding:0 0 16px;gap:5px}.daily-hero .hero-action-title{display:none}.daily-hero>div:first-child{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.daily-hero .pill{width:100%;background:transparent;padding:0;margin:1px 0 4px}.daily-hero .btn-ghost{padding-left:8px;padding-right:8px}}
@media print{.sidebar,.topbar,.bottom-nav,.quick-add,.page-footer,.btn,.form-actions,.range-controls,.skip-link{display:none!important}.app-content{margin:0}body{background:#fff;color:#111;font-size:10pt}main{padding:0;max-width:100%}.card{break-inside:avoid;box-shadow:none;background:#fff;color:#111;border:1px solid #ddd}table{font-size:9pt}td,th{padding:6px}a{color:#111}.print-layout{padding:0}.page-heading{margin-bottom:15px}h1{font-size:20pt}h2{font-size:15pt}}
