/* ==========================================================================
   Mailvio Theme Foundation

   Global token bridge and reusable primitives for the Mailvio UI port.
   This file is injected into HTML responses by InjectMailvioTheme middleware.
   It keeps the current Mailvio/mc-* contracts alive while adding mv-* classes
   for new Mailvio screens.
   ========================================================================== */

:root {
    --mv-green: #7fa12b;
    --mv-green-dark: #6d8f1f;
    --mv-green-active: #5f7e19;
    --mv-green-soft: #f0f5e6;
    --mv-lime: #a7dc54;
    --mv-teal: #47b9aa;
    --mv-purple: #7448bd;
    --mv-red: #ef4444;
    --mv-blue: #d7f3fb;
    --mv-bg: #f6f6f4;
    --mv-surface: #ffffff;
    --mv-surface-soft: #fbfbfa;
    --mv-border: #deded9;
    --mv-border-strong: #d8d8d6;
    --mv-text: #050505;
    --mv-muted: #6f746c;

    --mv-success-bg: #cdf5ec;
    --mv-success-text: #007b70;
    --mv-danger-bg: #fff0f1;
    --mv-danger-text: #b40404;
    --mv-info-bg: #d7f3fb;
    --mv-info-text: #27606f;
    --mv-neutral-bg: #ececeb;
    --mv-neutral-text: #111111;
    --mv-purple-bg: #eee6ff;
    --mv-purple-text: #5333a3;
    --mv-warning-bg: #fff4df;
    --mv-warning-text: #945500;

    --mv-font: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mv-body-size: 14px;
    --mv-page-title-size: 34px;
    --mv-section-title-size: 22px;
    --mv-stat-size: 52px;

    --mv-topbar-height: 78px;
    --mv-page-padding-x: 32px;
    --mv-page-padding-y: 24px;
    --mv-shell-padding: 32px;
    --mv-card-radius: 12px;
    --mv-panel-radius: 10px;
    --mv-control-radius: 7px;
    --mv-badge-radius: 6px;
    --mv-pill-radius: 999px;
    --mv-card-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    --mv-drawer-shadow: -8px 0 24px rgba(0, 0, 0, 0.04);

    /* Bridge refactor variables to Mailvio without deleting existing CSS. */
    --font-family: var(--mv-font);
    --color-text: var(--mv-text);
    --color-text-secondary: #252525;
    --color-text-muted: var(--mv-muted);
    --color-text-disabled: #9a9d95;
    --color-page-bg: var(--mv-bg);
    --color-card-bg: var(--mv-surface);
    --color-hover-bg: var(--mv-neutral-bg);
    --color-active-bg: #e4e4e1;
    --color-subtle-bg: var(--mv-surface-soft);
    --color-bg-subtle: var(--mv-surface-soft);
    --color-banner-bg: var(--mv-neutral-bg);
    --color-border: var(--mv-border);
    --color-border-strong: var(--mv-border-strong);
    --color-border-focus: var(--mv-green);
    --color-teal: var(--mv-green);
    --color-teal-hover: var(--mv-green-dark);
    --color-teal-active: var(--mv-green-active);
    --color-teal-ring: rgba(127, 161, 43, 0.2);
    --color-teal-light: var(--mv-green-soft);
    --color-success: var(--mv-success-text);
    --color-success-dark: #00645b;
    --color-success-bg: var(--mv-success-bg);
    --color-error: var(--mv-danger-text);
    --color-error-dark: #8f0202;
    --color-error-bg: var(--mv-danger-bg);
    --color-error-ring: rgba(180, 4, 4, 0.16);
    --color-warning: var(--mv-warning-text);
    --color-warning-dark: #6f4000;
    --color-warning-bg: var(--mv-warning-bg);
    --color-info: var(--mv-info-text);
    --color-info-dark: #1f4f5c;
    --color-info-bg: var(--mv-info-bg);
    --chart-1: var(--mv-teal);
    --chart-2: var(--mv-green);
    --chart-3: #5e93c8;
    --chart-4: #d8934d;
    --chart-5: #d96878;
    --chart-6: var(--mv-purple);
    --chart-1-bg: #e5f7f5;
    --chart-2-bg: var(--mv-green-soft);
    --chart-3-bg: #edf5ff;
    --chart-4-bg: #fff3e6;
    --chart-5-bg: var(--mv-danger-bg);
    --chart-6-bg: var(--mv-purple-bg);
    --radius-sm: 5px;
    --radius-input: var(--mv-control-radius);
    --radius-card: var(--mv-card-radius);
    --radius-lg: 16px;
    --radius-full: var(--mv-pill-radius);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-card: var(--mv-card-shadow);
    --shadow-dropdown: 0 8px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-modal: 0 18px 48px rgba(0, 0, 0, 0.16);
}

/* ==========================================================================
   Batch 14: commerce, store, products, sources, ads, and funnels
   ========================================================================== */

.mv-commerce-surface,
.mv-legacy-shell #ProductList,
.mv-legacy-shell #FunnelList,
.mv-legacy-shell #SourcesIndexContainer,
.mv-legacy-shell #ProductsIndexContainer {
    margin-bottom: 32px;
}

.mv-legacy-shell .page-title,
.mv-legacy-shell .page-home-content .page-title {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-bottom: 22px;
    padding: 0;
}

.mv-legacy-shell .page-title h1,
.mv-legacy-shell .page-title h2,
.mv-legacy-shell .page-title h3,
.mv-legacy-shell .title-head {
    color: var(--mv-text) !important;
    font-size: clamp(26px, 3vw, 34px) !important;
    font-weight: 650 !important;
    line-height: 1.15;
    letter-spacing: 0;
    margin: 0;
}

.mv-legacy-shell .breadcrumb {
    margin-bottom: 10px;
}

.mv-legacy-shell .breadcrumb a,
.mv-legacy-shell .breadcrumb-item {
    color: var(--mv-muted) !important;
    font-size: 13px;
}

.mv-legacy-shell .title-area,
.mv-commerce-heading {
    align-items: flex-start !important;
    gap: 16px;
}

.mv-legacy-shell .action-area,
.mv-commerce-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.mv-legacy-shell .next-btn,
.mv-legacy-shell .action-add,
.mv-legacy-shell .btn.btn-secondary,
.mv-legacy-shell .btn.btn-primary,
.mv-legacy-shell .btn.btn-light,
.mv-legacy-shell .dropdownaction,
.mv-legacy-shell .top-list-controls .btn,
.mv-legacy-shell .page-title .btn,
.mv-legacy-shell .laza-card .btn,
.mv-legacy-shell .select-trigger-confirm {
    align-items: center;
    border-radius: var(--mv-pill-radius) !important;
    display: inline-flex;
    font-weight: 700;
    gap: 6px;
    min-height: 36px;
}

.mv-legacy-shell .next-btn-primary,
.mv-legacy-shell .action-add,
.mv-legacy-shell .btn.btn-primary,
.mv-legacy-shell .select-trigger-confirm {
    background: var(--mv-green) !important;
    border-color: var(--mv-green) !important;
    color: #fff !important;
}

.mv-legacy-shell .next-btn-secondary,
.mv-legacy-shell .btn.btn-secondary,
.mv-legacy-shell .btn.btn-light,
.mv-legacy-shell .dropdownaction {
    background: var(--mv-surface) !important;
    border: 1px solid var(--mv-border) !important;
    color: var(--mv-green) !important;
}

.mv-legacy-shell .top-list-controls,
.mv-legacy-shell #ProductList > .litems,
.mv-legacy-shell #FunnelList > .d-flex:first-child,
.mv-legacy-shell .pro-filter-area,
.mv-legacy-shell .listing-form > .top-list-controls {
    background: var(--mv-surface) !important;
    border: 1px solid var(--mv-border) !important;
    border-radius: var(--mv-card-radius) !important;
    box-shadow: var(--mv-card-shadow) !important;
    margin-bottom: 18px !important;
    padding: 18px !important;
}

.mv-legacy-shell .pro-filter-area {
    overflow: visible !important;
}

