
:root{--bg:#000;--surface:#17171d;--surface-2:#141417;--surface-3:#2b2b32;--control:#19191f;--line:#34343d;--text:#f8f8fb;--muted:#b1b1bf;--faint:#a0a0b0;--green:#29da96;--yellow:#ffc247;--danger:#ff6478;--success:var(--green);--warning:var(--yellow);--green-soft:color-mix(in srgb,var(--green) 14%,var(--surface));--yellow-soft:color-mix(in srgb,var(--yellow) 12%,var(--surface));--danger-soft:color-mix(in srgb,var(--danger) 10%,var(--surface));--on-green:#071e13;--on-yellow:#241a00;--on-danger:#260009;--toggle-off:#575764;--on-toggle:#fff;--ring-track:#33333c;--flame-core:#ffe58c;--habit-control:var(--control);--habit-muted:var(--muted);color-scheme:dark;--radius:26px;--shadow:0 22px 80px rgba(0,0,0,.4);font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-synthesis:none}
:root[data-mode=light]{--bg:#f3f3f8;--surface:#fff;--surface-2:#f9f9fc;--surface-3:#e9e9f1;--control:#eeeef5;--line:#dedee8;--text:#242431;--muted:#626271;--faint:#6d6d7e;--green:#087450;--yellow:#856000;--danger:#b83043;--on-green:#fff;--on-yellow:#fff;--on-danger:#fff;--toggle-off:#797986;--ring-track:#e7e7ef;--flame-core:#ffecae;color-scheme:light}
*{box-sizing:border-box}html{min-width:320px;background:var(--bg);scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit;touch-action:manipulation}a{color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent-ink);outline-offset:4px}button:disabled{opacity:.38;cursor:default}button svg{flex-shrink:0}svg{display:inline-block;vertical-align:middle;flex-shrink:0}button{border:0;background:none}input[type=checkbox]{accent-color:var(--accent);width:20px;height:20px}::selection{background:var(--accent);color:var(--accent-contrast)}h1,h2,h3,p{margin:0}h1,h2,h3,.brand,.metric{font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}h1{font-size:34px;letter-spacing:-1.3px;line-height:1.14;font-weight:800}h2{font-size:20px;line-height:1.3;letter-spacing:-.45px}h3{font-size:16px;line-height:1.35;letter-spacing:-.2px}small,.small{font-size:12px;line-height:1.5}.muted{color:var(--muted)}.faint{color:var(--faint)}.accent{color:var(--accent-ink)}.danger-text{color:var(--danger)}.success-text{color:var(--success)}.text-center{text-align:center}.nowrap{white-space:nowrap}.hidden,[hidden]{display:none!important}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}.row{display:flex;align-items:center;gap:10px}.row.between,.between{justify-content:space-between}.row.wrap,.wrap{flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:14px}.spacer{flex:1}.divider{height:1px;background:var(--line);margin:20px 0}.eyebrow{text-transform:uppercase;letter-spacing:2.2px;font-size:10px;font-weight:700;color:var(--muted)}.subtitle{font-size:14px;color:var(--muted);margin-top:9px;line-height:1.6}.subtle-link{font-size:12px;color:var(--accent-ink);min-height:44px;display:inline-flex;align-items:center;gap:6px}

#app{max-width:1120px;margin:0 auto;padding:0 30px 150px;min-height:100vh;min-height:100dvh}.topbar{display:flex;align-items:center;justify-content:space-between;padding:30px 0 38px;gap:16px}.brand{display:inline-flex;align-items:center;gap:10px;font-size:18px;font-weight:800;letter-spacing:-.65px;text-decoration:none}.brand-mark{width:34px;height:34px;border-radius:11px;background:var(--accent);display:flex;align-items:center;justify-content:center;color:var(--accent-contrast)}.brand-mark svg{width:20px;height:20px}.brand-dot{display:inline-block;width:9px;height:9px;background:var(--accent);border-radius:50%;margin-right:7px}.topbar-actions{display:flex;align-items:center;gap:8px}.topbar .icon-btn{border:1px solid var(--line);background:var(--surface-2);border-radius:14px}.topbar-date{font-size:12px;color:var(--muted)}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:26px}.page-header .eyebrow{margin-bottom:10px}.page-heading{margin-bottom:25px}.page-heading .eyebrow{margin-bottom:10px}.page-heading h1+.subtitle{margin-top:10px}.page-actions{display:flex;align-items:center;gap:8px}.icon-btn{width:44px;height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;color:var(--muted);transition:background .18s,color .18s,transform .18s}.icon-btn:hover{background:var(--surface-3);color:var(--text)}.icon-btn.active{background:var(--accent-soft);color:var(--accent-ink)}.icon-btn.danger:hover{background:var(--danger-soft);color:var(--danger)}.icon-btn.small{height:36px;width:36px;min-width:36px}.btn{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:8px;padding:10px 18px;border-radius:13px;background:var(--surface-3);font-weight:600;font-size:13px;line-height:1.5;transition:background .18s,transform .18s;white-space:nowrap}.btn:hover{background:var(--surface-3)}.btn:active,.fab:active{transform:scale(.97)}.btn.primary{background:var(--accent);color:var(--accent-contrast);box-shadow:0 5px 18px rgba(114,101,255,.13)}.btn.primary:hover{background:var(--accent)}.btn.ghost{background:transparent;color:var(--muted);border:1px solid var(--line)}.btn.ghost:hover{background:var(--surface-2);color:var(--text)}.btn.danger{background:var(--danger-soft);color:var(--danger);border:1px solid var(--danger)}.btn.full{width:100%}.btn.small{min-height:38px;padding:8px 12px;font-size:12px}.btn.text{padding:8px 0;background:none;color:var(--accent-ink)}

