/* ── Shell: fixed-width centred content with side shadows ── */
.hque-shell {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    height: 100vh;
    overflow: hidden;
    transform: translateZ(0);
    box-shadow: -60px 0 120px 0px rgba(0, 0, 0, 0.10),
                60px 0 120px 0px rgba(0, 0, 0, 0.10);
}

/* ── Background visible around the shell ── */
html, body {
    overflow: hidden;
    height: 100vh;
}

body {
    min-height: 100vh;
    background-color: var(--bg);
}

/* ── Main content scroll fix ── */
.mud-main-content {
    overflow-y: auto !important;
    height: calc(100vh - var(--mud-appbar-height)) !important;
}

/* ── Chat page ── */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--mud-appbar-height) - 124px);
    max-width: 900px;
    margin: 0 auto;
    padding: 14px;
    top: 100px;
    position: relative;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 4px;
}

.chat-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chat-message-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 80%;
}

.chat-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message-assistant {
    align-self: flex-start;
}

.chat-avatar {
    flex-shrink: 0;
    margin-top: 4px;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 12px !important;
    min-width: 80px;
}

.chat-bubble-user {
    background-color: var(--mud-palette-primary) !important;
    color: var(--mud-palette-primary-text) !important;
    border-bottom-right-radius: 4px !important;
}

.chat-bubble-assistant {
    background-color: var(--mud-palette-surface) !important;
    border-bottom-left-radius: 4px !important;
}

.chat-input-bar {
    padding: 12px 16px;
    border-radius: 12px !important;
    margin-top: 8px;
}

.chat-input-wrapper {
    position: relative;
}

.chat-textarea {
    width: 100%;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    padding: 12px 48px 12px 12px;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: none;
    overflow-y: auto;
    min-height: 4.5em;
    max-height: 240px; /* ~10 lines */
    background: transparent;
    color: var(--mud-palette-text-primary);
    outline: none;
    box-sizing: border-box;
}

    .chat-textarea:focus {
        border-color: var(--mud-palette-primary);
        border-width: 2px;
        padding: 11px 47px 11px 11px;
    }

    .chat-textarea::placeholder {
        color: var(--mud-palette-text-disabled);
    }

    .chat-textarea:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.chat-send-btn {
    position: absolute !important;
    bottom: 4px;
    right: 4px;
}
/* ── Markdown in chat bubbles ── */
.chat-markdown {
    font-size: 0.875rem;
    line-height: 1.6;
    word-break: break-word;
}

    .chat-markdown p {
        margin: 0 0 0.5em;
    }

        .chat-markdown p:last-child {
            margin-bottom: 0;
        }

    .chat-markdown code {
        background: rgba(0, 0, 0, 0.08);
        border-radius: 3px;
        padding: 0.15em 0.4em;
        font-size: 0.85em;
        font-family: 'Cascadia Code', 'Fira Code', monospace;
    }

    .chat-markdown pre {
        background: rgba(0, 0, 0, 0.06);
        border-radius: 6px;
        padding: 12px;
        overflow-x: auto;
        margin: 0.5em 0;
    }

        .chat-markdown pre code {
            background: none;
            padding: 0;
            font-size: 0.82em;
            line-height: 1.5;
        }

    .chat-markdown ul, .chat-markdown ol {
        margin: 0.5em 0;
        padding-left: 1.5em;
    }

    .chat-markdown li {
        margin: 0.2em 0;
    }

    .chat-markdown h1, .chat-markdown h2, .chat-markdown h3,
    .chat-markdown h4, .chat-markdown h5, .chat-markdown h6 {
        margin: 0.6em 0 0.3em;
        line-height: 1.3;
    }

    .chat-markdown h1 {
        font-size: 1.3em;
    }

    .chat-markdown h2 {
        font-size: 1.15em;
    }

    .chat-markdown h3 {
        font-size: 1.05em;
    }

    .chat-markdown blockquote {
        border-left: 3px solid var(--mud-palette-primary);
        margin: 0.5em 0;
        padding: 0.3em 0.8em;
        opacity: 0.85;
    }

    .chat-markdown table {
        border-collapse: collapse;
        margin: 0.5em 0;
        font-size: 0.85em;
    }

    .chat-markdown th, .chat-markdown td {
        border: 1px solid rgba(0, 0, 0, 0.15);
        padding: 4px 8px;
    }

    .chat-markdown th {
        background: rgba(0, 0, 0, 0.05);
    }

    .chat-markdown hr {
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.12);
        margin: 0.8em 0;
    }

