:root {
    --vmr-bg: #08111f;
    --vmr-panel: #111c2d;
    --vmr-panel-alt: #0d1727;
    --vmr-line: #203148;
    --vmr-text: #ecf3ff;
    --vmr-muted: #8ca2c0;
    --vmr-accent: #17c3b2;
    --vmr-danger: #ef4444;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", "Aptos", sans-serif;
    background: radial-gradient(circle at top left, rgba(23, 195, 178, 0.12), transparent 24%), #08111f;
    color: var(--vmr-text);
}

body {
    overflow: auto;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

#blazor-error-ui {
    background: #fff4d6;
    bottom: 0;
    color: #111827;
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    right: 0;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.account-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
    background: #f4f7fb;
    color: #172033;
}

.account-card {
    width: min(100%, 480px);
    background: #fff;
    border: 1px solid #dce5f1;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.account-card__header {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.account-card__header h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
}

.account-card__header p,
.account-card__footer {
    margin: 0;
    color: #5b687b;
    line-height: 1.5;
}

.account-card form {
    display: grid;
    gap: 14px;
}

.account-card .room-input {
    color: #172033;
    background: #fff;
    border-color: #cbd5e1;
}

.account-card__check label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #344256;
}

.account-card__submit {
    width: 100%;
    margin-top: 4px;
}

.account-card__footer {
    text-align: center;
}

.account-card__footer a {
    color: #0f766e;
    font-weight: 700;
}

.text-danger,
.validation-message {
    color: #b91c1c;
}

.dashboard-page {
    min-height: 100vh;
    overflow: auto;
    padding: 32px;
    background: #f4f7fb;
    color: #172033;
}

.dashboard-header {
    max-width: 1180px;
    margin: 0 auto 22px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
}

.dashboard-header h1 {
    margin: 8px 0;
    font-size: 2rem;
}

.dashboard-header p,
.dashboard-muted {
    margin: 0;
    color: #596579;
}

.dashboard-grid {
    max-width: 1180px;
    margin: 0 auto 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
}

