/* One notebook, shared between the desktop preview and the expanded window. */
.notebook-app,.notebook-dialog,.plan-editor-dialog,.planner-confirm-dialog{--book-text:#51465e;--book-muted:#8a7b98;--book-line:#9780ae20;--book-accent:#82649d;--book-paper:#fcfaff;--book-soft:#9372b00c;color:var(--book-text)}
.home-page #notes-widget{min-height:0;padding:0;background:linear-gradient(135deg,#fffdfafc,#f9f6fcf7);border:1px solid #fffc;border-radius:18px;overflow:hidden}
.notebook-host,.notebook-app{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;height:100%}
.notebook-app .notebook-heading{height:52px;min-height:52px;padding:0 16px;align-items:center;border-bottom:1px solid var(--book-line);gap:12px}
.notebook-app .notebook-tabs{display:flex;align-items:center;gap:18px;height:100%;min-width:0}
.notebook-app .notebook-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:100%;padding:0;line-height:1;font-size:12px;font-weight:500;color:var(--book-muted);white-space:nowrap}
.notebook-app .notebook-tabs button[aria-selected=true]{color:var(--book-accent)}
.notebook-app .notebook-tabs button:after{bottom:0;height:2px;background:var(--book-accent)}
.notebook-app .notebook-tabs button>.lucide{width:15px;height:15px}
.notebook-app .notebook-tabs button>span{font-size:9px;min-width:18px;padding:3px 4px;text-align:center;color:var(--book-accent);background:#9573b114;line-height:1;border-radius:5px}
.notebook-app .notebook-heading>.icon-button{margin:0 0 0 auto;align-self:center;width:30px;height:30px;color:var(--book-muted)}
.notebook-app .notebook-heading>.icon-button>.lucide{width:15px;height:15px}
.planner-pane{display:flex;flex:1;min-height:0;min-width:0}
.planner-sidebar{display:none}
.planner-main{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;padding:12px 16px 0}
.planner-day-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0}
.planner-day-switch{display:inline-flex;padding:3px;gap:2px;background:#8b729b0b;border:1px solid var(--book-line);border-radius:9px;flex-shrink:0;height:32px}
.planner-day-switch button{display:flex;align-items:center;justify-content:center;padding:0 11px;border-radius:6px;min-width:43px;color:var(--book-muted);font-size:11px;line-height:1;transition:background .2s,color .2s,box-shadow .2s}
.planner-day-switch button[aria-pressed=true]{color:var(--book-accent);background:#fff;box-shadow:0 1px 5px #54356b0d}
.planner-date-picker{position:relative;display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;font-size:10px;color:var(--book-muted);height:32px;min-width:0;cursor:pointer;padding:0 2px;border-radius:6px;white-space:nowrap}
.planner-date-picker>.lucide{width:13px;height:13px;display:block}
.planner-date-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0;min-width:0}
.planner-date-picker input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:auto;height:auto;cursor:pointer}
.planner-date-picker:focus-within{outline:2px solid var(--book-accent);outline-offset:2px}
.planner-day-heading{display:none}
.planner-progress{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0 9px;flex-shrink:0;font-size:10px;color:var(--book-muted);line-height:1.4}
.planner-progress>span:last-of-type{font-size:10px;font-variant-numeric:tabular-nums;color:var(--book-accent)}
.planner-progress-track{height:3px;border-radius:8px;overflow:hidden;background:#9778ac12}
.planner-progress>.planner-progress-track{position:absolute;left:0;right:0;bottom:0}
.planner-progress-track>span{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#c3a8d6,#8b6ba1);transition:width .35s var(--ease)}
.planner-filters{display:none}
.planner-overdue{display:flex;align-items:center;gap:6px;flex-shrink:0;padding:0 8px;min-height:27px;border:1px solid #ba8d3b1b;background:#e7c57512;border-radius:7px;font-size:10px;color:#a17736;margin-top:8px;text-align:left}
.planner-overdue>.lucide{width:13px;height:13px}.planner-overdue>.lucide:last-child{margin-left:auto}
.planner-backlog-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;justify-content:space-between;margin:12px 0 0;font-size:11px;color:var(--book-muted)}
.planner-backlog-tools .button{min-height:34px;font-size:11px;padding:0 10px}
.planner-task-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a794b52b transparent;padding:4px 0;margin:6px -3px 0}
.planner-task{position:relative;display:flex;align-items:center;gap:9px;min-height:51px;padding:8px 3px;border-bottom:1px solid var(--book-line);transition:background .2s;border-radius:7px}
.planner-task:hover{background:var(--book-soft)}
.planner-task:last-child{border-bottom-color:transparent}
.planner-check{position:relative;flex:0 0 18px;width:18px;height:18px;cursor:pointer;align-self:center}
.planner-check input{position:absolute;inset:0;width:18px;height:18px;margin:0;opacity:0;cursor:pointer;z-index:1}
.planner-check>span{display:grid;place-items:center;width:18px;height:18px;border:1.5px solid #b5a5c5a8;border-radius:6px;background:#fff6;transition:background .18s,border-color .18s,transform .18s}
.planner-check .lucide{width:12px;height:12px;stroke-width:2.4;opacity:0;transform:scale(.5);transition:transform .22s,opacity .18s}
.planner-check input:checked+span{border-color:#879f8f;background:#879f8f;color:#fff}
.planner-check input:checked+span .lucide{opacity:1;transform:scale(1)}
.planner-check input:focus-visible+span{outline:2px solid var(--book-accent);outline-offset:3px}
.planner-task-body{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0;text-align:left;padding:1px 0;gap:4px;color:var(--book-text)}
.planner-task-body>strong{font-size:12px;line-height:1.6;font-weight:450;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.planner-task-meta{display:flex;align-items:center;gap:7px;min-width:0;max-width:100%;font-size:9px;line-height:1.5;color:var(--book-muted)}
.planner-task-meta:empty{display:none}
.priority-mark{font-size:9px;color:#ac7b46;font-weight:500;white-space:nowrap}
.task-description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.task-finished-date{display:none}
.planner-task-state{font-size:9px;border-radius:5px;background:#9983ad0c;color:#9683a3;padding:3px 5px;white-space:nowrap;line-height:1.2;flex-shrink:0}
.planner-task-state.overdue{color:#a17a39;background:#d3a8470c}
.planner-task.is-done .planner-task-body>strong{color:#9d95a4;text-decoration:line-through;text-decoration-color:#b9acbf}
.planner-task.is-done .planner-task-state{color:#678573;background:#9bbba415}
.planner-task-more{display:none}
.planner-empty{height:100%;min-height:65px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;padding:12px 5px;color:var(--book-muted)}
.planner-empty>.lucide{width:22px;height:22px;color:#baa3c7;margin-bottom:3px}
.planner-empty strong{font-size:11px;font-weight:400;line-height:1.5}
.planner-empty p{font-size:9px;line-height:1.6;color:#a397ad}
.planner-quick-add{display:flex;align-items:center;gap:8px;height:35px;min-height:35px;flex-shrink:0;margin-top:7px;padding:0 5px 0 9px;background:#fff9;border:1px solid var(--book-line);border-radius:9px;transition:border-color .18s,box-shadow .18s}
.planner-quick-add:focus-within{border-color:#ac8ec4;box-shadow:0 0 0 3px #a58bbc10}
.planner-quick-add>.lucide{width:14px;height:14px;color:#ae95be}
.planner-quick-add input{flex:1;min-width:0;height:100%;border:0;outline:none;box-shadow:none;background:none;font-size:11px;color:var(--book-text);padding:0;line-height:1.4}
.planner-quick-add input::placeholder{color:#a799b2}
.planner-quick-add button{display:grid;place-items:center;width:25px;height:25px;padding:0;flex:0 0 25px;border-radius:6px;background:#e9e0f2;color:#806198;transition:background .18s,transform .18s}
.planner-quick-add button:hover{background:#ded0ea}.planner-quick-add button:active{transform:scale(.92)}
.planner-quick-add button>.lucide{width:14px;height:14px}
.planner-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px;flex-shrink:0;font-size:9px;color:#a295ac}
.planner-footer>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.planner-footer .lucide{width:11px;height:11px;display:block}
.planner-footer>button{height:30px;display:inline-flex;align-items:center;gap:6px;padding:0;color:var(--book-accent);font-size:10px;white-space:nowrap}
.planner-feedback{display:flex;align-items:center;gap:7px;background:#eee7f5;border-radius:7px;padding:5px 8px;font-size:10px;margin-top:8px;color:var(--book-accent);flex-shrink:0}
.planner-feedback>span{flex:1}.planner-feedback>button:not(.icon-button){font-size:10px;text-decoration:underline;text-underline-offset:3px;padding:5px}.planner-feedback>.icon-button{width:24px;height:24px}
.notebook-app .notes-pane{padding:0 18px;flex:1;min-height:0;background:linear-gradient(140deg,#fffcf6,#fbf4e6)}
.note-intro{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;color:#a18d72;font-size:10px;flex-shrink:0}
.note-intro .icon-button{width:28px;height:28px;color:#9c8565}.note-intro .lucide{width:14px;height:14px}
.home-page #notebook-app #quick-note{min-height:0;flex:1;width:100%;height:auto;font-size:14px;line-height:30px;margin:0;padding:3px 0 0;border:0;border-radius:0;resize:none;color:#726047;background:repeating-linear-gradient(transparent,transparent 29px,#ae925918 29px,#ae925918 30px);box-shadow:none}
.home-page #notebook-app #quick-note::placeholder{font-size:13px;color:#ab9476}
.home-page #notebook-app .note-footer{min-height:48px;padding:5px 0;margin:0;gap:8px;flex-wrap:wrap;color:#9b876a;font-size:9px}
.home-page #notebook-app .note-footer>span{gap:4px}.home-page #notebook-app .note-footer>div{gap:6px}
.home-page #notebook-app .note-footer .lucide{width:12px;height:12px}
.home-page #notebook-app .note-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:29px;padding:0 8px;border-radius:7px;border:1px solid #ad926027;background:#f2e5c954;color:#8b704b;font-size:10px;white-space:nowrap;transition:background .2s}
.home-page #notebook-app .note-action:hover{background:#efdfbc9c}
.home-page #notebook-app #note-count{margin-left:2px}
.home-page .notebook-dialog{width:min(1120px,calc(100vw - 56px));height:min(830px,calc(var(--notebook-vh,100dvh) - 60px));max-height:calc(var(--notebook-vh,100dvh) - 32px);padding:0;border-radius:22px;border:1px solid #ffffffb3;background:#faf8fd;overflow:hidden;box-shadow:0 30px 100px #26173535}
.notebook-dialog[open]{display:flex;flex-direction:column}
.notebook-dialog-heading{height:80px;min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 25px;background:linear-gradient(120deg,#fefcff,#f5effa);border-bottom:1px solid var(--book-line)}
.notebook-brand{display:flex;align-items:center;gap:12px;min-width:0}.notebook-brand>span{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;color:#fff;background:linear-gradient(140deg,#c6acdc,#9575b2);box-shadow:0 5px 14px #a181be20}.notebook-brand>span .lucide{width:22px;height:22px}
.notebook-brand h2{font-size:17px;font-weight:550;line-height:1.4;color:var(--book-text)}.notebook-brand p{font-size:10px;margin-top:4px;color:var(--book-muted)}
.notebook-dialog-tools{display:flex;align-items:center;gap:5px;flex-shrink:0}.notebook-dialog-tools>.icon-button{width:32px;height:32px;color:var(--book-muted)}.notebook-dialog-tools>span{height:18px;width:1px;background:var(--book-line);margin:0 5px}
.is-expanded .notebook-heading{padding:0 26px;height:54px;min-height:54px;background:#fff5}
.is-expanded .notebook-tabs{gap:26px}.is-expanded .notebook-tabs button{font-size:13px}.is-expanded .notebook-expand{display:none}
.is-expanded .planner-pane{display:grid;grid-template-columns:256px minmax(0,1fr)}
.is-expanded .planner-sidebar{display:flex;flex-direction:column;padding:20px 18px 16px;background:#a184b304;border-right:1px solid var(--book-line);min-height:0;overflow:auto;scrollbar-width:thin}
.planner-calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.planner-calendar-head strong{font-size:12px;font-weight:500}.planner-calendar-head .icon-button{width:28px;height:28px;color:var(--book-muted)}.planner-calendar-head .icon-button>.lucide{width:14px;height:14px}
.calendar-weekdays,.planner-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.calendar-weekdays{font-size:10px;text-align:center;color:var(--book-muted);margin-bottom:6px;line-height:25px}
.calendar-day{height:34px;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;font-size:11px;gap:3px;color:var(--book-text);font-variant-numeric:tabular-nums;transition:background .18s,color .18s}
.calendar-day:hover{background:#9977b612}.calendar-day.today{box-shadow:inset 0 0 0 1px #a289b84a;font-weight:600}.calendar-day.outside{color:#bcafc6}.calendar-day.selected{background:#9476ae;color:#fff;box-shadow:0 3px 10px #9476ae28}
.calendar-dots{display:flex;gap:3px;height:3px;min-height:3px;position:absolute;bottom:4px}.calendar-dots>b,.calendar-legend b{display:block;width:3px;height:3px;background:#a782bc;border-radius:50%}.calendar-dots>b.done,.calendar-legend>span:last-child b{background:#91aa99}.calendar-day.selected .calendar-dots>b{background:#fff9}.calendar-day.selected .calendar-dots>b.done{background:#c9efcc}
.calendar-legend{display:flex;align-items:center;justify-content:center;gap:16px;font-size:9px;color:var(--book-muted);margin-top:13px}.calendar-legend>span{display:flex;align-items:center;gap:5px}
.planner-week-card{padding:18px 15px 16px;margin-top:25px;border:1px solid var(--book-line);border-radius:12px;background:linear-gradient(135deg,#fff9,#f1eaf634)}
.planner-week-card>span{font-size:10px;color:var(--book-muted)}.planner-week-card>strong{display:block;font-size:25px;letter-spacing:-1px;font-weight:450;margin-top:9px;color:var(--book-accent);font-variant-numeric:tabular-nums}.planner-week-card>p{font-size:10px;color:var(--book-muted);margin-top:7px;line-height:1.7}.planner-week-card>.planner-progress-track{margin-top:14px}
.planner-backlog-button{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;margin-top:14px;padding:0 10px;border-radius:9px;color:var(--book-muted);font-size:11px}.planner-backlog-button>.lucide{width:16px;height:16px}.planner-backlog-button>b{font-size:10px;min-width:20px;padding:3px 5px;margin-left:auto;background:#b08bc113;border-radius:6px;font-weight:500}.planner-backlog-button:hover,.planner-backlog-button.active{background:#9b7daf0c;color:var(--book-accent)}
.planner-local{position:relative;font-size:10px;line-height:1.8;color:#a99ab3;margin:auto 0 0;padding:22px 0 0 21px}.planner-local>.lucide{position:absolute;left:0;top:24px;width:13px;height:13px}.planner-local>span{font-size:9px}
.is-expanded .planner-main{padding:22px 28px 0}
.is-expanded .planner-day-switch{height:35px}.is-expanded .planner-day-switch button{min-width:54px;font-size:12px}.is-expanded .planner-date-picker{height:35px;font-size:12px;gap:7px}.is-expanded .planner-date-picker>.lucide{width:15px;height:15px}
.is-expanded .planner-day-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:24px 0 9px;flex-shrink:0}
.planner-day-heading>div>span{display:block;font-size:8px;letter-spacing:1.5px;color:#b4a2bf}.planner-day-heading h3{font-size:25px;line-height:1.4;font-weight:450;letter-spacing:-.3px;margin-top:7px}.planner-day-heading p{font-size:11px;color:var(--book-muted);line-height:1.7;margin-top:8px}.planner-day-heading>.button{min-height:35px;font-size:11px;padding:0 12px;flex-shrink:0}
.is-expanded .planner-progress{padding:12px 0 13px;font-size:11px}.is-expanded .planner-progress>span:last-of-type{font-size:11px}
.is-expanded .planner-filters{display:flex;align-items:center;gap:7px;flex-shrink:0;margin:15px 0 5px}
.planner-filters button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:30px;padding:0 10px;border-radius:8px;font-size:11px;color:var(--book-muted);line-height:1;transition:background .2s,color .2s}.planner-filters button>span{font-size:10px;opacity:.7}.planner-filters button[aria-pressed=true]{color:var(--book-accent);background:#9b79b711}
.is-expanded .planner-overdue{min-height:32px;font-size:11px;margin-top:8px;padding:0 10px}
.is-expanded .planner-task-list{margin:7px -4px 0;padding:4px 0 8px}
.is-expanded .planner-task{min-height:68px;padding:12px 8px;gap:12px;border-radius:9px}.is-expanded .planner-task-body>strong{font-size:14px;-webkit-line-clamp:3}.is-expanded .planner-task-meta{font-size:10px}.is-expanded .task-finished-date{display:block;white-space:nowrap}.is-expanded .planner-task-more{display:flex;width:30px;height:30px;color:#a590b2;margin-left:0}.is-expanded .planner-task-state{font-size:10px;padding:4px 7px}.is-expanded .planner-check,.is-expanded .planner-check input,.is-expanded .planner-check>span{width:20px;height:20px}.is-expanded .planner-check{flex-basis:20px}
.is-expanded .planner-empty{min-height:100px;gap:10px;padding:20px 10px}.is-expanded .planner-empty>.lucide{width:37px;height:37px;margin-bottom:4px}.is-expanded .planner-empty>strong{font-size:14px}.is-expanded .planner-empty>p{font-size:11px}
.is-expanded .planner-quick-add{height:43px;min-height:43px;margin-top:12px;padding-left:13px;padding-right:6px;border-radius:10px}.is-expanded .planner-quick-add input{font-size:13px}.is-expanded .planner-quick-add button{width:30px;height:30px;flex-basis:30px;border-radius:8px}
.is-expanded .planner-footer{height:41px;min-height:41px;font-size:10px}.is-expanded .planner-footer>button{font-size:11px}
.is-expanded .notes-pane{padding:0 32px}.is-expanded .note-intro{height:52px;min-height:52px;font-size:12px}.home-page .is-expanded #quick-note{font-size:16px!important;line-height:32px!important;background-size:auto 32px!important}.home-page #notebook-app.is-expanded .note-footer{min-height:60px;font-size:11px}.home-page #notebook-app.is-expanded .note-action{height:34px;font-size:12px;padding:0 12px}
.home-page .plan-editor-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(var(--notebook-vh,100dvh) - 40px);padding:28px;overflow:auto;background:#fcfaff;border-radius:20px;color:var(--book-text)}
.plan-editor-dialog .dialog-heading{margin-bottom:22px}.plan-editor-dialog .dialog-heading h2{font-size:22px;margin-top:7px;font-weight:500}.plan-editor-dialog .eyebrow{font-size:8px;letter-spacing:1.5px}
.planner-field{display:flex;flex-direction:column;gap:9px;font-size:11px;color:var(--book-muted);margin-top:18px;position:relative}
.planner-field>small{position:absolute;right:0;top:0;font-size:10px;color:#b0a1bb}
.planner-field input,.planner-field select,.planner-field textarea{width:100%;min-width:0;min-height:42px;padding:10px 12px;border:1px solid var(--book-line);border-radius:10px;background:#fff9;color:var(--book-text);font-size:13px;line-height:1.6;transition:border-color .2s,box-shadow .2s}
.planner-field input:focus,.planner-field select:focus,.planner-field textarea:focus{border-color:#ac8ec4;box-shadow:0 0 0 3px #a58bbc10}.planner-field input::placeholder,.planner-field textarea::placeholder{color:#b0a1bb}.planner-field textarea{resize:vertical;max-height:240px;min-height:100px}
.planner-form-row{display:grid;grid-template-columns:1.3fr 1fr;gap:14px}.plan-editor-shortcuts{display:flex;gap:8px;margin-top:10px}.plan-editor-shortcuts button{min-height:27px;padding:0 9px;border-radius:6px;border:1px solid var(--book-line);font-size:10px;color:var(--book-accent);background:#a483b80a}
.plan-done-field{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--book-text);padding:15px 0 0;margin-top:3px}.plan-done-field>input{width:16px;height:16px;accent-color:#8c72a3;margin:0}.plan-done-field>.lucide{margin-left:auto;width:17px;height:17px;color:#9aaca0}.plan-editor-meta{font-size:10px;color:var(--book-muted);line-height:1.7;margin-top:10px;min-height:0}.plan-editor-meta:empty{display:none}
.plan-editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:22px;padding-top:18px;border-top:1px solid var(--book-line)}.plan-editor-actions>span{flex:1}.home-page .plan-editor-actions .button{min-height:38px;font-size:12px;padding:0 13px}.home-page .plan-editor-actions .plan-delete{color:#b37786;background:transparent;border:1px solid #bc839221;box-shadow:none}.home-page .plan-editor-actions .plan-delete:hover{background:#bc83920a}
.home-page .planner-confirm-dialog{width:min(440px,calc(100vw - 32px));padding:26px;background:#fcfaff;border-radius:18px}.planner-confirm-dialog h2{font-size:20px}.planner-confirm-dialog>p{font-size:13px;color:var(--book-muted);line-height:1.9;margin-top:18px}
[data-theme=dark] .notebook-app,[data-theme=dark] .notebook-dialog,[data-theme=dark] .plan-editor-dialog,[data-theme=dark] .planner-confirm-dialog{--book-text:#e1d5e9;--book-muted:#ad99bd;--book-line:#c09ed221;--book-accent:#c6a5e1;--book-paper:#342b3f;--book-soft:#c8a5e308}
[data-theme=dark] .home-page #notes-widget,[data-theme=dark] .home-page .notebook-dialog,[data-theme=dark] .home-page .plan-editor-dialog,[data-theme=dark] .home-page .planner-confirm-dialog{background:linear-gradient(135deg,#352c42fa,#302739f5);border-color:#c3a3d422}
[data-theme=dark] .notebook-dialog-heading{background:linear-gradient(130deg,#3b2e48,#33283e)}[data-theme=dark] .is-expanded .notebook-heading{background:#ffffff02}[data-theme=dark] .planner-day-switch button[aria-pressed=true]{background:#51405f}[data-theme=dark] .planner-quick-add,[data-theme=dark] .planner-field input,[data-theme=dark] .planner-field select,[data-theme=dark] .planner-field textarea{background:#281f3266}[data-theme=dark] .planner-quick-add button{background:#624c77;color:#e4ceed}[data-theme=dark] .planner-week-card{background:linear-gradient(135deg,#b18ac00a,#b18ac002)}[data-theme=dark] .planner-check>span{background:#2b2434}[data-theme=dark] .planner-check input:checked+span{background:#6b8e79;border-color:#6b8e79}[data-theme=dark] .planner-task-state{color:#b7a0c6}[data-theme=dark] .planner-task.is-done .planner-task-state{color:#a6c9b1}[data-theme=dark] .calendar-day.selected{background:#8765a0;color:#fff}[data-theme=dark] .calendar-day.outside{color:#786981}[data-theme=dark] .planner-overdue{color:#cdad74}[data-theme=dark] .planner-feedback{background:#493855;color:#dfc8ee}[data-theme=dark] .notebook-app .notes-pane{background:linear-gradient(135deg,#42392ff7,#3b312cf5)}[data-theme=dark] .home-page #notebook-app #quick-note{color:#e5d1b2}[data-theme=dark] .home-page #notebook-app .note-action{background:#9f805826;color:#d3ba95;border-color:#c09b6836}
@media(min-width:1800px){.notebook-app .notebook-heading{height:56px;min-height:56px;padding:0 20px}.notebook-app .notebook-tabs button{font-size:13px}.planner-main{padding:16px 20px 0}.planner-task{min-height:58px}.planner-task-body>strong{font-size:13px}.planner-progress{padding-top:12px;padding-bottom:11px;font-size:11px}.planner-date-picker{font-size:11px}.planner-day-switch button{font-size:12px;min-width:49px}.planner-quick-add{height:38px;min-height:38px}.planner-quick-add input{font-size:12px}.planner-footer{min-height:37px;font-size:10px}.planner-footer>button{font-size:11px}}
@media(min-width:1051px) and (max-height:820px){.notebook-app .notebook-heading{height:47px;min-height:47px;padding:0 14px}.notebook-app .notebook-tabs{gap:16px}.notebook-app .notebook-tabs button{font-size:11px}.planner-main{padding:10px 14px 0}.planner-progress{padding-top:8px;padding-bottom:8px}.planner-task-list{margin-top:4px}.planner-empty{padding:7px 3px;gap:3px;min-height:54px}.planner-empty>.lucide{width:18px;height:18px;margin:0}.planner-empty>p{display:none}.planner-footer{min-height:31px}.planner-task{min-height:47px}.home-page #notebook-app .note-footer{min-height:44px;font-size:8px}.home-page #notebook-app .note-action{font-size:9px;padding:0 6px;height:27px}.notebook-app .note-intro{min-height:36px;font-size:9px}.is-expanded .notebook-heading{height:50px;min-height:50px}.is-expanded .planner-day-heading{margin-top:15px}.is-expanded .planner-day-heading h3{font-size:23px}.is-expanded .planner-sidebar{padding-top:14px}.planner-week-card{margin-top:15px}}
@media(max-width:1050px){.home-page #notes-widget:not([hidden]){min-height:345px}.planner-main{padding:14px 18px 0}.planner-task{min-height:53px}.planner-empty{min-height:90px}.home-page .notebook-dialog{width:calc(100vw - 32px);height:calc(var(--notebook-vh,100dvh) - 40px)}.is-expanded .planner-pane{grid-template-columns:220px minmax(0,1fr)}.is-expanded .planner-sidebar{padding:17px 12px}.is-expanded .planner-main{padding:18px 20px 0}.planner-day-heading h3{font-size:21px}.planner-day-heading>div>span{font-size:7px}.is-expanded .planner-day-heading{gap:10px}.planner-day-heading>.button{font-size:10px;padding:0 9px}.planner-day-heading>.button .lucide{width:14px;height:14px}}
@media(max-width:760px){
 .home-page .notebook-dialog{width:calc(100vw - 20px);height:calc(var(--notebook-vh,100dvh) - 24px);max-height:calc(var(--notebook-vh,100dvh) - 24px);border-radius:18px}
 .notebook-dialog-heading{height:67px;min-height:67px;padding:0 16px;gap:10px}.notebook-brand{gap:9px}.notebook-brand>span{width:33px;height:33px;border-radius:10px}.notebook-brand>span .lucide{width:19px;height:19px}.notebook-brand h2{font-size:15px}.notebook-brand p{font-size:9px}.notebook-dialog-tools{gap:2px}.notebook-dialog-tools>span{margin:0 3px}.notebook-dialog-tools>.icon-button{width:28px;height:30px}.notebook-dialog-tools>.icon-button>.lucide{width:15px;height:15px}
 .is-expanded .notebook-heading{padding:0 17px;min-height:49px;height:49px}.is-expanded .notebook-tabs{gap:25px}.is-expanded .planner-pane{display:flex}.is-expanded .planner-sidebar{display:none}.is-expanded .planner-main{padding:15px 17px 0}.is-expanded .planner-day-toolbar{gap:10px}.is-expanded .planner-date-picker{font-size:11px}.is-expanded .planner-day-heading{margin-top:17px;margin-bottom:5px}.planner-day-heading h3{font-size:21px;margin-top:0}.planner-day-heading>div>span,.planner-day-heading p{display:none}.planner-day-heading>.button{font-size:0;min-height:31px;width:31px;padding:0;gap:0}.planner-day-heading>.button .lucide{width:17px;height:17px}.is-expanded .planner-filters{margin-top:12px}.is-expanded .planner-task{min-height:66px;gap:9px;padding:11px 3px}.is-expanded .planner-task-body>strong{font-size:13px}.is-expanded .planner-task-more{width:25px;margin-left:-5px}.is-expanded .planner-task-state{font-size:9px;padding:3px 5px}.is-expanded .planner-quick-add input{font-size:16px}.is-expanded .planner-footer{font-size:9px}.is-expanded .planner-footer>button{font-size:10px}.is-expanded .notes-pane{padding:0 20px}.is-expanded .note-intro{font-size:10px;min-height:43px}.home-page #notebook-app.is-expanded .note-footer{min-height:60px;font-size:9px}.home-page #notebook-app.is-expanded .note-action{font-size:11px;height:31px;padding:0 8px}
 .home-page .plan-editor-dialog{padding:23px 20px;max-height:calc(var(--notebook-vh,100dvh) - 24px)}.planner-field input,.planner-field select,.planner-field textarea{font-size:16px}.planner-form-row{gap:12px}.plan-editor-actions{gap:7px}.home-page .plan-editor-actions .button{font-size:11px;padding:0 11px}.planner-backlog-tools{gap:8px}.planner-backlog-tools>span{font-size:10px}
}
@media(max-width:520px){.home-page #notes-widget:not([hidden]){min-height:395px;height:395px;flex:none}.notebook-app .notebook-heading{height:55px;min-height:55px;padding:0 20px}.notebook-app .notebook-tabs button{font-size:13px}.planner-main{padding:15px 20px 0}.planner-day-switch{height:34px}.planner-day-switch button{font-size:12px;min-width:47px}.planner-date-picker{font-size:11px}.planner-progress{font-size:11px;padding-top:12px;padding-bottom:12px}.planner-quick-add{height:39px;min-height:39px}.planner-quick-add input{font-size:16px}.planner-task-body>strong{font-size:13px}.planner-footer{min-height:39px;font-size:10px}.planner-footer>button{font-size:11px}.planner-empty>strong{font-size:12px}.planner-empty>p{font-size:10px}.home-page #notebook-app #quick-note{font-size:16px}.notebook-app .note-intro{min-height:46px;font-size:11px}.home-page #notebook-app .note-footer{min-height:60px}.home-page #notebook-app .note-action{height:31px;font-size:11px}.is-expanded .notebook-heading{height:49px;min-height:49px;padding:0 17px}.is-expanded .planner-main{padding-left:16px;padding-right:16px}.notebook-brand p{display:none}.notebook-dialog-heading{height:61px;min-height:61px}.notebook-dialog-tools>span{display:none}}
@media(prefers-reduced-motion:reduce){[data-motion=auto] .planner-progress-track>span,[data-motion=auto] .planner-check .lucide{transition:none}}
[data-motion=reduced] .planner-progress-track>span,[data-motion=reduced] .planner-check .lucide{transition:none}
/* Keep secondary controls legible without competing with task titles. */
.notebook-app,.notebook-dialog,.plan-editor-dialog,.planner-confirm-dialog{--book-muted:#776580}
.calendar-day.outside{color:#796783}.planner-local,.planner-footer{color:var(--book-muted)}
.planner-task-state{color:#7b6389}.planner-task.is-done .planner-task-state{color:#557561}.planner-task.is-done .planner-task-body>strong{color:#7b6d85}
[data-theme=dark] .notebook-app,[data-theme=dark] .notebook-dialog,[data-theme=dark] .plan-editor-dialog,[data-theme=dark] .planner-confirm-dialog{--book-muted:#b29bc3}
[data-theme=dark] .calendar-day.outside{color:#aa94b9}[data-theme=dark] .planner-task.is-done .planner-task-body>strong{color:#b39dc1}
.home-page .dock-item>.dock-notebook{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;padding:0;overflow:hidden;background:linear-gradient(130deg,#fff,#f6f0ed);color:#715a67;border:1px solid #ffffff9e;box-shadow:0 3px 7px #4a2f4324,inset 0 -1px #d4bbcb30}
.dock-calendar-month{display:flex;align-items:center;justify-content:center;width:100%;height:30%;flex:0 0 30%;background:linear-gradient(135deg,#d59496,#bf7786);color:#fff;font-size:calc(var(--dock-size,49px)*.19);line-height:1;letter-spacing:.5px}
.dock-calendar-day{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;width:100%;font-size:calc(var(--dock-size,49px)*.45);font-weight:500;line-height:1;letter-spacing:-1px;font-variant-numeric:tabular-nums}
@media(max-width:760px){.home-page #dock [data-action=command]{display:none}}
.notebook-dialog.is-short .planner-day-heading{display:none}
.notebook-dialog.keyboard-compact .notebook-dialog-heading{height:52px;min-height:52px}
.notebook-dialog.keyboard-compact .notebook-heading{height:43px;min-height:43px}
.notebook-dialog.keyboard-compact .planner-progress,.notebook-dialog.keyboard-compact .planner-filters,.notebook-dialog.keyboard-compact .planner-overdue,.notebook-dialog.keyboard-compact .note-intro{display:none}
.notebook-dialog.keyboard-compact .planner-main{padding-top:10px}
.notebook-dialog.keyboard-compact .planner-footer{height:30px;min-height:30px}
.notebook-dialog.keyboard-compact .planner-quick-add{margin-top:7px}
/* A calm agenda: clear date navigation, time budgets and small, actionable steps. */
.home-page .notebook-dialog:not([open]),.home-page .plan-editor-dialog:not([open]),.home-page .planner-confirm-dialog:not([open]){display:none!important}
.planner-day-switch button[data-plan-view]{padding-inline:9px;min-width:38px}
.planner-task-meta{flex-wrap:wrap;gap:4px 9px;line-height:1.6}
.planner-task-meta>.task-time,.planner-task-meta>.task-steps{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-variant-numeric:tabular-nums}
.task-time>.lucide,.task-steps>.lucide{width:12px;height:12px}.task-steps.complete{color:#557561}.task-description{flex-basis:100%;max-width:30em}
.task-step-progress{height:3px;width:min(85px,100%);background:#9778ac15;display:block;border-radius:8px;overflow:hidden;margin:3px 0 0}
.task-step-progress>i{display:block;height:100%;background:#93b5a1;transition:width .25s var(--ease)}
.planner-explore,.planner-week-strip,.planner-quick-hint{display:none}
.is-expanded .planner-explore{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0 0;flex-shrink:0}
.planner-search{display:flex;align-items:center;gap:8px;border:1px solid var(--book-line);border-radius:9px;min-width:0;width:230px;padding:0 10px;height:34px;background:#fff4}
.planner-search>.lucide{width:14px;height:14px;color:var(--book-muted)}.planner-search input{background:none;border:0;box-shadow:none;min-width:0;width:100%;font-size:11px;color:var(--book-text);padding:0;height:100%}.planner-search input::placeholder{color:var(--book-muted)}
.planner-search:focus-within{border-color:#a58abb;box-shadow:0 0 0 3px #a58abb10}#planner-effort{font-size:10px;color:var(--book-muted);white-space:nowrap}
.is-expanded .planner-week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;flex-shrink:0;margin:15px 0 5px;padding:4px;border:1px solid var(--book-line);border-radius:13px;background:#a88fba05}
.planner-week-strip>button{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;padding:9px 3px 8px;border-radius:9px;color:var(--book-muted);min-height:65px;transition:background .2s,color .2s,box-shadow .2s}
.planner-week-strip>button>span{font-size:9px}.planner-week-strip>button>strong{font-size:16px;font-weight:500;font-variant-numeric:tabular-nums}.planner-week-strip>button.today>strong{color:var(--book-accent)}
.planner-week-strip>button:hover{background:var(--book-soft)}.planner-week-strip>button.selected{color:var(--book-accent);background:#fff;box-shadow:0 2px 10px #7461820c}
.planner-week-strip i{width:23px;height:3px;border-radius:5px;background:transparent;overflow:hidden}.planner-week-strip i.has-tasks{background:#ac93be27}.planner-week-strip i:after{content:'';display:block;height:100%;width:var(--day-progress);background:#86a993}
.planner-day-group{margin-bottom:14px;border:1px solid var(--book-line);border-radius:13px;padding:0 12px;background:#fff3;overflow:hidden}
.planner-day-group>header{display:flex;align-items:center;gap:10px;min-height:42px;border-bottom:1px solid var(--book-line)}.planner-day-group>header>button:first-child{font-size:12px;color:var(--book-accent);padding:8px 0;text-align:left;font-weight:550}.planner-day-group>header>button:first-child>span{font-size:10px;color:var(--book-muted);font-weight:400;margin-left:8px}.planner-day-group>header>span{font-size:10px;color:var(--book-muted);margin-left:auto}.planner-day-group>header>button:last-child{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:var(--book-accent)}.planner-day-group>header>button:last-child:hover{background:var(--book-soft)}.planner-day-group>header .lucide{width:15px;height:15px}
.planner-day-empty{width:100%;display:flex;align-items:center;gap:7px;padding:14px 1px;color:var(--book-muted);font-size:11px}.planner-day-empty>.lucide{width:13px;height:13px}.planner-empty-add{display:inline-flex;align-items:center;gap:5px;padding:7px 11px;border:1px solid var(--book-line);border-radius:8px;background:var(--book-soft);color:var(--book-accent);font-size:11px;margin-top:4px}.planner-empty-add>.lucide{width:13px;height:13px}
.planner-backlog-tools{justify-content:flex-start;gap:8px}.planner-backlog-tools>span{flex-basis:100%;line-height:1.5}
.is-expanded .planner-quick-hint{display:block;font-size:9px;color:var(--book-muted);line-height:1.5;margin:8px 0 0;flex-shrink:0}
.home-page .plan-editor-dialog{width:min(580px,calc(100vw - 28px))}.plan-editor-dialog .dialog-heading{margin-bottom:16px}.planner-field{margin-top:14px}.planner-time-row{grid-template-columns:1fr 1.2fr}.planner-field select{white-space:nowrap;text-overflow:ellipsis}.planner-field textarea{min-height:75px}
.plan-subtasks{margin-top:21px}.plan-subtasks-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--book-muted);margin-bottom:9px}.plan-subtasks-heading label>span{font-size:10px;margin-left:5px}.plan-subtasks-heading>button{display:inline-flex;align-items:center;gap:4px;color:var(--book-accent);font-size:10px;padding:5px 7px;border-radius:7px;background:var(--book-soft);min-height:28px}.plan-subtasks-heading>button>.lucide{width:13px;height:13px}#plan-subtasks-hint{font-size:11px;color:var(--book-muted);padding:13px;border:1px dashed var(--book-line);border-radius:9px;line-height:1.6}
.plan-subtask-row{display:flex;align-items:center;gap:10px;margin-top:6px;min-height:40px;border:1px solid var(--book-line);border-radius:9px;padding:3px 5px 3px 10px;background:#fff4}.plan-subtask-row>input[type=checkbox]{flex:0 0 16px;width:16px;height:16px;accent-color:#8c72a3;margin:0}.plan-subtask-row>input[type=text]{flex:1;min-width:0;width:0;border:0;background:none;box-shadow:none;color:var(--book-text);font-size:12px;padding:6px 0;line-height:1.6}.plan-subtask-row>input[type=checkbox]:checked+input{color:var(--book-muted);text-decoration:line-through}.plan-subtask-row>.icon-button{width:28px;height:28px;flex-shrink:0}.plan-subtask-row .lucide{width:14px;height:14px}.plan-subtask-row:focus-within{border-color:#a58abb}.plan-editor-actions{position:sticky;bottom:-28px;z-index:1;background:var(--book-paper);padding-bottom:2px}
[data-theme=dark] .planner-week-strip>button.selected{background:#574163}[data-theme=dark] .planner-day-group,[data-theme=dark] .planner-search,[data-theme=dark] .plan-subtask-row{background:#fff03}[data-theme=dark] .task-steps.complete{color:#a4cdb0}
@media(max-width:760px){.planner-day-switch{max-width:100%}.planner-day-switch button,.is-expanded .planner-day-switch button{padding-inline:8px;min-width:38px;font-size:11px}.planner-date-picker{gap:4px;font-size:10px!important}.is-expanded .planner-explore{margin-top:7px;gap:7px}.planner-search{width:100%;height:33px}.planner-search input{font-size:16px}#planner-effort{font-size:9px}.is-expanded .planner-week-strip{margin-top:11px;gap:2px}.planner-week-strip>button{min-height:58px;gap:5px;padding:7px 3px}.planner-week-strip>button>strong{font-size:15px}.is-expanded .planner-filters{margin-top:8px}.is-expanded .planner-day-heading{margin-top:13px}.planner-day-heading h3{font-size:19px}.is-expanded .planner-task-list{margin-top:4px}.planner-day-group{padding-inline:9px}.planner-task-meta .task-description{display:none}.planner-time-row{gap:10px;grid-template-columns:1fr 1.2fr}.plan-subtask-row>input[type=text]{font-size:16px}.planner-field{margin-top:13px}.plan-editor-actions{bottom:-23px;padding-top:13px;padding-bottom:5px}.planner-empty-add{min-height:32px}.planner-backlog-tools .button{font-size:10px;min-height:32px}.home-page .plan-editor-dialog{padding:23px 18px}}
@media(max-width:380px){.planner-day-toolbar{flex-wrap:wrap;gap:5px}.planner-day-switch{flex:1}.planner-day-switch button{flex:1}.planner-date-picker{margin-left:auto}.is-expanded #planner-effort{display:none}.is-expanded .planner-task-state{display:none}.plan-editor-actions{gap:5px}.home-page .plan-editor-actions .button{padding-inline:9px}}
@media(max-height:750px){.is-expanded .planner-week-strip{display:none}.is-expanded .planner-day-heading{margin-top:13px}.is-expanded .planner-day-heading p{display:none}.is-expanded .planner-quick-hint{display:none}.is-expanded .planner-explore{margin-top:6px}.plan-editor-dialog .dialog-heading{margin-bottom:10px}.plan-subtasks{margin-top:16px}}
.notebook-dialog.keyboard-compact .planner-explore,.notebook-dialog.keyboard-compact .planner-week-strip,.notebook-dialog.keyboard-compact .planner-quick-hint{display:none}
@media(min-width:761px){.is-expanded .planner-week-strip{display:none}.is-expanded .planner-task-list{margin-top:13px}.is-expanded .planner-task-body>strong{font-size:14px}.is-expanded .planner-explore{margin-bottom:3px}}
@media(max-width:520px){.notebook-app:not(.is-expanded) .planner-day-toolbar{flex-wrap:wrap}.notebook-app:not(.is-expanded) .planner-date-picker{margin-left:auto}.notebook-app:not(.is-expanded) .planner-day-switch button{padding-inline:7px;min-width:36px}.notebook-app:not(.is-expanded) .planner-empty-add{display:none}}