/* ── MudTextField – tighten vertical padding in outlined inputs ── */
.mud-input.mud-input-outlined input,
.mud-input.mud-input-outlined textarea {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Outlined input container – reduce top margin that reserves label space */
.mud-input-control .mud-input.mud-input-outlined {
    margin-top: 2px !important;
}

/* Outlined label – align horizontally with input text */
.mud-input-label.mud-input-label-outlined {
    left: -4px !important;
}

/* ── MudSelect / MudMenu dropdown panels ── */
.mud-popover-provider {
    z-index: 9999 !important;
}

.mud-popover.mud-popover-open {
    background: var(--popover-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    z-index: 9999 !important;
}

/* ── MudSwitch – visible track in both states ── */
.mud-switch .mud-switch-track {
    background: rgba(0, 0, 0, 0.25) !important;
    opacity: 1 !important;
}

.mud-switch.mud-switch-checked .mud-switch-track {
    background: #3b82f6 !important;
    opacity: 0.55 !important;
}

.mud-switch.mud-switch-checked .mud-switch-thumb {
    background: #3b82f6 !important;
}

.chat-tool-json {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    padding: 8px;
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 4px 0;
}

/* ── MudButton global overrides ── */
.mud-button-root {
    border-radius: 8px !important;
    text-transform: none !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
}

.mud-button-outlined {
    border-width: 1px !important;
}

/* ── MudBlazor Outlined Input – global theme ── */
.mud-input-outlined .mud-input-outlined-border {
    border-color: var(--border) !important;
    border-radius: 8px !important;
}

.mud-input.mud-input-outlined {
    background: var(--surface2) !important;
    border-radius: 8px !important;
    color: var(--text) !important;
}

.mud-input.mud-input-outlined:hover .mud-input-outlined-border {
    border-color: var(--border2) !important;
}

.mud-input.mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: var(--accent-light) !important;
    border-width: 1px !important;
}

.mud-input.mud-input-outlined input,
.mud-input.mud-input-outlined textarea {
    color: var(--text) !important;
}

.mud-input.mud-input-outlined input::placeholder,
.mud-input.mud-input-outlined textarea::placeholder {
    color: var(--text-2) !important;
    opacity: 0.5 !important;
}

/* Label */
.mud-input-label {
    color: var(--text-2) !important;
}

.mud-input-label.mud-input-label-inputcontrol.mud-input-label-animated {
    font-size: 13px !important;
}

/* Adornments */
.mud-input-adornment .mud-icon-button {
    color: var(--text-2) !important;
    opacity: 0.6;
}

.mud-input-adornment .mud-icon-button:hover {
    opacity: 1;
}

.mud-input-adornment-start,
.mud-input-adornment-end {
    color: var(--text-2) !important;
}

/* Validation errors */
.mud-input-error .mud-input-outlined-border {
    border-color: #f43f5e !important;
}

.mud-input-helper-text.mud-input-error {
    color: #f43f5e !important;
    opacity: 1;
}

/* ── MudSelect dropdown items ── */
.mud-list-item {
    color: var(--text) !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 13px !important;
}

.mud-list-item:hover {
    background: var(--surface2) !important;
}

.mud-list-item.mud-selected-item {
    background: rgba(59, 130, 246, 0.12) !important;
    color: var(--accent-light) !important;
}

/* ── Admin left-tabs: panels must fill remaining width ── */
.mud-tabs-panels.mud-tabs-vertical {
    display: block;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   Admin tab shared styles
   ═══════════════════════════════════════════════════════════ */

/* ── Toolbar ── */
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    flex: 1;
    max-width: 360px;
}

.admin-search input {
    border: none;
    background: none;
    outline: none;
    color: var(--text);
    font-size: 13px;
    font-family: 'Space Grotesk', sans-serif;
    width: 100%;
}

.admin-search input::placeholder { color: var(--text-3); }

.admin-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    border: none;
    color: white;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
    white-space: nowrap;
}

