.notes-workspace {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 14px;
    min-height: 440px;
}

.notes-sidebar {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
}

.notes-sidebar__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-list {
    align-content: start;
    max-height: 420px;
    overflow: auto;
    padding: 8px;
    background: rgba(6,12,20,.38);
}

.notes-list-item {
    width: 100%;
    text-align: left;
    display: grid;
    gap: 5px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    color: var(--text);
}

.notes-list-item:hover { background: rgba(255,255,255,.06); }
.notes-list-item.active {
    border-color: rgba(98,212,255,.38);
    background: linear-gradient(180deg, rgba(98,212,255,.12), rgba(98,212,255,.05));
}

.notes-list-item small { color: var(--muted); }

.notes-editor {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

#notesTitle,
#notesBody {
    background: linear-gradient(180deg, rgba(17,23,34,.96), rgba(12,17,27,.94));
    border-color: rgba(255,255,255,.1);
}

#notesTitle {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 16px;
}

#notesBody {
    min-height: 320px;
    border-radius: 18px;
    padding: 16px;
    line-height: 1.55;
}

@media (max-width: 860px) {
    .notes-workspace { grid-template-columns: 1fr; }
}
