﻿/* Meetings Page Specific Styles */
.dashboard {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.meetings-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    height: 100vh;
    background-color: var(--color-page-bg-flat);
    overflow: hidden;
    position: relative;
    font-family: var(--font-sans, sans-serif);
}

/* Export dropdown in topbar */
.meetings-export-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 2300;
}

/* Topbar Record button */
.topbar__record-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-md, 8px);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid var(--color-danger-alpha-25);
    background: var(--color-danger-alpha-08);
    color: var(--color-danger);
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.topbar__record-btn:hover {
    background: var(--color-danger-alpha-12);
    border-color: var(--color-danger-alpha-25);
    transform: translateY(-1px);
}

.topbar__record-btn.voice-fab--recording {
    background: var(--color-danger-alpha-20);
    border-color: var(--color-danger-alpha-25);
    color: var(--color-error-dark);
    animation: heroRecordGlow 2s ease-in-out infinite;
}

@keyframes heroRecordGlow {
    0%, 100% { box-shadow: 0 0 0 transparent; }
    50% { box-shadow: 0 4px 16px var(--color-danger-alpha-25); }
}

.topbar__record-btn.voice-fab--recording .voice-fab__pulse {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md, 8px);
    pointer-events: none;
    animation: fabPulseRing 1.5s ease-out infinite;
    border: 2px solid var(--color-danger-alpha-25);
}

.meetings-export-btn {
    min-height: 38px;
    padding: 0 14px 0 12px;
    border-radius: 12px;
    border: 1px solid var(--color-meetings-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.98) 100%);
    color: var(--color-meetings-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 10px 24px var(--color-slate-900-alpha-08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.meetings-export-btn:hover {
    transform: translateY(-1px);
    border-color: var(--color-blue-border);
    box-shadow: 0 14px 28px var(--color-slate-900-alpha-12);
}

.meetings-export-btn__chevron {
    width: 12px;
    height: 12px;
    color: var(--color-text-muted);
    transition: transform 0.18s ease, color 0.18s ease;
}

.meetings-export-wrapper.is-open .meetings-export-btn {
    border-color: var(--color-blue-border);
    background: linear-gradient(180deg, rgba(240, 244, 255, 0.98) 0%, rgba(233, 239, 255, 0.98) 100%);
    box-shadow: 0 16px 30px var(--color-slate-900-alpha-14);
}

.meetings-export-wrapper.is-open .meetings-export-btn__chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.meetings-export-popup {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: min(320px, calc(100vw - 32px));
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(99, 115, 154, 0.18);
    border-radius: 18px;
    box-shadow: 0 24px 48px var(--color-slate-900-alpha-12);
    padding: 12px;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.meetings-export-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meetings-export-group + .meetings-export-group {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(99, 115, 154, 0.12);
}

.meetings-export-group__label {
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.meetings-export-popup > div {
    display: flex;
    flex-direction: column;
}

.meetings-export-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    padding: 6px 10px 4px;
    pointer-events: none;
}

.meetings-export-option {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--color-text-sec);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: normal;
}

.meetings-export-option__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
    color: var(--color-primary);
}

.meetings-export-option[data-export="jpeg"] .meetings-export-option__icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(251, 191, 36, 0.08) 100%);
    color: var(--color-cursor-amber);
}

.meetings-export-option[data-export="svg"] .meetings-export-option__icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(52, 211, 153, 0.08) 100%);
    color: var(--color-success);
}

.meetings-export-option__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.meetings-export-option__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-meetings-dark);
}

.meetings-export-option__meta {
    font-size: 12px;
    line-height: 1.4;
    color: var(--color-text-sec);
}

.meetings-export-option--rich {
    align-items: center;
    padding: 8px 10px;
    min-height: 52px;
}

.meetings-export-option:hover {
    background: rgba(238, 244, 255, 0.92);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.meetings-export-option > svg,
.meetings-export-option__icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: currentColor;
}

@media (max-width: 980px) {
    .meetings-export-popup {
        left: 0;
        right: auto;
    }
}

@media (max-width: 720px) {
    .meetings-main .topbar__left {
        gap: 10px;
    }

    .meetings-main .topbar__page-title span,
    .meetings-main .topbar__record-btn span:not(.voice-fab__pulse),
    .meetings-main .avatars-inline {
        display: none;
    }

    .meetings-main .topbar__record-btn {
        width: 34px;
        height: 34px;
        padding: 0;
        justify-content: center;
    }

    .meetings-export-btn {
        padding-inline: 10px;
    }

    .meetings-export-popup {
        position: fixed;
        top: 58px;
        left: 12px;
        right: 12px;
        width: auto;
    }
}

/* Workspace Layout */
.meetings-workspace {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.main-view-area {
    flex: 1;
    display: flex;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.main-view-area > .whiteboard-area,
.main-view-area > .notes-view {
    flex: 1;
    min-width: 0;
}

.wb-text-toolbar {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-slate-200);
    border-radius: 10px;
    box-shadow: 0 10px 20px var(--color-slate-900-alpha-12);
    padding: 8px 10px;
}

.wb-text-toolbar select,
.wb-text-toolbar input[type="number"] {
    border: 1px solid var(--color-slate-200);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-slate-700);
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
    font-family: inherit;
}

.wb-text-toolbar input[type="number"] {
    width: 62px;
}

.wb-text-toolbar__btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-slate-200);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-slate-700);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.wb-text-toolbar__btn svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.wb-text-toolbar__btn:hover {
    background: var(--color-blue-light);
    border-color: var(--color-blue-border);
    color: var(--color-blue-600);
}

.wb-text-toolbar__btn.active {
    background: var(--color-meetings-light);
    border-color: var(--color-blue-border);
    color: var(--color-blue-600);
}

.wb-text-toolbar__color {
    width: 40px;
    height: 32px;
    border: 1px solid var(--color-slate-200);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--color-slate-700);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: var(--color-surface);
}