.admin-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.show-inactive-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-2);
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    white-space: nowrap;
}

.show-inactive-toggle input[type="checkbox"] { accent-color: var(--accent-light); }

/* ── Grid ── */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 900px)  { .admin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .admin-grid { grid-template-columns: 1fr; } }

/* ── Table ── */
.admin-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table { width: 100%; border-collapse: collapse; }

.admin-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'JetBrains Mono', monospace;
    border-bottom: 1px solid var(--border);
    background: var(--surface2);
}

.admin-table tbody tr { transition: background 0.1s; }
.admin-table tbody tr:hover { background: var(--surface2); }
.admin-table tbody tr.clickable { cursor: pointer; }
.admin-table tbody tr.clickable:hover { background: rgba(59, 130, 246, 0.04); }

.admin-table tbody td {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: none; }

/* ── Admin tabs responsive: left tabs → top tabs ── */
@media (max-width: 900px) {
    /* Outer container: flip from row to column */
    .admin-tabs.mud-tabs.mud-tabs-vertical {
        flex-direction: column !important;
    }

    /* Tabbar: make horizontal */
    .admin-tabs .mud-tabs-tabbar.mud-tabs-vertical {
        flex-direction: row !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Inner wrapper: horizontal row */
    .admin-tabs .mud-tabs-tabbar-wrapper.mud-tabs-vertical {
        flex-direction: row !important;
        transform: none !important;
    }

    /* Tab items: inline, override inline min-width */
    .admin-tabs .mud-tab {
        min-width: unset !important;
        border-radius: 0 !important;
        padding: 10px 14px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    /* Panels: no left padding */
    .admin-tabs .mud-tabs-panels {
        padding: 16px 0 0 !important;
    }

    /* Hide the vertical tab slider */
    .admin-tabs .mud-tab-slider {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .admin-tabs .mud-tab {
        padding: 8px 10px !important;
        font-size: 11px !important;
        gap: 0 !important;
    }

    /* Icon-only on mobile */
    .admin-tabs .mud-tab .mud-tab-label {
        display: none !important;
    }
}

/* ── Admin table responsive ── */
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 900px) {
    .admin-table thead th,
    .admin-table tbody td { padding: 10px 12px; font-size: 12px; }

    .admin-search { max-width: none; }
}

@media (max-width: 600px) {
    .admin-table thead th,
    .admin-table tbody td { padding: 8px 10px; font-size: 11px; }

    /* Hide less important columns on mobile */
    .admin-table thead th:nth-child(4),
    .admin-table tbody td:nth-child(4),
    .admin-table thead th:nth-child(5),
    .admin-table tbody td:nth-child(5) { display: none; }
}

/* ── Entity cards (workspaces, locations) ── */
.entity-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.2s;
}

.entity-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.08), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.entity-card.inactive { opacity: 0.55; border-style: dashed; }
.entity-card.inactive:hover { opacity: 0.8; }

.entity-card-header { display: flex; gap: 12px; align-items: flex-start; }

.entity-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.entity-card-info { flex: 1; min-width: 0; }
.entity-card-name { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.entity-card-desc { font-size: 11px; color: var(--text-2); line-height: 1.5; margin-top: 2px; }
.entity-card-meta { display: flex; flex-wrap: wrap; gap: 12px; }
.entity-meta-item { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; }
.entity-card-actions { display: flex; gap: 6px; border-top: 1px solid var(--border); padding-top: 12px; }

.entity-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text-2);
    font-size: 11px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
}

.entity-btn:hover { border-color: var(--accent-light); color: var(--accent-light); }
.entity-btn.deactivate { color: var(--text-3); }
.entity-btn.deactivate:hover { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.3); color: #f87171; }
.entity-btn.reactivate { color: var(--text-3); }
.entity-btn.reactivate:hover { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.3); color: #4ade80; }