.tabs{display:flex;align-items:center;gap:4px;border-bottom:1px solid var(--line);margin:0 0 24px;overflow-x:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tab{min-height:49px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:600;color:var(--muted);padding:11px 18px;border-bottom:2px solid transparent;white-space:nowrap}.tab:hover{color:var(--text)}.tab.active{color:var(--accent-ink);border-bottom-color:var(--accent)}.tab .badge{background:var(--surface-3);padding:1px 6px;min-width:19px;font-size:10px}.segmented{display:flex;gap:4px;padding:5px;background:var(--surface-2);border:1px solid var(--line);border-radius:15px}.segmented button{flex:1;min-height:38px;padding:7px 13px;border-radius:10px;font-size:12px;font-weight:600;color:var(--muted)}.segmented button.active{background:var(--surface-3);color:var(--text);box-shadow:0 2px 6px #0002}.segmented.compact{width:fit-content}.segmented.compact button{padding-inline:15px}.bottom-nav{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(4,1fr);align-items:center;width:440px;max-width:calc(100% - 28px);height:77px;padding:6px 8px;border-radius:23px;background:var(--surface);border:1px solid var(--line);box-shadow:0 14px 55px #0006;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);z-index:40}.nav-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:58px;border-radius:16px;font-size:10px;font-weight:600;color:var(--muted);transition:color .18s,background .18s}.nav-item svg{width:21px;height:21px}.nav-item:hover{color:var(--text);background:var(--surface-2)}.nav-item.active{color:var(--accent-ink);background:var(--accent-soft)}.fab{position:fixed;bottom:116px;right:max(24px,calc((100vw - 1060px)/2));width:58px;height:58px;border-radius:20px;background:var(--accent);box-shadow:0 8px 28px #0005,0 0 0 1px #978dff26;color:var(--accent-contrast);z-index:35;display:flex;align-items:center;justify-content:center;transition:transform .18s,background .18s}.fab:hover{background:var(--accent);transform:translateY(-2px)}.fab svg{width:27px;height:27px}

.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:22px 0 27px}.day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:95px;padding:13px 4px;border-radius:23px;color:var(--muted);transition:background .18s}.day:hover{background:var(--surface-2)}.day.active{background:var(--surface);color:var(--text)}.day.today:not(.active){outline:1px solid var(--line);outline-offset:-1px}.day-name{font-size:11px;font-weight:500}.day-number{font-size:22px;line-height:1.2;font-weight:700;font-family:'Manrope',sans-serif;letter-spacing:-.6px;color:var(--text)}.day .dots,.dots{display:flex;justify-content:center;align-items:center;gap:3px;min-height:7px}.dots i,.dots span,.dot{width:4px;height:4px;border:1px solid var(--accent);border-radius:50%;display:inline-block}.dots .done,.dots .filled,.dot.filled{background:var(--accent)}.dots .empty{margin:0;padding:0;border:1px solid var(--accent)}.week-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:23px}.week-nav .muted{font-size:13px}.week-nav+.week{margin-top:6px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 14px}.section-title h2{font-size:15px;letter-spacing:0;font-weight:700}.section-title .count{font-size:12px;color:var(--muted);font-weight:400;margin-left:8px}.section-title .small{color:var(--muted)}.section-title:first-child{margin-top:0}.habit-list{display:grid;gap:12px}.habit-card{display:flex;align-items:center;gap:17px;background:var(--surface);border:1px solid transparent;border-radius:var(--radius);padding:15px 17px 15px 15px;min-height:103px;position:relative;transition:border-color .18s,background .18s,opacity .18s}.habit-card:hover{border-color:var(--line)}.habit-card.running{border-color:var(--accent-border);background:var(--accent-soft)}.habit-card.done{background:var(--surface)}.habit-card.done .habit-body h3{color:var(--text)}.habit-card.skipped{opacity:.55}.icon-tile{width:62px;height:62px;min-width:62px;border-radius:21px;display:flex;align-items:center;justify-content:center;background:var(--icon-color,var(--accent));color:var(--text)}.icon-tile svg{width:28px;height:28px;stroke-width:1.7}.icon-tile.small{width:42px;height:42px;min-width:42px;border-radius:14px}.icon-tile.small svg{width:21px;height:21px}.habit-body{flex:1;min-width:0}.habit-body h3{font-size:16px;line-height:1.4;font-weight:700;overflow-wrap:anywhere}.habit-body p{font-size:12px;color:var(--muted);margin-top:4px;font-variant-numeric:tabular-nums}.habit-body .habit-detail,.habit-meta{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;margin-top:5px}.habit-action{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:50%;color:var(--text);flex-shrink:0}.habit-action:hover{background:var(--surface-3)}.habit-action.done,.habit-action.completed{color:var(--success)}.habit-action.check{border:2px solid var(--muted);width:31px;height:31px;min-width:31px;min-height:31px;margin:6px}.habit-action.check::after{content:'';position:absolute;width:44px;height:44px}.habit-action.check.done{border-color:var(--success);background:var(--success);color:var(--on-green)}.habit-card .more-btn{position:absolute;right:9px;top:1px;width:30px;height:26px;min-width:30px;opacity:0}.habit-card:hover .more-btn,.habit-card:focus-within .more-btn{opacity:1}.habit-actions{display:flex;align-items:center;gap:3px}.habit-progress{height:3px;border-radius:5px;background:var(--surface-3);overflow:hidden;margin-top:11px;max-width:240px}.habit-progress span{display:block;height:100%;background:var(--icon-color,var(--accent));border-radius:5px}.habit-card .badge{font-size:9px;padding:3px 6px}.hero-summary{padding:22px 24px;background:var(--surface);border:1px solid var(--line);border-radius:22px;margin:22px 0}.hero-summary h2{font-size:16px}.hero-summary p{color:var(--muted);font-size:12px;margin-top:4px}.hero-summary .row{gap:18px}.hero-summary .summary-number{margin-left:auto;font-family:'Manrope',sans-serif;font-weight:700;font-size:25px;white-space:nowrap;letter-spacing:-1px}.hero-summary .summary-number small{font-size:13px;color:var(--muted);letter-spacing:0}.progress-track{height:5px;background:var(--ring-track);border-radius:10px;overflow:hidden;margin-top:16px}.progress-fill{height:100%;background:var(--accent);border-radius:10px;transition:width .3s}.gentle-note{color:var(--faint);font-size:12px;line-height:1.7;text-align:center;margin:26px 0 10px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:6px}.status-dot.running{box-shadow:0 0 0 4px #7265ff20;animation:breathe 2s ease-in-out infinite}

.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:20px 0}.toolbar .search{margin-right:auto;min-width:210px;flex:1}.search{display:flex;align-items:center;gap:10px;background:var(--surface-2);border:1px solid var(--line);border-radius:13px;padding:0 13px;color:var(--faint);min-height:44px}.search input{border:0;background:none;color:var(--text);width:100%;min-width:0;outline:none;padding:11px 0;font-size:13px}.search input:focus-visible{outline:none}.search:focus-within{border-color:var(--accent)}.search input::placeholder{color:var(--faint)}.chip{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;border:1px solid var(--line);border-radius:100px;padding:7px 13px;font-size:12px;white-space:nowrap;color:var(--muted)}.chip:hover{background:var(--surface)}.chip.active{color:var(--accent-ink);background:var(--accent-soft);border-color:var(--accent-border)}.chip svg{width:15px;height:15px}.filter-row{display:flex;gap:7px;overflow:auto;scrollbar-width:none;padding:2px 0}.filter-row::-webkit-scrollbar{display:none}.board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:24px}.column{min-width:0}.column-heading,.column>h2{display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.5px;margin-bottom:16px;color:var(--muted);font-weight:600}.column-heading .badge{margin-left:auto}.column .task-card+.task-card{margin-top:10px}.column-empty{padding:24px 18px;border:1px dashed var(--line);border-radius:18px;color:var(--faint);text-align:center;font-size:12px}.task-card{background:var(--surface);border:1px solid transparent;border-radius:19px;padding:17px;transition:border-color .18s,transform .18s}.task-card:hover{border-color:var(--line)}.task-card.done{opacity:.7}.task-card.done .task-title{text-decoration:line-through;text-decoration-color:var(--faint)}.task-main{display:flex;align-items:flex-start;gap:11px}.task-title{font-size:14px;font-weight:600;line-height:1.55;overflow-wrap:anywhere}.task-description{font-size:12px;line-height:1.7;color:var(--muted);margin-top:6px}.check-btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;min-width:24px;border:1.5px solid var(--muted);border-radius:8px;position:relative;margin-top:1px;color:var(--text)}.check-btn::before{position:absolute;content:'';width:44px;height:44px}.check-btn:hover{border-color:var(--accent-ink)}.check-btn.done,.check-btn.checked{background:var(--accent);border-color:var(--accent);color:var(--accent-contrast)}.check-btn svg{width:16px;height:16px}.task-content{min-width:0;flex:1}.task-footer{display:flex;align-items:center;justify-content:space-between;margin-top:15px;gap:8px;font-size:11px;color:var(--muted)}.task-footer .icon-btn{width:30px;height:30px;min-width:30px;margin:-7px}.task-footer .icon-btn svg{width:17px;height:17px}.tags{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:12px}.tag{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:7px;font-size:10px;line-height:1.4;font-weight:500;color:var(--accent-ink);background:var(--accent-soft);border:1px solid var(--accent-border)}.tag.must{background:var(--yellow-soft);color:var(--yellow);border-color:var(--yellow-soft)}.tag.warto{background:var(--accent-soft);color:var(--accent-ink)}.tag.moze{background:var(--green-soft);color:var(--green)}.tag.overdue{color:var(--danger);background:var(--danger-soft)}.tag svg{width:12px;height:12px}.badge{display:inline-flex;align-items:center;justify-content:center;gap:4px;border-radius:7px;min-width:21px;padding:3px 7px;font-size:11px;background:var(--surface-3);color:var(--muted);font-weight:500}.badge.purple{color:var(--accent-ink);background:var(--accent-soft)}.badge.green{background:var(--green-soft);color:var(--success)}.badge.warning{background:var(--yellow-soft);color:var(--warning)}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;min-height:230px;padding:34px 22px;border:1px dashed var(--line);border-radius:24px;color:var(--muted);margin:16px 0}.empty>svg{width:35px;height:35px;color:var(--muted);margin-bottom:2px}.empty h3{color:var(--text)}.empty p{max-width:320px;font-size:13px;line-height:1.7}.empty .btn{margin-top:7px}.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.collection-card{display:flex;align-items:center;gap:14px;min-height:92px;text-align:left;padding:17px;border-radius:20px;background:var(--surface);border:1px solid transparent}.collection-card:hover{border-color:var(--line)}.collection-card h3{font-size:14px}.collection-card p{color:var(--muted);font-size:12px;margin-top:4px}.collection-card>svg{color:var(--accent-ink)}.subtasks{display:flex;flex-direction:column;gap:10px;margin-top:15px}.subtask{display:flex;align-items:center;gap:12px;min-height:44px;font-size:13px;color:var(--muted)}.subtask input[type=text]{flex:1;min-width:0}.subtask.done span{text-decoration:line-through}.subtask .check-btn{width:21px;height:21px;min-width:21px;border-radius:6px}.subtask .icon-btn{margin-left:auto}.task-list{display:grid;gap:10px}.task-list .task-card{padding:18px 20px}.task-list .task-main{align-items:center}