.wb-text-toolbar__color svg {
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.wb-text-toolbar__color input[type="color"] {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}



.whiteboard-area {
    flex: 1;
    position: relative;
    background-color: var(--color-slate-50);
    background-image: radial-gradient(var(--color-slate-300) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: 0px 0px;
}

/* Whiteboard Boards Overlay Navigation */
.wb-boards-wrapper {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 50;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wb-boards-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-lt);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    font-family: var(--font-sans);
}
.wb-boards-toggle-btn:hover { background: var(--color-surface-secondary); border-color: var(--color-border); }
.wb-boards-toggle-btn.active { background: var(--color-primary-alpha-04); border-color: var(--color-primary-alpha-12); color: var(--color-primary); }
.wb-boards-toggle-btn svg { width: 16px; height: 16px; stroke: currentColor; }

.wb-boards-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border-lt);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInSlide 0.15s ease-out;
}
@keyframes fadeInSlide {
    0% { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}

.wb-boards-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border-lt);
    background: var(--color-surface-secondary);
}
.wb-boards-panel__title {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-text-sec);
    text-transform: uppercase;
}

.wb-boards-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wb-boards-action-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-border-lt);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text-sec);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.wb-boards-action-btn svg {
    width: 15px;
    height: 15px;
}

.wb-boards-action-btn:hover {
    background: var(--color-primary-alpha-06);
    border-color: var(--color-primary-alpha-20);
    color: var(--color-primary);
}

.wb-boards-action-btn:focus-visible {
    outline: 2px solid var(--color-blue-border);
    outline-offset: 1px;
}

.wb-boards-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Left Toolbar */
.toolbar-left {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-surface);
    border-radius: 18px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 16px 32px var(--color-slate-900-alpha-08);
    border: 1px solid var(--color-meetings-border);
    z-index: 20;
}

.tool-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: none;
    background: transparent;
    color: var(--color-meetings-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.tool-btn:hover {
    background-color: var(--color-meetings-bg);
    color: var(--color-meetings-dark);
}

.tool-btn.active {
    background-color: var(--color-meetings-light);
    color: var(--color-meetings-blue);
    box-shadow: inset 0 0 0 1px var(--color-blue-border);
}

.tool-btn svg {
    width: 21px;
    height: 21px;
}

.board-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.board-action-btn:disabled:hover {
    background-color: transparent;
    color: var(--color-meetings-muted);
}

.shape-menu-container {
    position: relative;
}

.sticky-menu-container {
    position: relative;
}

.draw-menu-container {
    position: relative;
}

.shapes-popup {
    display: none;
    position: absolute;
    left: 56px;
    top: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border-lt);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 6px;
    flex-direction: column;
    gap: 4px;
    z-index: 50;
}

.sticky-colors-popup {
    display: none;
    position: absolute;
    left: 56px;
    top: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-meetings-border);
    border-radius: 0;
    box-shadow: 0 12px 24px var(--color-slate-900-alpha-12);
    padding: 10px;
    grid-template-columns: repeat(2, 48px);
    gap: 8px;
    z-index: 60;
}

.draw-colors-popup {
    display: none;
    position: absolute;
    left: 56px;
    top: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-meetings-border);
    border-radius: 10px;
    box-shadow: 0 12px 24px var(--color-slate-900-alpha-12);
    padding: 8px;
    grid-template-columns: repeat(4, 36px);
    gap: 8px;
    z-index: 60;
}

.draw-color-option-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px var(--color-slate-900-alpha-25);
}

.draw-color-option-btn.active {
    box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-blue-600);
}

.draw-color-custom-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: transparent;
    color: var(--color-slate-600);
    font-size: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.draw-color-custom-btn:hover {
    background: var(--color-slate-100);
}

.draw-all-colors-popup {
    display: none;
    position: absolute;
    left: 122px;
    top: calc(100% + 8px);
    width: 222px;
    background: var(--color-surface);
    border: 1px solid var(--color-meetings-border);
    border-radius: 10px;
    box-shadow: 0 12px 24px var(--color-slate-900-alpha-12);
    padding: 10px;
    z-index: 70;
}

.draw-all-colors-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-slate-600);
    margin: 0 0 8px;
}

.draw-color-spectrum {
    position: relative;
    width: 100%;
    height: 122px;
    border-radius: 8px;
    border: 1px solid var(--color-slate-300);
    cursor: crosshair;
    overflow: hidden;
    background: linear-gradient(to top, #000000, rgba(0, 0, 0, 0)), linear-gradient(to right, #ffffff, hsl(0, 100%, 50%));
}

.draw-color-spectrum-cursor {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid var(--color-surface);
    box-shadow: 0 0 0 1px var(--color-slate-dark-alpha-55);
    transform: translate(-6px, -6px);
    pointer-events: none;
}

.draw-color-hue-bar {
    position: relative;
    width: 100%;
    height: 12px;
    margin-top: 10px;
    border-radius: 999px;
    border: 1px solid var(--color-slate-900-alpha-25);
    background: linear-gradient(90deg,
        #ff0000 0%,
        #ffff00 17%,
        #00ff00 33%,
        #00ffff 50%,
        #0000ff 67%,
        #ff00ff 83%,
        #ff0000 100%);
    cursor: pointer;
}

.draw-color-hue-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid var(--color-surface);
    background: var(--color-surface);
    box-shadow: 0 0 0 1px var(--color-slate-dark-alpha-55), 0 2px 6px var(--color-slate-900-alpha-25);
    transform: translate(-7px, -50%);
    pointer-events: none;
}

.draw-color-meta-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.draw-color-preview {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid var(--color-slate-300);
    flex: 0 0 auto;
}

.draw-color-hex-input {
    width: 82px;
    height: 30px;
    border: 1px solid var(--color-slate-300);
    border-radius: 7px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-slate-700);
    text-transform: uppercase;
}

.draw-color-hex-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-blue-alpha-22);
}

.draw-color-apply-btn {
    height: 30px;
    border: 1px solid var(--color-blue-border);
    background: var(--color-blue-50);
    color: var(--color-blue-600);
    border-radius: 7px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.draw-color-apply-btn:hover {
    background: var(--color-blue-light);
}

.sticky-color-option-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-slate-900-alpha-25);
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.sticky-color-option-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px var(--color-slate-900-alpha-20);
}

