/* Shared portal identity. Scoped to account workspaces; marketplace stays independent. */
:is(.workspace-shell,.promo-workspace,.modern-onboarding){--ws-line:#e3eaf5;--ws-muted:#72829b;color:#142441;font-family:Inter,system-ui,-apple-system,sans-serif}
.erp-mode body{background:#f2f6fc;background-image:radial-gradient(ellipse at 95% 0%,#e3edff 0,transparent 48%)}
.erp-mode #erp-topbar{background:#ffffffed;backdrop-filter:blur(16px);border-bottom:1px solid #e2eaf7;box-shadow:0 4px 24px #142b5505}
.erp-role{background:#e8f0ff;color:#1760ed;border:1px solid #d8e6ff;border-radius:20px;font-weight:700}
.erp-avatar{background:#165cf0;color:white;box-shadow:0 4px 12px #165cf025}
.erp-mode #app.wrap{padding:24px;max-width:1800px;margin:auto}
.workspace-shell{background:#f4f7fc!important;border:1px solid #e2e9f3!important;border-radius:22px!important;overflow:hidden;box-shadow:0 14px 50px #13315a07!important}
.workspace-shell .workspace-topbar{background:#fff!important;border-bottom:1px solid #e2eaf5;padding:24px 28px!important}
.workspace-shell .workspace-topbar h1{font-size:27px!important;color:#132441;letter-spacing:-.8px}
.workspace-shell .portal-layout{grid-template-columns:235px minmax(0,1fr);gap:0}
.workspace-shell .portal-content{padding:28px;background:transparent;min-width:0}
.workspace-shell nav.workspace-nav,.promo-nav,.modern-nav{background:linear-gradient(160deg,#112442,#0b1730)!important;color:#dce7ff!important;border:0!important;border-radius:0!important;padding:24px 15px!important;box-shadow:none!important}
.workspace-shell nav.workspace-nav{align-self:stretch;max-height:none;position:static}
.workspace-nav-title{color:white!important;border-bottom:1px solid #ffffff18!important;padding-bottom:24px!important;margin-bottom:20px!important}
.workspace-nav-title small,.workspace-shell .hub-nav-group>small,.promo-nav small{color:#94a8c8!important;letter-spacing:1.3px}
.workspace-mark{background:#ffffff10!important;color:#75acff!important;border:1px solid #ffffff18}
.workspace-shell nav.workspace-nav button,.promo-nav button,.modern-nav button{color:#bdcce4!important;background:transparent;border:0;border-radius:11px!important;padding:13px 14px!important;font-size:14px!important;display:flex;align-items:center;gap:12px;min-height:46px;width:100%;text-align:left;cursor:pointer;transition:background .16s,color .16s}
.workspace-shell nav.workspace-nav button:hover,.promo-nav button:hover,.modern-nav button:hover{background:#ffffff0d!important;color:white!important}
.workspace-shell nav.workspace-nav button.active,.promo-nav button.active,.modern-nav button.active{background:linear-gradient(110deg,#1765ff,#347dff)!important;color:#fff!important;box-shadow:0 5px 18px #0062ff30;position:relative}
.workspace-shell nav.workspace-nav button svg,.modern-nav svg{width:20px;height:20px;flex-shrink:0;color:inherit!important}
.workspace-shell nav.workspace-nav .workspace-market{margin-top:24px;border-top:1px solid #ffffff15}
.workspace-section-head small,.workspace-eyebrow{color:#3975d4!important;font-size:10px!important;font-weight:700;letter-spacing:1.4px}
.workspace-section-head h2{font-size:27px!important;letter-spacing:-.8px;color:#142441}
.workspace-date{background:white!important;border:1px solid #e1e9f4!important;color:#718199!important;border-radius:10px!important}
:is(.workspace-shell,.promo-workspace,.modern-onboarding) .panel,:is(.workspace-shell) .ops-card{border:1px solid #e2e9f4!important;border-radius:17px!important;background:#fff;box-shadow:0 5px 22px #20396104!important}
.workspace-shell .crm-stats article,.promo-metrics .panel{border:1px solid #e1e9f5;border-radius:16px!important;box-shadow:0 6px 20px #23457604!important;padding:22px!important;background:linear-gradient(145deg,#fff,#fafcff)}
.workspace-shell .crm-stats strong,.promo-metrics b{color:#142441;font-size:30px;letter-spacing:-1px}
.workspace-stat-icon{width:40px;height:40px;border-radius:12px;background:#e8f0ff;color:#1765f0}
.workspace-stat-icon.tone-1{background:#e9f8f3;color:#10a578}.workspace-stat-icon.tone-2{background:#f0ecff;color:#8061de}.workspace-stat-icon.tone-3{background:#fff2e6;color:#d99136}
.workspace-shell .hub-welcome,.workspace-welcome{background:linear-gradient(110deg,#e9f1ff,#f6faff)!important;border:1px solid #dce8ff!important;border-radius:17px!important;padding:27px!important}
.workspace-shell .hub-welcome h2,.workspace-welcome h2{color:#142441}.workspace-shell .hub-welcome p,.workspace-welcome p{color:#69809e}
:is(.workspace-shell,.promo-workspace,.modern-onboarding) .btn:not(.secondary){background:#1765f4!important;border-color:#1765f4!important;color:#fff!important;box-shadow:0 4px 12px #1765f41a!important}
:is(.workspace-shell,.promo-workspace,.modern-onboarding) .btn{border-radius:10px!important;font-weight:600;min-height:42px}
:is(.workspace-shell,.promo-workspace,.modern-onboarding) .btn.secondary{background:#fff!important;border:1px solid #dce5f2!important;color:#466180!important}
:is(.workspace-shell,.promo-workspace,.modern-onboarding) :is(button,a,input,select,textarea):focus-visible{outline:3px solid #7babff;outline-offset:3px}
.workspace-shell table{font-size:13px}.workspace-shell th{background:#f5f8fd;color:#6e809b;font-size:11px}.workspace-shell td,.workspace-shell th{padding:16px 13px;border-color:#edf1f8}
.workspace-shell .crm-lane{background:#eaf0f9}.workspace-shell .badge,.workspace-shell .hub-chip{border-radius:7px}
.promo-workspace{border-radius:22px;overflow:hidden;border:1px solid #e2e9f3;background:#f4f7fc;gap:0;grid-template-columns:235px minmax(0,1fr)}
.promo-nav{margin:0!important;height:100%;position:static!important}.promo-nav h2{color:white;font-size:19px;line-height:1.4}.promo-content{padding:28px}.promo-content .page-heading h1{color:#142441}
.modern-onboarding{display:grid;grid-template-columns:235px minmax(0,1fr);border-radius:22px;overflow:hidden;border:1px solid #e2e9f3;background:#f4f7fc}
.modern-onboarding-content{padding:26px;min-width:0}.modern-nav h2{font-size:20px;color:white;line-height:1.4;overflow-wrap:anywhere}.modern-nav small{color:#94a8c8;letter-spacing:1px}.modern-nav button{margin-top:8px}.modern-nav p{font-size:12px;line-height:1.7;color:#96a9c6;margin:28px 14px}
.modern-onboarding .workspace-gate{padding:0;background:transparent}.modern-onboarding .promo-entry{display:none}.modern-onboarding .legal-shell{margin:0;max-width:none}
@media(max-width:1100px){.workspace-shell .portal-layout,.promo-workspace,.modern-onboarding{grid-template-columns:205px minmax(0,1fr)}.workspace-shell .portal-content,.promo-content,.modern-onboarding-content{padding:20px}}
@media(max-width:800px){.promo-workspace,.modern-onboarding{grid-template-columns:1fr}.promo-nav,.modern-nav{height:auto;padding:18px!important;border-radius:0!important}.promo-nav button,.modern-nav button{display:inline-flex;width:auto;min-height:44px;font-size:13px!important}.modern-nav p{display:none}.promo-nav h2,.modern-nav h2{margin:8px 0;font-size:18px}.promo-content,.modern-onboarding-content{padding:16px}.promo-metrics .panel{padding:14px!important}}
@media(max-width:760px){.erp-mode #app.wrap{padding:12px}.workspace-shell .portal-layout{display:block}.workspace-shell .portal-content{padding:18px 14px}.workspace-shell .workspace-topbar{padding:18px!important}.workspace-shell .workspace-topbar h1{font-size:22px!important}.workspace-mobile{background:#10223e}.workspace-menu-button{background:#ffffff0d;color:#fff;border-color:#ffffff20}.workspace-shell nav.workspace-nav{display:none}.workspace-shell.workspace-menu-open nav.workspace-nav{display:block}.workspace-shell .crm-stats article{padding:15px!important}.workspace-shell .crm-stats strong{font-size:25px}.workspace-section-head h2{font-size:23px!important}.workspace-shell .hub-welcome,.workspace-welcome{padding:20px!important}}
@media(prefers-reduced-motion:reduce){.workspace-shell *, .promo-workspace *{transition:none!important;scroll-behavior:auto!important}}

#erp-topbar .erp-language{width:auto;min-width:62px;flex:0 0 auto}#erp-topbar .erp-top-actions{flex-wrap:nowrap} @media(max-width:520px){#erp-topbar .erp-top-actions{flex-wrap:wrap}}
