:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#20252b;background:#f5f6f8;line-height:1.5;--surface:#fff;--panel:#fbfbfc;--line:#e0e4e9;--muted:#89939d}html,body{min-height:100%;margin:0;background:var(--page,#f5f6f8);color:var(--text,#20252b)}body{min-height:100vh}*:not(dialog){box-sizing:border-box}[data-theme=dark]{--page:#171b21;--text:#edf1f5;--surface:#222831;--panel:#1d232b;--line:#3a434e;--muted:#aab4bf}body{transition:background .15s,color .15s}.app-shell{min-height:100vh;max-width:1180px;margin:auto;padding:34px 28px 52px}.topbar,.panel-heading,.editor-heading,.editor-footer{display:flex;align-items:center;justify-content:space-between;gap:18px}.topbar{margin-bottom:26px}.top-actions{display:flex;align-items:center;gap:10px}.eyebrow{margin:0;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.14em}.topbar h1{margin:2px 0 0;font-size:31px;letter-spacing:-.04em}.workspace{display:grid;grid-template-columns:340px 1fr;min-height:650px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--surface);box-shadow:0 10px 35px #1b26350c}.library-panel{background:var(--panel);border-right:1px solid var(--line);padding:24px 16px}.panel-heading{padding:0 8px 20px}.panel-heading h2,.editor-heading h2{margin:3px 0 0;font-size:22px;letter-spacing:-.03em}.button{min-height:42px;border:0;border-radius:9px;padding:10px 14px;font:inherit;font-size:13px;font-weight:750;cursor:pointer;transition:.15s ease}.button:hover{transform:translateY(-1px);filter:brightness(.97)}.button-primary{background:#2f6fed;color:#fff}.button-quiet{background:#eef1f5;color:#3e4c5d}.button-danger{background:#fff0ef;color:#bc443c}.theme-control{display:flex;border:1px solid var(--line);border-radius:9px;overflow:hidden}.theme-button{min-height:42px;border:0;padding:0 11px;background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}.theme-button.active{background:#2f6fed;color:#fff}.library-tools{display:grid;gap:7px;margin:0 8px 17px}.search-label{color:var(--muted);font-size:11px;font-weight:800}.library-tools input{width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:inherit;font:inherit;font-size:16px}.note-list{display:grid;gap:5px}.note-item{display:block;width:100%;text-align:left;border:1px solid transparent;border-radius:10px;padding:13px 12px;background:transparent;color:inherit;cursor:pointer}.note-item:hover{background:#f0f3f8}.note-item.selected{border-color:#6d9df5;background:#edf4ff;color:#20252b}.note-item strong,.note-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.note-item strong{font-size:14px}.note-item small{margin-top:3px;color:var(--muted);font-size:11px}.empty-library{padding:30px 10px;color:var(--muted);font-size:13px}.editor-panel{padding:58px clamp(28px,7vw,100px);display:flex}.editor-form{width:100%}.editor-heading{align-items:flex-start;margin-bottom:55px}.editor-form label{display:block;color:inherit;font-size:12px;font-weight:800;margin:20px 0 7px}.editor-form label span{color:var(--muted);font-weight:500;margin-left:4px}.editor-form input,.editor-form textarea{display:block;width:100%;border:1px solid var(--line);border-radius:9px;padding:13px 14px;font:inherit;font-size:16px;color:inherit;outline:0;background:var(--surface)}.editor-form input:focus,.editor-form textarea:focus{border-color:#6d9df5;box-shadow:0 0 0 3px #2f6fed15}.editor-form textarea{min-height:310px;resize:vertical}.editor-footer{margin-top:22px}.editor-footer p{margin:0;color:var(--muted);font-size:12px}.empty-editor{align-self:center;text-align:center;max-width:360px;margin:auto}.empty-icon{display:grid;place-items:center;margin:auto;width:54px;height:54px;border-radius:16px;color:#3975e5;background:#edf4ff;font-size:25px}.empty-editor h2{margin:18px 0 5px;font-size:23px}.empty-editor p{margin:0 0 23px;color:var(--muted);font-size:14px}.status{min-height:34px;margin-bottom:12px;padding:0 14px;border-radius:8px;color:#4a5969;font-size:13px;display:flex;align-items:center;opacity:1;transition:opacity .35s ease}.status-fade{opacity:0}.status:not(:empty){background:#edf4ff}.status.error{color:#a83f39;background:#fff0ef}.status.success{color:#267352;background:#eaf8f0}.library-hidden .library-panel{display:none}.library-hidden .workspace{grid-template-columns:1fr}.library-hidden .editor-panel{padding-left:clamp(28px,14vw,180px);padding-right:clamp(28px,14vw,180px)}.library-toggle{width:44px;padding:0;font-size:22px;line-height:1}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}dialog{border:0;border-radius:14px;padding:26px;background:var(--surface);color:var(--text);box-shadow:0 18px 60px #15223530}dialog::backdrop{background:#17223366}dialog h2{margin:0;font-size:20px}dialog p{color:var(--muted)}.dialog-actions .button{font-size:12px}@media(max-width:700px){.app-shell{padding:22px 14px}.workspace{grid-template-columns:1fr;min-height:0}.library-panel{border-right:0;border-bottom:1px solid var(--line)}.editor-panel{padding:36px 22px;min-height:520px}.topbar{align-items:flex-start}.topbar h1{font-size:27px}.top-actions{flex-wrap:wrap;justify-content:flex-end}.topbar .button{font-size:12px;padding:9px}.editor-heading{margin-bottom:30px}.editor-form textarea{min-height:220px}.library-hidden .editor-panel{padding-left:22px;padding-right:22px}}