.mv-legacy-shell .pro-filter-area .card,
.mv-legacy-shell .pro-filter-area .card-body {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.mv-legacy-shell .filter-box,
.mv-legacy-shell .pro-filter-area .row,
.mv-legacy-shell #FunnelList .d-flex,
.mv-legacy-shell .top-list-controls {
    gap: 10px;
}

.mv-legacy-shell .filter-box {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
}

.mv-legacy-shell .filter-group,
.mv-legacy-shell .filter-box .text-nowrap,
.mv-legacy-shell .input-group {
    min-height: 40px;
}

.mv-legacy-shell .filter-box .title,
.mv-legacy-shell .mc-filter-label,
.mv-legacy-shell .pro-filter-area .ms-2 {
    color: var(--mv-muted) !important;
    font-size: 13px;
    font-weight: 650;
}

.mv-legacy-shell .filter-box .search,
.mv-legacy-shell .filter-box .select,
.mv-legacy-shell .form-control,
.mv-legacy-shell .form-select,
.mv-legacy-shell input[type="text"],
.mv-legacy-shell input[type="email"],
.mv-legacy-shell input[type="password"],
.mv-legacy-shell input[type="number"],
.mv-legacy-shell input[type="search"],
.mv-legacy-shell input[type="url"],
.mv-legacy-shell input[type="tel"],
.mv-legacy-shell input[type="date"],
.mv-legacy-shell input[type="time"],
.mv-legacy-shell textarea,
.mv-legacy-shell select,
.mv-legacy-shell .select2-selection,
.mv-legacy-shell .input-group-text {
    border-color: var(--mv-border-strong) !important;
    border-radius: var(--mv-control-radius) !important;
}

.mv-legacy-shell .form-control:focus,
.mv-legacy-shell .form-select:focus,
.mv-legacy-shell input:focus,
.mv-legacy-shell textarea:focus,
.mv-legacy-shell select:focus {
    border-color: var(--mv-green) !important;
    box-shadow: 0 0 0 3px rgba(122, 166, 31, .16) !important;
    outline: 0 !important;
}

.mv-legacy-shell .filtertabs .nav,
.mv-legacy-shell .nav-under,
.mv-commerce-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mv-legacy-shell .filtertabs .nav-link,
.mv-legacy-shell .nav-under .nav-link,
.mv-commerce-tabs .nav-link {
    border: 0 !important;
    border-radius: 6px;
    color: var(--mv-text) !important;
    font-weight: 650;
    padding: 10px 13px;
}

.mv-legacy-shell .filtertabs .active .nav-link,
.mv-legacy-shell .filtertabs .nav-link.active,
.mv-legacy-shell .nav-under .active .nav-link,
.mv-legacy-shell .nav-under .nav-link.active,
.mv-commerce-tabs .nav-link.active {
    background: var(--mv-neutral-bg);
    color: var(--mv-green) !important;
}

.mv-legacy-shell .laza-alert,
.mv-commerce-callout {
    background: var(--mv-info-bg) !important;
    border: 1px solid rgba(39, 96, 111, .18) !important;
    border-radius: var(--mv-panel-radius) !important;
    color: var(--mv-info-text);
    box-shadow: none !important;
}

.mv-legacy-shell .card,
.mv-legacy-shell .panel,
.mv-legacy-shell .panel-body,
.mv-legacy-shell .panel-flat,
.mv-legacy-shell .sub-section,
.mv-legacy-shell .mc_section,
.mv-legacy-shell .boxing,
.mv-legacy-shell .content-box,
.mv-legacy-shell .content-group,
.mv-legacy-shell .wizard-box,
.mv-legacy-shell .timeline-content,
.mv-legacy-shell .tab-content,
.mv-legacy-shell .box,
.mv-legacy-shell .well,
.mv-legacy-shell .bordered-box {
    background: var(--mv-surface) !important;
    border: 1px solid var(--mv-border) !important;
    border-radius: var(--mv-card-radius) !important;
    box-shadow: var(--mv-card-shadow) !important;
}

.mv-legacy-shell .card-header,
.mv-legacy-shell .panel-heading,
.mv-legacy-shell .box-header,
.mv-legacy-shell .sub-section-header {
    background: var(--mv-surface-soft) !important;
    border-color: var(--mv-border) !important;
    color: var(--mv-text) !important;
    font-weight: 700;
}

.mv-legacy-shell .product-container,
.mv-legacy-shell .pml-table-container,
.mv-legacy-shell .listing-form .pml-table,
.mv-legacy-shell .table-box,
.mv-legacy-shell .table-responsive,
.mv-legacy-shell .dataTables_wrapper,
.mv-commerce-table-card {
    background: var(--mv-surface) !important;
    border: 1px solid var(--mv-border) !important;
    border-radius: var(--mv-card-radius) !important;
    box-shadow: var(--mv-card-shadow) !important;
    overflow-x: auto;
}

.mv-legacy-shell .product-list-table,
.mv-legacy-shell .table-box,
.mv-legacy-shell .pml-table,
.mv-legacy-shell table.table,
.mv-legacy-shell .table,
.mv-legacy-shell #FunnelList table {
    border: 0 !important;
    color: var(--mv-text);
    margin-bottom: 0;
    width: 100%;
}

.mv-legacy-shell .product-list-table thead,
.mv-legacy-shell .product-header-bg,
.mv-legacy-shell .table-light,
.mv-legacy-shell table.table thead,
.mv-legacy-shell .table thead,
.mv-legacy-shell .pml-table thead {
    background: var(--mv-surface-soft) !important;
}

.mv-legacy-shell .product-list-table th,
.mv-legacy-shell .product-list-table td,
.mv-legacy-shell .pml-table th,
.mv-legacy-shell .pml-table td,
.mv-legacy-shell table.table th,
.mv-legacy-shell table.table td,
.mv-legacy-shell .table th,
.mv-legacy-shell .table td,
.mv-legacy-shell #FunnelList table th,
.mv-legacy-shell #FunnelList table td {
    border-color: var(--mv-border) !important;
    font-size: 14px;
    padding: 14px 12px;
    vertical-align: middle;
}

.mv-legacy-shell .product-list-table th,
.mv-legacy-shell .pml-table th,
.mv-legacy-shell table.table th,
.mv-legacy-shell .table th,
.mv-legacy-shell #FunnelList table th {
    color: var(--mv-text);
    font-weight: 700;
    white-space: nowrap;
}

.mv-legacy-shell .kq_search,
.mv-legacy-shell .list-title,
.mv-legacy-shell .product-title,
.mv-legacy-shell .fw-bold,
.mv-legacy-shell .stat-num {
    color: var(--mv-text);
}

.mv-legacy-shell .kq_search,
.mv-legacy-shell .list-title,
.mv-legacy-shell .product-list-table td a:not(.dropdown-item):not(.btn),
.mv-legacy-shell .pml-table td a:not(.dropdown-item):not(.btn) {
    color: var(--mv-green);
    font-weight: 700;
}

.mv-legacy-shell .product-image-list,
.mv-legacy-shell .proimage {
    border: 1px solid var(--mv-border);
    border-radius: 8px !important;
    background: var(--mv-surface-soft);
    overflow: hidden;
}

.mv-legacy-shell .cbstatus.form-check-input:checked,
.mv-legacy-shell .form-switch .form-check-input:checked {
    background-color: var(--mv-green);
    border-color: var(--mv-green);
}

.mv-legacy-shell .dropdown-menu {
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-panel-radius);
    box-shadow: var(--shadow-dropdown);
}

.mv-legacy-shell .dropdown-item {
    border-radius: 6px;
    font-size: 14px;
}

.mv-legacy-shell .dropdown-item:active,
.mv-legacy-shell .dropdown-item.active {
    background: var(--mv-neutral-bg);
    color: var(--mv-green);
}

.mv-legacy-shell .empty-list {
    background: var(--mv-surface-soft);
    border: 1px dashed var(--mv-border);
    border-radius: var(--mv-card-radius);
    color: var(--mv-muted);
    padding: 44px 24px;
    text-align: center;
}

.mv-legacy-shell .empty-list .material-symbols-rounded {
    color: var(--mv-green);
    font-size: 42px;
}

.mv-legacy-shell .laza-card,
.mv-legacy-shell .laza-section > div,
.mv-legacy-shell .border.rounded.shadow-sm.bg-white,
.mv-legacy-shell .source_list,
.mv-commerce-card {
    background: var(--mv-surface) !important;
    border: 1px solid var(--mv-border) !important;
    border-radius: var(--mv-card-radius) !important;
    box-shadow: var(--mv-card-shadow) !important;
}

.mv-legacy-shell .laza-section > div,
.mv-legacy-shell .border.rounded.shadow-sm.bg-white,
.mv-commerce-card {
    padding: 24px !important;
}

.mv-legacy-shell .laza-section h4,
.mv-legacy-shell .source_list + h4,
.mv-legacy-shell .border.rounded.shadow-sm.bg-white h4 {
    color: var(--mv-text);
    font-size: 22px;
    font-weight: 720;
    line-height: 1.2;
}

.mv-legacy-shell .form-label,
.mv-legacy-shell label {
    color: var(--mv-text);
}

.mv-legacy-shell .form-text,
.mv-legacy-shell .text-muted,
.mv-legacy-shell .text-muted2,
.mv-legacy-shell .small {
    color: var(--mv-muted) !important;
}

.mv-legacy-shell .upload-area,
.mv-legacy-shell .upload-item,
.mv-legacy-shell .upload-action,
.mv-legacy-shell .list-suggest {
    border: 1px dashed var(--mv-border);
    border-radius: var(--mv-panel-radius);
    background: var(--mv-surface-soft) !important;
}

.mv-legacy-shell .ck.ck-editor__main > .ck-editor__editable {
    border-color: var(--mv-border-strong);
    border-radius: 0 0 var(--mv-control-radius) var(--mv-control-radius);
    min-height: 240px;
}

.mv-legacy-shell .ck.ck-toolbar {
    border-color: var(--mv-border-strong);
    border-radius: var(--mv-control-radius) var(--mv-control-radius) 0 0;
}

.mv-legacy-shell .source_list {
    align-items: stretch !important;
    display: grid !important;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 18px;
}

.mv-legacy-shell .source_type {
    align-items: center;
    background: var(--mv-surface-soft);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-panel-radius);
    display: flex;
    justify-content: center;
    min-height: 132px;
    padding: 20px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.mv-legacy-shell .source_type:hover {
    border-color: var(--mv-green);
    box-shadow: 0 0 0 1px var(--mv-green);
}

.mv-legacy-shell .source_type img {
    max-height: 76px;
    max-width: 190px;
}

.mv-legacy-shell .dataTables_paginate,
.mv-legacy-shell .pagination {
    justify-content: flex-end;
}

.mv-legacy-shell .pagination .page-link {
    border-color: var(--mv-border);
    color: var(--mv-green);
}

.mv-legacy-shell .pagination .active .page-link,
.mv-legacy-shell .pagination .page-item.active .page-link {
    background: var(--mv-green);
    border-color: var(--mv-green);
    color: #fff;
}

@media (max-width: 900px) {
    .mv-legacy-shell .row {
        margin-left: 0;
        margin-right: 0;
    }

    .mv-legacy-shell .row > [class*="col-"] {
        min-width: 0;
    }

    .mv-legacy-shell .title-area,
    .mv-legacy-shell .top-list-controls,
    .mv-legacy-shell #ProductList > .litems,
    .mv-legacy-shell #FunnelList > .d-flex:first-child,
    .mv-legacy-shell .listing-form > .top-list-controls,
    .mv-legacy-shell .filter-box {
        display: block !important;
    }

    .mv-legacy-shell .action-area,
    .mv-legacy-shell .top-list-controls .text-end,
    .mv-legacy-shell .view-toggle,
    .mv-legacy-shell #FunnelList .mt-sm-0 {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .mv-legacy-shell .filter-box > *,
    .mv-legacy-shell .filter-box .search,
    .mv-legacy-shell .filter-box select,
    .mv-legacy-shell .input-group,
    .mv-legacy-shell .top-list-controls .btn,
    .mv-legacy-shell .action-area .next-btn {
        width: 100%;
    }

    .mv-legacy-shell .product-list-table,
    .mv-legacy-shell #FunnelList table {
        min-width: 760px;
    }

    .mv-legacy-shell .pml-table td.text-end,
    .mv-legacy-shell .product-list-table td.text-end {
        text-align: left !important;
    }

    .mv-legacy-shell .laza-section > div,
    .mv-legacy-shell .border.rounded.shadow-sm.bg-white {
        padding: 18px !important;
    }
}

/* ==========================================================================
   Batch 16: system, install, errors, public/embed, search, docs, fallback UI
   ========================================================================== */

.mv-install-legacy {
    background: var(--mv-bg) !important;
    color: var(--mv-text);
    font-family: var(--mv-font);
}

.mv-install-legacy .mv-install-shell {
    min-height: 100vh;
    background: var(--mv-bg);
}

.mv-install-legacy .login-header {
    padding-top: 28px;
}