.dashboard-panel,
.admin-metric {
    background: #fff;
    border: 1px solid #dce5f1;
    padding: 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dashboard-panel h2 {
    margin: 0 0 16px;
    font-size: 1.1rem;
}

.dashboard-panel form {
    display: grid;
    gap: 14px;
}

.dashboard-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.dashboard-page .room-input {
    color: #172033;
    background: #fff;
    border-color: #cbd5e1;
}

.dashboard-check {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #344256;
}

.dashboard-check--inline {
    min-height: 48px;
}

.dashboard-details {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.dashboard-details dt {
    font-weight: 700;
    color: #344256;
}

.dashboard-details dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-table-wrap {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e3e9f2;
    text-align: left;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
}

.dashboard-link-button {
    border: 0;
    background: transparent;
    padding: 0;
    color: #0f766e;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-role-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dashboard-role-form select {
    min-width: 110px;
}

.dashboard-table th {
    color: #5b687b;
    font-size: 0.84rem;
    text-transform: uppercase;
}

.admin-metric-grid {
    max-width: 1180px;
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-metric {
    display: grid;
    gap: 8px;
}

.admin-metric span {
    color: #5b687b;
    font-size: 0.86rem;
}

.admin-metric strong {
    font-size: 2rem;
}

@media (max-width: 860px) {
    .dashboard-page {
        padding: 18px;
    }

    .dashboard-grid,
    .admin-metric-grid,
    .dashboard-form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-details {
        grid-template-columns: 1fr;
    }
}

.dashboard-page {
    min-height: 100vh;
    padding: 0;
    background:
        linear-gradient(180deg, #eef4fb 0%, #f8fafc 42%, #eef3f8 100%);
    color: #111827;
}

.dashboard-shell {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 44px;
    display: grid;
    gap: 18px;
}

.dashboard-header {
    max-width: none;
    margin: 0;
    padding: 20px 22px;
    border: 1px solid #d9e2ee;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.dashboard-header h1 {
    margin: 6px 0 6px;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    line-height: 1.05;
    letter-spacing: 0;
    color: #0f172a;
}

.dashboard-header h1:focus,
.dashboard-header h1:focus-visible,
.meeting-join-shell__content h1:focus,
.meeting-join-shell__content h1:focus-visible,
.landing-copy h1:focus,
.landing-copy h1:focus-visible {
    outline: 0;
    border: 0;
    box-shadow: none;
}

.dashboard-header p {
    max-width: 68ch;
    color: #536174;
    line-height: 1.55;
}

.dashboard-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.dashboard-secondary-action,
.dashboard-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
}

.dashboard-secondary-action:hover,
.dashboard-table-action:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.dashboard-kicker {
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-stat {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid #dbe4ef;
    background: #fff;
}

.dashboard-stat span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-stat strong {
    color: #0f172a;
    font-size: 2rem;
    line-height: 1;
}

.dashboard-alert {
    padding: 12px 16px;
    border: 1px solid #b7eadf;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 700;
}

.dashboard-alert--error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b;
}

.dashboard-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    gap: 18px;
}

.dashboard-grid {
    max-width: none;
    margin: 0;
}

.dashboard-panel {
    border: 1px solid #dbe4ef;
    background: #fff;
    padding: 0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055);
}

.dashboard-panel--primary,
.dashboard-panel--side,
.dashboard-panel {
    display: grid;
    align-content: start;
}

.dashboard-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dashboard-panel__header h2,
.dashboard-panel h2 {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.2;
}

.dashboard-panel form,
.dashboard-panel > .dashboard-table-wrap,
.dashboard-panel > .dashboard-empty,
.dashboard-panel > .dashboard-details {
    margin: 18px;
}

.dashboard-panel form {
    gap: 16px;
}

.dashboard-page .field-stack {
    gap: 7px;
}

.dashboard-page .field-stack label {
    color: #334155;
    font-size: 0.84rem;
    font-weight: 750;
}

.dashboard-page .room-input {
    min-height: 42px;
    padding: 0.68rem 0.78rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
}

.dashboard-page textarea.room-input {
    min-height: 86px;
    resize: vertical;
}

.dashboard-page .room-input:focus {
    outline: 3px solid rgba(20, 184, 166, 0.16);
    border-color: #0f766e;
}

.dashboard-page .primary-action {
    min-height: 42px;
    border: 1px solid #0f766e;
    background: #0f766e;
    color: #fff;
    box-shadow: none;
}

.dashboard-page .primary-action:hover:not(:disabled) {
    background: #115e59;
}

.dashboard-check {
    width: fit-content;
    padding: 9px 11px;
    border: 1px solid #dbe4ef;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
}

.dashboard-check input {
    accent-color: #0f766e;
}

.dashboard-details {
    grid-template-columns: 1fr;
    gap: 6px;
}

.dashboard-details dt {
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-details dd {
    color: #0f172a;
    font-weight: 650;
}

.dashboard-details--stacked {
    display: grid;
}

.dashboard-url {
    display: block;
    padding: 10px 12px;
    border: 1px solid #dbe4ef;
    background: #f8fafc;
    color: #0f5ea8;
    text-decoration: none;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.dashboard-url:hover {
    text-decoration: underline;
}

.dashboard-code {
    display: inline-flex;
    max-width: 100%;
    padding: 0.34rem 0.52rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-family: "Cascadia Mono", "Consolas", monospace;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.dashboard-empty {
    min-height: 144px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 22px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
}

.dashboard-empty--table {
    min-height: 110px;
}

.dashboard-empty strong {
    color: #0f172a;
    font-size: 1rem;
}

.dashboard-empty span {
    line-height: 1.5;
}

.dashboard-qr-card {
    margin: 18px;
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dbe4ef;
    background: #f8fafc;
}

.dashboard-qr-card strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 1rem;
}

.dashboard-qr-card img {
    width: min(100%, 260px);
    aspect-ratio: 1;
    padding: 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.dashboard-table-wrap {
    border: 1px solid #e2e8f0;
    background: #fff;
}

.dashboard-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
}

.dashboard-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 12px;
    border-bottom: 1px solid #dbe4ef;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.dashboard-table td {
    padding: 12px;
    border-bottom: 1px solid #edf2f7;
    color: #1e293b;
    vertical-align: middle;
}

.dashboard-table tbody tr:hover td {
    background: #f8fafc;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard-strong {
    color: #0f172a;
    font-weight: 750;
}

.dashboard-muted-cell {
    color: #64748b;
}

.dashboard-actions {
    justify-content: flex-end;
}

.dashboard-link-button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
}

.dashboard-link-button:hover {
    background: #fff1f2;
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-badge--scheduled,
.dashboard-badge--public {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.dashboard-badge--private {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.dashboard-badge--cancelled {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.dashboard-badge--completed {
    border-color: #d8b4fe;
    background: #faf5ff;
    color: #7e22ce;
}

@media (max-width: 980px) {
    .dashboard-shell {
        width: min(100% - 24px, 1320px);
        padding: 16px 0 32px;
    }

    .dashboard-header,
    .dashboard-workspace {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        align-items: stretch;
    }

    .dashboard-header__actions {
        justify-content: flex-start;
    }

    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header__actions,
    .dashboard-header__actions .primary-action,
    .dashboard-secondary-action {
        width: 100%;
    }

    .dashboard-form-row {
        grid-template-columns: 1fr;
    }
}

.landing-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 20px 56px;
}

.landing-panel {
    max-width: 720px;
    margin: 7vh auto 0;
    padding: 32px;
    display: grid;
    gap: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d7e0ec;
    border-radius: 24px;
    color: #152235;
}

.landing-kicker,
.meeting-stage__eyebrow {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vmr-accent);
}

.landing-copy h1 {
    margin: 10px 0 8px;
    font-size: clamp(2rem, 3vw, 3.3rem);
    line-height: 1;
    display: block;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    appearance: none;
}

.landing-copy p {
    margin: 0;
    color: #60748a;
    line-height: 1.6;
}

.landing-form,
.meeting-join-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
}

.field-stack {
    flex: 1 1 260px;
    display: grid;
    gap: 10px;
}

.field-stack label {
    font-size: 0.9rem;
    font-weight: 600;
}

.room-input {
    width: 100%;
    border: 1px solid #314155;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    padding: 0.95rem 1rem;
}

.room-input:focus {
    outline: 2px solid rgba(23, 195, 178, 0.28);
    border-color: var(--vmr-accent);
}

.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.1rem;
    border: 0;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, opacity 0.18s ease;
    background: linear-gradient(135deg, var(--vmr-accent) 0%, #2563eb 100%);
    color: white;
}

.primary-action:disabled {
    opacity: 0.7;
}

.landing-hint {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: #60748a;
}

.landing-hint a {
    font-weight: 700;
    color: #0f766e;
}

.meeting-room-screen {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
    background: #08111f;
}

.meeting-rail {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    padding: 12px 10px;
    background: #09111d;
    border-right: 1px solid var(--vmr-line);
}

.meeting-rail__brand {
    display: grid;
    place-items: center;
}

.meeting-rail__brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(23, 195, 178, 0.9), rgba(37, 99, 235, 0.95));
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.meeting-rail__controls,
.meeting-rail__nav {
    display: grid;
    gap: 10px;
    align-content: start;
}

.meeting-rail__button,
.meeting-mobile__dock-button {
    display: grid;
    place-items: center;
    border: 1px solid var(--vmr-line);
    background: #101a2a;
    color: var(--vmr-text);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.meeting-rail__button {
    width: 100%;
    aspect-ratio: 1;
}

.meeting-rail__button svg,
.meeting-mobile__dock-button svg {
    width: 20px;
    height: 20px;
}

.meeting-rail__button:hover:not(:disabled),
.meeting-mobile__dock-button:hover:not(:disabled) {
    background: #16263d;
}

.meeting-rail__button:disabled,
.meeting-mobile__dock-button:disabled {
    opacity: 0.65;
}

.meeting-rail__button--active,
.meeting-mobile__dock-button--active {
    border-color: rgba(23, 195, 178, 0.55);
    background: rgba(23, 195, 178, 0.12);
    color: #d1fae5;
}

.meeting-rail__button--off,
.meeting-mobile__dock-button--off {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(61, 17, 21, 0.92);
    color: #fecaca;
}

.meeting-rail__button--screen {
    color: #dbeafe;
}

.meeting-rail__button--screen.meeting-rail__button--active {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(37, 99, 235, 0.16);
    color: #eff6ff;
}

.meeting-rail__button--danger,
.meeting-mobile__dock-button--danger {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(91, 15, 19, 0.96);
    color: #fecaca;
}

.meeting-rail__button--nav {
    background: #0d1727;
    color: var(--vmr-muted);
}

.meeting-stage {
    position: relative;
    overflow: hidden;
    padding: 0;
    display: grid;
    grid-template-rows: auto auto 1fr;
}

.meeting-stage__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--vmr-line);
    background: rgba(10, 20, 35, 0.94);
}

.meeting-stage__room {
    display: grid;
    gap: 4px;
}

.meeting-stage__room strong {
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.meeting-stage__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--vmr-muted);
    font-size: 0.88rem;
}

.meeting-stage__size-controls {
    display: inline-flex;
    gap: 6px;
}

.meeting-stage__size-button {
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--vmr-line);
    background: #101a2a;
    color: var(--vmr-muted);
    font-weight: 700;
}

.meeting-stage__size-button--active {
    border-color: rgba(23, 195, 178, 0.55);
    background: rgba(23, 195, 178, 0.12);
    color: #d1fae5;
}

.meeting-banner {
    padding: 12px 18px;
    border-bottom: 1px solid var(--vmr-line);
    background: rgba(17, 28, 45, 0.92);
    color: var(--vmr-text);
}

.meeting-banner--error {
    background: rgba(69, 10, 10, 0.92);
    color: #fecaca;
}

.meeting-join-shell,
.meeting-empty-wall {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 32px;
}

.meeting-join-shell__content,
.meeting-empty-wall {
    width: min(720px, 100%);
    padding: 32px;
    background: rgba(13, 23, 39, 0.96);
    border: 1px solid var(--vmr-line);
}

