/* ===== Notes (Notion-style) ===== */
.notes-wrap{ display:grid; grid-template-columns:240px 1fr; gap:0; height:calc(100vh - 120px); min-height:500px; background:var(--panel,#171b24); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.notes-side{ border-right:1px solid var(--line); display:flex; flex-direction:column; background:var(--panel-2,#12151c); }
.notes-side-head{ display:flex; align-items:center; justify-content:space-between; padding:16px 16px 10px; font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--text-4,#8a93a6); font-weight:600; }
.notes-new{ width:24px; height:24px; border-radius:6px; border:1px solid var(--line); background:var(--panel,#171b24); color:var(--text-2,#c9d1de); cursor:pointer; font-size:16px; line-height:1; }
.notes-new:hover{ background:var(--pink,#e0559b); color:#fff; border-color:var(--pink,#e0559b); }
.notes-list{ overflow-y:auto; flex:1; padding:4px 8px 12px; }
.notes-item{ display:block; width:100%; text-align:left; background:none; border:none; color:var(--text-2,#c9d1de); padding:9px 12px; border-radius:8px; cursor:pointer; font-size:14px; margin-bottom:2px; }
.notes-item:hover{ background:rgba(255,255,255,.04); }
.notes-item.active{ background:rgba(155,46,255,.14); color:#fff; }
.notes-item-title{ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.notes-side-empty{ padding:16px; font-size:13px; color:var(--text-4,#8a93a6); }
.notes-main{ overflow-y:auto; }
.notes-empty{ display:flex; align-items:center; justify-content:center; height:100%; color:var(--text-4,#8a93a6); font-size:14px; }
.notes-editor{ padding:28px 36px; max-width:820px; margin:0 auto; }
.notes-top{ display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.notes-title{ flex:1; background:none; border:none; color:var(--text-1,#e9edf5); font-size:28px; font-weight:700; font-family:var(--display); padding:0; }
.notes-title:focus{ outline:none; }
.notes-top-actions{ display:flex; align-items:center; gap:10px; }
.notes-saved{ font-size:12px; color:#2ecf8f; min-width:60px; text-align:right; }
.notes-preview-toggle{ background:var(--panel-2,#12151c); border:1px solid var(--line); color:var(--text-2,#c9d1de); border-radius:7px; padding:7px 14px; font-size:12px; cursor:pointer; }
.notes-preview-toggle:hover{ color:var(--text-1,#e9edf5); }
.notes-del{ background:none; border:none; color:var(--text-4,#8a93a6); cursor:pointer; padding:6px; }
.notes-del:hover{ color:#e5686d; }
.notes-del svg{ width:16px; height:16px; }
.notes-body{ width:100%; min-height:420px; background:none; border:none; color:var(--text-2,#c9d1de); font-size:15px; line-height:1.7; resize:vertical; font-family:inherit; }
.notes-body:focus{ outline:none; }
/* rendered markdown */
.notes-render{ font-size:15px; line-height:1.7; color:var(--text-2,#c9d1de); }
.notes-render h1{ font-size:26px; font-weight:700; margin:18px 0 10px; color:var(--text-1,#e9edf5); }
.notes-render h2{ font-size:21px; font-weight:700; margin:16px 0 8px; color:var(--text-1,#e9edf5); }
.notes-render h3{ font-size:17px; font-weight:600; margin:14px 0 6px; color:var(--text-1,#e9edf5); }
.notes-render h4{ font-size:15px; font-weight:600; margin:12px 0 4px; color:var(--text-1,#e9edf5); }
.notes-render p{ margin:8px 0; }
.notes-render ul, .notes-render ol{ margin:8px 0 8px 22px; }
.notes-render li{ margin:3px 0; }
.notes-render ul.md-tasks{ list-style:none; margin-left:4px; }
.notes-render .md-task input{ margin-right:8px; }
.notes-render code{ background:rgba(255,255,255,.08); padding:2px 6px; border-radius:5px; font-size:13px; }
.notes-render pre{ background:var(--panel-2,#12151c); border:1px solid var(--line); border-radius:8px; padding:12px 14px; overflow-x:auto; font-size:13px; margin:10px 0; white-space:pre-wrap; }
.notes-render blockquote{ border-left:3px solid var(--pink,#e0559b); padding-left:14px; color:var(--text-3,#b6bdca); margin:10px 0; }
.notes-render a{ color:#4a9eff; }
.notes-render hr{ border:none; border-top:1px solid var(--line); margin:16px 0; }
@media (max-width:720px){ .notes-wrap{ grid-template-columns:1fr; height:auto; } .notes-side{ display:none; } }
