/* Notes studio: quiet hierarchy, one screen at a time on phones. */
.notes-studio{--note-line:#e5e9e3;--note-muted:#68766a;--note-surface:#f7f9f6;grid-template-columns:290px minmax(0,1fr);min-height:680px;border-radius:24px;box-shadow:0 12px 50px #203a2406;align-items:stretch}
.notes-studio .notes-library{padding:24px 16px;background:var(--note-surface)}
.notes-studio .notes-library-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 8px}
.notes-studio .notes-library-head h2{margin:9px 0 22px;font-size:28px;font-weight:600}
.notes-studio .notes-library-head .eyebrow{font-size:9px;letter-spacing:1.5px}
.notes-studio .notes-library-head .note-new{width:44px;height:44px;min-width:44px;margin:0;padding:0;font-size:27px;border-radius:15px}
.studio-search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--note-line);border-radius:13px;padding:0 12px}.studio-search>span{font-size:23px;color:var(--note-muted)}
.notes-studio .note-search{border:0!important;box-shadow:none!important;background:transparent!important;padding:12px 0;font-size:16px!important;min-width:0;width:100%}
.notes-studio .note-filters{gap:3px;background:#eaf0e7;padding:4px;border-radius:13px;margin:16px 0 12px}.notes-studio .note-filters button{flex:1;min-height:44px;padding:6px;font-size:11px;color:#4b5c4c}.notes-studio .note-filters .selected{background:#fff;box-shadow:0 2px 5px #203a2410;color:#243f2a}
.notes-sort{display:flex;align-items:center;justify-content:space-between;padding:0 6px 8px;gap:5px;font-size:11px;color:var(--note-muted)}.notes-sort select{width:auto;max-width:175px;border:0;background:transparent;font:inherit;min-height:44px;padding:5px;color:inherit}
.note-group-label{font-size:10px;text-transform:uppercase;letter-spacing:1.4px;color:var(--note-muted);padding:14px 10px 5px;margin:0}
.notes-studio .note-list-item{margin-top:5px;border-radius:14px}.notes-studio .note-list-item>button{padding:16px 12px;display:block}.notes-studio .note-list-item.selected{border-color:#d3dfcf;box-shadow:inset 3px 0 #78976b;background:#fff}.note-list-title{display:flex;justify-content:space-between;gap:10px}.notes-studio .note-list-title strong{font-size:15px;font-weight:600;line-height:1.45}.note-pin{color:#819671;font-size:10px;flex-shrink:0}.notes-studio .note-list-item p{font-size:13px;color:var(--note-muted);line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:none;overflow:hidden;margin:7px 0 11px}.note-list-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:10px;color:var(--note-muted)}.note-tag-chip{border-radius:5px;background:#edf2e9;padding:3px 6px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notes-studio .note-editor{padding:0;background:#fff;min-width:0}.notes-studio .note-topbar{padding:16px 24px;border-bottom:1px solid var(--note-line);min-height:77px;flex-wrap:nowrap;align-items:center}.notes-studio .note-topbar>span{width:auto;font-size:11px;color:var(--note-muted)}.notes-studio .note-topbar>div{width:auto;justify-content:flex-end;align-items:center;gap:6px}.notes-studio .note-topbar button{padding:10px 14px;font-size:12px}.notes-mobile-back{display:none}
.note-paper{max-width:780px;padding:36px 42px 42px;margin:auto}.notes-studio .note-editor #note-title{padding:4px 0 12px;font-size:34px!important;font-weight:600;letter-spacing:-1.2px;width:100%;line-height:1.3}.note-document-meta{display:flex;gap:9px;flex-wrap:wrap;color:var(--note-muted);font-size:11px;line-height:1.6}.note-properties{margin-top:14px;font-size:12px;color:var(--note-muted)}.note-properties summary{min-height:36px;cursor:pointer;overflow-wrap:anywhere}.notes-studio .note-tags{font-size:16px!important;width:100%;padding:10px!important;border-bottom:1px solid var(--note-line)}
.notes-studio .note-toolbar{margin:18px 0 12px;padding:8px 0;flex-wrap:wrap;gap:8px}.notes-studio .note-toolbar button{min-height:44px;min-width:44px;font-size:12px}.note-mode{background:var(--note-surface);padding:3px;border-radius:13px}.notes-studio .note-mode button[aria-pressed=true]{background:#e4ecdf;color:#30472e}.notes-studio #note-body{min-height:380px;line-height:1.85;font-size:17px!important;color:#29382d}.notes-studio .note-preview{min-height:380px;font-size:17px;line-height:1.85;color:#29382d}.notes-studio .note-preview h2{font-size:25px;line-height:1.35}.notes-studio .note-preview h3{font-size:21px;line-height:1.4}.notes-studio .note-check-item{padding:9px 0;gap:12px;min-height:44px;align-items:flex-start}.notes-studio .note-check-item input{margin-top:6px;width:20px;height:20px;flex-shrink:0;accent-color:#59764b}.notes-studio .note-check-item:has(input:checked) span{text-decoration:line-through;color:var(--note-muted)}
.note-more{position:relative}.note-more summary{display:flex;align-items:center;justify-content:center;cursor:pointer;width:44px;height:44px;border-radius:12px;list-style:none}.note-more summary::-webkit-details-marker{display:none}.note-more[open]>div{position:absolute;right:0;top:48px;width:220px;background:#fff;border:1px solid var(--note-line);padding:8px;box-shadow:0 12px 32px #17351b20;border-radius:16px;z-index:20}.note-more button{display:block;text-align:left;width:100%}.note-template-drawer{border-top:1px solid var(--note-line);padding-top:15px;color:var(--note-muted);font-size:12px}.note-template-drawer summary{padding:12px 0;cursor:pointer;min-height:44px}.notes-studio .note-templates{margin:5px 0;padding:12px}.note-placeholder{color:var(--note-muted)}.studio-list-empty{padding:32px 12px;color:var(--note-muted);font-size:13px;line-height:1.7}.notes-studio .notes-empty{padding:115px 28px}.note-empty-icon{width:64px;height:76px;display:grid;place-items:center;margin:0 auto 30px;border:1px solid #d5dfce;border-radius:13px;background:#f5f8f1;transform:rotate(-7deg);font-size:38px;color:#819671}.notes-studio .notes-empty>.eyebrow{font-size:10px;letter-spacing:1.5px}.notes-studio .notes-empty h2{font-size:34px;line-height:1.2;color:#344b36;font-weight:500}.notes-studio .notes-empty p{color:var(--note-muted)}
.notes-studio.focus-editor{grid-template-columns:1fr}.notes-studio.focus-editor .notes-library{display:none}.notes-studio button:focus-visible,.notes-studio summary:focus-visible{outline:2px solid #6e8c61;outline-offset:3px}.notes-studio .note-list-item{transition:background .16s,border-color .16s}.notes-studio .note-list-item:hover{background:#eef3e9}
@media(max-width:1100px){.notes-studio{grid-template-columns:250px minmax(0,1fr)}.note-paper{padding:28px 24px}.notes-studio .note-topbar{padding:14px 18px}}
@media(max-width:760px){.notes-studio,.notes-studio.focus-editor{display:block;min-height:60dvh;border-radius:20px}.notes-studio .notes-library,.notes-studio.focus-editor .notes-library{display:block;border:0;padding:22px 16px}.notes-studio .note-editor{display:none}.notes-studio.show-editor .notes-library{display:none}.notes-studio.show-editor .note-editor{display:block}.notes-studio .notes-library #note-list{display:block}.notes-studio .notes-library-head h2{font-size:32px}.notes-studio .note-list-item>button{padding:18px 12px}.notes-studio .note-list-title strong{font-size:17px}.notes-studio .note-list-item p{font-size:14px}.notes-studio .note-list-meta{font-size:11px}.notes-studio .note-filters button{font-size:12px}.notes-studio .notes-mobile-back{display:block;padding:8px 0!important;font-size:14px!important}.notes-studio .notes-focus-toggle{display:none}.notes-studio .note-topbar{position:sticky;top:0;background:#ffffffed;backdrop-filter:blur(16px);z-index:5;padding:12px 14px;gap:6px;min-height:68px}.notes-studio .note-topbar>span{margin-left:auto;font-size:10px;max-width:85px}.notes-studio .note-topbar button{padding:10px;font-size:12px}.notes-studio .note-topbar>div{gap:2px}.note-paper{padding:26px 20px 28px}.notes-studio .note-editor #note-title{font-size:29px!important}.notes-studio #note-body,.notes-studio .note-preview{min-height:48dvh;font-size:17px!important}.notes-studio .note-toolbar{gap:6px}.notes-studio .note-toolbar button{padding:8px 10px}.notes-studio .note-format-tools{gap:0}.app:has(.notes-studio) .notes-back{display:none}.app:has(.notes-studio.show-editor) .heading{display:none}.notes-sort select{font-size:16px;max-width:190px}.notes-studio .note-list-item p{max-height:none}}
[data-theme=dark] .notes-studio{--note-line:#354c3d;--note-muted:#b2bfae;--note-surface:#1b3023}[data-theme=dark] .notes-studio .note-editor,[data-theme=dark] .note-more[open]>div{background:#152a20}[data-theme=dark] .notes-studio .note-topbar{background:#152a20ed}[data-theme=dark] .studio-search,[data-theme=dark] .notes-studio .note-list-item.selected,[data-theme=dark] .notes-studio .note-filters .selected{background:#263d2d}[data-theme=dark] .notes-studio .note-filters,[data-theme=dark] .note-tag-chip,[data-theme=dark] .notes-studio .note-mode button[aria-pressed=true]{background:#304733;color:#e1ebdc}[data-theme=dark] .notes-studio .note-filters button,[data-theme=dark] .notes-studio .note-preview,[data-theme=dark] .notes-studio #note-body,[data-theme=dark] .notes-studio .notes-empty h2{color:#e1ebdc}[data-theme=dark] .notes-studio .note-list-item:hover{background:#253e2b}
@media(prefers-reduced-motion:reduce){.notes-studio *{transition:none!important;animation:none!important}}
.app:has(.notes-studio) .mobileplus{display:none}.app:has(.notes-studio) .notes-back{display:none}.app:has(.notes-studio) .heading{margin-bottom:24px}.app:has(.notes-studio) .heading h1{font-size:32px}.app:has(.notes-studio) .heading p{display:none}
@media(max-width:760px){.app:has(.notes-studio) .heading{display:none}.notes-studio .note-paper{padding-bottom:90px}}
.entry-calendar-dialog{width:min(440px,calc(100vw - 32px));padding:38px 28px 28px;border:1px solid #dde6d8;border-radius:28px;background:#fff;color:#183b30;box-shadow:0 24px 100px #132b3130}.entry-calendar-dialog::backdrop{background:#15332b55;backdrop-filter:blur(8px)}.entry-calendar-dialog h2{font-size:29px;letter-spacing:-.8px;margin:12px 0}.entry-calendar-dialog p{font-size:14px;color:#6b7869;line-height:1.6}.calendar-choice-close{position:absolute;right:14px;top:10px;width:44px;height:44px;font-size:26px}.entry-calendar-buttons{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:26px}.entry-calendar-buttons button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:134px;background:#f1f6ed;border:1px solid #dce7d5;border-radius:20px;color:#27442f;font-size:18px}.entry-calendar-buttons button>span{font-size:32px}.entry-calendar-buttons button:hover{background:#e1ecd9}.entry-calendar-buttons button:focus-visible{outline:3px solid #78976b;outline-offset:3px}[data-theme=dark] .entry-calendar-dialog{background:#183025;color:#e0ecd9;border-color:#40563c}[data-theme=dark] .entry-calendar-dialog p{color:#b8c5b1}[data-theme=dark] .entry-calendar-buttons button{background:#2b4633;color:#e0ecd9;border-color:#52694b}
.entry-calendar-dialog{max-height:85dvh;overflow-y:auto}.entry-calendar-buttons strong{overflow-wrap:anywhere;max-width:100%;padding:0 8px}.entry-new-calendar{margin-top:20px;font-size:14px}.entry-new-calendar summary{cursor:pointer;padding:14px 0;min-height:44px}.entry-new-calendar input{font-size:16px;width:100%;margin:8px 0 14px}.entry-new-calendar>button{width:100%;min-height:48px}
