@charset "UTF-8";
:root{
  color-scheme:light;--sans:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--mono:ui-monospace,SFMono-Regular,Menlo,monospace;
  --ink:#192642;--body:#35415b;--muted:#65718a;--faint:#78849a;--accent:#4562ee;--accent-strong:#304bd6;--accent-soft:#edf0ff;--accent-ink:#3b50c5;--on-accent:#fff;
  --paper:#fff;--canvas:#f5f7fb;--sidebar:#f7f9fd;--hover:#eef2f9;--raised:#fff;--line:#e5e9f2;--check-border:#a5b1c7;--done:#7d879b;--danger:#bc3c52;
  --shadow:0 8px 32px #23335c0a;--menu-shadow:0 12px 45px #23335c1c;--backdrop:#17233c33;--green:var(--accent);--green-deep:var(--accent-strong);--sage:var(--hover);--serif:var(--sans);
  font-family:var(--sans);font-size:14px;color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased
}
:root[data-theme=dark]{
  color-scheme:dark;--ink:#f0edf5;--body:#ddd8e7;--muted:#afa7bf;--faint:#a097b1;--accent:#c5b5ed;--accent-strong:#d8c9fa;--accent-soft:#3c354f;--accent-ink:#d1c1f3;--on-accent:#272033;
  --paper:#24232e;--canvas:#211f29;--sidebar:#2a2835;--hover:#34313f;--raised:#302d3c;--line:#3b3749;--check-border:#8c809f;--done:#a096af;--danger:#f2a4ad;
  --shadow:0 8px 32px #00000018;--menu-shadow:0 14px 48px #00000045;--backdrop:#100e1a85
}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{color:inherit;cursor:pointer;border:0;background:none}button:disabled{cursor:default;opacity:.4}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);outline-offset:3px}a{color:var(--accent-ink)}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin-top:0}::selection{background:var(--accent-soft);color:var(--ink)}[hidden],.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:11px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.icon-button{width:36px;height:36px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--muted)}.icon-button:hover{background:var(--hover);color:var(--ink)}.icon-button svg{width:18px;height:18px}.text-button{padding:9px 0;color:var(--accent-ink);font-weight:500;text-align:left}.primary,.secondary,.danger-button{padding:11px 18px;min-height:44px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600}.primary{background:var(--accent);color:var(--on-accent)}.primary:hover{background:var(--accent-strong)}.secondary{background:var(--paper);border:1px solid var(--line)}.secondary:hover{background:var(--hover)}.danger-button{background:var(--danger);color:var(--paper)}.primary svg,.secondary svg{width:18px;height:18px}.wide{width:100%}.divider{height:1px;background:var(--line);margin:20px 0}
.theme-sun{display:none}[data-theme=dark] .theme-sun{display:block}[data-theme=dark] .theme-moon{display:none}
/* One navigation column and one writing surface, in either appearance. */
.layout{height:100vh;height:100dvh;display:grid;grid-template-columns:276px minmax(0,1fr);grid-template-rows:76px minmax(0,1fr);overflow:hidden;background:var(--paper)}
.workspace-bar{grid-column:1/-1;display:grid;grid-template-columns:276px minmax(0,1fr) auto;align-items:center;border-bottom:1px solid var(--line);background:var(--paper);padding:0 24px 0 0;min-width:0}
.brand{display:flex;align-items:center;gap:11px;padding:0 28px;white-space:nowrap}.brand-mark{display:flex;align-items:center;color:var(--accent)}.brand-mark svg{width:27px;height:27px;stroke-width:1.6}.brand-name{font-size:20px;font-weight:650;letter-spacing:-.65px}
.notebook-tabs{display:flex;align-items:stretch;align-self:stretch;gap:6px;min-width:0;overflow:auto;scrollbar-width:none;padding:0 22px}.notebook-tabs::-webkit-scrollbar{display:none}.notebook-tab{display:flex;align-items:center;justify-content:center;position:relative;flex:0 0 auto;max-width:190px;padding:0 21px;font-size:13px;color:var(--muted);border-bottom:2px solid transparent}.notebook-tab span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notebook-tab:hover{color:var(--ink);background:var(--sidebar)}.notebook-tab.active{color:var(--accent-ink);border-bottom-color:var(--accent);font-weight:550}.add-notebook{align-self:center;width:32px;height:32px;margin:0 7px}.add-notebook svg{width:16px;height:16px}.workspace-tools{display:flex;gap:5px;padding-left:15px;background:var(--paper)}
.navigator{display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--sidebar);border-right:1px solid var(--line)}
.sidebar{flex:0 1 auto;min-height:0;max-height:42%;display:flex;flex-direction:column;padding:19px 15px 9px;border-bottom:1px solid var(--line)}
.folder-heading{display:flex;align-items:center;gap:3px;margin:0 0 8px 7px;flex-shrink:0}.scope-root{display:flex;align-items:center;gap:9px;min-width:0;flex:1;text-align:left;font-size:13px;font-weight:600;padding:8px 0}.scope-root>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scope-root svg{width:17px;height:17px;color:var(--muted)}.folder-actions{display:flex}.folder-actions .icon-button{width:27px;height:32px}.folder-actions .icon-button svg{width:16px;height:16px}
.tree-scroll{overflow:auto;min-height:0;padding:1px 0 7px}.tree-row{min-height:37px;display:flex;align-items:center;border-radius:6px;margin:2px 0;position:relative}.tree-row:hover{background:var(--hover)}.tree-row.active{background:var(--accent-soft);color:var(--accent-ink)}.tree-main{min-width:0;display:flex;align-items:center;gap:9px;flex:1;text-align:left;padding:9px 4px 9px 0;font-size:13px;white-space:nowrap}.tree-main .label{overflow:hidden;text-overflow:ellipsis}.tree-main svg{width:17px;height:17px;color:var(--muted)}.tree-row.active .tree-main svg{color:var(--accent)}.tree-toggle{display:flex;align-items:center;justify-content:center;width:19px;min-height:36px;padding:0;flex-shrink:0;color:var(--faint)}.tree-toggle svg{width:11px;height:11px;transition:transform .12s}.tree-toggle.expanded svg{transform:rotate(90deg)}.tree-toggle:disabled{opacity:0;pointer-events:none}.more-button{opacity:0;width:27px;height:29px;margin-right:3px}.more-button svg{width:15px;height:15px}.tree-row:hover .more-button,.tree-row:focus-within .more-button{opacity:1}.depth-1{margin-left:16px}.depth-2{margin-left:32px}.depth-3{margin-left:48px}.depth-4{margin-left:64px}.depth-5{margin-left:80px}.depth-6{margin-left:96px}
.notes-pane{display:flex;flex-direction:column;min-height:0;flex:1}.list-heading{padding:19px 20px 10px;flex-shrink:0}.list-title-row{display:flex;align-items:center;gap:7px;min-width:0}.list-title{font-size:12px;line-height:1.4;font-weight:600;letter-spacing:.02em;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.list-count{font-size:10px;color:var(--faint);font-variant-numeric:tabular-nums;margin-right:auto}.list-title-row>.icon-button{height:29px;width:29px}.list-caption{display:none}.list-search{position:relative;display:flex;align-items:center;gap:9px;margin:0 18px 13px;flex-shrink:0}.list-search>svg{position:absolute;left:11px;width:16px;height:16px;color:var(--muted)}.list-search input{width:100%;padding:11px 34px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);font-size:13px;min-width:0;outline-offset:0}.clear-search{position:absolute;right:3px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;color:var(--muted)}.clear-search svg{width:14px;height:14px}.note-list{padding:0 12px 20px;overflow:auto;flex:1;min-height:0}.note-row{position:relative;margin:4px 0}.note-card{display:block;text-align:left;width:100%;border-radius:6px;padding:13px 36px 12px 14px;position:relative;user-select:none;-webkit-user-select:none;touch-action:pan-y}.note-card:hover{background:var(--hover)}.note-card.selected{background:var(--accent-soft)}.note-card.selected::before{content:'';position:absolute;width:2px;left:0;top:11px;bottom:11px;background:var(--accent);border-radius:2px}.note-card-title{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:550;margin-bottom:5px;min-width:0}.note-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.note-card-title svg{width:12px;height:12px;color:var(--accent-ink)}.note-excerpt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.6;color:var(--muted)}.note-meta{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--faint);margin-top:7px;overflow:hidden;white-space:nowrap}.note-meta .location{overflow:hidden;text-overflow:ellipsis}.note-options{position:absolute;top:7px;right:3px;width:28px;height:30px;opacity:0}.note-options svg{width:15px;height:15px}.note-row:hover .note-options,.note-row:focus-within .note-options{opacity:1}.list-empty{text-align:center;padding:40px 15px;color:var(--muted)}.list-empty>svg{width:25px;height:25px;margin-bottom:15px;color:var(--faint)}.list-empty h3{font-size:14px;font-weight:400;margin:0}.list-empty p:empty{display:none}
.navigator-footer{flex-shrink:0;padding:11px 21px 15px;border-top:1px solid var(--line)}.quick-filters{display:flex;gap:3px;margin:0 -5px 13px}.filter-button{display:flex;align-items:center;gap:7px;min-height:34px;padding:6px 8px;font-size:11px;border-radius:6px;color:var(--muted)}.filter-button svg{width:14px;height:14px}.filter-button:hover{background:var(--hover)}.filter-button.active{color:var(--accent-ink);background:var(--accent-soft)}.local-state{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:10px;color:var(--faint)}.local-state>span{display:flex;align-items:center;gap:5px}.local-state svg{width:11px;height:11px}.local-state .text-button{font-size:10px;padding:5px 0}
/* Keep chrome quiet and writing comfortably sized. */
.editor-pane{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--paper);position:relative}.editor-header{display:flex;align-items:center;gap:14px;min-height:66px;padding:15px 40px 10px;flex-shrink:0}.breadcrumbs{display:flex;align-items:center;gap:9px;min-width:0;flex:1;font-size:11px;color:var(--muted);font-family:var(--mono)}.breadcrumbs>svg{width:15px;height:15px}.breadcrumbs .chev{width:11px;height:11px;color:var(--faint)}.crumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.crumb:last-child{color:var(--body)}.save-status{display:flex;align-items:center;gap:6px;font-size:10px;white-space:nowrap;color:var(--faint);padding:7px 0}.save-status svg{width:12px;height:12px}.save-status.failed{color:var(--danger)}.editor-actions{display:flex;align-items:center;gap:4px}.editor-actions .icon-button{height:33px;width:33px}.editor-scroll{overflow:auto;flex:1;min-height:0;scrollbar-gutter:stable}.editor-content{width:100%;max-width:910px;margin:0 auto;padding:37px 54px 80px}.note-title{display:block;width:100%;font-size:36px;line-height:1.25;font-weight:680;letter-spacing:-1.25px;color:var(--ink);border:0;background:none;resize:none;overflow:hidden;outline:none;padding:0;margin:0 0 27px;min-height:46px;border-radius:0}.note-title::placeholder{color:var(--faint)}.note-title:focus-visible{outline:none}.editor-toolbar{display:flex;align-items:center;gap:4px;width:max-content;max-width:100%;padding:6px 9px;margin:0 0 30px;background:var(--raised);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);position:sticky;top:0;z-index:2}.format-button{display:flex;align-items:center;justify-content:center;gap:1px;width:31px;height:30px;border-radius:5px;color:var(--muted);font-size:12px;flex-shrink:0}.format-button svg{width:16px;height:16px}.format-button:hover{background:var(--hover);color:var(--ink)}.toolbar-divider{height:17px;width:1px;background:var(--line);margin:0 4px;flex-shrink:0}.editor-footer{font-size:10px;color:var(--faint);margin-top:33px;text-align:right}.editor-empty{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;color:var(--faint)}.empty-illustration{margin-bottom:14px}.empty-illustration svg{width:28px;height:28px;stroke-width:1.25}.editor-empty h2{font-size:15px;font-weight:400;color:var(--muted)}
.mobile-back{display:none}.layout.full-note{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.layout.full-note .workspace-bar,.layout.full-note .navigator{display:none}.layout.full-note .editor-pane{height:100dvh}.layout.full-note .editor-content{max-width:960px;padding-top:45px}.layout.full-note .mobile-back{display:none}.layout.full-note .breadcrumbs{display:flex}:fullscreen{background:var(--paper)}
/* Locked workspace and utility dialogs use the same palette. */
.gate{min-height:100vh;min-height:100dvh;background:var(--canvas);display:flex;flex-direction:column}.gate-intro{display:flex;align-items:center;justify-content:space-between;padding:32px 40px}.gate-intro .brand{padding:0}.gate-main{display:flex;align-items:flex-start;justify-content:center;flex:1;padding:55px 24px 70px}.gate-form{width:100%;max-width:350px}.gate-form .local-label{display:none}.gate-form h2{font-size:28px;font-weight:600;letter-spacing:-.8px;margin:0 0 12px}.intro{font-size:13px;line-height:1.8;color:var(--muted);margin-bottom:29px}.field{display:flex;flex-direction:column;gap:8px;margin:19px 0}.field>span{font-size:12px;font-weight:500;color:var(--body)}.field input:not([type=checkbox]),.field select,.field textarea{display:block;width:100%;min-width:0;min-height:44px;padding:11px 12px;color:var(--ink);border:1px solid var(--line);border-radius:7px;background:var(--paper);font-size:14px}.field textarea{min-height:88px;resize:vertical}.field input::placeholder,.field textarea::placeholder{color:var(--faint)}.field small{font-size:11px;color:var(--muted);line-height:1.6}.check-label{display:flex;align-items:flex-start;gap:9px;font-size:12px;color:var(--muted);line-height:1.6;margin:20px 0}.check-label input{accent-color:var(--accent);width:16px;height:16px;margin:2px 0 0;flex-shrink:0}.form-error{font-size:12px;line-height:1.7;color:var(--danger);margin:10px 0}.form-error:empty{display:none}.subtext{font-size:11px;color:var(--muted);line-height:1.8;margin:17px 0 10px}.gate-form>.text-button{display:block;font-size:12px}.gate-form .divider{margin:14px 0}.busy{cursor:progress}.busy button{pointer-events:none;opacity:.6}
dialog{padding:0;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 40px);color:var(--ink);background:var(--raised);border:1px solid var(--line);border-radius:13px;box-shadow:var(--menu-shadow);overflow:auto}dialog::backdrop{background:var(--backdrop);backdrop-filter:blur(4px)}.dialog-heading{padding:24px 25px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-heading h2{font-size:21px;font-weight:600;letter-spacing:-.5px;margin:0}.dialog-heading>.icon-button{width:30px;height:30px;margin-right:-5px}.dialog-body{padding:0 25px 5px}.dialog-body>p{font-size:13px;line-height:1.8;color:var(--muted)}.dialog-footer{display:flex;justify-content:flex-end;gap:9px;padding:16px 25px 24px}.dialog-actions{display:flex;flex-direction:column;gap:3px}.action-row{display:flex;align-items:center;gap:12px;text-align:left;width:100%;min-height:45px;padding:10px 11px;border-radius:7px;font-size:13px}.action-row svg{color:var(--muted);width:18px;height:18px}.action-row:hover{background:var(--hover)}.action-copy{flex:1}.action-row small{display:block;font-size:11px;line-height:1.6;font-weight:400;color:var(--muted);margin-top:3px}.action-row.danger,.action-row.danger svg{color:var(--danger)}.settings-callout{background:var(--sidebar);color:var(--muted);border-radius:8px;padding:14px 16px;font-size:12px;line-height:1.8;margin-bottom:17px}.settings-callout strong{font-weight:600;color:var(--body)}.recovery-code{display:block;padding:18px;border:1px dashed var(--check-border);border-radius:8px;background:var(--sidebar);font-family:var(--mono);font-size:13px;color:var(--ink);line-height:1.9;word-break:break-word;user-select:all}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}dialog.action-menu{position:fixed;margin:0;width:218px;max-height:calc(100dvh - 24px);padding:5px;border-radius:9px;box-shadow:var(--menu-shadow)}dialog.action-menu::backdrop{background:transparent;backdrop-filter:none}.action-menu .dialog-body{padding:0}.action-menu .dialog-actions{gap:0;margin:0}.action-menu .action-row{padding:8px 10px;min-height:36px;font-size:12px;gap:10px;border-radius:5px}.action-menu .divider{margin:4px 6px}.destination-list{max-height:min(420px,55dvh);overflow:auto;margin:-4px -7px}.destination-row{display:flex;align-items:center;gap:13px;width:100%;min-height:54px;padding:12px 9px;text-align:left;border-bottom:1px solid var(--line);border-radius:6px}.destination-row:hover{background:var(--hover)}.destination-row>svg{width:19px;height:19px;color:var(--accent)}.destination-row>span{flex:1;min-width:0}.destination-row strong{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere}.destination-row small{display:block;font-size:10px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.destination-row>svg:last-child{width:13px;height:13px;color:var(--faint)}
#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,12px);max-width:calc(100vw - 30px);z-index:20;background:var(--ink);color:var(--paper);border-radius:9px;padding:13px 18px;box-shadow:var(--menu-shadow);font-size:12px;line-height:1.6;display:flex;align-items:center;gap:18px;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}#toast.visible{opacity:1;transform:translate(-50%,0);pointer-events:auto}#toast button{color:var(--paper);font-weight:650;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}.drag-over{outline:2px solid var(--accent)!important;outline-offset:-2px;background:var(--accent-soft)!important}.dragging-note,.dragging-note *{cursor:grabbing!important;user-select:none!important}.note-card[data-dragging]{opacity:.45}.note-drag-preview{position:fixed;z-index:100;max-width:240px;padding:10px 15px;border:1px solid var(--line);border-radius:7px;background:var(--raised);box-shadow:var(--menu-shadow);color:var(--ink);font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;pointer-events:none}
@media(min-width:1600px){.layout{grid-template-columns:292px minmax(0,1fr)}.workspace-bar{grid-template-columns:292px minmax(0,1fr) auto}.editor-content{padding-top:44px}}
@media(max-width:1050px) and (min-width:701px){.layout{grid-template-columns:242px minmax(0,1fr);grid-template-rows:69px minmax(0,1fr)}.workspace-bar{grid-template-columns:242px minmax(0,1fr) auto;padding-right:12px}.brand{padding:0 23px}.brand-name{font-size:19px}.notebook-tabs{padding:0 7px;gap:0}.notebook-tab{padding:0 13px;font-size:12px;max-width:135px}.workspace-tools{gap:0;padding-left:3px}.workspace-tools .icon-button{width:31px}.editor-header{padding:12px 22px 6px;gap:8px}.editor-content{padding:32px 29px 65px}.note-title{font-size:32px;letter-spacing:-1px}.breadcrumbs{gap:6px;font-size:10px}.save-status{font-size:9px}.editor-actions{gap:0}.editor-actions .icon-button{width:29px}.sidebar{padding-left:12px;padding-right:12px}}
@media(max-width:700px){
  .layout{display:flex;flex-direction:column;height:100dvh}.workspace-bar{display:grid;grid-template-columns:1fr auto;grid-template-rows:58px 43px;padding:env(safe-area-inset-top) 0 0;flex-shrink:0}.brand{padding:0 21px;gap:9px}.brand-mark svg{width:24px;height:24px}.brand-name{font-size:18px;letter-spacing:-.5px}.workspace-tools{grid-column:2;grid-row:1;padding:0 13px 0 0;gap:0}.workspace-tools .icon-button{width:37px;height:42px}.notebook-tabs{grid-column:1/-1;grid-row:2;padding:0 13px;gap:5px}.notebook-tab{font-size:12px;padding:0 17px;max-width:160px}.add-notebook{width:34px;height:36px;margin:0 5px}.navigator{flex:1;border-right:0;min-height:0;display:none}.layout[data-screen=list] .navigator,.layout[data-screen=library] .navigator{display:flex}.layout[data-screen=editor] .editor-pane{display:flex;flex:1;min-height:0}.editor-pane{display:none}.layout[data-screen=list] .sidebar{display:none}.layout[data-screen=library] .notes-pane{display:none}.layout[data-screen=library] .sidebar{flex:1;max-height:none;border:0;padding:20px 18px}.folder-heading{margin-bottom:16px;gap:8px}.scope-root{font-size:15px}.folder-done{margin-left:7px}.folder-actions .icon-button{width:37px;height:42px}.tree-row{min-height:45px}.tree-main{font-size:14px;padding:12px 4px 12px 0}.tree-toggle{width:24px;height:44px}.more-button{opacity:1;min-width:38px;height:42px}.more-button svg{width:17px;height:17px}.navigator-footer{padding:10px 22px calc(13px + env(safe-area-inset-bottom))}.quick-filters{margin-bottom:6px}.filter-button{min-height:38px;font-size:12px;padding:7px 10px}.filter-button svg{width:15px;height:15px}.local-state{font-size:10px}.local-state .text-button{font-size:11px;min-height:34px}.list-heading{padding:18px 20px 12px}.list-title{font-size:17px;letter-spacing:-.3px;color:var(--ink)}.list-count{font-size:11px;margin-left:1px}.list-title-row{gap:10px}.list-title-row>.icon-button{height:40px;width:36px}.list-title-row>.mobile-back{margin-left:-7px;width:34px;justify-content:center}.list-search{margin:0 21px 12px}.list-search input{font-size:16px}.note-list{padding:0 15px 20px}.note-card{padding:17px 44px 16px 16px}.note-card-title{font-size:15px;margin-bottom:6px}.note-excerpt{font-size:13px}.note-meta{font-size:11px;margin-top:7px}.note-options{opacity:1;width:39px;height:44px;top:5px;right:1px}.note-options svg{width:17px;height:17px}.mobile-back{display:inline-flex;align-items:center;gap:5px;color:var(--accent-ink);min-height:38px;font-size:13px;padding:0}.mobile-back svg{width:18px;height:18px}.editor-header{min-height:54px;padding:7px 17px;gap:8px}.breadcrumbs{display:none}.editor-header>.mobile-back{margin-right:auto}.save-status{font-size:9px}.editor-actions{gap:0}.editor-actions .icon-button{width:34px;height:39px}.editor-content{padding:25px 25px calc(45px + env(safe-area-inset-bottom))}.note-title{font-size:31px;line-height:1.25;letter-spacing:-.95px;min-height:41px;margin-bottom:23px}.editor-toolbar{margin-bottom:26px;padding:4px 6px;gap:2px;border-radius:9px;top:0}.format-button{width:30px;height:36px}.toolbar-divider{margin:0 2px}.editor-footer{margin-top:27px;font-size:10px}.layout.full-note .editor-pane{display:flex;height:100dvh;flex:1}.layout.full-note .editor-content{padding-top:29px}.layout.full-note .editor-header{padding-top:calc(9px + env(safe-area-inset-top))}.layout.full-note .breadcrumbs{font-size:10px;gap:5px}.gate-intro{padding:24px 25px}.gate-main{padding:35px 27px 55px}.gate-form h2{font-size:26px}.field input:not([type=checkbox]),.field textarea,.field select{font-size:16px}dialog{max-height:calc(100dvh - 30px)}.dialog-heading{padding:21px 22px 12px}.dialog-body{padding-left:22px;padding-right:22px}.dialog-footer{padding:14px 22px 21px}.action-menu .action-row{min-height:44px;font-size:14px}.destination-row{min-height:59px}.destination-row strong{font-size:14px}.destination-row small{font-size:11px}#toast{bottom:calc(18px + env(safe-area-inset-bottom));font-size:12px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* A single library; search and global controls stay in the header. */
.workspace-bar{grid-template-columns:276px minmax(180px,560px) 1fr;gap:22px;padding-right:24px}.workspace-tools{justify-self:end}.mobile-library{display:none}.top-search{display:flex;position:relative;align-items:center;gap:10px;width:100%;min-width:0}.top-search>svg{position:absolute;left:13px;width:17px;height:17px;color:var(--muted);pointer-events:none}.top-search input{width:100%;min-width:0;border:1px solid transparent;background:var(--sidebar);border-radius:8px;min-height:40px;padding:10px 65px 10px 39px;color:var(--ink);font-size:13px;outline-offset:2px}.top-search input:focus{border-color:var(--check-border);background:var(--paper)}.top-search input::-webkit-search-cancel-button{display:none}.top-search input::placeholder{color:var(--muted)}.top-search .clear-search{right:5px}.search-key{position:absolute;right:13px;color:var(--faint);font:10px var(--mono);pointer-events:none}.top-search:has(input:not(:placeholder-shown)) .search-key,.top-search:focus-within .search-key{display:none}.folder-heading{gap:5px;margin-left:6px}.folder-label{font-size:11px;font-weight:600;letter-spacing:.02em;color:var(--muted);flex:1}.root-row{position:relative;display:flex;align-items:center;gap:10px;width:100%;padding:11px 10px;border-radius:7px;text-align:left;font-size:13px;color:var(--body);min-height:39px}.root-row svg{width:17px;height:17px;color:var(--muted)}.root-row span:first-of-type{flex:1}.root-row:hover{background:var(--hover)}.root-row.active{color:var(--accent-ink);background:var(--accent-soft)}.folder-count{font-size:10px;color:var(--muted)}.pinned-row{margin-top:7px}.tree-row{user-select:none;touch-action:pan-y}.tree-row.drop-before::before,.tree-row.drop-after::after{content:'';height:2px;background:var(--accent);position:absolute;left:0;right:0;border-radius:2px;z-index:3}.tree-row.drop-before::before{top:-2px}.tree-row.drop-after::after{bottom:-2px}.tree-row[data-dragging]{opacity:.4}.sidebar{max-height:43%;padding-bottom:13px}.navigator-footer{padding-top:14px}.note-title{font-size:34px;margin-bottom:24px}.editor-content{padding-top:30px}.editor-toolbar{position:fixed;z-index:10;top:auto;margin:0;box-shadow:var(--menu-shadow);width:max-content;max-width:calc(100vw - 16px);padding:6px;gap:2px;border-radius:9px}.editor-toolbar .format-button{width:32px;height:34px}.editor-toolbar[hidden]{display:none!important}.layout.full-note{grid-template-rows:76px minmax(0,1fr)}.layout.full-note .workspace-bar{display:grid;grid-template-columns:276px minmax(180px,560px) 1fr}.layout.full-note .editor-pane{height:auto}.layout.full-note .editor-content{padding-top:30px}.layout.full-note .editor-header .mobile-back{display:none}
@media(max-width:1050px) and (min-width:701px){.workspace-bar,.layout.full-note .workspace-bar{grid-template-columns:242px minmax(140px,1fr) auto;gap:15px}.layout.full-note{grid-template-rows:69px minmax(0,1fr)}.top-search input{padding-right:34px}.search-key{display:none}.note-title{font-size:32px}}
@media(max-width:700px){.workspace-bar,.layout.full-note .workspace-bar{grid-template-columns:1fr auto;grid-template-rows:54px 50px;gap:0;padding:env(safe-area-inset-top) 0 8px}.brand{padding-left:20px}.workspace-tools{grid-row:1;grid-column:2;padding-right:12px;gap:1px}.workspace-tools .icon-button{width:43px;height:43px}.mobile-library{display:inline-flex}.top-search{grid-row:2;grid-column:1/-1;width:auto;margin:0 18px}.top-search input{font-size:16px;min-height:40px;padding-right:38px}.search-key{display:none}.layout[data-screen=library] .sidebar{padding-top:14px}.folder-heading{margin-bottom:8px}.folder-heading>.icon-button{width:42px;height:44px}.folder-label{font-size:13px}.root-row{font-size:15px;min-height:47px}.folder-count{font-size:12px}.root-row svg{width:19px;height:19px}.folder-done{margin-left:8px}.list-heading{padding-top:12px;padding-bottom:9px}.list-title{font-size:17px}.editor-content{padding-top:19px}.note-title{font-size:30px;margin-bottom:25px}.editor-toolbar{padding:5px;gap:1px}.editor-toolbar .format-button{height:39px;width:31px}.layout.full-note .workspace-bar{display:grid}.layout.full-note .editor-header{padding-top:7px}.layout.full-note .editor-content{padding-top:19px}.layout.full-note .mobile-library{display:inline-flex}.layout.full-note .editor-header .mobile-back{display:inline-flex}.layout.full-note .breadcrumbs{display:none}.editor-header .editor-actions .icon-button{width:40px;height:42px}.editor-header{padding-top:3px;padding-bottom:3px}.editor-header>.mobile-back{min-height:42px}}
@media(hover:none){.more-button,.note-options{opacity:1}}

.brand-new-note{text-align:left;min-height:44px;border-radius:8px;justify-self:start}
.brand-new-note:hover .brand-name{color:var(--accent-ink)}
.camera-frame{position:relative;min-height:150px;display:flex;align-items:center;justify-content:center;background:var(--canvas);border-radius:8px;overflow:hidden}
.camera-frame video{display:block;width:100%;max-height:50dvh;object-fit:contain}
.camera-status{position:absolute;inset:auto 20px;text-align:center;font-size:13px;line-height:1.6;color:var(--muted)}
.camera-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:15px;flex-wrap:wrap}
@media(max-width:700px){.editor-header{gap:4px;padding-left:13px;padding-right:13px}.editor-header .editor-actions .icon-button{width:36px}.save-status{font-size:9px}}
/* Documents remain ordinary encrypted note attachments, downloaded on demand. */
.note-files:empty { display: none; }
.note-files { margin-top: 2rem; }
.note-files h2 { font-size: 1rem; }
.note-file { display: flex; align-items: center; gap: .5rem; border-top: 1px solid var(--border, #ddd); padding: .6rem 0; }
.file-download { display: flex; align-items: center; gap: .7rem; flex: 1; min-width: 0; text-align: left; padding: .4rem; background: transparent; color: inherit; border: 0; cursor: pointer; }
.file-download svg { width: 20px; height: 20px; flex-shrink: 0; }
.file-download span { overflow-wrap: anywhere; min-width: 0; }
.file-download small { display: block; opacity: .65; margin-top: .25rem; }
.note-file .icon-button { flex-shrink: 0; }
