:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,PingFang SC,Microsoft YaHei UI,Segoe UI,sans-serif;color:#17332a;background:#f3f8f5;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #17332a;--muted: #687871;--line: #d8e5df;--soft-line: #eaf1ed;--surface: #ffffff;--canvas: #f3f8f5;--accent: #35a779;--accent-dark: #237b58;--accent-soft: #e8f6ef;--coral: #ff3b30;--amber: #ff9500;--focus: #79c5a5;letter-spacing:0;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{min-width:320px;min-height:100vh;background:linear-gradient(135deg,#f8fbf9,#edf7f1 48%,#f5faf7);background-attachment:fixed}button,input,textarea,select{font:inherit;letter-spacing:0}button{color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid color-mix(in srgb,var(--focus) 45%,transparent);outline-offset:2px}.app-shell{min-height:100vh;display:grid;grid-template-columns:256px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:18px;padding:20px 16px 18px;border-right:1px solid rgb(200 220 210 / 72%);background:linear-gradient(180deg,#f9fcfaf0,#ecf7f1e8);box-shadow:8px 0 30px #2356400d;-webkit-backdrop-filter:blur(24px) saturate(135%);backdrop-filter:blur(24px) saturate(135%)}.brand{display:flex;align-items:center;gap:10px;padding:0 4px;font-size:19px;font-weight:720;line-height:1}.brand-version{margin-left:3px;color:var(--muted);font-size:10px;font-weight:650}.brand-mark{width:32px;height:32px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#58c493,#2e9b6e);border-radius:8px;box-shadow:0 5px 14px #2a916438,inset 0 0 0 1px #0000000d}button{border:0;cursor:pointer}.primary,.secondary,.danger-text,.text-button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 15px;border-radius:6px;font-size:14px;font-weight:650;white-space:nowrap}.primary{color:#fff;background:linear-gradient(135deg,#49ba88,#2f9d70);box-shadow:0 5px 15px #28895e33}.primary:hover{background:linear-gradient(135deg,#3daf7e,#25845e)}.primary:disabled{opacity:.5;cursor:not-allowed}.primary.wide{width:100%}.secondary{border:1px solid var(--line);background:#ffffffe0;-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%)}.secondary:hover{border-color:#b9d4c8;background:#fff}.sidebar-actions{display:grid;gap:8px}.sidebar-note-button{color:#486058;box-shadow:0 1px 2px #1d4d390a}.danger-text{color:#ff3b30;background:transparent;padding-inline:6px}.danger-text:hover{background:#fff0ef}.text-button{min-height:36px;color:var(--accent-dark);background:transparent;padding-inline:6px}.side-nav{display:flex;flex-direction:column;gap:2px}.side-nav button{width:100%;min-height:40px;display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:10px;padding:9px 12px;border-radius:6px;color:#50625b;font-size:14px;text-align:left;background:transparent}.side-nav button:hover{background:#ffffffb8}.side-nav button.active{color:var(--accent-dark);background:linear-gradient(90deg,#e2f3ea,#edf8f2);box-shadow:inset 3px 0 0 var(--accent)}.side-nav button.active span:not(.nav-count){font-weight:720}.nav-count{min-width:24px;color:#8e8e93;font-size:12px;text-align:right;font-variant-numeric:tabular-nums}.trash-nav{width:100%;min-height:40px;display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:10px;padding:0 10px;border-radius:7px;color:#68756e;background:transparent;text-align:left}.trash-nav:hover{color:var(--accent-dark);background:#ffffffb8}.trash-nav.active{color:var(--accent-dark);background:linear-gradient(90deg,#e2f3ea,#edf8f2);box-shadow:inset 3px 0 0 var(--accent)}.trash-nav.active span:not(.nav-count){font-weight:720}.sidebar-spacer{flex:1}.sync-panel{display:grid;grid-template-columns:minmax(0,1fr) 38px;align-items:center;gap:3px;border:1px solid transparent;border-radius:7px}.sync-button{width:100%;min-height:48px;display:flex;align-items:center;gap:11px;padding:8px 10px;border-radius:6px;color:#515156;text-align:left;background:transparent}.sync-button:hover{background:#ffffffa6}.sync-button>span{min-width:0;display:flex;flex-direction:column;gap:2px}.sync-button strong{font-size:13px;font-weight:700}.sync-button small{max-width:160px;overflow:hidden;color:#8e8e93;text-overflow:ellipsis;white-space:nowrap}.sync-refresh-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:6px;color:var(--accent-dark);background:transparent}.sync-refresh-icon:hover{background:#ffffffb8}.sync-refresh-icon:disabled{opacity:.48;cursor:not-allowed}.sync-panel.status-error .sync-button,.sync-panel.status-error .sync-refresh-icon{color:#d64545}.sync-panel.status-offline .sync-button,.sync-panel.status-offline .sync-refresh-icon{color:#a06a12}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.main-panel{min-width:0;min-height:100vh;background:linear-gradient(145deg,#fffffffa,#f4fbf7f5)}.topbar{position:sticky;z-index:10;top:0;min-height:60px;display:flex;align-items:center;gap:16px;padding:10px clamp(24px,4vw,52px);border-bottom:1px solid rgb(211 226 218 / 78%);background:linear-gradient(90deg,#ffffffe8,#f4fbf7e0);box-shadow:0 3px 16px #2356400a;-webkit-backdrop-filter:blur(22px) saturate(145%);backdrop-filter:blur(22px) saturate(145%)}.mobile-brand{display:none}.search-box{width:min(440px,48vw);height:38px;display:flex;align-items:center;gap:9px;padding:0 10px 0 13px;border:1px solid var(--line);border-radius:6px;color:#819088;background:#f1f7f4e0;box-shadow:inset 0 1px #ffffffb8;-webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%)}.search-box:focus-within{border-color:var(--focus);box-shadow:0 0 0 3px #35a77921}.search-box input{min-width:0;flex:1;border:0;outline:0;color:var(--ink);background:transparent}.search-box input::placeholder{color:#aeaeb2}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:9px}.topbar .secondary{color:#2c2c2e;background:#ffffffc7}.sync-refresh-button{color:var(--accent-dark)!important}.mobile-sync{display:none!important}.icon-button{width:38px;height:38px;flex:0 0 38px;display:inline-grid;place-items:center;border-radius:7px;color:#636366;background:transparent}.icon-button:hover{color:var(--ink);background:#e7f2ec}.icon-button:disabled{opacity:.38;cursor:not-allowed}.icon-button.compact{width:28px;height:28px;min-height:28px;flex-basis:28px}.content{width:min(920px,100%);margin:0 auto;padding:32px clamp(28px,5vw,58px) 100px}.content-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}.eyebrow{margin:0 0 5px;color:#8b919b;font-size:12px;font-weight:560}h1{margin:0;font-size:28px;line-height:1.2;letter-spacing:0}.item-count{min-width:32px;height:24px;display:grid;place-items:center;padding:0 8px;border:1px solid var(--line);border-radius:6px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;background:#f5faf7}.quick-add{height:48px;display:flex;align-items:center;gap:12px;margin-bottom:16px;padding:0 6px 0 15px;border:1px solid var(--line);border-radius:8px;color:#aeaeb2;background:#fff;box-shadow:0 6px 20px #23564012}.quick-add:focus-within{border-color:var(--focus);box-shadow:0 0 0 3px #35a7791f}.quick-add input{min-width:0;height:100%;flex:1;border:0;outline:0;color:var(--ink);background:transparent}.quick-add input::placeholder{color:#aeaeb2}.task-list{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fffffff5;box-shadow:0 7px 24px #2356400f}.task-row{position:relative;min-height:62px;display:grid;grid-template-columns:30px minmax(0,1fr) 10px 38px;align-items:center;gap:10px;padding:8px 8px 8px 14px;border-bottom:1px solid var(--soft-line)}.task-row:last-child{border-bottom:0}.task-row:hover{background:#f2faf6}.check-button{width:22px;height:22px;display:grid;place-items:center;border:1.5px solid #aeb4bf;border-radius:50%;color:#fff;background:#fff}.check-button:hover{border-color:var(--accent)}.completed .check-button{border-color:var(--accent);background:var(--accent)}.task-body{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:5px 0;text-align:left;background:transparent}.task-title-line{min-width:0;display:flex;align-items:center;gap:7px}.task-title-line strong{overflow:hidden;font-size:14px;font-weight:610;text-overflow:ellipsis;white-space:nowrap}.task-title-line svg{flex:0 0 auto;color:var(--accent)}.task-inline-date{min-width:0;display:inline-flex;align-items:center;gap:3px;margin-left:auto;color:#68756e;font-size:12px;font-weight:600;white-space:nowrap}.task-inline-date.overdue{color:#ff3b30}.task-title-line .category-chip{flex:0 0 auto;font-size:11px}.task-meta{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:7px 9px;color:#8e8e93;font-size:12px}.task-meta>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.task-meta .overdue{color:#ff3b30}.task-meta .tag{color:#5e6f82}.task-meta .completed-time{color:#248a3d;font-weight:620}.task-meta .reminder-time{color:#2d8060;font-weight:620}.category-chip{padding:2px 7px;border-radius:5px;font-weight:680}.category-work{color:#0062cc;background:#e5f1ff}.category-life{color:#bf3f59;background:#fff0f3}.category-study{color:#6554a5;background:#f1edff}.category-health{color:#248a3d;background:#e8f8ee}.category-other{color:#636366;background:#ededf1}.task-snippet{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}.completed .task-title-line strong{color:#aeaeb2;text-decoration:line-through}.priority{width:7px;height:7px;border-radius:50%}.priority-low{background:#34c759}.priority-medium{background:var(--amber)}.priority-high{background:var(--coral)}.row-delete{opacity:0}.task-row:hover .row-delete,.task-row:focus-within .row-delete{opacity:1}.trash-list{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fffffff5;box-shadow:0 7px 24px #2356400f}.trash-row{min-height:64px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;padding:10px 14px;border-bottom:1px solid var(--soft-line)}.trash-row:last-child{border-bottom:0}.trash-row-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;color:#8e8e93;background:#f1f2f4}.trash-row-copy{min-width:0;display:grid;gap:4px}.trash-row-copy strong{overflow:hidden;color:var(--ink);font-size:14px;text-overflow:ellipsis;white-space:nowrap}.trash-row-copy small{color:var(--muted);font-size:12px}.trash-row-actions{display:flex;align-items:center;gap:5px}.restore-button{min-height:32px;padding:0 10px}.permanent-delete-button{min-height:32px;padding:0 9px;border-radius:6px}.notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.note-card{position:relative;min-height:176px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff}.note-card:hover{border-color:#bad6c9;box-shadow:0 9px 26px #23564017;transform:translateY(-1px)}.note-paper{background:#fff}.note-mint{background:#e8f8f2;border-color:#cfeee2}.note-sun{background:#fff8e1;border-color:#f2e5b8}.note-rose{background:#fff0f0;border-color:#f2d6d5}.note-sky{background:#ebf5ff;border-color:#d3e7fa}.note-content{width:100%;min-height:176px;display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:19px 48px 18px 19px;text-align:left;background:transparent}.note-title-line{display:flex;align-items:center;gap:8px}.note-title-line strong{overflow:hidden;font-size:17px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.note-title-line svg{flex:0 0 auto;color:var(--accent)}.note-copy{display:-webkit-box;overflow:hidden;color:#515156;font-size:14px;line-height:1.65;white-space:pre-wrap;-webkit-line-clamp:4;-webkit-box-orient:vertical}.note-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:auto;color:#4f7163;font-size:12px}.note-delete{position:absolute;top:11px;right:10px;opacity:0}.note-card:hover .note-delete,.note-card:focus-within .note-delete{opacity:1}.empty-state{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;color:var(--muted);text-align:center}.empty-state h2{margin:0;color:#3a3a3c;font-size:18px}.empty-icon{width:54px;height:54px;display:grid;place-items:center;border:1px solid #cae6d9;border-radius:50%;color:var(--accent);background:var(--accent-soft)}.mobile-nav,.floating-add{display:none}.space-switcher{display:grid;gap:2px;margin:8px 0 0;padding:3px;border:1px solid #e2e5eb;border-radius:8px;background:#f0f2f5}.space-switcher button{display:flex;align-items:center;gap:9px;width:100%;padding:10px 12px;border:0;border-radius:11px;color:var(--muted);background:transparent;font:inherit;font-weight:650;cursor:pointer;text-align:left}.space-switcher button.active{color:var(--accent);background:#ffffffd1;box-shadow:0 4px 14px #2774511a}.space-toggle{display:none;align-items:center;gap:5px;border:1px solid rgba(120,135,160,.22);border-radius:999px;padding:7px 10px;color:var(--accent);background:#ffffff94;font:inherit;font-size:12px;font-weight:700;white-space:nowrap}.personal-sections{display:grid;gap:24px}.task-section-heading{display:flex;align-items:center;gap:9px;margin:0 0 9px 4px}.task-section-heading h2{margin:0;color:var(--ink);font-size:15px}.task-section-heading span{min-width:22px;padding:2px 7px;border-radius:999px;color:var(--muted);background:#7887a021;font-size:12px;text-align:center}.section-empty{margin:0;padding:18px 20px;border:1px dashed rgba(120,135,160,.25);border-radius:16px;color:var(--muted);font-size:13px}.space-switcher{gap:2px;margin:8px 0 0;padding:3px;border-color:#dce9e2;border-radius:8px;background:#edf5f1;-webkit-backdrop-filter:none;backdrop-filter:none}.space-switcher button{min-height:38px;padding:8px 10px;border-radius:6px;font-size:13px;font-weight:620}.space-switcher button.active{color:var(--accent-dark);background:#fff;box-shadow:0 2px 6px #23564017}.space-toggle{border-color:var(--line);border-radius:6px;padding:7px 9px;color:var(--accent-dark);background:#fff;font-weight:650}.section-empty{border-color:#e2e6ed;border-radius:8px;background:#fafbfc}.date-groups{display:grid;gap:16px}.date-group{display:grid;gap:7px}.date-group-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:0 4px;color:var(--ink);font-size:14px;font-weight:720}.date-group-heading:before{content:"";width:3px;height:15px;margin-right:5px;border-radius:999px;background:var(--accent)}.date-group-heading span{display:flex;align-items:center;flex:1}.date-group-heading small{color:var(--muted);font-size:12px;font-weight:550}.calendar-view{display:grid;gap:18px}.calendar-panel{padding:16px;border:1px solid var(--line);border-radius:12px;background:#ffffffeb;box-shadow:0 8px 26px #2356400f}.calendar-toolbar{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:14px}.calendar-toolbar strong{min-width:138px;color:var(--ink);font-size:16px;text-align:center}.calendar-toolbar .icon-button{width:32px;height:32px;flex-basis:32px}.calendar-today{margin-left:auto;padding:6px 10px;border:1px solid var(--line);border-radius:6px;color:var(--accent-dark);background:var(--accent-soft);font-size:12px;font-weight:680}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.calendar-weekdays{margin-bottom:5px;color:var(--muted);font-size:12px;text-align:center}.calendar-cell{min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid transparent;border-radius:8px;color:var(--ink);background:transparent;font-size:13px}.calendar-cell:not(.empty):hover{border-color:#b9dcca;background:var(--accent-soft)}.calendar-cell.today>span{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--accent);font-weight:720}.calendar-cell.selected{border-color:#91caae;background:#effaf4;box-shadow:inset 0 0 0 1px #35a7791f}.calendar-cell.selected>span{color:var(--accent-dark);font-weight:750}.calendar-cell.today.selected>span{color:#fff}.calendar-cell small{min-width:17px;padding:1px 4px;border-radius:999px;color:var(--accent-dark);background:#d9f1e4;font-size:10px;line-height:1.2}.calendar-day-heading{display:flex;align-items:end;justify-content:space-between;gap:16px}.calendar-day-heading h2{margin:0;color:var(--ink);font-size:20px}.calendar-day-heading>span{padding:4px 9px;border-radius:999px;color:var(--muted);background:var(--accent-soft);font-size:12px}.dialog-backdrop{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:20px;background:#16302652;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:fade-in .14s ease-out}.auth-backdrop.keyboard-open{place-items:start center;padding-top:max(12px,env(safe-area-inset-top))}.auth-backdrop.keyboard-open .auth-dialog{max-height:calc(100dvh - 16px);scroll-padding-block:24px}@keyframes fade-in{0%{opacity:0}}.dialog{width:min(660px,100%);max-height:min(820px,calc(100vh - 40px));overflow:auto;padding:0 22px 20px;border:1px solid rgb(210 228 218 / 94%);border-radius:8px;background:linear-gradient(155deg,#fffffffa,#f5fbf8f7);box-shadow:0 26px 76px #1335273d;-webkit-backdrop-filter:blur(28px) saturate(125%);backdrop-filter:blur(28px) saturate(125%);animation:dialog-in .16s ease-out}@keyframes dialog-in{0%{opacity:0;transform:translateY(8px) scale(.985)}}.dialog-header{position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 -22px 18px;padding:14px 18px;border-bottom:1px solid var(--soft-line);background:linear-gradient(90deg,#fffffff0,#f0f9f4eb);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.dialog-header h2{margin:0;font-size:20px}.dialog-header>.icon-button{color:#2c2c2e;border:1px solid rgb(174 174 178 / 42%);background:#ffffffd1;box-shadow:0 3px 12px #1f263414}.dialog-header>.icon-button:hover{color:var(--accent-dark);border-color:#35a77952;background:#e8f6ef}.confirm-backdrop{z-index:220}.confirm-dialog{width:min(390px,100%);padding:30px 26px 22px;text-align:center}.confirm-icon{width:52px;height:52px;display:grid;place-items:center;margin:0 auto 15px;border:1px solid #ffd6d2;border-radius:16px;color:#d92d20;background:#fff1ef;box-shadow:0 8px 20px #d92d201a}.confirm-dialog h2{margin:0;color:var(--ink);font-size:18px;font-weight:720}.confirm-dialog p{margin:10px auto 22px;color:var(--muted);font-size:13px;line-height:1.65}.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.confirm-actions button{width:100%}.danger-button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;border-radius:6px;color:#fff;background:#d92d20;font-weight:680;box-shadow:0 5px 14px #d92d202e}.danger-button:hover{background:#b42318}.segmented{width:max-content;display:grid;grid-auto-flow:column;gap:2px;padding:3px;border:1px solid #dfe3e9;border-radius:7px;background:#f1f3f6}.segmented button{min-width:88px;height:34px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:5px;color:#636366;background:transparent}.segmented button.active{color:var(--accent-dark);font-weight:680;background:#fff;box-shadow:0 1px 4px #1f26341a}.title-input{width:100%;padding:3px 2px 11px;border:0;border-bottom:1px solid var(--soft-line);outline:0;color:var(--ink);font-size:17px;font-weight:650;line-height:1.45}.title-input::placeholder{color:#a4aaa7}.composer-dialog textarea{width:100%;min-height:108px;resize:vertical;margin:8px 0 12px;padding:10px 2px;border:0;border-bottom:1px solid var(--soft-line);border-radius:0;outline:0;color:var(--ink);font-size:14px;line-height:1.58;background:transparent}.composer-task textarea{height:76px;min-height:62px}.composer-note textarea{height:220px;min-height:220px}.subtask-editor{margin:4px 0 15px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f7fcf9db}.subtask-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;color:var(--ink);font-size:13px;font-weight:680}.subtask-heading small{color:var(--muted);font-size:12px;font-weight:550}.subtask-list{display:grid;gap:3px;margin-bottom:8px}.subtask-row{min-width:0;display:grid;grid-template-columns:20px minmax(0,1fr) 26px 26px;align-items:center;gap:7px;min-height:30px;color:var(--ink);font-size:13px}.subtask-title{min-width:0;overflow:hidden;padding:0;color:var(--ink);background:transparent;text-align:left;text-overflow:ellipsis;white-space:nowrap}.subtask-title:hover{color:var(--accent-dark)}.subtask-title-input{min-width:0;width:100%;height:28px;padding:0 6px;border:1px solid var(--focus);border-radius:5px;outline:0;color:var(--ink);background:#fff;font-size:13px}.subtask-row.completed .subtask-title{color:var(--muted);text-decoration:line-through}.subtask-check{width:18px;height:18px;display:grid;place-items:center;border:1px solid #aeb4bf;border-radius:50%;color:#fff;background:#fff}.subtask-check:hover{border-color:var(--accent)}.subtask-row.completed .subtask-check{border-color:var(--accent);background:var(--accent)}.subtask-edit,.subtask-delete{opacity:0;color:#8e8e93}.subtask-edit:hover{color:var(--accent-dark);background:var(--accent-soft)}.subtask-row:hover .subtask-delete,.subtask-row:focus-within .subtask-delete{opacity:1}.subtask-row:hover .subtask-edit,.subtask-row:focus-within .subtask-edit{opacity:1}.subtask-add{height:34px;display:flex;align-items:center;gap:7px;padding:0 7px;border:1px dashed #b9dcca;border-radius:6px;color:var(--accent);background:#fff}.subtask-add input{min-width:0;flex:1;border:0;outline:0;color:var(--ink);background:transparent;font-size:13px}.subtask-add input::placeholder{color:#a4aaa7}.title-input:focus-visible{outline:0;border-bottom-color:var(--accent)}.composer-dialog textarea:focus,.field input:focus,.form-grid input:focus,.form-grid select:focus{border-color:var(--focus);box-shadow:0 0 0 3px #35a7791a}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;margin-bottom:12px}.form-grid label,.field,.date-field,.reminder-field{display:flex;flex-direction:column;gap:7px;color:#596961;font-size:13px;font-weight:650}.form-grid input,.form-grid select,.field input{width:100%;height:40px;padding:0 11px;border:1px solid var(--line);border-radius:6px;outline:0;color:var(--ink);background:#fff}.date-field,.reminder-field{grid-column:1 / -1}.date-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:2px}.date-shortcuts button{min-height:32px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;color:#596170;background:#fafbfc;font-size:12px;font-weight:610}.date-shortcuts button:hover{border-color:#afd6c4;color:var(--accent-dark);background:var(--accent-soft)}.date-shortcuts button.active{border-color:#9fcfb9;color:var(--accent-dark);background:var(--accent-soft)}.date-stepper{height:42px;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#fff}.date-stepper button{display:grid;place-items:center;color:var(--accent);background:transparent}.date-stepper button:hover{background:#e8f6ef}.date-stepper button:first-child{border-right:1px solid rgb(174 174 178 / 34%)}.date-stepper button:last-child{border-left:1px solid rgb(174 174 178 / 34%)}.date-stepper input{width:100%;min-width:0;height:42px;padding:0 12px;border:0;outline:0;color:var(--ink);text-align:center;background:transparent;color-scheme:light}.reminder-field>span{display:inline-flex;align-items:center;gap:6px}.reminder-field>span svg{color:var(--accent)}.reminder-control{height:42px;display:flex;align-items:center;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#fff}.reminder-control:focus-within{border-color:var(--focus);box-shadow:0 0 0 3px #35a7791a}.reminder-control input{min-width:0;flex:1;height:40px;border:0!important;box-shadow:none!important;background:transparent;color-scheme:light}.reminder-control button{align-self:stretch;padding:0 12px;border-left:1px solid var(--soft-line);color:var(--accent-dark);background:#f3faf6;font-size:12px;font-weight:650}.reminder-control button:hover{background:var(--accent-soft)}.field{margin-bottom:12px}.color-field{margin:0 0 17px;padding:0;border:0}.color-field legend{margin-bottom:9px;color:#636366;font-size:13px;font-weight:650}.swatches{display:flex;gap:9px}.swatch{width:32px;height:32px;display:grid;place-items:center;border:1px solid #c7c7cc;border-radius:50%}.swatch.selected{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--accent)}.swatch-paper{background:#fff}.swatch-mint{background:#d8f3e9}.swatch-sun{background:#ffedb5}.swatch-rose{background:#ffdcdc}.swatch-sky{background:#dcedff}.checkbox-field{width:max-content;display:flex;align-items:center;gap:8px;color:#515156;font-size:14px;cursor:pointer}.checkbox-field input{width:17px;height:17px;accent-color:var(--accent)}.dialog-actions{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:9px;margin:20px -22px -20px;padding:14px 22px;border-top:1px solid var(--soft-line);background:#fafbfc}.dialog-actions>span{grid-column:2}.auth-dialog{width:min(440px,100%)}.auth-mode{width:100%;margin-bottom:20px}.auth-mode button{width:100%}.form-error{display:flex;align-items:flex-start;gap:6px;margin:-4px 0 14px;color:#ff3b30;font-size:13px;line-height:1.4}.form-error svg{flex:0 0 auto;margin-top:1px}.auth-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.cloud-unconfigured{display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 10px 24px;text-align:center}.cloud-unconfigured>span{width:54px;height:54px;display:grid;place-items:center;border-radius:50%;color:#b36b00;background:#fff2cc}.cloud-unconfigured p{max-width:330px;margin:0;color:var(--muted);font-size:14px;line-height:1.65}.account-panel{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:13px;padding:10px 0 16px}.account-avatar{width:52px;height:52px;display:grid;place-items:center;border-radius:50%;color:var(--accent);background:var(--accent-soft)}.account-panel strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-panel p{margin:4px 0 0;color:var(--muted);font-size:13px}.install-dialog{width:min(390px,100%);text-align:center}.install-dialog .dialog-header{text-align:left}.install-art{width:66px;height:66px;display:grid;place-items:center;margin:12px auto 16px;border-radius:16px;color:#fff;background:var(--accent)}.install-dialog p{margin:0 auto 22px;color:var(--muted);line-height:1.65}.install-dialog>.primary{width:100%}.toast{position:fixed;z-index:200;left:50%;bottom:28px;min-width:280px;max-width:calc(100vw - 28px);min-height:48px;display:flex;align-items:center;gap:12px;padding:8px 9px 8px 16px;border-radius:8px;color:#fff;background:#1c1c1e;box-shadow:0 12px 35px #0000003d;transform:translate(-50%)}.toast>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toast>button:not(.icon-button){color:#78d7ad;font-weight:720;background:transparent}.toast .icon-button{color:#d1d1d6}.toast .icon-button:hover{color:#fff;background:#ffffff1a}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}@media(max-width:760px){.app-shell{display:block}.sidebar{display:none}.main-panel{min-height:100svh}.topbar{min-height:64px;gap:10px;padding:10px 14px}.mobile-brand{display:block}.mobile-brand .brand>span:last-child{display:none}.mobile-brand .brand-mark{width:38px;height:38px}.search-box{width:auto;min-width:0;flex:1}.install-button span,.sync-refresh-button span,.new-note-button{display:none}.space-toggle{display:inline-flex}.install-button,.sync-refresh-button{width:38px;min-height:38px;padding:0}.mobile-sync{display:inline-grid!important}.topbar-actions{margin-left:0;gap:4px}.content{padding:24px 14px 136px}.content-heading{margin-bottom:20px}.eyebrow{font-size:12px}h1{font-size:26px}.quick-add{margin-bottom:14px}.task-list{border-right:0;border-left:0;border-radius:0}.task-row{grid-template-columns:30px minmax(0,1fr) 8px 36px;padding-left:8px}.row-delete,.note-delete{opacity:1}.task-snippet{display:none!important}.notes-grid{grid-template-columns:1fr;gap:10px}.note-card,.note-content{min-height:152px}.mobile-nav{position:fixed;z-index:20;right:0;bottom:0;left:0;height:calc(70px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(6,1fr);padding:7px 6px env(safe-area-inset-bottom);border-top:1px solid var(--line);background:linear-gradient(90deg,#fafcfbd6,#eff8f3d1);box-shadow:0 -8px 28px #2356400f;-webkit-backdrop-filter:blur(28px) saturate(185%);backdrop-filter:blur(28px) saturate(185%)}.mobile-nav button{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:7px;color:#8e8e93;font-size:10px;background:transparent}.mobile-nav button.active{color:var(--accent);font-weight:700;background:var(--accent-soft)}.floating-add{position:fixed;z-index:25;right:18px;bottom:calc(84px + env(safe-area-inset-bottom));width:52px;height:52px;display:grid;place-items:center;border-radius:50%;color:#fff;background:linear-gradient(145deg,#50c18f,#2c966a);box-shadow:0 9px 26px #26875b47}.calendar-panel{padding:12px 8px}.calendar-toolbar strong{min-width:116px;font-size:15px}.calendar-cell{min-height:44px}.calendar-day-heading h2{font-size:18px}.dialog-backdrop{align-items:end;padding:0}.dialog{width:100%;max-height:calc(100dvh - 20px);padding:0 17px calc(16px + env(safe-area-inset-bottom));border-radius:8px 8px 0 0}.auth-backdrop.keyboard-open{align-items:start;padding-top:max(8px,env(safe-area-inset-top))}.auth-backdrop.keyboard-open .auth-dialog{max-height:calc(100dvh - 16px);border-radius:8px}.dialog-header{margin-inline:-17px;padding-inline:15px}.composer-task textarea{height:88px;min-height:88px}.composer-note textarea{height:240px;min-height:240px}.form-grid{gap:10px}.dialog-actions{grid-template-columns:auto 1fr auto auto;margin:18px -17px calc(-16px - env(safe-area-inset-bottom));padding:12px 17px calc(12px + env(safe-area-inset-bottom))}.toast{bottom:calc(82px + env(safe-area-inset-bottom))}}@media(max-width:420px){.topbar{padding-inline:10px}.mobile-brand{display:none}.search-box{height:40px}.form-grid{grid-template-columns:1fr}.account-panel{grid-template-columns:46px minmax(0,1fr)}.account-panel .secondary{grid-column:1 / -1;width:100%}.dialog-actions{grid-template-columns:auto 1fr}.dialog-actions>span{display:none}.dialog-actions .secondary{display:none}.dialog-actions .primary{grid-column:2;min-width:104px;justify-self:end}.toast{min-width:0;width:calc(100vw - 24px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
