:root{--bg:#ffffff;--surface:#ffffff;--header:#ffffff;--search:#f1f3f4;--text:#202124;--text-2:#5f6368;--border:#e0e0e0;--divider:rgba(0,0,0,0.12);--hover:rgba(60,64,67,0.08);--selected:#feefc3;--rail-active:#feefc3;--shadow-1:0 1px 2px 0 rgba(60,64,67,0.3),0 1px 3px 1px rgba(60,64,67,0.15);--shadow-2:0 1px 3px 0 rgba(60,64,67,0.3),0 4px 8px 3px rgba(60,64,67,0.15);--scrim:rgba(0,0,0,0.6);--accent:#1a73e8;--rail-w:280px;--rail-w-collapsed:80px;--safe-top:env(safe-area-inset-top,0px);--header-h:64px}[data-theme=dark]{--bg:#202124;--surface:#202124;--header:#202124;--search:#525355;--text:#e8eaed;--text-2:#9aa0a6;--border:#5f6368;--divider:rgba(255,255,255,0.16);--hover:rgba(255,255,255,0.1);--selected:#41331c;--rail-active:#41331c;--shadow-1:0 1px 2px 0 rgba(0,0,0,0.6),0 1px 3px 1px rgba(0,0,0,0.3);--shadow-2:0 1px 3px 0 rgba(0,0,0,0.6),0 4px 8px 3px rgba(0,0,0,0.3);--scrim:rgba(0,0,0,0.75);--accent:#8ab4f8}*{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[role=dialog][tabindex="-1"]:focus{outline:none}body,html{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;-webkit-font-smoothing:antialiased}button{cursor:pointer}button,input,textarea{font:inherit;color:inherit;background:none;border:none}input,textarea{outline:none;resize:none}.icon-btn{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--text-2);flex:0 0 auto;transition:background .12s}.icon-btn:hover{background:var(--hover)}.icon-btn:disabled{opacity:.38;cursor:default}.icon-btn.active{color:var(--accent)}.header{position:fixed;top:0;left:0;right:0;box-sizing:border-box;height:calc(var(--header-h) + var(--safe-top));display:flex;align-items:center;gap:4px;padding:8px;padding-top:calc(8px + var(--safe-top));background:var(--header);border-bottom:1px solid var(--divider);z-index:30}.header-actions,.header-sync{display:flex;align-items:center;flex:0 0 auto;min-width:0}.header-tools{display:contents}.brand{display:flex;align-items:center;gap:10px;padding:0 8px;font-size:22px;color:var(--text-2);-webkit-user-select:none;-moz-user-select:none;user-select:none;flex:0 0 auto}.brand img{width:28px;height:28px;border-radius:6px;display:block}.searchbar{flex:1 1 auto;max-width:720px;margin:0 24px;height:48px;display:flex;align-items:center;gap:8px;padding:0 8px;border-radius:8px;background:var(--search)}.searchbar:focus-within{background:var(--surface);box-shadow:var(--shadow-1)}.searchbar input{flex:1 1;height:100%;font-size:16px}.sync-pill{font-size:12px;color:var(--text-2);padding:4px 10px;border-radius:12px;white-space:nowrap}.sync-pill[data-state=offline]{color:#d93025}button.sync-pill{border:0;background:transparent;cursor:pointer;font:inherit}.rail{position:fixed;top:calc(64px + var(--safe-top));bottom:0;left:0;width:var(--rail-w-collapsed);padding-top:8px;background:var(--bg);overflow-x:hidden;overflow-y:auto;transition:width .14s ease;z-index:20}.rail.pinned,.rail:hover{width:var(--rail-w);box-shadow:var(--shadow-2)}.rail.pinned{box-shadow:none}.rail-item{display:flex;align-items:center;gap:20px;height:48px;padding-left:16px;width:calc(var(--rail-w) - 12px);border-radius:0 25px 25px 0;color:var(--text);font-size:14px;white-space:nowrap}.rail-item:hover{background:var(--hover)}.rail-item.active{background:var(--rail-active);font-weight:500}.rail-item .label{opacity:0;transition:opacity .12s}.rail.pinned .rail-item .label,.rail:hover .rail-item .label{opacity:1}.rail-count{margin-left:auto;padding-right:24px;font-size:12px;color:var(--text-2)}.main{padding:calc(88px + var(--safe-top)) 24px 64px calc(var(--rail-w-collapsed) + 16px);transition:padding-left .14s ease}.header~.rail{top:calc(var(--header-h) + var(--safe-top))}.header~.main{padding-top:calc(var(--header-h) + var(--safe-top) + 24px)}.main.rail-pinned{padding-left:calc(var(--rail-w) + 16px)}.composer-wrap{display:flex;justify-content:center;margin-bottom:32px}.composer{width:100%;max-width:600px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow-1);padding:12px 16px}.composer .placeholder-row{display:flex;align-items:center;gap:8px}.composer .placeholder-row span{flex:1 1;font-size:16px;font-weight:500;color:var(--text-2);padding:4px 0;cursor:text}.composer input.title{width:100%;font-size:16px;font-weight:500;padding:4px 0 8px}.composer textarea.body{width:100%;font-size:14px;line-height:1.5;min-height:60px;padding:4px 0}.composer-actions{display:flex;align-items:center;gap:2px;margin-top:8px}.composer-actions .spacer{flex:1 1}.text-btn{padding:8px 24px;border-radius:4px;font-size:14px;font-weight:500}.text-btn:hover{background:var(--hover)}.section-label{font-size:11px;font-weight:500;letter-spacing:.8px;text-transform:uppercase;color:var(--text-2);margin:0 0 12px 8px}.grid{column-gap:16px;columns:240px 4;margin-bottom:32px}.grid.list-view{column-count:1;max-width:600px;margin-left:auto;margin-right:auto}.note{page-break-inside:avoid;break-inside:avoid;margin:0 0 16px;border:1px solid var(--border);border-radius:8px;padding:12px 16px 8px;background:var(--surface);position:relative;cursor:default;transition:box-shadow .12s}.note:hover{box-shadow:var(--shadow-2)}.note.selected{outline:2px solid var(--text);outline-offset:-2px}.note.dragging{opacity:.4}.note.drop-target{outline:2px dashed var(--accent);outline-offset:-2px}.note h3{margin:0 0 8px;font-size:16px;font-weight:500;word-wrap:break-word}.note .body{font-size:14px;line-height:1.5;white-space:pre-wrap;word-wrap:break-word;max-height:420px;overflow:hidden}.note .pin{position:absolute;top:4px;right:4px;opacity:0;transition:opacity .12s}.note .pin.on,.note:hover .pin{opacity:1}.note-actions{display:flex;gap:2px;margin-top:4px;opacity:0;transition:opacity .12s}.note:hover .note-actions{opacity:1}.note-actions .icon-btn{width:32px;height:32px}.chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px}.chip{font-size:12px;padding:3px 8px;border-radius:4px;background:var(--hover);color:var(--text-2);display:inline-flex;align-items:center;gap:4px}.check-row{display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:1.6;padding:1px 0}.check-row.done{color:var(--text-2);text-decoration:line-through}.empty{text-align:center;padding:120px 24px;color:var(--text-2)}.empty .glyph{font-size:96px;opacity:.3;line-height:1}.empty p{font-size:22px;margin-top:24px}.scrim{position:fixed;inset:0;background:var(--scrim);z-index:40;display:flex;align-items:flex-start;justify-content:center;padding:80px 16px 40px;overflow-y:auto}.modal{width:100%;max-width:600px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow-2);padding:16px}.modal input.title{width:100%;font-size:18px;font-weight:500;padding:4px 0 12px}.modal textarea.body{width:100%;font-size:14px;line-height:1.6;min-height:120px}.modal-footer{display:flex;align-items:center;gap:2px;margin-top:12px}.modal-footer .edited{flex:1 1;text-align:right;font-size:12px;color:var(--text-2);padding-right:8px}.collab-pop{position:absolute;bottom:46px;left:8px;z-index:6;min-width:260px}.popover{position:absolute;z-index:60;background:var(--surface);border-radius:4px;box-shadow:var(--shadow-2);padding:6px 0;min-width:180px;max-height:70vh;overflow-y:auto}.popover button{display:block;width:100%;text-align:left;padding:8px 16px;font-size:14px}.popover button:hover{background:var(--hover)}.swatches{position:absolute;z-index:60;background:var(--surface);border-radius:8px;box-shadow:var(--shadow-2);padding:8px;display:grid;grid-template-columns:repeat(6,32px);grid-gap:6px;gap:6px}.swatch{width:32px;height:32px;border-radius:50%;border:2px solid transparent;position:relative}.swatch:hover{border-color:var(--text)}.swatch.on{border-color:var(--accent)}.snackbar{position:fixed;left:24px;bottom:24px;z-index:70;min-width:288px;display:flex;align-items:center;gap:16px;background:#323232;color:#fff;padding:14px 16px;border-radius:4px;box-shadow:var(--shadow-2);font-size:14px}.snackbar button{color:#8ab4f8;text-transform:uppercase;font-weight:500;letter-spacing:.5px}.app-nudge{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:32;display:flex;align-items:center;gap:8px;padding:8px 4px 8px 14px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-2)}.app-nudge-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1}.app-nudge-copy strong{font-size:15px;font-weight:500}.app-nudge-copy span{font-size:13px;color:var(--text-2)}.app-nudge-btn{display:inline-flex;align-items:center;justify-content:center;padding:0 16px;background:var(--accent);color:#fff;border-radius:999px;font-size:14px;font-weight:500;text-decoration:none}.app-nudge-btn,.app-nudge-x{flex:0 0 auto;min-height:48px;min-width:48px}.app-nudge-x{font-size:22px;color:var(--text-2)}.selbar{position:fixed;top:0;left:0;right:0;box-sizing:border-box;height:calc(64px + var(--safe-top));background:var(--header);display:flex;align-items:center;gap:4px;padding:8px 16px;padding-top:calc(8px + var(--safe-top));z-index:35;box-shadow:var(--shadow-1)}.selbar .count{flex:1 1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px;margin-left:12px}@media (max-width:1040px){:root{--header-h:112px}.main{padding-left:16px;padding-right:16px}.rail{width:0}.rail.pinned{width:var(--rail-w)}.main.rail-pinned{padding-left:16px}.header{flex-wrap:wrap;align-content:flex-start;row-gap:0;padding:calc(4px + var(--safe-top)) 8px 6px}.header-actions{order:0;margin-left:auto}.header-tools{display:flex;flex:1 0 100%;order:2;align-items:center;min-width:0;margin-top:6px}.search-wrap{flex:1 1 auto;min-width:0;max-width:none;margin:0 8px 0 0}.header-sync{margin:0}.search-wrap .searchbar{flex-wrap:nowrap;overflow-x:auto;height:44px;min-height:44px}.brand{min-width:0;flex:0 1 auto;padding:0 4px 0 0;gap:8px}.brand-name{font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header .header-wide{display:none}.header .sync-pill{max-width:88px;overflow:hidden;text-overflow:ellipsis;font-size:12px;padding:4px 8px}.header span.sync-pill[data-tone=offline]{color:#d93025}.header span.sync-pill[data-tone=pending]{color:#e37400}.header span.sync-pill[data-tone=syncing]{color:var(--accent)}.selbar{padding-left:4px;padding-right:4px;gap:0}.selbar .icon-btn{width:36px;height:36px}}.rail-account{margin-top:auto;padding:12px 0 8px;border-top:1px solid var(--rail-border,#e0e0e0)}.rail-account-email{padding:0 24px 6px;font-size:12px;color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rail-account-badge{margin:0 24px 6px;display:inline-block;padding:1px 8px;border-radius:999px;background:#feefc3;color:#3c4043;font-size:11px;letter-spacing:.02em}.topbar .me-profile-menu{margin-left:4px}.billing{max-width:34rem}.billing-title{font-size:18px;font-weight:400;color:var(--text-2);margin:0 0 24px}.billing-plan{display:flex;align-items:center;gap:12px;margin-bottom:20px}.plan-tag{border:1px solid var(--border);border-radius:999px;padding:2px 12px;font-size:12px;color:var(--text-2)}.plan-tag.on{border-color:var(--accent);color:var(--accent);font-weight:600}.billing-facts{display:grid;grid-template-columns:auto 1fr;grid-gap:8px 20px;gap:8px 20px;margin:0 0 24px;font-size:14px}.billing-facts dt{color:var(--text-2)}.billing-facts dd{margin:0;color:var(--text)}.billing-actions{display:flex;gap:8px;flex-wrap:wrap}.billing-btn{font:inherit;cursor:pointer;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:4px;padding:8px 16px}.billing-btn:hover:not(:disabled){background:var(--hover)}.billing-btn:disabled{opacity:.5;cursor:not-allowed}.billing-btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:500}.billing-note{color:var(--text-2)}.billing-error,.billing-note{font-size:13px;margin:12px 0 0}.billing-error{color:#d93025}:root[data-theme=dark] .billing-error{color:#f28b82}:root{--pat:rgba(0,0,0,0.16)}[data-theme=dark]{--pat:rgba(255,255,255,0.2)}.search-wrap{position:relative;flex:1 1 auto;max-width:720px;margin:0 24px}.search-wrap .searchbar{margin:0;max-width:none;height:auto;min-height:48px;flex-wrap:wrap}@media (max-width:1040px){.header .search-wrap{flex:1 1 auto;min-width:0;max-width:none;margin:0 8px 0 0}.header .search-wrap .searchbar{flex-wrap:nowrap;height:44px;min-height:44px;overflow-x:auto}.header .search-wrap .searchbar input{min-width:0}}.search-panel{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:40;border-radius:8px;box-shadow:var(--shadow-2);padding:12px 14px 8px;max-height:360px;overflow:auto}.mini-chip,.search-panel{background:var(--surface)}.mini-chip{border:1px solid var(--border);border-radius:16px;padding:4px 10px;font-size:13px;white-space:nowrap}.mini-chip.on,.mini-chip[aria-pressed=true]{background:var(--selected);border-color:transparent}.palette-pop{background:var(--surface);border-radius:8px;box-shadow:var(--shadow-2);padding:10px 12px 12px;max-width:min(360px,calc(100vw - 16px))}.palette-label{font-size:12px;color:var(--text-2);margin:8px 0 6px}.palette-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.palette .swatch,.palette-pop .swatch,.search-panel .swatch{overflow:hidden;display:inline-flex;align-items:center;justify-content:center;border:2px solid var(--border)}.note.kb{outline:2px solid var(--accent);outline-offset:-2px}.chip.struck{text-decoration:line-through}a.chip{text-decoration:none;color:inherit}a.chip:hover{text-decoration:underline}.note-images{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px}.note-images img{max-width:100%;max-height:160px;border-radius:8px;object-fit:cover}.note-images figure{margin:0}.pat-dots{background-image:radial-gradient(var(--pat) 1.2px,transparent 1.3px);background-size:14px 14px}.pat-grid{background-image:linear-gradient(var(--pat) 1px,transparent 1px),linear-gradient(90deg,var(--pat) 1px,transparent 1px);background-size:18px 18px}.pat-stripes{background-image:repeating-linear-gradient(-45deg,transparent,transparent 7px,var(--pat) 7px,var(--pat) 8px)}.pat-waves{background-image:radial-gradient(ellipse at 0 50%,var(--pat) 0 2px,transparent 3px);background-size:18px 12px}.pat-checks{background-image:linear-gradient(45deg,var(--pat) 25%,transparent 25%),linear-gradient(-45deg,var(--pat) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--pat) 75%),linear-gradient(-45deg,transparent 75%,var(--pat) 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.format-bar{display:flex;gap:2px;margin-bottom:4px}.format-bar button{min-width:32px;height:28px;border-radius:4px;font-size:13px}.format-bar button:hover{background:var(--hover)}.rich-body{min-height:120px;width:100%;font-size:14px;line-height:1.6;padding:4px 0 12px;word-wrap:break-word}.rich-body:empty:before{content:attr(data-placeholder);color:var(--text-2)}.note .body.rich h1,.rich-body h1{font-size:1.35rem;font-weight:500;margin:.15em 0}.note .body.rich h2,.rich-body h2{font-size:1.12rem;font-weight:500;margin:.15em 0}.note .body.rich p,.rich-body p{margin:0 0 .35em}.note .body.rich{white-space:normal}.find-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}.find-row input{flex:1 1;font-size:13px;padding:4px 0}.find-hit{background:#fff3a0}[data-theme=dark] .find-hit{background:#6b5a12}::highlight(note-find){background-color:#fff3a0;color:currentColor}.check-edit{display:flex;align-items:center;gap:4px}.check-handle{cursor:-webkit-grab;cursor:grab;color:var(--text-2);-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:12px;padding:0 2px}.check-divider{display:block;width:100%;text-align:left;color:var(--text-2);font-size:13px;border-top:1px solid var(--divider);margin-top:8px;padding-top:8px}.draw-canvas{width:100%;height:auto;background:#fff;border:1px solid var(--border);border-radius:8px;touch-action:none;cursor:crosshair}.draw-tools{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin-bottom:8px}.draw-tools button.on{background:var(--hover);border-radius:4px}.draw-tools .swatch{width:24px;height:24px}.audio-clip{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}.audio-clip audio{max-width:100%;height:32px}.hint{font-size:12px;color:var(--text-2)}.record-unsupported{margin:4px 0 0;flex:1 0 100%}.composer .placeholder-row{flex-wrap:wrap}.settings-modal h2{font-size:18px;font-weight:500;margin:0 0 8px}.settings-row{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:14px}.time-row{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:8px}.time-row label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--text-2)}.label-create input,.label-list input,.reminder-when input,.time-row input{border:1px solid var(--border);border-radius:4px;padding:4px 6px;color:var(--text)}.label-create{display:flex;gap:8px;align-items:center}.label-create input{flex:1 1}.label-list{list-style:none;margin:12px 0;padding:0}.label-list li{display:flex;gap:6px;align-items:center;margin-bottom:8px}.label-list input{flex:1 1}.shortcut-list{list-style:none;margin:0;padding:0}.shortcut-list li{display:flex;justify-content:space-between;gap:16px;padding:6px 0;border-bottom:1px solid var(--divider);font-size:14px}.shortcut-list kbd{font-family:inherit;color:var(--text-2)}.history-pop{min-width:260px;max-height:280px;overflow:auto}.history-row{display:flex;justify-content:space-between;gap:8px;padding:6px 12px;align-items:center}.reminder-menu button.danger{color:#d93025}[data-theme=dark] .reminder-menu button.danger{color:#f28b82}.reminder-when{display:flex;flex-direction:column;gap:4px;padding:8px 16px;font-size:12px;color:var(--text-2)}.repeat-row{display:flex;flex-wrap:wrap;gap:4px;padding:0 12px 8px}.rec-dot{width:10px;height:10px;border-radius:50%;background:#d93025;display:inline-block}.popover.reminder-pop{padding-bottom:8px;max-height:70vh;overflow:auto}.popover .history-row button,.popover .repeat-row button{display:inline-flex;width:auto}.journal-review{max-height:calc(100vh - 120px);overflow:auto}.journal-review h2{font-size:18px;font-weight:500;margin:0 0 8px}.journal-review-note{margin:12px 0}.journal-review-head{margin:0}.journal-review-item{margin:4px 0}.journal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.merge-dialog{max-height:calc(100vh - 120px);overflow:auto}.merge-dialog h2{font-size:18px;font-weight:500;margin:0 0 8px}.merge-sources{list-style:none;margin:12px 0;padding:0;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.merge-source{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--divider);font-size:14px}.merge-source:last-child{border-bottom:0}.merge-source-title{flex:1 1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.merge-target{border:0;margin:12px 0;padding:0}.merge-target legend{font-size:13px;color:var(--text-2);padding:0;margin-bottom:4px}.merge-title{margin:0 0 4px 28px;border:1px solid var(--border);border-radius:4px;padding:6px 8px;color:var(--text);background:var(--surface);font:inherit}.merge-refusal{color:var(--danger,#b3261e);font-size:14px;margin:8px 0 0}[data-theme=dark] .merge-refusal{color:#f2b8b5}.merge-title::placeholder{color:var(--text-2);opacity:1}.label-page{max-width:720px;margin:0 auto 20px;padding:0 4px}.label-page-head{display:flex;align-items:center;gap:12px;margin-bottom:8px}.label-page-templates{list-style:none;margin:0;padding:0;border:1px solid var(--border);border-radius:8px;background:var(--surface);max-height:40vh;overflow-y:auto}.label-page-templates li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-bottom:1px solid var(--divider);font-size:14px}.label-page-templates li:last-child{border-bottom:0}@media (max-width:600px){:root{--phone-bg:#ffffff;--phone-pill:#f1f3f4;--phone-icon:#5f6368;--phone-fab:#eaddff;--phone-fab-on:#21005d;--phone-muted:#5f6368;--note-muted:#3c4043;--warn:#b06000;--bad:#d93025;--dot-off:#80868b;--header-h:72px;--ease:cubic-bezier(0,0,0.2,1)}[data-theme=dark]{--phone-bg:#1c181f;--phone-pill:#302a33;--phone-icon:#99919b;--phone-fab:#5f4a6e;--phone-fab-on:#f2dbff;--phone-muted:#9aa0a6;--note-muted:#dadce0;--warn:#e37400;--bad:#f28b82;--dot-off:#9aa0a6;--bg:var(--phone-bg);--surface:var(--phone-bg);--header:var(--phone-bg)}.ptr{position:fixed;top:0;left:50%;margin-top:-40px;z-index:30;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--surface,#fff);color:var(--accent,#1a73e8);box-shadow:0 1px 4px rgba(0,0,0,.3);pointer-events:none}.ptr svg{transition:transform .15s}.ptr-spin{animation:ptr-spin .8s linear infinite}@keyframes ptr-spin{to{transform:rotate(1turn)}}body,html{-webkit-tap-highlight-color:transparent;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}.icon-btn,.popover button,.rail-item,.text-btn{transition:background .25s var(--ease),transform .25s var(--ease)}.icon-btn:hover,.popover button:hover,.rail-item:hover,.text-btn:hover{background:none}.icon-btn:active,.popover button:active,.rail-item:active,.text-btn:active{background:var(--hover)}.rail-item.active:active{background:var(--rail-active)}.icon-btn{width:48px;height:48px}.header.phone-header{height:auto;background:transparent;border-bottom:0;pointer-events:none;flex-wrap:nowrap;align-items:center;gap:4px;padding:calc(8px + var(--safe-top)) 8px 8px 4px}.phone-header>*{pointer-events:auto}.phone-header .icon-btn{color:var(--phone-icon)}.header.phone-header .search-wrap{flex:1 1 auto;min-width:0;max-width:none;margin:0}.header.phone-header .search-wrap .searchbar{height:56px;min-height:56px;border-radius:28px;background:var(--phone-pill);box-shadow:none;padding:0 4px 0 20px;margin:0;gap:4px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.header.phone-header .searchbar:focus-within{background:var(--phone-pill);box-shadow:none}.phone-header .searchbar .search-icon{display:none}.header.phone-header .searchbar input{font-size:16px;min-width:0}.phone-header .searchbar input::placeholder{color:var(--phone-icon);opacity:1}.header.phone-header .search-panel,.header.phone-header .search-wrap .search-panel{border-radius:16px;max-height:min(360px,calc(100vh - 96px - var(--safe-top)));max-height:min(360px,calc(100dvh - 96px - var(--safe-top)))}.avatar-slot{position:relative;flex:0 0 48px;width:48px;height:48px;display:flex;align-items:center;justify-content:center}.avatar-slot button[aria-label="Your account"]{width:48px;height:48px;display:grid;place-items:center}.sync-dot{position:absolute;right:7px;bottom:8px;width:12px;height:12px;border-radius:50%;border:2px solid var(--phone-bg);pointer-events:none;background:var(--dot-off)}.sync-dot[data-tone=offline]{background:var(--bad)}.sync-dot[data-tone=syncing]{background:var(--accent)}.sync-dot[data-tone=pending]{background:var(--warn)}.main,.main.rail-pinned{padding:calc(80px + var(--safe-top)) 8px calc(136px + env(safe-area-inset-bottom, 0px)) 8px}.header~.main{padding-top:calc(80px + var(--safe-top))}.grid{column-count:2;column-gap:8px;margin-bottom:24px}.grid.phone-cols{display:flex;align-items:flex-start;gap:8px;columns:auto}.grid-col{flex:1 1;min-width:0}.grid.list-view{column-count:1;max-width:none}.section-label{font-size:11px;font-weight:500;letter-spacing:.8px;text-transform:uppercase;color:var(--phone-muted);margin:4px 0 8px 8px}.note{margin:0 0 8px;padding:12px 16px;border-radius:12px;box-shadow:none;transition:transform .25s var(--ease),opacity .25s var(--ease);-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-touch-callout:none}.note a{-webkit-touch-callout:default;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.note:hover{box-shadow:none}.note:active{transform:scale(.98)}.note{overflow:hidden;min-width:0}.chip,.note .body,.note .check-row span,.note h3,a.chip{min-width:0;overflow-wrap:anywhere;word-break:break-word}.note .pin~h3{padding-right:28px}.chip,a.chip{display:block;max-width:100%;white-space:normal}.note h3{font-family:Google Sans,Product Sans,Roboto,-apple-system,Segoe UI,Arial,sans-serif;font-size:16px;font-weight:500;line-height:1.3;margin:0 0 8px}.note .body{font-size:14px;line-height:1.4}.note .pin{top:0;right:0}.note .pin.on{opacity:1}.note-actions,.note:hover .note-actions{display:none}.note.trashed .note-actions,.note.trashed:hover .note-actions{display:flex;opacity:1}.note-actions .icon-btn{width:48px;height:48px}.check-row{gap:8px;font-size:14px;line-height:1.4;padding:2px 0;align-items:center}.check-row svg{width:18px;height:18px;flex:0 0 auto}.chips{gap:6px;margin-top:8px}.chip{font-size:12px;padding:3px 8px;border-radius:12px}.check-row.done,.chip,.ed-bottom .edited,.editor-modal .check-handle,.editor-modal .hint,.editor-modal .icon-btn,.modal-footer .edited,.note .icon-btn{color:var(--note-muted)}.editor-modal ::placeholder{color:var(--note-muted);opacity:1}.note.selected{outline-width:3px}.note.selected.kb{box-shadow:inset 0 0 0 2px var(--accent)}.empty{padding:96px 24px}.empty p{font-size:22px;color:var(--text)}.selbar{padding:calc(8px + var(--safe-top)) 4px 8px;gap:0;overflow-x:auto}.selbar .icon-btn{flex:0 0 48px;width:48px;min-width:48px;height:48px}.selbar .count{flex:1 1;min-width:2ch;margin-left:8px;font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fab-box{position:fixed;right:16px;bottom:calc(40px + env(safe-area-inset-bottom, 0px));z-index:25;display:flex;flex-direction:column;align-items:flex-end;gap:16px}.fab-scrim{position:fixed;inset:0;z-index:-1;background:var(--scrim);animation:phone-fade .25s var(--ease)}.fab{width:80px;height:80px;border-radius:20px;display:grid;place-items:center;background:var(--phone-fab);color:var(--phone-fab-on);box-shadow:0 1px 3px rgba(0,0,0,.3),0 4px 8px 3px rgba(0,0,0,.15);transition:transform .25s var(--ease),box-shadow .25s var(--ease)}.fab:active{transform:scale(.92);box-shadow:0 1px 2px rgba(0,0,0,.3)}.fab-dial{display:flex;flex-direction:column;align-items:flex-end;gap:12px;max-height:calc(100vh - 80px - 40px - 16px - 16px - var(--safe-top));max-height:calc(100dvh - 80px - 40px - 16px - 16px - var(--safe-top));overflow-y:auto;overscroll-behavior:contain;padding:4px 0}.fab-dial[hidden]{display:none}.fab-item{display:flex;align-items:center;gap:12px;animation:phone-rise .25s var(--ease) both}.fab-label{background:var(--phone-pill);color:var(--text);font-size:14px;font-weight:500;padding:8px 12px;border-radius:8px;box-shadow:var(--shadow-1)}.fab-item .icon-btn{width:56px;height:56px;border-radius:16px;background:var(--phone-fab);color:var(--phone-fab-on);box-shadow:var(--shadow-1)}.fab-item .icon-btn:active{transform:scale(.92)}.fab-item .record-unsupported{display:none}.header~.rail,.rail,.rail:hover{top:0;bottom:0;width:min(304px,85vw);padding-top:var(--safe-top);z-index:50;transform:translateX(-100%);visibility:hidden;box-shadow:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;transition:transform .25s var(--ease),visibility 0s linear .25s}.rail.pinned{width:min(304px,85vw);transform:none;visibility:visible;box-shadow:var(--shadow-2);transition:transform .25s var(--ease),visibility 0s}.rail .rail-item{width:calc(100% - 12px);height:56px}.rail .rail-item .label{opacity:1}.drawer-head{display:flex;align-items:center;gap:12px;height:64px;padding:0 24px;font-size:22px;color:var(--text-2)}.drawer-head img{border-radius:6px}.drawer-scrim{position:fixed;inset:0;z-index:45;background:var(--scrim);animation:phone-fade .25s var(--ease)}.drawer-sync{display:flex;align-items:center;gap:4px;padding:4px 8px 4px 24px;border-top:1px solid var(--divider);margin-top:8px;flex-wrap:wrap}.drawer-sync-text{flex:1 0 100%;padding-top:8px;font-size:14px;color:var(--text-2)}.drawer-sync[data-tone=pending] .drawer-sync-text{color:var(--warn)}.drawer-sync[data-tone=offline] .drawer-sync-text{color:var(--bad)}.drawer-sync .sync-pill{min-height:48px;padding:0 12px;font-size:14px;color:var(--accent);font-weight:500}.scrim.editor-scrim{padding:0;align-items:stretch;background:var(--phone-bg);overflow:hidden}.editor-modal{max-width:none;min-height:100vh;min-height:100dvh;border:0;border-radius:0;box-shadow:none;padding:calc(8px + var(--safe-top)) 16px 16px}.editor-modal.phone-ed{position:fixed;left:0;right:0;top:var(--vv-top,0);height:var(--vv-h,100vh);height:var(--vv-h,100dvh);min-height:0;padding:0;display:flex;flex-direction:column;overflow:hidden;transition:height .15s var(--ease)}.phone-ed[data-closing=true]{pointer-events:none}.ed-top{flex:0 0 auto;display:flex;align-items:center;height:calc(56px + var(--safe-top));padding:var(--safe-top) 4px 0}.ed-scroll,.ed-top-gap{flex:1 1 auto}.ed-scroll{min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:0 16px 16px;-webkit-overflow-scrolling:touch}.ed-bottom{flex:0 0 auto;display:flex;align-items:center;height:calc(56px + env(safe-area-inset-bottom, 0px));padding:0 4px env(safe-area-inset-bottom,0)}.phone-ed[data-keyboard=true] .ed-bottom{height:56px;padding-bottom:0}@media (max-height:420px){.phone-ed[data-keyboard=true] .ed-top{display:none}}.ed-bottom .edited{flex:1 1 auto;min-width:0;padding:0 4px;text-align:center;font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width:420px){.ed-bottom[data-undo=true] .edited{font-size:0}}.ed-format{flex:0 0 auto;display:flex;height:48px;padding:0 4px;border-top:1px solid var(--divider)}.ed-format button{flex:0 0 auto;min-width:48px;height:48px;padding:0 8px;font-size:16px;color:var(--note-muted)}.ed-format button[aria-label=Bold]{font-weight:700}.ed-format button[aria-label=Italic]{font-style:italic}.ed-format button[aria-label=Underline]{text-decoration:underline}.ed-format button:active{background:var(--hover)}.ed-rec{flex:0 0 auto;display:flex;align-items:center;gap:12px;min-height:48px;padding:0 16px;font-size:14px;color:var(--note-muted);border-top:1px solid var(--divider)}.ed-rec .text-btn{margin-left:auto;min-height:48px;padding:0 12px;color:var(--text)}.editor-modal input.title{font-family:Google Sans,Product Sans,Roboto,-apple-system,Segoe UI,Arial,sans-serif;font-size:22px;font-weight:500;line-height:1.3;padding:8px 0}.editor-modal .rich-body,.editor-modal textarea.body{font-size:16px;line-height:1.5}.phone-ed .rich-body{min-height:160px;padding-bottom:24px}.phone-ed .find-row{min-height:48px}.phone-ed .find-row input{font-size:16px}.phone-ed .note-images{margin:0 -16px 8px}.phone-ed .chips{margin-top:8px}.phone-ed .check-edit{gap:0;min-height:48px}.phone-ed .check-handle{display:inline-flex;align-items:center;justify-content:center;width:24px;height:48px;padding:0;margin-left:-4px}.phone-ed .check-edit textarea{flex:1 1 auto;min-width:0;padding:12px 0;font-size:16px;line-height:24px;field-sizing:content;overflow-wrap:anywhere}.phone-ed .check-item:not(:focus-within) .row-more,.phone-ed .check-item:not(:focus-within) .row-x{display:none}.phone-ed .check-menu{display:flex;flex-wrap:wrap;gap:0 8px;padding:0 0 4px 48px}.phone-ed .check-menu button{min-height:48px;padding:0 12px;font-size:14px;color:var(--note-muted)}.phone-ed .check-menu button:disabled{opacity:.38}.phone-ed .check-add{gap:16px;width:100%;padding-left:20px;font-size:16px;text-align:left}.phone-ed .check-add,.phone-ed .check-divider.completed{display:flex;align-items:center;min-height:48px;color:var(--note-muted)}.phone-ed .check-divider.completed{gap:8px;margin-top:0;padding:0 0 0 16px;border-top:0;font-size:14px}.add-pop button{display:flex;align-items:center;gap:16px}@media (prefers-reduced-motion:reduce){.editor-modal.phone-ed{transition:none}}.editor-modal[data-default=true],.note[data-default=true]{background-color:var(--phone-bg)!important}.composer-wrap[hidden]{display:none}.snackbar{left:8px;right:8px;bottom:calc(24px + env(safe-area-inset-bottom, 0px));min-width:0}.popover button{min-height:48px}.editor-modal .palette[role=dialog],.palette-pop,.popover,.sheet{position:fixed!important;top:auto!important;left:8px!important;right:8px!important;bottom:calc(8px + env(safe-area-inset-bottom, 0px))!important;width:auto;min-width:0;max-width:none;max-height:calc(100vh - 72px - var(--safe-top) - env(safe-area-inset-bottom, 0px));max-height:calc(100dvh - 72px - var(--safe-top) - env(safe-area-inset-bottom, 0px));overflow-y:auto;overscroll-behavior:contain;border-radius:16px;z-index:60!important;transform:none!important;outline:none}.sheet .text-btn{min-height:48px}.sheet-scrim{position:fixed;inset:0;z-index:59;background:var(--scrim);animation:phone-fade .25s var(--ease)}.sheet-footer{padding:0 8px 8px;position:-webkit-sticky;position:sticky;bottom:-6px;margin-top:4px;background:var(--surface);border-top:1px solid var(--divider)}.popover .sheet-done,.sheet-done{display:block;width:100%;min-height:48px;text-align:center;font-size:14px;font-weight:500;color:var(--accent)}[role=dialog][aria-label="Your account"]{max-height:calc(100vh - 72px - var(--safe-top));max-height:calc(100dvh - 72px - var(--safe-top));overflow-y:auto}}@media (max-width:600px) and (max-height:520px){.fab-box{bottom:calc(16px + env(safe-area-inset-bottom, 0px))}.fab{width:56px;height:56px;border-radius:16px}.fab-dial{flex-direction:row;flex-wrap:wrap;justify-content:flex-end;max-width:calc(100vw - 32px);max-height:calc(100vh - 56px - 16px - 16px - 16px);max-height:calc(100dvh - 56px - 16px - 16px - 16px)}.fab-label{display:none}}@keyframes phone-fade{0%{opacity:0}to{opacity:1}}@keyframes phone-rise{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.drawer-scrim,.fab-item,.fab-scrim{animation:none}}@media (max-width:600px){.text-btn{min-height:48px;min-width:48px;padding-left:12px;padding-right:12px}.editor-modal a.chip,.editor-modal button.chip,.mini-chip,.note a.chip{box-sizing:border-box;min-height:48px;min-width:48px;border:solid transparent;border-width:11px 0;border-radius:13px/24px;background-clip:padding-box;display:inline-flex;align-items:center;justify-content:center}.mini-chip{box-shadow:inset 0 0 0 1px var(--border)}.mini-chip.on,.mini-chip[aria-pressed=true]{box-shadow:none}.chips{align-items:center}.chip-split{display:inline-flex;gap:0}.editor-modal button.chip.chip-body{border-radius:13px 0 0 13px/24px 0 0 24px;padding-right:2px}.editor-modal button.chip.chip-x{border-radius:0 13px 13px 0/0 24px 24px 0;padding-left:2px;padding-right:8px}.draw-tools .swatch,.palette .swatch,.palette-pop .swatch,.search-panel .swatch,.swatch{width:48px;height:48px}.swatches{grid-template-columns:repeat(auto-fill,48px)}.draw-tools button{min-width:48px;min-height:48px}.composer label,.modal label{min-height:48px;display:flex;align-items:center;gap:8px}.snackbar{min-height:48px;padding:0 8px 0 16px}.snackbar button{min-height:48px;min-width:48px;padding:0 12px}.rail-account{min-height:48px;display:flex;flex-direction:column;justify-content:center}.sheet{background:var(--surface)}.chip,a.chip{color:var(--text);background:rgba(0,0,0,.08)}[data-theme=dark] .chip,[data-theme=dark] a.chip{background:rgba(0,0,0,.28)}.ed-rec .text-btn{color:var(--text);font-weight:700;text-decoration:underline}.phone-ed .check-edit textarea.done{color:var(--note-muted);opacity:1!important}}.palette .swatch.on,.palette-pop .swatch.on,.search-panel .swatch.on,.swatches .swatch.on{border-color:var(--text)}.check-handle{touch-action:none}.check-edit.dragging,.check-item.dragging{opacity:1;background:var(--bg);border-radius:8px;box-shadow:0 4px 14px rgba(0,0,0,.28)}.check-edit.drag-over,.check-item.drag-over{box-shadow:none}.phone-ed .check-item .check-edit,.phone-ed .check-item textarea{touch-action:pan-y}.phone-ed .check-ghost{display:flex;align-items:center;gap:8px;min-height:40px;color:var(--note-muted);pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.phone-ed .check-ghost .check-handle{visibility:hidden;width:24px}.ed-fieldset{border:0;padding:0;margin:0;min-width:0}.ed-fieldset:disabled{opacity:.85}