.mc-portal-theme{min-height:100vh;background:var(--mc-portal-canvas,var(--bg));color:var(--mc-portal-text,var(--ink));color-scheme:light}.mc-portal-theme[data-mc-theme=dark]{--mc-portal-canvas:#071b30;--mc-portal-surface:#0b2945;--mc-portal-input:#102f4e;--mc-portal-text:#f7f5f2;--mc-portal-muted:#c2d4e1;--mc-portal-border:#70899c;--mc-portal-link:#7fd6ed;--mc-portal-focus:#24c7f2;--mc-portal-selected-bg:#133f5a;--mc-portal-selected-border:#7fd6ed;--mc-portal-primary-bg:#24c7f2;--mc-portal-primary-text:#071b30;--mc-portal-status-bg:#12364b;--mc-portal-status-border:#7fd6ed;--mc-portal-warning-bg:#3b2b12;--mc-portal-warning-text:#ffe5b8;--mc-portal-warning-border:#ffb75e;--mc-portal-error-bg:#411b28;--mc-portal-error-text:#ffd5df;--mc-portal-error-border:#ff8eab;--mc-portal-success-bg:#12392e;--mc-portal-success-text:#bdebd9;--mc-portal-success-border:#77c9ac;--mc-portal-info-bg:#0e3452;--mc-portal-info-text:#c5eafe;--mc-portal-info-border:#77c8ec;--mc-portal-setup-bg:#2f2549;--mc-portal-setup-text:#e3d4ff;--mc-portal-setup-border:#bba4df;--mc-portal-shadow-color:#00000040;--ink:var(--mc-portal-text);--muted:var(--mc-portal-muted);--line:var(--mc-portal-border);--bg:var(--mc-portal-canvas);color-scheme:dark}@media (prefers-color-scheme:dark){.mc-portal-theme[data-mc-theme=system]{--mc-portal-canvas:#071b30;--mc-portal-surface:#0b2945;--mc-portal-input:#102f4e;--mc-portal-text:#f7f5f2;--mc-portal-muted:#c2d4e1;--mc-portal-border:#70899c;--mc-portal-link:#7fd6ed;--mc-portal-focus:#24c7f2;--mc-portal-selected-bg:#133f5a;--mc-portal-selected-border:#7fd6ed;--mc-portal-primary-bg:#24c7f2;--mc-portal-primary-text:#071b30;--mc-portal-status-bg:#12364b;--mc-portal-status-border:#7fd6ed;--mc-portal-warning-bg:#3b2b12;--mc-portal-warning-text:#ffe5b8;--mc-portal-warning-border:#ffb75e;--mc-portal-error-bg:#411b28;--mc-portal-error-text:#ffd5df;--mc-portal-error-border:#ff8eab;--mc-portal-success-bg:#12392e;--mc-portal-success-text:#bdebd9;--mc-portal-success-border:#77c9ac;--mc-portal-info-bg:#0e3452;--mc-portal-info-text:#c5eafe;--mc-portal-info-border:#77c8ec;--mc-portal-setup-bg:#2f2549;--mc-portal-setup-text:#e3d4ff;--mc-portal-setup-border:#bba4df;--mc-portal-shadow-color:#00000040;--ink:var(--mc-portal-text);--muted:var(--mc-portal-muted);--line:var(--mc-portal-border);--bg:var(--mc-portal-canvas);color-scheme:dark}}.mc-portal-theme .portal-theme-control{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.mc-portal-theme .identity-welcome{flex-wrap:wrap}.mc-portal-theme .portal-theme-control label{color:var(--mc-portal-text,var(--navy));font-size:.85rem;font-weight:650}.mc-portal-theme .portal-theme-control select{min-height:44px;max-width:100%;padding:.55rem .75rem;border:1px solid var(--mc-portal-border,#64748b);border-radius:8px;background:var(--mc-portal-input,#fff);color:var(--mc-portal-text,var(--navy));font:inherit}.mc-portal-theme .portal-theme-control select:focus-visible{outline:3px solid var(--mc-portal-focus,#006d91);outline-offset:3px}.mc-portal-theme[data-mc-theme=dark] .identity-welcome{color:var(--mc-portal-text,var(--navy))}.mc-portal-theme[data-mc-theme=dark] :is(.command-head h1,.kpi-value,.panel-head h2,.detail-card h2,.settings-card h2,.command-recovery-card h1){color:var(--mc-portal-text,var(--navy))}.mc-portal-theme[data-mc-theme=dark] :is(.panel,.kpi-card,.filter-bar,.lead-table-wrap,.detail-card,.settings-card,.inventory-card,.command-recovery-card,.date-chip){background:var(--mc-portal-surface,#fff)}.mc-portal-theme[data-mc-theme=dark] .kpi-card small{color:var(--mc-portal-success-text)}.mc-portal-theme[data-mc-theme=dark] :is(.filter-bar input,.filter-bar select,.status-select,.notes-area,.field input,.field select,.field textarea){background:var(--mc-portal-input,#fff);color:var(--mc-portal-text,var(--ink));border-color:var(--mc-portal-border,var(--line))}.mc-portal-theme[data-mc-theme=dark] :is(.btn-outline,.btn-light){background:var(--mc-portal-input,#fff);color:var(--mc-portal-text,var(--navy))}.mc-portal-theme[data-mc-theme=dark] .btn-blue{background:var(--mc-portal-primary-bg,var(--blue));color:var(--mc-portal-primary-text,#fff)}.mc-portal-theme[data-mc-theme=dark] .btn-danger{background:var(--mc-portal-error-bg,#fff6f6);color:var(--mc-portal-error-text,var(--red));border-color:var(--mc-portal-error-border,#eac3c3)}.mc-portal-theme[data-mc-theme=dark] :is(.panel-head a,.back-link){color:var(--mc-portal-link,var(--blue))}.mc-portal-theme[data-mc-theme=dark] .lead-table th{background:var(--mc-portal-input,#f8fafb)}.mc-portal-theme[data-mc-theme=dark] .lead-table tbody tr:hover{background:var(--mc-portal-selected-bg,#fbfcfd)}.mc-portal-theme[data-mc-theme=dark] .lead-avatar{background:var(--mc-portal-selected-bg,#e9eff5);color:var(--mc-portal-text,var(--navy))}.mc-portal-theme[data-mc-theme=dark] .status{background:var(--mc-portal-status-bg,#edf2f7);color:var(--mc-portal-muted,#526273)}.mc-portal-theme[data-mc-theme=dark] .status.new{background:var(--mc-portal-info-bg,#eaf2ff);color:var(--mc-portal-info-text,var(--blue))}.mc-portal-theme[data-mc-theme=dark] .status.completed-sale{background:var(--mc-portal-success-bg,#e7f7f0);color:var(--mc-portal-success-text,var(--green))}.mc-portal-theme[data-mc-theme=dark] :is(.status.quote-sent,.status.payment-options-link-sent){background:var(--mc-portal-warning-bg,#fff3e9);color:var(--mc-portal-warning-text,#bf5e19)}.mc-portal-theme[data-mc-theme=dark] .integration-note{background:var(--mc-portal-status-bg,#f2f6fc);color:var(--mc-portal-muted,var(--muted))}.mc-portal-theme[data-mc-theme=dark] .error-text{color:var(--mc-portal-error-text,var(--red))}@media (prefers-color-scheme:dark){.mc-portal-theme[data-mc-theme=system] .identity-welcome{color:var(--mc-portal-text,var(--navy))}.mc-portal-theme[data-mc-theme=system] :is(.command-head h1,.kpi-value,.panel-head h2,.detail-card h2,.settings-card h2,.command-recovery-card h1){color:var(--mc-portal-text,var(--navy))}.mc-portal-theme[data-mc-theme=system] :is(.panel,.kpi-card,.filter-bar,.lead-table-wrap,.detail-card,.settings-card,.inventory-card,.command-recovery-card,.date-chip){background:var(--mc-portal-surface,#fff)}.mc-portal-theme[data-mc-theme=system] .kpi-card small{color:var(--mc-portal-success-text)}.mc-portal-theme[data-mc-theme=system] :is(.filter-bar input,.filter-bar select,.status-select,.notes-area,.field input,.field select,.field textarea){background:var(--mc-portal-input,#fff);color:var(--mc-portal-text,var(--ink));border-color:var(--mc-portal-border,var(--line))}.mc-portal-theme[data-mc-theme=system] :is(.btn-outline,.btn-light){background:var(--mc-portal-input,#fff);color:var(--mc-portal-text,var(--navy))}.mc-portal-theme[data-mc-theme=system] .btn-blue{background:var(--mc-portal-primary-bg,var(--blue));color:var(--mc-portal-primary-text,#fff)}.mc-portal-theme[data-mc-theme=system] .btn-danger{background:var(--mc-portal-error-bg,#fff6f6);color:var(--mc-portal-error-text,var(--red));border-color:var(--mc-portal-error-border,#eac3c3)}.mc-portal-theme[data-mc-theme=system] :is(.panel-head a,.back-link){color:var(--mc-portal-link,var(--blue))}.mc-portal-theme[data-mc-theme=system] .lead-table th{background:var(--mc-portal-input,#f8fafb)}.mc-portal-theme[data-mc-theme=system] .lead-table tbody tr:hover{background:var(--mc-portal-selected-bg,#fbfcfd)}.mc-portal-theme[data-mc-theme=system] .lead-avatar{background:var(--mc-portal-selected-bg,#e9eff5);color:var(--mc-portal-text,var(--navy))}.mc-portal-theme[data-mc-theme=system] .status{background:var(--mc-portal-status-bg,#edf2f7);color:var(--mc-portal-muted,#526273)}.mc-portal-theme[data-mc-theme=system] .status.new{background:var(--mc-portal-info-bg,#eaf2ff);color:var(--mc-portal-info-text,var(--blue))}.mc-portal-theme[data-mc-theme=system] .status.completed-sale{background:var(--mc-portal-success-bg,#e7f7f0);color:var(--mc-portal-success-text,var(--green))}.mc-portal-theme[data-mc-theme=system] :is(.status.quote-sent,.status.payment-options-link-sent){background:var(--mc-portal-warning-bg,#fff3e9);color:var(--mc-portal-warning-text,#bf5e19)}.mc-portal-theme[data-mc-theme=system] .integration-note{background:var(--mc-portal-status-bg,#f2f6fc);color:var(--mc-portal-muted,var(--muted))}.mc-portal-theme[data-mc-theme=system] .error-text{color:var(--mc-portal-error-text,var(--red))}}@media (max-width:760px){.mc-portal-theme .identity-welcome>.portal-theme-control{grid-column:1/-1;margin-top:.5rem}}