.notes-workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.notes-pages { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-muted); }
.notes-document { min-width: 0; }
.notes-current-title { margin: 0 0 16px; font-size: 19px; overflow-wrap: anywhere; }
.notes-toolbar { display: flex; gap: 8px; margin-bottom: 16px; }
.notes-toolbar button { flex: 1; padding: 8px 5px; font-size: 13px; text-align: center; background: var(--accent-soft); color: var(--accent); }
.notes-tree, .notes-children { list-style: none; padding: 0; margin: 0; }
.notes-children { margin-left: 13px; padding-left: 8px; border-left: 1px solid var(--border); }
.notes-row { display: flex; align-items: center; gap: 2px; margin: 4px 0; min-height: 40px; border: 2px solid transparent; border-radius: 6px; cursor: grab; }
.notes-row button { font-size: 12px; padding: 7px 4px; }
.notes-row .notes-name { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; padding: 8px 6px; }
.notes-row [data-note-action="delete"] { color: var(--danger); }
.notes-root-drop { border: 1px dashed var(--border); margin-top: 20px; padding: 12px 8px; font-size: 12px; color: var(--muted); text-align: center; border-radius: 6px; }
.notes-drop-before { border-top-color: var(--accent); }
.notes-drop-after { border-bottom-color: var(--accent); }
.notes-drop-inside { background: var(--accent-soft); border-color: var(--accent); }
.notes-dragging { opacity: .45; }
.notes-message, .notes-empty { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.notes-pages button:disabled { opacity: .5; cursor: wait; }
.notes-dialog { width: min(430px, calc(100vw - 32px)); border: 1px solid var(--border); border-radius: 10px; padding: 24px; color: var(--text); background: var(--surface); }
.notes-dialog::backdrop { background: rgb(15 23 42 / 45%); }
.notes-dialog h2 { margin: 0 0 20px; font-size: 20px; }
.notes-dialog form { display: grid; gap: 16px; }
.notes-dialog label { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.notes-dialog input, .notes-dialog select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; }
.notes-dialog p { font-size: 14px; overflow-wrap: anywhere; }
.notes-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.notes-dialog-actions [type="submit"] { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 1050px) { .notes-workspace { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; } .notes-row { flex-wrap: wrap; } .notes-row .notes-name { flex-basis: 100%; } }
@media (max-width: 760px) { .notes-workspace { grid-template-columns: 1fr; } .notes-tree { max-height: 35vh; overflow: auto; } }
