:root{--bg: #f3f4f7;--surface: #ffffff;--surface-2: #eef0f4;--text: #14171c;--muted: #687080;--line: #e2e5eb;--accent: #16a36a;--accent-ink: #ffffff;--ok: #16a36a;--ok-bg: #e3f6ec;--soon: #e38a00;--soon-bg: #fff1dc;--overdue: #d93838;--overdue-bg: #fde6e6;--missing: #8b919c;--missing-bg: #eceef2;--radius: 18px;--radius-s: 12px;--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .05);--tabbar-h: 64px;--safe-b: env(safe-area-inset-bottom, 0px);--safe-t: env(safe-area-inset-top, 0px);color-scheme:light}@media (prefers-color-scheme: dark){:root{--bg: #0f1115;--surface: #181b21;--surface-2: #21252d;--text: #eef0f3;--muted: #949bab;--line: #2a2f38;--accent: #22b878;--ok: #2fc282;--ok-bg: rgba(47, 194, 130, .14);--soon: #f5a524;--soon-bg: rgba(245, 165, 36, .15);--overdue: #f25555;--overdue-bg: rgba(242, 85, 85, .15);--missing: #8b919c;--missing-bg: rgba(139, 145, 156, .16);--shadow: none;color-scheme:dark}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;background:var(--bg);color:var(--text)}body{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;line-height:1.4;-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}body.noscroll{overflow:hidden}h1,h2,h3{margin:0;letter-spacing:-.01em}h1{font-size:28px;font-weight:750}h2{font-size:19px;font-weight:700}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;background:none;border:0;padding:0;text-align:inherit}a{color:inherit;text-decoration:none}code{font-size:.9em;background:var(--surface-2);padding:1px 5px;border-radius:6px}.muted{color:var(--muted)}.small{font-size:13px}.center{text-align:center}.content{max-width:640px;margin:0 auto;padding:calc(var(--safe-t) + 16px) 16px calc(var(--tabbar-h) + var(--safe-b) + 24px)}.page{display:flex;flex-direction:column;gap:16px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding-top:8px}.page-head p{margin:4px 0 0;font-size:14px}.section-head{display:flex;justify-content:space-between;align-items:baseline;margin:6px 2px 10px}.link{color:var(--accent);font-weight:600;font-size:15px}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow)}.tabbar{position:fixed;inset:auto 0 0 0;z-index:20;display:grid;grid-template-columns:repeat(5,1fr);height:calc(var(--tabbar-h) + var(--safe-b));padding-bottom:var(--safe-b);background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:saturate(180%) blur(18px);-webkit-backdrop-filter:saturate(180%) blur(18px);border-top:1px solid var(--line)}.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;font-weight:600;color:var(--muted)}.tab.on{color:var(--accent)}.offline{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:center;gap:8px;padding:calc(var(--safe-t) + 6px) 12px 6px;background:var(--soon);color:#1d1300;font-size:13px;font-weight:600}.dash-head{display:flex;justify-content:space-between;align-items:flex-end;padding-top:8px}.eyebrow{margin:0 0 2px;font-size:13px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.04em}.plate{border:2px solid var(--text);border-radius:6px;padding:2px 8px;font-weight:700;font-size:14px;letter-spacing:.05em}.odo-card{display:grid;gap:2px;width:100%;padding:18px 20px;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);position:relative}.odo-value{font-size:40px;font-weight:780;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1.1}.odo-value small{font-size:18px;color:var(--muted);font-weight:600}.odo-edit{position:absolute;top:16px;right:16px;display:inline-flex;align-items:center;gap:4px;color:var(--accent);font-weight:600;font-size:14px}.hero{display:flex;gap:14px;align-items:center;padding:16px 18px;border-radius:var(--radius)}.hero p{margin:2px 0 0;font-size:14px;opacity:.85}.hero-icon{flex:none;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;color:#fff}.hero-ok{background:var(--ok-bg)}.hero-ok .hero-icon{background:var(--ok)}.hero-soon{background:var(--soon-bg)}.hero-soon .hero-icon{background:var(--soon)}.hero-overdue{background:var(--overdue-bg)}.hero-overdue .hero-icon{background:var(--overdue)}.hero-missing,.hero-info{background:var(--missing-bg)}.hero-missing .hero-icon{background:var(--missing)}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:10px}.stat{background:var(--surface);border-radius:var(--radius-s);padding:12px 10px;box-shadow:var(--shadow);display:grid;gap:2px;text-align:center}.stat b{font-size:28px;font-weight:780;font-variant-numeric:tabular-nums}.stat span{font-size:12px;color:var(--muted);font-weight:600}.stat.st-overdue b{color:var(--overdue)}.stat.st-soon b{color:var(--soon)}.stat.st-ok b{color:var(--ok)}.stat.st-missing b{color:var(--missing)}.info-card{padding:6px 18px}.info-row{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:15px}.info-row:last-child{border-bottom:0}.info-row b{text-align:right;font-weight:600}.list{display:flex;flex-direction:column;gap:10px}.item-card{display:flex;align-items:flex-start;gap:12px;width:100%;padding:14px 14px 14px 16px;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);position:relative;overflow:hidden}.item-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--c, transparent)}.st-overdue{--c: var(--overdue)}.st-soon{--c: var(--soon)}.st-ok{--c: var(--ok)}.st-missing{--c: var(--missing)}.st-info{--c: var(--line)}.item-main{flex:1;min-width:0;display:grid;gap:2px}.item-name{font-weight:650}.item-due{font-size:14px}.st-overdue .item-due{color:var(--overdue);font-weight:600}.st-soon .item-due{color:var(--soon);font-weight:600}.st-missing .item-due,.st-info .item-due{color:var(--muted)}.item-rem{font-size:13px}.chev{color:var(--muted);align-self:center}.bar{height:5px;background:var(--surface-2);border-radius:99px;overflow:hidden;margin-top:8px}.bar span{display:block;height:100%;background:var(--c);border-radius:99px}.dot{flex:none;width:12px;height:12px;border-radius:50%;margin-top:5px;background:var(--c)}.dot-overdue{--c: var(--overdue)}.dot-soon{--c: var(--soon)}.dot-ok{--c: var(--ok)}.dot-missing{--c: var(--missing)}.dot-info{--c: var(--line)}.pill{display:inline-block;padding:4px 10px;border-radius:99px;font-size:13px;font-weight:700}.pill-overdue{background:var(--overdue-bg);color:var(--overdue)}.pill-soon{background:var(--soon-bg);color:var(--soon)}.pill-ok{background:var(--ok-bg);color:var(--ok)}.pill-missing,.pill-info{background:var(--missing-bg);color:var(--missing)}.chips{display:flex;gap:8px;overflow-x:auto;margin:0 -16px;padding:0 16px 2px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chip{flex:none;padding:8px 14px;border-radius:99px;background:var(--surface);box-shadow:var(--shadow);font-size:14px;font-weight:600;display:inline-flex;gap:6px;align-items:center;border:1px solid var(--line)}.chip.on{background:var(--text);color:var(--bg);border-color:var(--text)}.chip-n{font-size:12px;opacity:.7}.detail-status{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px}.kv{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 0;margin:0;font-size:15px}.kv dt{color:var(--muted);padding-right:16px}.kv dd{margin:0;text-align:right;font-weight:550;white-space:nowrap}.kv dt,.kv dd{padding-bottom:12px;border-bottom:1px solid var(--line)}.note{background:var(--surface-2);padding:10px 12px;border-radius:var(--radius-s);font-size:14px;margin:14px 0 0}.mini-hist{list-style:none;margin:0;padding:0}.mini-hist li{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-size:15px}.timeline{position:relative;display:flex;flex-direction:column;gap:10px}.timeline .year{font-size:15px;color:var(--muted);margin:6px 0 2px}.tl-item{display:flex;gap:12px;width:100%}.tl-dot{flex:none;width:12px;height:12px;margin-top:18px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--ok-bg)}.tl-card{flex:1;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px 16px;display:grid;gap:8px}.tl-top{display:flex;justify-content:space-between;gap:8px}.tags{display:flex;flex-wrap:wrap;gap:6px}.tag{font-size:12.5px;padding:3px 9px;border-radius:99px;background:var(--surface-2);font-weight:550}.odo-list{list-style:none;margin:0;padding:4px 16px}.odo-list li,.backup-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.odo-list li:last-child,.backup-list li:last-child{border-bottom:0}.odo-list li>div:first-child,.backup-list li>div:first-child{display:grid;gap:2px}.odo-right{display:flex;align-items:center;gap:8px}.delta{font-size:13px;color:var(--ok);font-weight:600;font-variant-numeric:tabular-nums}.backup-list{list-style:none;margin:14px 0 0;padding:0}.menu{overflow:hidden}.menu-row{display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;border-bottom:1px solid var(--line);color:var(--text)}.menu-row:last-child{border-bottom:0}.menu-row>svg{color:var(--muted)}.menu-row .dot{margin-top:0}.menu-row.inactive{opacity:.5}.menu-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--surface-2);color:var(--accent);flex:none}.menu-text{flex:1;display:grid;gap:1px;min-width:0}.menu-text small{font-size:13px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 18px;border-radius:14px;font-weight:650;font-size:16px;transition:transform .08s,opacity .15s}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.55}.btn-primary{background:var(--accent);color:var(--accent-ink)}.btn-ghost{background:var(--surface-2)}.btn-small{min-height:36px;padding:0 12px;font-size:14px;border-radius:10px;background:var(--surface-2);font-weight:600}.btn.block{width:100%}.btn.danger,.danger{color:var(--overdue)}.btn-row{display:flex;gap:10px;width:100%}.grow{flex:1}.icon-btn{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);flex:none}.icon-btn.primary{background:var(--accent);color:var(--accent-ink)}.icon-btn.subtle{background:transparent;color:var(--muted);width:36px;height:36px}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#00000073;display:flex;align-items:flex-end;justify-content:center;animation:fade .18s ease}.sheet{width:100%;max-width:640px;max-height:calc(100dvh - var(--safe-t) - 24px);display:flex;flex-direction:column;background:var(--surface);border-radius:22px 22px 0 0;animation:up .24s cubic-bezier(.2,.9,.3,1)}.sheet-grip{width:38px;height:5px;border-radius:9px;background:var(--line);margin:8px auto 0}.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px 6px 20px}.sheet-body{overflow-y:auto;padding:8px 20px 16px;display:flex;flex-direction:column;gap:14px;-webkit-overflow-scrolling:touch}.sheet-foot{padding:12px 16px calc(12px + var(--safe-b));border-top:1px solid var(--line);display:flex}@keyframes up{0%{transform:translateY(40%);opacity:0}to{transform:none;opacity:1}}@keyframes fade{0%{opacity:0}}.field{display:grid;gap:6px}.field-label{font-size:13px;font-weight:650;color:var(--muted)}.field-hint{font-size:12.5px;color:var(--muted);display:block}input:not([type=checkbox]),select,textarea{width:100%;min-height:48px;padding:11px 13px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2);font-size:16px;outline:none;-moz-appearance:none;appearance:none;-webkit-appearance:none}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}textarea{resize:vertical;min-height:64px}.big-input{font-size:30px!important;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.section-label{font-size:13px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-top:4px}.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:14px}.toggle-label{display:block;font-weight:600}.switch{-moz-appearance:none;appearance:none;-webkit-appearance:none;flex:none;width:50px;height:30px;border-radius:99px;background:var(--line);position:relative;transition:background .2s;margin:0}.switch:after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #00000040;transition:transform .2s}.switch:checked{background:var(--accent)}.switch:checked:after{transform:translate(20px)}.chip-toggle{display:flex;align-items:center;gap:8px;padding:12px 14px;border-radius:12px;border:1.5px dashed var(--line);font-weight:650;color:var(--muted)}.chip-toggle.on{border-style:solid;border-color:var(--accent);color:var(--accent);background:var(--ok-bg)}.checklist{list-style:none;margin:0;padding:0;display:grid;gap:6px}.checklist label{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:var(--surface-2);cursor:pointer}.checklist input{position:absolute;opacity:0;pointer-events:none}.cbox{flex:none;width:24px;height:24px;border-radius:7px;border:2px solid var(--line);display:grid;place-items:center;color:transparent;background:var(--surface)}.checklist label.on .cbox{background:var(--accent);border-color:var(--accent);color:#fff}.cl-text{display:grid;gap:1px}.cl-text small{font-size:12.5px}.toast{position:fixed;left:50%;bottom:calc(var(--tabbar-h) + var(--safe-b) + 16px);transform:translate(-50%);z-index:70;max-width:calc(100% - 32px);padding:12px 18px;border-radius:14px;font-weight:600;font-size:15px;background:var(--text);color:var(--bg);box-shadow:0 8px 24px #0003;animation:fade .2s}.toast-err{background:var(--overdue);color:#fff}.empty{padding:32px 16px;text-align:center;color:var(--muted)}.loading{display:flex;justify-content:center;gap:6px;padding:48px}.loading span{width:8px;height:8px;border-radius:50%;background:var(--muted);animation:pulse 1s infinite ease-in-out}.loading span:nth-child(2){animation-delay:.15s}.loading span:nth-child(3){animation-delay:.3s}@keyframes pulse{0%,to{opacity:.25}50%{opacity:1}}.login{min-height:100dvh;display:grid;place-items:center;padding:24px 16px}.login-card{width:100%;max-width:360px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}.login-card img{border-radius:18px;margin-bottom:6px}.login-card p{margin:0 0 12px}.form-err{color:var(--overdue);font-size:14px;font-weight:600}