.mv-install-title {
    color: var(--mv-text) !important;
    font-size: 34px !important;
    font-weight: 650;
    letter-spacing: 0;
}

.mv-install-card {
    border: 1px solid var(--mv-border) !important;
    border-radius: var(--mv-card-radius) !important;
    box-shadow: var(--mv-card-shadow) !important;
    overflow: hidden;
}

.mv-install-card .panel-body {
    padding: clamp(22px, 3vw, 32px) !important;
}

.mv-install-legacy .install-steps {
    background: var(--mv-surface);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-card-radius) var(--mv-card-radius) 0 0;
    box-shadow: var(--mv-card-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
}

.mv-install-legacy .install-steps > li > a {
    border-radius: var(--mv-control-radius) !important;
    color: var(--mv-muted);
    font-weight: 650;
}

.mv-install-legacy .install-steps > li.active > a,
.mv-install-legacy .install-steps > li > a:hover {
    background: var(--mv-neutral-bg) !important;
    color: var(--mv-green) !important;
}

.mv-install-legacy .modern-listing {
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-panel-radius);
    overflow: hidden;
}

.mv-install-legacy .modern-listing > li {
    background: var(--mv-surface);
    border-bottom: 1px solid var(--mv-border);
    padding: 16px 18px;
}

.mv-install-legacy .modern-listing > li:last-child {
    border-bottom: 0;
}

.mv-install-legacy .form-control,
.mv-install-legacy .form-select,
.mv-install-legacy textarea,
.mv-install-legacy select {
    border-color: var(--mv-border-strong) !important;
    border-radius: var(--mv-control-radius) !important;
    min-height: 42px;
}

.mv-install-legacy .btn,
.mv-install-legacy .save-button {
    border-radius: var(--mv-pill-radius) !important;
    font-weight: 700;
}

.mv-error-body {
    align-items: center;
    background: var(--mv-bg);
    color: var(--mv-text);
    display: flex;
    font-family: var(--mv-font);
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    padding: 24px;
}

.mv-error-shell {
    width: min(640px, 100%);
}

.mv-error-card {
    background: var(--mv-surface);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-card-radius);
    box-shadow: var(--mv-card-shadow);
    padding: clamp(28px, 5vw, 48px);
    text-align: center;
}

.mv-error-code {
    color: var(--mv-green);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.mv-error-title {
    color: var(--mv-text);
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 720;
    line-height: 1.18;
    margin-bottom: 24px;
}

.mv-error-action,
.mv-error-action:hover {
    align-items: center;
    background: var(--mv-green);
    border-radius: var(--mv-pill-radius);
    color: #fff;
    display: inline-flex;
    font-weight: 750;
    min-height: 42px;
    padding: 0 22px;
}

body:has(.bsb-btn-5xl) {
    background: var(--mv-bg) !important;
    color: var(--mv-text) !important;
    font-family: var(--mv-font) !important;
}

body:has(.bsb-btn-5xl) .text-center {
    background: var(--mv-surface);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-card-radius);
    box-shadow: var(--mv-card-shadow);
    margin-inline: auto;
    max-width: 640px;
    padding: clamp(28px, 5vw, 48px);
}

body:has(.bsb-btn-5xl) .display-1 {
    color: var(--mv-green);
    font-size: 56px;
    font-weight: 800 !important;
}

body:has(.bsb-btn-5xl) .btn-dark {
    background: var(--mv-green) !important;
    border-color: var(--mv-green) !important;
    border-radius: var(--mv-pill-radius) !important;
    color: #fff !important;
    font-weight: 750;
}

.mv-system-page {
    background: var(--mv-surface);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-card-radius);
    box-shadow: var(--mv-card-shadow);
    padding: clamp(20px, 3vw, 32px);
}

.mv-api-docs h1,
.mv-system-page h1 {
    color: var(--mv-text);
    font-size: var(--mv-page-title-size);
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.15;
    margin-bottom: 20px;
}

.mv-api-docs h2 {
    color: var(--mv-text);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: 0;
}

.mv-api-docs .api-doc-table {
    border: 1px solid var(--mv-border);
    border-collapse: separate;
    border-radius: var(--mv-panel-radius);
    border-spacing: 0;
    overflow: hidden;
}

.mv-api-docs .api-doc-table th,
.mv-api-docs .api-doc-table td {
    border-color: var(--mv-border) !important;
    padding: 14px 12px;
    vertical-align: top;
}

.mv-api-docs pre,
.mv-api-docs code {
    background: #10201b;
    border-radius: var(--mv-control-radius);
    color: #dff8ef;
    white-space: pre-wrap;
    word-break: break-word;
}

.mv-search-head,
.search-head,
.mc-search-group-label {
    color: var(--mv-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    padding: 10px 14px;
    text-transform: uppercase;
}

.mv-search-result,
.search-result {
    border-color: var(--mv-border) !important;
    color: var(--mv-text);
    display: block;
    padding: 13px 14px;
}

.mv-search-result:hover,
.search-result:hover,
.mc-search-item:hover {
    background: var(--mv-neutral-bg);
    color: var(--mv-text);
}

.mv-search-result .search-name,
.search-result .search-name {
    color: var(--mv-green);
    font-weight: 700;
}

.mv-search-result .desc,
.search-result .desc,
.mc-search-item-detail,
.mc-search-item-meta,
.mc-search-item-sub {
    color: var(--mv-muted) !important;
}

.mv-notification-page [data-type="admin-notification"],
.mv-notification-page .notification-item {
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-panel-radius);
    margin-bottom: 10px;
    padding: 14px;
}

.pagination,
.pager {
    gap: 4px;
}

.pagination .page-link,
.pagination > li > a,
.pagination > li > span,
.pager a,
.pager span {
    border-color: var(--mv-border) !important;
    border-radius: var(--mv-control-radius) !important;
    color: var(--mv-green) !important;
    font-weight: 650;
    min-width: 36px;
    text-align: center;
}

.pagination .active .page-link,
.pagination > .active > a,
.pagination > .active > span {
    background: var(--mv-green) !important;
    border-color: var(--mv-green) !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .mv-install-legacy .login-header img {
        max-width: 240px;
        width: 100% !important;
    }

    .mv-install-legacy .row > [class*="col-"] {
        margin-bottom: 12px;
    }

    .mv-api-docs .api-doc-table {
        display: block;
        overflow-x: auto;
        width: 100%;
    }
}

[data-theme="dark"] {
    --mv-bg: #111210;
    --mv-surface: #191a17;
    --mv-surface-soft: #20221d;
    --mv-border: #30332b;
    --mv-border-strong: #3b3e35;
    --mv-text: #f2f3ee;
    --mv-muted: #afb5a8;
    --mv-neutral-bg: #282a25;
    --mv-neutral-text: #f2f3ee;
    --mv-green-soft: rgba(127, 161, 43, 0.18);
    --mv-success-bg: rgba(0, 123, 112, 0.22);
    --mv-danger-bg: rgba(180, 4, 4, 0.2);
    --mv-info-bg: rgba(39, 96, 111, 0.22);
    --mv-purple-bg: rgba(83, 51, 163, 0.22);
    --mv-warning-bg: rgba(148, 85, 0, 0.22);
}

html {
    font-size: var(--mv-body-size);
    letter-spacing: 0;
}

body {
    font-family: var(--mv-font);
    letter-spacing: 0;
    background: var(--color-page-bg, var(--mv-bg));
    color: var(--color-text, var(--mv-text));
}

a {
    color: var(--mv-green);
}

a:hover {
    color: var(--mv-green-dark);
}

::selection {
    background: var(--mv-green-soft);
    color: var(--mv-green-dark);
}

:focus-visible {
    outline-color: var(--mv-green);
}

/* ==========================================================================
   Mailvio primitives for new pages
   ========================================================================== */

.mv-page {
    padding: var(--mv-page-padding-y) var(--mv-page-padding-x) 56px;
}

.mv-shell-card {
    background: var(--mv-surface);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-card-radius);
    box-shadow: var(--mv-card-shadow);
    padding: var(--mv-shell-padding);
}

.mv-page-title,
.mc-page-title.mv-page-title {
    color: var(--mv-text);
    font-size: var(--mv-page-title-size);
    font-weight: 650;
    line-height: 1.15;
    margin: 0 0 24px;
}

.mv-section-title {
    color: var(--mv-text);
    font-size: var(--mv-section-title-size);
    font-weight: 720;
    line-height: 1.2;
    margin: 0 0 16px;
}

.mv-muted {
    color: var(--mv-muted);
}

.mv-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.mv-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mv-search {
    position: relative;
    max-width: 885px;
}

.mv-search > .material-symbols-rounded,
.mv-search > .bi {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mv-muted);
    pointer-events: none;
}

.mv-search input,
.mv-filter,
.mv-control {
    height: 40px;
    border: 1px solid var(--mv-border-strong);
    border-radius: var(--mv-control-radius);
    background: var(--mv-surface);
    color: var(--mv-text);
    font-size: 14px;
}

.mv-search input {
    width: 100%;
    padding: 0 14px 0 42px;
}

.mv-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    font-weight: 550;
}

.mv-filter.active,
.mv-filter[aria-pressed="true"] {
    background: var(--mv-neutral-bg);
    color: var(--mv-green);
}

.mv-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 26px;
}

.mv-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--mv-text);
    padding: 11px 14px;
    font-weight: 650;
    text-decoration: none;
}

.mv-tab.active,
.mv-tab[aria-selected="true"] {
    background: var(--mv-neutral-bg);
    color: var(--mv-green);
}

.mv-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.mv-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--mv-text);
}

.mv-table th {
    padding: 16px 12px;
    border-bottom: 1px solid var(--mv-border);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.mv-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--mv-border);
    font-size: 14px;
    vertical-align: middle;
}

.mv-row-title {
    color: var(--mv-green);
    font-weight: 700;
}

.mv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: var(--mv-badge-radius);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
}

.mv-badge-neutral { background: var(--mv-neutral-bg); color: var(--mv-neutral-text); }
.mv-badge-success { background: var(--mv-success-bg); color: var(--mv-success-text); }
.mv-badge-danger { background: var(--mv-danger-bg); color: var(--mv-danger-text); }
.mv-badge-info { background: var(--mv-info-bg); color: var(--mv-info-text); }
.mv-badge-purple { background: var(--mv-purple-bg); color: var(--mv-purple-text); }
.mv-badge-warning { background: var(--mv-warning-bg); color: var(--mv-warning-text); }

.mv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-pill-radius);
    background: var(--mv-surface);
    color: var(--mv-green);
    padding: 0 20px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mv-btn:hover {
    color: var(--mv-green-dark);
    border-color: var(--mv-border-strong);
    text-decoration: none;
}