.modal-backdrop{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(0,0,0,.67);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:fade-in .16s ease}.sheet{width:100%;max-width:590px;max-height:min(860px,calc(100dvh - 56px));display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:29px;box-shadow:var(--shadow);overflow:hidden;animation:slide-in .2s ease}.sheet.wide{max-width:780px}.sheet.compact{max-width:440px}.sheet-header{padding:24px 26px 17px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-shrink:0}.sheet-header h2{font-size:22px;font-weight:800}.sheet-header .eyebrow{margin-bottom:6px}.sheet-header .icon-btn{margin:-6px -9px -6px 0}.sheet-content{padding:7px 26px 26px;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;scrollbar-color:var(--surface-3) transparent}.sheet-content>:where(p:not(.value-picker-error,.date-picker-error,.field-error)){color:var(--muted);font-size:13px;line-height:1.7;margin-bottom:19px}.sheet-footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:17px 26px calc(20px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);position:sticky;bottom:0;flex-shrink:0;z-index:3}.sheet-footer .btn.primary{min-width:130px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.full,.form-grid .full{grid-column:1/-1}.field label,.field-label{font-size:12px;font-weight:500;color:var(--muted)}.field .hint,.hint{font-size:11px;color:var(--faint);line-height:1.6}.field input:not([type=checkbox]):not([type=color]):not([type=range]),.field textarea,.field select,.input{width:100%;min-height:47px;border:1px solid var(--line);border-radius:12px;background:var(--control);color:var(--text);padding:12px 13px;outline:none;transition:border-color .18s}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--accent)}.field input::placeholder,.field textarea::placeholder{color:var(--muted)}.field textarea{min-height:94px;resize:vertical;line-height:1.7}.field input[type=color]{border:0;padding:0;height:42px;width:100%;border-radius:10px;background:none}.field input[type=range]{accent-color:var(--accent);width:100%;min-height:40px}.field select{padding-right:30px;color-scheme:inherit}.field .checkbox-label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px;cursor:pointer}.form-section{padding-top:23px;margin-top:23px;border-top:1px solid var(--line)}.form-section h3{font-size:14px;margin-bottom:14px}.field-error{font-size:12px;color:var(--danger)}.input-error{border-color:var(--danger)!important}.icon-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px}.icon-option{display:flex;align-items:center;justify-content:center;min-width:0;height:47px;background:var(--surface-2);border:1px solid transparent;border-radius:12px;color:var(--text);transition:background .18s,border-color .18s}.icon-option:hover{background:var(--surface-3);color:var(--text)}.icon-option.active,.icon-option.selected{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink)}.icon-option svg{width:23px;height:23px}.icon-category{font-size:11px;font-weight:500;color:var(--muted);margin:17px 0 9px}.icon-picker-scroll{max-height:300px;overflow:auto;scrollbar-width:thin;padding:2px}.swatches{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.swatch{position:relative;width:35px;height:35px;border:3px solid var(--surface);outline:1px solid transparent;border-radius:12px;background:var(--swatch,var(--accent))}.swatch::after{position:absolute;inset:-7px;content:''}.swatch.active,.swatch.selected{outline-color:var(--accent-ink)}.swatch svg{width:18px;height:18px;color:#16131b}.color-input{width:40px;min-height:40px;border:0;padding:0;background:none;border-radius:10px}.weekday-picker{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.weekday-picker button{min-height:42px;border-radius:11px;font-size:11px;color:var(--muted);background:var(--surface-3);border:1px solid transparent}.weekday-picker button.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-ink)}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 0;border-bottom:1px solid var(--line)}.settings-row h3{font-size:14px}.settings-row p{color:var(--muted);font-size:12px;margin-top:4px}.switch{appearance:none;position:relative;width:43px!important;min-width:43px;height:26px!important;border-radius:100px;background:var(--toggle-off);cursor:pointer;transition:background .2s}.switch::after{content:'';position:absolute;top:4px;left:4px;width:18px;height:18px;background:var(--on-toggle);border-radius:50%;transition:transform .2s}.switch:checked{background:var(--accent)}.switch:checked::after{transform:translateX(17px);background:var(--on-toggle)}.menu{position:absolute;z-index:60;min-width:180px;background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:6px;box-shadow:0 12px 36px #0006}.menu button{display:flex;align-items:center;gap:10px;min-height:42px;border-radius:9px;padding:9px 10px;text-align:left;width:100%;font-size:12px;color:var(--text)}.menu button:hover{background:var(--surface-2)}.menu button.danger{color:var(--danger)}

.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:24px 0}.stat-card{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:23px;min-width:0}.stat-card>.row{justify-content:space-between}.stat-card h3,.stat-label{font-size:12px;color:var(--muted);font-weight:500}.stat-card svg{color:var(--accent-ink)}.stat-card .metric{font-size:33px;font-weight:800;letter-spacing:-1px;line-height:1.3;margin:14px 0 5px}.metric small{font-family:'DM Sans',sans-serif;font-size:14px;font-weight:400;color:var(--muted);letter-spacing:0;margin-left:3px}.stat-card .small{color:var(--faint);font-size:11px}.chart-card{background:var(--surface);border-radius:25px;padding:24px;margin-top:18px}.chart-card h3{font-size:15px}.chart-card .subtitle{font-size:12px;margin-top:5px}.bars{height:170px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:20px 4px 24px;border-bottom:1px solid var(--line);margin:18px 0 27px;position:relative;background:repeating-linear-gradient(to top,transparent 0,transparent 43px,var(--line) 44px,transparent 45px)}.bar{flex:1;min-width:0;max-width:70px;position:relative;background:var(--accent);border-radius:7px 7px 3px 3px;min-height:2px}.bar.empty{margin:0;padding:0;min-height:2px;border:0;display:block;background:var(--surface-3)}.bar span,.bar-label{position:absolute;bottom:-26px;left:50%;transform:translateX(-50%);font-size:10px;color:var(--muted);white-space:nowrap}.bar b,.bar-value{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:10px;font-weight:500;color:var(--accent-ink)}.bar-wrap{flex:1;display:flex;align-items:flex-end;height:100%;justify-content:center;position:relative}.bar-wrap .bar{width:100%;flex:1}.bar-wrap>span{position:absolute;bottom:-26px;font-size:10px;color:var(--muted)}.gauge{display:flex;flex-direction:column;align-items:center;gap:15px;position:relative}.ring{width:132px;height:132px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--accent) calc(var(--value,0)*1%),var(--ring-track) 0);position:relative}.ring::before{content:'';position:absolute;inset:10px;border-radius:50%;background:var(--surface)}.ring strong,.ring span{position:relative;z-index:1;font-family:'Manrope',sans-serif;font-size:30px;letter-spacing:-1px}.ring-svg{transform:rotate(-90deg)}.history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);font-size:13px}.history-row .muted{font-size:12px}.stat-two-col{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}.heatmap{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.heatmap-cell{aspect-ratio:1;border-radius:6px;background:var(--surface-3)}.heatmap-cell.active{background:var(--accent)}.chart-empty{min-height:145px;display:flex;align-items:center;justify-content:center;color:var(--faint);font-size:12px;text-align:center}

.timeline{position:relative;margin:28px 0}.timeline-item{display:grid;grid-template-columns:62px minmax(0,1fr);column-gap:17px;position:relative;padding-bottom:12px}.time-label{font-size:11px;line-height:1.5;color:var(--muted);font-variant-numeric:tabular-nums;padding-top:17px;text-align:right}.time-label small{display:block;color:var(--faint);font-size:10px;margin-top:4px}.timeline-card{display:flex;align-items:center;gap:13px;padding:16px 18px;border-radius:20px;background:var(--surface);border:1px solid var(--surface-2);min-height:76px;border-left:3px solid var(--event-color,var(--accent));min-width:0}.timeline-card .event-body{flex:1;min-width:0}.timeline-card h3{font-size:14px;font-weight:600;overflow-wrap:anywhere}.timeline-card p{font-size:11px;color:var(--muted);margin-top:4px}.timeline-card>svg{color:var(--event-color,var(--accent-ink));width:21px;height:21px}.timeline-card.done{opacity:.62}.timeline-card .icon-btn{margin:-6px;min-width:35px;width:35px}.timeline-card.fixed{background:var(--surface-2);border-left-color:var(--accent-border)}.timeline-card.rest{background:var(--surface-2);border-left-color:var(--accent-border)}.gap{display:flex;align-items:center;gap:8px;min-height:42px;font-size:11px;color:var(--faint);padding-left:18px}.gap::before{content:'';height:1px;width:14px;background:var(--line)}.timeline-item.gap-row{padding-bottom:0}.warning{display:flex;align-items:flex-start;gap:10px;padding:15px 17px;margin:14px 0;border:1px solid var(--yellow);border-radius:16px;background:var(--yellow-soft);color:var(--yellow);font-size:12px;line-height:1.65}.warning svg{width:17px;height:17px;margin-top:2px}.info-note{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.7;color:var(--muted);padding:15px 0}.info-note>svg{width:16px;min-width:16px;margin-top:3px;color:var(--accent-ink)}.day-mode{display:flex;align-items:center;gap:12px;background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:13px 16px;margin-top:20px}.day-mode label{font-size:12px;color:var(--muted);white-space:nowrap}.day-mode select{margin-left:auto;background:none;border:0;color:var(--text);outline:none;max-width:65%;min-height:32px;font-size:12px}.day-mode select option{background:var(--surface)}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin-top:22px}.month-label{font-size:10px;text-align:center;color:var(--faint);padding-bottom:7px}.month-day{min-width:0;min-height:77px;border-radius:13px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:10px;background:var(--surface-2);border:1px solid transparent;font-size:12px}.month-day:hover{border-color:var(--line)}.month-day.today{border-color:var(--accent)}.month-day.active{background:var(--accent-soft);color:var(--accent-ink)}.month-day.other{opacity:.35}.month-day .dots{margin-top:auto;align-self:center}.month-day .badge{font-size:9px;padding:2px 4px}.legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin-top:18px}.legend span{display:flex;align-items:center;gap:6px}.legend i{display:inline-block;width:7px;height:7px;background:var(--accent);border-radius:50%}

