/* Portal identity themes — Operator / Driver / Shipper / Carrier
   Applied via [data-portal] on <html>. Keeps shared shell; swaps tokens + auth chrome.
   Light surface tokens are scoped to [data-theme="light"] so they never leak into dark. */

/* ─── Operator (admin): dense data — brand blue + orange ─── */
html[data-theme="light"][data-portal="operator"] {
    --color-primary: #0B2D5B;
    --color-secondary: #334155;
    --color-cta: #FF7A00;
    --color-accent: #1F6FD8;
    --color-teal: #1F6FD8;
    --color-background: #E9EEF4;
    --color-text: #0B2D5B;
    --brand-50: #E9EEF4;
    --brand-100: #D5DEE9;
    --brand-500: #1F6FD8;
    --brand-600: #FF7A00;
    --brand-700: #0B2D5B;
    --brand-800: #071D3B;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 0.875rem;

    --admin-bg: #E9EEF4;
    --admin-surface: #ffffff;
    --admin-surface-muted: #F3F6FA;
    --admin-surface-variant: #D5DEE9;
    --admin-primary: #FF7A00;
    --admin-primary-soft: #FFEFE0;
    --admin-text: #0B2D5B;
    --admin-muted: #475569;
    --admin-border: #D5DEE9;
    --admin-accent: #1F6FD8;
    --admin-accent-soft: #E4EEFA;
    --admin-radius: 0.75rem;
    --admin-radius-lg: 1rem;
    --admin-table-head-bg: #E4EEFA;
    --admin-table-head-text: #0B2D5B;
    --admin-shadow: 0 2px 12px rgba(31, 111, 216, 0.08);
    --admin-shadow-card: 0 1px 8px rgba(11, 45, 91, 0.05);
}

html[data-portal="operator"] {
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 0.875rem;
    --admin-radius: 0.75rem;
    --admin-radius-lg: 1rem;
}

html[data-portal="operator"] .admin-app .admin-content {
    padding: 1rem 1.25rem 1.75rem;
}

html[data-portal="operator"] .admin-stat-card {
    border-radius: var(--admin-radius);
    border-inline-start: 3px solid var(--admin-accent);
}

html[data-theme="light"][data-portal="operator"] .admin-nav-link.is-active {
    background: var(--admin-primary-soft);
    color: var(--admin-primary);
    box-shadow: inset -3px 0 0 var(--admin-accent);
}

html[data-portal="operator"] .admin-btn-primary {
    border-radius: var(--admin-radius);
}

/* ─── Driver: field ops — brand orange + navy ─── */
html[data-theme="light"][data-portal="driver"] {
    --color-primary: #0B2D5B;
    --color-secondary: #57534e;
    --color-cta: #FF7A00;
    --color-accent: #1F6FD8;
    --color-teal: #1F6FD8;
    --color-background: #FFF5EB;
    --color-text: #0B2D5B;
    --brand-50: #FFF5EB;
    --brand-100: #FFEFE0;
    --brand-500: #1F6FD8;
    --brand-600: #FF7A00;
    --brand-700: #0B2D5B;
    --brand-800: #071D3B;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;

    --admin-bg: #FFF5EB;
    --admin-surface: #ffffff;
    --admin-surface-muted: #FFF9F3;
    --admin-surface-variant: #FFEFE0;
    --admin-primary: #FF7A00;
    --admin-primary-soft: #FFEFE0;
    --admin-text: #0B2D5B;
    --admin-muted: #667085;
    --admin-border: #F5D5B8;
    --admin-accent: #1F6FD8;
    --admin-accent-soft: #E4EEFA;
    --admin-radius: 1.35rem;
    --admin-radius-lg: 1.6rem;
    --admin-table-head-bg: #FFEFE0;
    --admin-table-head-text: #0B2D5B;
    --admin-shadow: 0 8px 28px rgba(255, 122, 0, 0.12);
    --admin-shadow-card: 0 4px 18px rgba(11, 45, 91, 0.08);
}

html[data-portal="driver"] {
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;
    --admin-radius: 1.35rem;
    --admin-radius-lg: 1.6rem;
}

