/* ── Notes ── */
.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;}
.note-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:0;position:relative;box-shadow:var(--shadow);display:flex;flex-direction:column;transition:box-shadow var(--tr),border-color var(--tr);overflow:hidden;}
.note-card:hover{box-shadow:0 4px 20px rgba(0,0,0,.11);border-color:var(--muted);}
.note-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:14px 16px 10px;}
.note-card-title{font-family:'Unbounded',sans-serif;font-size:12px;font-weight:600;line-height:1.35;color:var(--text);word-break:break-word;flex:1;}
.note-card-title.untitled{color:var(--hint);font-style:italic;font-family:'Golos Text',sans-serif;font-weight:400;}
.note-card-actions{display:none;gap:2px;flex-shrink:0;}
.note-card:hover .note-card-actions{display:flex;}
.note-card-divider{height:1px;background:var(--border2);margin:0;}
.note-card-body{font-size:13px;line-height:1.65;word-break:break-word;color:var(--text);white-space:pre-wrap;padding:10px 16px;flex:1;}
.note-card-body a{color:#3B6FD4;text-decoration:none;border-bottom:1px solid rgba(59,111,212,.3);transition:border-color var(--tr),color var(--tr);}
.note-card-body a:hover{color:#2450a8;border-bottom-color:#3B6FD4;}
[data-theme="dark"] .note-card-body a{color:#7AAAF5;border-bottom-color:rgba(122,170,245,.3);}
[data-theme="dark"] .note-card-body a:hover{color:#aac8ff;border-bottom-color:#7AAAF5;}
.note-card-links{display:flex;flex-wrap:wrap;gap:5px;padding:0 16px 10px;}
.note-link-chip{display:inline-flex;align-items:center;gap:4px;font-size:11px;padding:3px 8px;border-radius:20px;background:var(--surface2);border:1px solid var(--border);color:#3B6FD4;text-decoration:none;max-width:200px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition:background var(--tr);}
.note-link-chip:hover{background:var(--border);}
[data-theme="dark"] .note-link-chip{color:#7AAAF5;}
.note-card-footer{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;border-top:1px solid var(--border2);background:var(--surface2);}
.note-card-date{font-size:11px;color:var(--hint);}
.note-add-card{background:var(--surface);border:2px dashed var(--border);border-radius:var(--radius);padding:24px 16px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-size:13px;transition:background var(--tr),color var(--tr),border-color var(--tr);min-height:140px;}
.note-add-card:hover{background:var(--surface2);color:var(--text);border-color:var(--muted);}
.note-add-icon{font-size:28px;opacity:.45;}
.note-url-hint{font-size:11px;color:var(--muted);margin-top:4px;min-height:16px;}
.note-url-detected{color:#1A8A50;}