.sticky-color-option-btn.active {
    box-shadow: inset 0 0 0 2px var(--color-slate-800);
}

.editor-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-text-sec);
    align-items: center;
    font-size: 14px;
}

.editor-content h1 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 12px 0;
    color: var(--color-text);
}

.editor-content p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-sec);
    margin: 0;
}

/* Sticky Notes */
.sticky-note {
    position: absolute;
    width: 200px;
    padding: 16px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-text);
    z-index: 5;
}

.sticky-note p {
    margin: 0;
}

.sticky-note.yellow {
    background-color: #fef08a; /* Soft yellow */
}

.sticky-note.pink {
    background-color: #fbcfe8; /* Soft pink */
    z-index: 6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.sticky-note.blue {
    background-color: var(--color-blue-border); /* Soft blue */
}

.cursor {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cursor svg {
    width: 20px;
    height: 20px;
}

.cursor-name {
    font-size: 10px;
    font-weight: 600;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

.cursor.abdullah { top: 30px; left: 30px; }
.cursor.abdullah svg { color: var(--color-blue); }
.cursor.abdullah .cursor-name { background-color: var(--color-blue); }

.cursor.delvin { top: 60px; left: 0px; transform: translateX(-10px); }
.cursor.delvin svg { color: var(--color-cursor-amber); }
.cursor.delvin .cursor-name { background-color: var(--color-cursor-amber); }

.cursor.sarah { top: 75px; right: 10px; }
.cursor.sarah svg { color: var(--color-group-green); }
.cursor.sarah .cursor-name { background-color: var(--color-group-green); }

.sticky-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.sticky-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 0;
}

.sticky-tag.yellow-tag { color: var(--color-amber-700); }
.sticky-tag.red-tag { color: var(--color-decision-text); }
.sticky-tag.blue-tag { color: var(--color-blue-700); }

.pin-icon {
    width: 14px;
    height: 14px;
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-meetings-border);
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 12px 24px var(--color-slate-900-alpha-08);
    gap: 8px;
}

.zoom-controls button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-meetings-muted);
    transition: background 0.2s, color 0.2s;
}

.zoom-controls button:hover {
    background: var(--color-meetings-bg);
    color: var(--color-meetings-dark);
}

.zoom-controls button:active {
    background: var(--color-meetings-bg-active);
}

.zoom-controls button:focus-visible {
    outline: 2px solid var(--color-blue-border);
    outline-offset: 1px;
}

.zoom-controls button svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.zoom-level {
    min-width: 56px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-meetings-dark);
    padding: 0 4px;
}

.zoom-controls .divider {
    width: 1px;
    height: 22px;
    background-color: var(--color-meetings-border);
}

/* Right Sidebar */
.right-sidebar {
    width: 320px;
    background: var(--color-surface);
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 32px;
    overflow-y: auto;
    border-left: 1px solid var(--color-border-lt);
}

.meetings-workspace.sidebar-open .right-sidebar {
    display: flex;
}

.right-sidebar__mode {
    display: none;
    flex-direction: column;
    gap: 32px;
    min-height: 100%;
}

.right-sidebar__mode.active {
    display: flex;
}

.right-sidebar__action {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--color-surface-secondary);
    border: 1px solid var(--color-border-lt);
    color: var(--color-text-sec);
}

.right-sidebar__action:hover {
    background: var(--color-primary-alpha-06);
    color: var(--color-primary);
}

.right-sidebar__close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-sec);
}

.right-sidebar__close:hover {
    background: var(--color-page-bg);
}

.boards-list-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.boards-list-actions__btn {
    width: 100%;
    justify-content: center;
}

.boards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.board-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--color-border-lt);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    background: var(--color-surface-secondary);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.board-item:hover {
    border-color: var(--color-primary-alpha-12);
    background: var(--color-primary-alpha-04);
    transform: translateY(-1px);
}

.board-item.active {
    border-color: var(--color-primary-alpha-20);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.board-item__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.board-item__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-item__updated {
    font-size: 11px;
    color: var(--color-text-muted);
}

.board-item__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.board-item__action {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text-sec);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-item__action:hover {
    background: var(--color-page-bg);
}

.board-item__action--danger {
    color: var(--color-error);
}

.board-item__action--danger:hover {
    background: var(--color-error-alpha-08);
}

.board-item__action svg {
    width: 14px;
    height: 14px;
}

.board-item__badge {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-primary-alpha-05);
    border-radius: var(--radius-pill);
    padding: 4px 8px;
}

.rs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rs-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 18px;
    color: var(--color-text);
}

.sparkles-icon {
    width: 20px;
    height: 20px;
}

.rs-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}



/* ---------------------------------------------------------------
   NOTES VIEW � Three-pane Layout (JS toggles flex/none)
---------------------------------------------------------------- */
.notes-view {
    display: flex;
    flex-direction: row;
    background: var(--color-surface);
    overflow: hidden;
}

/* -- Sidebar base (shared input styles) -- */
.notes-sidebar__new-input {
    padding: 0 10px 8px;
    display: flex;
    gap: 4px;
}

.notes-sidebar__new-input input {
    flex: 1;
    font-size: 13px;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    min-width: 0;
    outline: none;
    font-family: inherit;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.notes-sidebar__new-input input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-alpha-08);
}

.notes-sidebar__new-input button {
    background: var(--color-primary);
    color: var(--color-text-inv);
    border: none;
    border-radius: var(--radius-md);
    padding: 0 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.15s;
}
.notes-sidebar__new-input button:hover { background: var(--color-primary-dark); }

/* ---------------------------------------------------------------
   ACCORDION FOLDER SIDEBAR (wider, replaces both old panels)
---------------------------------------------------------------- */
.notes-sidebar {
    width: 300px;
    background: #f8f8fd;
    border-right: 1px solid rgba(25,25,112,0.08);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    font-family: var(--font-sans);
}