.mv-btn-primary {
    background: var(--mv-green);
    border-color: var(--mv-green);
    color: #ffffff;
}

.mv-btn-primary:hover {
    background: var(--mv-green-dark);
    border-color: var(--mv-green-dark);
    color: #ffffff;
}

.mv-btn-danger {
    background: var(--mv-red);
    border-color: var(--mv-red);
    color: #ffffff;
}

.mv-empty-state {
    border: 1px dashed var(--mv-border);
    border-radius: var(--mv-panel-radius);
    background: var(--mv-surface-soft);
    padding: 40px 24px;
    text-align: center;
    color: var(--mv-muted);
}

/* ==========================================================================
   Bridge existing mc-* and legacy Bootstrap components
   ========================================================================== */

.mc-page-title {
    color: var(--mv-text);
    font-weight: 650;
}

.mc-card,
.mc-stat-card,
.mc-modal,
.mc-dropdown-menu,
.auth-card,
.install-card,
.install-content {
    border-color: var(--mv-border);
    border-radius: var(--mv-card-radius);
    box-shadow: var(--mv-card-shadow);
}

.mc-card-title {
    color: var(--mv-text);
    font-weight: 720;
}

.mc-btn-primary,
.btn-primary {
    background: var(--mv-green);
    border-color: var(--mv-green);
    color: #ffffff;
}

.mc-btn-primary:hover,
.btn-primary:hover,
.mc-btn-primary:focus,
.btn-primary:focus {
    background: var(--mv-green-dark);
    border-color: var(--mv-green-dark);
    color: #ffffff;
}

.mc-btn-secondary,
.mc-btn-white {
    color: var(--mv-green);
    border-color: var(--mv-border);
}

.mc-btn-secondary:hover,
.mc-btn-white:hover {
    color: var(--mv-green-dark);
    border-color: var(--mv-border-strong);
}

.mc-btn-pill,
.mc-page-actions .mc-btn-primary {
    border-radius: var(--mv-pill-radius);
}

.mc-form-input,
.mc-form-select,
.form-control,
.form-select,
.form-input {
    border-color: var(--mv-border-strong);
    border-radius: var(--mv-control-radius);
}

.mc-form-input:focus,
.mc-form-select:focus,
.form-control:focus,
.form-select:focus,
.form-input:focus {
    border-color: var(--mv-green);
    box-shadow: 0 0 0 2px rgba(127, 161, 43, 0.18);
}

.mc-table-responsive {
    border-color: var(--mv-border);
}

.mc-table thead th {
    color: var(--mv-text);
    border-bottom-color: var(--mv-border);
}

.mc-table tbody td {
    border-bottom-color: var(--mv-border);
}

.mc-table-link,
.mc-table-open .mc-cell-main a {
    color: var(--mv-green);
}

.mc-table-link:hover,
.mc-table-open .mc-cell-main a:hover {
    color: var(--mv-green-dark);
}

.mc-badge {
    border-radius: var(--mv-badge-radius);
    font-weight: 650;
}

.mc-badge-default { background: var(--mv-neutral-bg); color: var(--mv-neutral-text); }
.mc-badge-teal,
.mc-badge-green { background: var(--mv-success-bg); color: var(--mv-success-text); }
.mc-badge-red { background: var(--mv-danger-bg); color: var(--mv-danger-text); }
.mc-badge-orange { background: var(--mv-warning-bg); color: var(--mv-warning-text); }
.mc-badge-blue { background: var(--mv-info-bg); color: var(--mv-info-text); }
.mc-badge-purple { background: var(--mv-purple-bg); color: var(--mv-purple-text); }

.mc-tabs,
.mc-nav-tabs {
    gap: 4px;
}

.mc-tabs .mc-tab,
.mc-nav-tabs .mc-nav-tab,
.nav-tabs .nav-link {
    border-radius: 6px;
    letter-spacing: 0;
}

.mc-tabs .mc-tab.active,
.mc-nav-tabs .mc-nav-tab.active,
.nav-tabs .nav-link.active {
    background: var(--mv-neutral-bg);
    color: var(--mv-green);
}

.mc-empty-state {
    border-radius: var(--mv-panel-radius);
}

.mc-stat-value {
    color: var(--mv-text);
    font-weight: 720;
}

.mc-content,
.auth-main,
.install-main {
    background: var(--color-page-bg, var(--mv-bg));
}

.mc-content-header,
.mc-topbar,
.auth-card,
.install-content {
    background: var(--color-card-bg, var(--mv-surface));
}

@media (max-width: 767px) {
    .mv-page {
        padding: 18px 14px 48px;
    }

    .mv-shell-card {
        padding: 20px;
    }

    .mv-page-title,
    .mc-page-title.mv-page-title {
        font-size: 28px;
    }

    .mv-toolbar {
        flex-direction: column;
        gap: 16px;
    }
}

/* ==========================================================================
   Batch 02 shell, auth, popup, and modal contracts
   ========================================================================== */

.mc-app {
    background: var(--mv-bg);
}

.mc-sidebar {
    background: var(--mv-surface);
    border-right-color: var(--mv-border);
}

.mc-sidebar-logo {
    height: var(--mv-topbar-height);
    min-height: var(--mv-topbar-height);
    border-bottom-color: var(--mv-border);
}

.mc-nav-group-label {
    color: var(--mv-muted);
    letter-spacing: 0;
    text-transform: none;
}

.mc-nav-item {
    border-radius: var(--mv-control-radius);
    font-weight: 550;
}

.mc-nav-item.active {
    background: var(--mv-neutral-bg);
    color: var(--mv-green);
}

.mc-topbar {
    height: var(--mv-topbar-height);
    min-height: var(--mv-topbar-height);
    background: var(--mv-surface);
    border-bottom-color: var(--mv-border);
    box-shadow: var(--mv-card-shadow);
}

.mc-topbar-search,
.mc-dropdown-menu,
.mc-notification-panel,
.mc-color-scheme-panel {
    border-color: var(--mv-border);
    border-radius: var(--mv-panel-radius);
    box-shadow: var(--shadow-dropdown);
}

.mc-content {
    background: var(--mv-bg);
}

.mc-content-inner {
    padding: var(--mv-page-padding-y) var(--mv-page-padding-x) 56px;
}

.mc-content-header {
    background: var(--mv-surface);
    border-bottom-color: var(--mv-border);
}

.mc-card,
.mc-list-card,
.mc-dashboard-card,
.mc-settings-card,
.card {
    border-color: var(--mv-border);
    border-radius: var(--mv-card-radius);
    box-shadow: var(--mv-card-shadow);
}

.mv-legacy-shell {
    background: var(--mv-bg);
    color: var(--mv-text);
    font-family: var(--mv-font);
}

.mv-legacy-shell .navbar-main {
    background: var(--mv-surface) !important;
    border-bottom: 1px solid var(--mv-border) !important;
    box-shadow: var(--mv-card-shadow) !important;
}

.mv-legacy-shell .navbar-main .navbar-brand,
.mv-legacy-shell .navbar-main .nav-link,
.mv-legacy-shell .navbar-main .dropdown-toggle,
.mv-legacy-shell .middle-bar-element {
    color: var(--mv-text) !important;
}

.mv-legacy-shell .navbar-main .nav-item.active > .nav-link,
.mv-legacy-shell .navbar-main .nav-link.active,
.mv-legacy-shell .navbar-main .nav-link:hover {
    background: var(--mv-neutral-bg) !important;
    color: var(--mv-green) !important;
}

.mv-legacy-shell .navbar-icon,
.mv-legacy-shell .material-symbols-rounded {
    color: currentColor;
}

.mv-legacy-page.page-container {
    background: transparent;
    padding-top: var(--mv-page-padding-y);
    padding-bottom: 56px;
}

.mv-minimal-shell {
    background: var(--mv-bg);
    color: var(--mv-text);
    font-family: var(--mv-font);
    min-height: 100vh;
}

.mv-auth-shell.login-page {
    background: var(--mv-bg) !important;
    color: var(--mv-text);
}

body:has(.auth-main) {
    background: var(--mv-bg);
}

body:has(.auth-main)::before,
.mv-auth-shell::before {
    display: none;
}

.auth-main {
    align-items: flex-start;
    padding: 46px 20px 32px;
}

