:root{font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;color:#273344;background:#f7f9fc;font-synthesis:none;font-size:14px;--muted:#8290a3;--blue:#4278dc;--line:#e8edf4;--selection:rgba(89,136,220,.28);--tag-bg:#e8f0ff;--tag-bg-hover:#d9e6fc;--tag-fg:#3b70bc}
/* Text selection: a soft translucent accent so the text keeps its own colour (syntax colours, headings, links). */
::selection{background:var(--selection)}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #6798ed;outline-offset:3px}input:focus-visible,textarea:focus-visible{outline:2px solid #8ab2f4;outline-offset:3px}svg{width:19px;height:19px;flex-shrink:0}button{border:0}button:disabled{cursor:default}a{color:inherit;text-decoration:none}.workspace{min-height:100dvh;display:grid;grid-template-columns:236px minmax(0,1fr)}
.sidebar{background:#fff;border-right:1px solid var(--line);padding:31px 20px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100dvh}.brand{display:flex;align-items:center;gap:10px;font-size:24px;letter-spacing:-1px;font-weight:750;padding:0 10px}.brand-mark{display:grid;place-items:center;background:#eaf1ff;color:#5486dc;border-radius:12px;width:39px;height:39px}.brand-mark svg{width:25px;height:25px}.brand-light{font-weight:400;color:#7c8ba0;margin-left:3px}.workspace-label{display:flex;align-items:center;gap:10px;margin:34px 5px 23px}.workspace-avatar{width:33px;height:33px;border-radius:10px;background:#edf1f8;color:#66768e;display:grid;place-items:center;font-weight:650}.workspace-label strong{font-size:12px;font-weight:650}.workspace-label small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.workspace-dot{width:6px;height:6px;border-radius:50%;background:#6da891;margin-left:auto}.primary{background:var(--blue);color:white;border-radius:9px;box-shadow:0 4px 9px #4278dc20}.primary:hover{background:#3268cb}.new-note{height:43px;display:flex;align-items:center;gap:9px;padding:0 13px;font-weight:550}.key-hint{margin-left:auto;opacity:.6}.nav-label{font-size:9px;font-weight:700;letter-spacing:1.5px;color:#9aa5b5;margin:30px 12px 11px}.nav-item{background:transparent;display:flex;align-items:center;gap:11px;width:100%;padding:12px;border-radius:8px;font-size:12px;text-align:left;margin-bottom:3px;color:#718095}.nav-item:hover{background:#f5f7fb}.nav-item.active{background:#edf3ff;color:#4075d2;font-weight:600}.count{margin-left:auto;font-size:10px;background:#e3ecfc;border-radius:5px;padding:2px 6px}.label-heading{display:flex;justify-content:space-between}.label-dot{width:8px;height:8px;border-radius:50%;margin:0 5px}.label-dot.blue{background:#78a0e6}.label-dot.lilac{background:#ae98d6}.label-dot.green{background:#7db69c}.sidebar-bottom{margin-top:auto;padding-top:35px}.local-card{border:1px solid var(--line);background:linear-gradient(140deg,#f7faff,#fff);padding:15px;border-radius:12px}.local-icon{display:block;color:#7e9bc3;margin-bottom:11px}.local-card strong{font-size:12px}.local-card p{font-size:11px;line-height:1.7;color:var(--muted);margin:7px 0 13px}.text-button{display:flex;align-items:center;gap:10px;color:var(--blue);background:none;padding:0;font-size:11px;font-weight:600}.text-button svg{width:15px;height:15px}.github-button{background:white;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;gap:8px;font-size:11px;padding:11px;width:100%;margin:15px 0}.github-button:hover{background:#f6f8fc}.github-button svg:last-child{margin-left:auto;width:13px;color:#99a4b5}.sidebar-footer{display:flex;align-items:center;gap:7px;color:#97a3b4;font-size:10px;padding:0 3px}.sidebar-footer>span:last-child{margin-left:auto}.status-dot{height:6px;width:6px;border-radius:50%;background:#ad98cf;display:inline-block;flex-shrink:0}
main{min-width:0;display:flex;flex-direction:column;min-height:100dvh}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 33px;background:#ffffff70}.breadcrumb{display:flex;align-items:center;gap:13px;font-size:11px;color:#91a0b3}.breadcrumb svg{width:12px;height:12px}.breadcrumb strong{color:#536277;font-weight:500}.demo-badge{font-size:10px;display:flex;align-items:center;gap:7px;color:#8b7ba5;background:#f0edf6;border:1px solid #e8e1f1;padding:6px 10px;border-radius:20px}.content-layout{display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-height:0}.content-layout.editor-open{grid-template-columns:minmax(0,1fr) 365px}.collection{padding:37px 32px 20px;min-width:0}.collection-heading{display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:600;color:#a1adbe;margin:0 0 12px}.collection h1{font-size:28px;font-weight:650;letter-spacing:-1px;margin:0 0 9px}.subtitle{font-size:12px;color:#8e9aac;margin:0;line-height:1.7}.collection-tools{display:flex;gap:12px;align-items:center;margin:28px 0 24px}.search{display:flex;align-items:center;gap:10px;border:1px solid #e2e8f1;border-radius:9px;background:white;flex:1;padding:0 12px;height:41px;min-width:0}.search svg{width:16px;color:#95a1b3}.search input{background:transparent;border:0;min-width:0;width:100%;font-size:11px;color:#485970;outline:none}.search:focus-within{border-color:#8aabe0;box-shadow:0 0 0 3px #e6edfa}.search input::placeholder{color:#a3adbb}.view-switch{display:flex;border:1px solid #e3e9f1;border-radius:8px;padding:3px;background:#fff;gap:2px}.view-switch button{background:transparent;border-radius:5px;width:31px;height:31px;display:grid;place-items:center;color:#9aa6b7}.view-switch svg{width:15px;height:15px}.view-switch .chosen{background:#edf3fe;color:#5382d1}.list-heading{display:flex;justify-content:space-between;font-size:10px;color:#9aa5b5;margin:0 1px 14px}.list-heading span:first-child{color:#7c8ba0;font-weight:550}.note-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.note-card{text-align:left;min-width:0;display:flex;flex-direction:column;border:1px solid #e3e9f3;border-radius:12px;padding:18px;min-height:212px;transition:transform .18s,border-color .18s,box-shadow .18s;background:#fff;position:relative}.note-card:hover{transform:translateY(-2px);box-shadow:0 7px 18px #254a7510}.note-card.selected{border-color:#8eafe9;box-shadow:0 0 0 2px #81a9ef18}.note-card.blue{background:#edf4ff}.note-card.green{background:#f0f7f2}.note-card.lilac{background:#f4f0fa}.note-card.sand{background:#fcf7ed}.note-card.rose{background:#fcf1f1}.note-card-top{display:flex;align-items:center;justify-content:space-between;color:#94a2b7;min-height:17px}.note-kind{display:flex;align-items:center;gap:5px;font-size:9px}.note-kind svg{width:12px;height:12px}.note-card-top>svg{width:13px;height:13px;color:#7185a6}.note-card h2{font-size:14px;line-height:1.5;font-weight:600;letter-spacing:-.2px;margin:15px 0 9px;overflow-wrap:anywhere}.note-excerpt{white-space:pre-line;font-size:11px;line-height:1.85;color:#7e8a9d;margin:0 0 17px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow-wrap:anywhere}.note-card-footer{margin-top:auto;display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#a3aab7}.tag{font-size:9px;border:1px solid #a0afc226;color:#7d8a9e;border-radius:5px;padding:4px 7px;background:#ffffff70}.list-view{grid-template-columns:1fr}.list-view .note-card{min-height:140px}.list-view .note-excerpt{-webkit-line-clamp:1}.list-view .note-card h2{margin-top:8px}.collection-footer{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:30px;color:#adb7c6;font-size:10px;text-align:center;line-height:1.6}.collection-footer svg{width:17px}.empty-state{text-align:center;padding:60px 15px;color:#93a0b2}.empty-state>svg{width:30px;height:30px}.empty-state h2{font-size:16px;color:#66768b}.empty-state p{font-size:12px}.empty-state button{margin:20px auto}
.editor{background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.editor-header{height:55px;border-bottom:1px solid var(--line);padding:0 20px;display:flex;align-items:center;justify-content:space-between}.editor-header>span{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:1.4px;color:#94a1b4}.editor-header>span svg{width:14px}.icon-button{display:grid;place-items:center;width:30px;height:30px;border-radius:6px;background:transparent;color:#94a1b3}.icon-button:hover{background:#edf2f8;color:#5275ac}.icon-button svg{width:17px;height:17px}.editor-body{padding:23px 25px 0;display:flex;flex-direction:column;flex:1;min-height:520px}.editor-meta{display:flex;align-items:center;justify-content:space-between}.editor-meta .bookmarked{color:#5d89cd;background:#f1f5fc}.note-title{font-size:22px;font-weight:650;letter-spacing:-.6px;border:0;background:transparent;min-width:0;width:100%;padding:0;margin:19px 0 10px;color:#344155}.file-label{font-size:10px;color:#a4aebc;margin:0 0 22px}.editor-toolbar{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.editor-tabs{display:flex;gap:20px}.editor-tabs button{font-size:11px;background:transparent;border-bottom:2px solid transparent;padding:12px 0;color:#99a4b5}.editor-tabs .active{border-color:#5988dc;color:#5380ca}.markdown-badge{font-size:12px;color:#9ca7b6;font-weight:700}.markdown-editor{resize:vertical;flex:1;width:100%;min-height:370px;border:0;background:transparent;color:#738196;font-family:"Cascadia Code",Consolas,monospace;font-size:12px;line-height:1.95;padding:0 0 24px;tab-size:2}.markdown-editor::placeholder{color:#a9b3c1}.markdown-preview{flex:1;font-size:12px;line-height:1.9;color:#6d7c91;overflow-wrap:anywhere;padding-bottom:25px}.markdown-preview h1{font-size:22px;line-height:1.4;color:#39495f;letter-spacing:-.5px;margin:0 0 15px}.markdown-preview h2{font-size:16px;color:#465770;margin:18px 0 8px}.markdown-preview h3{font-size:14px;color:#465770}.markdown-preview p{margin:4px 0}.paragraph-gap{height:9px}.markdown-preview blockquote{border-left:3px solid #b4c9ec;padding:4px 0 4px 8px;margin:18px 0;color:#91a0b5;font-style:italic}.markdown-preview .done{text-decoration:line-through;color:#9cabb9}.editor-footer{padding:13px 24px;border-top:1px solid var(--line);font-size:9px;display:flex;justify-content:space-between;color:#9eaaba;gap:10px}.demo-notice{display:flex;align-items:center;gap:7px;font-size:10px;padding:11px 22px;color:#939eb0;border-top:1px solid var(--line);background:#f7f9fc;line-height:1.6}.demo-notice svg{width:13px;height:13px}@keyframes notice-pop{from{opacity:0;transform:translate(-50%,12px) scale(.98)}to{opacity:1;transform:translate(-50%,0) scale(1)}}.notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#fff;border:1px solid #dce5f3;box-shadow:0 10px 50px #21374a20;border-radius:12px;width:min(550px,calc(100% - 32px));padding:15px;display:flex;align-items:flex-start;gap:12px;z-index:20;animation:notice-pop .22s cubic-bezier(.16,1,.3,1) forwards;transition:opacity .2s ease,transform .2s ease}.notice>svg{color:#5b85cc;margin-top:4px}.notice p{font-size:12px;line-height:1.7;margin:0;flex:1}.notice button{flex-shrink:0}.mobile-menu,.add-mobile,.sidebar-scrim{display:none}
@media(min-width:1550px){.content-layout.editor-open{grid-template-columns:minmax(0,1fr) 420px}.note-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.collection{padding:42px}.note-card{min-height:225px}}
@media(max-width:1180px){.workspace{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding-left:14px;padding-right:14px}.content-layout.editor-open{grid-template-columns:minmax(0,1fr) 320px}.collection{padding:28px 22px}.note-grid{gap:12px}.note-card{padding:14px}.editor-body{padding:20px}.collection h1{font-size:25px}.eyebrow{font-size:8px;letter-spacing:1px}.subtitle{font-size:11px}}
@media(max-width:1000px){.content-layout.editor-open{grid-template-columns:minmax(0,1fr) 320px}.editor-open .note-grid{grid-template-columns:1fr}.editor-open .note-card{min-height:170px}.editor-open .note-excerpt{-webkit-line-clamp:2}.collection-tools{gap:6px}.view-switch{display:none}}
@media(max-width:760px){.workspace{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;width:236px;height:100dvh;z-index:12;transform:translateX(-100%);transition:transform .2s}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-open .sidebar-scrim{display:block;position:fixed;inset:0;z-index:11;background:#24364b45}.mobile-menu{display:grid}.breadcrumb{gap:9px}.topbar{height:62px;padding:0 17px}.breadcrumb>span{display:none}.breadcrumb>svg{display:none}.collection{padding:28px 20px}.note-grid{gap:12px}.content-layout.editor-open{display:block}.editor-open .collection{display:none}.editor{border:0;min-height:calc(100dvh - 112px)}.editor-body{padding:23px;min-height:0}.markdown-editor{min-height:calc(100dvh - 375px);resize:none}.markdown-preview{min-height:calc(100dvh - 375px)}.editor-header{padding:0 20px}.demo-notice{font-size:9px;padding:10px 17px}.add-mobile{display:grid;background:#eaf1ff;color:#4c7fd0;width:38px;height:38px}.view-switch{display:flex}.collection-footer{margin-bottom:20px}.editor-open .note-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.note-title{font-size:24px}.note-card{min-height:200px}.notice{bottom:15px}}
@media(max-width:390px){.note-grid{grid-template-columns:1fr}.collection h1{font-size:25px}.eyebrow{font-size:7px}.view-switch{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