/* Header */
.notes-sidebar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 14px 10px;
    flex-shrink: 0;
}

.notes-sidebar__title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.notes-sidebar__actions { display: flex; gap: 4px; align-items: center; }

.notes-sidebar__icon-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.notes-sidebar__icon-btn svg { width: 15px; height: 15px; }
.notes-sidebar__icon-btn:hover {
    background: var(--color-primary-alpha-06);
    border-color: var(--color-primary-alpha-20);
    color: var(--color-primary);
}

/* Search */
.notes-sidebar__search {
    margin: 0 12px 10px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid rgba(25,25,112,0.10);
    border-radius: 10px;
    padding: 7px 12px;
    gap: 8px;
    transition: border-color 0.18s, box-shadow 0.18s;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(25,25,112,0.05);
}
.notes-sidebar__search:focus-within {
    border-color: rgba(25,25,112,0.35);
    box-shadow: 0 0 0 3px rgba(25,25,112,0.08);
}
.notes-sidebar__search svg { width: 13px; height: 13px; stroke: #94a3b8; flex-shrink: 0; }
.notes-sidebar__search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 12.5px;
    color: #0f172a;
    width: 100%;
    font-family: inherit;
}
.notes-sidebar__search input::placeholder { color: #a0aec0; }

/* Folder Tree (accordion) */
.notes-sidebar__tree {
    flex: 0 1 auto;
    min-height: 60px;
    overflow-y: auto;
    padding: 2px 8px 8px;
}

.notes-sidebar__section-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 10px 8px;
}

.notes-sidebar__section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #b0bcd0;
}

.notes-sidebar__section-caption {
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ---- Folder item ---- */
.folder-tree-item { margin-bottom: 1px; }

.folder-tree-item__row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 56px 7px 10px;
    border-radius: 8px;
    border-left: 2.5px solid transparent;
    cursor: pointer;
    transition: background 0.13s, border-color 0.13s;
    user-select: none;
    position: relative;
    margin: 1px 4px;
}
.folder-tree-item__row:hover {
    background: rgba(25,25,112,0.05);
    border-left-color: rgba(25,25,112,0.15);
}

