/**
 * SS-Theme — light corporate shell (burgundy + teal).
 * Loaded when UI_THEME=ss-theme (body.mt-body--ss-theme).
 * Isolated from Dark futuristic and EXSPEEDITE skins.
 * Palette from carrier public website (maroon bands + teal accents).
 */

/* ─── Page shell ─── */
body.mt-body.mt-body--futuristic.mt-body--ss-theme,
body.mt-body.mt-body--ss-theme,
body.mt-body.mt-body--ss-theme[data-theme="ss-theme"] {
    background: var(--ss-page-bg, linear-gradient(180deg, #ffffff 0%, #F7F7F7 100%)) !important;
    color: #1A1A1A !important;
    font-family: var(--font, "Outfit", "Inter", "Segoe UI", system-ui, sans-serif) !important;
    font-size: 15px;
}

body.mt-body.mt-body--futuristic.mt-body--ss-theme.mt-body--auth {
    background: var(--auth-bg) !important;
}

body.mt-body.mt-body--futuristic.mt-body--ss-theme::before,
body.mt-body--ss-theme.mt-body--futuristic .mt-shell::before {
    opacity: 0.35 !important;
    background-image:
        linear-gradient(rgba(107, 30, 46, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 30, 46, 0.04) 1px, transparent 1px) !important;
    background-size: 48px 48px !important;
}

body.mt-body--ss-theme .mt-shell {
    background: transparent !important;
    color: #1A1A1A;
}

body.mt-body.mt-body--ss-theme:has(.mt-hero--portal) {
    background: var(--ss-page-bg, #F7F7F7) !important;
    color: #1A1A1A !important;
}

/* ─── Header ─── */
body.mt-body--ss-theme .mt-header,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-header,
body.mt-body.mt-body--ss-theme:has(.mt-hero--portal) .mt-header {
    background: #ffffff !important;
    border-bottom: 3px solid var(--ss-burgundy, #6B1E2E) !important;
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06) !important;
    backdrop-filter: none !important;
}

body.mt-body--ss-theme .mt-header::after {
    height: 0 !important;
    opacity: 0 !important;
}

body.mt-body--ss-theme .mt-header__inner,
body.mt-body--ss-theme .mt-header__user {
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-header .mt-portal-tabs__link,
body.mt-body--ss-theme .mt-header button.mt-portal-tabs__link {
    color: #1A1A1A !important;
    -webkit-text-fill-color: #1A1A1A !important;
    background: #F7F7F7 !important;
    border: 1px solid rgba(107, 30, 46, 0.12) !important;
    border-radius: 999px !important;
}

body.mt-body--ss-theme .mt-header .mt-portal-tabs__link:hover,
body.mt-body--ss-theme .mt-header button.mt-portal-tabs__link:hover {
    background: var(--ss-burgundy-soft, #F5E8EB) !important;
    border-color: rgba(107, 30, 46, 0.28) !important;
}

body.mt-body--ss-theme .mt-header .mt-portal-tabs__link--active,
body.mt-body--ss-theme .mt-header a.mt-portal-tabs__link--active,
body.mt-body--ss-theme .mt-header .mt-portal-tabs__link--cta {
    background: var(--ss-burgundy, #6B1E2E) !important;
    border-color: var(--ss-burgundy, #6B1E2E) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* ─── Admin top bar — soft rounded sticky nav (not a left rail) ─── */
@keyframes ss-admin-pip {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(42, 155, 143, 0.45); }
    50% { opacity: 0.75; box-shadow: 0 0 0 6px rgba(42, 155, 143, 0); }
}

body.mt-body--ss-theme.mt-body--admin {
    --ss-admin-ink: #1A1A1A;
    --ss-admin-muted: #6a6063;
    --ss-admin-pill: 999px;
    --ss-admin-soft: 1.35rem;
}

body.mt-body--ss-theme.mt-body--admin .mt-shell {
    padding-left: 0;
}

body.mt-body--ss-theme .mt-admin-toolbar,
body.mt-body--ss-theme .mt-admin-toolbar--ss {
    position: sticky !important;
    top: 0;
    z-index: 1200;
    display: block;
    overflow: visible;
    color: #fff !important;
    background:
        linear-gradient(105deg, #2a0f16 0%, #4E1522 32%, #6B1E2E 68%, #3d1520 100%) !important;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow:
        0 10px 32px rgba(26, 10, 14, 0.22),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06) !important;
    border-radius: 0 0 1.75rem 1.75rem;
}

body.mt-body--ss-theme .mt-admin-toolbar::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 0;
    height: 3px;
    border-radius: var(--ss-admin-pill);
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--ss-teal, #2A9B8F) 18%,
        rgba(255, 255, 255, 0.55) 50%,
        var(--ss-teal, #2A9B8F) 82%,
        transparent 100%
    );
    pointer-events: none;
    opacity: 0.9;
}

body.mt-body--ss-theme .mt-admin-toolbar::after {
    display: none !important;
}

body.mt-body--ss-theme .mt-admin-toolbar__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem 0.85rem;
    min-height: 3.15rem;
    padding: 0.55rem 1rem 0.45rem;
    position: relative;
    z-index: 2;
}

body.mt-body--ss-theme .mt-admin-toolbar__brand {
    flex-shrink: 0;
}

body.mt-body--ss-theme .mt-admin-toolbar__brand-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    color: #fff !important;
    text-align: left;
}

body.mt-body--ss-theme .mt-admin-toolbar__brand-mark {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: var(--ss-admin-pill) !important;
    background:
        linear-gradient(145deg, rgba(42, 155, 143, 0.45) 0%, transparent 48%),
        linear-gradient(160deg, #8B2A3D 0%, #6B1E2E 55%, #3d1520 100%) !important;
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 750;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 0 0 2px rgba(42, 155, 143, 0.35),
        0 8px 18px rgba(26, 10, 14, 0.28);
}

body.mt-body--ss-theme .mt-admin-toolbar__brand-pip {
    display: block;
    position: absolute;
    top: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ss-teal, #2A9B8F);
    border: 2px solid #3d1520;
    animation: ss-admin-pip 2.6s ease-in-out infinite;
}

body.mt-body--ss-theme .mt-admin-toolbar__brand-text {
    align-items: flex-start;
}

body.mt-body--ss-theme .mt-admin-toolbar__brand-title {
    color: rgba(255, 255, 255, 0.96) !important;
    font-size: 0.88rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-transform: none;
}

body.mt-body--ss-theme .mt-admin-toolbar__brand-sub {
    color: rgba(126, 224, 212, 0.95) !important;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.mt-body--ss-theme .mt-admin-toolbar__menus {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1 1 auto;
    gap: 0.3rem;
    min-width: 0;
    min-height: 0;
    padding: 0.15rem;
    border: 0;
    border-radius: var(--ss-admin-pill);
    background: rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    overflow-y: visible;
}

body.mt-body--ss-theme .mt-admin-menu {
    width: auto;
    flex: 0 0 auto;
}

body.mt-body--ss-theme .mt-admin-menu + .mt-admin-menu {
    border-left: 0;
}

body.mt-body--ss-theme .mt-admin-menu__glyph {
    display: none;
}

body.mt-body--ss-theme .mt-admin-menu__trigger {
    width: auto;
    flex-direction: row;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.42rem 0.9rem !important;
    border-radius: var(--ss-admin-pill) !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.78rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: none;
}

body.mt-body--ss-theme .mt-admin-menu__label {
    display: inline;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: none;
}

body.mt-body--ss-theme .mt-admin-menu__trigger::after {
    content: "";
    display: inline-block !important;
    width: 0.35rem;
    height: 0.35rem;
    margin-left: 0.15rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.7;
}

body.mt-body--ss-theme .mt-admin-menu--open .mt-admin-menu__trigger,
body.mt-body--ss-theme .mt-admin-menu--active .mt-admin-menu__trigger,
body.mt-body--ss-theme .mt-admin-menu__trigger:hover {
    color: #fff !important;
    background: rgba(42, 155, 143, 0.28) !important;
    border-color: rgba(42, 155, 143, 0.45) !important;
    box-shadow: 0 6px 16px rgba(26, 10, 14, 0.18) !important;
}

body.mt-body--ss-theme .mt-admin-menu__panel {
    top: calc(100% + 0.45rem);
    background:
        linear-gradient(180deg, #fffefd 0%, #f8f2f3 100%) !important;
    border: 1px solid rgba(107, 30, 46, 0.14) !important;
    border-radius: var(--ss-admin-soft) !important;
    box-shadow:
        0 0 0 1px rgba(42, 155, 143, 0.08),
        0 18px 40px rgba(26, 10, 14, 0.2) !important;
    backdrop-filter: blur(12px);
    padding: 0.45rem;
}

body.mt-body--ss-theme .mt-admin-menu__item-label {
    color: var(--ss-admin-ink) !important;
}

body.mt-body--ss-theme .mt-admin-menu__item-desc {
    color: var(--ss-admin-muted) !important;
}

body.mt-body--ss-theme .mt-admin-menu__item {
    border-radius: 1rem;
}

body.mt-body--ss-theme .mt-admin-menu__item:hover,
body.mt-body--ss-theme .mt-admin-menu__item--active {
    background: rgba(107, 30, 46, 0.08) !important;
}

body.mt-body--ss-theme .mt-admin-toolbar__search {
    position: relative;
    z-index: 1;
    flex: 0 1 15rem;
    width: auto;
    min-width: 9rem;
    margin-top: 0;
}

body.mt-body--ss-theme .mt-admin-toolbar__search-icon {
    display: block;
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(42, 155, 143, 0.95);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

body.mt-body--ss-theme .mt-admin-toolbar__search-input {
    width: 100%;
    min-height: 2.15rem;
    padding: 0.4rem 0.9rem 0.4rem 2rem !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: var(--ss-admin-pill) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.8rem !important;
    font-family: inherit;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

body.mt-body--ss-theme .mt-admin-toolbar__search-input::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
    letter-spacing: 0.01em;
}

body.mt-body--ss-theme .mt-admin-toolbar__search-input:focus {
    border-color: rgba(42, 155, 143, 0.75) !important;
    background: rgba(255, 255, 255, 0.16) !important;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.1),
        0 0 0 3px rgba(42, 155, 143, 0.22) !important;
}

body.mt-body--ss-theme .mt-admin-toolbar__search-results {
    left: 0;
    right: 0;
    top: calc(100% + 0.4rem);
    bottom: auto;
    width: auto;
    background: #fffefd !important;
    border: 1px solid rgba(107, 30, 46, 0.14) !important;
    border-radius: var(--ss-admin-soft) !important;
    box-shadow: 0 16px 36px rgba(26, 10, 14, 0.2) !important;
}

body.mt-body--ss-theme .mt-admin-toolbar__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    width: auto;
    flex-shrink: 0;
}

body.mt-body--ss-theme .mt-admin-brand-switch {
    flex-direction: row;
    margin: 0;
    padding: 0.2rem;
    gap: 0.15rem;
    border-radius: var(--ss-admin-pill);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

body.mt-body--ss-theme .mt-admin-brand-switch__btn {
    padding: 0.32rem 0.7rem;
    border-radius: var(--ss-admin-pill);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    line-height: 1.2;
}

body.mt-body--ss-theme .mt-admin-brand-switch__btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

body.mt-body--ss-theme .mt-admin-brand-switch__btn--active,
body.mt-body--ss-theme .mt-brand-switcher__btn--active,
body.mt-body--ss-theme .mt-admin-toolbar__brand-pill--active {
    background: var(--ss-teal, #2A9B8F) !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(42, 155, 143, 0.35);
}

body.mt-body--ss-theme .mt-admin-toolbar__ops {
    display: inline-flex;
    flex-direction: row;
    gap: 0.15rem;
    padding: 0.2rem;
    border-radius: var(--ss-admin-pill);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

body.mt-body--ss-theme .mt-admin-toolbar__ops::before {
    display: none;
}

body.mt-body--ss-theme .mt-admin-toolbar__ops .mt-admin-toolbar__action {
    margin: 0;
    padding: 0.35rem 0.7rem !important;
    border-radius: var(--ss-admin-pill) !important;
    border: 0 !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.72rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.01em;
    text-transform: none;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

body.mt-body--ss-theme .mt-admin-toolbar__ops .mt-admin-toolbar__action:hover {
    color: #fff !important;
    background: rgba(42, 155, 143, 0.3) !important;
}

body.mt-body--ss-theme .mt-admin-toolbar__ops .mt-admin-toolbar__action--owner {
    color: #7ee0d4 !important;
}

body.mt-body--ss-theme .mt-admin-toolbar__session {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.25rem 0.2rem 0.65rem;
    border-radius: var(--ss-admin-pill);
    border: 1px solid rgba(42, 155, 143, 0.35);
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.mt-body--ss-theme .mt-admin-toolbar__user {
    max-width: 7rem;
    width: auto;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.72rem !important;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-transform: none;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.mt-body--ss-theme .mt-admin-toolbar__session .mt-admin-toolbar__action--signout {
    padding: 0.35rem 0.75rem !important;
    border-radius: var(--ss-admin-pill) !important;
    background: rgba(107, 30, 46, 0.55) !important;
    color: #fff !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    text-transform: none;
    text-align: center;
}

body.mt-body--ss-theme .mt-admin-toolbar__session .mt-admin-toolbar__action--signout:hover {
    background: rgba(42, 155, 143, 0.55) !important;
}

body.mt-body--ss-theme .mt-admin-toolbar__action,
body.mt-body--ss-theme .mt-admin-toolbar__action--muted,
body.mt-body--ss-theme .mt-admin-toolbar__action--signout {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.mt-body--ss-theme .mt-admin-toolbar__context {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.55rem;
    padding: 0.2rem 1.1rem 0.55rem;
    pointer-events: none;
    background: transparent !important;
    border: 0 !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.72rem !important;
    font-family: inherit;
    letter-spacing: 0.01em;
}

body.mt-body--ss-theme .mt-admin-toolbar__context-sep {
    color: var(--ss-teal, #2A9B8F);
    opacity: 0.95;
}

body.mt-body--ss-theme .mt-admin-toolbar__context-current {
    color: #fff !important;
    font-weight: 700;
}

body.mt-body--ss-theme .mt-admin-toolbar__badge {
    margin-left: auto;
    pointer-events: auto;
    border-radius: var(--ss-admin-pill) !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.06em;
    padding: 0.18rem 0.55rem;
}

body.mt-body--ss-theme .mt-admin-toolbar__badge--owner {
    background: rgba(42, 155, 143, 0.28) !important;
    color: #dff8f4 !important;
    border-color: rgba(42, 155, 143, 0.45) !important;
}

body.mt-body--ss-theme .mt-admin-console__toggle,
body.mt-body--ss-theme .mt-admin-console__scrim,
body.mt-body--ss-theme .mt-admin-console__hud-tag {
    display: none !important;
}

@media (max-width: 960px) {
    body.mt-body--ss-theme .mt-admin-toolbar {
        border-radius: 0 0 1.25rem 1.25rem;
    }

    body.mt-body--ss-theme .mt-admin-toolbar__brand-text {
        display: none;
    }

    body.mt-body--ss-theme .mt-admin-toolbar__search {
        flex: 1 1 7rem;
        min-width: 6rem;
    }

    body.mt-body--ss-theme .mt-admin-toolbar__user {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.mt-body--ss-theme .mt-admin-toolbar__brand-pip {
        animation: none !important;
    }
}

/* ─── Hero ─── */
body.mt-body--ss-theme .mt-hero--portal {
    background: transparent !important;
}

body.mt-body--ss-theme .mt-hero--portal .mt-hero__mesh {
    background:
        radial-gradient(ellipse 70% 80% at 15% 0%, rgba(107, 30, 46, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 60% at 90% 20%, rgba(42, 155, 143, 0.12), transparent 50%) !important;
}

body.mt-body--ss-theme .mt-hero__eyebrow {
    color: var(--ss-burgundy, #6B1E2E) !important;
}

body.mt-body--ss-theme .mt-hero__title {
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-hero__title em {
    color: var(--ss-burgundy, #6B1E2E) !important;
    font-style: normal;
}

body.mt-body--ss-theme .mt-hero__subtitle {
    color: #555555 !important;
}

/* ─── Panels / cards ─── */
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-panel,
body.mt-body--ss-theme .mt-panel,
body.mt-body--ss-theme .mt-panel--glass,
body.mt-body--ss-theme .mt-admin-card {
    position: relative;
    background: #ffffff !important;
    border: 1px solid rgba(107, 30, 46, 0.12) !important;
    border-radius: 1.35rem !important;
    box-shadow: 0 8px 28px rgba(26, 26, 26, 0.06) !important;
    color: #1A1A1A !important;
    backdrop-filter: none !important;
}

body.mt-body--ss-theme .mt-panel::before,
body.mt-body--ss-theme .mt-admin-card::before,
body.mt-body--ss-theme .mt-panel--glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ss-burgundy, #6B1E2E) 0%, var(--ss-teal, #2A9B8F) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: 1.35rem 1.35rem 0 0;
}

body.mt-body--ss-theme .mt-panel__header,
body.mt-body--ss-theme .mt-setup-card__head {
    background: linear-gradient(180deg, #ffffff 0%, #F7F7F7 100%) !important;
    border-bottom: 1px solid rgba(107, 30, 46, 0.1) !important;
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-panel__title,
body.mt-body--ss-theme .mt-admin-card__title {
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-panel__subtitle,
body.mt-body--ss-theme .mt-admin-card__body,
body.mt-body--ss-theme .mt-setup-hint,
body.mt-body--ss-theme .mt-admin-footer-note {
    color: #555555 !important;
}

/* Teal accents for secondary headings / tags */
body.mt-body--ss-theme .mt-setup-section-title,
body.mt-body--ss-theme .mt-scott-tag--main {
    color: var(--ss-teal-dark, #1F7A70) !important;
}

/* ─── Buttons ─── */
body.mt-body--ss-theme .mt-btn--primary,
body.mt-body--ss-theme .mt-btn--ghost {
    border-radius: 999px !important;
}

body.mt-body--ss-theme .mt-field__input,
body.mt-body--ss-theme .mt-field__input:focus {
    border-radius: 1rem !important;
}

body.mt-body--ss-theme .mt-btn--primary {
    background: var(--ss-burgundy, #6B1E2E) !important;
    border-color: var(--ss-burgundy, #6B1E2E) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(107, 30, 46, 0.28) !important;
}

body.mt-body--ss-theme .mt-btn--primary:hover {
    background: var(--ss-burgundy-hover, #8B2A3D) !important;
    border-color: var(--ss-burgundy-hover, #8B2A3D) !important;
}

body.mt-body--ss-theme .mt-btn--ghost {
    background: #ffffff !important;
    border: 1px solid rgba(107, 30, 46, 0.2) !important;
    color: var(--ss-burgundy, #6B1E2E) !important;
}

body.mt-body--ss-theme .mt-btn--ghost:hover {
    background: var(--ss-burgundy-soft, #F5E8EB) !important;
}

/* Secondary teal CTA (when used) */
body.mt-body--ss-theme .mt-btn--teal,
body.mt-body--ss-theme .mt-client-portal-theme--active {
    border-color: color-mix(in srgb, var(--ss-burgundy, #6B1E2E) 45%, #E5E5E5) !important;
}

/* ─── Forms / fields ─── */
body.mt-body--ss-theme .mt-field__input,
body.mt-body--ss-theme .mt-field__input:focus {
    background: #ffffff !important;
    color: #1A1A1A !important;
    border-color: rgba(107, 30, 46, 0.18) !important;
}

body.mt-body--ss-theme .mt-field__input:focus {
    outline: 2px solid rgba(42, 155, 143, 0.35);
    outline-offset: 1px;
}

body.mt-body--ss-theme .mt-field__label {
    color: #1A1A1A !important;
}

/* ─── Tables / status ─── */
body.mt-body--ss-theme .mt-table th {
    color: var(--ss-burgundy, #6B1E2E) !important;
    background: #F7F7F7 !important;
}

body.mt-body--ss-theme .mt-table td {
    color: #1A1A1A !important;
    border-color: #EEEEEE !important;
}

/* Override futuristic Manning-red wash — selected rows use SS burgundy soft */
body.mt-body--ss-theme .mt-table tbody tr:hover,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-table tbody tr:hover {
    background: var(--ss-burgundy-soft, #F5E8EB) !important;
    box-shadow: inset 3px 0 0 var(--ss-burgundy, #6B1E2E) !important;
}

body.mt-body--ss-theme .mt-table tbody tr.is-selected,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-table tbody tr.is-selected {
    background: var(--ss-burgundy-soft, #F5E8EB) !important;
    box-shadow: inset 3px 0 0 var(--ss-burgundy, #6B1E2E) !important;
}

body.mt-body--ss-theme .mt-table__link {
    color: var(--ss-burgundy, #6B1E2E) !important;
}

/* Detail drawer + timeline stay light under SS (not dark futuristic glass) */
body.mt-body--ss-theme .mt-detail,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-detail {
    background: #F7F7F7 !important;
    border-top-color: rgba(107, 30, 46, 0.12) !important;
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-detail__field dt,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-detail__field dt {
    color: #555555 !important;
}

body.mt-body--ss-theme .mt-detail__field dd,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-detail__field dd,
body.mt-body--ss-theme .mt-detail__schedule-value,
body.mt-body--ss-theme .mt-detail__deliver-by-value,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-detail__schedule-value,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-detail__deliver-by-value {
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-detail__schedule-item,
body.mt-body--ss-theme .mt-detail__deliver-by {
    border-color: rgba(107, 30, 46, 0.22) !important;
    background: #ffffff !important;
}

body.mt-body--ss-theme .mt-detail__schedule-label,
body.mt-body--ss-theme .mt-detail__deliver-by-label {
    color: var(--ss-burgundy, #6B1E2E) !important;
}

body.mt-body--ss-theme .mt-detail__stops-list,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-detail__stops-list {
    background: #ffffff !important;
    border: 1px solid rgba(107, 30, 46, 0.12) !important;
}

body.mt-body--ss-theme .mt-detail__stop-role {
    color: var(--ss-burgundy, #6B1E2E) !important;
}

body.mt-body--ss-theme .mt-detail__stop-name,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-detail__stop-name {
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-detail__stop-meta,
body.mt-body--ss-theme .mt-detail__stop-refs,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-detail__stop-meta,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-detail__stop-refs {
    color: #555555 !important;
}

body.mt-body--ss-theme .mt-timeline,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-timeline {
    background: #ffffff !important;
    border-color: rgba(107, 30, 46, 0.12) !important;
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-timeline__time,
body.mt-body--ss-theme .mt-timeline__meta,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-timeline__time,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-timeline__meta {
    color: #555555 !important;
}

body.mt-body--ss-theme .mt-setup-status dt {
    color: #555555 !important;
}

body.mt-body--ss-theme .mt-setup-status dd {
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-setup-status code,
body.mt-body--ss-theme code {
    color: var(--ss-burgundy-dark, #4E1522) !important;
}

/* Theme badges */
body.mt-body--ss-theme .mt-theme-badge--ss-theme {
    background: var(--ss-burgundy-soft, #F5E8EB);
    color: var(--ss-burgundy, #6B1E2E);
    border: 1px solid rgba(107, 30, 46, 0.2);
}

/* Map / track surfaces stay readable */
body.mt-body--ss-theme .mt-map-shell,
body.mt-body--ss-theme .mt-map-sidebar {
    background: #ffffff !important;
    border-color: rgba(107, 30, 46, 0.12) !important;
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-map-load-item__btn {
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-badge-demo--live {
    background: rgba(42, 155, 143, 0.14) !important;
    border-color: rgba(42, 155, 143, 0.4) !important;
    color: var(--ss-teal-dark, #1F7A70) !important;
}

/* ─── Customer accounts wizard (kill dark futuristic step panels) ─── */
body.mt-body--ss-theme .mt-setup-flow-lead {
    color: #555555 !important;
}

body.mt-body--ss-theme .mt-setup-flow-overview {
    background: linear-gradient(180deg, #ffffff 0%, #F7F7F7 100%) !important;
    border: 1px solid rgba(107, 30, 46, 0.14) !important;
    box-shadow: 0 4px 16px rgba(26, 26, 26, 0.04) !important;
}

body.mt-body--ss-theme .mt-setup-flow-overview li {
    color: #555555 !important;
}

body.mt-body--ss-theme .mt-setup-flow-overview li::before {
    background: linear-gradient(160deg, var(--ss-burgundy-hover, #8B2A3D), var(--ss-burgundy, #6B1E2E)) !important;
    border: 2px solid rgba(107, 30, 46, 0.35) !important;
    box-shadow:
        0 0 0 3px rgba(107, 30, 46, 0.08),
        0 4px 12px rgba(107, 30, 46, 0.2) !important;
    color: #fff !important;
}

body.mt-body--ss-theme .mt-setup-step {
    background: #ffffff !important;
    border: 1px solid rgba(107, 30, 46, 0.12) !important;
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.05) !important;
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-setup-step__num {
    background: linear-gradient(160deg, var(--ss-burgundy-hover, #8B2A3D), var(--ss-burgundy, #6B1E2E)) !important;
    border: 2px solid rgba(107, 30, 46, 0.4) !important;
    box-shadow:
        0 0 0 4px rgba(107, 30, 46, 0.08),
        0 6px 16px rgba(107, 30, 46, 0.22) !important;
    color: #fff !important;
}

body.mt-body--ss-theme .mt-setup-step__num::after {
    border-color: rgba(107, 30, 46, 0.18) !important;
}

body.mt-body--ss-theme .mt-setup-step__kicker {
    color: var(--ss-burgundy, #6B1E2E) !important;
}

body.mt-body--ss-theme .mt-setup-step__title,
body.mt-body--ss-theme .mt-customer-access__title,
body.mt-body--ss-theme .mt-customer-selected__value,
body.mt-body--ss-theme .mt-staff-mcleod-aside__title {
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-setup-step__help,
body.mt-body--ss-theme .mt-user-roster-notes,
body.mt-body--ss-theme .mt-field__optional,
body.mt-body--ss-theme .mt-customer-selected__label,
body.mt-body--ss-theme .mt-customer-search-pick__meta {
    color: #555555 !important;
}

body.mt-body--ss-theme .mt-setup-step__do {
    background: var(--ss-burgundy-soft, #F5E8EB) !important;
    border-left: 3px solid var(--ss-burgundy, #6B1E2E) !important;
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-setup-step__do strong {
    color: var(--ss-burgundy, #6B1E2E) !important;
}

body.mt-body--ss-theme .mt-staff-mcleod-aside,
body.mt-body--ss-theme .mt-customer-search-list {
    background: #F7F7F7 !important;
    border: 1px solid rgba(107, 30, 46, 0.12) !important;
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-customer-search-item + .mt-customer-search-item {
    border-top-color: rgba(107, 30, 46, 0.1) !important;
}

body.mt-body--ss-theme .mt-customer-search-pick {
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-customer-search-pick:hover,
body.mt-body--ss-theme .mt-customer-search-pick:focus-visible {
    background: rgba(42, 155, 143, 0.1) !important;
}

body.mt-body--ss-theme .mt-customer-selected {
    background: rgba(42, 155, 143, 0.08) !important;
    border: 1px solid rgba(42, 155, 143, 0.35) !important;
}

body.mt-body--ss-theme .mt-customer-add-user summary,
body.mt-body--ss-theme .mt-user-roster-actions summary {
    color: var(--ss-burgundy, #6B1E2E) !important;
}

body.mt-body--ss-theme .mt-user-roster-actions__body {
    background: #F7F7F7 !important;
    border: 1px solid rgba(107, 30, 46, 0.12) !important;
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-customer-billto-suggestions {
    background: var(--ss-burgundy-soft, #F5E8EB) !important;
    border-color: rgba(107, 30, 46, 0.2) !important;
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-devkit-table th {
    color: var(--ss-burgundy, #6B1E2E) !important;
}

body.mt-body--ss-theme .mt-devkit-table td {
    color: #1A1A1A !important;
    border-bottom-color: #EEEEEE !important;
}

body.mt-body--ss-theme .mt-devkit-copy {
    background: var(--ss-burgundy-soft, #F5E8EB) !important;
    color: var(--ss-burgundy, #6B1E2E) !important;
    border-color: rgba(107, 30, 46, 0.18) !important;
}

body.mt-body--ss-theme .mt-scott-check {
    color: #1A1A1A !important;
}

body.mt-body--ss-theme .mt-scott-check input[type="checkbox"] {
    accent-color: var(--ss-teal, #2A9B8F);
}

/* Auth / portal login — same light SS card as admin chrome */
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-auth__card,
body.mt-body--ss-theme.mt-body--auth .mt-auth__card {
    background: #ffffff !important;
    border: 1px solid rgba(107, 30, 46, 0.12) !important;
    box-shadow: 0 18px 40px rgba(26, 26, 26, 0.08) !important;
    color: #1A1A1A !important;
}

body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-auth__eyebrow {
    color: var(--ss-burgundy, #6B1E2E) !important;
}

body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-auth__title,
body.mt-body--ss-theme.mt-body--auth .mt-auth__title {
    color: #1A1A1A !important;
    background: none !important;
    -webkit-text-fill-color: #1A1A1A !important;
}

body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-auth__subtitle,
body.mt-body.mt-body--futuristic.mt-body--ss-theme .mt-auth__hint {
    color: #555555 !important;
}

body.mt-body--ss-theme .mt-auth__aura {
    background: radial-gradient(circle at 50% 40%, rgba(107, 30, 46, 0.16), transparent 65%) !important;
}
