@charset "UTF-8";
:root{color-scheme:light;--accent:#8464a9;--accent-deep:#6d518f;--accent-soft:#eae2f3;--accent-faint:#f7f3fb;--app:#fcfbfd;--side:#f4f0f8;--panel:#fbf9fd;--paper:#fff;--text:#33303b;--secondary:#777181;--tertiary:#9d97a5;--line:#e9e4ed;--hover:#ede8f3;--on-accent:#fff;--danger:#b24e58;--shadow:0 18px 70px #3221411a;--wide:700px}
[data-theme=paper]{--accent:#a68447;--accent-deep:#846731;--accent-soft:#f0e8d7;--accent-faint:#faf7ef;--app:#fdfcf9;--side:#f3f0e8;--panel:#faf8f2;--paper:#fffefa;--text:#3b372f;--secondary:#81796b;--tertiary:#a49b8b;--line:#e9e4d9;--hover:#ede8dc}
[data-theme=sage]{--accent:#608269;--accent-deep:#43684c;--accent-soft:#e1ebe0;--accent-faint:#f1f6f0;--app:#fafcf9;--side:#eef3ec;--panel:#f5f8f3;--paper:#fefffd;--text:#303c32;--secondary:#728174;--tertiary:#98a398;--line:#e1e9df;--hover:#e6eee3}
[data-theme=ocean]{--accent:#587f9e;--accent-deep:#3d6383;--accent-soft:#deebf4;--accent-faint:#f0f6fb;--app:#fafcfe;--side:#edf3f8;--panel:#f5f8fc;--paper:#fff;--text:#2e3945;--secondary:#738394;--tertiary:#99a7b5;--line:#e0e8ef;--hover:#e4edf4}
[data-theme=midnight]{color-scheme:dark;--accent:#b7a0d7;--accent-deep:#c7b3e4;--accent-soft:#3d334d;--accent-faint:#302938;--app:#232129;--side:#29252f;--panel:#27232d;--paper:#232129;--text:#eeeaf4;--secondary:#a9a0b4;--tertiary:#807589;--line:#3b3543;--hover:#352e3e;--on-accent:#211b2a;--danger:#e8929b;--shadow:0 18px 70px #0006}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.012em;color:var(--text);background:var(--app);-webkit-font-smoothing:antialiased;overflow:hidden}button,input,textarea{font:inherit;color:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;padding:0;text-align:inherit}a{color:inherit}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input:focus,textarea:focus{outline:none}button:focus:not(:focus-visible){outline:none}button svg,a svg{pointer-events:none}button{touch-action:manipulation}[hidden]{display:none!important}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon{width:19px;height:19px}.svg-definitions{position:absolute;visibility:hidden;width:0;height:0}.icon-button{height:34px;width:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:var(--secondary);flex-shrink:0;transition:background .15s,color .15s}.icon-button:hover{background:var(--hover);color:var(--text)}.icon-button.active{color:var(--accent);background:var(--accent-soft)}.icon-button.small{width:26px;height:26px}.icon-button.small .icon{width:16px;height:16px}.primary,.secondary{border-radius:9px;padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:550;font-size:13px;line-height:1.4;min-height:42px;transition:background .15s,transform .15s}.primary{color:var(--on-accent);background:var(--accent)}.primary:hover{background:var(--accent-deep)}.primary:active,.secondary:active{transform:translateY(1px)}.secondary{background:var(--paper);border:1px solid var(--line);color:var(--text)}.secondary:hover{background:var(--accent-faint);border-color:var(--accent)}.compact{min-height:35px;padding:7px 11px;font-size:12px}.text-button{color:var(--accent);font-size:12px;font-weight:550;text-decoration:none;display:inline-flex;gap:6px;align-items:center}.text-button:hover{text-decoration:underline}.danger-text{display:flex;align-items:center;gap:8px;color:var(--danger);font-size:13px;margin-top:20px}.muted{color:var(--secondary);font-size:13px;line-height:1.65}.eyebrow{font-size:10px;letter-spacing:.15em;color:var(--accent);font-weight:650}.wordmark{text-decoration:none;display:flex;align-items:center;gap:9px;letter-spacing:-1.5px;font-weight:650;font-size:31px;line-height:1}.brand-dot{color:var(--accent);margin-left:-10px}.brand-icon{width:31px;height:34px;background:var(--accent);color:var(--on-accent);border-radius:8px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px 4px #49385f0c}.brand-icon svg{width:18px;height:21px;stroke-width:1.5}.loading{height:100%;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--secondary)}
/* Welcome */
.welcome{height:100%;overflow:auto;padding:38px 5.2% 22px;background:var(--side);display:flex;flex-direction:column;position:relative}.welcome-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.welcome-top .wordmark{font-size:36px}.welcome-label{font-size:12px;color:var(--secondary)}.welcome-content{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:60px;width:100%;max-width:1140px;margin:auto;padding:70px 0 80px}.welcome-copy h1{font-size:clamp(38px,4.2vw,59px);font-weight:580;line-height:1.12;letter-spacing:-2.3px;margin:20px 0 24px}.welcome-copy>p{color:var(--secondary);font-size:15px;line-height:1.8}.welcome-actions{display:flex;flex-direction:column;align-items:stretch;max-width:300px;gap:10px;margin-top:30px}.welcome-actions button{height:47px;font-size:13px}.welcome-actions .primary .icon{margin-left:auto;width:16px}.google-letter{width:24px;text-align:left;font-size:20px;font-weight:700}.welcome-actions .primary{padding:12px 17px}.welcome-copy .signin-note{font-size:10px;margin-top:16px}.demo-link{margin-top:22px;color:var(--accent);font-size:12px;border-bottom:1px solid transparent}.demo-link:hover{border-color:var(--accent)}.demo-link span{padding-left:5px}.setup-notice{display:flex;gap:10px;max-width:365px;margin-top:18px;background:var(--accent-soft);border-radius:10px;padding:13px;color:var(--secondary);font-size:11px}.setup-notice .icon{color:var(--accent);margin-top:2px}.setup-notice strong{font-size:11px;color:var(--accent-deep)}.setup-notice p{margin:3px 0 0;line-height:1.65}.welcome-art{position:relative;width:370px;height:430px;margin:auto}.paper-front{background:var(--paper);border:1px solid var(--line);border-radius:11px;box-shadow:0 24px 50px #32204009;padding:36px 31px;height:390px;position:relative;transform:rotate(3deg)}.paper-back{position:absolute;inset:5px 8px 29px -7px;background:var(--accent-soft);border:1px solid var(--line);border-radius:11px;transform:rotate(-7deg)}.paper-date{font-size:8px;letter-spacing:.16em;color:var(--tertiary)}.paper-front h2{font-size:34px;line-height:1.12;font-weight:550;letter-spacing:-1.2px;margin:23px 0 15px}.paper-front p{color:var(--secondary);font-size:12px;line-height:1.75}.paper-line{height:1px;background:var(--line);margin:22px 0 16px}.paper-check{font-size:11px;color:var(--secondary);display:flex;align-items:center;gap:9px;margin:11px 0}.paper-check>span{display:flex;align-items:center;justify-content:center;width:13px;height:13px;border:1px solid var(--accent);border-radius:50%;font-size:9px;color:var(--accent)}.paper-flower{position:absolute;right:24px;bottom:12px;font-size:42px;color:var(--accent);font-weight:300}.art-caption{position:absolute;bottom:0;left:70px;font-size:10px;color:var(--secondary);display:flex;align-items:center;gap:7px}.art-caption>span{width:5px;height:5px;background:var(--accent);border-radius:50%}.welcome-footer{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--tertiary);gap:18px}.welcome-footer i{font-style:normal;margin:0 9px}.welcome-footer button{display:flex;gap:8px;align-items:center;color:var(--secondary)}.welcome-footer .icon{width:15px;height:15px}
/* Workspace */
.app{height:100dvh;display:grid;grid-template-columns:236px 308px minmax(0,1fr);background:var(--paper)}.sidebar{background:var(--side);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;padding:30px 17px 0}.sidebar-brand{padding:0 10px;display:flex;align-items:center;justify-content:space-between}.sidebar-subtitle{font-size:10px;color:var(--tertiary);padding:12px 10px 0}.sidebar-compose{display:flex;align-items:center;gap:9px;margin:29px 0 20px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:12px;font-weight:550;box-shadow:0 1px 2px #20162c03;color:var(--accent-deep)}.sidebar-compose:hover{border-color:var(--accent)}.sidebar-compose .icon{width:17px;height:17px}.shortcut{margin-left:auto;color:var(--tertiary);font-size:9px;font-weight:400}.main-nav{display:flex;flex-direction:column;gap:4px}.nav-item{display:flex;align-items:center;gap:11px;min-height:39px;padding:9px 12px;border-radius:7px;color:var(--secondary);font-size:12px;width:100%;text-align:left}.nav-item:hover{background:var(--hover)}.nav-item.active{background:var(--accent-soft);color:var(--accent-deep);font-weight:550}.nav-item .icon{height:17px;width:17px;stroke-width:1.6}.nav-count{font-size:10px;margin-left:auto;color:var(--tertiary);font-variant-numeric:tabular-nums}.nav-item.active .nav-count{color:var(--accent)}.folders-heading{margin:31px 4px 8px 12px;display:flex;align-items:center;justify-content:space-between;color:var(--tertiary);font-size:9px;font-weight:650;letter-spacing:.14em}.folder-nav{overflow:auto;min-height:35px}.folder-nav .nav-item{padding:8px 12px;font-size:12px;min-height:36px}.folder-nav .folder-dot{width:7px;height:7px;border-radius:2px;background:var(--accent);margin:0 5px;opacity:.7}.folder-nav .folder-dot[data-color="1"]{opacity:.43}.folder-nav .folder-dot[data-color="2"]{opacity:.85}.no-folders{font-size:11px;color:var(--tertiary);padding:4px 12px 12px}.sidebar-bottom{margin-top:auto;padding-top:35px}.sync-status{width:100%;text-align:left;display:flex;align-items:center;gap:9px;padding:11px 8px 18px;color:var(--secondary)}.sync-status:hover .sync-icon{background:var(--accent-soft)}.sync-icon{height:31px;width:31px;display:grid;place-items:center;border-radius:9px;color:var(--accent)}.sync-icon .icon{width:21px;height:21px}.sync-status strong{display:block;font-size:10px;font-weight:500;color:var(--secondary)}.sync-status small{font-size:9px;color:var(--tertiary);display:block;margin-top:2px}.sidebar-account{display:flex;align-items:center;gap:9px;padding:17px 3px 22px;border-top:1px solid var(--line)}.avatar{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;font-size:12px;background:var(--accent-soft);color:var(--accent-deep);font-weight:550;flex-shrink:0}.account-copy{min-width:0;flex:1}.account-copy strong{font-size:11px;font-weight:550;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.account-copy small{font-size:9px;color:var(--tertiary)}.sidebar-account .icon-button .icon{width:17px;height:17px}.demo-banner{background:var(--accent-faint);border:1px solid var(--line);border-radius:9px;padding:12px;margin-bottom:10px;font-size:10px}.demo-banner strong{font-size:11px;font-weight:550}.demo-banner p{color:var(--secondary);font-size:10px;line-height:1.6;margin:5px 0 10px}.demo-banner button{color:var(--accent);font-size:10px;display:flex;justify-content:space-between;width:100%}.mobile-close{display:none}.drawer-scrim{display:none}.open-sidebar{display:none}.notes-panel{border-right:1px solid var(--line);background:var(--panel);min-height:0;display:flex;flex-direction:column;min-width:0}.notes-top{padding:28px 21px 16px}.notes-title-row{display:flex;gap:8px;align-items:center;margin-bottom:19px}.notes-title-row h1{font-size:22px;font-weight:600;letter-spacing:-.65px;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-count{background:var(--accent-soft);color:var(--accent);border-radius:6px;font-size:10px;line-height:19px;min-width:21px;padding:0 6px;text-align:center}.notes-title-row>.icon-button:last-child{margin-left:auto;margin-right:-5px}.search{display:flex;align-items:center;gap:8px;background:var(--side);border:1px solid var(--line);border-radius:8px;padding:8px 9px;height:35px}.search .icon{color:var(--tertiary);width:15px;height:15px}.search input{width:100%;min-width:0;background:none;border:0;outline:0;font-size:11px;color:var(--text);padding:0;letter-spacing:-.01em}.search input::placeholder{color:var(--tertiary)}.search:focus-within{border-color:var(--accent)}kbd{font:9px/1.4 inherit;color:var(--tertiary);white-space:nowrap;letter-spacing:0;font-family:inherit}.notes-scroll{flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding:0 11px 16px}.note-list{padding-top:1px}.list-section{padding:10px 13px 8px;display:flex;align-items:center;gap:6px;font-size:9px;letter-spacing:.035em;font-weight:500;color:var(--tertiary)}.list-section .icon{width:11px;height:11px}.note-card{width:100%;padding:15px 14px 13px;border-radius:9px;display:block;text-align:left;position:relative;margin-bottom:4px;border:1px solid transparent;transition:background .12s}.note-card:hover{background:var(--hover)}.note-card.active{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 12%,transparent)}.note-card::after{content:"";position:absolute;height:1px;background:var(--line);bottom:-3px;left:14px;right:14px;opacity:.65}.note-card.active::after{display:none}.note-card h2{margin:0 0 5px;font-size:12px;letter-spacing:-.02em;line-height:1.55;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.note-preview{margin:0;font-size:11px;color:var(--secondary);line-height:1.75;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:34px;word-break:break-word}.note-card.active .note-preview{color:var(--accent-deep);opacity:.8}.card-meta{display:flex;align-items:center;gap:7px;font-size:9px;color:var(--tertiary);margin-top:11px;min-height:14px}.card-meta .icon{height:10px;width:10px}.meta-dot{width:2px;height:2px;border-radius:50%;background:var(--tertiary)}.card-meta .dirty-dot{margin-left:auto;width:5px;height:5px;border-radius:50%;background:var(--accent)}.notes-bottom{height:45px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-top:1px solid var(--line);color:var(--tertiary);font-size:9px;flex-shrink:0}.notes-bottom .icon-button{color:var(--accent)}.notes-bottom .icon{width:17px;height:17px}.list-empty{text-align:center;padding:65px 18px;color:var(--tertiary)}.list-empty>.icon{width:29px;height:29px;stroke-width:1.2}.list-empty h2{font-size:13px;font-weight:500;color:var(--secondary);margin:18px 0 6px}.list-empty p{font-size:11px;margin:0 0 15px}.list-empty .text-button{font-size:11px}
/* Writing */
.editor-panel{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--paper)}.editor-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:30px;text-align:center}.empty-mark{color:var(--accent);background:var(--accent-faint);width:73px;height:80px;display:grid;place-items:center;border-radius:18px;transform:rotate(-7deg);margin-bottom:23px}.empty-mark svg{width:32px;height:38px;stroke-width:1.1;transform:rotate(7deg)}.editor-empty h2{font-size:20px;letter-spacing:-.5px;font-weight:550;margin:0 0 9px}.editor-empty p{font-size:12px;color:var(--tertiary);margin:0 0 22px}.editor-empty>span{color:var(--tertiary);font-size:8px;letter-spacing:.13em;margin-top:55px}.editor{height:100%;min-height:0;display:flex;flex-direction:column}.editor-header{height:69px;display:flex;align-items:center;justify-content:space-between;padding:0 29px;border-bottom:1px solid var(--line);gap:10px;flex-shrink:0}.breadcrumb{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--tertiary);min-width:0}.breadcrumb button#note-folder{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:var(--secondary)}.breadcrumb button#note-folder:hover{color:var(--accent)}.crumb-icon .icon{width:14px;height:14px}.crumb-chevron{width:10px;height:10px}.crumb-current{color:var(--tertiary)}#editor-back{display:none}.editor-actions{display:flex;align-items:center;gap:4px}.editor-actions .icon-button .icon{width:16px;height:16px}.note-save{display:flex;align-items:center;gap:4px;color:var(--tertiary);font-size:9px;white-space:nowrap;margin-right:13px}.note-save .icon{width:12px;height:12px;color:var(--accent)}.format-bar{display:flex;align-items:center;gap:8px;padding:12px 27px 11px;border-bottom:1px solid var(--line);height:50px;flex-shrink:0}.format-group{display:flex;align-items:center;gap:4px}.format-button{min-width:29px;height:27px;border-radius:5px;color:var(--secondary);display:flex;align-items:center;justify-content:center;font-size:13px}.format-button:hover{background:var(--accent-soft);color:var(--accent)}.format-button .icon{width:16px;height:16px}.font-button{font-size:16px;padding:0 5px;gap:4px}.font-button .icon{width:9px;height:9px;transform:rotate(90deg)}.bold{font-weight:650}.italic{font-style:italic;font-family:Georgia,serif;font-size:15px}.underline{text-decoration:underline;font-size:12px}.toolbar-divider{height:17px;width:1px;background:var(--line);margin:0 7px}#format-hint{color:var(--tertiary);font-size:9px;margin-left:auto;text-align:right}#format-hint{display:none}@media(min-width:1400px){#format-hint{display:inline}}.editor-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.writing-area{width:100%;max-width:var(--wide);margin:0 auto;padding:36px 45px 100px;min-height:100%}.note-date{text-align:left;font-size:9px;color:var(--tertiary);letter-spacing:.015em;margin-bottom:23px}.note-title{display:block;resize:none;width:100%;border:0;outline:0;background:none;font-size:29px;font-weight:600;letter-spacing:-.8px;line-height:1.3;padding:0;margin:0 0 19px;overflow:hidden;min-height:38px}.note-title::placeholder{color:var(--tertiary);font-weight:500}.note-content{outline:none;min-height:calc(100% - 100px);padding-bottom:80px;font-size:14px;line-height:1.95;letter-spacing:-.008em;overflow-wrap:anywhere;color:var(--text)}.note-content:empty::before{content:attr(data-placeholder);color:var(--tertiary);pointer-events:none}.note-content p{margin:0 0 15px}.note-content h2{font-weight:600;font-size:21px;line-height:1.5;letter-spacing:-.4px;margin:25px 0 11px}.note-content h3{font-weight:600;font-size:16px;line-height:1.5;margin:22px 0 8px}.note-content ul,.note-content ol{padding-left:23px;margin:12px 0 20px}.note-content li{padding-left:3px;margin:5px 0}.note-content a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.note-content blockquote{border-left:2px solid var(--accent);padding:4px 0 4px 16px;margin:20px 0;color:var(--secondary);font-style:italic}.note-content pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--accent-faint);border:1px solid var(--line);padding:14px;border-radius:7px;font-size:12px;line-height:1.7}.note-content ul.checklist{list-style:none;padding-left:0}.note-content ul.checklist li{position:relative;padding-left:29px;min-height:27px;cursor:text}.note-content ul.checklist li::before{content:"";position:absolute;left:1px;top:7px;width:14px;height:14px;border:1.25px solid var(--accent);border-radius:50%;cursor:pointer}.note-content ul.checklist li[data-checked=true]{color:var(--tertiary);text-decoration:line-through}.note-content ul.checklist li[data-checked=true]::before{content:"✓";display:grid;place-items:center;color:var(--on-accent);background:var(--accent);font-size:10px;line-height:1;text-decoration:none}.note-content hr{border:0;border-top:1px solid var(--line);margin:25px 0}.editor-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:0 30px;height:37px;flex-shrink:0;font-size:9px;color:var(--tertiary)}#editor-footnote{display:flex;align-items:center;gap:5px}.small-dot{width:3px;height:3px;border-radius:50%;background:var(--accent);opacity:.7}.trash-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 30px;background:var(--accent-faint);color:var(--secondary);font-size:11px}.app.focused{grid-template-columns:1fr}.app.focused .sidebar,.app.focused .notes-panel{display:none}.app.focused .writing-area{max-width:800px}.app.focused #focus-mode{color:var(--accent);background:var(--accent-soft)}
/* Menus, dialogs and settings */
.popup-menu{position:fixed;z-index:40;min-width:190px;max-width:270px;max-height:70dvh;overflow:auto;background:var(--paper);border:1px solid var(--line);box-shadow:var(--shadow);padding:6px;border-radius:11px}.popup-menu button{display:flex;width:100%;align-items:center;gap:9px;text-align:left;font-size:12px;padding:9px 10px;border-radius:6px;color:var(--secondary);min-height:35px}.popup-menu button:hover{background:var(--accent-faint);color:var(--accent-deep)}.popup-menu button .icon{width:15px;height:15px}.popup-menu button.danger{color:var(--danger)}.popup-menu .menu-divider{height:1px;background:var(--line);margin:5px}.popup-menu .menu-label{font-size:9px;letter-spacing:.07em;text-transform:uppercase;color:var(--tertiary);padding:7px 10px}.popup-menu button .check-spacer{margin-left:auto;width:14px}dialog{margin:auto;padding:0;border:1px solid var(--line);background:var(--paper);color:var(--text);border-radius:17px;box-shadow:0 25px 90px #251a3e2a;max-width:calc(100vw - 32px)}dialog::backdrop{background:#1e14284d;backdrop-filter:blur(5px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:25px 27px 20px;gap:20px}.dialog-header h2{font-size:23px;font-weight:550;letter-spacing:-.7px;line-height:1.3;margin:4px 0 0}.dialog-header .eyebrow{font-size:8px;letter-spacing:.14em}.settings-dialog{width:530px;max-height:min(860px,90dvh)}.settings-dialog[open]{display:flex;flex-direction:column}.settings-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);padding:0 27px}.settings-tabs button{padding:10px 0 12px;font-size:12px;border-bottom:2px solid transparent;color:var(--secondary)}.settings-tabs button[aria-selected=true]{color:var(--accent);border-color:var(--accent);font-weight:550}.settings-scroll{overflow:auto;padding:24px 27px;min-height:0;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.settings-scroll h3{font-size:16px;font-weight:550;margin:0 0 4px;letter-spacing:-.3px}.settings-scroll h3+.muted{font-size:11px;margin:0 0 19px}.theme-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:19px 0 25px}.theme-card{border:1px solid var(--line);border-radius:10px;padding:7px;text-align:left;position:relative}.theme-card.active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.theme-preview{height:67px;border-radius:5px;display:flex;overflow:hidden;position:relative;border:1px solid #7771;background:var(--preview-bg)}.theme-preview-side{width:25%;background:var(--preview-accent);opacity:.24;border-right:1px solid #8882}.theme-preview-list{width:28%;border-right:1px solid #8882;padding:9px 5px}.theme-preview-list:before,.theme-preview-list:after{content:"";display:block;background:var(--preview-accent);opacity:.25;height:14px;margin-bottom:6px;border-radius:3px}.theme-preview-editor{width:47%;padding:12px 8px}.theme-preview-editor:before{content:"";display:block;background:var(--preview-text);opacity:.55;width:75%;height:4px;border-radius:4px}.theme-preview-editor:after{content:"";display:block;background:var(--preview-text);opacity:.16;width:100%;height:2px;border-radius:4px;box-shadow:0 7px var(--preview-text),0 14px var(--preview-text);margin-top:8px}.theme-name{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:550;padding:9px 3px 2px}.theme-name .icon{width:12px;height:12px;color:var(--accent);visibility:hidden}.theme-card.active .theme-name .icon{visibility:visible}.theme-card small{font-size:8px;color:var(--tertiary);padding:0 3px 3px;display:block}.theme-card:last-child{grid-column:span 2}.theme-card:last-child .theme-preview{height:54px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--line)}.setting-row strong{font-size:12px;font-weight:550}.setting-row p{font-size:10px;line-height:1.6;color:var(--tertiary);margin:3px 0 0}.setting-row i{font-style:normal;margin:0 6px}.switch{flex-shrink:0;width:33px;height:20px;position:relative}.switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;z-index:1;cursor:pointer}.switch span{display:block;width:100%;height:100%;border-radius:20px;background:var(--line);transition:background .15s}.switch span::after{content:"";position:absolute;left:3px;top:3px;width:14px;height:14px;background:white;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .15s}.switch input:checked+span{background:var(--accent)}.switch input:checked+span::after{transform:translateX(13px)}.switch input:focus-visible+span{outline:2px solid var(--accent);outline-offset:3px}.settings-footer{display:flex;align-items:center;justify-content:space-between;padding:15px 27px;border-top:1px solid var(--line);color:var(--tertiary);font-size:9px;flex-shrink:0}.settings-footer .wordmark{font-size:21px;color:var(--secondary)}.settings-footer .brand-dot{margin-left:-8px}.account-card{display:flex;align-items:center;gap:11px;margin-bottom:21px}.account-card .avatar{width:37px;height:37px}.account-card strong{font-size:12px;font-weight:550}.account-card .muted{font-size:10px;margin:1px 0 0}.private-tag{display:flex;align-items:center;gap:4px;font-size:9px;color:var(--tertiary);margin-left:auto}.private-tag .icon{width:10px;height:10px}.sync-card{background:var(--accent-faint);border:1px solid var(--line);border-radius:10px;padding:17px;margin-bottom:25px}.sync-card-heading{display:flex;align-items:center;gap:8px}.sync-card-heading>.icon{width:18px;height:18px;color:var(--accent)}.sync-card-heading>strong{font-size:12px;font-weight:550}.status-pill{margin-left:auto;font-size:8px;padding:3px 7px;border-radius:20px;background:var(--accent-soft);color:var(--accent-deep)}.sync-card>p{font-size:10px;color:var(--secondary);line-height:1.7;margin:11px 0}.sync-details{display:flex;gap:32px;margin:14px 0 17px}.sync-details span{font-size:9px;color:var(--tertiary)}.sync-details strong{display:block;font-size:11px;font-weight:500;color:var(--secondary);margin-top:3px}.button-row{display:flex;align-items:center;gap:16px}.button-row .text-button{font-size:10px}.setting-heading{margin:25px 0 16px}.passkey-item{display:flex;align-items:center;gap:9px;padding:11px 0;border-top:1px solid var(--line);font-size:11px}.passkey-item>.icon{width:16px;height:16px;color:var(--accent)}.passkey-item .key-copy{flex:1}.key-copy small{display:block;font-size:9px;color:var(--tertiary)}.no-passkeys{font-size:10px;color:var(--tertiary);margin:0 0 14px}.setting-divider{height:1px;background:var(--line);margin:24px 0 3px}.account-footnote{font-size:9px;line-height:1.8;color:var(--tertiary);margin:13px 0 0}.prompt-dialog{width:420px;padding:0 25px 24px}.prompt-dialog .dialog-header{padding:23px 0 14px}.prompt-dialog .dialog-header h2{font-size:20px}.prompt-dialog .muted{font-size:12px;margin:0 0 16px}.prompt-dialog label{display:block;font-size:11px;color:var(--secondary);margin-bottom:6px}.prompt-dialog input{width:100%;padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:7px;outline:none;font-size:13px}.prompt-dialog input:focus{border-color:var(--accent)}.prompt-buttons{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.prompt-buttons button{font-size:12px;min-height:37px;padding:8px 14px}.install-icon{display:block;border-radius:15px;margin:4px 0 19px}#install-steps{font-size:13px;line-height:1.85}.toast{position:fixed;z-index:100;bottom:27px;left:50%;transform:translateX(-50%);max-width:calc(100% - 40px);font-size:12px;color:var(--paper);background:var(--text);padding:12px 18px;border-radius:10px;box-shadow:0 6px 24px #0002;text-align:center}.update-bar{position:fixed;bottom:16px;right:17px;z-index:80;background:var(--paper);box-shadow:var(--shadow);border:1px solid var(--line);border-radius:9px;padding:11px 14px;font-size:11px;display:flex;align-items:center;gap:15px}.update-bar button{color:var(--accent);font-weight:550}.spin .icon{animation:spin 1.4s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
/* Tablet */
@media(max-width:1120px){.app{grid-template-columns:206px 280px minmax(0,1fr)}.sidebar{padding:27px 12px 0}.sidebar-subtitle{font-size:9px}.writing-area{padding:30px 30px 80px}.editor-header{padding:0 20px}.format-bar{padding:11px 18px}.note-save{margin-right:6px}.note-save>span{display:none}.editor-footer{padding:0 20px;font-size:8px}.welcome-content{gap:30px}.welcome-art{width:320px}.paper-front{padding:30px 25px}.note-title{font-size:26px}.notes-top{padding-left:18px;padding-right:18px}.app.focused .note-save>span{display:inline}}
@media(max-width:960px){.app{grid-template-columns:280px minmax(0,1fr)}.sidebar{position:fixed;left:0;top:0;bottom:0;z-index:31;width:245px;transform:translateX(-100%);transition:transform .2s;padding-top:calc(27px + env(safe-area-inset-top))}.app.drawer-open .sidebar{transform:translateX(0)}.app.drawer-open .drawer-scrim{display:block;position:fixed;inset:0;z-index:30;background:#1e14284d;backdrop-filter:blur(3px)}.mobile-close{display:inline-flex}.open-sidebar{display:inline-flex;width:28px;margin-left:-5px;margin-right:2px}.notes-title-row h1{font-size:21px}.notes-title-row{gap:7px}.notes-top{padding-top:23px}.notes-title-row>.icon-button:last-child{width:26px}.sidebar-account{padding-bottom:calc(22px + env(safe-area-inset-bottom))}.editor-header{height:66px}.note-date{margin-bottom:19px}.note-title{font-size:28px}.welcome-copy h1{font-size:43px}.welcome-art{width:290px;height:405px}.paper-front{height:370px}.paper-check{font-size:10px}.paper-front h2{font-size:31px}.welcome-footer>span:nth-child(2){display:none}}
/* Phone */
@media(max-width:700px){body{font-size:16px}.app{display:block;height:100dvh}.notes-panel{height:100%;border-right:0}.notes-top{padding:calc(16px + env(safe-area-inset-top)) 21px 13px}.notes-title-row{margin-bottom:16px;gap:10px}.notes-title-row h1{font-size:29px;letter-spacing:-1px}.open-sidebar{width:34px;height:36px;margin-right:1px}.open-sidebar .icon{width:21px;height:21px}.list-count{font-size:11px;min-width:22px;line-height:21px}.notes-title-row>.icon-button:last-child{width:34px}.search{height:41px;padding:9px 11px;border-radius:10px}.search .icon{width:18px;height:18px}.search input{font-size:15px}.search kbd{display:none}.notes-scroll{padding:0 13px 20px}.list-section{padding:14px 13px 9px;font-size:11px}.list-section .icon{width:12px;height:12px}.note-card{padding:17px 16px;margin-bottom:6px;border-radius:11px}.note-card h2{font-size:16px;margin-bottom:6px}.note-preview{font-size:13px;line-height:1.65;min-height:39px;-webkit-line-clamp:2}.card-meta{font-size:11px;margin-top:11px;gap:8px}.card-meta .icon{width:12px;height:12px}.notes-bottom{height:calc(56px + env(safe-area-inset-bottom));padding:0 24px env(safe-area-inset-bottom);font-size:11px}.notes-bottom .icon-button{width:40px;height:40px}.notes-bottom .icon{width:23px;height:23px}.editor-panel{display:none;height:100dvh}.app.note-open .notes-panel{display:none}.app.note-open .editor-panel{display:flex}.editor-header{height:calc(58px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 14px 0 7px;border-bottom:0}.breadcrumb{gap:0}.breadcrumb #note-folder{font-size:14px!important;color:var(--accent)!important;max-width:150px}.crumb-icon,.crumb-chevron,.crumb-current{display:none}#editor-back{display:inline-flex;color:var(--accent);height:42px;width:36px}#editor-back .icon{width:24px;height:24px}.editor-actions{gap:5px}.editor-actions .icon-button{width:37px;height:40px}.editor-actions .icon-button .icon{width:21px;height:21px}#focus-mode{display:none}.note-save{margin-right:2px}.note-save .icon{width:13px;height:13px}.format-bar{order:4;border-bottom:0;border-top:1px solid var(--line);height:calc(49px + env(safe-area-inset-bottom));padding:6px 15px calc(6px + env(safe-area-inset-bottom));background:var(--panel);justify-content:center;gap:17px}.format-group{gap:10px}.format-button{min-width:32px;height:34px;font-size:16px}.format-button .icon{width:21px;height:21px}.font-button{font-size:20px}.font-button .icon{width:11px;height:11px}.toolbar-divider{margin:0 2px}.format-bar #format-hint{display:none}.editor-scroll{order:1}.writing-area{padding:13px 26px 40px;max-width:100%;min-height:calc(100% - 20px)}.note-date{font-size:10px;text-align:center;margin-bottom:24px}.note-title{font-size:29px;letter-spacing:-.8px;line-height:1.25;margin-bottom:20px}.note-content{font-size:16px;line-height:1.85;min-height:240px;padding-bottom:100px}.note-content h2{font-size:23px}.note-content h3{font-size:18px}.note-content ul.checklist li{padding-left:32px;margin:8px 0}.note-content ul.checklist li::before{width:17px;height:17px;top:7px}.note-content ul.checklist li[data-checked=true]::before{font-size:12px}.editor-footer{order:2;height:30px;padding:0 24px;border-top:0;font-size:10px;justify-content:space-between}#editor-footnote{display:none}.trash-banner{order:0;padding:8px 20px;font-size:11px;gap:10px}.trash-banner .text-button{font-size:11px}.sidebar{width:280px}.sidebar .wordmark{font-size:32px}.sidebar-subtitle{font-size:11px;padding-top:15px}.sidebar-compose{font-size:14px;min-height:44px;padding-left:15px}.sidebar-compose .icon{width:19px;height:19px}.shortcut{display:none}.nav-item,.folder-nav .nav-item{min-height:43px;font-size:14px;padding-left:14px}.nav-item .icon{width:19px;height:19px}.nav-count{font-size:12px}.folders-heading{font-size:10px;margin-top:27px}.folder-nav{max-height:25dvh}.no-folders{font-size:12px}.sidebar-bottom{padding-top:17px}.sync-status strong{font-size:11px}.sync-status small{font-size:10px}.account-copy strong{font-size:13px}.account-copy small{font-size:10px}.demo-banner{font-size:11px}.demo-banner strong{font-size:12px}.demo-banner p{font-size:11px}.demo-banner button{font-size:11px}.avatar{width:36px;height:36px}.sidebar-account{gap:10px}.sidebar-account .icon-button .icon{width:20px;height:20px}.editor-empty{display:none}.list-empty h2{font-size:16px}.list-empty p{font-size:13px}.list-empty .text-button{font-size:13px}.list-empty{padding-top:90px}.list-empty>.icon{width:36px;height:36px}.app.focused{display:block}.app.focused .notes-panel{display:none}.app.focused .editor-panel{display:flex}.welcome{padding:calc(24px + env(safe-area-inset-top)) 25px calc(22px + env(safe-area-inset-bottom))}.welcome-top .wordmark{font-size:32px}.welcome-label{font-size:9px;max-width:110px;text-align:right;line-height:1.5}.welcome-content{display:flex;flex-direction:column;align-items:stretch;gap:50px;padding:55px 0 50px}.welcome-copy h1{font-size:43px;letter-spacing:-1.8px;line-height:1.15;margin-top:18px}.welcome-copy>p{font-size:14px}.welcome-copy .eyebrow{font-size:9px}.welcome-actions{max-width:none;gap:11px}.welcome-actions button{height:49px;font-size:14px}.welcome-copy .signin-note{font-size:9px;text-align:center}.demo-link{font-size:13px;margin-top:13px;display:block;margin-left:auto;margin-right:auto}.setup-notice{max-width:none;font-size:10px;margin-top:14px}.welcome-art{width:min(290px,82%);height:355px}.paper-front{height:330px;padding:25px 23px}.paper-front h2{font-size:29px;margin:17px 0 12px}.paper-front p{font-size:11px}.paper-date{font-size:7px}.paper-line{margin:17px 0 11px}.paper-check{font-size:9px;margin:9px 0}.paper-flower{font-size:35px;right:15px;bottom:9px}.art-caption{font-size:9px;left:50px;bottom:0}.welcome-footer{font-size:9px;gap:12px;flex-wrap:wrap}.welcome-footer button{font-size:10px}.settings-dialog{width:100%;max-height:92dvh;max-width:calc(100vw - 22px);border-radius:16px}.dialog-header{padding:22px 22px 19px}.settings-tabs{padding:0 22px;gap:25px}.settings-tabs button{font-size:13px}.settings-scroll{padding:21px 22px}.settings-scroll h3{font-size:17px}.settings-scroll h3+.muted{font-size:12px}.theme-grid{gap:10px}.theme-preview{height:70px}.theme-name{font-size:12px}.theme-card small{font-size:9px}.setting-row strong{font-size:13px}.setting-row p{font-size:11px}.setting-row{gap:14px}.secondary.compact{font-size:11px;white-space:nowrap}.settings-footer{padding:15px 22px;font-size:10px}.account-card .muted{font-size:11px;max-width:180px;overflow-wrap:anywhere}.sync-card{padding:15px}.sync-card-heading>strong{font-size:13px}.sync-card>p{font-size:11px}.sync-details strong{font-size:12px}.sync-details span{font-size:10px}.setting-heading .muted{font-size:12px!important}.account-card strong{font-size:14px}.status-pill{font-size:8px;white-space:nowrap}.account-footnote{font-size:10px}.prompt-dialog{max-width:calc(100vw - 32px);padding:0 23px 23px}.prompt-dialog input{font-size:16px}.prompt-dialog .muted{font-size:13px}.prompt-dialog label{font-size:12px}.toast{bottom:calc(70px + env(safe-area-inset-bottom));font-size:13px;max-width:calc(100% - 30px);width:max-content}.popup-menu button{font-size:14px;padding:12px;min-height:43px}.popup-menu{min-width:210px;max-height:65dvh}.popup-menu button .icon{width:18px;height:18px}.update-bar{bottom:calc(13px + env(safe-area-inset-bottom));left:15px;right:15px;justify-content:space-between}.theme-card:last-child .theme-preview{height:56px}}
@media(max-width:360px){.welcome-copy h1{font-size:37px}.format-bar{gap:8px}.format-group{gap:5px}.writing-area{padding-left:20px;padding-right:20px}.note-title{font-size:27px}.theme-card small{font-size:8px}.settings-scroll{padding-left:17px;padding-right:17px}.private-tag{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{body{overflow:visible;height:auto;background:#fff;color:#000}.welcome,.sidebar,.notes-panel,.editor-header,.format-bar,.editor-footer,.trash-banner,dialog,.toast,.popup-menu,.update-bar,.drawer-scrim{display:none!important}.app,.editor-panel,.editor,.editor-scroll{display:block!important;height:auto;overflow:visible}.writing-area{padding:0;max-width:none}.note-title{color:#000}.note-content{color:#000}.note-content a{color:#000}}
.wide-page{--wide:1000px}.preview-lavender{--preview-bg:#f7f4fb;--preview-accent:#a18bc6;--preview-text:#574473}.preview-paper{--preview-bg:#faf8f2;--preview-accent:#c5a666;--preview-text:#6b583a}.preview-sage{--preview-bg:#f4f7f3;--preview-accent:#849d88;--preview-text:#435c4b}.preview-ocean{--preview-bg:#f3f7fa;--preview-accent:#7a9dbb;--preview-text:#3f5d77}.preview-midnight{--preview-bg:#232129;--preview-accent:#b8a1df;--preview-text:#eeebf5}.primary.destructive{background:var(--danger);color:white}
