.NotesDocumentationRoot {
    --notes-accent: #18c8c8;
    --notes-surface: #0e1014;
    --notes-surface-strong: #0b0d11;
    --notes-panel: rgba(255, 255, 255, 0.04);
    --notes-border: rgba(255, 255, 255, 0.08);
    --notes-text: var(--text-color, #e6ebf5);
    --notes-muted: var(--unselected-text-color, rgba(230, 235, 245, 0.62));
    --notes-shadow: 0 24px 52px rgba(0, 0, 0, 0.26);
    --office-accent: var(--notes-accent);
    --office-accent-alt: #3a7bff;
    --office-panel: var(--notes-panel);
    --office-input: var(--notes-panel);
    --office-border: var(--notes-border);
    --office-text: var(--notes-text);
    --office-muted: var(--notes-muted);
    min-height: 100%;
}

html.light-theme .NotesDocumentationRoot {
    --notes-surface: #ffffff;
    --notes-surface-strong: #f7f9fc;
    --notes-panel: rgba(48, 69, 96, 0.08);
    --notes-border: rgba(48, 69, 96, 0.14);
    --notes-text: var(--text-color, #304560);
    --notes-muted: var(--unselected-text-color, rgba(48, 69, 96, 0.7));
    --notes-shadow: 0 18px 38px rgba(48, 69, 96, 0.12);
}

.NotesDocumentationShell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    min-height: calc(100vh - 180px);
    padding: 18px;
}

.NotesDocumentationSidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 20px;
    border: 1px solid var(--notes-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(24, 200, 200, 0.08), transparent 38%),
        linear-gradient(180deg, var(--notes-surface-strong), var(--notes-surface));
    box-shadow: var(--notes-shadow);
}

.NotesDocumentationEyebrow {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--notes-muted);
}

.NotesDocumentationTitle {
    margin: 0;
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    color: var(--notes-text);
}

.NotesDocumentationLead {
    margin: 0;
    color: var(--notes-muted);
    line-height: 1.6;
}

.NotesDocumentationSidebarActions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.NotesDocumentationSidebarList {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.NotesDocumentationSidebarCard {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--notes-border);
    border-radius: 16px;
    background: var(--notes-panel);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.NotesDocumentationSidebarCard:hover {
    transform: translateY(-1px);
    border-color: rgba(24, 200, 200, 0.28);
}

.NotesDocumentationSidebarCard.is-active {
    border-color: rgba(24, 200, 200, 0.38);
    background: rgba(24, 200, 200, 0.12);
}

.NotesDocumentationSidebarCardTitle {
    font-weight: 600;
    color: var(--notes-text);
}

.NotesDocumentationSidebarCardMeta {
    font-size: 0.84rem;
    color: var(--notes-muted);
}

.NotesDocumentationSidebarEmpty {
    padding: 18px;
    border: 1px dashed var(--notes-border);
    border-radius: 16px;
    color: var(--notes-muted);
    text-align: center;
}

.NotesDocumentationMain {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    min-height: 0;
}

.NotesDocumentationTopbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--notes-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(58, 123, 255, 0.08), transparent 30%),
        linear-gradient(180deg, var(--notes-surface-strong), var(--notes-surface));
    box-shadow: var(--notes-shadow);
}

.NotesDocumentationTopbarTitle {
    margin: 0;
    color: var(--notes-text);
}

.NotesDocumentationTopbarMeta {
    margin: 0;
    color: var(--notes-muted);
}

.NotesDocumentationEditorHost {
    display: flex;
    min-width: 0;
    min-height: 0;
}

@media (max-width: 1040px) {
    .NotesDocumentationShell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .NotesDocumentationSidebarActions {
        grid-template-columns: 1fr;
    }
}
