:root{--bg:#0f1115;--surface:#171a21;--surface-2:#1f232c;--border:#2a2f3a;--text:#e8eaed;--muted:#9aa3b2;--accent:#3b82f6;--accent-strong:#2563eb;--ok:#16a34a;--err:#dc2626}*{box-sizing:border-box}body,html{margin:0;padding:0;background:var(--bg);color:var(--text);font:15px/1.5 ui-sans-serif,system-ui,Segoe UI,Roboto,sans-serif}h1{font-size:22px;margin:0 0 4px}p{margin:0}code{font-family:ui-monospace,Cascadia Mono,Consolas,monospace;font-size:.92em}.page{max-width:1100px;margin:0 auto;padding:24px 20px 64px;display:flex;flex-direction:column;gap:16px}.muted{color:var(--muted)}.small{font-size:13px}.row{align-items:center;gap:10px}.head,.row{display:flex;flex-wrap:wrap}.head{justify-content:space-between;align-items:flex-start;gap:20px}.head p{max-width:62ch}.headRight{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.headRight .small{display:inline-flex;align-items:center;gap:6px}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px}.pick,button{background:var(--accent-strong);color:#fff;border:0;border-radius:10px;padding:10px 18px;font:inherit;font-weight:600;cursor:pointer}.pick:hover,button:hover{background:var(--accent)}.pick.disabled,button:disabled{opacity:.55;cursor:default}.drop{border:2px dashed var(--border);border-radius:16px;padding:56px 20px;text-align:center;background:var(--surface);transition:border-color .15s,background .15s}.drop.over{border-color:var(--accent);background:var(--surface-2)}.progress{display:flex;align-items:center;gap:12px}.spinner{width:18px;height:18px;border-radius:50%;flex:none;border:2px solid var(--border);border-top-color:var(--accent);animation:spin .8s linear infinite}.spinner.tiny{width:12px;height:12px;border-width:2px}@keyframes spin{to{transform:rotate(1turn)}}.notice{background:#2a1515;border:1px solid #5c2626;color:#fca5a5;border-radius:10px;padding:12px 14px}.bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.pill{background:var(--surface-2);border:1px solid var(--border);color:var(--muted);border-radius:999px;padding:3px 12px;font-size:13px;font-weight:600}.pill.ok{color:#86efac;border-color:#2f6b45}.segmented{display:inline-flex;background:var(--surface-2);border:1px solid var(--border);border-radius:22px;padding:4px;gap:4px}.segmented button{background:transparent;color:var(--muted);border-radius:999px;padding:7px 16px;font-size:14px}.segmented button:hover{background:var(--surface);color:var(--text)}.segmented button.active{background:var(--accent-strong);color:#fff}.viewer{position:relative;display:flex;justify-content:center;background:var(--surface-2)}.viewer img{max-width:100%;max-height:72vh;object-fit:contain;border-radius:8px;display:block}.outline{position:absolute;inset:16px;pointer-events:none}.outline path{fill:rgba(59,130,246,.14);stroke:var(--accent);stroke-width:6;vector-effect:non-scaling-stroke}.outline circle{fill:var(--accent)}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));grid-gap:12px;gap:12px}.stat{display:flex;flex-direction:column;gap:2px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.stack>*+*{margin-top:12px}.notes{background:var(--surface-2);border:1px solid var(--border);border-radius:14px;padding:28px 32px;font-size:15px;line-height:1.55}.n-title{margin:0 0 10px;font-size:24px;font-weight:700;letter-spacing:-.015em}.n-summary{margin:0 0 10px;color:var(--text)}.n-meta{display:flex;flex-wrap:wrap;gap:4px 26px;margin:0 0 24px;color:var(--muted)}.n-meta strong{color:var(--text);font-weight:600}.n-head{margin:28px 0 12px;font-size:17px;font-weight:700;letter-spacing:-.01em;padding-bottom:8px;border-bottom:1px solid var(--border)}.notes>.n-head:first-child{margin-top:0}.n-bullets,.n-tasks{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}.n-bullets li{padding-left:16px;position:relative}.n-bullets li:before{content:"•";position:absolute;left:2px;color:var(--muted)}.n-tasks li{display:flex;gap:11px;align-items:baseline}.n-box{color:var(--accent);flex:none;font-size:16px;line-height:1}.notes b,.notes strong{font-weight:800}.notes [style*="font-weight: bold"],.notes [style*="font-weight:bold"]{font-weight:800!important}.n-p{margin:0 0 12px}.n-title+.n-p{margin-bottom:16px}.n-rule{border:0;border-top:1px solid var(--border);margin:24px 0 14px}.n-footer{margin:0;color:var(--muted);font-size:13px;font-style:italic}.text-block{background:var(--surface-2);border-radius:10px;padding:14px;max-height:50vh;overflow:auto}.text-block pre{margin:0;white-space:pre-wrap;word-break:break-word;font-size:13px}button.ghost{background:transparent;border:1px solid var(--border);color:var(--muted)}button.ghost:hover{background:var(--surface-2);color:var(--text)}button.small{padding:6px 12px;font-size:13px}@media (max-width:640px){.page{padding:16px 16px 48px}.head{flex-direction:column;align-items:stretch}}.pill.err{color:#fca5a5;border-color:#5c2626}.strip{display:flex;gap:10px;flex-wrap:wrap}.strip .thumb{position:relative;padding:0;background:var(--surface-2);border:2px solid var(--border);border-radius:8px;overflow:hidden;width:72px;height:96px;cursor:pointer}.strip .thumb:hover{border-color:var(--muted);background:var(--surface-2)}.strip .thumb.active{border-color:var(--accent)}.strip .thumb img{width:100%;height:100%;object-fit:cover;display:block}.strip .thumb span{position:absolute;left:4px;bottom:4px;background:rgba(0,0,0,.66);color:#fff;border-radius:5px;padding:0 6px;font-size:11px;font-weight:600}.n-lines{display:flex;flex-direction:column;gap:3px;margin:0 0 12px}.n-lines p{margin:0}.n-sub{margin:18px 0 7px;font-size:16px;font-weight:700}.n-sub+.n-bullets{margin-left:2px}.n-head+.n-sub{margin-top:4px}.editor{display:flex;flex-direction:column;gap:10px}.toolbar{flex-wrap:wrap;gap:8px 14px;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:8px 10px}.toolbar,.toolbar .group{display:flex;align-items:center}.toolbar .group{gap:6px}.toolbar .group.right{margin-left:auto}.toolbar button{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:7px;padding:5px 10px;min-width:32px;font-size:14px;line-height:1.2}.toolbar button:hover{background:var(--surface-2);border-color:var(--muted)}.toolbar .group.right button:last-child,.toolbar button.on{background:var(--accent-strong);border-color:var(--accent-strong);color:#fff}.toolbar .group.right button:last-child{font-weight:600}.toolbar .swatch{width:26px;min-width:26px;height:26px;padding:0;border-radius:6px}.toolbar .swatch.hl{border-radius:4px}.notes.editing{outline:none;border-color:var(--accent);cursor:text}.notes.editing:focus{box-shadow:0 0 0 3px rgba(59,130,246,.18)}.notes ol{margin:0 0 12px;padding-left:26px;list-style:decimal}.notes ol li{margin-bottom:6px}.notes ol li::marker{color:var(--muted)}.notes ul:not(.n-tasks):not(.n-bullets):not(.checklist){margin:0 0 12px;padding-left:24px;list-style:disc}.notes ul:not(.n-tasks):not(.n-bullets):not(.checklist) li{margin-bottom:6px}.notes ul:not(.n-tasks):not(.n-bullets):not(.checklist) li::marker{color:var(--muted)}.notes ul.checklist{margin:0 0 12px;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}.notes ul.checklist li{display:flex;gap:10px;align-items:baseline}.notes ul.checklist .n-box{color:var(--accent);flex:none}.n-ordered{margin:0 0 12px;padding-left:26px;list-style:decimal}.n-ordered li{margin-bottom:6px;line-height:1.55}.n-ordered li::marker{color:var(--muted)}.share{position:relative;display:inline-flex}.share-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:20;min-width:190px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:6px;display:flex;flex-direction:column;gap:2px;box-shadow:0 14px 40px rgba(0,0,0,.35)}.share-item{display:flex;align-items:center;gap:10px;width:100%;background:transparent;border:0;border-radius:8px;padding:9px 12px;font:inherit;font-size:14px;font-weight:600;color:var(--text);text-align:left;cursor:pointer}.share-item:hover{background:var(--surface-2)}.share-ic{width:17px;height:17px;flex:none;opacity:.8}.share-item:hover .share-ic{opacity:1}.share-item.sep{margin-top:5px;padding-top:12px;border-top:1px solid var(--border);border-radius:0 0 8px 8px}.notes [style*=background-color]{color:#16181d}.toolbar .cmenus{position:relative}.toolbar button.cmenu{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;min-width:0}.cmenu-a{display:inline-block;line-height:0;padding-bottom:2px;border-bottom:3px solid}.cmenu-a svg{width:15px;height:15px;display:block}.cmenu-caret{font-size:9px;opacity:.65;line-height:1}.cmenu-pop{position:absolute;z-index:40;top:calc(100% + 6px);left:0;display:grid;grid-template-columns:repeat(3,auto);grid-gap:6px;gap:6px;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:7px;box-shadow:0 10px 28px rgba(0,0,0,.22)}.cmenu-pop .swatch{border:1px solid var(--border)}.cmenu-pop .swatch.none{background:var(--surface-2);font-size:13px}.rn-toast{position:fixed;z-index:2000;left:50%;transform:translateX(-50%);bottom:calc(22px + env(safe-area-inset-bottom, 0px));max-width:min(92vw,420px);background:#fff;color:#000;padding:9px 16px;border-radius:12px;border:1px solid rgba(0,0,0,.1);box-shadow:0 8px 24px rgba(0,0,0,.18);font-size:14.5px;font-weight:700;text-align:center;animation:rn-toast-in .18s ease-out;pointer-events:none}.rn-toast.bad{color:#8d2525}@keyframes rn-toast-in{0%{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%)}}@media (prefers-reduced-motion:reduce){.rn-toast{animation:none}}