:root{--bg:#ffffff;--bg2:#ffffff;--panel:rgba(255,255,255,.86);--text:#1C0E07;--title:#c29938;--muted:#6f687a;--primary:#8b5cf6;--primary2:#ec4899;--accent:#06b6d4;--danger:#ef4444;--success:#10b981;--border:rgba(81,56,123,.14);--shadow:0 24px 60px rgba(91,57,151,.18);--radius:24px}html[data-theme=dark]{--bg:#090914;--bg2:#1c1233;--panel:rgba(24,24,37,.78);--text:#f7f4ff;--title:#c29938;--muted:#b9aec9;--border:rgba(255,255,255,.12);--shadow:0 24px 70px rgba(0,0,0,.45)}@media(prefers-color-scheme:dark){html[data-theme=system]{--bg:#090914;--bg2:#1c1233;--panel:rgba(24,24,37,.78);--text:#f7f4ff;--title:#c29938;--muted:#b9aec9;--border:rgba(255,255,255,.12);--shadow:0 24px 70px rgba(0,0,0,.45)}}*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:radial-gradient(circle at 10% 10%,#fff1c9 0,transparent 24%),radial-gradient(circle at 90% 15%,#c4b5fd 0,transparent 28%),linear-gradient(135deg,var(--bg),var(--bg2));}a{color:var(--primary);text-decoration:none}.mobile-menu-toggle,.sidebar-scrim,.mobile-list-new,.mobile-note-back{display:none!important}
.app-shell{display:flex;min-height:100vh}.sidebar{width:280px;padding:24px;display:flex;flex-direction:column;gap:22px;border-right:1px solid var(--border);background:rgba(255,255,255,.32);backdrop-filter:blur(18px);position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:13px;font-weight:900;font-size:19px;color:var(--text)}.brand-icon,.auth-hero{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;color:white;background:linear-gradient(135deg,var(--primary),var(--primary2));box-shadow:var(--shadow)}.brand-icon{overflow:hidden;background:transparent;padding:0;box-shadow:none}.brand-icon img{width:100%;height:100%;object-fit:contain;display:block}nav{display:grid;gap:8px}.nav-link{padding:13px 14px;border-radius:16px;color:var(--text);font-weight:700}.nav-link:hover{background:var(--panel)}.language-switcher{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid var(--border);border-radius:16px;background:var(--panel);font-weight:950}.language-switcher a{padding:7px 10px;border-radius:11px;color:var(--muted);background:white;border:1px solid rgba(81,56,123,.16);box-shadow:0 4px 12px rgba(91,57,151,.12);font-size:1.3em;line-height:1}.language-switcher a.active{background:white;color:var(--text);border-color:var(--primary);box-shadow:0 0 0 3px rgba(139,92,246,.22),0 8px 18px rgba(91,57,151,.22);transform:translateY(-1px)}.auth-language{position:fixed;right:22px;top:22px;z-index:5}.sidebar-data-tools{display:grid;gap:8px;margin-top:auto}.sidebar-data-tools form{margin:0}.sidebar-data-tools .btn{justify-content:center}.sidebar-data-tools label.btn{cursor:pointer}.sidebar-user{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid var(--border);border-radius:20px;background:var(--panel)}.sidebar-user img,.user-cell img{width:44px;height:44px;border-radius:15px;object-fit:cover}.sidebar-user small,.user-cell small{display:block;color:var(--muted);max-width:170px;overflow:hidden;text-overflow:ellipsis}.main{flex:1;padding:34px;max-width:1400px;margin:0 auto;width:100%}.auth-main{display:grid;place-items:center}.glass,.panel,.auth-card,.note-editor,.empty{background:var(--panel);border:1px solid var(--border);box-shadow:var(--shadow);backdrop-filter:blur(24px);border-radius:var(--radius)}.auth-card{width:min(460px,92vw);padding:34px}.auth-card h1,.page-header h1{font-size:clamp(30px,4vw,48px);margin:12px 0 8px;letter-spacing:-.04em;color:var(--title)}.page-header h1{color:#c29938;text-shadow:none}.auth-card h1,.page-header h1,.notes-list-head h2,.note-list-text strong,.selected-note-head h2,.note-card h2,.about-dialog h2{color:#c29938!important;text-shadow:none}.muted{color:var(--muted);line-height:1.6}.hint{font-size:13px;color:var(--muted);margin-top:18px}.stack{display:grid;gap:16px}.visually-hidden,.hidden-file-input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;opacity:0!important;pointer-events:none!important}label{display:grid;gap:8px;font-weight:800}input,textarea,select{width:100%;border:1px solid var(--border);border-radius:16px;padding:13px 14px;background:rgba(255,255,255,.58);color:var(--text);font:inherit;outline:none}html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select{background:rgba(255,255,255,.07)}input:focus,textarea:focus,select:focus,.visual-editor:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(139,92,246,.18)}.btn{border:0;border-radius:16px;padding:12px 16px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;gap:9px;cursor:pointer;color:var(--text);background:var(--panel);border:1px solid var(--border)}.btn-primary{color:white;background:linear-gradient(135deg,var(--primary),var(--primary2));border:0}.btn-ghost{background:rgba(255,255,255,.25)}.btn-small{padding:8px 10px;border-radius:12px}.danger{background:rgba(239,68,68,.12);color:var(--danger);border-color:rgba(239,68,68,.22)}.full{width:100%}.auth-links{display:flex;justify-content:space-between;margin-top:18px}.alert{margin-bottom:20px;padding:14px 16px;border-radius:18px;display:flex;gap:10px;align-items:center;font-weight:800}.alert.success{background:rgba(16,185,129,.13);color:#059669}.alert.error{background:rgba(239,68,68,.13);color:#dc2626}.page-header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.eyebrow{color:var(--primary);font-weight:950;text-transform:uppercase;letter-spacing:.12em;font-size:12px}.modal-open{overflow:hidden}.note-editor-modal,.about-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px}.note-editor-modal[hidden],.about-modal[hidden]{display:none!important}.note-editor-backdrop,.about-modal-backdrop{position:absolute;inset:0;background:rgba(28,14,7,.42);backdrop-filter:blur(10px)}.about-dialog{position:relative;z-index:1;width:min(640px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;padding:30px;text-align:left}.about-dialog .auth-hero{margin:0 auto 14px}.about-logo{overflow:hidden;background:transparent;padding:0;box-shadow:none}.about-logo img{width:100%;height:100%;object-fit:contain;display:block}.about-dialog h2{color:var(--title);font-size:clamp(26px,4vw,40px);letter-spacing:-.04em;margin:0 0 14px;text-align:center}.about-dialog p{color:var(--muted);font-weight:700;line-height:1.65}.about-creator{display:block;margin-top:18px;color:var(--title);font-size:18px;text-align:center}.about-close{position:absolute;right:14px;top:14px;width:40px;height:40px;border-radius:14px;border:1px solid var(--border);background:var(--panel);color:var(--text);cursor:pointer}.note-editor{position:relative;z-index:1;width:min(1120px,calc(100vw - 32px));max-height:calc(100vh - 48px);padding:22px;display:none;overflow:auto}.note-editor.open{display:block}.editor-top{display:grid;grid-template-columns:1fr auto auto auto;gap:12px;align-items:center}.title-input{font-size:24px;font-weight:950}.color-field{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:18px;padding:7px 10px;background:rgba(255,255,255,.3);font-weight:800;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em}.color-field select{width:118px;height:34px;border-radius:12px;padding:0 8px;background:rgba(255,255,255,.62);font-size:13px;font-weight:850;text-transform:none;letter-spacing:0;cursor:pointer}.pill{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:999px;padding:10px 14px;background:rgba(255,255,255,.3)}.pill input{width:auto}.toolbar{display:flex;gap:8px;flex-wrap:wrap}.toolbar-select-row{display:inline-flex;gap:6px;align-items:center;flex-wrap:nowrap;flex:0 0 auto;max-width:100%;white-space:nowrap}.toolbar button{width:42px;height:38px;border-radius:12px;border:1px solid var(--border);background:rgba(255,255,255,.32);color:var(--text);cursor:pointer}.toolbar-select{height:38px;border-radius:12px;border:1px solid var(--border);background:rgba(255,255,255,.42);color:var(--text);font-weight:800;padding:0 8px;width:auto;min-width:0;max-width:128px}.toolbar-select-row .toolbar-select:first-child{width:118px}.font-size-select{width:70px!important;max-width:70px}.toolbar input{display:none!important}.toolbar-dropdown{position:relative;display:inline-flex}.toolbar-dropdown-toggle[aria-expanded="true"]{background:rgba(139,92,246,.18);border-color:var(--primary)}.toolbar-menu{position:absolute;left:0;top:calc(100% + 8px);z-index:20;min-width:220px;padding:8px;border:1px solid var(--border);border-radius:16px;background:var(--panel);box-shadow:var(--shadow);backdrop-filter:blur(18px);display:grid;gap:4px}.toolbar-menu[hidden]{display:none!important}.toolbar-menu button{width:100%;height:auto;min-height:38px;justify-content:flex-start;display:flex;align-items:center;gap:10px;padding:9px 10px;text-align:left;font-weight:850;background:rgba(255,255,255,.38)}.toolbar-menu button:hover{border-color:var(--primary);background:rgba(139,92,246,.14)}.toolbar-menu i{width:18px;text-align:center}.toolbar-menu span{white-space:nowrap}.table-size-picker{padding:8px;border-bottom:1px solid var(--border);margin-bottom:6px}.table-size-grid{display:grid;grid-template-columns:repeat(8,18px);gap:4px;justify-content:start}.table-size-cell{width:18px!important;height:18px!important;min-height:18px!important;padding:0!important;border-radius:4px!important;background:rgba(255,255,255,.42)!important;border:1px solid var(--border)!important}.table-size-cell.active,.table-size-cell:hover,.table-size-cell:focus{background:rgba(139,92,246,.35)!important;border-color:var(--primary)!important}.table-size-label{margin-top:8px;color:var(--muted);font-size:12px;font-weight:900;text-align:center}.visual-editor{min-height:210px;border:1px solid var(--border);border-radius:18px;padding:18px;background:#E9D5FF;outline:none;line-height:1.6;transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease}.visual-editor img,.selected-note-content img{max-width:100%;height:auto;border-radius:14px;display:block;margin:10px;box-shadow:0 10px 24px rgba(91,57,151,.16)}.note-table{position:relative;width:min(100%,520px);min-width:180px;resize:both;overflow:visible;border-collapse:separate;border-spacing:0;border:1px solid currentColor;border-radius:12px;color:inherit;margin:14px 0;table-layout:fixed}.note-table td,.note-table th{min-width:64px;min-height:36px;border:0;border-right:1px solid currentColor;border-bottom:1px solid currentColor;padding:8px;vertical-align:top;color:inherit}.note-table tr:last-child td,.note-table tr:last-child th{border-bottom:0}.note-table td:last-child,.note-table th:last-child{border-right:0}.note-table tr:first-child td:first-child,.note-table tr:first-child th:first-child{border-top-left-radius:11px}.note-table tr:first-child td:last-child,.note-table tr:first-child th:last-child{border-top-right-radius:11px}.note-table tr:last-child td:first-child,.note-table tr:last-child th:first-child{border-bottom-left-radius:11px}.note-table tr:last-child td:last-child,.note-table tr:last-child th:last-child{border-bottom-right-radius:11px}.note-table.selected-table{outline:2px solid var(--primary);outline-offset:4px}.table-resize-handle{display:none;position:absolute;right:-8px;bottom:-8px;width:18px;height:18px;border-radius:6px;border:2px solid #fff;background:var(--primary);box-shadow:0 3px 10px rgba(0,0,0,.25);cursor:nwse-resize;z-index:5;touch-action:none}.visual-editor .note-table.selected-table .table-resize-handle,.visual-editor .note-table:hover .table-resize-handle,.visual-editor .note-table.resizing-table .table-resize-handle{display:block}.note-table.resizing-table{outline:2px dashed var(--primary);outline-offset:5px}.note-table .selected-table-cell{outline:3px solid var(--primary);outline-offset:-3px}.note-table tr.selected-table-row td,.note-table tr.selected-table-row th{box-shadow:inset 0 0 0 9999px rgba(139,92,246,.16)}.visual-editor .note-table td,.visual-editor .note-table th{position:relative}.selected-note-content .note-table{max-width:100%;overflow:auto}.inline-image-resizer{position:relative;display:inline-block;max-width:100%;vertical-align:top;margin:10px;line-height:0;cursor:grab;border-radius:14px;float:left}.inline-image-resizer.selected{outline:2px solid var(--primary);outline-offset:4px}.inline-image-resizer.dragging{opacity:.45;cursor:grabbing}.inline-image-resizer.resizing{cursor:default}.inline-image-placeholder{display:inline-block;width:120px;height:80px;max-width:100%;border:2px dashed var(--primary);border-radius:14px;background:rgba(139,92,246,.12);vertical-align:top;margin:10px 8px}.inline-image-resizer img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;min-width:80px;min-height:60px;object-fit:fill}.image-resize-handle{position:absolute;width:12px;height:12px;border:2px solid white;border-radius:999px;background:var(--primary);box-shadow:0 2px 8px rgba(0,0,0,.25);z-index:3}.image-resize-handle.nw{top:-6px;left:-6px;cursor:nwse-resize}.image-resize-handle.n{top:-6px;left:50%;transform:translateX(-50%);cursor:ns-resize}.image-resize-handle.ne{top:-6px;right:-6px;cursor:nesw-resize}.image-resize-handle.e{right:-6px;top:50%;transform:translateY(-50%);cursor:ew-resize}.image-resize-handle.se{right:-6px;bottom:-6px;cursor:nwse-resize}.image-resize-handle.s{bottom:-6px;left:50%;transform:translateX(-50%);cursor:ns-resize}.image-resize-handle.sw{bottom:-6px;left:-6px;cursor:nesw-resize}.image-resize-handle.w{left:-6px;top:50%;transform:translateY(-50%);cursor:ew-resize}.visual-editor .inline-note-image{cursor:grab;float:left}.selected-note-content .inline-note-image{max-width:100%;height:auto;float:left;margin:10px}.visual-editor form,.visual-editor input,.visual-editor button,.visual-editor select,.visual-editor textarea,.visual-editor [role=checkbox],.visual-editor [type=checkbox],.selected-note-content form,.selected-note-content input,.selected-note-content button,.selected-note-content select,.selected-note-content textarea,.selected-note-content [role=checkbox],.selected-note-content [type=checkbox]{display:none!important;appearance:none!important;-webkit-appearance:none!important;opacity:0!important;width:0!important;height:0!important;position:absolute!important;pointer-events:none!important}.notes-workspace{display:grid;grid-template-columns:340px minmax(0,1fr);gap:22px;align-items:stretch}.notes-list{padding:16px;position:sticky;top:24px;min-height:520px;max-height:calc(100vh - 48px);overflow:auto;display:flex;flex-direction:column}.notes-list-head{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 14px}.notes-search{position:relative;display:block;margin:0 0 14px}.notes-search i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:14px}.notes-search input{padding-left:40px;border-radius:15px;background:rgba(255,255,255,.46);box-shadow:0 8px 22px rgba(91,57,151,.08)}.notes-list-head h2{font-size:18px;margin:0;display:flex;gap:9px;align-items:center;color:var(--title)}.notes-list-head span{background:linear-gradient(135deg,var(--primary),var(--primary2));color:white;border-radius:999px;padding:5px 10px;font-weight:950;font-size:12px}.note-list-item{width:100%;border:1px solid transparent;border-radius:18px;padding:12px;margin:0 0 10px;display:grid;grid-template-columns:12px 1fr auto;gap:12px;text-align:left;align-items:center;background:rgba(255,255,255,.28);color:var(--text);cursor:pointer}.note-list-item[hidden]{display:none!important}.note-list-item:hover,.note-list-item.active{background:linear-gradient(135deg,var(--note-color),rgba(255,255,255,.62));border-color:rgba(255,255,255,.7);box-shadow:0 12px 28px rgba(24,20,44,.12)}.note-color-dot{width:12px;height:42px;border-radius:999px;background:var(--note-color);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}.note-list-text{min-width:0}.note-list-text strong,.note-list-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.note-list-text strong{font-size:15px;color:var(--title)}.note-list-text small{margin-top:4px;color:var(--muted);font-size:12px}.note-list-dates{display:flex!important;gap:6px;flex-wrap:wrap;white-space:normal!important;line-height:1.35}.note-list-dates span{white-space:nowrap}.list-pin{font-size:12px;color:var(--primary)}.notes-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px 4px;margin-top:auto}.notes-pagination span{color:var(--muted);font-size:12px;font-weight:900;white-space:nowrap}.notes-pagination .btn{padding:8px 10px;min-height:34px}.notes-pagination .btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.empty-list{text-align:center;color:var(--muted);padding:26px}.selected-note{padding:0;overflow:hidden;min-height:520px;background:var(--note-color);display:flex;flex-direction:column}.selected-note-paper{min-height:520px;flex:1;width:100%;padding:30px;background:var(--note-color);display:flex;flex-direction:column}.selected-note-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border-bottom:1px solid rgba(0,0,0,.08);padding-bottom:18px}.selected-note-head h2{font-size:clamp(30px,4vw,52px);letter-spacing:-.05em;margin:8px 0 0;color:var(--title);text-shadow:0 1px 0 rgba(255,255,255,.34)}.selected-note-content{font-size:18px;line-height:1.7;padding:26px 0;overflow-wrap:anywhere}.attachments-panel{display:grid;gap:12px;margin:18px 0}.attachment-item{display:grid;grid-template-columns:76px 1fr auto;gap:12px;align-items:center;padding:12px;border:1px solid rgba(0,0,0,.08);border-radius:18px;background:rgba(255,255,255,.36)}.attachment-item img{width:76px;height:64px;object-fit:cover;border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.12)}.file-icon{width:76px;height:64px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.45);font-size:28px;color:var(--primary)}.attachment-meta{min-width:0}.attachment-meta strong,.attachment-meta small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-meta small{color:var(--muted);margin-top:3px}.attachment-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:6px;font-size:13px;font-weight:800}.selected-note-actions{margin-top:auto;display:flex;gap:12px;align-items:center;justify-content:flex-end}.selected-note-actions form{margin:0}.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}.note-card{background:linear-gradient(145deg,var(--note-color),rgba(255,255,255,.72));border:1px solid rgba(255,255,255,.5);border-radius:26px;padding:20px;box-shadow:0 18px 45px rgba(24,20,44,.13);min-height:210px;display:flex;flex-direction:column;gap:16px}.note-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.note-card h2{margin:0;font-size:22px;letter-spacing:-.02em;color:var(--title);text-shadow:0 1px 0 rgba(255,255,255,.34)}.badge{font-size:11px;background:rgba(255,255,255,.55);border-radius:999px;padding:7px 10px;font-weight:950}.note-content{line-height:1.58;overflow-wrap:anywhere}.note-actions{margin-top:auto;display:flex;justify-content:space-between;align-items:center}.note-actions form{margin:0}.empty{grid-column:1/-1;padding:50px;text-align:center}.empty i{font-size:44px;color:var(--primary)}.two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.65fr);gap:22px}.panel{padding:24px}.profile-avatar{display:flex;align-items:center;gap:18px}.profile-avatar img{width:104px;height:104px;border-radius:32px;object-fit:cover;border:4px solid rgba(255,255,255,.65)}.security-list{margin-top:24px;display:grid;gap:10px;color:var(--muted)}.table-wrap{overflow:visible}.admin-search{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.admin-search label{position:relative;flex:1 1 280px;margin:0}.admin-search label i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted)}.admin-search input{padding-left:40px}.admin-table-scroll{overflow:auto}.admin-table{width:100%;border-collapse:separate;border-spacing:0 10px}.admin-table tr{height:70px}.admin-table th{text-align:left;color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.08em}.admin-table td{background:rgba(255,255,255,.26);padding:12px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);vertical-align:middle}.admin-table td:first-child{border-left:1px solid var(--border);border-radius:16px 0 0 16px}.admin-table td:last-child{border-right:1px solid var(--border);border-radius:0 16px 16px 0}.admin-table td>form{margin:0}.user-cell{display:flex;gap:12px;align-items:center;min-width:260px}.actions{display:flex;gap:8px;height:70px;align-items:center}.pagination{display:flex!important;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:18px;clear:both;position:relative;z-index:2}.pagination a{min-width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--border);border-radius:13px;background:rgba(255,255,255,.26);color:var(--text);font-weight:900}.pagination a.active{background:linear-gradient(135deg,var(--primary),var(--primary2));color:white;border-color:transparent}.pagination a.disabled{opacity:.45;pointer-events:none;cursor:not-allowed}.admin-pagination{align-items:center}.admin-pagination a{width:auto;min-width:112px;padding:0 14px;display:flex;gap:8px;align-items:center;justify-content:center}.pagination-status{height:38px;display:flex;align-items:center;padding:0 14px;border:1px solid var(--border);border-radius:13px;background:rgba(255,255,255,.18);color:var(--muted);font-weight:900}.switch input{display:none}.switch span{display:block;width:52px;height:30px;border-radius:999px;background:#cbd5e1;position:relative}.switch span:before{content:"";position:absolute;width:24px;height:24px;border-radius:50%;background:white;left:3px;top:3px;transition:.2s}.switch input:checked+span{background:linear-gradient(135deg,var(--success),var(--accent))}.switch input:checked+span:before{transform:translateX(22px)}@media(max-width:860px){body{background-attachment:fixed}.app-shell{display:block}.mobile-menu-toggle{display:grid!important;position:fixed;right:10px;top:10px;z-index:3000;width:auto;min-width:96px;height:48px;padding:0 14px;border:2px solid #c29938;border-radius:16px;background:#1C0E07;color:#fff;box-shadow:0 12px 30px rgba(28,14,7,.35);place-items:center;grid-auto-flow:column;gap:8px;font-weight:900}.sidebar-scrim{display:block;position:fixed;inset:0;z-index:1199;background:rgba(28,14,7,.38);backdrop-filter:blur(6px)}.sidebar-scrim[hidden]{display:none!important}.sidebar{position:fixed;z-index:1200;left:0;top:0;bottom:0;width:min(82vw,320px);height:100vh;overflow:auto;transform:translateX(-110%);transition:transform .28s ease;border-right:1px solid var(--border);box-shadow:var(--shadow);background:rgba(255,255,255,.86);padding-top:78px}.sidebar-open .sidebar{transform:translateX(0)}.sidebar nav{display:flex;flex-wrap:wrap;gap:8px}.sidebar nav .nav-link{flex:1 1 92px;display:flex;align-items:center;justify-content:center;gap:7px;padding:11px 9px;text-align:center}.main{padding:18px 14px 20px;max-width:none}.page-header{display:grid;grid-template-columns:1fr;gap:14px}.page-header>.btn[data-open-new]{display:none}.editor-top{grid-template-columns:1fr 1fr;display:grid;gap:10px}.editor-top .title-input{grid-column:1/-1}.editor-top .visually-hidden{grid-column:1/-1}.editor-top .color-field{justify-content:space-between;min-width:0;padding:6px 8px;font-size:10px;gap:6px}.editor-top .color-field span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-top .color-field select{width:100%;height:32px;flex:1 1 auto;min-width:0}.editor-top .pill{grid-column:1/-1;grid-row:1;justify-content:center}.editor-top .title-input{grid-row:2}.editor-top .color-field{grid-row:3}.two-col,.notes-workspace{grid-template-columns:1fr;display:grid}.notes-workspace{gap:0}.notes-list{position:relative;top:auto;min-height:0;max-height:none;padding:14px;border-radius:24px}.mobile-list-new{display:inline-flex!important;width:auto;justify-content:center;margin:0}.note-list-item{min-height:78px}.notes-pagination{margin-top:12px}.selected-note{position:fixed;inset:0;z-index:1090;border-radius:0!important;overflow:auto;background:var(--panel);display:none}.mobile-note-open .selected-note:not([hidden]){display:block}.selected-note-paper{min-height:100dvh;border-radius:0!important;padding:18px 16px 28px;background:var(--note-color)}.mobile-note-back{display:inline-flex!important;width:max-content;margin:0 0 14px}.selected-note-head{display:grid;grid-template-columns:1fr;gap:10px}.selected-note-head h2{font-size:clamp(28px,9vw,40px)}.selected-note-content{font-size:16px;padding:18px 0}.selected-note-actions{justify-content:stretch;flex-direction:column}.attachment-item{grid-template-columns:64px 1fr}.attachment-item form{grid-column:1/-1}.attachment-item img,.file-icon{width:64px;height:56px}.selected-note-actions .btn,.selected-note-actions form{width:100%}.selected-note-actions{position:relative;z-index:5}.selected-note-actions .btn{touch-action:manipulation;-webkit-tap-highlight-color:rgba(194,153,56,.25)}.note-editor-modal,.about-modal{padding:10px}.note-editor{width:100%;max-height:calc(100dvh - 20px);border-radius:22px;padding:14px}.toolbar{max-height:150px;overflow:auto}.visual-editor{min-height:260px}.auth-links{gap:12px;flex-direction:column}.admin-table{min-width:850px}}
@media(max-width:1024px),(pointer:coarse){.mobile-menu-toggle{display:grid!important;visibility:visible!important;opacity:1!important;position:fixed!important;right:max(10px,env(safe-area-inset-right))!important;top:max(10px,env(safe-area-inset-top))!important;z-index:99999!important;pointer-events:auto!important}}
html[data-theme=dark] .page-header h1,html[data-theme=dark] .auth-card h1,html[data-theme=dark] .notes-list-head h2,html[data-theme=dark] .note-list-text strong,html[data-theme=dark] .selected-note-head h2,html[data-theme=dark] .note-card h2,html[data-theme=dark] .about-dialog h2,html[data-theme=dark] .brand,html[data-theme=system] .page-header h1,html[data-theme=system] .auth-card h1,html[data-theme=system] .notes-list-head h2,html[data-theme=system] .note-list-text strong,html[data-theme=system] .selected-note-head h2,html[data-theme=system] .note-card h2,html[data-theme=system] .about-dialog h2,html[data-theme=system] .brand{color:#ffd978!important;text-shadow:0 2px 12px rgba(255,217,120,.28)}
html[data-theme=dark] .page-header .muted,html[data-theme=system] .page-header .muted{color:#f0e7ff;font-weight:750;text-shadow:0 1px 8px rgba(0,0,0,.35)}
html[data-theme=dark] .eyebrow,html[data-theme=system] .eyebrow{color:#d8c4ff;text-shadow:0 1px 8px rgba(216,196,255,.24)}
html[data-theme=dark] .sidebar{background:rgba(255,255,255,.86);color:#1C0E07}
html[data-theme=dark] .sidebar .brand,html[data-theme=dark] .sidebar .nav-link,html[data-theme=dark] .sidebar .btn{color:#1C0E07!important;text-shadow:none!important}
html[data-theme=dark] .sidebar .nav-link:hover,html[data-theme=dark] .sidebar-user,html[data-theme=dark] .sidebar .language-switcher,html[data-theme=dark] .sidebar .btn{background:rgba(255,255,255,.72)}
html[data-theme=dark] .sidebar small,html[data-theme=dark] .sidebar .language-switcher a{color:#5f5670!important}
@media(prefers-color-scheme:dark){html[data-theme=system] .sidebar{background:rgba(255,255,255,.86);color:#1C0E07}html[data-theme=system] .sidebar .brand,html[data-theme=system] .sidebar .nav-link,html[data-theme=system] .sidebar .btn{color:#1C0E07!important;text-shadow:none!important}html[data-theme=system] .sidebar .nav-link:hover,html[data-theme=system] .sidebar-user,html[data-theme=system] .sidebar .language-switcher,html[data-theme=system] .sidebar .btn{background:rgba(255,255,255,.72)}html[data-theme=system] .sidebar small,html[data-theme=system] .sidebar .language-switcher a{color:#5f5670!important}}
html[data-theme=dark] body{background:radial-gradient(circle at 12% 8%,rgba(139,92,246,.18) 0,transparent 28%),radial-gradient(circle at 88% 12%,rgba(6,182,212,.12) 0,transparent 30%),linear-gradient(135deg,#070711,#151026)!important;background-attachment:fixed}
@media(prefers-color-scheme:dark){html[data-theme=system] body{background:radial-gradient(circle at 12% 8%,rgba(139,92,246,.18) 0,transparent 28%),radial-gradient(circle at 88% 12%,rgba(6,182,212,.12) 0,transparent 30%),linear-gradient(135deg,#070711,#151026)!important;background-attachment:fixed}}
@media(max-width:860px){html[data-theme=dark] body{background:#070711!important}html[data-theme=dark] .main{background:linear-gradient(180deg,#070711,#151026)!important}@media(prefers-color-scheme:dark){html[data-theme=system] body{background:#070711!important}html[data-theme=system] .main{background:linear-gradient(180deg,#070711,#151026)!important}}}
.visual-editor,.visual-editor *{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}.visual-editor{touch-action:auto;caret-color:var(--text);cursor:text}.visual-editor .inline-image-resizer,.visual-editor .inline-image-resizer *,.visual-editor .table-resize-handle,.visual-editor .image-resize-handle{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
html[data-theme=light] .page-header>div{padding:18px 20px;border-radius:22px;background:rgba(255,255,255,.82);border:1px solid rgba(81,56,123,.16);box-shadow:0 14px 36px rgba(91,57,151,.12)}
html[data-theme=light] .page-header h1{color:#6f4700!important;text-shadow:0 1px 0 rgba(255,255,255,.7)}
html[data-theme=light] .page-header .muted{color:#3f344d;font-weight:750}
html[data-theme=light] .eyebrow{color:#5f35b6}
@media(prefers-color-scheme:light){html[data-theme=system] .page-header>div{padding:18px 20px;border-radius:22px;background:rgba(255,255,255,.82);border:1px solid rgba(81,56,123,.16);box-shadow:0 14px 36px rgba(91,57,151,.12)}html[data-theme=system] .page-header h1{color:#6f4700!important;text-shadow:0 1px 0 rgba(255,255,255,.7)}html[data-theme=system] .page-header .muted{color:#3f344d;font-weight:750}html[data-theme=system] .eyebrow{color:#5f35b6}}
html[data-theme=light] .page-header h1,html[data-theme=light] .notes-list-head h2,html[data-theme=light] .note-list-text strong,html[data-theme=light] .selected-note-head h2,html[data-theme=light] .note-card h2,html[data-theme=light] .brand{color:#111827!important;text-shadow:0 2px 8px rgba(0,0,0,.55)!important}
html[data-theme=dark] .page-header h1,html[data-theme=dark] .notes-list-head h2,html[data-theme=dark] .note-list-text strong,html[data-theme=dark] .selected-note-head h2,html[data-theme=dark] .note-card h2{color:#ffffff!important;text-shadow:0 2px 12px rgba(0,0,0,.35)!important}
@media(prefers-color-scheme:light){html[data-theme=system] .page-header h1,html[data-theme=system] .notes-list-head h2,html[data-theme=system] .note-list-text strong,html[data-theme=system] .selected-note-head h2,html[data-theme=system] .note-card h2,html[data-theme=system] .brand{color:#111827!important;text-shadow:0 2px 8px rgba(0,0,0,.55)!important}}
@media(prefers-color-scheme:dark){html[data-theme=system] .page-header h1,html[data-theme=system] .notes-list-head h2,html[data-theme=system] .note-list-text strong,html[data-theme=system] .selected-note-head h2,html[data-theme=system] .note-card h2{color:#ffffff!important;text-shadow:0 2px 12px rgba(0,0,0,.35)!important}}
html[data-theme=light] .brand span,html[data-theme=light] .page-header h1{color:#ffffff!important;text-shadow:0 2px 3px rgba(0,0,0,.95),0 0 10px rgba(0,0,0,.65)!important}
@media(prefers-color-scheme:light){html[data-theme=system] .brand span,html[data-theme=system] .page-header h1{color:#ffffff!important;text-shadow:0 2px 3px rgba(0,0,0,.95),0 0 10px rgba(0,0,0,.65)!important}}
