.personal-notes{margin-top:24px;color:var(--ink)}
.notes-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.notes-toolbar p{margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.notes-toolbar-actions,.notes-editor-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.notes-layout{display:grid;grid-template-columns:minmax(230px,300px) minmax(0,1fr);gap:20px;align-items:start}
.notes-index,.notes-editor,.notes-empty{background:var(--white);border:1px solid var(--line);border-radius:14px;min-width:0}
.notes-index{padding:18px}
.notes-search-label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}
.notes-index .control{width:100%;background:var(--surface-inset,var(--white));color:var(--ink);border-color:var(--line)}
.notes-count{font-size:12px;color:var(--muted);margin:14px 0 10px}
.notes-list{display:grid;gap:8px;max-height:560px;overflow:auto;overscroll-behavior:contain}
.note-card{display:block;width:100%;text-align:left;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--ink);padding:13px;cursor:pointer;font:inherit}
.note-card:hover{background:var(--bg)}
.note-card[aria-pressed="true"]{border-color:var(--green);background:var(--mint)}
.note-card strong{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.note-card p{margin:6px 0 8px;font-size:13px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.note-card time{font-size:11px;color:var(--muted)}
.notes-no-results{color:var(--muted);font-size:13px;line-height:1.7;margin:10px 0}
.notes-editor{padding:24px}
.notes-editor .field{margin:0 0 20px}
.notes-editor .control{width:100%;background:var(--surface-inset,var(--white));color:var(--ink);border:1px solid var(--line)}
.notes-editor textarea.control{min-height:330px;resize:vertical;line-height:1.8;font-size:15px;white-space:pre-wrap}
.notes-editor input.control{font-size:17px;font-weight:600}
.notes-editor-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px;line-height:1.7;margin:-6px 0 20px}
.notes-editor-actions{border-top:1px solid var(--line);padding-top:18px}
.notes-editor-actions .notes-delete{margin-left:auto;color:var(--red)}
.notes-empty{text-align:center;padding:72px 24px;color:var(--muted);line-height:1.8}
.notes-empty>svg{width:36px;height:36px;color:var(--green);margin-bottom:12px}
.notes-empty h2{font-size:19px;color:var(--ink);margin:0 0 8px}
.notes-empty p{font-size:14px;max-width:330px;margin:0 auto}
.notes-error{margin:0 0 18px;border:1px solid var(--red);border-radius:9px;padding:12px 16px;color:var(--red);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.personal-notes :focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:800px){.notes-layout{grid-template-columns:1fr}.notes-list{max-height:250px}.notes-editor{padding:20px}.notes-editor textarea.control{min-height:280px}.notes-empty{padding:36px 20px}.notes-toolbar-actions{width:100%}.notes-editor .control{font-size:16px}}
