:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#202127;--surface:#303846;--surface-2:#394150;--surface-3:#444d5e;--line:#4a5466;--text:#f6f8fb;--muted:#b4bdcc;--faint:#8a94a6;--blue:#4385f4;--blue-soft:#4385f433;--ok:#3fae6a;--ok-text:#8fe0ad;--amber:#f1b84b;--amber-text:#ffd27f;--bad:#e5484d;--bad-text:#ff9a9d;--miss:#7a4a50;--radius:16px;--nav-h:72px;--focus-a:#ffd23f;--focus-b:#ff8a1f;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}*{box-sizing:border-box}html{scroll-padding-top:80px}body{background:var(--bg);min-width:300px;margin:0}button,input,select,textarea{font:inherit;color:inherit}a{color:#a7c8ff}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}:focus-visible{outline-offset:2px;outline:3px solid #a7c8ff}.boot,.boot-error{text-align:center;color:var(--muted);padding:40px 20px}.muted{color:var(--muted)}.small-text{font-size:13px;line-height:1.45}.center{text-align:center}.grow{flex:1;min-width:0}em{color:var(--faint);font-style:normal;font-weight:400}.app{max-width:1120px;padding:0 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom,0px));margin:0 auto}.topbar{z-index:20;min-height:60px;padding:calc(8px + env(safe-area-inset-top,0px)) 0 8px;background:color-mix(in srgb, var(--bg) 92%, transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);align-items:center;gap:10px;display:flex;position:sticky;top:0}.topbar-title{flex:1;min-width:0}.topbar h1{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:21px;line-height:1.2;overflow:hidden}.topbar-subtitle{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;overflow:hidden}.topbar-actions{align-items:center;gap:6px;display:flex}.brand-mark{background:#29394b;border:2px solid #76c5b5;border-radius:12px;flex:0 0 40px;place-items:center;width:40px;height:40px;font-weight:800;display:grid}.back-button{background:var(--blue);color:#fff;width:44px;height:44px;box-shadow:0 0 0 3px var(--blue-soft);border:0;border-radius:13px;flex:0 0 44px;place-items:center;font-size:24px;display:grid}.icon-button{background:var(--surface-2);min-width:40px;height:40px;color:var(--text);border:0;border-radius:12px;place-items:center;padding:0 8px;font-size:17px;text-decoration:none;display:inline-grid}.sync-chip{height:34px;color:var(--text);background:var(--surface-2);border:1px solid var(--line);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:0 11px;font-size:12.5px;font-weight:650;text-decoration:none;display:inline-flex}.sync-chip.tone-ok{color:var(--ok-text);border-color:#3fae6a88}.sync-chip.tone-warn{color:var(--amber-text);border-color:#f1b84b88}.sync-chip.tone-error{color:var(--bad-text);background:#4a2a30;border-color:#e5484d}.sync-chip.tone-busy{color:#a7c8ff}.content{padding-top:6px}.bottom-nav{z-index:30;padding:8px max(8px, env(safe-area-inset-left,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(8px, env(safe-area-inset-right,0px));background:var(--surface);border-top:1px solid var(--line);grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;display:grid;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -6px 24px #0007}.bottom-nav button{min-width:0;min-height:56px;color:var(--muted);background:0 0;border:0;border-radius:13px;flex-direction:column;justify-content:center;align-items:center;gap:2px;display:flex}.bottom-nav button.active{background:var(--blue);color:#fff}.nav-icon{font-size:23px;line-height:1.1}.nav-label{font-size:12px;font-weight:650}@media (width>=760px){.bottom-nav{border:1px solid var(--line);border-bottom:0;border-radius:18px 18px 0 0;width:min(100%,720px);left:50%;right:auto;transform:translate(-50%)}}.button{background:var(--surface-2);min-height:46px;color:var(--text);text-align:center;border:0;border-radius:12px;justify-content:center;align-items:center;gap:6px;padding:10px 16px;font-weight:650;text-decoration:none;display:inline-flex}.button.primary{background:var(--blue);color:#fff}.button.danger{background:var(--bad);color:#fff}.button.danger-outline{color:var(--bad-text);background:0 0;border:1px solid #e5484d99}.small-button{background:var(--surface-3);min-height:38px;color:var(--text);white-space:nowrap;border:0;border-radius:10px;justify-content:center;align-items:center;padding:6px 12px;font-size:14px;font-weight:650;text-decoration:none;display:inline-flex}.small-button.primary{background:var(--blue);color:#fff}.link-button{color:#a7c8ff;text-underline-offset:3px;background:0 0;border:0;padding:6px 2px;font-size:14px;text-decoration:underline}.chip-button{background:var(--surface-3);color:#cfe0ff;border:0;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:650}.action-bar{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.action-bar>*{flex:auto}.segmented{gap:6px;margin:10px 0;display:grid}.segmented.two{grid-template-columns:repeat(2,minmax(0,1fr))}.segmented.three{grid-template-columns:repeat(3,minmax(0,1fr))}.segmented.four{grid-template-columns:repeat(2,minmax(0,1fr))}.segmented.five{grid-template-columns:repeat(5,minmax(0,1fr))}@media (width>=560px){.segmented.four{grid-template-columns:repeat(4,minmax(0,1fr))}}.segmented button{background:var(--surface-2);border:2px solid #0000;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-width:0;min-height:48px;padding:8px 6px;font-size:14px;font-weight:650;display:flex}.segmented button small{color:var(--muted);font-size:11.5px;font-weight:400}.segmented button.active{background:var(--blue);color:#fff}.segmented button.active small{color:#e2ecff}.segmented.five button{padding:6px 2px;font-size:12.5px}.round{background:#ffffff26;border:0;border-radius:50%;place-items:center;width:42px;height:42px;padding:0;font-size:22px;display:grid}.state-completed{--state:var(--ok);--state-text:var(--ok-text)}.state-partial{--state:var(--amber);--state-text:var(--amber-text)}.state-failed{--state:var(--bad);--state-text:var(--bad-text)}.state-missed{--state:var(--miss);--state-text:#e7b3b7}.state-pending{--state:var(--surface-3);--state-text:var(--muted)}.state-future,.state-not_scheduled,.state-paused{--state:transparent;--state-text:var(--faint)}.state-before_start,.state-after_end,.state-empty{--state:transparent;--state-text:transparent}.status-pill{white-space:nowrap;color:var(--state-text);background:color-mix(in srgb, var(--state) 22%, transparent);border:1px solid color-mix(in srgb, var(--state) 60%, transparent);border-radius:999px;align-items:center;gap:4px;padding:4px 8px;font-size:12px;font-weight:700;display:inline-flex}.status-pill.state-pending{background:#ffffff10;border-color:#ffffff30}.day-strip{touch-action:pan-y;grid-template-columns:30px repeat(7,minmax(0,1fr)) 30px;align-items:stretch;gap:4px;margin:4px 0 10px;display:grid}.strip-arrow{background:var(--surface);border:0;border-radius:10px;min-width:30px;min-height:40px;padding:0;font-size:22px}.strip-day{background:var(--surface);min-width:0;color:var(--muted);border:2px solid #0000;border-radius:12px;flex-direction:column;align-items:center;gap:2px;padding:8px 0;font-size:12px;display:flex}.strip-day b{color:var(--text);font-size:18px}.strip-day.is-today{border-color:#a7c8ff88}.strip-day.selected{background:var(--blue);color:#fff;border-color:var(--blue)}.strip-day.future{opacity:.7}.day-header{flex-wrap:wrap;align-items:center;gap:12px;margin:8px 0 4px;display:flex}.day-header>div:first-child{flex:1;min-width:180px}.day-title{margin:0;font-size:22px}.day-summary{color:var(--muted);margin:4px 0 0;font-weight:600}.ring{--p:0;background:conic-gradient(var(--ok) calc(var(--p) * 360deg), var(--surface-2) 0);border-radius:50%;flex:0 0 58px;place-items:center;width:58px;height:58px;display:grid}.ring span{background:var(--bg);border-radius:50%;place-items:center;width:44px;height:44px;font-size:13px;font-weight:750;display:grid}.slot-section{margin:16px 0 6px}.slot-title{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0 0 8px;font-size:13px}.card-grid{gap:10px;display:grid}@media (width>=900px){.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.habit-card{align-items:stretch;gap:10px;display:flex}.check-button{background:0 0;border:0;flex:0 0 54px;place-items:center;padding:0;display:grid}.check-button span{border:3px solid #c5c9d2;border-radius:50%;place-items:center;width:46px;height:46px;font-size:24px;font-weight:800;line-height:1;transition:transform .12s,background .12s;display:grid}.check-button:active span{transform:scale(.92)}.check-button.state-completed span{background:var(--ok);border-color:var(--ok);color:#10251a}.check-button.state-partial span{background:var(--amber);border-color:var(--amber);color:#2a2008}.check-button.state-failed span{background:var(--bad);border-color:var(--bad);color:#fff}.check-button.state-missed span{color:#e7b3b7;border-style:dashed;border-color:#b77}.check-button.state-not_scheduled span,.check-button.state-future span{color:var(--faint);border-style:dotted}.habit-body{border-radius:var(--radius);background:linear-gradient(135deg, color-mix(in srgb, var(--habit) 34%, var(--surface)) 0%, var(--surface) 75%);border-left:5px solid var(--habit);flex:1;min-width:0;padding:12px 13px}.habit-card.state-completed .habit-body{box-shadow:inset 0 0 0 1px #3fae6a55}.habit-head{color:inherit;flex-wrap:wrap;align-items:center;gap:8px 10px;text-decoration:none;display:flex}.habit-head .status-pill{margin-left:auto}.habit-icon{background:color-mix(in srgb, var(--habit,var(--surface-3)) 55%, #0003);border-radius:12px;flex:0 0 44px;place-items:center;width:44px;height:44px;font-size:24px;display:grid}.habit-icon.big{border-radius:18px;flex-basis:64px;width:64px;height:64px;font-size:36px}.habit-icon.small{border-radius:9px;flex-basis:30px;width:30px;height:30px;font-size:16px}.habit-titles{flex-direction:column;flex:140px;gap:2px;min-width:0;display:flex}.habit-name{overflow-wrap:anywhere;font-size:16px}.habit-goal{color:#d7deea;font-size:13px}.habit-meta{color:var(--muted);font-size:12px}.progress{background:#00000040;border-radius:9px;height:9px;margin-top:10px;overflow:hidden}.progress>div{background:var(--amber);border-radius:9px;height:100%;transition:width .2s}.habit-card.state-completed .progress>div{background:var(--ok)}.quantity-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:8px;display:flex}.quantity-value{color:#d7deea;font-size:14px}.quantity-value b{color:var(--text);font-size:18px}.exceeded-tag{color:var(--ok-text);font-weight:700}.quantity-editor{align-items:center;gap:6px;display:flex}.quantity-editor input{border:1px solid var(--line);text-align:center;background:#0003;border-radius:10px;width:92px;height:42px;font-size:16px;font-weight:700}.card-secondary-actions{justify-content:flex-end;margin-top:2px;display:flex}.card-secondary-actions .link-button{color:var(--muted);font-size:13px}.inline-error,.field-error{color:var(--bad-text);margin:6px 0 0;font-size:13px}.habit-card.compact .habit-body{padding:10px 12px}.empty-state{text-align:center;background:var(--surface);border-radius:var(--radius);margin:16px 0;padding:36px 16px}.empty-state.small{padding:20px 16px}.empty-state h3{margin:6px 0}.empty-state p{color:var(--muted)}.empty-icon{font-size:44px}.empty-actions{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.notice{background:var(--surface);border-left:4px solid var(--blue);border-radius:12px;margin:10px 0;padding:12px 14px;line-height:1.45}.notice.warn{border-left-color:var(--amber)}.notice.error{border-left-color:var(--bad);background:#3a2a30}.notice p{margin:0 0 8px}.notice p:last-child{margin-bottom:0}.week-nav{background:var(--surface);border-radius:14px;align-items:center;gap:8px;margin:6px 0 10px;padding:6px;display:flex}.week-nav .strip-arrow{background:var(--surface-2);min-width:40px;min-height:40px}.week-nav-label{flex-wrap:wrap;flex:1;justify-content:center;align-items:center;gap:10px;font-size:14px;display:flex}.panel{background:var(--surface);border-radius:var(--radius);margin:12px 0;padding:14px}.panel>:first-child{margin-top:0}.panel-title{text-transform:none;margin:0 0 10px;font-size:16px}.two-col{gap:0 14px;display:grid}.two-col>.panel,.two-col>.chart{margin:12px 0}@media (width>=900px){.two-col{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:start}}.week-grid{grid-template-columns:minmax(110px,1.4fr) repeat(7,minmax(0,1fr));align-items:stretch;gap:4px;display:grid}@media (width<=599px){.week-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.week-corner{display:none}.week-habit{grid-column:1/-1;margin-top:4px;padding:3px 8px}.week-cell{min-height:32px}}.week-row{display:contents}.week-corner{min-height:1px}.week-day-head{background:var(--surface-2);color:var(--muted);border:2px solid #0000;border-radius:10px;flex-direction:column;align-items:center;min-width:0;padding:5px 0;font-size:11px;display:flex}.week-day-head b{color:var(--text);font-size:15px}.week-day-head small{min-height:13px;font-size:10.5px}.week-day-head.is-today{border-color:#a7c8ff88}.week-day-head.selected{background:var(--blue);color:#fff}.week-day-head.selected small{color:#fff}.week-habit{background:color-mix(in srgb, var(--habit) 30%, transparent);border-left:4px solid var(--habit);min-width:0;color:var(--text);border-radius:9px;align-items:center;gap:6px;padding:4px 6px;font-size:13px;text-decoration:none;display:flex}.week-habit-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.week-cell{background:color-mix(in srgb, var(--state) 70%, transparent);color:#fff;border:1px solid #ffffff14;border-radius:9px;min-width:0;min-height:36px;padding:0;font-size:15px;font-weight:800}.week-cell.state-pending{color:var(--muted);background:0 0;border:2px solid #ffffff40}.week-cell.state-missed{color:#e7b3b7;background:0 0;border:2px dashed #b77}.week-cell.state-not_scheduled,.week-cell.state-paused,.week-cell.state-future{color:var(--faint);background:0 0}.week-cell.state-before_start,.week-cell.state-after_end{background:repeating-linear-gradient(135deg,#0000 0 5px,#ffffff0a 5px 7px);border-color:#0000}.week-cell.selected{outline-offset:1px;outline:2px solid #a7c8ff}.legend{color:var(--muted);flex-wrap:wrap;gap:6px 14px;margin:12px 0 0;padding:0;font-size:12.5px;list-style:none;display:flex}.legend li{align-items:center;gap:6px;display:flex}.legend-swatch{color:#fff;background:color-mix(in srgb, var(--state) 80%, transparent);border:1px solid #fff2;border-radius:6px;place-items:center;width:20px;height:20px;font-size:12px;font-weight:800;display:inline-grid}.legend-swatch.state-missed{color:#e7b3b7;background:0 0;border:2px dashed #b77}.legend-swatch.state-pending{color:var(--muted);background:0 0;border:2px solid #ffffff40}.legend-swatch.state-before_start{background:repeating-linear-gradient(135deg,#0000 0 4px,#fff2 4px 6px)}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0;display:grid}@media (width>=620px){.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.kpi-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.kpi{background:var(--surface-2);border-radius:13px;flex-direction:column;gap:3px;min-width:0;padding:12px;display:flex}.kpi strong{font-variant-numeric:tabular-nums;font-size:24px}.kpi span{color:var(--muted);font-size:12.5px}.kpi small{color:var(--faint);font-size:11.5px}.kpi.tone-ok small{color:var(--ok-text)}.kpi.tone-bad small{color:var(--bad-text)}.kpi-grid.three .kpi strong{font-size:19px}.habit-list,.library-list,.ranking,.day-status-list,.session-list,.backup-list,.conflict-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.habit-row,.library-item{background:var(--surface);border-left:5px solid var(--habit);border-radius:14px;align-items:center;gap:10px;padding:10px;display:flex}.habit-row-main{min-width:0;color:inherit;flex:1;align-items:center;gap:10px;text-decoration:none;display:flex}.row-actions{gap:4px;display:flex}.row-actions .icon-button{min-width:36px;height:36px;font-size:12px}.archived-section{margin:18px 0}.archived-section summary{cursor:pointer;padding:10px 0;font-weight:700}.search-row{gap:8px;margin:8px 0;display:flex}.search-row input{flex:1;min-width:0}.category-strip{scrollbar-width:thin;gap:6px;padding:2px 0 8px;display:flex;overflow-x:auto}.category-strip button{background:var(--surface-2);border:0;border-radius:999px;flex:none;padding:9px 14px;font-size:14px;font-weight:650}.category-strip button.active{background:var(--blue);color:#fff}.form{gap:4px;max-width:760px;display:grid}.field{border:0;gap:6px;min-width:0;margin:10px 0;padding:0;display:grid}.field>span,.field>legend{margin-bottom:6px;padding:0;font-size:14px;font-weight:650}input,select,textarea{width:100%;min-height:46px;color:var(--text);background:#343c4b;border:1px solid #606a7b;border-radius:11px;padding:10px 12px}textarea{resize:vertical}input[type=checkbox]{width:20px;height:20px;min-height:20px;accent-color:var(--blue)}input[aria-invalid=true]{border-color:var(--bad)}.field-hint{color:var(--muted);font-size:12.5px;line-height:1.4}.inline-fields{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0 12px;display:grid}.inline-check{align-items:center;gap:10px;margin:10px 0;font-size:14px;display:flex}.preview-card{border-radius:var(--radius);background:linear-gradient(135deg, color-mix(in srgb, var(--habit) 45%, var(--surface)), var(--surface));border-left:5px solid var(--habit);align-items:center;gap:12px;padding:12px;display:flex}.preview-card .habit-icon{background:#0003}.weekday-buttons{grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;max-width:520px;display:grid}.weekday-btn{aspect-ratio:1;background:var(--surface-2);min-width:0;color:var(--text);border:2px solid #0000;border-radius:11px;padding:0;font-size:clamp(16px,4.4vw,22px);font-weight:800}.weekday-btn.active{background:var(--blue);color:#fff}.quick-days{flex-wrap:wrap;gap:10px;margin-top:4px;display:flex}.color-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;max-width:520px;display:grid}.swatch{aspect-ratio:1;border:3px solid #0000;border-radius:50%;min-width:0;padding:0}.swatch.active{box-shadow:0 0 0 2px var(--bg) inset;border-color:#fff}.icon-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;max-width:560px;display:grid}.icon-grid button{aspect-ratio:1;background:var(--surface-2);border:0;border-radius:10px;min-width:0;padding:0;font-size:clamp(18px,5vw,24px)}.icon-grid button.active{background:var(--blue)}.form-actions{gap:8px;margin-top:12px;display:flex}.form-actions .button{flex:1}.sticky-actions{bottom:calc(var(--nav-h) + env(safe-area-inset-bottom,0px) + 10px);background:var(--bg);z-index:5;padding:10px 0;position:sticky}.detail-head{border-radius:var(--radius);background:linear-gradient(135deg, color-mix(in srgb, var(--habit) 38%, var(--surface)), var(--surface));border-left:6px solid var(--habit);align-items:flex-start;gap:14px;padding:14px;display:flex}.detail-head p{margin:0 0 6px;line-height:1.45}.detail-goal{font-size:16px;font-weight:700}.selected-day{margin-top:12px}.selected-day h4{margin:0 0 8px}.month-calendar{margin:14px 0 4px}.month-head{text-transform:capitalize;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.month-head .strip-arrow{background:var(--surface-2);min-width:42px}.month-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;display:grid}.month-weekday{text-align:center;color:var(--muted);padding:4px 0;font-size:12px}.month-cell{background:color-mix(in srgb, var(--state,transparent) 60%, var(--surface-2));min-width:0;min-height:48px;color:var(--text);border:2px solid #0000;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:1px;padding:3px 0;display:flex}.month-cell.state-empty,.month-cell.state-not_scheduled,.month-cell.state-future,.month-cell.state-paused{color:var(--faint);background:#ffffff08}.month-cell.state-missed{background:0 0;border:2px dashed #b77}.month-cell.state-pending{background:0 0;border:2px solid #ffffff40}.month-cell.selected{border-style:solid;border-color:#a7c8ff}.month-cell.is-today .month-day{text-underline-offset:3px;text-decoration:underline}.month-day{font-size:13px;font-weight:700}.month-icon{min-height:13px;font-size:11px;font-weight:700}.day-status-list li{background:var(--surface-2);border-radius:12px;align-items:center;gap:10px;padding:8px 10px;display:flex}.chart{background:var(--surface);border-radius:var(--radius);margin:12px 0;padding:12px 12px 6px}.chart-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px;font-size:14px;font-weight:650;display:flex}.chart-head .link-button{font-size:12.5px}.chart-body{position:relative}.chart-svg{touch-action:pan-y;width:100%;height:auto;display:block;overflow:visible}.chart-grid line{stroke:#ffffff17;stroke-width:1px}.chart-grid text,.chart-xlabel{fill:var(--muted);font-size:12px}.chart-line{fill:none;stroke:var(--blue);stroke-width:2.5px;stroke-linejoin:round;stroke-linecap:round}.chart-dot{fill:var(--blue);stroke:var(--surface);stroke-width:2px}.chart-dot.hover{fill:#fff;stroke:var(--blue)}.chart-cross{stroke:#fff5;stroke-width:1px}.chart-bar{fill:var(--blue)}.chart-bar.under{fill:#4385f499}.chart-bar.hover{fill:#79a8ff}.chart-target line{stroke:var(--ok);stroke-width:1.5px;stroke-dasharray:5 4}.chart-target text{fill:var(--ok-text);font-size:12px}.chart-tooltip{pointer-events:none;border:1px solid var(--line);background:#0f1218f2;border-radius:10px;flex-direction:column;gap:1px;min-width:130px;padding:7px 10px;font-size:12.5px;display:flex;position:absolute;top:0;box-shadow:0 6px 18px #0008}.chart-tooltip b{text-transform:capitalize}.chart-tooltip small{color:var(--muted)}.chart-table-wrap{max-height:280px;overflow:auto}.chart-table{border-collapse:collapse;width:100%;font-size:13px}.chart-table th,.chart-table td{text-align:left;border-bottom:1px solid #ffffff12;padding:6px 4px;font-weight:400}.chart-table th{text-transform:capitalize}.status-bar-wrap{margin:6px 0 12px}.status-bar{border-radius:7px;gap:2px;height:14px;display:flex;overflow:hidden}.status-bar span{background:var(--state);min-width:3px}.ranking-row{background:var(--surface-2);color:inherit;border-radius:12px;grid-template-columns:30px minmax(0,1fr) minmax(50px,120px) 46px;align-items:center;gap:10px;padding:8px;text-decoration:none;display:grid}.ranking-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ranking-bar{background:#ffffff14;border-radius:8px;height:8px;overflow:hidden}.ranking-bar span{background:var(--blue);border-radius:8px;height:100%;display:block}.ranking-value{text-align:right;font-variant-numeric:tabular-nums;font-size:14px;font-weight:700}.ranking-streak{color:var(--muted);grid-column:2/-1;font-size:12px}.segmented.tabs{margin-top:2px}.focus-clock{text-align:center;color:#2a1600;background:linear-gradient(135deg, var(--focus-a) 0%, #ffb02e 45%, var(--focus-b) 100%);border-radius:24px;margin:12px 0;padding:20px 16px 18px;box-shadow:0 12px 34px #ff8a1f33}.focus-phase{letter-spacing:.02em;opacity:.85;font-size:15px;font-weight:800}.focus-time{font-variant-numeric:tabular-nums;letter-spacing:-2px;margin:8px 0 10px;font-size:clamp(64px,20vw,156px);font-weight:850;line-height:1.05}.focus-progress{background:#0002;border-radius:10px;max-width:560px;height:10px;margin:0 auto;overflow:hidden}.focus-progress div{background:#3a1d00;border-radius:10px;height:100%}.focus-status{margin:10px 0 14px;font-weight:700}.focus-controls{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.focus-controls button{color:#2a1600;background:#fffa;border:0;border-radius:14px;min-width:104px;min-height:52px;padding:10px 14px;font-size:15px;font-weight:800}.focus-controls .focus-main{color:#ffd23f;background:#2a1600;min-width:150px;font-size:17px}.focus-controls button:disabled{opacity:.45}.focus-settings summary,details.panel>summary{cursor:pointer;padding:4px 0;font-weight:700}details.panel[open]>summary{margin-bottom:10px}.session-list li{background:var(--surface-2);border-radius:12px;align-items:center;gap:12px;padding:8px 10px;font-size:14px;display:flex}.session-time{flex-direction:column;min-width:92px;display:flex}.session-time b{font-variant-numeric:tabular-nums;font-size:16px}.session-time small{color:var(--muted);font-size:12px}.sync-status{background:var(--surface-2);border-radius:12px;align-items:flex-start;gap:12px;margin-bottom:10px;padding:12px;display:flex}.sync-status p{color:var(--muted);margin:3px 0 0;font-size:13.5px}.sync-status-icon{text-align:center;width:32px;font-size:22px}.sync-status.tone-ok .sync-status-icon{color:var(--ok-text)}.sync-status.tone-warn .sync-status-icon{color:var(--amber-text)}.sync-status.tone-error .sync-status-icon{color:var(--bad-text)}.facts{gap:6px;margin:10px 0;display:grid}.facts div{border-bottom:1px solid #ffffff10;flex-wrap:wrap;justify-content:space-between;gap:10px;padding-bottom:6px;font-size:14px;display:flex}.facts dt{color:var(--muted)}.facts dd{text-align:right;margin:0}.import-row{flex-wrap:wrap;gap:8px;display:flex}.file-button{flex:1;position:relative;overflow:hidden}.file-button input{opacity:0;cursor:pointer;position:absolute;inset:0}.backup-list li{background:var(--surface-2);border-radius:12px;align-items:center;gap:8px;padding:8px 10px;display:flex}.backup-list li span{flex-direction:column;font-size:14px;display:flex}.backup-list small{color:var(--muted);font-size:12px}.conflict-panel{border:1px solid var(--bad)}.conflict-list li{background:var(--surface-2);border-radius:12px;padding:10px}.conflict-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px;display:grid}.conflict-options .button{text-align:left;flex-direction:column;align-items:flex-start;font-weight:500}.conflict-options small{color:var(--muted);font-weight:700}@media (width<=400px){.app{padding-left:10px;padding-right:10px}.topbar h1{font-size:18px}.brand-mark{display:none}.sync-chip{padding:0 9px;font-size:12px}.habit-body{padding:10px}.check-button{flex-basis:46px}.check-button span{width:40px;height:40px;font-size:21px}.habit-icon{flex-basis:38px;width:38px;height:38px;font-size:21px}.nav-label{font-size:11px}.day-strip{grid-template-columns:24px repeat(7,minmax(0,1fr)) 24px;gap:3px}.strip-arrow{min-width:24px}.week-grid{gap:3px}.focus-controls button{min-width:86px}.kpi strong{font-size:20px}.segmented.five button{font-size:11px}}@media (width<=359px){.sync-chip-text{display:none}}@media (width<=480px){.has-back .sync-chip-text{display:none}}@media (prefers-reduced-motion:reduce){*{transition:none!important}}.app{max-width:1050px;padding:0 18px calc(110px + env(safe-area-inset-bottom,0px))}.topbar{min-height:72px;padding-top:calc(12px + env(safe-area-inset-top,0px));gap:12px;padding-bottom:8px}.topbar h1{font-size:27px}.topbar-subtitle{font-size:13px}.back-button{border-radius:14px;flex:0 0 50px;width:50px;height:50px;font-size:30px}.back-button:disabled{color:#858d9b;opacity:1;box-shadow:none;cursor:default;background:#353c49}.bottom-nav{padding:10px max(10px, env(safe-area-inset-left,0px)) calc(10px + env(safe-area-inset-bottom,0px));background:#303846;border-top:1px solid #50596b;gap:4px;box-shadow:0 -5px 24px #0006}.bottom-nav button{color:#fff;border-radius:12px;gap:4px;min-height:66px}.bottom-nav .nav-icon{font-size:29px}.bottom-nav .nav-label{font-size:clamp(10px,2.5vw,13px);font-weight:650}@media (width>=800px){.bottom-nav{border:1px solid #50596b;border-bottom:0;border-radius:16px 16px 0 0;width:min(100%,1050px);left:50%;right:auto;transform:translate(-50%)}}.chip-button{color:#a7c8ff;background:#414b5b}.section-title{margin:14px 0 6px;font-size:24px}.section-hint{margin:0 0 12px}.card{background:#303846;border-radius:16px;margin:10px 0;padding:16px}.day-strip{touch-action:pan-y;-webkit-user-select:none;user-select:none;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:6px 0 10px;display:grid}.strip-day{color:#fff;background:#353c49;border:0;border-radius:12px;gap:0;padding:12px 1px;font-size:14px;line-height:1.6}.strip-day b{font-size:19px}.strip-day.is-today:not(.selected){box-shadow:inset 0 0 0 2px #a7c8ff88}.strip-day.selected{background:#4385f4}.strip-day.future{opacity:1;color:#c9cfda}.today-date{margin:17px 0 2px;font-size:22px;font-weight:750}.today-count{color:#e0e6f0;margin:4px 0 15px;font-size:17px;font-weight:650}.today-back{margin:0 0 8px}.card-list{display:block}.habit-card{align-items:stretch;gap:10px;margin:12px 0;display:flex}.check-button{background:0 0;border:0;flex:0 0 56px;justify-content:center;align-items:center;padding:0;display:flex}.check-button .circle{color:#fff;border:3px solid #c5c9d2;border-radius:50%;place-items:center;width:47px;height:47px;font-size:27px;font-weight:800;line-height:1;transition:transform .12s,background .12s;display:grid}.check-button:active .circle{transform:scale(.92)}.check-button.state-completed .circle{color:#202127;background:#8ad66b;border-color:#8ad66b}.check-button.state-partial .circle{color:#24252b;background:#f1b84b;border-color:#f1b84b}.check-button.state-failed .circle{color:#fff;background:#e5484d;border-color:#e5484d}.check-button.state-missed .circle{color:#f0b7ba;border-style:dashed;border-color:#d98a8f;font-size:22px}.check-button:disabled .circle{opacity:.55}.check-button:disabled{opacity:1}.tile{background:var(--c);color:#fff;text-shadow:0 1px 2px #0003;border-radius:17px;flex:1;min-width:0;padding:15px}.habit-card.state-failed .tile,.habit-card.state-missed .tile{filter:saturate(.55)brightness(.85)}.tile-head{align-items:center;gap:12px;display:flex}.symbol{text-shadow:none;flex:none;font-size:30px;line-height:1}.tile-text{flex:1;min-width:0}.tile-name{color:#fff;overflow-wrap:anywhere;font-size:16px;font-weight:700;text-decoration:none}.tile-status{overflow-wrap:anywhere;margin-top:3px;font-size:13px}.daypart-tag{opacity:.92;margin-top:4px;font-size:12px}.tile-edit{color:#fff;background:#fff3;border-radius:12px;flex:none;place-items:center;min-width:44px;height:44px;font-size:17px;text-decoration:none;display:grid}.tile-progress{background:#00000030;border-radius:8px;height:8px;margin-top:12px;overflow:hidden}.tile-progress>div{background:#fffd;border-radius:8px;height:100%}.habit-card.state-partial .tile-progress>div{background:#ffd27f}.tile .quantity-editor{justify-content:flex-end;align-items:center;gap:10px;margin-top:12px;display:flex}.tile .quantity-editor .round{color:#fff;background:#ffffff38;border:0;border-radius:50%;flex:0 0 50px;width:50px;height:50px;padding:0;font-size:28px}.tile .quantity-editor input{color:#fff;text-align:center;background:#fff3;border:0;border-radius:12px;flex:1;width:auto;min-width:0;height:50px;font-size:18px;font-weight:750}.tile .quantity-editor input::placeholder{color:#fffa}.tile .card-secondary-actions{margin-top:6px}.tile .link-button{color:#fff;opacity:.9;font-size:13px}.tile .inline-error{color:#fff;background:#0005;border-radius:8px;padding:4px 8px}.habit-card.compact{margin:6px 0}.datebar{background:#303846;border-radius:13px;justify-content:space-between;align-items:center;gap:8px;margin:9px 0 10px;padding:7px 9px;display:flex}.datebar>button{color:#fff;background:#394150;border:0;border-radius:12px;flex:0 0 39px;width:39px;height:39px;padding:0;font-size:21px}.datebar-center{text-align:center;flex-wrap:wrap;justify-content:center;align-items:center;gap:9px;min-width:0;display:flex}.datebar-center b{white-space:nowrap;font-size:13px}.datebar-center button{color:#a7c8ff;background:#414b5b;border:0;border-radius:12px;padding:6px 9px;font-size:12px}.week-columns{touch-action:pan-y;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;display:grid}.weekcol{cursor:pointer;outline-offset:2px;background:#303846;border-radius:10px;min-width:0;min-height:230px;padding:6px 3px}.weekcol.selected{background:#405984}.weekcol.is-today:not(.selected){box-shadow:inset 0 0 0 2px #a7c8ff66}.weekcol-head{text-align:center;flex-direction:column;align-items:center;margin-bottom:4px;font-size:15px;line-height:1.25;display:flex}.weekcol-head b{font-size:16px}.weekcol-head small{color:#c9d4e6;min-height:13px;font-size:10.5px}.mini{background:var(--c);overflow-wrap:anywhere;text-align:center;color:#fff;border-radius:6px;flex-direction:column;align-items:center;margin:5px 0;padding:5px 2px;font-size:11px;line-height:1.25;display:flex}.mini-icon{font-weight:800}.mini-full{display:none}@media (width>=800px){.mini-name{display:none}.mini-full{display:block}}.mini.state-completed{box-shadow:inset 0 0 0 2px #fffc}.mini.state-partial{box-shadow:inset 0 0 0 2px #f1b84b}.mini.state-failed,.mini.state-missed{filter:saturate(.4)brightness(.7)}.mini.state-failed .mini-icon,.mini.state-missed .mini-icon{color:#ffd1d3}.day-detail-head{justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px;display:flex}.day-detail-head h3{margin:0;font-size:19px}.week-day-row{align-items:stretch;gap:10px;margin:8px 0;display:flex}.mini-check{color:#fff;background:#394150;border:0;border-radius:12px;flex:0 0 46px;width:46px;font-size:18px;font-weight:800}.week-day-row.state-completed .mini-check{color:#202127;background:#8ad66b}.week-day-row.state-partial .mini-check{color:#24252b;background:#f1b84b}.week-day-row.state-failed .mini-check{background:#e5484d}.week-day-row.state-missed .mini-check{color:#f0b7ba;box-shadow:inset 0 0 0 2px #d98a8f}.week-bar{background:var(--c);color:#fff;text-align:center;text-shadow:0 1px 2px #0003;border-radius:6px;flex-wrap:wrap;flex:1;justify-content:center;align-items:center;gap:2px 10px;min-width:0;padding:10px 12px;font-size:14px;text-decoration:none;display:flex}.week-bar small{opacity:.9;font-size:12px}.week-day-row.state-failed .week-bar,.week-day-row.state-missed .week-bar{filter:saturate(.55)brightness(.85)}.chips{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.chip{color:#fff;background:#394150;border:0;border-radius:12px;padding:12px 15px;font-weight:600}.chip.active{background:#4385f4}span.chip{padding:8px 12px;font-size:14px}.phase-chips{margin-top:10px}.focus-clock-card{margin-top:8px}.focus-clock-card .timerface{text-align:center;letter-spacing:-2px;font-variant-numeric:tabular-nums;color:var(--clock-color,#fff);margin:12px 0 15px;font-size:clamp(76px,16vw,164px);font-weight:850;line-height:1.13}.clock-white{--clock-color:#fff}.clock-blue{--clock-color:#a7c8ff}.clock-green{--clock-color:#a9dec3}.clock-orange{--clock-color:#ffad42}.focus-clock-card .focus-progress{background:#454d5c;border-radius:10px;max-width:none;height:9px;margin:0;overflow:hidden}.focus-clock-card .focus-progress div{background:#80b1ff;border-radius:10px;height:100%;transition:width .2s}.focus-clock-card .focus-status{text-align:center;color:#bfc8d8;margin:12px 0;font-weight:400}.timerbuttons{flex-wrap:wrap;gap:10px;display:flex}.timerbuttons button{color:#fff;background:#394150;border:0;border-radius:12px;flex:1;min-width:110px;min-height:66px;padding:12px 10px;font-size:17px}.timerbuttons button.primary{background:#4385f4}.focus-settings{margin-top:20px}.focus-settings>summary{cursor:pointer;padding:4px 0;font-size:19px;font-weight:700}.field-label{margin-bottom:4px;font-weight:650;display:block}.clock-swatches{flex-wrap:wrap;align-items:center;gap:13px;margin-top:12px;display:flex}.clock-swatch{color:#202127;border:3px solid #596273;border-radius:50%;place-items:center;width:44px;min-width:44px;height:44px;padding:0;font-size:23px;font-weight:800;display:grid}.clock-swatch.active{outline-offset:3px;border-color:#303846;outline:2px solid #fff}.choice-row{flex-wrap:wrap;gap:9px;margin:12px 0;display:flex}.choice-btn{color:#fff;background:#3a4251;border:0;border-radius:12px;min-width:67px;min-height:52px;padding:12px 16px;font-weight:650}.choice-btn.active{background:#4385f4}.focusgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;display:grid}@media (width<=600px){.focus-clock-card>.chips:first-child{grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.focus-clock-card>.chips:first-child .chip{padding:11px 4px;font-size:13.5px}.app{padding-left:10px;padding-right:10px}.topbar h1{font-size:23px}.mini{font-size:9px}.weekcol{min-height:190px}.tile{padding:11px}.check-button{flex-basis:50px}.focus-clock-card .timerface{font-size:clamp(64px,17vw,105px)}.timerbuttons button{padding:12px 7px;font-size:15px}.bottom-nav button{min-height:67px}}@media (width<=400px){.check-button{flex-basis:44px}.check-button .circle{width:40px;height:40px;font-size:22px}.tile{padding:10px}.symbol{font-size:26px}.tile .quantity-editor .round{flex-basis:44px;width:44px;height:44px}.tile .quantity-editor input{height:44px}.strip-day{padding:10px 1px;font-size:12px}.strip-day b{font-size:17px}.weekcol{padding:5px 2px}.focusgrid{grid-template-columns:1fr}}