.meeting-join-shell__content h1,
.meeting-empty-wall strong {
    margin: 10px 0;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.meeting-join-shell__content h1 {
    display: block;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    appearance: none;
}

.meeting-join-shell__content p,
.meeting-empty-wall p {
    margin: 0;
    color: var(--vmr-muted);
    line-height: 1.6;
}

.meeting-empty-wall {
    text-align: center;
    align-content: center;
}

.meeting-desktop-layout {
    display: block;
    min-height: 0;
    height: 100%;
}

.meeting-mobile-layout {
    display: none;
}

.video-wall {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: clamp(180px, 24vh, 320px);
    gap: 2px;
    padding: 2px;
    min-height: 0;
    height: 100%;
    background: #050b15;
    align-content: start;
    overflow-y: auto;
}

.video-wall__tile {
    position: relative;
    overflow: hidden;
    background: #0d1727;
    border: 1px solid rgba(255, 255, 255, 0.04);
    grid-column: span 4;
    min-height: 0;
    max-height: clamp(180px, 24vh, 320px);
}

.video-wall__tile--active {
    grid-column: span 8;
    grid-row: span 2;
    max-height: clamp(360px, 48vh, 640px);
}

.video-wall__tile,
.meeting-mobile__speaker-frame,
.meeting-mobile__filmstrip-tile {
    cursor: zoom-in;
}

.video-wall--compact .video-wall__tile--active {
    grid-column: span 6;
}

.video-wall--medium .video-wall__tile--active {
    grid-column: span 8;
}

.video-wall--large .video-wall__tile--active {
    grid-column: span 12;
}

.video-wall__tile video,
.meeting-mobile__speaker-frame video,
.meeting-mobile__filmstrip-tile video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050b15;
}

.video-wall__tile--self video,
.meeting-mobile__speaker-frame--self video,
.meeting-mobile__filmstrip-tile--self video {
    transform: scaleX(-1);
}

.meeting-room-screen--screen-sharing .video-wall__tile--self video,
.meeting-room-screen--screen-sharing .meeting-mobile__speaker-frame--self video,
.meeting-room-screen--screen-sharing .meeting-mobile__filmstrip-tile--self video {
    transform: none;
}

.video-wall__meta,
.meeting-mobile__speaker-meta {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    padding: 16px;
    color: white;
    background: linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.82));
}

.video-wall__meta strong,
.meeting-mobile__speaker-meta strong {
    display: block;
    font-size: 1rem;
}

.video-wall__meta span,
.meeting-mobile__speaker-meta span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
}

.video-wall__meta-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 8px;
}

.video-wall__tag,
.video-wall__badge {
    padding: 0.4rem 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
}

.video-wall__tag {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.video-wall__badge {
    background: rgba(23, 195, 178, 0.24);
    color: #d1fae5;
}

@media (max-width: 1100px) {
    .video-wall__tile {
        grid-column: span 6;
    }

    .video-wall__tile--active {
        grid-column: span 12;
    }

    .video-wall--compact .video-wall__tile--active,
    .video-wall--medium .video-wall__tile--active,
    .video-wall--large .video-wall__tile--active {
        grid-column: span 12;
    }
}

@media (max-width: 920px) {
    body {
        overflow: auto;
    }

    .meeting-room-screen {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr);
    }

    .meeting-rail,
    .meeting-stage__topbar {
        display: none;
    }

    .meeting-stage {
        grid-template-rows: auto 1fr;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .meeting-desktop-layout {
        display: none;
    }

    .meeting-mobile-layout {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto auto;
        min-height: 0;
        height: 100%;
        background: #050b15;
    }

    .meeting-mobile__header {
        display: grid;
        gap: 8px;
        padding: 12px 14px;
        border-bottom: 1px solid var(--vmr-line);
        background: rgba(10, 20, 35, 0.96);
    }

    .meeting-mobile__header strong {
        font-size: 1rem;
    }

    .meeting-mobile__header-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        color: var(--vmr-muted);
        font-size: 0.82rem;
    }

    .meeting-mobile__header-speaker {
        color: #d1fae5;
        font-size: 0.84rem;
        font-weight: 600;
    }

    .meeting-mobile__speaker-stage {
        min-height: 0;
        padding: 0;
    }

    .meeting-mobile__speaker-frame {
        position: relative;
        height: 100%;
        min-height: 46vh;
        max-height: 60vh;
        background: #050b15;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .meeting-mobile__filmstrip {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 34vw;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 12px;
        background: #0a1423;
        border-top: 1px solid var(--vmr-line);
    }

    .meeting-mobile__filmstrip-tile {
        position: relative;
        height: 96px;
        background: #0d1727;
        border: 1px solid rgba(255, 255, 255, 0.04);
        overflow: hidden;
    }

    .meeting-mobile__filmstrip-meta {
        position: absolute;
        inset: auto 0 0 0;
        padding: 8px 10px;
        background: linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.82));
    }

    .meeting-mobile__filmstrip-meta strong {
        font-size: 0.78rem;
        color: white;
    }

    .meeting-mobile__dock {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
        background: rgba(9, 17, 29, 0.98);
        border-top: 1px solid var(--vmr-line);
    }

    .meeting-mobile__dock-button {
        min-height: 54px;
    }

    .meeting-join-shell,
    .meeting-empty-wall {
        padding: 20px;
    }
}

.landing-page {
    position: relative;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    color: #0f172a;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.14), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
}

.landing-page,
.landing-page * {
    scroll-behavior: smooth;
}

.landing-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(248, 251, 255, 0.78);
    backdrop-filter: blur(18px);
}

.landing-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.landing-brand__mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.18);
}

.landing-brand__copy {
    display: grid;
    gap: 2px;
    line-height: 1.05;
}

.landing-brand__copy strong {
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.landing-brand__copy span {
    color: #64748b;
    font-size: 0.9rem;
}

.landing-nav__links,
.landing-nav__actions,
.landing-pills,
.landing-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.landing-nav__links a,
.landing-nav__secondary,
.landing-footer__links a,
.landing-link {
    color: #0f5ea8;
    text-decoration: none;
    font-weight: 700;
}

.landing-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.landing-nav__links a:hover,
.landing-nav__secondary:hover,
.landing-footer__links a:hover,
.landing-link:hover {
    text-decoration: underline;
}

.landing-nav__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(255, 255, 255, 0.68);
    color: #0f172a;
}

.landing-nav__primary,
.landing-join__button,
.landing-cta__button {
    min-height: 48px;
}

.landing-main {
    display: grid;
    gap: 26px;
    padding: 26px 0 44px;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 28px;
    align-items: center;
}

.landing-hero__copy h1 {
    margin: 14px 0 16px;
    max-width: 11ch;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
    color: #0f172a;
}

.landing-hero__copy p {
    margin: 0;
    max-width: 58ch;
    color: #475569;
    font-size: clamp(1.02rem, 1.45vw, 1.16rem);
    line-height: 1.7;
}

.landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