/* Active folder */
.folder-tree-item--active > .folder-tree-item__row {
    background: rgba(25,25,112,0.07) !important;
    border-left-color: #191970 !important;
}
.folder-tree-item--active > .folder-tree-item__row .folder-tree-item__name {
    color: #191970;
    font-weight: 600;
}
.folder-tree-item--active > .folder-tree-item__row .folder-tree-item__icon { color: #191970; }
.folder-tree-item--active > .folder-tree-item__row .folder-tree-item__count {
    background: rgba(25,25,112,0.12);
    color: #191970;
}

/* Chevron */
.folder-tree-item__chevron {
    width: 14px;
    height: 14px;
    stroke: var(--color-text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    opacity: 0.5;
}
.folder-tree-item__chevron.open { transform: rotate(90deg); }

.folder-tree-item__spacer {
    width: 14px;
    flex-shrink: 0;
}

/* Folder icon */
.folder-tree-item__icon {
    width: 15px;
    height: 15px;
    color: var(--color-text-sec);
    flex-shrink: 0;
}

/* Name */
.folder-tree-item__name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Count badge */
.folder-tree-item__count {
    min-width: 20px;
    font-size: 10px;
    font-weight: 700;
    color: #8899b0;
    background: rgba(25,25,112,0.07);
    border-radius: 6px;
    padding: 2px 6px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.01em;
}

/* Action buttons (rename/delete) */
.folder-tree-item__delete {
    width: 20px; height: 20px;
    border: none; background: none;
    color: var(--color-error);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: opacity 0.12s ease, background 0.12s ease;
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
}
.folder-tree-item__delete svg { width: 12px; height: 12px; }
.folder-tree-item__row:hover .folder-tree-item__delete { opacity: 1; pointer-events: auto; }
.folder-tree-item__delete:hover { background: var(--color-error-alpha-08); color: var(--color-error) !important; }

.folder-tree-item__rename {
    width: 20px; height: 20px;
    border: none; background: none;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: opacity 0.12s ease, background 0.12s ease;
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
}
.folder-tree-item__rename svg { width: 12px; height: 12px; }
.folder-tree-item__row:hover .folder-tree-item__rename { opacity: 1; pointer-events: auto; }
.folder-tree-item__rename:hover { background: var(--color-primary-alpha-06); color: var(--color-primary) !important; }

/* Sub-folder children */
.folder-tree-item__children { padding-left: 20px; display: none; }
.folder-tree-item__children.open { display: block; }
.folder-tree-item__children .folder-tree-item__row { padding-left: 8px; }

/* ---- Protected / team folder styling ---- */
.folder-tree-item--protected > .folder-tree-item__row .folder-tree-item__icon { color: #7c6fcd; }
.folder-tree-item--protected > .folder-tree-item__row .folder-tree-item__name { color: var(--color-text-sec); }
.folder-tree-item--protected > .folder-tree-item__row .folder-tree-item__lock {
    width: 11px; height: 11px; color: #9d94d3; flex-shrink: 0;
}
.folder-tree-item--protected .folder-tree-item__rename,
.folder-tree-item--protected .folder-tree-item__delete { display: none !important; }

/* ---- Inline notes list (accordion) ---- */
.folder-tree-item__notes { display: none; padding: 2px 0 4px 32px; }
.folder-tree-item__notes.open { display: block; }

/* Note item (compact row inside accordion) */
.note-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 6px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.13s;
    position: relative;
    margin-bottom: 1px;
}
.note-item:hover { background: rgba(0,0,0,0.04); }
.note-item.active { background: var(--color-primary-alpha-06); }

.note-item__icon {
    width: 14px; height: 14px;
    color: var(--color-text-muted);
    flex-shrink: 0;
    opacity: 0.6;
}
.note-item.active .note-item__icon { color: var(--color-primary); opacity: 1; }

.note-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.note-item__title {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.note-item.active .note-item__title { color: var(--color-primary-dark); font-weight: 600; }

.note-item__date {
    font-size: 10.5px;
    color: var(--color-text-muted);
    line-height: 1.2;
}

.note-item__delete {
    width: 18px; height: 18px;
    border: none; background: none;
    color: transparent;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: 5px;
    flex-shrink: 0;
    transition: color 0.1s, background 0.1s;
}
.note-item__delete svg { width: 11px; height: 11px; }
.note-item:hover .note-item__delete { color: var(--color-error); }
.note-item__delete:hover { background: var(--color-error-alpha-08); color: var(--color-error) !important; }

.note-item--empty {
    padding: 8px 10px;
    font-size: 11.5px;
    color: var(--color-text-muted);
    font-style: italic;
    cursor: default;
    pointer-events: none;
}

.notes-sidebar__notes-panel {
    flex: 1 1 250px;
    min-height: 220px;
    border-top: 1px solid rgba(25,25,112,0.07);
    background: #f0f1f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 10px 0;
}

.notes-sidebar__notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.notes-sidebar__notes-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #8899b0;
}

.notes-sidebar__clear-filter {
    border: 1px solid var(--color-primary-alpha-20);
    background: var(--color-primary-alpha-06);
    color: var(--color-primary-dark);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.notes-sidebar__clear-filter:hover {
    background: var(--color-primary-alpha-10);
    border-color: var(--color-primary-alpha-30);
    transform: translateY(-1px);
}

.notes-sidebar__notes-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 1px 12px;
}

.notes-sidebar__notes-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 100%;
    padding: 18px 14px;
    border: 1px dashed var(--color-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-text-sec);
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
}

.notes-sidebar__notes-empty span {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* ---- Sidebar footer (sort controls) ---- */
.notes-sidebar__footer {
    flex-shrink: 0;
    border-top: 1px solid var(--color-border-lt);
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--color-surface-secondary);
}

.notes-sidebar__sort-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notes-sidebar__sort-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.notes-sidebar__sort-row > svg {
    width: 13px; height: 13px;
    stroke: var(--color-text-muted);
    flex-shrink: 0;
    opacity: 0.6;
}

.notes-sidebar__sort-select {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 5px 10px;
    font-size: 12px;
    color: var(--color-text-sec);
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
}
.notes-sidebar__sort-select:hover { border-color: var(--color-primary-alpha-30); }
.notes-sidebar__sort-select:focus { border-color: var(--color-primary); }

.note-card {
    position: relative;
    padding: 11px 36px 11px 13px;
    border: 1.5px solid rgba(25,25,112,0.08);
    border-left: 3px solid transparent;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(25,25,112,0.06);
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.note-card:hover {
    transform: translateY(-1px);
    border-color: rgba(25,25,112,0.18);
    border-left-color: rgba(25,25,112,0.3);
    box-shadow: 0 6px 18px rgba(25,25,112,0.10);
}

.note-card.active {
    border-color: rgba(25,25,112,0.20);
    border-left-color: #191970;
    background: #fff;
    box-shadow: 0 4px 14px rgba(25,25,112,0.12);
}

.note-card__title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}
.note-card.active .note-card__title { color: #191970; }

.note-card__date { font-size: 10.5px; color: #94a3b8; margin-bottom: 4px; font-weight: 500; }

.note-card__snippet {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.5;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-card__delete {
    position: absolute; top: 8px; right: 8px;
    width: 22px; height: 22px;
    border: none;
    background: var(--color-surface-alpha-92);
    color: var(--color-error);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: none;
    align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
}
.note-card__delete svg { width: 12px; height: 12px; }
.note-card:hover .note-card__delete { display: flex; }
.note-card__delete:hover { background: var(--color-error-alpha-08); }

/* ---------------------------------------------------------------
   EDITOR PANE
---------------------------------------------------------------- */
.notes-editor-pane {
    flex: 1;
    min-width: 0;
    background: var(--color-surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.notes-editor-pane__empty {
    position: absolute;
    inset: 0;
    background: var(--color-surface);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.notes-editor-pane__empty:hover,
.notes-editor-pane__empty:focus-visible {
    background: var(--color-page-bg);
}
.notes-editor-pane__empty:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}
.notes-editor-pane__empty:hover .notes-editor-empty-icon,
.notes-editor-pane__empty:focus-visible .notes-editor-empty-icon {
    background: var(--color-primary-alpha-08);
}
.notes-editor-pane__empty:hover .notes-editor-empty-icon svg,
.notes-editor-pane__empty:focus-visible .notes-editor-empty-icon svg {
    color: var(--color-primary);
}

.notes-editor-empty-icon {
    width: 72px; height: 72px;
    border-radius: var(--radius-lg);
    background: var(--color-page-bg);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.notes-editor-empty-icon svg { transition: color 0.15s; }
.notes-editor-pane__empty-title { font-size: 15px; font-weight: 600; color: var(--color-text); }
.notes-editor-pane__empty-sub { font-size: 13px; color: var(--color-text-muted); margin-top: -6px; }

#editorActiveArea {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Breadcrumb */
.notes-editor__breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 32px 0;
    font-size: 12px;
    color: var(--color-text-sec);
    flex-shrink: 0;
}
.notes-editor__breadcrumb span { font-weight: 500; color: var(--color-text-sec); cursor: pointer; transition: color 0.15s; }
.notes-editor__breadcrumb span:hover { color: var(--color-primary); }

/* Header */
.notes-editor__header {
    padding: 16px 32px 0;
    flex-shrink: 0;
    border-bottom: 1px solid var(--color-border-lt);
}

.notes-editor__title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.notes-editor__title {
    flex: 1;
    font-size: 26px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.2;
    margin: 0;
    outline: none;
    border: none;
    background: transparent;
    font-family: inherit;
    letter-spacing: -0.02em;
    cursor: text;
    border-radius: 6px;
    padding: 2px 4px;
    transition: background 0.15s;
}
.notes-editor__title:hover { background: var(--color-surface-secondary); }
.notes-editor__title.editing,
.notes-editor__title[contenteditable="true"] {
    background: var(--color-primary-alpha-04);
    border-bottom: 2px solid var(--color-primary-alpha-30);
}

.notes-editor__title-actions { display: flex; gap: 6px; margin-top: 4px; flex-shrink: 0; align-items: center; flex-wrap: wrap; }

/* Inline Quill Toolbar (moved to header) */
.notes-editor__inline-toolbar {
    display: flex;
    align-items: center;
}
.notes-editor__inline-toolbar .ql-toolbar {
    border: 1px solid var(--color-border) !important;
    padding: 2px 6px !important;
    background: var(--color-surface-secondary) !important;
    border-radius: var(--radius-md);
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    align-items: center;
}
.notes-editor__inline-toolbar .ql-toolbar .ql-formats { margin-right: 4px; display: flex; align-items: center; gap: 1px; }
.notes-editor__inline-toolbar .ql-toolbar button,
.notes-editor__inline-toolbar .ql-toolbar .ql-picker-label {
    border-radius: 5px; padding: 3px 4px;
    width: 26px; height: 24px;
    color: var(--color-text-sec);
    transition: background 0.15s, color 0.15s;
}
.notes-editor__inline-toolbar .ql-toolbar button:hover,
.notes-editor__inline-toolbar .ql-toolbar .ql-picker-label:hover { background: var(--color-primary-alpha-06); color: var(--color-primary); }
.notes-editor__inline-toolbar .ql-toolbar button.ql-active,
.notes-editor__inline-toolbar .ql-toolbar .ql-picker-label.ql-active { color: var(--color-primary); background: var(--color-primary-alpha-06); }

.notes-editor__icon-btn {
    width: 30px; height: 30px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.notes-editor__icon-btn svg { width: 15px; height: 15px; }
.notes-editor__icon-btn:hover { background: var(--color-page-bg); color: var(--color-text); }

.notes-editor__meta { padding-bottom: 14px; }
.notes-editor__meta-row { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.notes-editor__meta-item { display: flex; align-items: center; gap: 8px; flex-shrink: 0; position: relative; }
.notes-editor__meta-item--date { align-items: center; }
.notes-editor__meta-item svg { width: 15px; height: 15px; stroke: var(--color-text-muted); flex-shrink: 0; }

.notes-editor__date-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.notes-editor__date-field:hover {
    background: var(--color-surface-secondary);
    border-color: var(--color-primary-alpha-20);
}

.notes-editor__date-label {
    display: none;
}

.notes-editor__meta-item--participants { align-items: center; flex: 1; }

.notes-editor__meta-input {
    border: none; outline: none;
    font-size: 13.5px;
    color: var(--color-text);
    background: transparent;
    font-family: inherit;
    min-width: 100px;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.notes-editor__meta-input:hover { background: var(--color-surface-secondary); }
.notes-editor__meta-input:focus { background: var(--color-primary-alpha-04); }
.notes-editor__meta-input::placeholder { color: var(--color-text-muted); }

/* Date picker specific */
.notes-editor__date-input {
    cursor: pointer;
    color: var(--color-text);
    font-size: 13.5px;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    border-radius: var(--radius-md);
    padding: 0;
    width: 100%;
    min-width: 110px;
}
.notes-editor__date-input::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}
.notes-editor__date-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
}

/* Voice Recorder FAB */
.voice-recorder {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.voice-fab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--color-primary);
    color: var(--color-text-inv);
    border: none;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.voice-fab:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 28px var(--color-primary-alpha-30), 0 0 0 0 var(--color-primary-alpha-30);
}

.voice-fab:active {
    transform: scale(0.97);
}

.voice-fab__mic {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.voice-fab__label {
    white-space: nowrap;
}

.voice-fab__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    pointer-events: none;
}

.voice-fab--recording {
    background: var(--color-error);
    box-shadow: 0 4px 20px var(--color-danger-alpha-50);
    animation: fabRecordGlow 2s ease-in-out infinite;
}

.voice-fab--recording .voice-fab__pulse {
    animation: fabPulseRing 1.5s ease-out infinite;
    border: 2px solid var(--color-danger-alpha-25);
}

@keyframes fabRecordGlow {
    0%, 100% { box-shadow: 0 4px 20px var(--color-danger-alpha-50); }
    50% { box-shadow: 0 4px 28px var(--color-danger-alpha-70), 0 0 40px var(--color-danger-alpha-15); }
}

@keyframes fabPulseRing {
    100% { transform: scale(1.6); opacity: 0; }
}

.voice-fab--hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

/* Voice Panel */
.voice-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 360px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid var(--color-border-lt);
}

.voice-panel__header {
    padding: 16px;
    border-bottom: 1px solid var(--color-border-lt);
}

.voice-panel__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.voice-panel__buttons {
    display: flex;
    gap: 8px;
    padding: 16px;
}

.voice-panel__upload-btn,
.voice-panel__ctrl-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--color-ink-alpha-30);
    background: white;
    color: var(--color-text-sec);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.voice-panel__upload-btn:hover,
.voice-panel__ctrl-btn:hover {
    background: var(--color-page-bg);
    border-color: var(--color-text-muted);
}

.voice-panel__ctrl-btn--cancel {
    background: var(--color-record-red-bg);
    border-color: var(--color-record-red-bg);
    color: var(--color-error-deep);
}

.voice-panel__ctrl-btn--stop {
    background: var(--color-record-green-bg);
    border-color: var(--color-record-green-bg);
    color: var(--color-record-green-text);
}

.voice-panel__ctrl-btn--pause {
    background: var(--color-amber-400);
    border-color: var(--color-amber-400);
    color: var(--color-amber-800);
}

.voice-panel__done-btn {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--color-ink-alpha-30);
    background: white;
    color: var(--color-neutral-500);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.voice-panel__done-btn--ghost {
    background: transparent;
    border-color: var(--color-ink-alpha-30);
}

.voice-panel__done-btn:hover {
    background: var(--color-page-bg);
}

/* Participants */
.participants-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 160px;
    padding: 2px 10px;
    min-height: 34px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}
.participants-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }

.participant-chip {
    display: flex; align-items: center; gap: 5px;
    background: var(--color-primary-alpha-08); color: var(--color-primary-dark);
    font-size: 12px; font-weight: 500;
    padding: 3px 8px 3px 6px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.participant-chip__avatar {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--color-primary); color: var(--color-text-inv);
    font-size: 10px; font-weight: 500;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.participant-chip__remove {
    border: none; background: none;
    color: var(--color-primary); cursor: pointer; padding: 0;
    font-size: 14px; opacity: 0.6;
    transition: opacity 0.1s;
    display: flex; align-items: center;
}
.participant-chip__remove:hover { opacity: 1; }

.participants-dropdown {
    position: absolute; top: 100%; left: 0;
    min-width: min(220px, calc(100vw - 32px));
    background: var(--color-surface);
    border: 1px solid var(--color-border-lt);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 100;
    overflow: hidden;
    margin-top: 4px;
}
.participant-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; transition: background 0.1s; }
.participant-option:hover { background: var(--color-surface-secondary); }
.participant-option--active { background: var(--color-primary-alpha-06); }
.participant-option__avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-inv); font-size: 12px; font-weight: 500;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.participant-option__info { display: flex; flex-direction: column; min-width: 0; }
.participant-option__name { font-size: 13px; font-weight: 600; color: var(--color-text); }
.participant-option__email { font-size: 11px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.participants-wrapper .notes-editor__meta-input {
    min-width: 180px;
    flex: 1;
    padding: 4px 2px;
}

@media (max-width: 1024px) {
    .right-sidebar {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 88vw);
        z-index: 85;
        box-shadow: -14px 0 36px rgba(15, 23, 42, 0.14);
    }
}

@media (max-width: 768px) {
    .meetings-workspace,
    .main-view-area,
    .whiteboard-area {
        min-width: 0;
    }

    .wb-text-toolbar {
        position: fixed;
        top: auto;
        left: 12px;
        right: 12px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: calc(100vw - 24px);
        transform: none;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        z-index: 90;
    }

    .wb-text-toolbar select,
    .wb-text-toolbar input[type="number"],
    .wb-text-toolbar__btn,
    .wb-text-toolbar__color {
        min-height: 44px;
    }

    .whiteboard-area canvas,
    .whiteboard-area .canvas-container {
        max-width: 100%;
    }

    .zoom-controls {
        right: 12px;
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    .right-sidebar {
        width: min(320px, calc(100vw - 24px));
        padding: 18px;
    }

    .notes-view {
        flex-direction: column;
        overflow-y: auto;
    }

    .notes-sidebar {
        width: 100%;
        max-height: 42dvh;
        min-height: 260px;
        border-right: none;
        border-bottom: 1px solid rgba(25,25,112,0.08);
    }

    .notes-sidebar__notes-panel {
        flex-basis: 180px;
        min-height: 160px;
    }

    .notes-editor__breadcrumb,
    .notes-editor__header,
    .notes-editor__body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .notes-editor__title {
        font-size: 22px;
    }

    .notes-editor__meta-row {
        gap: 10px;
    }

    .participants-wrapper {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .meetings-main .topbar__record-btn,
    .meetings-export-btn,
    .right-sidebar__action,
    .right-sidebar__close,
    .zoom-controls button {
        min-width: 44px;
        min-height: 44px;
    }

    .wb-boards-wrapper {
        top: 14px;
        left: 12px;
        right: 12px;
    }

    .wb-boards-panel {
        width: min(280px, calc(100vw - 24px));
    }

    .zoom-controls {
        gap: 4px;
        padding: 6px;
    }

    .zoom-level {
        min-width: 46px;
        font-size: 12px;
    }

    .notes-sidebar {
        max-height: 46dvh;
    }

    .notes-editor__title-row,
    .notes-editor__meta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .voice-recorder {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .voice-panel {
        width: calc(100vw - 32px);
        max-height: calc(100dvh - 120px - env(safe-area-inset-bottom, 0px));
    }
}

/* Editor body */
.notes-editor__body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 32px 28px; }
.notes-editor__quill { min-height: 100%; font-size: 15px; color: var(--color-text); line-height: 1.65; }

#quillEditor .ql-editor {
    font-size: 15px; color: var(--color-text); line-height: 1.7;
    font-family: var(--font-sans);
    padding: 0; min-height: 200px;
}
#quillEditor .ql-editor.ql-blank::before { color: var(--color-text-muted); font-style: normal; font-size: 15px; left: 0; }
#quillEditor .ql-container { border: none !important; }
#quillEditor.ql-snow { border: none !important; }

.notes-editor__toolbar-left .ql-toolbar {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
}
.notes-editor__toolbar-left .ql-toolbar .ql-formats { margin-right: 6px; display: flex; align-items: center; gap: 1px; }
.notes-editor__toolbar-left .ql-toolbar button,
.notes-editor__toolbar-left .ql-toolbar .ql-picker-label {
    border-radius: 6px; padding: 4px 5px;
    width: 28px; height: 26px;
    color: var(--color-text-sec);
    transition: background 0.15s, color 0.15s;
}
.notes-editor__toolbar-left .ql-toolbar button:hover,
.notes-editor__toolbar-left .ql-toolbar .ql-picker-label:hover { background: var(--color-primary-alpha-06); color: var(--color-primary); }
.notes-editor__toolbar-left .ql-toolbar button.ql-active,
.notes-editor__toolbar-left .ql-toolbar .ql-picker-label.ql-active { color: var(--color-primary); }

.notes-editor__save-btn {
    flex-shrink: 0;
    background: var(--color-primary); color: var(--color-text-inv);
    border: none; border-radius: var(--radius-md);
    padding: 6px 16px;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}
.notes-editor__save-btn:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }

/* ---------------------------------------------------------------
   INLINE USERS & BOARDS TAB
---------------------------------------------------------------- */
.avatars-inline { display: flex; align-items: center; }


/* ================================================================
   WHITEBOARD LIST VIEW  (wbl-*)
   Opening page shown before entering the canvas.
   Pattern mirrors bl-* from board.css.
================================================================ */

.wbl-list-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: var(--color-bg);
}

