:root{--surface:#fcfcfb;--card:#fff;--border:#e8e7e3;--text:#0b0b0b;--text-2:#52514e;--muted:#8a8984;--accent:#1c5cab;--accent-ink:#fff;--accent-wash:#1c5cab14;--danger:#d03b3b;--ok:#0ca30c;--warn:#9a6a00;--z1:#5598e7;--z2:#1c5cab;--z3a:#1baf7a;--z3b:#eda100;--z4:#e34948;--z5:#6250d6;--r-card:14px;--r-ctl:10px;--s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:24px;--tab-h:56px;--sans:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--surface:#1a1a19;--card:#232322;--border:#33332f;--text:#f0efec;--text-2:#c3c2b7;--muted:#8f8e87;--accent:#4c8de5;--accent-ink:#0b0b0b;--accent-wash:#4c8de524;--warn:#e0b04a;--z1:#4c8de5;--z2:#1f5fb0;--z3a:#199e70;--z3b:#c98500;--z4:#df4545;--z5:#9085e9;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--surface:#1a1a19;--card:#232322;--border:#33332f;--text:#f0efec;--text-2:#c3c2b7;--muted:#8f8e87;--accent:#4c8de5;--accent-ink:#0b0b0b;--accent-wash:#4c8de524;--warn:#e0b04a;--z1:#4c8de5;--z2:#1f5fb0;--z3a:#199e70;--z3b:#c98500;--z4:#df4545;--z5:#9085e9;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--surface);color:var(--text);font:16px/1.45 var(--sans);font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased;margin:0;overflow-x:hidden}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}h1,h2,h3,p{margin:0}a{color:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.sr{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.muted{color:var(--muted)}.t2{color:var(--text-2)}.num-prop{font-variant-numeric:proportional-nums}#app{min-height:100dvh}.shell{max-width:560px;margin:0 auto}.page{padding:20px 16px calc(var(--tab-h) + env(safe-area-inset-bottom) + 32px);flex-direction:column;gap:24px;display:flex}.page.bare{padding-bottom:32px}.stack{flex-direction:column;gap:12px;display:flex}.stack-lg{flex-direction:column;gap:24px;display:flex}.row{align-items:center;gap:12px;display:flex}.row.between{justify-content:space-between}.grow{flex:1;min-width:0}.hr{background:var(--border);border:0;height:1px;margin:0}.h1{letter-spacing:-.015em;font-size:26px;font-weight:650;line-height:1.15}.h2{color:var(--text-2);letter-spacing:.005em;font-size:15px;font-weight:600}.eyebrow{color:var(--muted);letter-spacing:.04em;font-size:13px;font-weight:600}.small{font-size:13px;line-height:1.4}.hero{letter-spacing:-.03em;font-variant-numeric:proportional-nums;font-size:56px;font-weight:650;line-height:1}.hero small{color:var(--muted);letter-spacing:0;margin-left:6px;font-size:22px;font-weight:500}.section-head{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px;display:flex}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--r-card);padding:16px}.card.flush{padding:0;overflow:hidden}.btn{border-radius:var(--r-ctl);border:1px solid var(--border);background:var(--card);white-space:nowrap;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:0 16px;font-weight:560;text-decoration:none;display:inline-flex}.btn:active{background:var(--accent-wash)}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn.primary:active{opacity:.88;background:var(--accent)}.btn.ghost{color:var(--accent);background:0 0;border-color:#0000;padding:0 8px}.btn.danger{color:var(--danger)}.btn.block{width:100%}.btn[disabled]{opacity:.45;cursor:default}.btn.small{min-height:44px;font-size:14px}.icon-btn{width:44px;height:44px;color:var(--text-2);background:0 0;border:0;border-radius:12px;justify-content:center;align-items:center;padding:0;display:inline-flex}.icon-btn:active{background:var(--accent-wash)}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{border:1px solid var(--border);background:var(--card);min-height:44px;color:var(--text-2);border-radius:22px;align-items:center;gap:6px;padding:0 16px;font-size:15px;display:inline-flex}.chip[aria-pressed=true]{background:var(--accent-wash);border-color:var(--accent);color:var(--text);font-weight:600}.chip.sm{min-height:36px;padding:0 12px;font-size:14px}.chip svg{flex:none;width:16px;height:16px}.seg{border:1px solid var(--border);border-radius:var(--r-ctl);background:var(--card);display:flex;overflow:hidden}.seg button{min-height:44px;color:var(--text-2);border:0;border-left:1px solid var(--border);background:0 0;flex:1}.seg button:first-child{border-left:0}.seg button[aria-pressed=true],.seg button[aria-checked=true]{background:var(--accent-wash);color:var(--text);box-shadow:inset 0 -2px 0 var(--accent);font-weight:600}.switch-row{justify-content:space-between;align-items:center;gap:12px;min-height:44px;display:flex}.switch{border:1px solid var(--border);background:var(--border);border-radius:14px;flex:none;width:48px;height:28px;padding:0;transition:background .15s;position:relative}.switch:after{content:"";background:var(--card);border:1px solid var(--muted);border-radius:50%;width:22px;height:22px;transition:transform .15s;position:absolute;top:2px;left:2px}.switch[aria-checked=true]{background:var(--accent);border-color:var(--accent)}.switch[aria-checked=true]:after{border-color:var(--card);transform:translate(20px)}.field{flex-direction:column;gap:6px;display:flex}.field label,.label{color:var(--text-2);font-size:13px;font-weight:560}.input{border-radius:var(--r-ctl);border:1px solid var(--border);background:var(--card);font-variant-numeric:tabular-nums;appearance:none;width:100%;min-height:44px;padding:0 12px}.input::placeholder{color:var(--muted)}.input:disabled{opacity:.55}.err{color:var(--danger);font-size:14px}.hint{color:var(--text-2);font-size:14px}.stepper{border:1px solid var(--border);border-radius:var(--r-ctl);background:var(--card);align-items:center;display:inline-flex}.stepper button{width:44px;height:44px;color:var(--text-2);background:0 0;border:0;justify-content:center;align-items:center;display:inline-flex}.stepper button:active{background:var(--accent-wash)}.stepper button[disabled]{opacity:.35}.stepper output{text-align:center;font-variant-numeric:tabular-nums;min-width:64px;font-weight:600}.kv{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;min-height:52px;display:flex}.kv:first-child{border-top:0}.tabbar{z-index:20;background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);position:fixed;bottom:0;left:0;right:0}.tabbar nav{max-width:560px;height:var(--tab-h);grid-template-columns:repeat(4,1fr);margin:0 auto;display:grid}.tab{color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:11px;font-weight:560;text-decoration:none;display:flex}.tab svg{width:24px;height:24px}.tab[aria-current=page]{color:var(--accent)}.progress{z-index:30;position:fixed;top:0;left:0;right:0}.progress .bar{background:var(--accent);height:2px;transition:width .3s}.progress .msg{text-align:center;color:var(--muted);background:var(--surface);border-bottom:1px solid var(--border);padding:4px 8px;font-size:12px}.toast{left:16px;right:16px;bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px);z-index:40;background:var(--text);max-width:528px;color:var(--surface);border-radius:var(--r-ctl);align-items:center;gap:12px;margin:0 auto;padding:8px 8px 8px 16px;display:flex;position:fixed}.toast .btn{color:var(--surface);border-color:color-mix(in srgb, var(--surface) 40%, transparent);background:0 0;min-height:40px}.spin{border:2px solid var(--border);border-top-color:var(--accent);vertical-align:-2px;border-radius:50%;width:14px;height:14px;animation:.8s linear infinite sp;display:inline-block}@keyframes sp{to{transform:rotate(360deg)}}.banner{border:1px solid var(--border);border-radius:var(--r-card);background:var(--card);color:var(--text-2);padding:12px 16px;font-size:14px}.banner.err-b{border-color:var(--danger)}.zbar{--h:8px;height:var(--h);background:0 0;gap:2px;width:100%;display:flex}.zbar .z{background:var(--zc);border-radius:0;min-width:2px}.zbar .z:first-child{border-top-left-radius:min(4px, calc(var(--h) / 2));border-bottom-left-radius:min(4px, calc(var(--h) / 2))}.zbar .z:last-child{border-top-right-radius:min(4px, calc(var(--h) / 2));border-bottom-right-radius:min(4px, calc(var(--h) / 2))}.zbar.zempty{background:var(--border);border-radius:min(4px, calc(var(--h) / 2))}.zbar.thin{--h:4px}.zbar.tall{--h:12px}.z-Z1{--zc:var(--z1)}.z-Z2{--zc:var(--z2)}.z-Z3a{--zc:var(--z3a)}.z-Z3b{--zc:var(--z3b)}.z-Z4{--zc:var(--z4)}.z-Z5{--zc:var(--z5)}.legend{color:var(--text-2);flex-wrap:wrap;gap:4px 12px;font-size:12px;display:flex}.legend span{align-items:center;gap:5px;display:inline-flex}.legend i{background:var(--zc);border-radius:2px;width:8px;height:8px;display:inline-block}.legend b{color:var(--text);font-weight:600}.days{grid-template-columns:repeat(7,1fr);gap:4px;display:grid}.day{flex-direction:column;align-items:center;gap:6px;min-width:0;display:flex}.day .plot{align-items:flex-end;width:100%;max-width:28px;height:72px;display:flex}.day .dstack{flex-direction:column-reverse;gap:2px;width:100%;display:flex}.day .dstack .z{background:var(--zc);flex-basis:0;min-height:2px}.day .dstack .z:first-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.day .dstack .z:last-child{border-top-left-radius:4px;border-top-right-radius:4px}.day .base{background:var(--border);border-radius:1px;width:100%;height:2px}.day .wd{color:var(--muted);font-size:12px;font-weight:560}.day.today .wd{color:var(--text);font-weight:700}.day .km{color:var(--text-2);min-height:16px;font-size:12px}.gchip{border:1px solid var(--border);background:var(--card);min-height:36px;color:var(--text);border-radius:18px;align-items:center;gap:6px;padding:0 12px 0 10px;font-size:13px;display:inline-flex}.gchip svg{flex:none;width:16px;height:16px}.gchip .st{color:var(--muted)}.gchip[aria-expanded=true]{border-color:var(--accent)}.gchip.ok svg{color:var(--ok)}.gchip.low svg,.gchip.high svg{color:var(--danger)}.gchip.due svg{color:var(--accent)}.list{flex-direction:column;gap:8px;display:flex}.scard{background:var(--card);border:1px solid var(--border);border-radius:var(--r-card);color:inherit;padding:12px 16px 14px;text-decoration:none;display:block;position:relative}.scard:active{background:var(--accent-wash)}.scard .top{color:var(--muted);justify-content:space-between;align-items:center;gap:8px;font-size:13px;font-weight:560;display:flex}.scard .title{margin:2px 0;font-size:16px;font-weight:600}.scard .meta{color:var(--text-2);margin-bottom:10px;font-size:14px}.dot{background:var(--accent);border-radius:50%;flex:none;width:8px;height:8px;display:inline-block}.dotlabel{align-items:center;gap:6px;display:inline-flex}.tag{color:var(--text-2);border:1px solid var(--border);border-radius:6px;align-items:center;gap:6px;padding:1px 8px;font-size:12px;font-weight:600;display:inline-flex}.tag i{background:var(--zc);border-radius:2px;width:8px;height:8px}.empty{text-align:center;color:var(--muted);border:1px dashed var(--border);border-radius:var(--r-card);padding:24px 16px;font-size:14px}.weekrow{text-align:left;background:var(--card);border:1px solid var(--border);border-radius:var(--r-card);width:100%;padding:12px 16px 14px;display:block}.weekrow .head{justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:10px;display:flex}.weekrow .wk{font-weight:600}.weekrow .wkm{font-variant-numeric:proportional-nums;font-size:18px;font-weight:650}.weekrow .wkm small{color:var(--muted);margin-left:2px;font-size:13px;font-weight:500}.back{min-height:44px;color:var(--accent);background:0 0;border:0;align-items:center;gap:4px;margin-left:-8px;padding:0 8px;font-weight:560;text-decoration:none;display:inline-flex}.tiles{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.tile{background:var(--card);border:1px solid var(--border);border-radius:var(--r-ctl);min-width:0;padding:10px 12px}.tile .l{color:var(--muted);font-size:12px;font-weight:560}.tile .v{white-space:nowrap;font-variant-numeric:proportional-nums;margin-top:2px;font-size:19px;font-weight:650}.tile .v small{color:var(--muted);margin-left:2px;font-size:12px;font-weight:500}.table{border-collapse:collapse;width:100%;font-size:14px}.table th{text-align:right;color:var(--muted);padding:0 0 8px 8px;font-size:12px;font-weight:560}.table td{text-align:right;border-top:1px solid var(--border);white-space:nowrap;padding:9px 0 9px 8px}.table th:first-child,.table td:first-child{text-align:left;padding-left:0}.table .zc{align-items:center;gap:6px;display:inline-flex}.table .zc i{background:var(--zc);border-radius:2px;width:8px;height:8px}.panel-title{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px;display:flex}.panel-title h3{font-size:15px;font-weight:650}.panel-block+.panel-block{border-top:1px solid var(--border);margin-top:16px;padding-top:16px}.pill-ok{color:var(--ok);align-items:center;gap:4px;font-size:13px;font-weight:600;display:inline-flex}.pill-ok svg{width:14px;height:14px}.chart{touch-action:pan-y;-webkit-user-select:none;user-select:none;position:relative}.chart svg{width:100%;display:block;overflow:visible}.chart text{fill:var(--muted);font-size:11px;font-family:var(--sans);font-variant-numeric:tabular-nums}.chart .grid{stroke:var(--border);stroke-width:1px;shape-rendering:crispedges}.chart .line{fill:none;stroke-width:2px;stroke-linejoin:round;stroke-linecap:round}.chart .cross{stroke:var(--text-2);stroke-width:1px;shape-rendering:crispedges}.chart .ptitle{fill:var(--text-2);font-size:12px;font-weight:600}.chart:focus-visible{outline-offset:4px;border-radius:8px}.tt{pointer-events:none;z-index:2;background:var(--card);border:1px solid var(--border);white-space:nowrap;border-radius:10px;min-width:128px;padding:8px 10px;font-size:12px;position:absolute;transform:translate(-50%)}.tt .tv{color:var(--text);font-size:15px;font-weight:650}.tt .tl{color:var(--text-2)}.tt .tr{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.tt .key{vertical-align:middle;border-radius:1px;width:12px;height:2px;margin-right:6px;display:inline-block}.slider{appearance:none;background:0 0;width:100%;height:44px;margin:0}.slider::-webkit-slider-runnable-track{background:var(--border);border-radius:2px;height:4px}.slider::-moz-range-track{background:var(--border);border-radius:2px;height:4px}.slider::-webkit-slider-thumb{-webkit-appearance:none;background:var(--accent);border:3px solid var(--card);width:26px;height:26px;box-shadow:0 0 0 1px var(--accent);border-radius:50%;margin-top:-11px}.slider::-moz-range-thumb{background:var(--accent);border:3px solid var(--card);width:20px;height:20px;box-shadow:0 0 0 1px var(--accent);border-radius:50%}.slider.unset::-webkit-slider-thumb{background:var(--card);box-shadow:0 0 0 1px var(--muted)}.anchors{height:34px;margin:-6px 13px 0;position:relative}.anchors span{color:var(--muted);text-align:center;width:52px;font-size:11px;line-height:1.15;position:absolute;transform:translate(-50%)}.anchors span:first-child{transform:translate(-30%)}.anchors span:last-child{transform:translate(-70%)}.anchors span b{color:var(--text-2);font-size:11px;font-weight:600;display:block}.backdrop{z-index:50;background:#0000006b;animation:.18s fade;position:fixed;inset:0}.sheet{z-index:51;background:var(--surface);border:1px solid var(--border);border-bottom:0;border-radius:18px 18px 0 0;flex-direction:column;max-width:560px;max-height:88dvh;margin:0 auto;animation:.22s ease-out up;display:flex;position:fixed;bottom:0;left:0;right:0}.sheet .grab{background:var(--border);border-radius:2px;width:36px;height:4px;margin:8px auto 0}.sheet header{justify-content:space-between;align-items:center;min-height:52px;padding:4px 8px 4px 20px;display:flex}.sheet header h2{font-size:17px;font-weight:650}.sheet .body{overscroll-behavior:contain;flex-direction:column;gap:20px;padding:4px 20px 16px;display:flex;overflow-y:auto}.sheet footer{padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--border);flex-direction:column;gap:8px;display:flex}@keyframes up{0%{opacity:0;transform:translateY(40px)}}@keyframes fade{0%{opacity:0}}.tpl-list{border:1px solid var(--border);border-radius:var(--r-ctl);background:var(--card);flex-direction:column;max-height:190px;display:flex;overflow-y:auto}.tpl-list button{text-align:left;border:0;border-top:1px solid var(--border);background:0 0;justify-content:space-between;align-items:center;gap:8px;min-height:48px;padding:6px 12px;display:flex}.tpl-list button:first-child{border-top:0}.tpl-list button[aria-pressed=true]{background:var(--accent-wash);font-weight:600}.param{justify-content:space-between;align-items:center;gap:12px;display:flex}.param .pl{font-size:15px}.auth{flex-direction:column;justify-content:center;gap:24px;max-width:420px;min-height:100dvh;margin:0 auto;padding:24px 16px;display:flex}.brand{align-items:center;gap:12px;display:flex}.brand img{border-radius:10px;width:40px;height:40px}.zones-tbl .sw{background:var(--zc);border-radius:3px;width:10px;height:10px;margin-right:8px;display:inline-block}.theme-seg{max-width:360px}.warn-text{color:var(--warn)}.kv .switch-row{flex:1}.md p{margin:0 0 8px}.md p:last-child{margin-bottom:0}.md ul,.md ol{margin:0 0 8px;padding-left:20px}.md li{margin:2px 0}.cardref{border:1px solid var(--border);background:var(--card);min-height:22px;color:var(--accent);vertical-align:1px;border-radius:6px;align-items:center;margin:0 1px;padding:0 7px;font-size:12px;font-weight:600;line-height:1.4;display:inline-flex}.cardref:active{background:var(--accent-wash)}.chat{padding-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 96px)}.msgs{flex-direction:column;gap:14px;display:flex}.bubble.user{background:var(--accent-wash);border:1px solid var(--border);overflow-wrap:anywhere;border-radius:16px 16px 4px;align-self:flex-end;max-width:85%;padding:8px 14px}.tmsg{overflow-wrap:anywhere;max-width:100%}.statusline{align-items:center;gap:8px;display:flex}.endmark{height:1px;scroll-margin-bottom:150px}.chatbar{left:0;right:0;bottom:calc(var(--tab-h) + env(safe-area-inset-bottom));z-index:19;background:var(--surface);border-top:1px solid var(--border);padding:8px 12px;position:fixed}.chatbar-in{align-items:center;gap:4px;max-width:560px;margin:0 auto;display:flex}.sendbtn{color:var(--accent)}.sendbtn:disabled{opacity:.35}.stopbtn{color:var(--danger)}.pcard{flex-direction:column;gap:8px;display:flex}.pcard.rejected,.pcard.undone{opacity:.7}.ptitle2{font-size:16px;font-weight:650}.pline{font-size:15px}.qcard{flex-direction:column;gap:10px;display:flex}.err-card{border-color:var(--danger)}.pcard .pill-ok{font-size:14px}.nxt{text-align:left;background:var(--card);border:1px solid var(--border);border-radius:var(--r-card);width:100%;color:inherit;padding:12px 16px;display:block}.nxt:active{background:var(--accent-wash)}.tag.muted-tag{color:var(--muted);font-weight:500}.tag.kind{border-style:dashed}