.landing-pills {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.landing-pills li {
    padding: 0.58rem 0.85rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #1e293b;
    font-size: 0.9rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.landing-preview {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    color: #e2e8f0;
    box-shadow: 0 32px 72px rgba(15, 23, 42, 0.16);
}

.landing-preview__chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-preview__chrome-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
}

.landing-preview__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04);
}

.landing-preview__dot--live {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.landing-preview__room {
    color: #8ca2c0;
}

.landing-preview__stage {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.85fr);
    gap: 12px;
    padding: 12px;
}

.landing-preview__speaker {
    position: relative;
    min-height: 320px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background:
        radial-gradient(circle at 20% 18%, rgba(37, 99, 235, 0.34), transparent 24%),
        radial-gradient(circle at 78% 12%, rgba(20, 184, 166, 0.18), transparent 22%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.88));
}

.landing-preview__speaker-glow {
    position: absolute;
    inset: auto -20% -30% 40%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
    filter: blur(8px);
}

.landing-preview__speaker-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    max-width: 20ch;
}

.landing-preview__speaker-copy span {
    color: #8ca2c0;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    font-weight: 700;
}

.landing-preview__speaker-copy strong {
    font-size: 1.65rem;
    line-height: 1.05;
}

.landing-preview__speaker-copy p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
}

.landing-preview__speaker-badge {
    position: absolute;
    right: 16px;
    top: 16px;
    padding: 0.45rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(34, 197, 94, 0.18);
    color: #dcfce7;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.landing-preview__participants {
    display: grid;
    gap: 12px;
}

.landing-preview__tile {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.92));
}

.landing-preview__tile:nth-child(1) {
    background: linear-gradient(160deg, rgba(30, 64, 175, 0.85), rgba(15, 23, 42, 0.9));
}

.landing-preview__tile:nth-child(2) {
    background: linear-gradient(160deg, rgba(15, 118, 110, 0.82), rgba(15, 23, 42, 0.92));
}

.landing-preview__tile:nth-child(3) {
    background: linear-gradient(160deg, rgba(71, 85, 105, 0.82), rgba(15, 23, 42, 0.92));
}

.landing-preview__tile span {
    display: block;
    color: #e2e8f0;
    font-weight: 700;
}

.landing-preview__tile small {
    color: #cbd5e1;
}

.landing-preview__dock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 16px 16px;
    background: rgba(15, 23, 42, 0.92);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.landing-preview__dock-button {
    min-height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-preview__dock-button--active {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.42);
    color: #dbeafe;
}

.landing-preview__dock-button--danger {
    background: rgba(127, 29, 29, 0.95);
    border-color: rgba(239, 68, 68, 0.38);
    color: #fecaca;
}

.landing-join {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 20px;
}

.landing-join__panel,
.landing-join__aside,
.landing-feature-card,
.landing-cta {
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.landing-join__panel {
    display: grid;
    gap: 24px;
    padding: 28px;
}

.landing-join__copy {
    display: grid;
    gap: 10px;
}

.landing-join__copy h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2.4vw, 2.5rem);
    line-height: 1.08;
}

.landing-join__copy p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
    max-width: 54ch;
}

.landing-join__form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: end;
}

.landing-join__input {
    background: rgba(248, 250, 252, 0.92);
    border-color: rgba(148, 163, 184, 0.38);
    color: #0f172a;
}

.landing-join__button {
    min-width: 168px;
    padding-inline: 1.4rem;
}

.landing-join__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.93rem;
}

.landing-join__foot a {
    color: #0f5ea8;
    font-weight: 700;
    text-decoration: none;
}

.landing-join__foot a:hover {
    text-decoration: underline;
}

.landing-join__aside {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 18px;
}

.landing-note-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.96), rgba(235, 243, 252, 0.9));
}

.landing-note-card strong {
    font-size: 1rem;
    color: #0f172a;
}

.landing-note-card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
}

.landing-features {
    display: grid;
    gap: 22px;
    padding-top: 6px;
}

.landing-section-heading {
    display: grid;
    gap: 10px;
    max-width: 68ch;
}

.landing-section-heading h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.05;
}

.landing-section-heading p {
    margin: 0;
    color: #516176;
    line-height: 1.7;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.landing-feature-card {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.landing-feature-card__index {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.12);
    color: #0f5ea8;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.landing-feature-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.landing-feature-card p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.landing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.92));
    color: white;
}

.landing-cta__copy {
    display: grid;
    gap: 8px;
}

.landing-cta__copy h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.3vw, 2.4rem);
    line-height: 1.08;
}

.landing-cta__copy p {
    margin: 0;
    max-width: 50ch;
    color: rgba(226, 232, 240, 0.86);
    line-height: 1.65;
}

.landing-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 6px 0 12px;
    color: #64748b;
    font-size: 0.92rem;
}

.landing-footer__brand {
    display: grid;
    gap: 4px;
}

.landing-footer__brand strong {
    color: #0f172a;
}

.landing-footer__links {
    justify-content: flex-end;
}

.landing-page :where(a, button, input):focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 3px;
}

.landing-page .primary-action:focus-visible {
    outline-color: rgba(15, 118, 110, 0.7);
}