/* ── Page Header ── */
.wbl-page-header {
    padding: 32px clamp(20px, 3.2vw, 40px) 0;
    margin-bottom: 24px;
}

.wbl-page-header__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.wbl-page-header__title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
    line-height: 1.1;
    margin-bottom: 6px;
}

.wbl-page-header__sub {
    font-size: 14px;
    color: var(--color-text-sec);
    font-weight: 400;
}

.wbl-page-header__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ── Search ── */
.wbl-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    min-width: 200px;
}

.wbl-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(25, 25, 112, 0.08);
}

.wbl-search svg {
    width: 15px;
    height: 15px;
    color: var(--color-text-sec);
    flex-shrink: 0;
}

.wbl-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--color-text);
    font-family: inherit;
    width: 100%;
}

.wbl-search input::placeholder { color: var(--color-text-sec); }

/* ── New Whiteboard Button ── */
.wbl-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 18px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
    box-shadow: 0 2px 8px rgba(25, 25, 112, 0.22);
    white-space: nowrap;
}

.wbl-new-btn:hover {
    background: var(--color-primary-dark, #14145c);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(25, 25, 112, 0.3);
}

.wbl-new-btn svg { width: 15px; height: 15px; }

/* ── Filter Tabs ── */
.wbl-filter-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid var(--color-border-lt);
    padding: 0 clamp(20px, 3.2vw, 40px);
}