.auth-card {
    width: min(460px, calc(100vw - 40px));
    max-width: 460px;
    border: 0;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.auth-card-logo {
    margin-bottom: 30px;
}

.auth-card-logo img {
    max-height: 42px;
}

.auth-card-title {
    color: var(--mv-text);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 8px;
}

.auth-card-subtitle {
    color: var(--mv-muted);
    margin-bottom: 28px;
}

.auth-card .form-input,
.auth-card .form-control,
.auth-card select.form-input {
    min-height: 48px;
    border-color: var(--mv-border-strong);
    border-radius: var(--mv-control-radius);
}

.auth-row-between {
    align-items: center;
}

.auth-card .btn-primary,
.login-page .btn-primary {
    border-radius: var(--mv-pill-radius);
    background: var(--mv-green);
}

.auth-card .btn-primary:hover,
.login-page .btn-primary:hover {
    background: var(--mv-green-dark);
}

.auth-alert {
    border-radius: var(--mv-control-radius);
}

.auth-alert-danger {
    background: var(--mv-danger-bg);
    color: var(--mv-danger-text);
}

/* ==========================================================================
   Batch 15: builder and editor internals
   ========================================================================== */

.mv-builder-shell,
.mv-editor-shell {
    background: var(--mv-bg) !important;
    color: var(--mv-text);
    font-family: var(--mv-font);
}

.mv-builder-shell .mc-btn,
.mv-builder-shell .btn,
.mv-editor-shell .btn,
.mv-editor-shell .nav-link {
    letter-spacing: 0;
}

.mv-builder-shell .mc-btn,
.mv-builder-shell .btn.btn-primary,
.mv-editor-shell .btn.btn-primary {
    border-radius: var(--mv-pill-radius) !important;
    font-weight: 700;
}

.mv-builder-shell .mc-btn-primary,
.mv-builder-shell .btn.btn-primary,
.mv-editor-shell .btn.btn-primary {
    background: var(--mv-green) !important;
    border-color: var(--mv-green) !important;
    color: #fff !important;
}

.mv-builder-shell .mc-btn-primary:hover,
.mv-builder-shell .btn.btn-primary:hover,
.mv-editor-shell .btn.btn-primary:hover {
    background: var(--mv-green-dark) !important;
    border-color: var(--mv-green-dark) !important;
}

.mv-builder-shell .mc-btn-ghost,
.mv-builder-shell .mc-btn-secondary,
.mv-builder-shell .btn.btn-secondary,
.mv-editor-shell .btn.btn-secondary,
.mv-editor-shell .nav-link {
    border-radius: var(--mv-pill-radius) !important;
}

.mv-builder-shell .builder-topbar,
.mv-builder-shell .builder-sidebar,
.mv-builder-shell .global-sidebar {
    background: var(--mv-surface) !important;
    border-color: var(--mv-border) !important;
}

.mv-builder-shell .builder-topbar {
    border-bottom: 1px solid var(--mv-border) !important;
}

.mv-builder-shell .builder-topbar .dropdown-menu,
.mv-builder-shell .builder-user-menu,
.mv-builder-shell .builder-export-menu {
    border-color: var(--mv-border) !important;
    border-radius: var(--mv-panel-radius) !important;
    box-shadow: var(--shadow-dropdown) !important;
}

.mv-builder-shell .builder-sidebar-tabs,
.mv-builder-shell .builder-panel-header {
    border-color: var(--mv-border) !important;
}

.mv-builder-shell .tab-item.active,
.mv-builder-shell .smenu-item.active .smenu-item-label,
.mv-builder-shell .smenu-item:hover .smenu-item-label,
.mv-builder-shell .theme-item:hover .theme-label {
    color: var(--mv-green) !important;
}

.mv-builder-shell .tab-item.active {
    border-bottom-color: var(--mv-green) !important;
}

.mv-builder-shell .smenu-item:hover .smenu-item-icon,
.mv-builder-shell .smenu-item.active .smenu-item-icon {
    background: var(--mv-green-soft) !important;
    color: var(--mv-green) !important;
}

.mv-builder-shell .theme-item:hover {
    border-color: var(--mv-green) !important;
    box-shadow: 0 2px 8px rgba(127, 161, 43, 0.18) !important;
}

.mv-builder-shell .builder-tags-container,
.mv-editor-shell .tags_list,
.mv-editor-shell .sidebar {
    color: var(--mv-text);
}

.mv-builder-shell .copy-tag-btn,
.mv-editor-shell .insert_tag_button {
    border-radius: var(--mv-pill-radius) !important;
}

.mv-editor-shell .navbar-main {
    min-height: 68px;
    background: var(--mv-surface) !important;
    border-bottom: 1px solid var(--mv-border);
    box-shadow: var(--mv-card-shadow);
}

.mv-editor-shell .navbar-main .navbar-brand .logo {
    max-height: 38px;
}

.mv-editor-shell .navbar-main .menu-title,
.mv-editor-shell .navbar-main .nav-link,
.mv-editor-shell .navbar-main .material-symbols-rounded {
    color: var(--mv-text) !important;
}

.mv-editor-shell .navbar-main .nav-link:hover {
    background: var(--mv-neutral-bg);
    color: var(--mv-green) !important;
}

.mv-editor-shell .navbar-main .close-button {
    width: 42px;
    height: 42px;
    display: grid !important;
    place-items: center;
    border-radius: 50% !important;
}

.mv-editor-shell > form,
.mv-editor-shell #classic-builder-form,
.mv-editor-shell .row.form-groups-bottom-0,
.mv-editor-shell #classic-builder-form > .row {
    background: #e8e9e5;
}

.mv-editor-shell #classic-builder-form > .row {
    min-height: calc(100vh - 68px);
}

.mv-editor-shell .sidebar {
    background: var(--mv-surface) !important;
    border-left: 1px solid var(--mv-border);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.035);
}

.mv-editor-shell .sidebar p,
.mv-editor-shell .sidebar label,
.mv-editor-shell .sidebar .text-muted {
    color: var(--mv-muted) !important;
}

.mv-editor-shell .tox-tinymce,
.mv-editor-shell .tox .tox-toolbar,
.mv-editor-shell .tox .tox-toolbar__primary,
.mv-editor-shell .tox .tox-menubar,
.mv-editor-shell .tox .tox-edit-area__iframe {
    border-color: var(--mv-border) !important;
}

.mv-editor-shell .tox-tinymce {
    border-radius: 0 !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.mv-editor-shell textarea.campaign-plain-text,
.mv-editor-shell textarea[name="plain"] {
    width: 100%;
    min-height: calc(100vh - 68px);
    border: 0 !important;
    border-right: 1px solid var(--mv-border) !important;
    border-radius: 0 !important;
    padding: 30px !important;
    background: var(--mv-surface) !important;
    color: var(--mv-text) !important;
    font: 15px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mv-editor-shell .ace_editor,
.mv-legacy-shell .ace_editor,
.mv-refactor-editor-shell .tox-tinymce,
.mv-legacy-shell .ck.ck-editor__main > .ck-editor__editable {
    border-color: var(--mv-border) !important;
    border-radius: var(--mv-control-radius) !important;
}

.mv-refactor-editor-shell {
    display: block;
}

.mv-refactor-editor-shell .mc-card {
    border-radius: var(--mv-panel-radius) !important;
}

.mv-refactor-editor-shell .tox-tinymce {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.mv-refactor-editor-shell .insert_tag_button {
    border-radius: var(--mv-pill-radius) !important;
}

.mv-builder-shell--legacy-form .browser-backdrop {
    background: #e8e9e5 !important;
}

.mv-builder-shell--legacy-form .browser-frame {
    border: 1px solid var(--mv-border);
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.mv-builder-shell--legacy-form .browser-head,
.mv-builder-shell--legacy-form .side-bar {
    background: var(--mv-surface) !important;
    border-color: var(--mv-border) !important;
}

.mv-builder-shell--legacy-form .browser-address {
    border: 1px solid var(--mv-border) !important;
    border-radius: var(--mv-control-radius) !important;
    box-shadow: none !important;
}

@media (max-width: 900px) {
    .mv-builder-shell .builder-topbar-inner {
        padding: 0 12px;
    }

    .mv-builder-shell .builder-topbar .mc-btn span:not(.material-symbols-rounded),
    .mv-builder-shell .builder-topbar .dropdown-toggle span:not(.material-symbols-rounded) {
        display: none;
    }

    .mv-builder-shell .builder-sidebar {
        width: 320px !important;
        min-width: 320px;
    }
}

@media (max-width: 700px) {
    .mv-editor-shell .navbar-main {
        min-height: 56px;
    }

    .mv-editor-shell .navbar-main .menu-title {
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mv-editor-shell .sidebar {
        display: none;
    }
}

.auth-alert-success {
    background: var(--mv-success-bg);
    color: var(--mv-success-text);
}

.mc-modal-backdrop {
    background: rgba(20, 22, 18, 0.36);
}

.mc-modal {
    border: 1px solid var(--mv-border);
    border-radius: 10px;
    box-shadow: var(--shadow-modal);
}

.mc-modal-header,
.mc-modal-footer {
    border-color: var(--mv-border);
}

.mc-modal-title {
    color: var(--mv-text);
    font-size: 18px;
    font-weight: 700;
}

.mc-modal-body {
    color: var(--mv-text);
}

.mv-popup-fragment,
.mc-modal .mv-popup-fragment {
    color: var(--mv-text);
}

.mv-popup-shell.modal-dialog,
.modal-dialog.shadow {
    max-width: min(720px, calc(100vw - 40px));
}

.mv-popup-shell--small.modal-dialog,
.modal-dialog.modal-default {
    max-width: min(440px, calc(100vw - 40px));
}

.mv-popup-shell--medium.modal-dialog {
    max-width: min(720px, calc(100vw - 40px));
}

.mv-popup-shell--large.modal-dialog {
    max-width: min(960px, calc(100vw - 40px));
}

.mv-popup-shell--banner.modal-dialog {
    max-width: min(760px, calc(100vw - 40px));
}

.mv-popup-shell--full.modal-dialog {
    max-width: 100vw;
}

.mv-popup-content,
.modal .modal-content {
    border: 1px solid var(--mv-border);
    border-radius: 10px;
    box-shadow: var(--shadow-modal);
}

.mv-popup-shell--full .mv-popup-content,
.modal-fullscreen .modal-content {
    border-radius: 0;
}

.mv-popup-header,
.modal .modal-header {
    min-height: 64px;
    border-color: var(--mv-border);
    background: var(--mv-surface);
}

.mv-popup-header .modal-title,
.modal .modal-title {
    color: var(--mv-text);
    font-weight: 700;
}

.mv-popup-body,
.modal .modal-body {
    background: var(--mv-surface);
    color: var(--mv-text);
    padding: 28px;
}

.mv-popup-footer,
.modal .modal-footer {
    border-color: var(--mv-border);
    background: var(--mv-surface);
}

@media (max-width: 900px) {
    .mc-content-inner {
        padding: 18px 14px 48px;
    }

    .mc-topbar {
        height: 64px;
        min-height: 64px;
    }

    .auth-main {
        padding: 28px 14px 28px;
    }

    .auth-card {
        width: min(460px, calc(100vw - 28px));
        padding: 28px 22px;
    }

    .mv-popup-body,
    .modal .modal-body {
        padding: 20px;
    }
}

/* ==========================================================================
   Mailvio horizontal app shell correction
   ========================================================================== */

.mv-rui-customer-shell {
    background: var(--mv-bg);
    color: var(--mv-text);
    font-family: var(--mv-font);
}

.mv-rui-customer-shell .mc-app {
    min-height: 100vh;
    display: block;
    background: var(--mv-bg);
}

.mv-rui-customer-shell .mc-sidebar,
.mv-rui-customer-shell .mc-sidebar-overlay {
    display: none !important;
}

.mv-rui-customer-shell .mc-app-body {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 0;
}

.mv-rui-customer-shell .mc-content {
    background: var(--mv-bg);
}

.mv-rui-customer-shell .mc-content-inner {
    max-width: none;
    width: 100%;
    padding: 24px 32px 56px;
}

.mv-rui-customer-shell .mc-content-header {
    display: none;
}

.mv-app-topbar.mc-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--mv-topbar-height);
    height: var(--mv-topbar-height);
    padding: 0 40px;
    background: var(--mv-surface);
    border-bottom: 1px solid var(--mv-border);
    box-shadow: none;
}

.mv-app-nav-wrap {
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.mv-rui-customer-shell .mc-primary-nav {
    display: flex;
    align-items: stretch;
    gap: 24px;
    height: var(--mv-topbar-height);
    overflow: visible;
}

.mv-rui-customer-shell .mc-primary-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: var(--mv-topbar-height);
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    color: var(--mv-text) !important;
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.mv-rui-customer-shell .mc-primary-nav-link .material-symbols-rounded {
    color: #9a9a95;
    font-size: 18px;
}

.mv-rui-customer-shell .mc-primary-nav-link.active::after,
.mv-rui-customer-shell .mc-primary-nav-link:hover::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--mv-green);
}

.mv-rui-customer-shell .mc-primary-nav-link.active,
.mv-rui-customer-shell .mc-primary-nav-link:hover {
    color: var(--mv-text) !important;
}

.mv-rui-customer-shell .mc-primary-nav-group {
    position: relative;
    display: flex;
    align-items: stretch;
}

.mv-rui-customer-shell .mc-primary-nav-menu {
    top: calc(100% - 10px);
    min-width: 210px;
    border: 1px solid var(--mv-border);
    border-radius: 10px;
    box-shadow: var(--shadow-dropdown);
}

.mv-rui-customer-shell .mc-primary-nav-menu a {
    gap: 10px;
    color: var(--mv-text);
    font-size: 13px;
    font-weight: 650;
}

.mv-rui-customer-shell .mc-primary-nav-menu a .material-symbols-rounded {
    width: 18px;
    color: #8a8a83;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    flex: 0 0 18px;
}

.mv-app-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: max-content;
}

.mv-create-btn,
.mv-notification-btn,
.mv-user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-pill-radius);
    background: var(--mv-surface);
    color: var(--mv-text);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.mv-create-btn {
    gap: 8px;
    min-height: 40px;
    padding: 0 20px;
    color: var(--mv-green);
    font-size: 14px;
    font-weight: 750;
}