html[data-theme="light"][data-portal="driver"] .admin-sidebar {
    border-left-color: #FFB366;
    background:
        linear-gradient(180deg, #ffffff 0%, #FFF5EB 100%);
}

html[data-theme="light"][data-portal="driver"] .admin-nav-link.is-active {
    background: linear-gradient(90deg, #FFEFE0, #FFF5EB);
    color: #FF7A00;
    font-weight: 700;
}

html[data-portal="driver"] .admin-stat-card {
    border-radius: var(--admin-radius-lg);
    box-shadow: var(--admin-shadow-card);
}

html[data-portal="driver"] .admin-btn-primary {
    border-radius: 999px;
}

html[data-portal="driver"] .btn-brand,
html[data-portal="driver"] .btn-cta,
html[data-portal="driver"] .admin-app .btn-primary {
    background: var(--admin-primary);
    border-radius: 9999px;
}

html[data-portal="driver"] .btn-brand:hover,
html[data-portal="driver"] .btn-cta:hover {
    box-shadow: 0 10px 24px rgba(255, 122, 0, 0.32);
}

/* ─── Shipper: commerce — brand blue + navy ─── */
html[data-theme="light"][data-portal="shipper"] {
    --color-primary: #0B2D5B;
    --color-secondary: #475569;
    --color-cta: #1F6FD8;
    --color-accent: #FF7A00;
    --color-teal: #1F6FD8;
    --color-background: #E9EEF4;
    --color-text: #0B2D5B;
    --brand-50: #E9EEF4;
    --brand-100: #D5DEE9;
    --brand-500: #1F6FD8;
    --brand-600: #1F6FD8;
    --brand-700: #0B2D5B;
    --brand-800: #071D3B;
    --radius-md: 0.875rem;
    --radius-lg: 1.125rem;
    --radius-xl: 1.375rem;

    --admin-bg: #E9EEF4;
    --admin-surface: #ffffff;
    --admin-surface-muted: #F3F6FA;
    --admin-surface-variant: #E4EEFA;
    --admin-primary: #1F6FD8;
    --admin-primary-soft: #E4EEFA;
    --admin-text: #0B2D5B;
    --admin-muted: #667085;
    --admin-border: #D5DEE9;
    --admin-accent: #FF7A00;
    --admin-accent-soft: #FFEFE0;
    --admin-radius: 1.125rem;
    --admin-radius-lg: 1.375rem;
    --admin-table-head-bg: #E4EEFA;
    --admin-table-head-text: #0B2D5B;
    --admin-shadow: 0 6px 22px rgba(31, 111, 216, 0.1);
    --admin-shadow-card: 0 3px 14px rgba(11, 45, 91, 0.06);
}

html[data-portal="shipper"] {
    --radius-md: 0.875rem;
    --radius-lg: 1.125rem;
    --radius-xl: 1.375rem;
    --admin-radius: 1.125rem;
    --admin-radius-lg: 1.375rem;
}

html[data-theme="light"][data-portal="shipper"] .admin-sidebar {
    background:
        linear-gradient(165deg, #ffffff 0%, #E9EEF4 70%, #E4EEFA 140%);
    border-left-color: #D5DEE9;
}

html[data-theme="light"][data-portal="shipper"] .admin-nav-link.is-active {
    background: #E4EEFA;
    color: #1F6FD8;
}

html[data-portal="shipper"] .admin-stat-card {
    border: 1px solid var(--admin-border, #D5DEE9);
    border-radius: var(--admin-radius);
}

html[data-portal="shipper"] .btn-brand,
html[data-portal="shipper"] .btn-cta {
    background: linear-gradient(135deg, var(--admin-primary, #1F6FD8), #0B2D5B);
    border-radius: var(--radius-lg);
}

/* ─── Carrier: enterprise navy + orange CTA ─── */
html[data-theme="light"][data-portal="carrier"] {
    --color-primary: #0B2D5B;
    --color-secondary: #334155;
    --color-cta: #FF7A00;
    --color-accent: #1F6FD8;
    --color-teal: #1F6FD8;
    --color-background: #E9EEF4;
    --color-text: #071D3B;
    --brand-50: #E9EEF4;
    --brand-100: #D5DEE9;
    --brand-500: #1F6FD8;
    --brand-600: #FF7A00;
    --brand-700: #0B2D5B;
    --brand-800: #071D3B;
    --radius-md: 0.4rem;
    --radius-lg: 0.6rem;
    --radius-xl: 0.75rem;

    --admin-bg: #E9EEF4;
    --admin-surface: #ffffff;
    --admin-surface-muted: #F3F6FA;
    --admin-surface-variant: #D5DEE9;
    --admin-primary: #FF7A00;
    --admin-primary-soft: #FFEFE0;
    --admin-text: #071D3B;
    --admin-muted: #64748b;
    --admin-border: #D5DEE9;
    --admin-accent: #1F6FD8;
    --admin-accent-soft: #E4EEFA;
    --admin-radius: 0.6rem;
    --admin-radius-lg: 0.85rem;
    --admin-table-head-bg: #0B2D5B;
    --admin-table-head-text: #f8fafc;
    --admin-shadow: 0 4px 18px rgba(11, 45, 91, 0.12);
    --admin-shadow-card: 0 2px 10px rgba(11, 45, 91, 0.08);
    --admin-sidebar-w: 16.5rem;
}

html[data-portal="carrier"] {
    --radius-md: 0.4rem;
    --radius-lg: 0.6rem;
    --radius-xl: 0.75rem;
    --admin-radius: 0.6rem;
    --admin-radius-lg: 0.85rem;
    --admin-sidebar-w: 16.5rem;
}

/* Carrier sidebar is intentionally navy in both themes */
html[data-portal="carrier"] .admin-sidebar {
    background: linear-gradient(180deg, #0B2D5B 0%, #071D3B 100%);
    border-left: none;
    box-shadow: -6px 0 24px rgba(7, 29, 59, 0.25);
    color: #e2e8f0;
}

html[data-portal="carrier"] .admin-sidebar__brand {
    border-bottom-color: rgba(148, 163, 184, 0.25);
}

html[data-portal="carrier"] .admin-sidebar__brand h2,
html[data-portal="carrier"] .admin-sidebar__brand p {
    color: #f8fafc;
}

html[data-portal="carrier"] .admin-sidebar__brand p {
    color: #94a3b8;
}

html[data-portal="carrier"] .admin-nav-link {
    color: #cbd5e1;
}

html[data-portal="carrier"] .admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

html[data-portal="carrier"] .admin-nav-link.is-active {
    background: rgba(255, 122, 0, 0.22);
    color: #FFB347;
    font-weight: 700;
}

html[data-portal="carrier"] .admin-sidebar__close {
    color: #e2e8f0;
}

html[data-portal="carrier"] .admin-sidebar__section-title {
    color: #94a3b8;
}

html[data-portal="carrier"] .admin-nav-group__toggle {
    color: #94a3b8;
}

html[data-portal="carrier"] .admin-nav-group__toggle:hover,
html[data-portal="carrier"] .admin-nav-group.is-active > .admin-nav-group__toggle {
    background: rgba(255, 255, 255, 0.08);
    color: #5eead4;
}

html[data-portal="carrier"] .admin-stat-card {
    border-radius: var(--admin-radius);
    border-top: 3px solid var(--admin-primary);
}

html[data-portal="carrier"] .btn-brand,
html[data-portal="carrier"] .btn-cta {
    background: var(--admin-primary);
    border-radius: var(--radius-md);
}

html[data-portal="carrier"] .admin-btn-primary {
    border-radius: var(--admin-radius);
}

/* ─── Auth shells per portal ─── */
html[data-portal="operator"] .auth-shell {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 122, 0, 0.14), transparent 38%),
        radial-gradient(circle at 88% 78%, rgba(31, 111, 216, 0.14), transparent 42%),
        linear-gradient(155deg, #E9EEF4 0%, #D5DEE9 100%);
}

html[data-portal="operator"] .auth-shell__brand {
    background: linear-gradient(150deg, #071D3B 0%, #0B2D5B 48%, #1F6FD8 100%);
}

html[data-portal="operator"] .auth-trust-list li::before {
    background: #FF7A00;
}

html[data-portal="operator"] .auth-shell__frame {
    border-radius: 0.75rem;
}

html[data-portal="driver"] .auth-shell {
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 122, 0, 0.22), transparent 36%),
        radial-gradient(circle at 10% 90%, rgba(31, 111, 216, 0.12), transparent 40%),
        linear-gradient(165deg, #FFF5EB 0%, #FFEFE0 55%, #FFD7A8 100%);
}

html[data-portal="driver"] .auth-shell__brand {
    background: linear-gradient(145deg, #0B2D5B 0%, #FF7A00 55%, #FFB347 100%);
}

html[data-portal="driver"] .auth-trust-list li::before {
    background: #1F6FD8;
}

html[data-portal="driver"] .auth-shell__frame {
    border-radius: 1.75rem;
    border-color: #FFB366;
}

html[data-portal="driver"] .auth-shell__form {
    background: #fffdfb;
}

html[data-portal="driver"] .auth-shell__frame--swap {
    direction: rtl;
}

@media (min-width: 768px) {
    html[data-portal="driver"] .auth-shell__frame--swap {
        grid-template-columns: 1fr 1.05fr;
    }

    html[data-portal="driver"] .auth-shell__frame--swap .auth-shell__form {
        order: -1;
    }
}

html[data-portal="shipper"] .auth-shell {
    background:
        radial-gradient(circle at 20% 30%, rgba(31, 111, 216, 0.18), transparent 40%),
        radial-gradient(circle at 90% 70%, rgba(255, 122, 0, 0.1), transparent 38%),
        linear-gradient(160deg, #E9EEF4 0%, #E4EEFA 100%);
}

html[data-portal="shipper"] .auth-shell__brand {
    background: linear-gradient(155deg, #071D3B 0%, #0B2D5B 45%, #1F6FD8 100%);
}

html[data-portal="shipper"] .auth-trust-list li::before {
    background: #FF7A00;
}

html[data-portal="shipper"] .auth-shell__frame {
    border-radius: 1.25rem;
    border-color: #D5DEE9;
}

html[data-portal="carrier"] .auth-shell {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 122, 0, 0.14), transparent 40%),
        linear-gradient(160deg, #0B2D5B 0%, #123A6E 45%, #1F6FD8 100%);
}

html[data-portal="carrier"] .auth-shell__brand {
    background: linear-gradient(160deg, #071D3B 0%, #0B2D5B 55%, #FF7A00 100%);
}

html[data-portal="carrier"] .auth-trust-list li::before {
    background: #FF7A00;
}

html[data-portal="carrier"] .auth-shell__frame {
    border-radius: 0.5rem;
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
}

html[data-portal="carrier"] .auth-shell__form {
    background: #f8fafc;
}

html[data-portal="carrier"] .auth-shell__form-title {
    color: #0B2D5B;
}

/* Portal badge on auth form */
.auth-portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.auth-portal-badge--operator {
    background: #E4EEFA;
    color: #0B2D5B;
    border: 1px solid #1F6FD8;
}

.auth-portal-badge--driver {
    background: #FFEFE0;
    color: #FF7A00;
    border: 1px solid #FFB366;
}

.auth-portal-badge--shipper {
    background: #E4EEFA;
    color: #1F6FD8;
    border: 1px solid #7EB0F0;
}

.auth-portal-badge--carrier {
    background: #D5DEE9;
    color: #0B2D5B;
    border: 1px solid #94a3b8;
}

/* Auth shells always keep light portal identity (ignore dark html tokens) */
html[data-portal="operator"] .auth-shell,
.auth-shell--operator {
    --color-primary: #0B2D5B;
    --color-cta: #FF7A00;
    --color-accent: #1F6FD8;
    --color-text: #0B2D5B;
    --color-secondary: #334155;
    --brand-50: #E9EEF4;
    --brand-100: #D5DEE9;
    --brand-500: #1F6FD8;
    --brand-600: #FF7A00;
}

html[data-portal="operator"] .auth-shell .auth-shell__form-title,
.auth-shell--operator .auth-shell__form-title {
    color: #0B2D5B;
}

html[data-portal="driver"] .auth-shell,
.auth-shell--driver {
    --color-primary: #0B2D5B;
    --color-cta: #FF7A00;
    --color-accent: #1F6FD8;
    --color-text: #0B2D5B;
    --color-secondary: #57534e;
    --brand-50: #FFF5EB;
    --brand-100: #FFEFE0;
    --brand-500: #1F6FD8;
    --brand-600: #FF7A00;
}

html[data-portal="driver"] .auth-shell .auth-shell__form-title,
.auth-shell--driver .auth-shell__form-title {
    color: #0B2D5B;
}

html[data-portal="shipper"] .auth-shell,
.auth-shell--shipper {
    --color-primary: #0B2D5B;
    --color-cta: #1F6FD8;
    --color-accent: #FF7A00;
    --color-text: #0B2D5B;
    --color-secondary: #475569;
    --brand-50: #E9EEF4;
    --brand-100: #D5DEE9;
    --brand-500: #1F6FD8;
    --brand-600: #1F6FD8;
}

html[data-portal="shipper"] .auth-shell .auth-shell__form-title,
.auth-shell--shipper .auth-shell__form-title {
    color: #0B2D5B;
}

html[data-portal="carrier"] .auth-shell,
.auth-shell--carrier {
    --color-primary: #0B2D5B;
    --color-cta: #FF7A00;
    --color-accent: #1F6FD8;
    --color-text: #071D3B;
    --color-secondary: #334155;
    --brand-50: #E9EEF4;
    --brand-100: #D5DEE9;
    --brand-500: #1F6FD8;
    --brand-600: #FF7A00;
}

html[data-portal="carrier"] .auth-shell .auth-shell__form-title,
.auth-shell--carrier .auth-shell__form-title {
    color: #0B2D5B;
}

/* Registration identity */
html[data-portal="driver"] .registration-page__title,
html[data-portal="driver"] body.landing-page .registration-page__title {
    color: #FF7A00;
}

.registration-page[data-portal="driver"] .registration-page__title,
html[data-portal="driver"] .registration-page__title {
    color: #FF7A00;
}

html[data-portal="shipper"] .registration-page__title {
    color: #1F6FD8;
}

html[data-portal="carrier"] .registration-page__title {
    color: #0B2D5B;
}

html[data-portal="driver"] .registration-form__section-title {
    color: #FF7A00;
    border-inline-start: 3px solid #FF7A00;
    padding-inline-start: 0.75rem;
}

html[data-portal="shipper"] .registration-form__section-title {
    color: #1F6FD8;
    border-inline-start: 3px solid #1F6FD8;
    padding-inline-start: 0.75rem;
}

html[data-portal="carrier"] .registration-form__section-title {
    color: #0B2D5B;
    border-inline-start: 3px solid #FF7A00;
    padding-inline-start: 0.75rem;
}

.registration-card__icon--shipper {
    background: #E4EEFA;
    color: #1F6FD8;
}

.registration-card__icon--driver {
    background: #FFEFE0;
    color: #FF7A00;
}

.registration-card__icon--carrier {
    background: #D5DEE9;
    color: #0B2D5B;
}

.registration-card--shipper:hover {
    border-color: #1F6FD8;
}

.registration-card--driver:hover {
    border-color: #FF7A00;
}

.registration-card--carrier:hover {
    border-color: #0B2D5B;
}

/* ─── Dark mode — full portal tokens (no light-surface leak) ─── */
html[data-theme="dark"][data-portal="operator"] {
    --color-primary: #93c5fd;
    --color-cta: #60a5fa;
    --color-accent: #fbbf24;
    --color-background: #0f172a;
    --color-text: #f1f5f9;
    --brand-50: #1e3a5f;
    --brand-100: #1e3a5f;
    --brand-500: #60a5fa;
    --brand-600: #93c5fd;
    --brand-700: #bfdbfe;
    --brand-800: #e2e8f0;

    --admin-bg: #0f172a;
    --admin-surface: #1e293b;
    --admin-surface-muted: #273449;
    --admin-surface-variant: #334155;
    --admin-primary: #60a5fa;
    --admin-primary-soft: #1e3a5f;
    --admin-text: #f1f5f9;
    --admin-muted: #94a3b8;
    --admin-border: #334155;
    --admin-accent: #fbbf24;
    --admin-accent-soft: #422006;
    --admin-table-head-bg: #334155;
    --admin-table-head-text: #f1f5f9;
    --admin-table-row-hover: #273449;
    --admin-table-divider: #334155;
    --admin-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    --admin-shadow-card: 0 1px 8px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"][data-portal="operator"] .admin-nav-link.is-active {
    background: var(--admin-primary-soft);
    color: var(--admin-primary);
    box-shadow: inset -3px 0 0 var(--admin-accent);
}

html[data-theme="dark"][data-portal="driver"] {
    --color-primary: #fdba74;
    --color-cta: #fb923c;
    --color-accent: #93c5fd;
    --color-background: #1c1010;
    --color-text: #fff7ed;
    --brand-50: #431407;
    --brand-100: #7c2d12;
    --brand-500: #fb923c;
    --brand-600: #fdba74;
    --brand-700: #fed7aa;
    --brand-800: #ffedd5;

    --admin-bg: #1c1010;
    --admin-surface: #2a1810;
    --admin-surface-muted: #3b2114;
    --admin-surface-variant: #431407;
    --admin-primary: #fb923c;
    --admin-primary-soft: #431407;
    --admin-text: #fff7ed;
    --admin-muted: #a8a29e;
    --admin-border: #7c2d12;
    --admin-accent: #93c5fd;
    --admin-accent-soft: #1e3a5f;
    --admin-table-head-bg: #3b2114;
    --admin-table-head-text: #ffedd5;
    --admin-table-row-hover: #3b2114;
    --admin-table-divider: #7c2d12;
    --admin-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    --admin-shadow-card: 0 4px 18px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"][data-portal="driver"] .admin-sidebar {
    border-left-color: #7c2d12;
    background: linear-gradient(180deg, #2a1810 0%, #1c1010 100%);
    color: #fff7ed;
}

html[data-theme="dark"][data-portal="driver"] .admin-nav-link.is-active {
    background: linear-gradient(90deg, #431407, #2a1810);
    color: #fdba74;
    font-weight: 700;
}

html[data-theme="dark"][data-portal="shipper"] {
    --color-primary: #7EB0F0;
    --color-cta: #7EB0F0;
    --color-accent: #FFB347;
    --color-background: #071D3B;
    --color-text: #f1f5f9;
    --brand-50: #0F2748;
    --brand-100: #1A3558;
    --brand-500: #7EB0F0;
    --brand-600: #FFB347;
    --brand-700: #E4EEFA;
    --brand-800: #f8fafc;

    --admin-bg: #071D3B;
    --admin-surface: #0F2748;
    --admin-surface-muted: #1A3558;
    --admin-surface-variant: #1A3558;
    --admin-primary: #7EB0F0;
    --admin-primary-soft: #143A6B;
    --admin-text: #f1f5f9;
    --admin-muted: #94a3b8;
    --admin-border: #1A3558;
    --admin-accent: #FFB347;
    --admin-accent-soft: #7A3A00;
    --admin-table-head-bg: #0F2748;
    --admin-table-head-text: #E4EEFA;
    --admin-table-row-hover: #0F2748;
    --admin-table-divider: #1A3558;
    --admin-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    --admin-shadow-card: 0 3px 14px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"][data-portal="shipper"] .admin-sidebar {
    background: linear-gradient(165deg, #0F2748 0%, #071D3B 100%);
    border-left-color: #1A3558;
    color: #f1f5f9;
}

html[data-theme="dark"][data-portal="shipper"] .admin-nav-link.is-active {
    background: #143A6B;
    color: #7EB0F0;
    font-weight: 700;
}

html[data-theme="dark"][data-portal="carrier"] {
    --color-primary: #e2e8f0;
    --color-cta: #FFB347;
    --color-accent: #7EB0F0;
    --color-background: #020B18;
    --color-text: #f1f5f9;
    --brand-50: #0f172a;
    --brand-100: #1e293b;
    --brand-500: #7EB0F0;
    --brand-600: #FFB347;
    --brand-700: #f1f5f9;
    --brand-800: #f8fafc;

    --admin-bg: #020B18;
    --admin-surface: #071D3B;
    --admin-surface-muted: #0F2748;
    --admin-surface-variant: #1A3558;
    --admin-primary: #FFB347;
    --admin-primary-soft: #7A3A00;
    --admin-text: #f1f5f9;
    --admin-muted: #94a3b8;
    --admin-border: #1e293b;
    --admin-accent: #7EB0F0;
    --admin-accent-soft: #143A6B;
    --admin-table-head-bg: #0B2D5B;
    --admin-table-head-text: #f8fafc;
    --admin-table-row-hover: #0F2748;
    --admin-table-divider: #1e293b;
    --admin-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    --admin-shadow-card: 0 2px 10px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"][data-portal="carrier"] .admin-sidebar {
    background: linear-gradient(180deg, #020B18 0%, #0B2D5B 100%);
}

@media (prefers-reduced-motion: reduce) {
    html[data-portal] .btn-brand,
    html[data-portal] .btn-cta,
    html[data-portal] .admin-stat-card,
    html[data-portal] .registration-card {
        transition: none;
    }
}
