:root{--bg:#0b0d10;--panel:#12151a;--panel2:#171b21;--line:#262c34;--text:#f4f6f8;--muted:#8f98a5;--accent:#d7ff5f;--danger:#ff7b7b;--ok:#8ee6a2}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}.auth-body{min-height:100vh;background:radial-gradient(circle at 20% 10%,#202830 0,transparent 35%),var(--bg)}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(440px,100%);padding:34px;border:1px solid var(--line);border-radius:24px;background:rgba(18,21,26,.94);box-shadow:0 20px 80px rgba(0,0,0,.35)}.brand-mark{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:var(--accent);color:#111;font-weight:900;font-size:24px;margin-bottom:28px}.brand-mark.small{width:34px;height:34px;border-radius:11px;font-size:15px;margin:0}.eyebrow{font-size:11px;letter-spacing:.16em;color:var(--muted);font-weight:800}.auth-card h1,.topbar h1{margin:6px 0 8px}.muted{color:var(--muted);line-height:1.6}.auth-card form{display:grid;gap:16px;margin-top:28px}.auth-card label{display:grid;gap:8px;color:#cbd1d8;font-size:13px;font-weight:700}.auth-card input{width:100%;background:#0d1014;border:1px solid var(--line);color:var(--text);padding:14px 15px;border-radius:12px;outline:none}.auth-card input:focus{border-color:#66723b;box-shadow:0 0 0 3px rgba(215,255,95,.08)}button{border:0;background:var(--accent);color:#111;padding:14px;border-radius:12px;font-weight:900;cursor:pointer}.alert,.success{margin-top:18px;padding:12px 14px;border-radius:10px;font-size:13px}.alert{background:rgba(255,123,123,.1);color:#ffb3b3;border:1px solid rgba(255,123,123,.22)}.success{background:rgba(142,230,162,.1);color:#b7f6c7;border:1px solid rgba(142,230,162,.2)}.secure-note{margin-top:22px;font-size:12px;color:var(--muted);text-align:center}.app-shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{border-right:1px solid var(--line);padding:22px 16px;display:flex;flex-direction:column;background:#0d1014}.brand{display:flex;align-items:center;gap:10px;padding:0 8px 24px}.sidebar nav{display:grid;gap:4px}.sidebar nav a{display:flex;justify-content:space-between;padding:11px 12px;border-radius:10px;color:#aeb6c0;font-size:14px}.sidebar nav a:hover,.sidebar nav a.active{background:var(--panel2);color:var(--text)}.logout{margin-top:auto;padding:12px;color:#aaa}.content{padding:34px;max-width:1220px;width:100%;margin:0 auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px}.user-pill{border:1px solid var(--line);background:var(--panel);padding:9px 12px;border-radius:999px;color:#b8c0c9;font-size:12px}.quick-note{margin-top:32px;border:1px solid var(--line);background:var(--panel);padding:18px 20px;border-radius:16px;display:flex;justify-content:space-between;color:#dfe4e8}.quick-note span{color:var(--muted);font-size:13px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.stats-grid article{border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:20px}.stats-grid span{display:block;color:var(--muted);font-size:12px}.stats-grid strong{font-size:28px;display:block;margin-top:12px}.stats-grid strong.ok{font-size:14px;color:#e7d17d}.empty-card{margin-top:18px;border:1px dashed #39414b;border-radius:18px;padding:56px 26px;text-align:center;background:rgba(18,21,26,.55)}.empty-card p{color:var(--muted);max-width:600px;margin:8px auto}.empty-icon{font-size:28px}@media(max-width:760px){.app-shell{grid-template-columns:1fr}.sidebar{display:none}.content{padding:20px}.topbar{align-items:flex-start;flex-direction:column}.quick-note{flex-direction:column;gap:8px}.stats-grid{grid-template-columns:1fr}.user-pill{max-width:100%;overflow:hidden;text-overflow:ellipsis}}

/* Phase 2 — notes + editor */
.quick-note-form{align-items:center}.quick-note-button{padding:0;background:transparent;color:var(--text);border-radius:0;font-size:15px;text-align:left}.quick-note-button:hover{color:var(--accent)}.phase-warning{margin-top:14px;padding:11px 14px;border-radius:12px;border:1px solid #3a3525;background:#19170f;color:#d9c987;font-size:12px}.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-top:20px}.note-card{min-height:180px;border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:18px;display:flex;flex-direction:column;transition:transform .16s ease,border-color .16s ease,background .16s ease}.note-card:hover{transform:translateY(-2px);border-color:#3e4752;background:#15191f}.note-card-top{height:20px;display:flex;align-items:center;justify-content:space-between}.note-card h2{font-size:17px;margin:14px 0 8px;overflow-wrap:anywhere}.note-card p{margin:0;color:#aab2bd;line-height:1.55;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.note-card time{margin-top:auto;padding-top:18px;color:#717b88;font-size:11px}.priority-dot{width:8px;height:8px;border-radius:999px;background:#89929d}.priority-low{background:#8dc8ff}.priority-normal{background:#89929d}.priority-high{background:#ffd66b}.priority-urgent{background:#ff8080}.pin-badge{font-size:9px;font-weight:900;letter-spacing:.12em;color:#cfe75c;background:rgba(215,255,95,.08);border:1px solid rgba(215,255,95,.16);border-radius:999px;padding:5px 7px}.notes-empty{margin-top:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-top:28px}.section-heading h2{font-size:16px;margin:0}.section-heading a{color:#aeb7c3;font-size:12px}.compact-grid{margin-top:12px}.editor-page{min-height:100vh;background:radial-gradient(circle at 50% -20%,#1d232b 0,transparent 38%),var(--bg)}.editor-shell{width:min(1000px,100%);min-height:100vh;margin:0 auto;padding:20px 26px 38px}.editor-topbar{min-height:52px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;border-bottom:1px solid var(--line)}.back-link{color:#b8c1cb;font-size:13px}.back-link:hover{color:var(--text)}.save-status{justify-self:center;font-size:11px;font-weight:800;color:#8f98a5;padding:6px 10px;border-radius:999px}.save-status[data-state="saving"]{color:#e6d07c}.save-status[data-state="dirty"]{color:#b8c0c9}.save-status[data-state="saved"]{color:#8ee6a2}.save-status[data-state="error"]{color:#ff9999;background:rgba(255,123,123,.07)}.editor-user{justify-self:end;color:#7f8996;font-size:11px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.note-editor{padding:30px 4px 70px}.editor-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:26px}.tool-field{display:flex;align-items:center;gap:8px;color:#7f8996;font-size:11px}.tool-field select{appearance:none;border:1px solid var(--line);background:var(--panel);color:#dce2e8;border-radius:10px;padding:8px 30px 8px 10px;outline:none}.pin-toggle{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);background:var(--panel);border-radius:10px;color:#b8c1cb;font-size:11px;cursor:pointer}.pin-toggle input{accent-color:var(--accent)}.updated-label{margin-left:auto;color:#65707d;font-size:10px}.editor-title{display:block;width:100%;border:0;outline:0;background:transparent;color:var(--text);font:800 clamp(28px,5vw,48px)/1.12 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding:0;margin:0 0 26px}.editor-title::placeholder{color:#4f5863}.editor-body{display:block;width:100%;min-height:56vh;resize:none;border:0;outline:0;background:transparent;color:#d7dde4;font:400 16px/1.8 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding:0;overflow:hidden}.editor-body::placeholder{color:#515a65}.editor-footer{border-top:1px solid var(--line);padding-top:14px;display:flex;justify-content:space-between;gap:20px;color:#65707d;font-size:10px}@media(max-width:760px){.notes-grid{grid-template-columns:1fr}.editor-shell{padding:12px 16px 26px}.editor-topbar{grid-template-columns:auto 1fr auto}.editor-user{display:none}.save-status{justify-self:end}.note-editor{padding-top:22px}.updated-label{width:100%;margin-left:0}.editor-footer{flex-direction:column;gap:4px}.editor-body{min-height:60vh}}