@media (max-width: 1120px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-preview__stage {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-preview__participants {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .landing-join {
        grid-template-columns: 1fr;
    }

    .landing-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .landing-container {
        width: min(100%, calc(100% - 24px));
    }

    .landing-nav__inner {
        gap: 12px;
    }

    .landing-nav__links {
        display: none;
    }

    .landing-nav__secondary {
        display: none;
    }

    .landing-brand__copy span {
        display: none;
    }

    .landing-main {
        gap: 20px;
        padding: 20px 0 32px;
    }

    .landing-hero__copy h1 {
        max-width: 100%;
        font-size: clamp(2.4rem, 10vw, 3.8rem);
    }

    .landing-hero__actions {
        align-items: stretch;
    }

    .landing-hero__actions .primary-action,
    .landing-hero__actions .landing-link {
        width: 100%;
        justify-content: center;
    }

    .landing-pills {
        gap: 8px;
    }

    .landing-pills li {
        flex: 1 1 100%;
        text-align: center;
    }

    .landing-preview__speaker {
        min-height: 240px;
    }

    .landing-preview__speaker-copy strong {
        font-size: 1.35rem;
    }

    .landing-preview__participants {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .landing-preview__dock {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-join__panel,
    .landing-join__aside,
    .landing-feature-card,
    .landing-cta {
        padding: 20px;
    }

    .landing-join__button,
    .landing-cta__button {
        width: 100%;
    }

    .landing-join__foot,
    .landing-cta {
        align-items: stretch;
    }

    .landing-cta {
        flex-direction: column;
    }

    .landing-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Mintlify design system override */
:root {
    --vmr-bg: #ffffff;
    --vmr-panel: #ffffff;
    --vmr-panel-alt: #fafafa;
    --vmr-line: rgba(0, 0, 0, 0.05);
    --vmr-line-medium: rgba(0, 0, 0, 0.08);
    --vmr-text: #0d0d0d;
    --vmr-muted: #666666;
    --vmr-accent: #18e299;
    --vmr-accent-light: #d4fae8;
    --vmr-accent-deep: #0fa76e;
    --vmr-danger: #d45656;
    --vmr-shadow: rgba(0, 0, 0, 0.03) 0 2px 4px;
    --vmr-font: "Inter", "Inter Fallback", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --vmr-mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

html,
body {
    font-family: var(--vmr-font);
    background: #ffffff;
    color: var(--vmr-text);
}

a {
    color: var(--vmr-text);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--vmr-accent-deep);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.landing-page,
.dashboard-page,
.account-page,
.meeting-join-shell {
    background:
        radial-gradient(circle at 50% 0%, rgba(24, 226, 153, 0.16), transparent 34%),
        #ffffff;
    color: var(--vmr-text);
}

.landing-container,
.dashboard-shell {
    width: min(1200px, calc(100% - 40px));
}

.landing-nav,
.meeting-stage__topbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--vmr-line);
    color: var(--vmr-text);
    backdrop-filter: blur(12px);
}

.landing-brand__mark,
.meeting-rail__brand-mark {
    border: 1px solid var(--vmr-line-medium);
    border-radius: 9999px;
    background: var(--vmr-accent);
    color: var(--vmr-text);
    font-family: var(--vmr-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.6px;
}

.landing-brand__copy strong,
.landing-nav__links a,
.landing-nav__secondary,
.dashboard-header h1,
.account-card__header h1,
.landing-hero__copy h1,
.landing-hero__copy h3,
.landing-section-heading h2,
.landing-join__copy h2,
.landing-cta__copy h2,
.meeting-stage__room strong {
    color: var(--vmr-text);
    letter-spacing: 0;
}

.landing-brand__copy span,
.landing-hero__copy p,
.landing-join__copy p,
.landing-section-heading p,
.landing-cta__copy p,
.dashboard-header p,
.dashboard-muted,
.account-card__header p,
.account-card__footer,
.meeting-stage__stats,
.dashboard-muted-cell {
    color: var(--vmr-muted);
}

.landing-kicker,
.dashboard-kicker,
.meeting-stage__eyebrow,
.dashboard-stat span,
.dashboard-table th,
.dashboard-details dt,
.landing-feature-card__index {
    color: var(--vmr-accent-deep);
    font-family: var(--vmr-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.landing-hero,
.dashboard-header,
.admin-hero {
    border: 1px solid var(--vmr-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--vmr-shadow);
}

.landing-hero__copy h1,
.landing-hero__copy h3,
.dashboard-header h1,
.account-card__header h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: 0;
}

.dashboard-panel,
.dashboard-stat,
.admin-metric,
.account-card,
.landing-preview,
.landing-join__panel,
.landing-note-card,
.landing-feature-card,
.landing-cta,
.meeting-banner,
.dashboard-alert,
.admin-toggle-card {
    border: 1px solid var(--vmr-line);
    border-radius: 24px;
    background: #ffffff;
    color: var(--vmr-text);
    box-shadow: var(--vmr-shadow);
}

.dashboard-panel,
.dashboard-stat,
.landing-feature-card,
.landing-note-card,
.account-card {
    padding: 24px;
}

.dashboard-panel {
    padding: 0;
}

.dashboard-panel__header {
    border-bottom: 1px solid var(--vmr-line);
    border-radius: 24px 24px 0 0;
    background: #ffffff;
}

.dashboard-panel__header h2,
.dashboard-panel h2,
.landing-feature-card h3,
.landing-note-card strong,
.admin-toggle-card strong {
    color: var(--vmr-text);
    font-weight: 600;
    letter-spacing: 0;
}

.primary-action,
.landing-nav__primary,
.landing-nav__secondary,
.landing-link,
.dashboard-secondary-action,
.dashboard-table-action,
.dashboard-link-button,
.meeting-rail__button,
.meeting-mobile__dock-button {
    border-radius: 9999px;
    font-size: 0.94rem;
    font-weight: 500;
    letter-spacing: 0;
    box-shadow: rgba(0, 0, 0, 0.06) 0 1px 2px;
}

.primary-action,
.dashboard-page .primary-action {
    border: 1px solid #0d0d0d;
    background: #0d0d0d;
    color: #ffffff;
    padding: 0.62rem 1.5rem;
}

.primary-action:hover:not(:disabled),
.dashboard-page .primary-action:hover:not(:disabled) {
    background: #0d0d0d;
    color: #ffffff;
    opacity: 0.9;
}

.landing-nav__secondary,
.landing-link,
.dashboard-secondary-action,
.dashboard-table-action,
.dashboard-link-button {
    border: 1px solid var(--vmr-line-medium);
    background: #ffffff;
    color: var(--vmr-text);
    text-decoration: none;
}

.landing-nav__secondary:hover,
.landing-link:hover,
.dashboard-secondary-action:hover,
.dashboard-table-action:hover,
.dashboard-link-button:hover {
    border-color: rgba(0, 0, 0, 0.14);
    background: #ffffff;
    color: var(--vmr-accent-deep);
}

.room-input,
.dashboard-page .room-input,
.account-card .room-input {
    min-height: 44px;
    border: 1px solid var(--vmr-line-medium);
    border-radius: 9999px;
    background: #ffffff;
    color: var(--vmr-text);
    padding: 0.65rem 1rem;
}

textarea.room-input,
.dashboard-page textarea.room-input {
    border-radius: 18px;
}

.room-input:focus,
.dashboard-page .room-input:focus,
.account-card .room-input:focus {
    border-color: var(--vmr-accent);
    outline: 1px solid var(--vmr-accent);
    box-shadow: 0 0 0 3px rgba(24, 226, 153, 0.18);
}

.field-stack label,
.dashboard-page .field-stack label {
    color: var(--vmr-text);
    font-size: 0.81rem;
    font-weight: 500;
    letter-spacing: 0.65px;
    text-transform: uppercase;
}

.dashboard-check {
    border: 1px solid var(--vmr-line);
    border-radius: 9999px;
    background: #ffffff;
    color: var(--vmr-text);
}

.dashboard-check input,
.admin-switch input {
    accent-color: var(--vmr-accent);
}

.dashboard-stat {
    gap: 10px;
}

.dashboard-stat strong,
.admin-metric strong {
    color: var(--vmr-text);
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1;
}

.dashboard-table-wrap {
    border: 1px solid var(--vmr-line);
    border-radius: 16px;
    background: #ffffff;
}

.dashboard-table th {
    border-bottom: 1px solid var(--vmr-line);
    background: #ffffff;
}

.dashboard-table td {
    border-bottom: 1px solid var(--vmr-line);
    color: #333333;
}

.dashboard-table tbody tr:hover td {
    background: #fafafa;
}

.dashboard-badge {
    border-radius: 9999px;
    font-family: var(--vmr-mono);
    font-size: 0.75rem;
    letter-spacing: 0.6px;
}

.dashboard-badge--scheduled,
.dashboard-badge--public {
    border-color: rgba(24, 226, 153, 0.35);
    background: var(--vmr-accent-light);
    color: var(--vmr-accent-deep);
}

.dashboard-badge--private {
    border-color: rgba(55, 114, 207, 0.24);
    background: rgba(55, 114, 207, 0.08);
    color: #3772cf;
}

.dashboard-badge--cancelled,
.dashboard-alert--error,
.meeting-banner--error {
    border-color: rgba(212, 86, 86, 0.25);
    background: rgba(212, 86, 86, 0.08);
    color: #9e3030;
}

.dashboard-badge--completed {
    border-color: rgba(24, 226, 153, 0.22);
    background: #f7fffb;
    color: var(--vmr-accent-deep);
}

.dashboard-alert,
.meeting-banner {
    border-color: rgba(24, 226, 153, 0.28);
    background: #f7fffb;
    color: var(--vmr-accent-deep);
}

.account-page {
    place-items: start center;
    padding-top: 64px;
}

.account-card {
    border-radius: 24px;
    box-shadow: var(--vmr-shadow);
}

.account-card form {
    gap: 16px;
}

.account-card__footer a {
    color: var(--vmr-accent-deep);
    font-weight: 500;
}

.account-notice {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid var(--vmr-line);
    border-radius: 16px;
    background: #fafafa;
    color: var(--vmr-muted);
}

.account-notice strong {
    color: var(--vmr-text);
    font-size: 1rem;
    font-weight: 600;
}

.admin-page .dashboard-shell {
    gap: 18px;
}

.admin-layout,
.admin-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 18px;
}

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

.admin-toggle-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px;
    box-shadow: none;
}

.admin-toggle-card p {
    margin: 8px 0 0;
    color: var(--vmr-muted);
    line-height: 1.5;
}

.admin-switch {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.admin-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-switch span {
    width: 52px;
    height: 30px;
    position: relative;
    display: inline-block;
    border: 1px solid var(--vmr-line-medium);
    border-radius: 9999px;
    background: #f5f5f5;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.admin-switch span::after {
    content: "";
    width: 22px;
    height: 22px;
    position: absolute;
    top: 3px;
    left: 4px;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px;
    transition: transform 0.18s ease;
}

.admin-switch input:checked + span {
    border-color: rgba(24, 226, 153, 0.42);
    background: var(--vmr-accent);
}

.admin-switch input:checked + span::after {
    transform: translateX(21px);
}

.admin-form-actions {
    justify-content: flex-start;
}

.admin-health-panel .dashboard-details {
    margin: 18px;
}

.admin-role-select {
    min-width: 132px;
}

.admin-room-link {
    display: inline-flex;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--vmr-accent-deep);
    font-weight: 500;
}

.landing-preview,
.landing-preview__stage,
.landing-preview__speaker,
.landing-preview__tile,
.landing-preview__dock-button {
    border-color: var(--vmr-line);
    background: #ffffff;
    color: var(--vmr-text);
}

.landing-preview__chrome,
.landing-preview__dock {
    border-color: var(--vmr-line);
    background: #fafafa;
    color: var(--vmr-muted);
}

.landing-preview__dot--live {
    background: var(--vmr-accent);
}

.landing-pills li {
    border: 1px solid var(--vmr-line);
    border-radius: 9999px;
    background: #ffffff;
    color: var(--vmr-text);
}

.meeting-room-screen {
    background: #ffffff;
    color: var(--vmr-text);
}

.meeting-rail {
    border-right: 1px solid var(--vmr-line);
    background: #ffffff;
}

.meeting-rail__button,
.meeting-mobile__dock-button {
    border-color: var(--vmr-line-medium);
    background: #ffffff;
    color: var(--vmr-text);
}

.meeting-rail__button:hover:not(:disabled),
.meeting-mobile__dock-button:hover:not(:disabled) {
    background: #fafafa;
}

.meeting-rail__button--active,
.meeting-mobile__dock-button--active {
    border-color: rgba(24, 226, 153, 0.45);
    background: var(--vmr-accent-light);
    color: var(--vmr-accent-deep);
}

.meeting-rail__button--off,
.meeting-mobile__dock-button--off,
.meeting-rail__button--danger,
.meeting-mobile__dock-button--danger {
    border-color: rgba(212, 86, 86, 0.25);
    background: rgba(212, 86, 86, 0.08);
    color: #9e3030;
}

.meeting-rail__button--screen,
.meeting-rail__button--nav {
    color: var(--vmr-text);
}

.meeting-stage {
    background: #ffffff;
}

.text-danger,
.validation-message {
    color: var(--vmr-danger);
}

@media (max-width: 980px) {
    .landing-container,
    .dashboard-shell {
        width: min(100% - 24px, 1200px);
    }

    .admin-layout,
    .admin-two-column,
    .admin-settings-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-page--compact .dashboard-shell--tabbed {
    gap: 16px;
    padding-bottom: 28px;
}

.dashboard-page--compact .dashboard-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--vmr-line);
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: var(--vmr-shadow);
}

.dashboard-tab {
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 9999px;
    background: transparent;
    color: var(--vmr-muted);
    font-size: 0.94rem;
    font-weight: 500;
    cursor: pointer;
}

.dashboard-tab:hover {
    color: var(--vmr-text);
    background: #fafafa;
}

.dashboard-tab--active {
    border-color: #0d0d0d;
    background: #0d0d0d;
    color: #ffffff;
}

.dashboard-tab--active:hover {
    color: #ffffff;
    background: #0d0d0d;
}

.dashboard-tab-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 16px;
    align-items: start;
}

.dashboard-tab-grid--split {
    grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
}

.dashboard-created-card {
    grid-column: 1 / -1;
}

.dashboard-list {
    display: grid;
    gap: 10px;
    margin: 18px;
}

.dashboard-list-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--vmr-line);
    border-radius: 16px;
    background: #ffffff;
}

