@layer reset,base,layout,components,dialog,responsive;
@layer reset{*{box-sizing:border-box}html,body{margin:0;height:100%}button,input,textarea,select{font:inherit}button{cursor:pointer}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{color:inherit}a{color:inherit;text-decoration:none}button{border:0;background:none}svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}button:disabled{cursor:not-allowed;opacity:.46}[hidden]{display:none!important}input[type=color]{padding:0;border:0;background:none;cursor:pointer}input[type=checkbox]{accent-color:var(--accent)}::selection{background:#b9a0ed65}}
@layer base{
 :root{--page:#f8f8fa;--sidebar:#f0f0f4;--surface:#fff;--surface-alt:#f5f4f8;--field:#f0eff4;--text:#25252e;--muted:#8a8896;--secondary:#666371;--line:#e5e3ec;--accent:#8257ce;--accent-light:#eee6fb;--accent-text:#7146bd;--shadow:0 24px 80px #27203718,0 2px 8px #30244508;--border-shadow:inset 0 0 0 1px #fff9;--radius:18px;color-scheme:light;font-family:Inter,'Segoe UI Variable','Segoe UI','Malgun Gothic',sans-serif;font-size:14px;letter-spacing:-.2px;font-synthesis:none}
 :root[data-theme=dark]{--page:#191a20;--sidebar:#202127;--surface:#27282f;--surface-alt:#2d2d36;--field:#33343e;--text:#eeeeF4;--muted:#92909f;--secondary:#b1aebd;--line:#3b3a46;--accent:#b391ed;--accent-light:#3b2e50;--accent-text:#d0b4ff;--shadow:0 24px 80px #0007,0 2px 8px #0003;--border-shadow:inset 0 0 0 1px #ffffff08;color-scheme:dark}
 :root[data-theme=glass],:root[data-theme=custom]{--page:#f4f0fa;--sidebar:#e9e1f1b8;--surface:#ffffffd9;--surface-alt:#f5f0fb;--field:#eae2f1;--text:#30293c;--muted:#9b8ea8;--secondary:#796b86;--line:#d9cee580;--accent:#9068c5;--accent-light:#e6d9f6;--accent-text:#7953aa;--shadow:0 28px 90px #57366f25,0 2px 8px #57366f0b;--border-shadow:inset 0 0 0 1px #fff9}
 :root[data-theme=custom]{--page:var(--custom-page,#f4f0fa);--sidebar:var(--custom-sidebar,#e9e1f1b8);--accent:var(--custom-accent,#9068c5);--accent-light:var(--custom-accent-light,#e6d9f6);--accent-text:var(--custom-accent-text,#7953aa)}
 body{background:var(--page);color:var(--text);overflow:hidden}body:has(dialog[open]){overflow:hidden}button:focus-visible,a:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 60%,transparent);outline-offset:3px}input:focus,textarea:focus,select:focus{outline:none}input:focus-visible,textarea:focus-visible,select:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 20%,transparent)}
 ::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted) 28%,transparent);border:2px solid transparent;background-clip:padding-box;border-radius:20px}::-webkit-scrollbar-track{background:transparent}h1,h2,h3,p{margin:0}kbd{font-family:inherit;font-size:10px;letter-spacing:0;color:var(--muted)}button span[data-icon]{display:inline-flex}input,textarea,select{color:var(--text)}
}
@layer layout{
 .app-shell{height:100dvh;display:grid;grid-template-columns:224px 1fr}.sidebar{background:var(--sidebar);padding:29px 16px 16px;display:flex;flex-direction:column;min-height:0;border-right:1px solid color-mix(in srgb,var(--line) 60%,transparent)}.brand{display:flex;align-items:center;gap:9px;font-size:18px;font-weight:650;letter-spacing:-.7px;padding:0 9px;margin-bottom:33px}.brand svg{width:30px;height:30px;color:var(--accent);stroke-width:1.8}.brand-light{font-weight:400;color:var(--secondary)}.workspace{min-width:0;overflow:auto;position:relative;padding:0 42px}.workspace-top{height:88px;display:flex;align-items:center;justify-content:space-between;gap:18px;position:sticky;top:0;z-index:8;background:color-mix(in srgb,var(--page) 91%,transparent);backdrop-filter:blur(20px)}.search-wrap{display:flex;align-items:center;gap:11px;color:var(--muted);width:340px;max-width:calc(100% - 70px)}.search-wrap svg{width:18px;height:18px}.search-wrap input{border:0;background:transparent;padding:11px 0;width:100%;font-size:13px;min-width:0}.search-wrap input::placeholder{color:var(--muted)}.search-wrap kbd{white-space:nowrap;padding:3px 6px;border:1px solid var(--line);border-radius:5px}.header-actions{display:flex;gap:8px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:22px 0 34px;gap:20px}.eyebrow{font-size:10px;font-weight:600;color:var(--muted);letter-spacing:1.6px;margin-bottom:10px}.page-heading h1{font-size:29px;letter-spacing:-1.3px;font-weight:630;line-height:1.35}.page-count{font-size:12px;color:var(--muted);padding-bottom:6px}.note-section{margin:0 0 34px}.section-label{font-size:11px;font-weight:500;letter-spacing:.2px;color:var(--muted);display:flex;align-items:center;gap:6px;margin:0 0 13px 2px}.section-label svg{width:12px;height:12px}.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:18px;align-items:start}.workspace-footer{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);padding:12px 0 24px;min-height:45px}.workspace-footer>span:last-child{display:flex;align-items:center;gap:5px}.workspace-footer i{width:5px;height:5px;border-radius:50%;background:#c99557}.empty-state{min-height:49vh;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:32px}.empty-art{width:115px;height:125px;position:relative;margin-bottom:19px;display:grid;place-items:center}.empty-art>span{display:grid;place-items:center;position:relative;z-index:2;width:73px;height:88px;background:var(--surface);border:1px solid var(--line);box-shadow:0 10px 28px #30244507;border-radius:14px;transform:rotate(-6deg);color:var(--accent)}.empty-art svg{width:33px;height:33px;stroke-width:1.2}.empty-art i{position:absolute;width:66px;height:80px;border-radius:13px;background:var(--accent-light);transform:rotate(12deg);left:41px;top:27px;opacity:.65}.empty-art i:last-child{width:7px;height:7px;left:2px;top:20px;border-radius:50%;background:var(--accent);opacity:.35}.empty-state h2{font-size:20px;font-weight:550;letter-spacing:-.7px;margin-bottom:10px}.empty-state p{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:25px}.empty-state .button{padding:10px 18px;font-size:12px}.sidebar-bottom{margin-top:auto;padding-top:20px}.sidebar-label-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 12px 5px;color:var(--muted);font-size:11px}.label-nav{overflow:auto;max-height:36vh}.artigo-link{display:flex;align-items:center;gap:4px;color:var(--muted);font-size:10px;margin:13px 12px 0;opacity:.75;width:max-content}.artigo-link svg{width:11px;height:11px}.artigo-link:hover{color:var(--accent);opacity:1}.mobile-toggle,.mobile-new{display:none}
 :root[data-theme=glass] .sidebar,:root[data-theme=custom] .sidebar{backdrop-filter:blur(36px) saturate(125%)}:root[data-theme=glass] .workspace,:root[data-theme=custom] .workspace{background-image:radial-gradient(at 90% 0,#e3d4f24a,transparent 55%),radial-gradient(at 0 90%,#e8dcef50,transparent 45%)}
}
@layer components{
 .icon-button{display:inline-flex;align-items:center;justify-content:center;position:relative;gap:6px;min-width:34px;height:34px;border-radius:10px;color:var(--secondary);transition:background .15s,color .15s}.icon-button svg{width:18px;height:18px}.icon-button:hover{background:var(--field);color:var(--text)}.icon-button.active{background:var(--accent-light);color:var(--accent-text)}.icon-button.subtle{min-width:28px;height:28px}.icon-button.subtle svg{width:14px;height:14px}.icon-button.danger:hover{color:#bd515e;background:#e46b7510}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:9px 16px;border-radius:11px;background:var(--field);font-size:12px;font-weight:550;white-space:nowrap;transition:filter .15s,transform .15s}.button svg{width:16px;height:16px}.button:hover{filter:brightness(.97)}.button:active{transform:scale(.98)}.button.primary{background:var(--accent);color:#fff}.button.secondary{background:var(--accent-light);color:var(--accent-text)}.button.ghost{background:transparent;color:var(--secondary)}.button.danger{background:#c34d5e;color:#fff}.button.full{width:100%}.new-note{display:flex;align-items:center;gap:9px;width:100%;padding:12px;border-radius:12px;background:var(--surface);box-shadow:0 2px 8px #231a3705;color:var(--accent-text);font-weight:550;font-size:13px;margin-bottom:21px}.new-note svg{width:18px;height:18px}.new-note kbd{margin-left:auto;font-size:9px;opacity:.75}.new-note:hover{box-shadow:0 4px 15px #231a3710}.nav-item{width:100%;display:flex;align-items:center;gap:11px;min-height:39px;padding:10px 12px;margin:2px 0;border-radius:10px;font-size:12px;color:var(--secondary);text-align:left;transition:background .15s}.nav-item svg{width:17px;height:17px}.nav-item:hover{background:color-mix(in srgb,var(--surface) 60%,transparent)}.nav-item.active{background:var(--accent-light);color:var(--accent-text);font-weight:600}.nav-item small{font-weight:500;margin-left:auto;color:var(--muted);font-size:10px}.nav-item[data-view=reminders] small{background:var(--accent);border-radius:6px;min-width:18px;line-height:18px;text-align:center;color:white;padding:0 4px}.label-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;margin:0 4px}.label-add{color:var(--muted);font-size:11px}.label-add svg{width:14px;height:14px}.account-row{display:flex;gap:9px;padding:14px 10px 0;margin:12px 0 0;border-top:1px solid var(--line);width:100%;text-align:left;align-items:center}.avatar{height:31px;width:31px;flex-shrink:0;background:var(--surface);border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;color:var(--accent)}.avatar svg{width:15px;height:15px}.account-copy{min-width:0}.account-copy strong{font-size:11px;font-weight:550;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:131px}.account-copy small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.account-row>span:last-child{margin-left:auto;color:var(--muted)}.account-row>span:last-child svg{width:13px;height:13px}.note-card{background:var(--note-color,#fff);color:var(--note-ink,#35313d);border-radius:var(--radius);padding:20px 19px 14px;position:relative;box-shadow:inset 0 0 0 1px #1f193207,0 2px 3px #231a3702;transition:transform .18s,box-shadow .18s;overflow:hidden;cursor:pointer;min-height:170px;outline-offset:4px}.note-card:hover{transform:translateY(-3px);box-shadow:inset 0 0 0 1px #1f193209,0 10px 24px #3024450c}.note-card h3{font-size:15px;line-height:1.55;letter-spacing:-.4px;font-weight:650;word-break:break-word;margin:0 15px 10px 0;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.note-card .card-body{font-size:12px;line-height:1.85;white-space:pre-wrap;word-break:break-word;max-height:155px;overflow:hidden;opacity:.84;display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical}.card-image{width:calc(100% + 38px);max-height:170px;object-fit:cover;margin:-20px -19px 16px;display:block}.card-video{background:#332d4080;height:125px;width:calc(100% + 38px);margin:-20px -19px 15px;display:flex;align-items:center;justify-content:center;color:#fff;position:relative;overflow:hidden}.card-video video{width:100%;height:100%;object-fit:cover;opacity:.75}.card-video>svg{position:absolute;width:34px;height:34px;fill:#fff;stroke-width:0}.card-pin{position:absolute;top:15px;right:13px;color:currentColor;opacity:.45}.card-pin svg{width:13px;height:13px}.card-labels{display:flex;gap:5px;flex-wrap:wrap;margin-top:14px}.card-label{font-size:9px;padding:3px 7px;border-radius:5px;background:#ffffff60;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-footer{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:20px;color:inherit;font-size:9px;opacity:.55;min-height:23px}.card-footer .card-actions{display:flex;gap:0;opacity:0;transition:opacity .15s}.note-card:hover .card-actions,.note-card:focus-within .card-actions{opacity:1}.card-actions .icon-button{min-width:25px;height:25px;color:inherit;border-radius:7px}.card-actions svg{width:13px;height:13px}.card-actions .icon-button:hover{background:#ffffff60}.reminder-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 7px;margin-top:13px;background:#ffffff70;border-radius:6px;font-size:9px;width:max-content;max-width:100%}.reminder-chip svg{width:11px;height:11px}.reminder-chip.unread{font-weight:650;background:#ffffffac}.unread-dot{position:absolute;right:15px;bottom:16px;width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px #fff8}.card-checklist{display:flex;flex-direction:column;gap:8px;font-size:12px;line-height:1.5;margin-top:5px}.card-check{display:flex;align-items:flex-start;gap:8px}.card-check>i{height:13px;width:13px;border:1px solid currentColor;border-radius:4px;opacity:.4;margin-top:2px;flex-shrink:0}.card-check.checked{opacity:.45;text-decoration:line-through}.card-check.checked>i{background:currentColor}.card-check-more{opacity:.5;font-size:10px;margin-top:8px}.note-card.locked{min-height:200px}.lock-blur{pointer-events:none;filter:blur(5px);user-select:none;opacity:.14;font-size:15px;line-height:2;letter-spacing:1px;max-height:110px;overflow:hidden}.lock-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:10px;flex-direction:column;padding-bottom:17px;font-size:12px;pointer-events:none}.lock-cover span:first-child{display:grid;place-items:center;width:39px;height:39px;border-radius:13px;background:#ffffff55}.lock-cover svg{width:20px;height:20px}.lock-cover small{font-size:9px;opacity:.5}.note-card.locked .card-footer{margin-top:10px;position:relative;z-index:1}.notes-grid.list{grid-template-columns:1fr;gap:10px}.notes-grid.list .note-card{min-height:94px;padding:18px 22px;display:grid;grid-template-columns:1fr 100px;column-gap:24px}.notes-grid.list .note-card h3{font-size:14px;grid-column:1}.notes-grid.list .card-body{-webkit-line-clamp:1;max-height:25px;grid-column:1}.notes-grid.list .card-footer{grid-column:2;grid-row:1/4;flex-direction:column;align-items:flex-end;justify-content:space-around;margin:0}.notes-grid.list .card-image,.notes-grid.list .card-video,.notes-grid.list .card-labels,.notes-grid.list .card-checklist,.notes-grid.list .reminder-chip{display:none}.notes-grid.list .card-pin{top:16px;right:125px}.notes-grid.list .locked .lock-blur{display:none}.notes-grid.list .locked .lock-cover{position:static;grid-column:1;flex-direction:row;justify-content:flex-start;padding:0}.notes-grid.list .locked .lock-cover small{display:none}.notice{padding:12px 15px;background:#e2b36622;color:var(--text);border:1px solid #e2b36644;border-radius:11px;margin-bottom:20px;font-size:12px;line-height:1.6}.toast-stack{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;z-index:1000;max-width:calc(100vw - 30px);pointer-events:none}.toast{background:var(--text);color:var(--surface);font-size:12px;padding:12px 17px;border-radius:12px;box-shadow:0 6px 25px #0002;display:flex;align-items:center;gap:14px;animation:toast-in .2s ease;pointer-events:auto;line-height:1.5}.toast button{color:#d8bcff;font-size:11px;font-weight:600;white-space:nowrap}.loading{position:fixed;inset:0;background:var(--page);display:grid;place-items:center;z-index:100}.loading svg{width:46px;height:46px;stroke:var(--accent);stroke-width:1.6;animation:breathe 1.3s ease-in-out infinite}@keyframes breathe{50%{opacity:.35;transform:scale(.92)}}@keyframes toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
}
@layer dialog{
 dialog{border:1px solid color-mix(in srgb,var(--line) 80%,transparent);background:var(--surface);color:var(--text);border-radius:22px;padding:0;box-shadow:var(--shadow);max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);overflow:hidden;width:460px;backdrop-filter:blur(36px)}dialog::backdrop{background:#1b172139;backdrop-filter:blur(4px)}dialog[open]{animation:dialog-in .18s ease}@keyframes dialog-in{from{opacity:.3;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px 24px 16px}.dialog-heading h2{font-size:17px;letter-spacing:-.5px;font-weight:600}.dialog-heading .heading-icon{color:var(--accent);display:flex;gap:10px;align-items:center}.dialog-heading .heading-icon svg{width:20px;height:20px}.dialog-body{padding:0 24px 24px;overflow:auto;max-height:calc(100dvh - 185px)}.dialog-copy{font-size:12px;color:var(--secondary);line-height:1.8;margin-bottom:20px}.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:17px 24px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--surface-alt) 60%,transparent)}.dialog-actions .left{margin-right:auto}.field{display:flex;flex-direction:column;gap:8px;margin:17px 0}.field>span,.field-label{font-size:11px;color:var(--secondary);font-weight:500}.field input:not([type=color]),.field select,.text-input{padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--field);font-size:13px;min-width:0}.field select{appearance:auto}.field input::placeholder,.text-input::placeholder{color:var(--muted)}.field small{font-size:10px;color:var(--muted);line-height:1.6}.error-text{font-size:11px;color:#c35a69;line-height:1.7;margin-top:10px;min-height:16px}.segmented{padding:4px;display:flex;gap:3px;border-radius:12px;background:var(--field);margin-bottom:21px}.segmented button{flex:1;padding:9px 6px;font-size:11px;border-radius:9px;color:var(--secondary);display:flex;align-items:center;justify-content:center;gap:6px}.segmented button svg{width:14px;height:14px}.segmented button.active{background:var(--surface);color:var(--accent-text);box-shadow:0 2px 7px #29203608}.editor-dialog{width:742px}.editor-dialog .dialog-heading{padding:15px 20px 9px}.editor-meta{display:flex;align-items:center;gap:9px;font-size:10px;color:var(--muted)}.editor-meta svg{width:12px;height:12px}.editor-actions-top{display:flex;gap:3px;align-items:center}.editor-content{padding:11px 32px 24px;overflow:auto;max-height:calc(100dvh - 225px);min-height:340px}.editor-title{width:100%;resize:none;border:0;background:transparent;font-size:25px;font-weight:600;letter-spacing:-.9px;line-height:1.55;padding:8px 0;color:var(--text);display:block;overflow:hidden}.editor-title::placeholder{color:var(--muted);opacity:.65}.editor-body{display:block;min-height:220px;width:100%;border:0;background:transparent;resize:none;font-size:14px;line-height:1.95;padding:12px 0;color:var(--text)}.editor-body::placeholder{color:var(--muted);opacity:.7}.editor-body:focus-visible,.editor-title:focus-visible{box-shadow:none}.editor-bottom{display:flex;align-items:center;justify-content:space-between;padding:12px 22px;border-top:1px solid var(--line);gap:14px}.editor-tools{display:flex;align-items:center;gap:3px}.editor-tools .tool-separator{height:18px;width:1px;background:var(--line);margin:0 6px}.editor-bottom .button{min-height:35px}.editor-labels{display:flex;gap:6px;flex-wrap:wrap;margin:7px 0 13px}.editor-label{font-size:10px;display:flex;align-items:center;gap:5px;background:var(--field);color:var(--secondary);border-radius:6px;padding:5px 8px}.editor-label i{width:6px;height:6px;border-radius:50%}.editor-reminder{display:flex;align-items:center;gap:5px;color:var(--accent-text);font-size:11px;padding:9px 0 0}.editor-reminder svg{width:13px;height:13px}.editor-lock-hint{font-size:10px;color:var(--muted);padding:8px 32px 12px;line-height:1.6;display:flex;align-items:center;gap:6px}.editor-lock-hint svg{width:12px;height:12px}.attachment-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:17px 0 5px}.attachment{position:relative;background:var(--field);border-radius:13px;overflow:hidden;border:1px solid var(--line)}.attachment img,.attachment video{width:100%;max-height:230px;object-fit:contain;display:block;background:#1d1923}.attachment-meta{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;gap:6px;font-size:10px;color:var(--secondary)}.attachment-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-meta .icon-button{min-width:25px;height:25px}.attachment-meta svg{width:13px;height:13px}.checklist-editor{margin:12px 0 15px;display:flex;flex-direction:column;gap:4px}.check-item{display:flex;align-items:flex-start;gap:10px;padding:4px 0}.check-item input[type=checkbox]{width:17px;height:17px;margin:10px 0 0;cursor:pointer;flex-shrink:0}.check-item input[type=text]{background:transparent;border:0;padding:8px 2px;width:100%;font-size:14px}.check-item.checked input[type=text]{text-decoration:line-through;color:var(--muted)}.check-item .icon-button{opacity:0;flex-shrink:0}.check-item:hover .icon-button,.check-item:focus-within .icon-button{opacity:1}.add-check{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;padding:10px 0}.add-check svg{width:16px;height:16px}.palette{display:flex;flex-wrap:wrap;gap:11px;padding:5px 1px}.color-swatch{width:31px;height:31px;border-radius:50%;border:1px solid #25223215;position:relative}.color-swatch.active:after{content:'';position:absolute;inset:-4px;border:2px solid var(--accent);border-radius:50%}.color-swatch .checkmark{width:14px;height:14px;margin:auto;color:#393341;stroke-width:2}.custom-color-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:20px 0 0;font-size:12px;color:var(--secondary)}.custom-color-row input{height:31px;width:40px;border-radius:8px;overflow:hidden}.label-picker{display:flex;flex-direction:column;gap:4px}.label-picker label{padding:11px 10px;display:flex;align-items:center;gap:10px;border-radius:10px;cursor:pointer;font-size:13px}.label-picker label:hover{background:var(--field)}.label-picker label input{margin-left:auto}.label-row{display:flex;gap:6px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}.label-row input[type=text]{background:transparent;border:0;flex:1;min-width:0;padding:7px 3px;font-size:13px}.label-row input[type=color]{width:16px;height:20px;flex-shrink:0}.label-row .icon-button{min-width:27px;height:29px}.label-row svg{width:13px;height:13px}.label-add-row{display:flex;gap:8px;margin-top:18px}.label-add-row input[type=text]{flex:1;min-width:0}.label-add-row input[type=color]{width:31px;height:38px;flex-shrink:0}.settings-dialog{width:650px}.settings-layout{display:grid;grid-template-columns:138px 1fr;min-height:390px;max-height:calc(100dvh - 160px)}.settings-nav{padding:5px 12px 20px 16px;border-right:1px solid var(--line)}.settings-nav button{display:flex;gap:8px;align-items:center;width:100%;padding:11px 10px;font-size:11px;text-align:left;border-radius:9px;color:var(--secondary);margin:2px 0}.settings-nav button svg{width:15px;height:15px}.settings-nav button.active{background:var(--accent-light);color:var(--accent-text)}.settings-panel{padding:8px 24px 26px;overflow:auto}.settings-panel h3{font-size:12px;font-weight:600;margin:5px 0 18px}.settings-group{padding:0 0 20px;margin:0 0 18px;border-bottom:1px solid var(--line)}.settings-group:last-child{border:0;margin-bottom:0;padding-bottom:0}.setting-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:11px 0}.setting-copy{display:flex;flex-direction:column;gap:5px}.setting-copy>span{font-size:12px;line-height:1.6}.setting-copy>small{font-size:10px;line-height:1.6;color:var(--muted)}.switch{appearance:none;width:32px;height:19px;flex-shrink:0;background:var(--line);border-radius:20px;position:relative;cursor:pointer;transition:background .15s;vertical-align:middle}.switch:after{content:'';width:13px;height:13px;background:white;box-shadow:0 1px 2px #0002;position:absolute;left:3px;top:3px;border-radius:50%;transition:transform .15s}.switch:checked{background:var(--accent)}.switch:checked:after{transform:translateX(13px)}.theme-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.theme-choice{text-align:left;border-radius:11px;padding:7px;border:1px solid var(--line);position:relative}.theme-choice.active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.theme-preview{display:flex;width:100%;height:62px;border-radius:7px;overflow:hidden;border:1px solid #00000008;margin-bottom:8px;background:#f6f6f9}.theme-preview .mini-side{width:28%;background:#ecebf1;padding:11px 6px}.mini-line{height:3px;width:100%;margin-bottom:5px;border-radius:2px;background:#c6bdcf}.theme-preview .mini-cards{display:flex;gap:5px;padding:11px 7px;flex:1}.mini-cards i{display:block;flex:1;height:33px;border-radius:4px;background:#efe8d9}.mini-cards i:last-child{background:#e7e6f0}.theme-preview.dark{background:#24242c}.theme-preview.dark .mini-side{background:#2c2c36}.theme-preview.dark .mini-line{background:#625a70}.theme-preview.dark .mini-cards i{background:#64616f}.theme-preview.dark .mini-cards i:last-child{background:#575d66}.theme-preview.glass{background:linear-gradient(135deg,#e9ddf2,#d8c7ec)}.theme-preview.glass .mini-side{background:#ffffff50}.theme-preview.glass .mini-cards i{background:#ffffffa0}.theme-preview.custom{background:linear-gradient(135deg,#e3ece8,#d1dfdf)}.theme-preview.custom .mini-side{background:#ffffff50}.theme-preview.custom .mini-cards i{background:#ffffffa0}.theme-name{font-size:10px;padding:1px 3px 3px;display:flex;align-items:center;justify-content:space-between}.theme-name svg{width:12px;height:12px;color:var(--accent)}.settings-help{font-size:10px;line-height:1.8;color:var(--muted);margin-top:15px}.settings-buttons{display:flex;gap:8px;flex-wrap:wrap}.settings-panel input[type=range]{width:100%;accent-color:var(--accent)}.range-heading{display:flex;justify-content:space-between;font-size:11px;color:var(--secondary);margin:17px 0 9px}.account-card{text-align:center;background:var(--surface-alt);border-radius:14px;padding:21px 18px;margin-bottom:20px}.account-card .avatar{width:42px;height:42px;margin:0 auto 12px}.account-card .avatar svg{width:21px;height:21px}.account-card strong{font-size:13px}.account-card p{font-size:11px;color:var(--secondary);line-height:1.7;margin-top:8px}.login-buttons{display:flex;gap:8px;flex-direction:column;margin:15px 0 5px}.google-logo{font-weight:700;color:#4285f4;font-size:17px;background:#fff;width:22px;height:22px;border-radius:6px;display:grid;place-items:center}.onboarding-dialog{width:420px;text-align:center}.onboarding-brand{display:grid;place-items:center;width:64px;height:64px;margin:30px auto 24px;border-radius:19px;background:var(--accent-light);color:var(--accent)}.onboarding-brand svg{width:39px;height:39px;stroke-width:1.5}.onboarding-dialog h2{font-size:23px;font-weight:600;letter-spacing:-.8px;margin-bottom:11px}.onboarding-dialog .dialog-body{padding:0 30px 29px}.language-list{display:flex;flex-direction:column;gap:5px;margin:22px 0}.language-choice{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-radius:10px;font-size:13px;text-align:left}.language-choice:hover{background:var(--field)}.language-choice.active{background:var(--accent-light);color:var(--accent-text)}.language-choice svg{width:15px;height:15px}.language-choice small{font-size:11px;color:var(--muted)}.pattern-wrap{width:238px;height:238px;position:relative;margin:0 auto;touch-action:none;user-select:none}.pattern-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;color:var(--accent);stroke-width:1.6;opacity:.45;z-index:0}.pattern-grid{position:relative;display:grid;grid-template-columns:repeat(3,1fr);width:100%;height:100%;padding:10px;gap:0}.pattern-dot{display:grid;place-items:center;position:relative;border-radius:50%;margin:9px}.pattern-dot:before{content:'';width:10px;height:10px;background:var(--line);border:1px solid var(--muted);border-radius:50%;position:relative;z-index:1;transition:background .1s,box-shadow .1s}.pattern-dot.active:before{background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 10px color-mix(in srgb,var(--accent) 12%,transparent)}.pattern-status{font-size:11px;color:var(--muted);text-align:center;min-height:20px}.unlock-symbol{display:grid;place-items:center;width:49px;height:49px;border-radius:15px;background:var(--accent-light);color:var(--accent);margin:3px auto 18px}.unlock-symbol svg{width:23px;height:23px}.quick-times{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.quick-times button{font-size:11px;background:var(--field);padding:9px 11px;border-radius:9px}.quick-times button:hover{background:var(--accent-light);color:var(--accent-text)}.shortcut-row{display:flex;justify-content:space-between;font-size:11px;padding:7px 0;color:var(--secondary)}.shortcut-row kbd{font-size:10px;padding:3px 6px;border-radius:5px;border:1px solid var(--line)}.pair-device{display:flex;align-items:center;gap:11px;background:var(--surface-alt);padding:16px;border-radius:12px;font-size:13px;margin-bottom:15px}.pair-device svg{color:var(--accent);width:25px;height:25px}
}
@layer responsive{
 .native-picker-cover{display:none}
 .editor-dialog.privacy-covered .editor-content{visibility:hidden}
 .editor-dialog.privacy-covered .native-picker-cover{position:absolute;inset:50px 0 61px;display:grid;place-items:center;background:var(--surface);color:var(--accent);z-index:2;pointer-events:none}
 .native-picker-cover svg{width:32px;height:32px;stroke-width:1.3}
 html[data-desktop=true][data-native-glass=false] .sidebar{background:color-mix(in srgb,var(--sidebar) 100%,white);backdrop-filter:none}
 html[data-desktop=true][data-native-glass=true]:is([data-theme=glass],[data-theme=custom]){--page:color-mix(in srgb,var(--glass-tint,#ece5f4) var(--glass-opacity-percent,78%),transparent);--sidebar:#f1eaf9b8;--surface:#faf7fff2;--line:#d9cee5b3}
 html[data-desktop=true][data-native-glass=true]:is([data-theme=glass],[data-theme=custom]) body{background:transparent}
 html[data-desktop=true][data-native-glass=true]:is([data-theme=glass],[data-theme=custom]) .app-shell{background:var(--page)}
 html[data-desktop=true][data-native-glass=true]:is([data-theme=glass],[data-theme=custom]) .workspace{background-color:transparent}
 html[data-desktop=true][data-native-glass=true]:is([data-theme=glass],[data-theme=custom]) .workspace-top{background:#f8f5fc80}
 html[data-desktop=true][data-native-glass=false]:is([data-theme=glass],[data-theme=custom]){--sidebar:#e9e1f1;--surface:#fff;--line:#d9cee5}
 @media(min-width:1550px){.workspace{padding:0 62px}.notes-grid{grid-template-columns:repeat(auto-fill,minmax(252px,1fr));gap:22px}.page-heading{margin-top:29px;margin-bottom:38px}}
 @media(max-width:1050px){.app-shell{grid-template-columns:203px 1fr}.workspace{padding:0 26px}.sidebar{padding-left:12px;padding-right:12px}.notes-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px}.note-card{padding:18px 16px 12px}.card-image{width:calc(100% + 32px);margin:-18px -16px 14px}}
 @media(max-width:760px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:230px;z-index:25;transform:translateX(-100%);transition:transform .2s;box-shadow:10px 0 60px #0002;background:var(--sidebar);backdrop-filter:blur(30px)}.app-shell.sidebar-open .sidebar{transform:translateX(0)}.app-shell.sidebar-open:before{content:'';position:fixed;inset:0;background:#24202b55;z-index:24;backdrop-filter:blur(2px)}.workspace{padding:0 22px}.workspace-top{height:73px;gap:12px}.mobile-toggle,.mobile-new{display:inline-flex}.search-wrap{max-width:none;flex:1;gap:8px}.search-wrap kbd{display:none}.header-actions{gap:3px}.page-heading{margin:17px 0 28px}.page-heading h1{font-size:26px}.eyebrow{font-size:9px}.notes-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.note-card h3{font-size:14px}.note-card .card-body{font-size:11px}.note-card .card-actions{opacity:1}.note-card{min-height:160px;border-radius:15px}.card-footer{margin-top:14px}.card-label{font-size:8px}.page-count{font-size:10px}.settings-dialog{width:560px}.editor-dialog{width:640px}.editor-content{padding-left:24px;padding-right:24px;min-height:300px}.editor-title{font-size:22px}.editor-body{font-size:13px}.editor-lock-hint{padding-left:24px}.toast-stack{bottom:18px}.account-copy strong{max-width:147px}.empty-state{padding:35px 10px}.empty-state h2{font-size:18px}}
 @media(max-width:450px){.workspace{padding:0 15px}.workspace-top{height:66px}.page-heading{margin-top:19px;margin-bottom:25px}.notes-grid{gap:10px}.note-card{padding:17px 14px 11px}.note-card h3{font-size:13px;margin-bottom:8px}.note-card .card-body{font-size:11px;line-height:1.75}.card-footer{font-size:8px}.card-actions .icon-button{min-width:23px}.card-image{width:calc(100% + 28px);margin:-17px -14px 14px;max-height:135px}.card-pin{top:12px;right:10px}.card-labels{gap:4px;margin-top:10px}.card-video{height:105px}.settings-layout{grid-template-columns:1fr;display:flex;flex-direction:column}.settings-nav{display:flex;border-right:0;border-bottom:1px solid var(--line);padding:0 12px 10px;gap:3px}.settings-nav button{font-size:10px;justify-content:center;gap:5px;padding:9px 4px}.settings-nav button svg{width:13px;height:13px}.settings-panel{padding:17px 22px 24px;max-height:calc(100dvh - 240px)}.dialog-heading{padding:18px 20px 13px}.dialog-heading h2{font-size:16px}.dialog-body{padding:0 20px 20px}.dialog-actions{padding:14px 20px}.editor-content{padding:7px 23px 20px;max-height:calc(100dvh - 210px)}.editor-bottom{padding:11px 14px;gap:5px}.editor-tools{gap:0}.editor-tools .icon-button{min-width:32px}.editor-tools .tool-separator{margin:0 3px}.editor-bottom>.button{padding:8px 13px}.editor-meta{font-size:9px}.editor-dialog .dialog-heading{padding:12px 15px 6px}.attachment-grid{grid-template-columns:1fr}.notes-grid.list .note-card{grid-template-columns:1fr 70px}.settings-help{font-size:10px}.note-card.locked{min-height:177px}.lock-cover{font-size:11px}.lock-cover small{font-size:8px}.search-wrap input{font-size:12px}.page-heading h1{font-size:24px}}
 @media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
}
@layer responsive{.mobile-toggle,.mobile-new{display:none}@media(max-width:760px){.mobile-toggle,.mobile-new{display:inline-flex}}}
