/* Customer-only tokens and controls; no dependency on admin theme overrides. */
:is(.customer-portal-page,.customer-auth-page){--canvas:#f3f5f6;--surface:#fff;--ink:#28383d;--muted:#596e76;--rule:#dce4e7;--soft:#f0f4f5;--primary:#286d65;--primary-hover:#20584f;--tint:#e8f3ef;--good:#176b4b;--good-bg:#e7f5ed;--bad:#b03746;--bad-bg:#fff0f1;--warning:#856018;--warning-bg:#fff6de;--vip:#73518c;--vip-bg:#f4edf8;--cs-primary:var(--primary);--cs-ink:var(--ink);--cs-muted:var(--muted);--cs-line:var(--rule);--cs-surface:var(--surface);--cs-soft:var(--soft);--customer-primary:var(--primary);--customer-text:var(--ink);--customer-muted:var(--muted);--customer-border:var(--rule);background:var(--canvas);color:var(--ink);font:15px/1.8 Vazirmatn,Tahoma,sans-serif;letter-spacing:0}
[data-theme=dark] :is(.customer-portal-page,.customer-auth-page){--canvas:#242b2e;--surface:#2e373b;--ink:#edf2f3;--muted:#b6c7cc;--rule:#48565c;--soft:#364247;--primary:#9bd6c6;--primary-hover:#b4e4d8;--tint:#354e47;--good:#9cddba;--good-bg:#294a3a;--bad:#ffadb7;--bad-bg:#53363d;--warning:#efd39b;--warning-bg:#4d4432;--vip:#ddc4ee;--vip-bg:#493c54}
:is(.customer-portal-page,.customer-auth-page) [hidden]{display:none!important}
:is(.customer-portal-page,.customer-auth-page) :is(button,input,select,textarea){font:inherit;letter-spacing:0}
:is(.customer-portal-page,.customer-auth-page) .lucide{width:18px;height:18px;stroke-width:1.7;flex-shrink:0}
:is(.customer-portal-page,.customer-auth-page) :is(a,button,input,textarea,select,summary):focus-visible{outline:2px solid var(--primary);outline-offset:3px}
:is(.customer-portal-page,.customer-auth-page) :is(p,dd,strong,span){overflow-wrap:anywhere}
:is(.customer-portal-page,.customer-auth-page) [dir=ltr]{font-family:Inter,Vazirmatn,sans-serif;font-variant-numeric:tabular-nums}
.customer-portal-page .customer-skip-link{position:fixed;top:8px;right:12px;z-index:150;padding:8px 14px;background:var(--surface);border:2px solid var(--primary);transform:translateY(-150%);border-radius:5px}
.customer-portal-page .customer-skip-link:focus{transform:none}
.customer-portal-page .customer-sidebar{width:248px;position:fixed;inset:0 0 0 auto;height:100dvh;padding:0;background:var(--surface);border-left:1px solid var(--rule);display:flex;flex-direction:column;z-index:80;transition:transform .2s,visibility .2s}
.customer-portal-page .customer-sidebar-brand{min-height:76px;padding:14px;gap:8px;border-bottom:1px solid var(--rule)}
.customer-portal-page .customer-brand{display:flex;align-items:center;flex:1;gap:9px;min-width:0}
.customer-portal-page .customer-brand-mark{width:30px;height:34px;flex-basis:30px;display:grid;place-items:center;background:transparent;color:var(--primary);border:0;border-radius:0}
.customer-portal-page .customer-brand strong{font-size:13px;font-weight:650;white-space:normal;line-height:1.6;letter-spacing:0}
.customer-portal-page .customer-brand small{font-size:11px;color:var(--muted);display:block;white-space:normal}
.customer-portal-page .customer-sidebar-nav{flex:1;display:flex;flex-direction:column;gap:5px;padding:20px 12px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin}
.customer-portal-page .customer-nav-label{font-size:12px;color:var(--muted);padding:0 11px 10px;letter-spacing:0}
.customer-portal-page .customer-sidebar-nav a{display:flex;align-items:center;gap:11px;min-height:44px;padding:9px 12px;border-radius:6px;color:var(--muted);font-size:14px;font-weight:450;transition:background .15s,color .15s}
.customer-portal-page .customer-sidebar-nav a:hover{background:var(--soft);color:var(--ink)}
.customer-portal-page .customer-sidebar-nav a.is-active{background:var(--tint);color:var(--primary);font-weight:650}
.customer-portal-page .customer-sidebar-nav a small{margin-inline-start:auto;background:var(--soft);color:var(--ink);padding:1px 6px;border-radius:4px;font-size:11px}
.customer-portal-page .customer-nav-live-dot{display:none}
.customer-portal-page .customer-sidebar-bottom{margin-top:auto;padding:12px;border-top:1px solid var(--rule);gap:10px}
.customer-portal-page .customer-theme-switch{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;background:var(--soft);border-radius:6px}
.customer-portal-page .customer-theme-switch button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:5px;border:1px solid transparent;border-radius:4px;color:var(--muted);background:transparent;font-size:12px}
.customer-portal-page .customer-theme-switch button.is-active{background:var(--surface);color:var(--ink);border-color:var(--rule)}
.customer-portal-page .customer-account-trigger{display:flex;align-items:center;gap:9px;width:100%;padding:9px 5px;text-align:right;background:transparent;border:0;border-radius:5px;color:var(--ink)}
.customer-portal-page .customer-account-trigger:hover{background:var(--soft)}
.customer-portal-page .customer-account-trigger>span:nth-child(2){flex:1;min-width:0}
.customer-portal-page .customer-account-trigger strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}
.customer-portal-page .customer-account-trigger small{display:block;color:var(--muted);font-size:11px}
.customer-portal-page .customer-account-avatar{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:6px;background:var(--tint);color:var(--primary);font-size:13px;font-weight:650}
.customer-portal-page .customer-account-popover{position:absolute;right:0;left:0;bottom:calc(100% + 8px);padding:10px;background:var(--surface);border:1px solid var(--rule);border-radius:6px;box-shadow:0 8px 24px #15262e22;max-height:60dvh;overflow:auto;z-index:90}
.customer-portal-page .customer-account-popover-head{display:flex;gap:9px;align-items:center;padding:5px 0 12px}
.customer-portal-page .customer-account-popover-head strong{display:block;font-size:13px}
.customer-portal-page .customer-account-popover-head small{display:block;font-size:11px;color:var(--muted)}
.customer-portal-page .customer-account-popover dl{font-size:11px;margin:8px 0;border-top:1px solid var(--rule)}
.customer-portal-page .customer-account-popover dl>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px;padding:9px 0;border-bottom:1px solid var(--rule)}
.customer-portal-page .customer-account-popover dd{margin:0;max-width:100%;overflow-wrap:anywhere}
.customer-portal-page .customer-account-link,.customer-portal-page .customer-account-popover button{display:flex;gap:9px;align-items:center;width:100%;background:transparent;border:0;padding:8px;font-size:13px;border-radius:4px}
.customer-portal-page .customer-account-popover button{color:var(--bad)}
.customer-portal-page .customer-account-popover :is(a,button):hover{background:var(--soft)}
.customer-portal-page .customer-app-shell{margin-right:248px;min-width:0;min-height:100dvh;transition:margin-right .2s}
.customer-portal-page .customer-topbar{min-height:76px;height:auto;padding:12px 28px;background:var(--surface);border-bottom:1px solid var(--rule);gap:12px}
.customer-portal-page .customer-topbar-title{gap:12px;min-width:0}
.customer-portal-page .customer-topbar-title strong{font-size:15px;font-weight:600}
.customer-portal-page .customer-topbar-title small{font-size:11px;color:var(--muted)}
.customer-portal-page .customer-topbar-meta{font-size:12px;color:var(--muted);gap:12px;flex-shrink:0}
.customer-portal-page .customer-topbar-meta time{font-size:12px;min-width:69px;padding:3px 6px;border-radius:4px;background:var(--soft);color:var(--ink);text-align:center}
.customer-portal-page .customer-secure-state{display:none}
.customer-portal-page .customer-app-shell .customer-main{padding:28px;min-width:0;width:100%;max-width:none;flex:1;margin:0}
.customer-portal-page .customer-page-heading{padding:0;min-height:0;margin:0 0 26px;align-items:center;gap:16px;flex-direction:row;flex-wrap:wrap}
.customer-portal-page .customer-page-heading h1{font-size:24px;line-height:1.7;font-weight:650}
.customer-portal-page .customer-page-heading p{font-size:13px;color:var(--muted);margin:5px 0 0}
.customer-portal-page .customer-eyebrow{display:none}
.customer-portal-page .customer-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-bottom:26px;border-block:1px solid var(--rule)}
.customer-portal-page .customer-stat-card{padding:20px 16px;min-height:108px;display:flex;align-items:center;gap:12px;background:transparent;border:0;border-inline-end:1px solid var(--rule);border-radius:0;box-shadow:none}
.customer-portal-page .customer-stat-card:last-child{border-inline-end:0}
.customer-portal-page .customer-stat-icon{width:32px;height:32px;flex:0 0 32px;background:transparent;color:var(--muted)}
.customer-portal-page .customer-stat-card small{font-size:12px;line-height:1.9;color:var(--muted)}
.customer-portal-page .customer-stat-card strong{display:block;font-size:26px;font-weight:650;white-space:nowrap;line-height:1.5;overflow-wrap:normal;color:var(--ink);max-width:100%;overflow-x:auto;scrollbar-width:thin}
.customer-portal-page .customer-stat-card>div{min-width:0;flex:1}
.customer-portal-page .customer-money{color:var(--good)}
.customer-portal-page .customer-live-overview{display:flex;align-items:center;gap:18px;min-width:0;padding:8px 0 26px;margin-bottom:26px;border-bottom:1px solid var(--rule)}
.customer-live-overview-icon{width:58px;height:58px;display:grid;place-items:center;background:var(--tint);color:var(--primary);border-radius:8px;flex:0 0 58px}
.customer-portal-page .customer-live-overview-icon .lucide{width:26px;height:26px}
.customer-live-overview>div:nth-child(2){flex:1;min-width:0}
.customer-live-overview h2{font-size:19px;font-weight:600;margin:7px 0 2px;line-height:1.8}
.customer-live-overview p{color:var(--muted);font-size:13px;margin:0}
.customer-portal-page .customer-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px;align-items:start}
.customer-portal-page .customer-panel{border:1px solid var(--rule);border-radius:7px;background:var(--surface);box-shadow:none;min-width:0;overflow:hidden}
.customer-portal-page .customer-panel-head{padding:18px 20px;min-height:68px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--rule)}
.customer-portal-page .customer-panel-head h2{font-size:16px;font-weight:600;line-height:1.8;margin:0}
.customer-portal-page .customer-panel-head p{font-size:12px;color:var(--muted);margin:4px 0 0}
.customer-portal-page .customer-panel-head>.lucide{color:var(--muted)}
.customer-recent-head,.customer-recent-row{display:grid;grid-template-columns:minmax(70px,1fr) 65px minmax(70px,1fr) 85px;gap:8px;align-items:center;text-align:center;padding:13px 16px;font-size:13px;min-width:0}
.customer-recent-head{background:var(--soft);font-size:12px;color:var(--muted)}
.customer-recent-row{min-height:60px;border-top:1px solid var(--rule)}
.customer-recent-row>*{min-width:0;overflow-wrap:anywhere}
.customer-recent-row strong{font-weight:600;font-size:13px}
.customer-portal-page .customer-details-list{padding:3px 20px;margin:0}
.customer-details-list>div{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;padding:13px 0;border-bottom:1px solid var(--rule);font-size:13px;min-width:0}
.customer-details-list>div:last-child{border-bottom:0}
.customer-details-list dt{color:var(--muted)}
.customer-details-list dd{margin:0;max-width:100%;color:var(--ink)}
.customer-email-value{font-size:12px;overflow-wrap:anywhere}
.customer-section-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--rule);padding:14px 20px}
.customer-portal-page .customer-empty-state{min-height:230px;padding:30px 20px;color:var(--muted)}
.customer-portal-page .customer-empty-state strong{font-size:14px;color:var(--ink)}
.customer-portal-page .customer-empty-state p{font-size:12px;line-height:1.9;max-width:38ch}
.customer-portal-page :is(.customer-status,.customer-trade-side){display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:0;width:max-content;max-width:100%;padding:3px 8px;border-radius:4px;font-size:11px;line-height:1.8;white-space:normal;background:var(--soft);color:var(--muted)}
.customer-portal-page :is(.customer-status.is-open,.customer-status.is-closed,.customer-trade-side.is-buy){color:var(--good);background:var(--good-bg)}
.customer-portal-page .customer-status.is-pending{color:var(--warning);background:var(--warning-bg)}
.customer-portal-page :is(.customer-status.is-cancelled,.customer-trade-side.is-sell){color:var(--bad);background:var(--bad-bg)}
.customer-portal-page .customer-status.is-vip{color:var(--vip);background:var(--vip-bg)}
.customer-portal-page .customer-recent-row :is(.customer-status,.customer-trade-side){justify-self:center}
.customer-portal-page .customer-security-grid{gap:24px;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);margin-bottom:26px}
.customer-portal-page .customer-security-form{padding:20px;gap:10px}
.customer-portal-page .portal-form-columns{gap:16px}
.customer-portal-page .customer-security-summary dl{padding:4px 20px}
.customer-portal-page .customer-security-summary dl>div{padding:13px 0;min-height:50px;border-bottom:1px solid var(--rule);font-size:12px}
.customer-portal-page .customer-security-summary dt{color:var(--muted)}
.customer-portal-page .customer-security-summary dd{color:var(--ink);font-size:12px;max-width:100%;overflow-wrap:anywhere}
.customer-portal-page .customer-security-email .lucide{color:var(--good);width:14px;height:14px}
.customer-portal-page .customer-security-state{font-size:12px;background:var(--tint);color:var(--primary);border:1px solid var(--rule);border-radius:5px;width:auto}
.customer-portal-page .customer-form-actions{padding-top:18px;border-top:1px solid var(--rule);margin-top:12px}
.customer-portal-page .customer-form-actions .portal-primary-button{width:auto;min-width:160px;margin:0}
.customer-portal-page .customer-email-verification-grid{gap:24px;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
.customer-portal-page .customer-email-steps{padding:20px;list-style:none;gap:15px;border-bottom:1px solid var(--rule)}
.customer-portal-page .customer-email-steps li>span{border-radius:50%;background:var(--soft);color:var(--muted);place-items:center}
.customer-portal-page .customer-email-steps li.is-complete>span{background:var(--good-bg);color:var(--good)}
.customer-portal-page .customer-email-steps :is(strong,small){font-size:12px}
.customer-portal-page .customer-email-steps small{color:var(--muted)}
.customer-portal-page :is(.customer-email-code-form,.customer-email-address-form){padding:20px;gap:12px}
.customer-portal-page :is(.customer-email-destination,.customer-current-email){margin:20px 20px 0;padding:14px;border-inline-start:3px solid var(--primary);background:var(--soft);border-radius:0;font-size:13px}
.customer-portal-page :is(.customer-email-destination,.customer-current-email) strong{display:block;margin-top:4px;overflow-wrap:anywhere;font-size:13px}
.customer-portal-page .customer-current-email small{display:block;color:var(--muted);font-size:12px}
.customer-portal-page .customer-email-code-input input{font-size:22px;letter-spacing:0;border:1px solid var(--rule);border-radius:6px;background:var(--soft);color:var(--ink)}
.customer-portal-page .customer-email-attempts{font-size:11px;color:var(--muted)}
.customer-portal-page .customer-email-secondary-actions{padding:0 20px 20px}
.customer-portal-page .customer-email-security-note li{border-bottom:1px solid var(--rule);font-size:13px}
.customer-portal-page .customer-email-security-note small{color:var(--muted);font-size:12px}
.customer-portal-page .customer-email-security-note li>.lucide{color:var(--primary);background:var(--soft);border-radius:5px}
.customer-profile-heading{display:flex;gap:16px;align-items:center;border-block:1px solid var(--rule);padding:22px 0;margin-bottom:26px;flex-wrap:wrap}
.customer-profile-avatar{width:58px;height:58px;display:grid;place-items:center;flex:0 0 58px;background:var(--tint);color:var(--primary);border-radius:8px;font-size:19px;font-weight:600}
.customer-profile-heading h2{font-size:19px;font-weight:600;margin:0}
.customer-profile-heading p{font-size:13px;color:var(--muted);margin:4px 0 0}
.customer-profile-heading>.customer-status{margin-inline-start:auto}
.customer-method-list{padding:0 20px;margin:0;list-style:none}
.customer-method-list li{display:flex;align-items:center;gap:9px;padding:16px 0;border-bottom:1px solid var(--rule);font-size:13px;flex-wrap:wrap}
.customer-method-list li:last-child{border:0}
.customer-method-list li>span:nth-child(2){flex:1}
.customer-method-list small{font-size:11px;color:var(--muted)}
.customer-profile-records .customer-panel-head{padding-inline:0}
.customer-record-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:18px 0;border-bottom:1px solid var(--rule);font-size:13px}
.customer-record-row>div{min-width:0;display:flex;flex-direction:column;align-items:start;gap:4px}
.customer-record-row small{font-size:11px;color:var(--muted)}
.customer-record-row strong{font-weight:550}
:is(.customer-portal-page,.customer-auth-page) :is(.portal-primary-button,.portal-secondary-button){display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:9px 15px;border-radius:6px;font-size:13px;font-weight:550;line-height:1.8;text-align:center;transition:background .15s,border-color .15s}
:is(.customer-portal-page,.customer-auth-page) .portal-primary-button{background:var(--primary);border:1px solid var(--primary);color:var(--surface)}
:is(.customer-portal-page,.customer-auth-page) .portal-primary-button:hover{background:var(--primary-hover)}
:is(.customer-portal-page,.customer-auth-page) .portal-secondary-button{background:var(--surface);border:1px solid var(--rule);color:var(--ink)}
:is(.customer-portal-page,.customer-auth-page) .portal-secondary-button:hover{background:var(--soft);border-color:var(--muted)}
:is(.customer-portal-page,.customer-auth-page) .portal-icon-button{width:36px;height:36px;min-height:36px;flex:0 0 36px;padding:0;display:inline-grid;place-items:center;border:1px solid var(--rule);border-radius:5px;background:var(--surface);color:var(--muted)}
.customer-portal-page .customer-inline-action{width:auto;margin:0;flex-shrink:0}
:is(.customer-portal-page,.customer-auth-page) :is(.portal-text-link,.portal-text-button){display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--primary);padding:4px 0;background:none;border:0}
:is(.customer-portal-page,.customer-auth-page) .portal-input-wrap{position:relative;border:1px solid var(--rule);border-radius:6px;background:var(--surface);color:var(--muted);min-width:0}
:is(.customer-portal-page,.customer-auth-page) .portal-input-wrap>input{width:100%;min-height:46px;padding:10px 38px 10px 12px;background:transparent;color:var(--ink);border:0;border-radius:6px;font-size:14px;box-shadow:none;outline-offset:3px}
:is(.customer-portal-page,.customer-auth-page) .portal-input-wrap>:is(svg,.lucide){position:absolute;top:50%;right:12px;transform:translateY(-50%);width:17px;height:17px;pointer-events:none}
:is(.customer-portal-page,.customer-auth-page) .portal-input-wrap:focus-within{border-color:var(--primary)}
:is(.customer-portal-page,.customer-auth-page) .portal-input-wrap.has-password-toggle>input{padding-left:46px}
.customer-password-toggle{position:absolute;left:4px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:36px;height:36px;background:transparent;border:0;border-radius:4px;color:var(--muted)}
.customer-password-toggle:hover{background:var(--soft);color:var(--ink)}
:is(.customer-portal-page,.customer-auth-page) label{font-size:13px;color:var(--ink)}
:is(.customer-portal-page,.customer-auth-page) .portal-form-note{display:flex;align-items:flex-start;gap:8px;color:var(--muted);font-size:12px;line-height:1.9;padding:12px 0;margin:0}
:is(.customer-portal-page,.customer-auth-page) .portal-form-note>.lucide{margin-top:3px;width:16px;height:16px}
.customer-portal-page .portal-password-rules{font-size:11px;color:var(--muted);gap:8px;background:var(--soft);padding:12px;border-radius:5px}
.customer-portal-page .portal-password-rules .lucide{width:13px;height:13px;color:var(--good)}
:is(.customer-portal-page,.customer-auth-page) button:disabled{opacity:.5;cursor:not-allowed}
:is(.customer-portal-page,.customer-auth-page) .portal-alert{display:flex;align-items:start;gap:9px;padding:12px 14px;border:1px solid var(--rule);border-radius:6px;background:var(--surface);color:var(--ink);font-size:13px;line-height:1.9}
:is(.customer-portal-page,.customer-auth-page) .portal-alert>span{flex:1;min-width:0}
:is(.customer-portal-page,.customer-auth-page) .portal-alert-success{background:var(--good-bg);border-color:color-mix(in srgb,var(--good) 30%,var(--rule))}
:is(.customer-portal-page,.customer-auth-page) .portal-alert-error{background:var(--bad-bg);border-color:color-mix(in srgb,var(--bad) 30%,var(--rule))}
:is(.customer-portal-page,.customer-auth-page) .portal-alert>.lucide{margin-top:3px}
.customer-alert-close{display:grid;place-items:center;border:0;background:transparent;color:inherit;padding:3px;width:28px;height:28px;flex:0 0 28px}
.customer-portal-page .customer-app-footer{padding:16px 28px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--rule);font-size:11px;color:var(--muted);background:var(--canvas)}
.customer-portal-page .customer-app-footer span{display:flex;gap:7px;align-items:center}
.customer-portal-page .customer-app-footer .lucide{width:13px;height:13px}
.customer-portal-page .customer-sidebar-overlay{position:fixed;inset:0;z-index:70;background:#182b3b66;backdrop-filter:blur(2px)}
.customer-portal-page .customer-sidebar-close{display:none}
.customer-portal-page .customer-mobile-menu{display:inline-grid}
.customer-portal-page.customer-sidebar-collapsed .customer-sidebar{transform:translateX(105%);visibility:hidden;pointer-events:none}
.customer-portal-page.customer-sidebar-collapsed .customer-app-shell{margin-right:0}
.customer-auth-page{padding:64px 20px 32px;display:grid;place-items:center;min-height:100dvh}
.customer-auth-page .portal-auth-shell{width:min(480px,100%);padding:0;margin:0;min-width:0}
.customer-auth-page .portal-auth-card{padding:28px;border:1px solid var(--rule);border-radius:8px;background:var(--surface);box-shadow:0 3px 16px #1b34380a}
.customer-auth-page .portal-auth-header{gap:12px;align-items:center;margin-bottom:26px}
.customer-auth-page .portal-brand-mark{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;background:var(--tint);border-radius:7px;color:var(--primary)}
.customer-auth-page .portal-auth-header h1{font-size:23px;font-weight:650;line-height:1.6;margin:0}
.customer-auth-page .portal-auth-header p{font-size:13px;color:var(--muted);line-height:1.9;margin:4px 0 0}
.customer-auth-page .portal-customer-method-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:4px;background:var(--soft);border:1px solid var(--rule);border-radius:6px;margin:0 0 24px}
.customer-auth-page .portal-segmented button{min-height:40px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;white-space:nowrap;color:var(--muted);border:1px solid transparent;padding:6px 5px}
.customer-auth-page .portal-segmented button .lucide{width:15px;height:15px}
.customer-auth-page .portal-segmented button.is-active{background:var(--surface);color:var(--primary);border-color:var(--rule);box-shadow:none}
.customer-auth-page .portal-auth-panel{min-height:0}
.customer-auth-page .portal-form{display:grid;gap:10px}
.customer-auth-page .portal-form>.portal-primary-button{width:100%;margin:6px 0 0}
.customer-auth-page .portal-auth-footer{display:flex;align-items:start;gap:8px;font-size:11px;line-height:1.9;color:var(--muted);border-top:1px solid var(--rule);padding-top:18px;margin-top:24px}
.customer-auth-page .portal-auth-footer .lucide{width:15px;height:15px;margin-top:3px}
.customer-auth-page .portal-otp-input{width:100%;height:58px;background:var(--soft);color:var(--ink);font-size:24px;letter-spacing:0;border:1px solid var(--rule);border-radius:6px;text-align:center}
.customer-auth-page .portal-otp-actions{font-size:12px;gap:12px;margin-top:16px}
.customer-auth-version{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 2px 0;color:var(--muted);font-size:11px;padding:0}
:is(.customer-portal-page,.customer-auth-page) .crm-is-loading{position:relative;pointer-events:none;opacity:.7}
:is(.customer-portal-page,.customer-auth-page) .crm-is-loading::after{content:'';display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;margin-inline-start:7px;animation:customer-spin .7s linear infinite;flex:0 0 14px}
:is(.customer-portal-page,.customer-auth-page) #crmRequestProgress{position:fixed;top:0;left:0;right:0;height:3px;z-index:200;opacity:0;pointer-events:none;background:transparent}
:is(.customer-portal-page,.customer-auth-page) #crmRequestProgress.is-active{opacity:1}
:is(.customer-portal-page,.customer-auth-page) #crmRequestProgress span{display:block;width:18%;height:100%;background:var(--primary);transition:width .5s}
:is(.customer-portal-page,.customer-auth-page) #crmRequestProgress.is-running span{width:80%}
:is(.customer-portal-page,.customer-auth-page) #crmRequestProgress.is-complete span{width:100%}
@keyframes customer-spin{to{transform:rotate(360deg)}}
@media(max-width:1200px){.customer-portal-page .customer-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-portal-page .customer-stat-card:nth-child(2){border-inline-end:0}.customer-portal-page .customer-stat-card:nth-child(-n+2){border-bottom:1px solid var(--rule)}.customer-portal-page :is(.customer-dashboard-grid,.customer-security-grid,.customer-email-verification-grid){grid-template-columns:1fr}}
@media(max-width:1000px){.customer-portal-page .customer-sidebar{width:min(290px,calc(100vw - 40px));transform:translateX(105%);visibility:hidden;pointer-events:none}.customer-portal-page .customer-sidebar.is-open{transform:none;visibility:visible;pointer-events:auto}.customer-portal-page .customer-app-shell{margin-right:0}.customer-portal-page .customer-sidebar-close{display:inline-grid}.customer-portal-page .customer-sidebar-collapse{display:none}.customer-portal-page.customer-menu-open{overflow:hidden}.customer-portal-page .customer-topbar{padding:12px 20px}.customer-portal-page .customer-app-shell .customer-main{padding:24px 20px}}
@media(max-width:620px){.customer-portal-page .customer-topbar{padding:10px 14px;min-height:64px}.customer-portal-page .customer-topbar-title small{display:none}.customer-portal-page .customer-topbar-title strong{font-size:14px}.customer-portal-page .customer-topbar-meta>span{display:none}.customer-portal-page .customer-topbar-meta time{font-size:11px}.customer-portal-page .customer-app-shell .customer-main{padding:22px 14px}.customer-portal-page .customer-page-heading{margin-bottom:20px}.customer-portal-page .customer-page-heading h1{font-size:21px}.customer-portal-page .customer-stat-card{padding:16px 8px;gap:7px;min-height:112px}.customer-portal-page .customer-stat-icon{width:22px;flex-basis:22px}.customer-portal-page .customer-stat-card strong{font-size:24px}.customer-portal-page .customer-stat-card small{font-size:11px}.customer-portal-page .customer-live-overview{align-items:start;flex-wrap:wrap;gap:12px}.customer-live-overview-icon{width:42px;height:42px;flex-basis:42px}.customer-live-overview h2{font-size:17px}.customer-portal-page .customer-live-overview>.customer-inline-action{width:100%}.customer-portal-page .customer-panel-head{padding:15px}.customer-portal-page .customer-panel-head h2{font-size:15px}.customer-portal-page .customer-details-list{padding-inline:15px}.customer-section-actions{padding:13px 15px}.customer-recent-head,.customer-recent-row{grid-template-columns:minmax(50px,1fr) 42px minmax(60px,1fr) 65px;padding:12px 9px;gap:5px;font-size:11px}.customer-recent-row strong{font-size:11px}.customer-portal-page .customer-recent-row :is(.customer-status,.customer-trade-side){font-size:10px;padding:3px 5px}.customer-portal-page .customer-security-form,.customer-portal-page :is(.customer-email-code-form,.customer-email-address-form){padding:16px}.customer-portal-page .portal-form-columns{grid-template-columns:1fr}.customer-portal-page .portal-input-wrap>input{font-size:16px}.customer-portal-page .customer-form-actions>.portal-primary-button{width:100%}.customer-portal-page .customer-email-steps{padding:16px}.customer-profile-heading{gap:12px}.customer-profile-heading>.customer-status{margin:0}.customer-record-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}.customer-portal-page .customer-app-footer{padding:14px;font-size:10px}.customer-auth-page{padding:68px 14px 26px;align-items:start}.customer-auth-page .portal-auth-card{padding:22px 18px}.customer-auth-page .portal-customer-method-switch{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-auth-page .portal-input-wrap>input{font-size:16px}.customer-auth-page .portal-auth-header h1{font-size:21px}}
@media(prefers-reduced-motion:reduce){:is(.customer-portal-page,.customer-auth-page) *,:is(.customer-portal-page,.customer-auth-page) *::after{animation:none!important;transition:none!important}}