.dashboard-list-item div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.dashboard-list-item strong {
    color: var(--vmr-text);
    font-weight: 600;
}

.dashboard-list-item span {
    color: var(--vmr-muted);
    font-size: 0.88rem;
}

.dashboard-date-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-table-wrap--fixed {
    max-height: min(58vh, 620px);
    overflow: auto;
}

.dashboard-qr-card--large {
    justify-items: start;
}

.dashboard-qr-card--large img {
    width: min(100%, 320px);
}

@media (max-width: 1040px) {
    .dashboard-tab-grid,
    .dashboard-tab-grid--split {
        grid-template-columns: 1fr;
    }

    .dashboard-date-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .dashboard-tabs {
        border-radius: 24px;
    }

    .dashboard-tab {
        flex: 1 1 calc(50% - 8px);
    }

    .dashboard-date-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-list-item {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Dashboard workspace fixes: use screen width and prevent control overlap */
.dashboard-page--compact .dashboard-shell--tabbed {
    width: min(100% - 40px, 1760px);
    max-width: none;
}

.dashboard-page--compact .dashboard-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.dashboard-page--compact .dashboard-stat-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.dashboard-page--compact .dashboard-tab-grid {
    grid-template-columns: minmax(420px, 0.65fr) minmax(0, 1.35fr);
}

.dashboard-page--compact .dashboard-tab-grid--split {
    grid-template-columns: minmax(420px, 0.52fr) minmax(0, 1.48fr);
}

.dashboard-page--compact .dashboard-date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-page--compact .dashboard-date-grid .field-stack {
    min-width: 0;
}

.dashboard-page--compact .dashboard-date-grid .room-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.dashboard-page--compact .dashboard-table-wrap--fixed {
    max-height: calc(100vh - 420px);
    min-height: 280px;
}

.dashboard-page--compact .dashboard-table {
    min-width: 980px;
}

.dashboard-page--compact .dashboard-table th,
.dashboard-page--compact .dashboard-table td {
    white-space: nowrap;
}

.dashboard-page--compact .dashboard-table td:first-child,
.dashboard-page--compact .dashboard-table td:nth-child(3) {
    white-space: normal;
}

.dashboard-page--compact .dashboard-actions {
    flex-wrap: nowrap;
}

@media (min-width: 1500px) {
    .dashboard-page--compact .dashboard-tab-grid--split {
        grid-template-columns: minmax(460px, 0.42fr) minmax(0, 1.58fr);
    }
}

@media (max-width: 1120px) {
    .dashboard-page--compact .dashboard-header,
    .dashboard-page--compact .dashboard-tab-grid,
    .dashboard-page--compact .dashboard-tab-grid--split {
        grid-template-columns: 1fr;
    }

    .dashboard-page--compact .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-page--compact .dashboard-table-wrap--fixed {
        max-height: 560px;
    }
}

@media (max-width: 680px) {
    .dashboard-page--compact .dashboard-shell--tabbed {
        width: min(100% - 20px, 1760px);
    }

    .dashboard-page--compact .dashboard-date-grid,
    .dashboard-page--compact .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* UI/UX repair pass */
:root {
    --vmr-radius: 8px;
    --vmr-surface: #ffffff;
    --vmr-surface-muted: #f7f9fc;
    --vmr-line-strong: rgba(15, 23, 42, 0.12);
    --vmr-text-soft: #475569;
    --vmr-ring: rgba(24, 226, 153, 0.32);
}

* {
    box-sizing: border-box;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--vmr-accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px var(--vmr-ring);
}

:where(h1, h2, h3)[tabindex="-1"]:focus,
:where(h1, h2, h3)[tabindex="-1"]:focus-visible {
    outline: 0;
    box-shadow: none;
}

.landing-hero,
.dashboard-header,
.admin-hero,
.dashboard-panel,
.dashboard-stat,
.admin-metric,
.account-card,
.landing-preview,
.landing-join__panel,
.landing-join__aside,
.landing-note-card,
.landing-feature-card,
.landing-cta,
.meeting-banner,
.dashboard-alert,
.admin-toggle-card,
.dashboard-empty,
.dashboard-qr-card,
.dashboard-list-item,
.utility-card,
.account-manage-header,
.account-manage-content,
.account-manage-sidebar {
    border-radius: var(--vmr-radius);
}

.landing-preview__speaker,
.landing-preview__tile,
.landing-preview__dock-button,
.landing-pills li,
.dashboard-table-wrap,
.dashboard-url,
.dashboard-code,
.account-notice,
.utility-status {
    border-radius: var(--vmr-radius);
}

.primary-action,
.landing-nav__primary,
.landing-nav__secondary,
.landing-link,
.dashboard-secondary-action,
.dashboard-table-action,
.dashboard-link-button,
.dashboard-tab,
.meeting-rail__button,
.meeting-mobile__dock-button,
.meeting-stage__size-button {
    border-radius: var(--vmr-radius);
}

.room-input,
.dashboard-page .room-input,
.account-card .room-input,
.account-manage-content .form-control,
.account-manage-content .form-select {
    border-radius: var(--vmr-radius);
}

.landing-page,
.dashboard-page,
.account-page,
.utility-page,
.account-manage-page {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 1) 36%),
        radial-gradient(circle at 20% 0%, rgba(24, 226, 153, 0.13), transparent 28%),
        #ffffff;
}

.landing-nav {
    border-bottom-color: var(--vmr-line-strong);
}

.landing-main {
    gap: 24px;
}

.landing-hero {
    align-items: center;
    min-height: min(680px, calc(100dvh - 112px));
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.landing-hero__copy h1 {
    margin: 12px 0 12px;
    max-width: 12ch;
    color: #0f172a;
    font-size: clamp(2.65rem, 6vw, 5.4rem);
    font-weight: 650;
    line-height: 0.98;
}

.landing-hero__copy p,
.landing-join__copy p,
.landing-section-heading p,
.landing-feature-card p,
.landing-note-card p {
    color: var(--vmr-text-soft);
}

.landing-preview {
    overflow: hidden;
}

.landing-preview__speaker {
    min-height: 310px;
}

.landing-preview__speaker-badge,
.video-wall__badge,
.video-wall__tag,
.dashboard-badge {
    border-radius: 9999px;
}

.dashboard-page--compact .dashboard-shell--tabbed,
.admin-page .dashboard-shell {
    width: min(100% - 32px, 1680px);
    gap: 14px;
}

.dashboard-header,
.account-manage-header {
    padding: 18px;
    border-color: var(--vmr-line-strong);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.dashboard-header h1,
.account-manage-header h1,
.utility-card h1 {
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    line-height: 1.05;
}

.dashboard-stat-grid {
    gap: 10px;
}

.dashboard-stat {
    min-height: 110px;
    padding: 16px;
    border-color: var(--vmr-line-strong);
}

.dashboard-stat strong,
.admin-metric strong {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.dashboard-tabs {
    width: fit-content;
    max-width: 100%;
    border-radius: var(--vmr-radius);
    overflow-x: auto;
}

.dashboard-tab {
    white-space: nowrap;
}

.dashboard-panel {
    border-color: var(--vmr-line-strong);
}

.dashboard-panel__header {
    border-radius: var(--vmr-radius) var(--vmr-radius) 0 0;
    padding: 14px 16px;
}

.dashboard-panel form,
.dashboard-panel > .dashboard-table-wrap,
.dashboard-panel > .dashboard-empty,
.dashboard-panel > .dashboard-details {
    margin: 16px;
}

.dashboard-table-wrap {
    overflow: auto;
    border-color: var(--vmr-line-strong);
}

.dashboard-table th,
.dashboard-table td {
    padding: 10px 12px;
}

.dashboard-page--compact .dashboard-table-wrap--fixed {
    max-height: calc(100dvh - 390px);
}

.dashboard-actions {
    gap: 8px;
}

.dashboard-link-button {
    border-color: rgba(212, 86, 86, 0.3);
}

.admin-layout,
.admin-two-column {
    gap: 14px;
}

.admin-toggle-card {
    align-items: flex-start;
}

.admin-role-select {
    min-width: 150px;
}

.meeting-stage__topbar {
    color: #0f172a;
}

.meeting-stage__stats {
    gap: 10px;
}

.video-wall {
    gap: 6px;
    padding: 6px;
    background: #f1f5f9;
}

.video-wall__tile,
.meeting-mobile__speaker-frame,
.meeting-mobile__filmstrip-tile {
    border-radius: var(--vmr-radius);
    border-color: rgba(15, 23, 42, 0.12);
    background: #020617;
}

.video-wall__meta {
    border-radius: 0 0 var(--vmr-radius) var(--vmr-radius);
}

.meeting-join-shell__content,
.meeting-empty-wall {
    border-radius: var(--vmr-radius);
    border-color: var(--vmr-line-strong);
    background: #ffffff;
    color: #0f172a;
}

.meeting-join-shell__content p,
.meeting-empty-wall p {
    color: var(--vmr-text-soft);
}

.utility-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: start center;
    padding: 64px 18px 40px;
    color: #0f172a;
}

.utility-page--wide {
    place-items: start center;
}

.utility-card {
    width: min(100%, 560px);
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--vmr-line-strong);
    background: var(--vmr-surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.utility-card--wide {
    width: min(100%, 960px);
}

.utility-card h1,
.utility-card p {
    margin: 0;
}

.utility-lead,
.utility-card > p {
    color: var(--vmr-text-soft);
    line-height: 1.6;
}

.utility-counter {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--vmr-line-strong);
    border-radius: var(--vmr-radius);
    background: var(--vmr-surface-muted);
}

.utility-counter span,
.utility-status span {
    color: var(--vmr-text-soft);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.utility-counter strong {
    font-size: 2.4rem;
    line-height: 1;
}

.utility-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.utility-status {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--vmr-line-strong);
    background: var(--vmr-surface-muted);
}

.utility-status code,
.utility-status strong {
    overflow-wrap: anywhere;
}

.utility-table {
    min-width: 680px;
}

.account-manage-page {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px 0 44px;
    color: #0f172a;
}

.account-manage-shell {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.account-manage-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    border: 1px solid var(--vmr-line-strong);
    background: #ffffff;
}

.account-manage-header h1,
.account-manage-header p {
    margin: 0;
}

.account-manage-header p {
    margin-top: 8px;
    color: var(--vmr-text-soft);
}

.account-manage-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.account-manage-sidebar,
.account-manage-content {
    border: 1px solid var(--vmr-line-strong);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.account-manage-sidebar {
    position: sticky;
    top: 16px;
    padding: 10px;
}

.account-manage-nav {
    display: grid;
    gap: 6px;
}

.account-manage-nav__link {
    display: flex;
    min-height: 40px;
    align-items: center;
    padding: 0 12px;
    border-radius: var(--vmr-radius);
    color: var(--vmr-text-soft);
    text-decoration: none;
    font-weight: 600;
}

.account-manage-nav__link:hover {
    background: var(--vmr-surface-muted);
    color: #0f172a;
}

.account-manage-nav__link.active {
    background: #0d0d0d;
    color: #ffffff;
}

.account-manage-content {
    min-width: 0;
    padding: 24px;
}

.account-manage-content h3 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 1.5rem;
}

.account-manage-content .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

.account-manage-content .col-xl-6,
.account-manage-content .col-md-6,
.account-manage-content .col-md-4,
.account-manage-content .col-lg-6 {
    width: min(100%, 680px);
    max-width: 100%;
}

.account-manage-content .form-floating,
.account-manage-content .mb-3 {
    margin-bottom: 14px !important;
}

.account-manage-content .form-control,
.account-manage-content .form-select {
    min-height: 44px;
    border: 1px solid var(--vmr-line-strong);
    background: #ffffff;
    color: #0f172a;
}

.account-manage-content .form-control:focus,
.account-manage-content .form-select:focus {
    border-color: var(--vmr-accent);
    box-shadow: 0 0 0 4px var(--vmr-ring);
}

.account-manage-content .btn-primary,
.account-manage-content .btn-danger,
body > .row .btn-primary,
body > .row .btn-danger {
    min-height: 42px;
    border-radius: var(--vmr-radius);
    border: 1px solid #0d0d0d;
    background: #0d0d0d;
    color: #ffffff;
    font-weight: 600;
}

.account-manage-content .btn-danger,
body > .row .btn-danger {
    border-color: #991b1b;
    background: #991b1b;
}

.account-card .alert,
.account-manage-content .alert,
body > .alert {
    border-radius: var(--vmr-radius);
    border: 1px solid var(--vmr-line-strong);
    background: var(--vmr-surface-muted);
    color: #0f172a;
}

.account-card .alert-danger,
.account-manage-content .alert-danger,
body > .alert-danger {
    border-color: rgba(212, 86, 86, 0.3);
    background: rgba(212, 86, 86, 0.08);
    color: #9e3030;
}

body > h1,
body > h2,
body > h3,
body > p,
body > .row,
body > form,
body > .alert,
body > hr {
    width: min(100% - 32px, 560px);
    margin-left: auto;
    margin-right: auto;
}

body > h1:first-child,
body > h2:first-child,
body > h3:first-child {
    margin-top: 64px;
}

body > h1,
body > h2,
body > h3 {
    color: #0f172a;
}

body > p {
    color: var(--vmr-text-soft);
    line-height: 1.6;
}

body > .row,
body > form {
    padding: 24px;
    border: 1px solid var(--vmr-line-strong);
    border-radius: var(--vmr-radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

body > .row [class^="col-"],
body > .row [class*=" col-"] {
    width: 100%;
    max-width: 100%;
}

body > .row .form-control,
body > form .form-control {
    min-height: 44px;
    border: 1px solid var(--vmr-line-strong);
    border-radius: var(--vmr-radius);
}

body > hr {
    border-color: var(--vmr-line-strong);
    opacity: 1;
}

@media (max-width: 980px) {
    .landing-hero {
        min-height: auto;
    }

    .dashboard-page--compact .dashboard-shell--tabbed,
    .admin-page .dashboard-shell,
    .account-manage-shell {
        width: min(100% - 20px, 1680px);
    }

    .account-manage-header,
    .account-manage-grid,
    .dashboard-page--compact .dashboard-header {
        grid-template-columns: 1fr;
    }

    .account-manage-sidebar {
        position: static;
    }

    .account-manage-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-tabs {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .landing-hero__copy h1 {
        max-width: 100%;
        font-size: clamp(2.25rem, 11vw, 3.4rem);
    }

    .utility-page,
    .account-page {
        padding: 24px 12px;
    }

    .utility-card,
    .account-card,
    .account-manage-content {
        padding: 18px;
    }

    .utility-actions,
    .utility-actions .primary-action,
    .utility-actions .dashboard-secondary-action,
    .dashboard-header__actions,
    .dashboard-header__actions .primary-action,
    .dashboard-header__actions .dashboard-secondary-action {
        width: 100%;
    }

    .utility-actions .primary-action,
    .utility-actions .dashboard-secondary-action,
    .dashboard-header__actions .primary-action,
    .dashboard-header__actions .dashboard-secondary-action {
        justify-content: center;
    }

    .account-manage-nav {
        grid-template-columns: 1fr;
    }

    .dashboard-tabs {
        border-radius: var(--vmr-radius);
    }

    .dashboard-tab {
        flex: 1 1 100%;
    }

    .meeting-mobile__dock {
        gap: 8px;
        padding: 10px;
    }

    .meeting-mobile__speaker-frame {
        min-height: 42vh;
    }
}
