:root{--bg:#f6f5f1;--surface:#fff;--surface-2:#f0eee8;--text:#1d1c1a;--muted:#6b6860;--border:#e3e0d8;--accent:#4338ca;--accent-text:#fff;--accent-soft:#e0e7ff;--danger:#b42318;--danger-soft:#fde8e6;--warn:#b45309;--warn-soft:#fef3c7;--ok:#15803d;--ok-soft:#dcfce7;--grey:#8a877f;--grey-soft:#ecebe7;--bar:#4338ca;--bar-2:#a5b4fc;--c0:#2a78d6;--c1:#eb6834;--c2:#1baf7a;--c3:#eda100;--c4:#e87ba4;--c5:#008300;--c6:#4a3aa7;--c7:#e34948;--c-other:#b5b2a8;--radius:14px;--shadow:0 1px 2px #0000000a, 0 4px 16px #0000000a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;-webkit-text-size-adjust:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.45}@media (prefers-color-scheme:dark){:root{--bg:#141413;--surface:#1e1d1b;--surface-2:#2a2926;--text:#f2f0ea;--muted:#a19e95;--border:#34322e;--accent:#a5b4fc;--accent-text:#1e1b4b;--accent-soft:#25234a;--danger:#f87171;--danger-soft:#3b1715;--warn:#fbbf24;--warn-soft:#3a2a0c;--ok:#4ade80;--ok-soft:#12301d;--grey:#a19e95;--grey-soft:#2a2926;--bar:#818cf8;--bar-2:#3730a3;--c0:#3987e5;--c1:#d95926;--c2:#199e70;--c3:#c98500;--c4:#d55181;--c5:#008300;--c6:#9085e9;--c7:#e66767;--c-other:#5e5b54;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);margin:0}body{min-height:100dvh}button,input,select,textarea{font:inherit;color:inherit}h1,h2,h3{margin:0;line-height:1.2}h1{font-size:1.25rem}h2{font-size:1.05rem}h3{font-size:.95rem}a{color:var(--accent)}.app{min-height:100dvh;display:flex}.nav{z-index:20;background:var(--surface);border-top:1px solid var(--border);padding:6px 4px calc(6px + env(safe-area-inset-bottom));justify-content:space-around;display:flex;position:fixed;bottom:0;left:0;right:0}.nav button{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:10px;flex-direction:column;flex:1;align-items:center;gap:2px;padding:6px 2px;font-size:.72rem;display:flex}.nav button svg{width:22px;height:22px}.nav button.active{color:var(--accent);font-weight:600}.nav .brand{display:none}.main{min-width:0;padding:16px 16px calc(84px + env(safe-area-inset-bottom));padding-top:calc(16px + env(safe-area-inset-top));flex:1;max-width:960px;margin:0 auto}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}@media (width>=820px){.nav{border-top:0;border-right:1px solid var(--border);flex-direction:column;justify-content:flex-start;gap:4px;width:210px;height:100dvh;padding:20px 12px;position:sticky;top:0;bottom:auto}.nav .brand{align-items:center;gap:8px;padding:0 10px 16px;font-weight:700;display:flex}.nav button{flex-direction:row;flex:0;justify-content:flex-start;gap:10px;padding:10px;font-size:.95rem}.nav button.active{background:var(--accent-soft)}.main{padding:28px 32px}}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.stack{flex-direction:column;gap:12px;display:flex}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.spread{justify-content:space-between;align-items:center;gap:8px;display:flex}.grid-2{grid-template-columns:1fr;gap:12px;display:grid}@media (width>=640px){.grid-2{grid-template-columns:1fr 1fr}}.muted{color:var(--muted)}.small{font-size:.85rem}.tiny{font-size:.75rem}.num{font-variant-numeric:tabular-nums}.big{letter-spacing:-.01em;font-size:1.6rem;font-weight:700}.grow{flex:1;min-width:0}.ellipsis{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.empty{text-align:center;color:var(--muted);padding:28px 12px}.btn{border:1px solid var(--border);background:var(--surface);cursor:pointer;white-space:nowrap;border-radius:10px;justify-content:center;align-items:center;gap:6px;min-height:40px;padding:9px 14px;font-weight:500;display:inline-flex}.btn:hover{background:var(--surface-2)}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn.primary:hover{filter:brightness(1.05)}.btn.danger{color:var(--danger)}.btn.ghost{background:0 0;border-color:#0000}.btn.sm{min-height:32px;padding:5px 10px;font-size:.85rem}.btn:disabled{opacity:.5;cursor:not-allowed}.btn svg{width:18px;height:18px}.field{color:var(--muted);flex-direction:column;gap:4px;font-size:.85rem;font-weight:500;display:flex}.input,select.input,textarea.input{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);border-radius:10px;min-height:42px;padding:9px 11px;font-size:1rem}textarea.input{resize:vertical;min-height:72px}.input:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:#0000}.seg{border:1px solid var(--border);border-radius:10px;flex-wrap:nowrap;align-self:flex-start;max-width:100%;display:inline-flex;overflow:hidden}.seg button{background:var(--surface);cursor:pointer;white-space:nowrap;border:0;flex:auto;min-height:40px;padding:8px 12px;font-size:.9rem}@media (width<=420px){.seg button{padding:8px 9px;font-size:.85rem}}.seg button+button{border-left:1px solid var(--border)}.seg button.on{background:var(--accent-soft);color:var(--accent);font-weight:600}.chip{white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:2px 9px;font-size:.75rem;font-weight:600;display:inline-flex}.chip .dot{background:currentColor;border-radius:50%;width:8px;height:8px}.chip.short{background:0 0;padding:0}.chip.short .dot{width:10px;height:10px}.chip.cat{color:var(--muted);background:var(--surface-2);font-weight:500}.chip.pending{color:var(--warn);background:var(--warn-soft)}.chip.st-essential{color:var(--c0);background:var(--surface-2)}.chip.st-need{color:var(--c2);background:var(--surface-2)}.chip.st-want{color:var(--c1);background:var(--surface-2)}.chip.st-waste{color:var(--danger);background:var(--danger-soft)}.alert{border-radius:10px;padding:10px 12px;font-size:.9rem}.alert.warn{background:var(--warn-soft);color:var(--warn)}.alert.danger{background:var(--danger-soft);color:var(--danger)}.alert.ok{background:var(--ok-soft);color:var(--ok)}.alert.info{background:var(--accent-soft);color:var(--accent)}.list{flex-direction:column;display:flex}.list-item{border-bottom:1px solid var(--border);cursor:pointer;text-align:left;background:0 0;border-top:0;border-left:0;border-right:0;align-items:center;gap:12px;width:100%;padding:12px 4px;display:flex}.list-item:last-child{border-bottom:0}.list-item:hover{background:var(--surface-2)}.month-label{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;padding:14px 4px 4px;font-size:.8rem;font-weight:600}.kpis{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}@media (width>=640px){.kpis{grid-template-columns:repeat(4,1fr)}}.kpi .label{color:var(--muted);font-size:.8rem}.kpi .value{font-size:1.3rem;font-weight:700}.progress{background:var(--surface-2);border-radius:999px;height:10px;overflow:hidden}.progress>div{background:var(--bar);border-radius:999px;height:100%;transition:width .3s}.hbar{grid-template-columns:minmax(0,1.4fr) minmax(48px,1fr) auto;align-items:center;gap:10px;padding:5px 0;font-size:.9rem;display:grid}.hbar .track{background:var(--surface-2);border-radius:999px;height:10px;overflow:hidden}.hbar .track>div{background:var(--bar);border-radius:999px;height:100%}.months{grid-template-columns:repeat(12,1fr);align-items:end;gap:4px;height:120px;display:grid}.months .col{flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;height:100%;display:flex}.months .bar{background:var(--bar);border-radius:4px 4px 2px 2px;width:100%;max-width:28px;min-height:2px}.months .bar.zero{background:var(--surface-2)}.months .bar.future{background:var(--bar-2);opacity:.4}.months .m{color:var(--muted);font-size:.65rem}.voice{align-items:stretch;gap:8px;display:flex}.mic{background:var(--accent);width:52px;color:var(--accent-text);cursor:pointer;border:0;border-radius:12px;flex:none;justify-content:center;align-items:center;display:flex}.mic svg{width:24px;height:24px}.mic.listening{background:var(--danger);animation:1.2s infinite pulse}@keyframes pulse{0%,to{box-shadow:0 0 #dc262673}50%{box-shadow:0 0 0 8px #dc262600}}.parsed{grid-template-columns:auto 1fr;gap:6px 14px;font-size:.95rem;display:grid}.parsed dt{color:var(--muted)}.parsed dd{margin:0;font-weight:600}.backdrop{z-index:50;background:#0006;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--bg);width:100%;max-width:560px;max-height:92dvh;padding:18px 16px calc(48px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;overflow-y:auto}@media (width>=640px){.backdrop{align-items:center}.sheet{border-radius:18px}}.sheet-head{z-index:2;background:var(--bg);justify-content:space-between;align-items:center;gap:8px;margin:-18px -16px 14px;padding:14px 16px 10px;display:flex;position:sticky;top:-18px}.combo{position:relative}.combo-list{z-index:10;background:var(--surface);border:1px solid var(--border);border-radius:10px;max-height:260px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 8px 24px #0000001f}.combo-list button{text-align:left;cursor:pointer;width:100%;color:var(--text);background:0 0;border:0;align-items:center;gap:8px;padding:10px 12px;display:flex}.combo-list button:hover,.combo-list button.hl{background:var(--surface-2)}.combo-list .add{color:var(--accent);border-top:1px solid var(--border);font-weight:600}.emoji{text-align:center;flex:none;width:1.6rem;font-size:1.15rem;line-height:1}.cat-ico{background:var(--surface-2);border-radius:10px;flex:none;justify-content:center;align-items:center;width:36px;height:36px;font-size:1.1rem;display:inline-flex}.swatch{border-radius:3px;flex:none;width:10px;height:10px;display:inline-block}.cat-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:6px;display:grid}.cat-grid button{border:1px solid var(--border);background:var(--surface);cursor:pointer;text-align:center;min-width:0;min-height:58px;color:var(--text);border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:6px 4px;font-size:.78rem;line-height:1.15;display:flex}.cat-grid button .emoji{width:auto;font-size:1.2rem}.cat-grid button.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);font-weight:600}.entry-box{min-height:64px}.kpi .value{overflow-wrap:anywhere}.kpi .sub{color:var(--muted);font-size:.75rem}.days{align-items:end;gap:2px;height:120px;display:grid}.days .col{flex-direction:column;justify-content:flex-end;height:100%;display:flex;position:relative}.days .bar{background:var(--bar);border-radius:3px 3px 1px 1px;width:100%;min-height:2px}.days .bar.zero{background:var(--surface-2)}.days .bar.future{background:0 0}.days .col:hover .bar:not(.zero){filter:brightness(1.15)}.axis{color:var(--muted);justify-content:space-between;margin-top:4px;font-size:.65rem;display:flex}.avg-line{border-top:1px dashed var(--muted);opacity:.6;pointer-events:none;position:absolute;left:0;right:0}.donut-wrap{grid-template-columns:150px 1fr;align-items:center;gap:16px;display:grid}@media (width<=420px){.donut-wrap{grid-template-columns:1fr;justify-items:center}}.donut-wrap svg{width:150px;height:150px}.donut-wrap svg circle.seg{cursor:default;transition:stroke-width .15s}.donut-wrap svg circle.seg:hover{stroke-width:26px}.legend{flex-direction:column;gap:4px;width:100%;font-size:.85rem;display:flex}.legend .li{grid-template-columns:auto 1fr auto auto;align-items:center;gap:8px;display:grid}.tip{z-index:60;pointer-events:none;background:var(--text);color:var(--bg);white-space:nowrap;border-radius:8px;padding:5px 9px;font-size:.8rem;position:fixed;transform:translate(-50%,calc(-100% - 8px))}.split{background:var(--surface-2);border-radius:999px;gap:2px;height:12px;display:flex;overflow:hidden}.split>div{height:100%}.progress.warn>div{background:var(--warn)}.progress.over>div{background:var(--danger)}.settings-list .list-item{min-height:56px}.back{color:var(--accent);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:4px 0;font-weight:600;display:inline-flex}.back svg{width:18px;height:18px}.nav button{min-height:44px}.actions{justify-content:flex-end;gap:8px;display:flex}@media (width<=420px){.actions>.btn{flex:1;padding-left:8px;padding-right:8px}}.help summary{cursor:pointer;justify-content:space-between;align-items:center;min-height:32px;list-style:none;display:flex}.help summary::-webkit-details-marker{display:none}.help summary:after{content:"+";color:var(--muted);font-size:1.3rem}.help[open] summary:after{content:"–"}.help ol,.help ul{margin:0;padding-left:20px}.help li{margin:4px 0}