.mv-create-btn .material-symbols-rounded {
    font-size: 18px;
}

.mv-notification-btn {
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    color: var(--mv-green);
}

.mv-notification-btn .material-symbols-rounded {
    font-size: 18px;
}

.mv-notification-count {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--mv-neutral-bg);
    color: var(--mv-green);
    font-size: 12px;
    font-weight: 800;
}

.mv-user-btn {
    gap: 8px;
    min-height: 42px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.mv-user-name {
    max-width: 160px;
    overflow: hidden;
    color: var(--mv-text);
    font-size: 14px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-user-avatar {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: conic-gradient(from 20deg, #1b1b1b, #7fa12b, #d8d8d6, #1b1b1b);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.mv-user-chevron {
    color: #9a9a95;
    font-size: 18px;
}

.mv-user-menu {
    min-width: 210px;
    padding: 8px;
}

.mv-user-menu a,
.mv-user-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--mv-text);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    padding: 10px 12px;
    text-align: left;
    text-decoration: none;
}

.mv-user-menu a:hover,
.mv-user-menu button:hover {
    background: var(--mv-neutral-bg);
    color: var(--mv-green);
}

.mv-rui-customer-shell .mc-system-alert-bar {
    justify-content: flex-start;
    min-height: 52px;
    padding: 0 24px;
    background: var(--mv-green);
    border-bottom: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.mv-rui-customer-shell .mc-system-alert-bar--error {
    background: var(--mv-green);
    color: #fff;
}

.mv-rui-customer-shell .mc-system-alert-bar .material-symbols-rounded {
    color: #fff;
    font-size: 20px;
}

.mv-rui-customer-shell .mc-page-header,
.mv-rui-customer-shell .mc-card,
.mv-rui-customer-shell .mc-stat-card,
.mv-rui-customer-shell .mc-list-card,
.mv-rui-customer-shell .mc-dashboard-card,
.mv-rui-customer-shell .mc-settings-card {
    background: var(--mv-surface);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-card-radius);
    box-shadow: var(--mv-card-shadow);
}

.mv-rui-customer-shell .mc-page-header {
    padding: 30px 32px;
}

.mv-rui-customer-shell .mc-page-title {
    color: var(--mv-text);
    font-size: 34px;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.15;
}

.mv-rui-customer-shell .mc-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.mv-rui-customer-shell .mc-stat-card {
    min-height: 184px;
    align-items: flex-start;
    padding: 32px;
}

.mv-rui-customer-shell .mc-stat-icon {
    display: none;
}

.mv-rui-customer-shell .mc-stat-content {
    width: 100%;
}

.mv-rui-customer-shell .mc-stat-label {
    color: var(--mv-text);
    font-size: 22px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
}

.mv-rui-customer-shell .mc-stat-value {
    margin-top: 22px;
    color: var(--mv-text);
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.mv-rui-customer-shell .mc-card-header {
    min-height: 72px;
    padding: 28px 32px 18px;
    border-bottom: 0;
}

.mv-rui-customer-shell .mc-card-title {
    color: var(--mv-text);
    font-size: 22px;
    font-weight: 750;
    letter-spacing: 0;
}

.mv-rui-customer-shell .mc-card-body {
    padding: 18px 32px 32px;
}

.mv-rui-customer-shell .mc-table th {
    color: var(--mv-text);
    font-size: 14px;
    font-weight: 750;
    padding: 16px 12px;
}

.mv-rui-customer-shell .mc-table td {
    color: var(--mv-text);
    font-size: 14px;
    padding: 14px 12px;
}

.mv-route-dashboard .mc-page-header {
    display: none;
}

.mv-route-dashboard .mc-content-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mv-route-dashboard .mailvio-dashboard-hero,
.mv-route-dashboard #setup-onboarding,
.mv-route-dashboard .dash-grid-4,
.mv-route-dashboard .mc-grow-section {
    display: none !important;
}

.mv-route-dashboard .mailvio-dashboard {
    gap: 0;
}

.mv-route-dashboard .mailvio-dashboard > .mc-stat-grid {
    order: 1;
}

.mv-route-dashboard .mailvio-dashboard > .mc-card {
    order: 2;
}

.mv-route-dashboard .mailvio-dashboard > .dash-grid-2 {
    order: 3;
}

.mv-route-dashboard .mc-section {
    margin: 0;
}

.mv-route-dashboard .mc-card {
    min-height: 216px;
}

.mv-route-dashboard .mailvio-dashboard > .mc-card {
    min-height: 416px;
    padding: 32px !important;
}

.mv-route-dashboard .mailvio-dashboard > .mc-card .dash-section-header {
    margin-bottom: 28px;
}

.mv-route-dashboard .mailvio-dashboard > .mc-card .dash-section-title {
    font-size: 22px;
    font-weight: 750;
}

.mv-route-dashboard .mailvio-dashboard > .mc-card .dash-period-tabs {
    background: transparent;
    border: 0;
    gap: 8px;
    padding: 0;
}

.mv-route-dashboard .mailvio-dashboard > .mc-card .dash-period-tab {
    border-radius: 6px;
    color: var(--mv-text);
    font-weight: 650;
    padding: 7px 9px;
}

.mv-route-dashboard .mailvio-dashboard > .mc-card .dash-period-tab.active {
    background: var(--mv-neutral-bg);
    color: var(--mv-green);
    box-shadow: none;
}

.mv-route-dashboard .dash-chart-meta {
    display: none !important;
}

.mv-route-dashboard #chart-performance {
    position: relative;
}

.mv-route-dashboard #chart-performance::after {
    content: "No Data Available\A There is no campaign data for the time period you have selected";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mv-text);
    font-size: 22px;
    font-weight: 750;
    line-height: 1.9;
    text-align: center;
    white-space: pre;
}

.mv-route-dashboard #chart-performance::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(50% - 74px);
    width: 210px;
    height: 78px;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse at 58% 48%, rgba(127, 161, 43, .12) 0 36%, transparent 37%),
        repeating-linear-gradient(90deg, transparent 0 31px, rgba(127, 161, 43, .25) 32px, transparent 33px),
        linear-gradient(160deg, transparent 42%, rgba(127, 161, 43, .18) 43% 60%, transparent 61%);
    border-bottom: 1px solid rgba(127, 161, 43, .45);
    pointer-events: none;
}

.mv-route-dashboard #chart-performance > div {
    opacity: 0;
}

.mv-route-dashboard .dash-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
}

.mv-route-dashboard .dash-grid-2 > .mc-card {
    min-height: 216px;
}

.mv-route-dashboard .dash-grid-2 > .mc-card:nth-child(2) {
    display: none;
}

.mv-route-dashboard .dash-grid-2 .dash-section-title {
    font-size: 22px;
    font-weight: 750;
}

.mv-route-dashboard .dash-grid-2 .dash-section-desc {
    display: none;
}

.mv-route-dashboard .mc-empty-state {
    min-height: 120px;
}

@media (max-width: 1100px) {
    .mv-app-topbar.mc-topbar {
        padding: 0 20px;
        gap: 16px;
    }

    .mv-rui-customer-shell .mc-primary-nav {
        gap: 16px;
    }

    .mv-user-name {
        display: none;
    }
}

@media (max-width: 767px) {
    .mv-app-topbar.mc-topbar {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding: 0 14px 10px;
    }

    .mv-app-nav-wrap {
        width: 100%;
        order: 2;
        overflow-x: auto;
    }

    .mv-rui-customer-shell .mc-primary-nav {
        gap: 18px;
        height: 48px;
        min-width: max-content;
    }

    .mv-rui-customer-shell .mc-primary-nav-link {
        height: 48px;
    }

    .mv-app-actions {
        width: 100%;
        min-height: 64px;
        justify-content: flex-end;
    }

    .mv-rui-customer-shell .mc-content-inner {
        padding: 18px 14px 48px;
    }

    .mv-rui-customer-shell .mc-stat-grid {
        grid-template-columns: 1fr;
    }

    .mv-rui-customer-shell .mc-stat-card,
    .mv-rui-customer-shell .mc-card-body,
    .mv-rui-customer-shell .mc-card-header {
        padding-right: 20px;
        padding-left: 20px;
    }
}

/* ==========================================================================
   Batch 09 websites, forms, hosted/embed public form surfaces
   ========================================================================== */

.mv-websites-surface {
    margin-bottom: 24px;
}

.mv-websites-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.mv-websites-tabs {
    margin-bottom: 18px;
}

.mv-websites-card {
    margin-bottom: 24px;
}

.mv-websites-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.mv-websites-filter .filter-group,
.mv-websites-filter .text-nowrap {
    min-height: 40px;
}

.mv-websites-filter .form-control.search {
    height: 40px;
    border-radius: var(--mv-control-radius);
}