.wbl-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-sec);
    cursor: pointer;
    font-family: inherit;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    border-radius: 0;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.wbl-filter-tab:hover { color: var(--color-text); }

.wbl-filter-tab--active {
    color: var(--color-primary);
    font-weight: 600;
    border-bottom-color: var(--color-primary);
}

.wbl-filter-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--color-text-sec);
    font-weight: 500;
    padding-right: 4px;
}

/* ── Boards Grid ── */
.wbl-boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 20px clamp(20px, 3.2vw, 40px) 40px;
}

/* ── Whiteboard Card ── */
.wbl-board-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border-lt);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 15, 77, 0.06);
    animation: wblFadeSlideUp 0.3s ease both;
}

@keyframes wblFadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wbl-board-card:hover {
    border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
    box-shadow: 0 8px 24px rgba(15, 15, 77, 0.1), 0 2px 6px rgba(15, 15, 77, 0.06);
    transform: translateY(-2px);
}

.wbl-board-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #a78bfa 100%);
}

.wbl-board-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 16px 0;
}

.wbl-board-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.wbl-board-card__delete {
    border: none;
    background: transparent;
    color: var(--color-text-sec);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.wbl-board-card:hover .wbl-board-card__delete { opacity: 1; }

.wbl-board-card__delete:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.wbl-board-card__body {
    padding: 12px 16px 14px;
    flex: 1;
}

.wbl-board-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.wbl-board-card__meta {
    font-size: 12px;
    color: var(--color-text-sec);
}

.wbl-board-card--active {
    border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
    box-shadow: 0 0 0 2px rgba(25, 25, 112, 0.12);
}

.wbl-board-card--active .wbl-board-card__badge {
    background: rgba(25, 25, 112, 0.12);
    color: var(--color-primary);
}

/* ── Empty / Loading States ── */
.wbl-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    gap: 12px;
}