.inactive-badge {
    padding: 1px 7px;
    border-radius: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    font-size: 9px;
    font-weight: 600;
    color: #f87171;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── Dialog ── */
.admin-dialog {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    width: 420px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.dialog-title { font-family: 'Instrument Serif', serif; font-size: 20px; color: var(--text); margin-bottom: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

.dialog-btn {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
}

.dialog-btn.cancel { background: var(--surface2); border: 1px solid var(--border); color: var(--text-2); }
.dialog-btn.cancel:hover { background: var(--surface3); }
.dialog-btn.danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.dialog-btn.danger:hover { background: rgba(239, 68, 68, 0.25); }

/* ── Shared utility ── */
.mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.dim { color: var(--text-3); }

.admin-empty {
    padding: 32px;
    text-align: left;
    color: var(--text-3);
    font-size: 13px;
}

/* ── Inline edit form shared styles (used inside admin tabs) ── */
.te-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
}

.te-header-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.te-back {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-2);
    flex-shrink: 0;
    margin-top: 2px;
}

.te-back:hover {
    background: var(--surface3);
    border-color: var(--border2);
    color: var(--text);
}

.te-title {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 4px;
}

.te-subtitle {
    font-size: 12px;
    color: var(--text-2);
    font-family: 'JetBrains Mono', monospace;
}

.te-section {
    margin-bottom: 24px;
}

.te-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.te-section-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.te-section-hint {
    font-size: 12px;
    color: var(--text-2);
    font-family: 'JetBrains Mono', monospace;
}

.te-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.te-card-body {
    padding: 20px 24px;
}

.te-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 8px;
}

.te-actions .te-save-btn {
    padding: 8px 28px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--cyan)) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.15s;
}

.te-actions .te-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.te-cancel-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 20px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
}

.te-cancel-btn:hover {
    background: var(--surface2);
    border-color: var(--border2);
    color: var(--text);
}

/* User edit – team list */
.ue-team-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ue-team-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.ue-team-row:hover {
    border-color: var(--border2);
    background: var(--surface2);
}

.ue-team-row.active {
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.04);
}

.ue-team-check { flex-shrink: 0; padding-top: 2px; }

.ue-team-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ue-team-info { flex: 1; min-width: 0; }
.ue-team-name { font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.ue-team-desc { font-size: 11px; color: var(--text-2); line-height: 1.5; }
.ue-team-count { font-size: 11px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; white-space: nowrap; padding-top: 3px; }
.ue-empty { padding: 24px; text-align: center; color: var(--text-3); font-size: 13px; }

/* Manage members */
.mm-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    transition: border-color 0.15s;
}

.mm-search-wrap:focus-within { border-color: var(--accent-light); }

.mm-search {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 13px;
    font-family: 'Space Grotesk', sans-serif;
}

.mm-search::placeholder { color: var(--text-3); }

.mm-user-list { display: flex; flex-direction: column; gap: 8px; }

.mm-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
}

.mm-user-row:hover { border-color: var(--border2); background: var(--surface2); }

.mm-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mm-user-avatar span { font-size: 12px; font-weight: 700; color: white; font-family: 'Space Grotesk', sans-serif; }
.mm-user-info { flex: 1; min-width: 0; }
.mm-user-name { font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 1px; }
.mm-user-email { font-size: 11px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; }

.mm-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.mm-toggle-btn.add { background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.2); color: var(--accent-light); }
.mm-toggle-btn.add:hover { background: rgba(37, 99, 235, 0.15); border-color: rgba(37, 99, 235, 0.35); }
.mm-toggle-btn.remove { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); color: #ef4444; }
.mm-toggle-btn.remove:hover { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.35); }
.mm-empty { padding: 24px; text-align: center; color: var(--text-3); font-size: 13px; }

/* ── MudDatePicker / MudTimePicker ── */
.mud-picker .mud-picker-input-text {
    color: var(--text) !important;
}