.mv-websites-card .top-list-controls {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.mv-websites-card .pml-table {
    border: 0;
    box-shadow: none;
}

.mv-websites-card .pml-table tr {
    background: transparent;
}

.mv-websites-card .pml-table td,
.mv-websites-card .pml-table th {
    border-color: var(--mv-border);
}

.mv-form-thumb {
    display: inline-block;
    width: 96px;
    margin-right: 14px;
    vertical-align: middle;
}

.mv-form-thumb img {
    width: 96px;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    background: var(--mv-surface-soft);
}

.mv-template-header {
    position: sticky;
    top: 78px;
    z-index: 2;
    background: var(--mv-surface);
    border-bottom: 1px solid var(--mv-border);
    padding-bottom: 14px;
}

.mv-template-grid {
    margin-left: -8px !important;
    margin-right: -8px !important;
}

.mv-template-option {
    border: 2px solid var(--mv-border);
    border-radius: var(--mv-panel-radius);
    background: var(--mv-surface);
    padding: 10px;
    color: var(--mv-text);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.mv-template-option:hover,
.mv-template-option.selected {
    border-color: var(--mv-green);
    box-shadow: 0 0 0 1px var(--mv-green);
    color: var(--mv-text);
}

.mv-form-connect-popup .select2,
.mv-form-connect-popup select,
.mv-form-connect-popup .form-control {
    margin-bottom: 18px;
}

.mv-green-link {
    color: var(--mv-green) !important;
    font-weight: 700;
}

.mv-form-builder-shell {
    background: var(--mv-bg);
}

.mv-form-builder-topbar .navbar {
    height: 64px;
    border-bottom: 1px solid var(--mv-border);
    background: var(--mv-surface) !important;
    box-shadow: var(--mv-card-shadow) !important;
}

.mv-form-builder-topbar .navbar-brand {
    color: var(--mv-text);
    font-weight: 700;
}

.mv-form-builder-shell #FormsEditIframe {
    height: calc(100vh - 64px) !important;
    margin-top: 64px;
    background: var(--mv-surface);
}

.mv-form-builder-shell .styles-settings {
    top: 84px;
}

.mv-builder-close {
    color: var(--mv-text);
}

.mv-site-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 24px;
}

.mv-site-grid > .mv-shell-card:first-child {
    grid-column: 1 / -1;
}

.mv-site-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.mv-site-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.mv-info-callout {
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-panel-radius);
    background: var(--mv-surface-soft);
    padding: 16px;
}

.mv-info-callout strong {
    display: block;
    margin-bottom: 8px;
}

.mv-info-callout .mv-badge {
    margin-bottom: 10px;
}

.mv-variable-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 22px;
}

.mv-variable-list > div {
    display: grid;
    grid-template-columns: minmax(160px, max-content) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--mv-border);
}

.mv-variable-list p {
    margin: 0;
    color: var(--mv-muted);
}

.mv-subsection-title {
    font-size: 15px;
    font-weight: 800;
    margin: 22px 0 10px;
}

.mv-code-panel .mv-code-input,
.mv-code-input {
    display: flex;
    align-items: stretch;
    gap: 12px;
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-panel-radius);
    background: var(--mv-surface-soft);
    padding: 14px;
    overflow-x: auto;
}

.mv-code-input pre {
    flex: 1;
    min-width: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.mv-code-block {
    display: block;
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-panel-radius);
    background: var(--mv-surface-soft);
    color: var(--mv-text);
    padding: 16px;
    font-size: 12px;
    line-height: 1.55;
}

.mv-public-popup-container {
    border-radius: 12px;
}

.mv-public-form-surface {
    box-sizing: border-box;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    color: var(--mv-text);
    font-family: var(--mv-font);
}

.mv-public-form-surface input,
.mv-public-form-surface select,
.mv-public-form-surface textarea,
.mv-public-form-surface .form-control {
    border-radius: var(--mv-control-radius);
    border-color: var(--mv-border-strong);
}

.mv-public-form-surface button,
.mv-public-form-surface [type="submit"] {
    border-radius: var(--mv-pill-radius);
}

@media (max-width: 900px) {
    .mv-websites-heading,
    .mv-site-grid,
    .mv-code-panel .mv-code-input,
    .mv-code-input {
        display: block;
    }

    .mv-websites-heading .mv-btn {
        margin-top: 16px;
    }

    .mv-form-thumb {
        display: block;
        margin-bottom: 10px;
    }

    .mv-form-builder-topbar .navbar {
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow-x: auto;
    }

    .mv-form-builder-topbar .navbar-brand {
        min-width: 240px;
    }

    .mv-form-builder-topbar .mv-btn span:not(.material-symbols-rounded) {
        display: none;
    }

    .mv-code-input .mv-btn {
        margin-top: 12px;
    }

    .mv-site-card-heading,
    .mv-site-info-grid,
    .mv-variable-list > div {
        display: block;
    }

    .mv-websites-card .mv-table-wrap .mv-table,
    .mv-websites-card .mv-table-wrap .mv-table thead,
    .mv-websites-card .mv-table-wrap .mv-table tbody,
    .mv-websites-card .mv-table-wrap .mv-table tr,
    .mv-websites-card .mv-table-wrap .mv-table th,
    .mv-websites-card .mv-table-wrap .mv-table td {
        display: block;
        width: 100%;
    }

    .mv-websites-card .mv-table-wrap .mv-table thead {
        display: none;
    }

    .mv-websites-card .mv-table-wrap .mv-table tr {
        border: 1px solid var(--mv-border);
        border-radius: var(--mv-panel-radius);
        margin-bottom: 14px;
        padding: 12px;
        background: var(--mv-surface);
    }

    .mv-websites-card .mv-table-wrap .mv-table td {
        border: 0 !important;
        padding: 8px 0 !important;
    }

    .mv-websites-card .mv-table-wrap .mv-table td.text-end {
        text-align: left !important;
    }

    .mv-websites-card .mv-table-wrap .mv-table td:last-child {
        padding-bottom: 0 !important;
    }

    .mv-websites-card .mv-table-wrap .mv-table .list-check-col {
        display: none !important;
    }

    .mv-websites-card .mv-table-wrap .mv-table .node.styled,
    .mv-websites-card .mv-table-wrap .mv-table .node.styled ~ .check-symbol,
    .mv-websites-card .mv-table-wrap .mv-table .list-check-col .checker {
        display: none !important;
    }

    .mv-websites-card .mv-table-wrap .mv-table .list-check-col .text-nowrap {
        white-space: normal !important;
    }

    .mv-websites-card .mv-table-wrap .mv-table td.text-end,
    .mv-websites-card .mv-table-wrap .mv-table td.text-nowrap {
        white-space: normal !important;
    }

    .mv-websites-card .mv-table-wrap .mv-table td .btn,
    .mv-websites-card .mv-table-wrap .mv-table td .btn-group {
        margin: 0 4px 6px 0;
    }

    .mv-websites-card .mv-table-wrap + .d-flex,
    .mv-websites-card .d-flex:has(.select2),
    .mv-websites-card .d-flex:has(.select) {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ==========================================================================
   Batch 10: account settings, domains, senders, signatures, users, roles, API
   ========================================================================== */

.mv-account-shell {
    margin-bottom: 32px;
}

.mv-account-shell .page-title h1,
.mv-account-shell .page-title h2 {
    margin-bottom: 0;
}

.mv-account-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.mv-account-heading h2,
.mv-account-heading h3 {
    color: var(--mv-text);
    font-size: 24px;
    font-weight: 720;
    line-height: 1.2;
    margin: 0 0 8px;
}

.mv-account-heading p,
.mv-account-copy {
    color: var(--mv-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

.mv-account-menu {
    margin-bottom: 24px;
}

.mv-account-menu .mv-tabs {
    margin-bottom: 0;
}

.mv-account-card {
    background: var(--mv-surface);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-card-radius);
    box-shadow: var(--mv-card-shadow);
    padding: clamp(18px, 2.4vw, 28px);
}

.mv-account-card + .mv-account-card,
.mv-account-form + .mv-account-card {
    margin-top: 20px;
}

.mv-account-form .sub_section,
.mv-account-card .sub_section {
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-panel-radius);
    background: var(--mv-neutral-bg);
    padding: 18px;
}

.mv-account-form h2,
.mv-account-form h3,
.mv-account-card h2,
.mv-account-card h3 {
    color: var(--mv-text);
    font-weight: 720;
}

.mv-account-form .form-control,
.mv-account-form .form-select,
.mv-account-card .form-control,
.mv-account-card .form-select,
.mv-account-card .select2-selection {
    border-color: var(--mv-border-strong);
    border-radius: var(--mv-control-radius);
}

.mv-account-form .btn,
.mv-account-card .btn,
.mv-account-toolbar .btn,
.mv-account-toolbar .dropdown-toggle,
.mv-account-card [role="button"] {
    border-radius: var(--mv-pill-radius);
}

.mv-account-toolbar,
.mv-account-shell .top-list-controls {
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.mv-account-shell .filter-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-panel-radius);
    background: var(--mv-neutral-bg);
}

.mv-account-shell .filter-box .text-nowrap {
    position: relative;
}

.mv-account-shell .filter-box .text-nowrap .material-symbols-rounded {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mv-muted);
    pointer-events: none;
}

.mv-account-shell .filter-box .search {
    min-width: min(300px, 70vw);
    padding-right: 40px;
}

.mv-account-shell .table-box,
.mv-account-shell .pml-table,
.mv-account-shell .table-trans {
    border-collapse: separate;
    border-spacing: 0;
    border: 0;
    color: var(--mv-text);
}

.mv-account-shell .table-box tr,
.mv-account-shell .pml-table tr,
.mv-account-shell .table-trans tr {
    background: var(--mv-surface);
}

.mv-account-shell .table-box td,
.mv-account-shell .pml-table td,
.mv-account-shell .table-trans td,
.mv-account-shell .table-trans th {
    border-bottom: 1px solid var(--mv-border);
    padding: 14px 12px;
    vertical-align: middle;
}

.mv-account-shell .table-box tr:last-child td,
.mv-account-shell .pml-table tr:last-child td,
.mv-account-shell .table-trans tr:last-child td {
    border-bottom: 0;
}

.mv-account-shell .label,
.mv-account-shell .badge {
    border-radius: var(--mv-badge-radius);
    font-weight: 650;
}

.mv-account-shell .domain-check-icon {
    font-size: 28px;
}

.mv-account-shell .mv-dns-records .table {
    table-layout: fixed;
}

.mv-account-shell .mv-dns-records .table td:nth-child(2),
.mv-account-shell .mv-dns-records .table td:nth-child(3) {
    overflow-wrap: anywhere;
    word-break: break-all;
}