.wbl-empty__spinner {
    width: 32px;
    height: 32px;
    border: 2.5px solid var(--color-border-lt);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: wblSpin 0.7s linear infinite;
    margin-bottom: 4px;
}

@keyframes wblSpin {
    to { transform: rotate(360deg); }
}

.wbl-empty__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 25, 112, 0.06);
    border-radius: 18px;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.wbl-empty__icon svg { width: 32px; height: 32px; }

.wbl-empty__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.wbl-empty__desc {
    font-size: 13px;
    color: var(--color-text-sec);
    max-width: 320px;
    line-height: 1.5;
    margin: 0;
}

/* ================================================================
   WHITEBOARD DETAIL NAV BAR  (wbd-*)
   Back button + board name strip at top of detail view
================================================================ */
.wbd-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    height: 44px;
    border-bottom: 1px solid var(--color-border-lt);
    background: var(--color-surface);
    flex-shrink: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
}

.wbd-nav__back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-sec);
    cursor: pointer;
    font-family: inherit;
    padding: 4px 8px;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
}

.wbd-nav__back:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.wbd-nav__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.wbd-nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.wbd-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s ease;
}

.wbd-nav__btn:hover { background: var(--color-primary-dark, #14145c); }

/* push all whiteboard tools down to clear the nav bar */
#wbDetailView {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ─── Team Board Card ─────────────────────────────────────── */
.wbl-board-card--team {
    background: linear-gradient(135deg, #1e1a0e 0%, #181510 100%);
    border: 1.5px solid rgba(234, 179, 8, 0.35);
}
.wbl-board-card--team::before {
    background: linear-gradient(90deg, #eab308, #f59e0b);
}
.wbl-board-card--team:hover {
    border-color: rgba(234, 179, 8, 0.65);
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.18);
}
.wbl-board-card__badge--team {
    background: rgba(234, 179, 8, 0.18);
    color: #f59e0b;
    border: 1px solid rgba(234, 179, 8, 0.3);
}
.wbl-board-card__lock-icon {
    color: rgba(234, 179, 8, 0.55);
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 4px;
}
/* ─── Locked detail view ──────────────────────────────────── */
#wbDetailView.wbd--locked::after {
    content: "View only — Team Whiteboard";
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #f59e0b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 14px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 20;
}
.wbd--tools-hidden {
    opacity: 0.25;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 768px) {
    .notes-editor__body {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .wbl-page-header__inner,
    .wbl-page-header__right {
        flex-direction: column;
        align-items: stretch;
    }

    .wbl-search {
        min-width: 0;
        width: 100%;
    }
}