.toast{position:fixed;bottom:113px;left:50%;transform:translateX(-50%);max-width:min(440px,calc(100% - 40px));display:flex;align-items:center;gap:13px;padding:14px 18px;border-radius:15px;z-index:200;background:var(--surface);color:var(--text);border:1px solid var(--line);box-shadow:0 9px 40px #0006;font-size:12px;line-height:1.5;animation:toast-in .2s ease}.toast button{font-size:12px;font-weight:700;color:var(--accent-ink);min-height:32px;margin:-8px 0;padding:4px 5px;white-space:nowrap}.toast svg{width:18px;height:18px;color:var(--accent-ink)}.onboarding{max-width:650px;margin:50px auto;padding:38px;background:var(--surface);border-radius:30px}.onboarding h1{font-size:31px}.onboarding p{color:var(--muted);margin-top:14px;line-height:1.8}.onboarding .btn{margin-top:26px}.onboarding-icon{background:var(--accent-soft);color:var(--accent-ink);width:66px;height:66px;border-radius:22px;display:grid;place-items:center;margin-bottom:25px}.list-divider{display:flex;align-items:center;gap:12px;color:var(--faint);font-size:10px;text-transform:uppercase;letter-spacing:1.2px;margin:24px 0 16px}.list-divider::after{content:'';flex:1;height:1px;background:var(--line)}.error-panel{padding:24px;border:1px solid var(--danger);border-radius:20px;background:var(--danger-soft);color:var(--danger);margin:30px 0}.loading{display:grid;place-items:center;min-height:60vh;color:var(--muted);font-size:13px}.loading::before{content:'';height:25px;width:25px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite;margin-bottom:14px}

@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes slide-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes toast-in{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes breathe{50%{box-shadow:0 0 0 6px #7265ff09}}
@media(min-width:900px){.habit-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.week{max-width:690px;margin-left:auto;margin-right:auto}.hero-summary{padding:23px 26px}.topbar{padding-bottom:42px}.page-header h1{font-size:39px}.today-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px}.today-grid .habit-list{grid-template-columns:1fr}.today-grid .hero-summary{margin-top:0}.desktop-two{display:grid;grid-template-columns:1fr 1fr;gap:24px}.desktop-two .section-title{margin-top:0}.page-content{animation:fade-in .18s ease}}
@media(max-width:899px){#app{padding-inline:24px;max-width:720px}.topbar{padding:25px 0 30px}.board{grid-template-columns:1fr;gap:26px}.column .task-card+.task-card{margin-top:10px}.column-heading,.column>h2{margin-bottom:12px}.column-empty{padding:17px}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-two-col{grid-template-columns:1fr}.fab{right:25px}.month-day{min-height:63px;padding:8px}.stats-grid{gap:10px}.stat-card{padding:19px}.stat-card .metric{font-size:28px}.stat-card h3{font-size:11px}}
@media(max-width:560px){#app{padding:0 19px 145px}.topbar{padding:21px 0 28px}.brand{font-size:17px;gap:8px}.brand-mark{width:30px;height:30px;border-radius:10px}.brand-mark svg{width:18px;height:18px}.topbar-date{display:none}.topbar .icon-btn{width:39px;height:39px;min-width:39px;border-radius:13px}.topbar .icon-btn::after{content:'';position:absolute;width:44px;height:44px}.topbar .icon-btn svg{width:19px;height:19px}h1{font-size:30px;letter-spacing:-1.1px}.page-header{margin-bottom:21px;gap:10px}.page-header .eyebrow{font-size:9px;letter-spacing:1.9px;margin-bottom:9px}.page-header .subtitle{font-size:12px;margin-top:8px}.page-header .page-actions .btn{min-height:40px;padding:9px 11px;font-size:11px}.page-header .page-actions .btn svg{width:16px;height:16px}.page-heading{margin-bottom:20px}.subtitle{font-size:13px}.week{gap:4px;margin:20px -3px 24px}.day{min-height:89px;gap:6px;padding:11px 2px;border-radius:21px}.day-name{font-size:10px}.day-number{font-size:20px}.dots{gap:2px}.dots i,.dots span,.dot{width:4px;height:4px}.week-nav{margin-top:18px}.week-nav .icon-btn{width:34px;min-width:34px;height:40px}.week-nav .muted{font-size:11px}.habit-list{gap:11px}.habit-card{gap:13px;padding:13px 13px 13px 12px;min-height:98px;border-radius:25px}.icon-tile{width:60px;height:60px;min-width:60px;border-radius:20px}.icon-tile svg{width:27px;height:27px}.habit-body h3{font-size:15px;font-weight:700;line-height:1.4}.habit-body p,.habit-body .habit-detail{font-size:11px}.habit-action{min-width:39px;width:39px;min-height:44px}.habit-action svg{width:23px;height:23px}.habit-card .more-btn{opacity:1;right:10px;top:0;height:23px;width:25px;min-width:25px}.habit-card .more-btn svg{width:16px;height:16px;color:var(--muted)}.habit-actions{gap:0}.habit-progress{margin-top:8px}.habit-meta{font-size:10px}.section-title{margin:23px 0 13px}.section-title h2{font-size:14px}.section-title .small{font-size:11px}.hero-summary{padding:18px 19px;margin:21px 0;border-radius:21px}.hero-summary h2{font-size:14px}.hero-summary p{font-size:11px}.hero-summary .summary-number{font-size:23px}.progress-track{margin-top:14px;height:4px}.gentle-note{font-size:11px;margin-top:22px}.bottom-nav{bottom:calc(11px + env(safe-area-inset-bottom));height:72px;border-radius:23px;width:calc(100% - 30px);max-width:410px;padding:5px 7px}.nav-item{font-size:9px;gap:5px;min-height:59px;border-radius:16px}.nav-item svg{width:21px;height:21px}.fab{width:55px;height:55px;border-radius:19px;bottom:calc(101px + env(safe-area-inset-bottom));right:22px}.toolbar{margin:19px 0;gap:7px}.toolbar .search{flex-basis:100%;min-width:0}.toolbar .btn{padding:9px 12px}.chip{font-size:11px;min-height:37px;padding:7px 12px}.filter-row{margin-inline:-1px}.tabs{margin:0 0 20px}.tab{padding:10px 12px;font-size:12px;min-height:47px;gap:6px}.tab svg{width:17px;height:17px}.task-card{padding:16px;border-radius:20px}.task-title{font-size:14px}.task-footer{font-size:10px}.task-list .task-card{padding:17px}.collection-grid{gap:10px}.collection-card{padding:15px 13px;gap:10px;border-radius:19px;min-height:100px;align-items:flex-start;flex-direction:column}.collection-card .icon-tile.small{width:35px;height:35px;min-width:35px;border-radius:12px}.collection-card h3{font-size:13px}.collection-card p{font-size:11px}.empty{min-height:230px;padding:29px 20px;border-radius:22px}.empty p{font-size:12px}.empty h3{font-size:15px}.stats-grid{gap:8px;margin:21px 0}.stat-card{padding:16px 12px;border-radius:20px}.stat-card h3{font-size:10px;line-height:1.5}.stat-card>.row>svg{width:15px;height:15px}.stat-card .metric{font-size:26px;margin:12px 0 5px}.metric small{font-size:10px;margin-left:1px}.stat-card .small{font-size:9px}.chart-card{padding:20px 17px;border-radius:23px}.chart-card h3{font-size:14px}.bars{gap:10px;height:165px;padding-inline:3px}.bar{border-radius:5px 5px 2px 2px}.bar span,.bar-label{font-size:9px}.timeline{margin-top:24px}.timeline-item{grid-template-columns:43px minmax(0,1fr);column-gap:12px;padding-bottom:10px}.time-label{font-size:10px;padding-top:18px}.time-label small{font-size:9px}.timeline-card{padding:15px 13px;gap:10px;min-height:78px;border-radius:18px}.timeline-card h3{font-size:13px}.timeline-card p{font-size:10px}.timeline-card>svg{width:19px;height:19px}.timeline-card .icon-btn{width:30px;min-width:30px}.gap{font-size:10px;min-height:40px;padding-left:11px}.day-mode{padding:11px 13px;gap:8px}.day-mode label,.day-mode select{font-size:11px}.warning{font-size:11px;padding:13px 14px}.month-grid{gap:5px}.month-day{min-height:51px;padding:7px 4px;border-radius:10px;align-items:center;font-size:10px;gap:6px}.month-label{font-size:9px}.legend{font-size:9px;gap:12px}.modal-backdrop{padding:0;align-items:flex-end}.sheet{max-width:100%;max-height:94dvh;border-radius:27px 27px 0 0;border-bottom:0;animation:slide-in .2s ease}.sheet-header{padding:24px 20px 17px;position:relative}.sheet-header::before{content:'';position:absolute;top:8px;left:calc(50% - 16px);width:32px;height:3px;border-radius:5px;background:var(--muted)}.sheet-header h2{font-size:20px}.sheet-content{padding:6px 20px 24px}.sheet-footer{padding:15px 20px calc(16px + env(safe-area-inset-bottom))}.sheet-footer .btn{flex:1}.sheet-footer .btn.primary{min-width:0}.form-grid{gap:17px 12px}.field label,.field-label{font-size:11px}.field input:not([type=checkbox]):not([type=color]):not([type=range]),.field textarea,.field select,.input{font-size:16px;min-height:47px;padding:11px 12px}.field .hint{font-size:10px}.icon-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.icon-option{height:43px;border-radius:11px}.icon-option svg{width:21px;height:21px}.swatches{gap:9px}.swatch{width:34px;height:34px;border-radius:11px}.segmented button{font-size:11px;padding-inline:10px}.segmented.compact button{padding-inline:11px}.toast{bottom:calc(100px + env(safe-area-inset-bottom));max-width:calc(100% - 35px);width:max-content;font-size:11px;padding:12px 15px;border-radius:14px;gap:10px}.toast button{font-size:11px}.onboarding{margin:20px 0;padding:27px 22px;border-radius:25px}.onboarding h1{font-size:27px}.onboarding p{font-size:13px}.settings-row p{font-size:11px}}
@media(max-width:374px){#app{padding-inline:15px}.habit-card{padding-inline:10px;gap:10px}.icon-tile{width:53px;height:56px;min-width:53px;border-radius:18px}.habit-body h3{font-size:14px}.habit-body p{font-size:10px}.habit-action{width:35px;min-width:35px}.habit-card .more-btn{right:5px}.day{min-height:85px}.day-name{font-size:9px}.day-number{font-size:19px}.dots{gap:2px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid .stat-card:last-child:nth-child(odd){grid-column:1/-1}.icon-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.sheet-header,.sheet-content{padding-left:17px;padding-right:17px}.form-grid{column-gap:9px}.tabs .tab{padding-inline:10px;font-size:11px}.page-header .page-actions .btn{padding-inline:9px}.bottom-nav{max-width:calc(100% - 24px)}.fab{right:18px}.hero-summary .summary-number{font-size:21px}.hero-summary{padding-inline:16px}}
.modal-open{overflow:hidden}.saving [data-action]{cursor:progress}.private-badge{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.private-badge svg{color:var(--muted)}.brand>svg{color:var(--accent-ink)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.page-heading .icon-btn{border:1px solid var(--line);border-radius:13px}.day>span:first-child{font-size:11px;font-weight:500}.day>strong{font:700 22px/1.2 'Manrope',sans-serif;letter-spacing:-.5px;color:var(--text)}.day.is-today:not(.active){box-shadow:inset 0 0 0 1px var(--line)}.hero-summary .row{justify-content:space-between}.summary-count{font:800 27px/1.2 'Manrope',sans-serif;letter-spacing:-1px;white-space:nowrap}.summary-count>span{font-size:14px;font-weight:500;color:var(--muted);letter-spacing:0}.habits-list{display:grid;gap:12px}.habit-body{text-align:left;padding:6px 0;min-height:60px}.habit-body .habit-progress{height:auto;background:none;overflow:visible;max-width:none;line-height:1.5;margin:5px 0 0;border-radius:0}.habit-card.is-complete{background:var(--surface)}.habit-card.is-complete h3{color:var(--text)}.empty-circle{display:block;width:28px;height:28px;border:2px solid var(--muted);border-radius:50%}.habit-order{display:flex;flex-direction:column;margin-left:0}.habit-order .icon-btn{width:38px;min-width:38px;height:38px}.habit-order .icon-btn svg{width:17px;height:17px}.footnote{text-align:center;color:var(--faint);font-size:11px;line-height:1.7;margin:26px 0 10px}.running-banner{background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:15px;padding:9px 14px;margin-bottom:20px;color:var(--accent-ink);font-size:12px}.running-banner>button:first-of-type{flex:1;text-align:left;min-height:44px;font-size:12px}.running-banner [data-running]{display:inline-block;font-variant-numeric:tabular-nums;font-weight:700;margin-left:9px;color:var(--text)}.column-header{justify-content:space-between;margin-bottom:10px}.column-header .icon-btn{margin:-4px 0}.list-title{display:flex;align-items:center;gap:8px;min-height:44px;text-align:left;font-size:12px;font-weight:600;flex:1;color:var(--muted);padding:8px 0}.list-title.selected{color:var(--text)}.list-title i{width:6px;height:6px;border-radius:50%;flex-shrink:0}.list-title>span{font-size:10px;margin-left:3px;color:var(--faint)}.column-cards{display:flex;flex-direction:column;gap:10px}.column-cards>.task-card+.task-card{margin-top:0}.add-card{display:flex;align-items:center;justify-content:center;gap:7px;min-height:45px;color:var(--faint);font-size:12px;border:1px dashed var(--line);border-radius:14px;width:100%}.add-card:hover{color:var(--accent-ink);background:var(--accent-soft);border-color:var(--accent-border)}.task-main>.task-title{flex:1;min-width:0;text-align:left;padding:0;min-height:28px}.task-main>.icon-btn{width:29px;min-width:29px;height:29px;margin:-2px -6px 0 0}.task-main>.icon-btn svg{width:19px;height:19px}.task-card.is-complete .check-btn{background:var(--accent);border-color:var(--accent)}.task-card.is-complete .task-title{color:var(--muted);text-decoration:line-through}.tag i{display:inline-block;width:4px;height:4px;border-radius:50%;background:currentColor}.priority-high{color:var(--yellow);background:var(--yellow-soft)}.priority-medium{color:var(--accent-ink)}.priority-low{color:var(--green);background:var(--green-soft)}.tag.urgent{color:var(--danger);background:var(--danger-soft)}.matrix{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:22px}.quadrant{background:var(--surface-2);border:1px solid var(--line);padding:17px;border-radius:22px;min-height:160px}.quadrant>h3{font-size:12px;color:var(--muted);margin-bottom:16px}.quadrant>.task-card+.task-card{margin-top:10px}.subtasks summary{font-size:11px;color:var(--muted);cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:36px}.subtasks summary::-webkit-details-marker{display:none}.subtasks .subtask{font-size:12px}.menu-actions{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.menu-actions .btn{flex:1;white-space:normal;min-width:135px;text-align:left;justify-content:flex-start;padding:12px 14px;font-size:12px;background:var(--control)}.menu-actions .btn svg{width:18px;height:18px;color:var(--accent-ink)}.info-card{padding:19px 20px;margin:19px 0;border:1px solid var(--line);border-radius:19px;background:var(--accent-wash)}.info-card h3{font-size:13px;margin-bottom:7px;line-height:1.5}.info-card h3>svg{margin-right:6px;color:var(--accent-ink)}.info-card p{font-size:12px;line-height:1.8}.info-card .btn{margin-top:13px}.sheet>form{display:flex;flex-direction:column;min-height:0;max-height:inherit;overflow:hidden}.sheet-content>.field,.sheet-content>.form-grid,.sheet-content>.appearance-row{margin-bottom:18px}.field>span:first-child{font-size:12px;font-weight:500;color:var(--muted)}.sheet-content>h3{font-size:15px;margin:14px 0 9px}.sheet-content>hr{border:0;border-top:1px solid var(--line);margin:25px 0}.appearance-row{align-items:flex-end;gap:15px}.appearance-row .field{margin:0;flex:1;min-width:0}.appearance-row .field:has(input[type=color]){max-width:60px}.appearance-row input[type=color]{height:47px;border-radius:12px;cursor:pointer}.appearance-row .icon-tile{margin-bottom:0}.weekday-picker>label{position:relative;display:flex;align-items:center;justify-content:center;min-height:44px;background:var(--surface-3);border:1px solid transparent;border-radius:10px;color:var(--muted);font-size:11px;cursor:pointer;overflow:hidden}.weekday-picker>label:has(input:checked){background:var(--accent-soft);border-color:var(--accent);color:var(--accent-ink)}.weekday-picker input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.weekday-picker input:focus-visible+span{outline:2px solid var(--accent-ink);outline-offset:4px}.weekday-picker>label>span{pointer-events:none}.icon-grid .icon-option{flex-direction:column;gap:7px;height:68px;padding:8px 3px}.icon-option>span{font-size:8px;line-height:1.2;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon-picker .search,#icon-picker .search{margin-bottom:12px}#icon-picker{margin-bottom:22px}#icon-picker .icon-grid{max-height:290px;overflow:auto;padding:3px;scrollbar-width:thin}.date-nav{justify-content:center;margin:0 0 18px;gap:4px}.date-picker{position:relative;min-height:44px;display:flex;align-items:center;justify-content:center;padding:0 12px;font-size:13px;font-weight:500;cursor:pointer}.date-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0}.date-picker input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;cursor:pointer}.calendar-week{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:24px}.calendar-week .stat-card{padding:16px;min-height:140px}.week-title{display:block;text-align:left;width:100%;font-size:11px;color:var(--muted);min-height:44px;margin-bottom:8px}.week-title strong{font-size:13px;color:var(--text);margin-right:7px}.week-reservation{width:100%;display:flex;flex-direction:column;text-align:left;gap:4px;background:var(--surface-2);border-left:3px solid var(--accent);border-radius:8px;padding:9px 10px;margin:8px 0;font-size:11px}.week-reservation span{color:var(--muted);font-size:10px}.week-reservation b{font-weight:500}.weekday-label{font-size:10px;text-align:center;color:var(--faint);padding-bottom:7px}.month-day.selected{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-ink)}.month-day small{font-size:9px;color:var(--muted)}.timeline-item{grid-template-columns:52px 40px minmax(0,1fr);column-gap:12px;align-items:center}.timeline-dot{width:38px;height:38px;border-radius:13px;display:flex;align-items:center;justify-content:center;color:var(--text);position:relative}.timeline-item:not(:last-child) .timeline-dot::after{content:'';position:absolute;top:43px;height:31px;width:1px;background:var(--line);left:19px}.timeline-card{border-left:0;padding:14px 17px;flex-wrap:wrap;gap:10px}.timeline-title{flex:1;text-align:left;padding:0;min-height:44px;min-width:0}.timeline-title>span{display:block;font-size:10px;line-height:1.6;margin-bottom:4px}.timeline-title h3{font-size:13px}.timeline-card>.warning{flex-basis:100%;margin:2px 0 0;font-size:10px;padding:8px 10px}.timeline-card.is-complete{background:var(--surface)}.timeline .gap{margin-left:115px;padding-left:0}.timeline .time-label{align-self:start;padding-top:21px}.stats-filters{margin:21px 0 16px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.stats-grid>.wide{grid-column:1/-1}.stats-grid .section-title{margin:0 0 8px}.stats-grid .section-title h3{font-size:12px}.stats-grid .section-title .icon-btn{width:30px;min-width:30px;height:30px;margin:-8px -8px -8px 0}.gauge{display:block;max-width:260px;margin:15px auto 10px;min-height:145px}.gauge>svg{width:100%;height:auto;max-height:160px;color:inherit}.gauge-value{position:absolute;top:53%;left:0;width:100%;text-align:center;transform:translateY(-14%);font:800 29px/1.3 'Manrope',sans-serif;letter-spacing:-1px}.gauge-value small{font-family:'DM Sans',sans-serif;font-weight:400;display:block;color:var(--muted);font-size:10px;letter-spacing:0;margin-top:3px}.success-wrap{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap;margin:22px 0 17px}.ring{width:132px;height:132px;flex-shrink:0}.ring>span{display:block;text-align:center;font-size:27px;font-weight:700}.ring>span>small{display:block;font-family:'DM Sans',sans-serif;font-size:9px;font-weight:400;letter-spacing:0;color:var(--muted);max-width:92px;margin:2px auto 0}.legend.vertical{flex-direction:column;align-items:flex-start;gap:7px;font-size:10px;margin:0}.metrics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 18px;margin-top:21px}.metrics-grid .metric{margin:0}.metric>strong{display:block;font-size:29px;font-weight:800;letter-spacing:-1px}.metric>span{display:block;font-family:'DM Sans',sans-serif;font-size:11px;font-weight:400;line-height:1.5;letter-spacing:0;color:var(--muted);margin-top:5px}.time-totals{border-top:1px solid var(--line);padding-top:17px;margin-top:23px;font-size:12px}.time-totals p+p{margin-top:6px}.status-dot{margin-right:0;border:1px solid var(--muted);background:none;flex-shrink:0;width:7px;height:7px}.status-dot.completed{background:var(--success);border-color:var(--success)}.status-dot.partial{background:var(--yellow);border-color:var(--yellow)}.status-dot.planned{border-color:var(--accent);background:var(--accent-soft)}.status-dot.skipped{background:var(--muted);border-color:var(--muted)}.status-dot.missed{background:var(--danger);border-color:var(--danger)}.status-dot.unknown{border-style:dashed;border-color:var(--muted)}.status-dot.none{opacity:.14}.detail-hero{display:flex;align-items:center;gap:18px;margin:5px 0 23px}.detail-hero .icon-tile{width:74px;height:74px;min-width:74px;border-radius:24px}.detail-hero .icon-tile svg{width:35px;height:35px}.detail-hero p{font-size:12px;color:var(--muted);margin:3px 0}.detail-hero h2{font-size:23px;margin:5px 0;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin:17px 0 23px}.detail-actions .btn{font-size:11px;min-height:44px;padding:10px 13px}.sheet .stats-grid{margin:18px 0}.sheet .stats-grid .stat-card{padding:18px}.sheet .stats-grid .gauge{min-height:114px;margin-top:14px}.sheet .stats-grid .gauge-value{font-size:24px}.sheet .stats-grid .gauge-value small{font-size:8px}.sheet .stats-grid .success-wrap{gap:12px;margin:16px 0}.sheet .stats-grid .ring{width:108px;height:108px}.sheet .stats-grid .ring::before{inset:8px}.sheet .stats-grid .ring span{font-size:23px}.sheet .stats-grid .legend.vertical{font-size:8px}.sheet-content>.stat-card{margin-top:16px}.sheet-content>.stat-card>.section-title{margin-top:0}.session-row,.template-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.session-row button,.template-row button{font-size:11px}.bars .bar{display:flex;align-items:center;flex-direction:column;justify-content:flex-end;background:none;max-width:none;height:100%;border-radius:0;min-height:44px;padding:0 0 2px;gap:8px}.bars .bar>.bar-track{position:relative;display:flex;align-items:flex-end;width:100%;max-width:35px;flex:1;min-height:0;left:auto;bottom:auto;transform:none;border-radius:6px 6px 2px 2px;background:var(--surface-2);overflow:hidden}.bar-track>i{display:block;width:100%;border-radius:6px 6px 2px 2px;min-height:2px}.bars .bar>span:not(.bar-track){position:static;transform:none;font-size:10px;color:var(--muted);line-height:1}.bars .bar>small{position:static;font-size:9px;color:var(--faint);line-height:1}.bars:has(.bar-track){height:175px;padding:0;background:none;border:0;margin-bottom:0;gap:15px}.chip,.segmented button,.weekday-picker button,.icon-option{min-height:44px}.icon-btn{position:relative}.icon-btn.small::after,.habit-card .more-btn::after,.task-footer .icon-btn::after,.task-main>.icon-btn::after,.timeline-card .icon-btn::after{content:'';position:absolute;width:44px;height:44px;left:50%;top:50%;transform:translate(-50%,-50%)}.toast button{min-height:44px}.menu button{min-height:44px}
@media(min-width:900px){.habits-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.stats-grid{grid-template-columns:1fr 1fr 1.4fr}.stats-grid>.wide{grid-column:auto}.sheet .stats-grid{grid-template-columns:1fr 1fr}.sheet .stats-grid>.wide{grid-column:1/-1}.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:21px}.sheet .metrics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.private-badge{font-size:9px;gap:5px}.private-badge svg{width:12px;height:12px}.topbar>.row{gap:9px}.page-heading .eyebrow{font-size:9px;letter-spacing:1.8px}.page-heading .icon-btn{width:40px;min-width:40px;height:40px}.day>span:first-child{font-size:10px}.day>strong{font-size:20px}.summary-count{font-size:26px}.summary-count>span{font-size:12px}.habits-list{gap:11px}.habit-body{min-height:58px}.habit-body .habit-progress{font-size:11px;margin-top:4px;line-height:1.5}.empty-circle{width:26px;height:26px}.habit-order .icon-btn{width:28px;min-width:28px;height:33px}.habit-order .icon-btn svg{width:15px;height:15px}.footnote{font-size:10px}.appearance-row{gap:10px}.appearance-row .field>span{font-size:10px}.appearance-row .field:has(input[type=color]){max-width:48px}.appearance-row .field:last-of-type{flex:1}.appearance-row .icon-tile{width:55px;height:55px;min-width:55px;border-radius:18px}.field>span:first-child{font-size:11px}.icon-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.icon-grid .icon-option{height:66px}.icon-option>span{font-size:8px}.weekday-picker>label{font-size:10px}.date-nav{margin-bottom:16px}.date-picker{font-size:12px;padding-inline:8px}.calendar-week{grid-template-columns:1fr;gap:10px}.calendar-week .stat-card{min-height:90px}.calendar-week .week-title{margin:0 0 5px}.calendar-week .week-reservation{margin-bottom:0;min-height:45px}.timeline-item{grid-template-columns:38px 28px minmax(0,1fr);column-gap:9px}.timeline-dot{width:28px;height:33px;border-radius:10px}.timeline-dot svg{width:17px;height:17px}.timeline-item:not(:last-child) .timeline-dot::after{left:14px;top:38px;height:43px}.timeline-card{padding:13px 11px;gap:6px}.timeline-title>span{font-size:8px}.timeline-title h3{font-size:12px}.timeline-title p{font-size:9px}.timeline-card .habit-action{width:30px;min-width:30px}.timeline-card .habit-action svg{width:20px;height:20px}.timeline-card .empty-circle{width:22px;height:22px}.timeline .time-label{padding-top:21px;font-size:9px}.timeline .gap{margin-left:83px;font-size:9px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid>.wide{grid-column:1/-1}.stats-grid .stat-card{padding:16px 13px}.stats-grid .section-title h3,.stat-card h3{font-size:11px}.stats-grid .gauge{min-height:107px;margin-top:22px;margin-bottom:10px}.gauge-value{font-size:25px;top:53%}.gauge-value small{font-size:8px;line-height:1.4;max-width:100px;margin:4px auto 0}.gauge>svg{max-height:135px}.success-wrap{margin:18px 0 12px;gap:13px}.ring{width:107px;height:107px}.ring::before{inset:8px}.ring>span{font-size:23px}.ring>span>small{font-size:8px;max-width:80px}.legend.vertical{font-size:8px;gap:6px}.stats-grid .small{font-size:9px;line-height:1.7}.metrics-grid{gap:19px 13px;grid-template-columns:repeat(3,minmax(0,1fr))}.metric>strong{font-size:26px}.metric>span{font-size:9px}.stats-grid .metric{margin:0}.time-totals{font-size:11px}.info-card{padding:16px 17px;margin:17px 0}.info-card h3{font-size:12px}.info-card p{font-size:11px}.detail-hero{gap:13px}.detail-hero .icon-tile{width:63px;height:67px;min-width:63px;border-radius:21px}.detail-hero h2{font-size:20px}.detail-hero p{font-size:11px}.detail-actions .btn{padding:9px 11px;font-size:10px}.sheet .stats-grid .stat-card{padding:15px 12px}.sheet .stats-grid .gauge{min-height:106px;margin-top:21px}.sheet .stats-grid .gauge-value{font-size:22px}.sheet .stats-grid .gauge-value small{font-size:7px}.sheet .stats-grid .ring{width:99px;height:99px}.sheet .stats-grid .ring span{font-size:21px}.sheet .stats-grid .ring small{font-size:7px;max-width:70px}.sheet .metrics-grid{gap:18px 10px}.sheet .metrics-grid .metric strong{font-size:25px}.sheet .metrics-grid .metric span{font-size:8px}.sheet-content>.stat-card{padding:18px 14px}.matrix{grid-template-columns:1fr}.collection-card{flex-direction:column}.collection-card>svg{width:24px;height:24px}.menu-actions .btn{font-size:11px;min-width:130px}.session-row,.template-row{font-size:11px}.bars:has(.bar-track){gap:10px;height:155px}.bars .bar>span:not(.bar-track){font-size:9px}.bars .bar>small{font-size:8px}}
@media(max-width:374px){.private-badge{font-size:8px}.private-badge svg{display:none}.topbar>.row{gap:6px}.stats-grid,.sheet .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid .stat-card:last-child:nth-child(odd){grid-column:1/-1}.habit-order{margin-right:-5px}.habit-card:has(.habit-order){gap:7px}.habit-card:has(.habit-order) .habit-action{min-width:28px;width:28px}.habit-card:has(.habit-order) .icon-tile{width:47px;min-width:47px}.habit-card:has(.habit-order) h3{font-size:12px}.icon-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
/* Keep tap areas separate from small glyphs and reserve room above navigation. */
.habit-action{width:44px;min-width:44px;min-height:44px}.topbar .icon-btn,.page-heading .icon-btn,.task-main>.icon-btn,.timeline-card .icon-btn,.stats-grid .section-title .icon-btn{width:44px;min-width:44px;height:44px}.task-main>.task-title{min-height:44px}.task-main{align-items:center}.task-main>.icon-btn{margin:-3px -6px -3px 0}.habit-order .icon-btn{width:44px;min-width:44px;height:44px}.sheet-content{scroll-padding-block:20px}.sheet-content input,.sheet-content select,.sheet-content textarea{min-width:0}.field input:user-invalid,.field textarea:user-invalid,.field select:user-invalid{border-color:var(--danger)}.field input[type=date],.field input[type=time]{min-width:0;max-width:100%}.toast{bottom:180px;overflow-wrap:anywhere;max-height:30dvh;overflow-y:auto;align-items:center}.toast .btn{flex-shrink:0;min-width:60px;min-height:44px}.modal-open .toast{bottom:calc(91px + env(safe-area-inset-bottom));max-width:calc(100% - 32px);box-shadow:0 8px 30px #0008}.session-row,.template-row{flex-wrap:wrap}.session-row>.btn,.template-row>.btn{margin-left:auto}.sheet-footer{padding-bottom:calc(20px + env(safe-area-inset-bottom));gap:10px}
@media(max-width:560px){.habit-action{width:44px;min-width:44px}.habit-card:has(.habit-order){flex-wrap:wrap;column-gap:10px;row-gap:5px}.habit-card:has(.habit-order)>.habit-body{flex:1;min-width:100px}.habit-card:has(.habit-order) .habit-action{width:44px;min-width:44px}.habit-card:has(.habit-order) .icon-tile{width:53px;min-width:53px}.habit-card:has(.habit-order) h3{font-size:14px}.habit-order{flex-direction:row;justify-content:flex-end;gap:6px;flex-basis:100%;border-top:1px solid var(--line);margin:3px 0 -6px;padding-top:3px}.habit-order .icon-btn{width:44px;height:44px;min-width:44px}.habit-order .icon-btn svg{width:18px;height:18px}.timeline-card .habit-action{width:44px;min-width:44px}.timeline-card{padding-right:7px}.timeline-item{grid-template-columns:36px 26px minmax(0,1fr);column-gap:7px}.timeline-dot{width:26px}.timeline-dot::after{left:13px!important}.timeline .gap{margin-left:76px}.timeline-title h3{font-size:12px}.weekday-picker{gap:2px;grid-template-columns:repeat(7,minmax(44px,1fr));overflow-x:auto;padding:2px}.weekday-picker>label{min-height:44px}.weekday-picker{margin-inline:-2px}.stat-card:has(>.month-grid){padding-inline:6px}.stat-card:has(>.month-grid)>h3,.stat-card:has(>.month-grid)>p,.stat-card:has(>.month-grid)>.section-title,.stat-card:has(>.month-grid)>.legend{margin-left:10px;margin-right:10px}.stat-card:has(>.month-grid)>.section-title{gap:4px}.month-grid{grid-template-columns:repeat(7,minmax(44px,1fr));gap:3px 0;overflow-x:auto}.month-day{min-width:44px;min-height:51px}.toast{bottom:calc(174px + env(safe-area-inset-bottom));max-width:calc(100% - 32px);padding:11px 13px;font-size:11px;line-height:1.6}.toast .btn{padding:8px 10px;margin:-5px 0}.sheet-footer{padding:14px 20px calc(16px + env(safe-area-inset-bottom))}.sheet .stats-grid .section-title .icon-btn{margin:-11px -9px -11px 0}.sheet .stats-grid .section-title h3{max-width:80px}.bars .bar{position:relative}.bars .bar::after{content:'';position:absolute;inset:0 -5px}.private-badge{white-space:nowrap}.segmented{min-width:0}.segmented button{min-width:0;white-space:normal}.date-nav>.btn{min-width:0;padding-inline:10px}.stats-filters select{font-size:14px}.menu-actions .btn{min-height:48px}.info-card .btn{white-space:normal}}
@media(max-width:374px){.stats-grid,.sheet .stats-grid{grid-template-columns:1fr}.stats-grid>.wide,.sheet .stats-grid>.wide{grid-column:auto}.stats-grid .stat-card,.sheet .stats-grid .stat-card{padding:19px}.stats-grid .section-title h3,.sheet .stats-grid .section-title h3{font-size:12px;max-width:none}.stats-grid .gauge,.sheet .stats-grid .gauge{max-width:225px;min-height:140px;margin:15px auto 12px}.stats-grid .gauge-value,.sheet .stats-grid .gauge-value{font-size:29px}.stats-grid .gauge-value small,.sheet .stats-grid .gauge-value small{font-size:10px;max-width:none}.stats-grid .success-wrap,.sheet .stats-grid .success-wrap{flex-wrap:nowrap;gap:16px;margin:19px 0}.stats-grid .ring,.sheet .stats-grid .ring{width:108px;height:108px}.stats-grid .ring span,.sheet .stats-grid .ring span{font-size:25px}.stats-grid .ring small,.sheet .stats-grid .ring small{font-size:8px;max-width:85px}.stats-grid .legend.vertical,.sheet .stats-grid .legend.vertical{font-size:9px;gap:9px}.stats-grid .small,.sheet .stats-grid .small{font-size:10px}.metrics-grid,.sheet .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.metrics-grid .metric span,.sheet .metrics-grid .metric span{font-size:10px}.page-heading h1{font-size:28px}.brand{font-size:16px}.topbar>.row{gap:5px}.private-badge{font-size:8px}.appearance-row{gap:8px}.appearance-row .field:has(input[type=color]){max-width:45px}.stats-filters{grid-template-columns:1fr}}
.sheet-header h2{min-width:0;flex:1;overflow-wrap:anywhere}.sheet-header .icon-btn{flex-shrink:0}.detail-hero>div:last-child{min-width:0;overflow-wrap:anywhere}.collection-card,.list-title,.timeline-title{min-width:0}.collection-card h3,.list-title,.week-reservation b{overflow-wrap:anywhere}.running-banner>button:first-of-type{overflow-wrap:anywhere;min-width:0}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.bottom-nav,.fab,.topbar-actions,.toolbar,.page-actions,.icon-btn{display:none!important}#app{padding:20px;max-width:none}body{background:white;color:#111}.habit-card,.task-card,.stat-card,.chart-card{break-inside:avoid;border:1px solid #ddd;background:#f5f5f5;color:#111}.muted,.subtitle{color:#555}.board{grid-template-columns:repeat(3,1fr)}}
.fab { border-radius: 50%; }
.week-navigation { justify-content: space-between; margin-top: 18px; color: var(--muted); }
.week-navigation .date-picker { min-height: 44px; }
.free-windows { margin: 26px 0 32px; }
.free-windows h3 { font-size: 14px; margin-bottom: 10px; }
.free-windows .tag { background: var(--surface-2); padding: 8px 12px; border-radius: 12px; }
.period-results { margin-top: 18px; }
.period-results p { padding: 10px 0; border-top: 1px solid var(--surface-3); line-height: 1.55; }
/* Compact centered app header. */
.topbar{position:relative}
.topbar-title{position:absolute;left:50%;transform:translateX(-50%);font-size:21px;line-height:1.2;letter-spacing:-.55px;white-space:nowrap}
.task-toolbar{justify-content:flex-end;margin-bottom:18px}

/* The same font families and weight ranges requested by the live site's CSS.
   Latin and Latin Extended include Polish characters. Licenses are in public/fonts. */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/dm-sans-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/dm-sans-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('/fonts/manrope-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('/fonts/manrope-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