.mv-account-shell .mv-dns-records .table td:nth-child(2) span,
.mv-account-shell .mv-dns-records .table td:nth-child(3) span,
.mv-account-shell .mv-dns-records .table td:nth-child(3) code {
    display: block;
    max-width: 100%;
    white-space: normal;
}

.mv-account-shell .empty-list {
    border: 1px dashed var(--mv-border-strong);
    border-radius: var(--mv-panel-radius);
    background: var(--mv-neutral-bg);
    color: var(--mv-muted);
    padding: 32px 20px;
    text-align: center;
}

.mv-account-shell .empty-list .material-symbols-rounded {
    display: block;
    color: var(--mv-green);
    font-size: 34px;
    margin-bottom: 10px;
}

.mv-account-detail-list {
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-panel-radius);
    overflow: hidden;
}

.mv-account-detail-list li {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 16px;
    border-bottom: 1px solid var(--mv-border);
    padding: 14px 16px;
}

.mv-account-detail-list li:last-child {
    border-bottom: 0;
}

.mv-account-code,
.mv-account-shell pre,
.mv-account-shell code {
    border-radius: var(--mv-control-radius);
    background: #10201b;
    color: #dff8ef;
    white-space: pre-wrap;
    word-break: break-word;
}

.mv-account-api-token {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-panel-radius);
    background: var(--mv-neutral-bg);
}

.mv-permission-list {
    display: grid;
    gap: 12px;
}

.mv-permission-list label.form-check-label {
    border: 1px solid var(--mv-border) !important;
    border-radius: var(--mv-panel-radius);
    background: var(--mv-surface);
    padding: 14px !important;
}

.mv-signature-editor #editor {
    border: 1px solid var(--mv-border-strong);
    border-radius: var(--mv-panel-radius) !important;
    overflow: hidden;
}

.mv-twofa-methods .table-box td {
    padding: 18px 14px;
}

@media (max-width: 900px) {
    .mv-account-heading,
    .mv-account-toolbar,
    .mv-account-shell .top-list-controls {
        display: block !important;
    }

    .mv-account-heading .btn,
    .mv-account-toolbar .btn,
    .mv-account-shell .top-list-controls .text-end {
        margin-top: 12px;
    }

    .mv-account-shell .filter-box {
        display: block;
    }

    .mv-account-shell .filter-box > * {
        display: block;
        margin-bottom: 10px;
        width: 100%;
    }

    .mv-account-shell .filter-box .search,
    .mv-account-shell .filter-box select {
        width: 100%;
        min-width: 0;
    }

    .mv-account-shell .mv-table-wrap .table,
    .mv-account-shell .mv-table-wrap .table thead,
    .mv-account-shell .mv-table-wrap .table tbody,
    .mv-account-shell .mv-table-wrap .table tr,
    .mv-account-shell .mv-table-wrap .table th,
    .mv-account-shell .mv-table-wrap .table td {
        display: block;
        width: 100%;
    }

    .mv-account-shell .mv-table-wrap .table thead,
    .mv-account-shell .mv-table-wrap .table tr:first-child:has(th) {
        display: none;
    }

    .mv-account-shell .mv-table-wrap .table tr {
        border: 1px solid var(--mv-border);
        border-radius: var(--mv-panel-radius);
        margin-bottom: 14px;
        padding: 12px;
    }

    .mv-account-shell .mv-table-wrap .table td,
    .mv-account-shell .mv-table-wrap .table th {
        border: 0 !important;
        padding: 8px 0 !important;
        text-align: left !important;
    }

    .mv-account-detail-list li {
        display: block;
    }

    .mv-account-shell .btn-group,
    .mv-account-shell .btn {
        margin-bottom: 6px;
    }
}

/* ==========================================================================
   Batch 11: sending infrastructure
   ========================================================================== */

.mv-infra-shell {
    margin-bottom: 32px;
}

.mv-infra-shell.mv-shell-card,
.mv-infra-card,
.mv-infra-shell .mc_section,
.mv-infra-popup .mc_section {
    background: var(--mv-surface);
    border: 1px solid var(--mv-border) !important;
    border-radius: var(--mv-card-radius);
    box-shadow: var(--mv-card-shadow);
    padding: clamp(18px, 2.4vw, 28px);
}

.mv-infra-shell.mv-shell-card,
form.mv-infra-shell > .mc_section,
form.mv-infra-shell > .mc_section.boxing {
    max-width: 1120px;
}

form.mv-infra-shell > .mc_section,
form.mv-infra-shell > .mc_section.boxing,
.mv-infra-popup .mc_section,
.mv-infra-popup .mc_section.boxing {
    background: var(--mv-surface) !important;
    border-radius: var(--mv-card-radius) !important;
    box-shadow: var(--mv-card-shadow) !important;
}

.mv-infra-shell .mc_section:not(.boxing) {
    margin-bottom: 0;
}

.mv-infra-shell .mc_section + .mc_section,
.mv-infra-shell form + form,
.mv-infra-card + .mv-infra-card {
    margin-top: 20px;
}

.mv-infra-shell .mc_section.boxing,
.mv-infra-popup .mc_section.boxing {
    border-color: var(--mv-border);
}

.mv-infra-shell .top-list-controls,
.mv-infra-popup .top-list-controls {
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.mv-infra-shell .filter-box,
.mv-infra-popup .filter-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-panel-radius);
    background: var(--mv-neutral-bg);
}

.mv-infra-shell .filter-box .text-nowrap,
.mv-infra-popup .filter-box .text-nowrap {
    position: relative;
}

.mv-infra-shell .filter-box .text-nowrap .material-symbols-rounded,
.mv-infra-popup .filter-box .text-nowrap .material-symbols-rounded {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mv-muted);
    pointer-events: none;
}

.mv-infra-shell .filter-box .search,
.mv-infra-popup .filter-box .search {
    min-width: min(300px, 70vw);
    padding-right: 40px;
}

.mv-infra-shell .table-box,
.mv-infra-shell .pml-table,
.mv-infra-popup .table-box,
.mv-infra-popup .pml-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 0;
    color: var(--mv-text);
}

.mv-infra-shell .table-box tr,
.mv-infra-shell .pml-table tr,
.mv-infra-popup .table-box tr,
.mv-infra-popup .pml-table tr {
    background: var(--mv-surface);
}

.mv-infra-shell .table-box td,
.mv-infra-shell .table-box th,
.mv-infra-shell .pml-table td,
.mv-infra-shell .pml-table th,
.mv-infra-popup .table-box td,
.mv-infra-popup .table-box th,
.mv-infra-popup .pml-table td,
.mv-infra-popup .pml-table th {
    border-bottom: 1px solid var(--mv-border);
    padding: 14px 12px;
    vertical-align: middle;
}

.mv-infra-shell .table-box tr:last-child td,
.mv-infra-shell .pml-table tr:last-child td,
.mv-infra-popup .table-box tr:last-child td,
.mv-infra-popup .pml-table tr:last-child td {
    border-bottom: 0;
}

.mv-infra-shell .label,
.mv-infra-shell .badge,
.mv-infra-popup .label,
.mv-infra-popup .badge {
    border-radius: var(--mv-badge-radius);
    font-weight: 650;
}

.mv-infra-shell .btn,
.mv-infra-shell .dropdown-toggle,
.mv-infra-popup .btn,
.mv-infra-popup .dropdown-toggle {
    border-radius: var(--mv-pill-radius);
}

.mv-infra-shell .form-control,
.mv-infra-shell .form-select,
.mv-infra-shell .select2-selection,
.mv-infra-shell textarea,
.mv-infra-popup .form-control,
.mv-infra-popup .form-select,
.mv-infra-popup .select2-selection,
.mv-infra-popup textarea {
    border-color: var(--mv-border-strong);
    border-radius: var(--mv-control-radius);
}

.mv-infra-shell .form-control:focus,
.mv-infra-shell .form-select:focus,
.mv-infra-shell textarea:focus,
.mv-infra-popup .form-control:focus,
.mv-infra-popup .form-select:focus,
.mv-infra-popup textarea:focus {
    border-color: var(--mv-green);
    box-shadow: 0 0 0 3px rgba(127, 161, 43, 0.16);
}

.mv-infra-shell h2,
.mv-infra-shell h3,
.mv-infra-shell h4,
.mv-infra-shell .mc_section > h2:first-child,
.mv-infra-shell .mc_section > h3:first-child,
.mv-infra-shell .mc_section > h4:first-child,
.mv-infra-popup h2,
.mv-infra-popup h3,
.mv-infra-popup h4 {
    color: var(--mv-text);
    font-weight: 720;
}

.mv-infra-shell .form-group,
.mv-infra-popup .form-group {
    margin-bottom: 18px;
}

.mv-infra-shell label,
.mv-infra-popup label {
    color: var(--mv-text);
    font-weight: 600;
}

.mv-infra-shell .empty-list,
.mv-infra-popup .empty-list {
    border: 1px dashed var(--mv-border-strong);
    border-radius: var(--mv-panel-radius);
    background: var(--mv-neutral-bg);
    color: var(--mv-muted);
    padding: 32px 20px;
    text-align: center;
}

.mv-infra-shell .empty-list .material-symbols-rounded,
.mv-infra-popup .empty-list .material-symbols-rounded {
    display: block;
    color: var(--mv-green);
    font-size: 34px;
    margin-bottom: 10px;
}

.mv-infra-provider-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mv-infra-provider-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-panel-radius);
    background: var(--mv-surface);
    padding: 14px;
}

.mv-infra-log-code,
.mv-infra-popup code,
.mv-infra-shell code {
    border-radius: var(--mv-control-radius);
    background: #10201b;
    color: #dff8ef;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 900px) {
    .mv-infra-shell .top-list-controls,
    .mv-infra-popup .top-list-controls {
        display: block !important;
    }

    .mv-infra-shell .top-list-controls .text-end,
    .mv-infra-popup .top-list-controls .text-end {
        margin-top: 12px;
    }

    .mv-infra-shell .filter-box,
    .mv-infra-popup .filter-box {
        display: block;
    }

    .mv-infra-shell .filter-box > *,
    .mv-infra-popup .filter-box > * {
        display: block;
        margin-bottom: 10px;
        width: 100%;
    }

    .mv-infra-shell .filter-box .search,
    .mv-infra-popup .filter-box .search,
    .mv-infra-shell .filter-box select,
    .mv-infra-popup .filter-box select {
        width: 100%;
        min-width: 0;
    }

    .mv-infra-shell .btn-group,
    .mv-infra-shell .btn,
    .mv-infra-popup .btn-group,
    .mv-infra-popup .btn {
        margin-bottom: 6px;
    }
}
