/* Platform console follows the dispatch palette, with its own administrative hierarchy. */
body.portal{font-size:14px;background:var(--rc-canvas)}.portal header{height:72px;padding:0 28px;position:sticky;top:0;z-index:10}.portal header .brand{font-size:20px}.console-label{margin-left:18px;padding-left:18px;border-left:1px solid var(--rc-muted);color:#a6c5b2;font-size:12px;font-weight:400}.portal header nav{gap:20px;font-size:13px}.portal header #logout{background:#37594c;color:#fff;border-color:#759481;min-height:36px;padding:8px 14px}.portal main{max-width:none;margin:0;padding:0}.portal-layout{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:calc(100dvh - 72px)}.sidebar{background:white;border-right:1px solid var(--rc-line);padding:30px 18px 20px;display:flex;flex-direction:column;gap:8px;position:sticky;top:72px;height:calc(100dvh - 72px)}.nav-caption{font-size:10px;letter-spacing:1.5px;color:var(--rc-muted);font-weight:700;padding:0 14px;margin-bottom:12px}.sidebar>a{display:flex;gap:12px;align-items:center;padding:13px 14px;color:var(--rc-muted);text-decoration:none;font-weight:600;border-radius:8px;min-height:46px}.sidebar>a.active{background:var(--rc-soft);color:var(--rc-brand)}.sidebar>a:hover{background:var(--rc-canvas)}.nav-icon{font-size:16px;line-height:1;width:20px;text-align:center}.sidebar-footer{margin-top:auto;padding:22px 12px 0;border-top:1px solid var(--rc-line)}.sidebar-footer strong{font-size:12px}.sidebar-footer p{font-size:11px;overflow-wrap:anywhere;margin-bottom:0}.admin-content{padding:34px 38px 50px;min-width:0;max-width:1600px;width:100%;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:26px}.page-heading h1{font-size:28px;font-weight:700;margin-top:6px}.page-heading p{margin:7px 0 0;font-size:14px}.page-heading>.primary{white-space:nowrap}.portal .card{margin:0 0 24px;padding:0;overflow:hidden;border-color:var(--rc-line);box-shadow:0 2px 3px #1b304603}.panel-head{padding:22px 24px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--rc-line)}.panel-head h2{font-size:16px;margin:0}.panel-head p{font-size:12px;margin:5px 0 0}.panel-body{padding:24px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.stat-card{background:white;border:1px solid var(--rc-line);border-radius:11px;padding:20px 22px}.stat-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--rc-muted);gap:10px}.stat-icon{background:var(--rc-soft);color:var(--rc-brand);width:28px;height:28px;border-radius:7px;display:grid;place-items:center;font-size:14px}.stat-card strong{font-size:30px;letter-spacing:-1px;font-weight:650;display:block;margin:12px 0 6px;font-variant-numeric:tabular-nums}.stat-card small{font-size:11px;color:var(--rc-muted)}.portal table{white-space:nowrap}.portal th{background:var(--rc-canvas);font-size:11px;letter-spacing:.25px;padding:13px 24px;font-weight:600}.portal td{padding:18px 24px;font-size:13px}.portal tbody tr:last-child td{border-bottom:0}.portal tbody tr:hover{background:var(--rc-canvas)}.business-cell{display:flex;align-items:center;gap:12px;white-space:normal;min-width:170px}.business-mark{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border:1px solid var(--rc-soft);border-radius:9px;background:var(--rc-soft);color:var(--rc-brand);font-size:12px;font-weight:700}.business-cell strong{display:block;font-size:13px}.business-cell small{font-size:11px}.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:5px;font-size:11px;font-weight:600;background:var(--rc-soft);color:var(--rc-brand)}.badge:before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%}.badge.active,.badge.accepted{background:#eaf6f0;color:#087966}.badge.suspended,.badge.expired,.badge.revoked{background:#fff0ed;color:#a34434}.badge.trial,.badge.pending{background:#fff6e6;color:#8b5b12}.quiet-button{font-size:12px;min-height:34px;padding:7px 11px;background:#fff}.table-tools{display:flex;gap:12px;align-items:center;padding:18px 24px;border-bottom:1px solid var(--rc-line)}.table-tools input{max-width:360px;font-size:13px;background:var(--rc-canvas)}.table-tools select{width:155px;font-size:13px}.table-tools .count{margin-left:auto;font-size:12px;color:var(--rc-muted);white-space:nowrap}.empty-state{text-align:center;padding:48px 24px}.empty-state .empty-symbol{font-size:24px;color:var(--rc-brand);background:var(--rc-soft);border-radius:12px;padding:14px;display:inline-block}.empty-state h3{font-size:17px;margin:18px 0 8px}.empty-state p{font-size:13px;margin:0 0 18px}.two-panels{display:grid;grid-template-columns:1.35fr 1fr;gap:24px}.two-panels .card{height:100%}.metric-row{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid #edf0f5;font-size:13px}.metric-row:last-child{border:0}.metric-row span{color:var(--rc-muted)}.metric-row strong{font-weight:600;font-variant-numeric:tabular-nums}.text-link{font-size:12px;text-decoration:none;font-weight:600}.back-link{display:inline-block;margin-bottom:18px;font-size:12px;font-weight:600;text-decoration:none}.detail-tabs{display:flex;gap:26px;border-bottom:1px solid var(--rc-line);margin-bottom:24px;overflow:auto}.detail-tabs a{padding:13px 2px;color:var(--rc-muted);text-decoration:none;font-size:13px;white-space:nowrap;border-bottom:2px solid transparent}.detail-tabs a.active{color:var(--rc-brand);border-color:var(--rc-brand);font-weight:600}.detail-identity{display:flex;align-items:center;gap:16px}.detail-identity .business-mark{width:52px;height:52px;font-size:18px}.detail-identity h1{margin:0 0 8px;font-size:26px}.detail-identity p{margin:0}.detail-note{padding:14px 24px;background:var(--rc-canvas);border-top:1px solid var(--rc-line);font-size:12px;color:var(--rc-muted)}.portal #message:not(:empty){position:fixed;bottom:22px;right:24px;background:var(--rc-ink);color:white;border-radius:9px;padding:14px 20px;max-width:calc(100vw - 40px);z-index:20;box-shadow:0 8px 30px #11182726}.progress-track{width:110px;height:5px;background:#eaf0f8;border-radius:5px;display:block;margin-top:7px;overflow:hidden}.progress-track i{display:block;background:#6489df;height:100%}.cost-callout{padding:16px 20px;font-size:12px;background:var(--rc-soft);color:#40577b;border-radius:9px;margin-bottom:24px;line-height:1.6}.settings-row{display:flex;justify-content:space-between;gap:24px;align-items:center}.settings-row h3{font-size:14px;margin:0}.settings-row p{font-size:13px;margin:6px 0 0;max-width:520px}.danger-zone{border-color:#ecd4d0!important}.danger-zone .panel-head h2{color:#9e3930}.status-total{display:flex;gap:12px;flex-wrap:wrap}.status-total>div{flex:1;background:var(--rc-canvas);border-radius:8px;padding:18px;min-width:90px}.status-total strong{display:block;font-size:25px;margin-bottom:7px}.status-total span{color:var(--rc-muted);font-size:12px}.portal code{font-size:11px;overflow-wrap:anywhere;white-space:normal}.mobile-account{display:none}@media(max-width:1150px){.admin-content{padding:28px 24px}.portal-layout{grid-template-columns:188px minmax(0,1fr)}.stat-grid{gap:12px}.stat-card{padding:18px}.stat-card strong{font-size:26px}.portal td,.portal th{padding-left:18px;padding-right:18px}.two-panels{grid-template-columns:1fr}.console-label{display:none}}@media(max-width:760px){.portal header{height:64px;padding:0 18px}.portal header nav{gap:12px}.portal header nav a{display:none}.portal-layout{display:block}.sidebar{height:auto;position:static;padding:10px 16px;flex-direction:row;overflow:auto;border-right:0;border-bottom:1px solid var(--rc-line);gap:4px}.sidebar>a{padding:10px 13px;white-space:nowrap;min-height:42px;font-size:12px}.sidebar .nav-icon,.nav-caption,.sidebar-footer{display:none}.admin-content{padding:24px 18px 40px}.stat-grid{grid-template-columns:1fr 1fr}.stat-card{padding:16px}.stat-card strong{font-size:26px}.page-heading{align-items:flex-start;gap:12px}.page-heading h1{font-size:24px}.page-heading p{font-size:12px}.page-heading>.primary{padding:10px 12px;font-size:12px}.page-heading .eyebrow{font-size:9px}.table-tools{padding:16px;flex-wrap:wrap}.table-tools input{max-width:none;flex:1;min-width:140px}.table-tools select{width:135px}.table-tools .count{width:100%;margin:0}.panel-head{padding:18px}.panel-body{padding:18px}.detail-tabs{gap:22px}.detail-identity h1{font-size:23px}.detail-identity .business-mark{display:none}.settings-row{align-items:flex-start;flex-direction:column}.portal .grid{grid-template-columns:1fr}.panel-head .quiet-button{flex-shrink:0}.portal header .brand{font-size:18px}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Keep request content inside its grid column and give selected filters an
   explicit foreground/background pair instead of mixing button variants. */
.portal #access-view{width:100%;min-width:0;max-width:100%;contain:inline-size}
.portal #access-view .page-heading>div{min-width:0;overflow-wrap:anywhere}
.portal #request-tabs{gap:10px;flex-wrap:wrap;overflow:visible;padding-bottom:14px}
.portal #request-tabs button{min-height:44px;flex:0 0 auto;background:#fff;color:#19345b;border-color:#dbe4f3}
.portal #request-tabs button[aria-pressed="true"]{background:#1555e8;color:#fff;border-color:#1555e8}
.portal #request-tabs button:focus-visible{outline:3px solid #92b5ff;outline-offset:3px}
.portal #request-list{width:100%;min-width:0;max-width:100%}
.portal #request-list .table-wrap{max-width:100%;overflow-x:auto}
.portal #request-list .empty-state,.portal #access-view>p{white-space:normal;overflow-wrap:anywhere}

.invitation-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}



body.business-account{font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.business-account #view h1{font-size:22px;line-height:1.2;letter-spacing:-.6px}
.business-account #view h2{font-size:17px;line-height:1.3;letter-spacing:-.35px}
.business-account #view p{line-height:1.45}
.business-account #view small{font-size:12px}
.business-account .invitation-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-left:auto}
.business-account .invitation-actions:empty{display:none}
.business-account .invitation-actions button{font-size:13px;white-space:nowrap}
@media(max-width:600px){.business-account .invitation-actions{margin-left:0}}

.role-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;vertical-align:middle;border-radius:6px;background:var(--rc-soft);color:var(--rc-brand);position:relative}.role-icon svg{width:18px;height:18px}.role-tooltip{display:none;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);padding:6px 9px;border-radius:5px;background:var(--rc-ink);color:white;white-space:nowrap;font-size:12px;z-index:2}.role-icon:hover .role-tooltip,.role-icon:focus .role-tooltip{display:block}.copy-invite-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.copy-invite-row [role=status]{color:#087966;font-size:13px}

.grid{align-items:start}

/* Reference styling adapted to the existing administrative layout. */
.portal header{background:#fff;color:var(--rc-ink);border-bottom:1px solid var(--rc-line)}
.console-label{color:var(--rc-muted);border-color:var(--rc-line)}
.portal header #logout{background:#f3f4f6;color:#374151;border-color:var(--rc-line);border-radius:9px}
.portal .card,.stat-card{border-radius:9px}.stat-icon{background:#dbeafe}.progress-track i{background:linear-gradient(90deg,#3b82f6,#4f46e5)}

/* Align role badges with driving permissions and their save feedback. */
.team-role{display:flex;align-items:center;gap:16px}
.team-role>.role-icon{flex-shrink:0}
.team-role-capability{min-width:0}
.team-role-capability .driver-save-status{max-width:240px}
/* Business team: keep identity, permission, and access decisions distinct. */
.business-account .team-management-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;align-items:start}
.business-account .people-panel{padding:0;min-width:0;overflow:hidden}
.business-account .people-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid var(--rc-line)}
.business-account .people-heading h2{margin:0}.business-account .people-heading p{margin:6px 0 0;font-size:13px}
.business-account .people-count{font-size:12px;white-space:nowrap;color:var(--rc-muted);font-variant-numeric:tabular-nums}
.business-account .people-scroll{overflow-x:auto}.business-account .people-scroll:focus-visible{outline:2px solid var(--rc-brand);outline-offset:-2px}
.business-account .people-table{width:100%;min-width:640px;border-collapse:collapse;table-layout:fixed;margin:0}
.business-account .people-table th{background:var(--rc-canvas);color:var(--rc-muted);font-size:12px;font-weight:600;padding:12px 20px;text-align:left;border-bottom:1px solid var(--rc-line)}
.business-account .people-table td{padding:18px 20px;vertical-align:middle;border-bottom:1px solid var(--rc-line);font-size:13px}
.business-account .people-table tr:last-child td{border-bottom:0}.business-account .people-table th:first-child{width:34%}.business-account .people-table th:nth-child(2){width:28%}
.business-account .people-table th:nth-child(3){width:18%}.business-account .people-table th:last-child{width:20%}
.business-account .person-name{display:flex;align-items:baseline;gap:8px;color:var(--rc-ink);overflow-wrap:anywhere;font-weight:600}
.business-account .person-email{display:block;overflow-wrap:anywhere;color:var(--rc-muted);line-height:1.5;font-size:12px;margin-top:4px}
.business-account .self-label{font-size:11px;color:var(--rc-muted);font-weight:400}
.business-account .team-role-label{display:flex;align-items:center;gap:8px;white-space:nowrap}.business-account .team-role-label .role-icon{width:24px;height:24px;flex-shrink:0}
.business-account .people-table .driver-capability{display:flex;margin:12px 0 0;gap:8px;font-size:12px;white-space:nowrap}
.business-account .people-table .driver-save-status{max-width:190px;font-size:12px}
.business-account .team-status{display:inline-flex;padding:4px 8px;border-radius:5px;font-size:12px;font-weight:500;white-space:nowrap;background:#f1f5f9;color:#475569}
.business-account .team-status-active,.business-account .team-status-accepted{background:#e9f6f0;color:#126447}.business-account .team-status-pending{background:#eff6ff;color:#2459af}.business-account .team-status-expired{background:#fff7e8;color:#885b12}
.business-account .people-table .people-action{text-align:right}.business-account .people-table button{font-size:12px;min-height:38px;padding:8px 12px;white-space:nowrap}
.business-account .people-table .people-empty{padding:28px 24px;text-align:center;color:var(--rc-muted)}
.business-account .invitations-table{min-width:820px}.business-account .invitations-table th:first-child{width:29%}.business-account .invitations-table th:nth-child(2){width:19%}.business-account .invitations-table th:nth-child(3){width:12%}.business-account .invitations-table th:nth-child(4){width:15%}.business-account .invitations-table th:last-child{width:25%}
.business-account .invitation-expiry{font-size:12px;color:var(--rc-muted);font-variant-numeric:tabular-nums}.business-account .people-table .invitation-actions{gap:8px;flex-wrap:nowrap}
@media(max-width:1150px){.business-account .team-management-grid{grid-template-columns:1fr}.business-account .team-management-grid>#invite{max-width:none}}
@media(max-width:600px){.business-account .people-heading{padding:18px 16px}.business-account .people-heading p{max-width:220px}.business-account .team-management-grid{gap:16px}.business-account .people-table .invitation-actions{margin-left:auto}}
/* Give driving permission its own column instead of nesting it under the role. */
.business-account .team-management-grid{grid-template-columns:minmax(0,1fr)}
.business-account .team-management-grid #invite{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr) auto;gap:16px;align-items:end}
.business-account .team-management-grid #invite label{margin:0;min-width:0}.business-account .team-management-grid #invite button{margin:0;min-height:44px}
.business-account .people-table:not(.invitations-table){min-width:820px}
.business-account .people-table:not(.invitations-table) th:first-child{width:30%}
.business-account .people-table:not(.invitations-table) th:nth-child(2){width:20%}
.business-account .people-table:not(.invitations-table) th:nth-child(3){width:23%}
.business-account .people-table:not(.invitations-table) th:nth-child(4){width:13%}
.business-account .people-table:not(.invitations-table) th:last-child{width:14%}
.business-account .people-table .driver-capability{margin:0;align-items:center}
.business-account .driving-assigned{font-size:12px;color:var(--rc-muted)}
@media(max-width:800px){.business-account .team-management-grid #invite{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.business-account .team-management-grid #invite{grid-template-columns:1fr}}
.business-account .team-management-grid>.card{margin-bottom:0}.business-account .team-management-grid{margin-bottom:24px}
.business-account .unified-team:not(.invitations-table){min-width:980px}
.business-account .unified-team:not(.invitations-table) th:first-child{width:25%}
.business-account .unified-team:not(.invitations-table) th:nth-child(2){width:17%}
.business-account .unified-team:not(.invitations-table) th:nth-child(3){width:19%}
.business-account .unified-team:not(.invitations-table) th:nth-child(4){width:16%}
.business-account .unified-team:not(.invitations-table) th:last-child{width:23%}
.business-account .team-invite-expiry{display:block;margin-top:6px;color:var(--rc-muted);font-size:11px;line-height:1.5}

.team-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-top:1px solid #e2e8f0;color:#64748b;font-size:13px}.team-pagination>div{display:flex;align-items:center;gap:14px}.team-pagination button{min-height:40px}.team-pagination button:disabled{opacity:.45;cursor:default}.team-pagination span{font-variant-numeric:tabular-nums}@media(max-width:600px){.team-pagination{flex-direction:column;align-items:stretch;padding:16px}.team-pagination>div{justify-content:space-between;gap:8px}}

/* Super-admin console shell. These selectors activate only after manage.js verifies super access. */
body.portal{background:#f5f6f8}.portal header{height:68px;z-index:20;box-shadow:0 1px 0 #e5e7eb}.portal header #logout{background:#fff;color:#16315c;border-color:#d7dfeb}.portal-layout{grid-template-columns:244px minmax(0,1fr);min-height:calc(100dvh - 68px)}.portal-workspace{min-width:0}.sidebar{top:68px;height:calc(100dvh - 68px);padding:28px 16px;background:#fff;border-color:#e5e7eb}.portal-toolbar{height:64px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 36px;position:sticky;top:68px;z-index:9}.portal-context{display:flex;align-items:center;gap:9px;color:#667085;font-size:12px}.portal-context strong{color:#172b4d;font-size:13px}.portal-toolbar-actions{display:flex;align-items:center;gap:10px}.portal-search{min-width:280px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#f8fafc;color:#667085;border-color:#dfe5ee;font-weight:500}.portal-search kbd{border:1px solid #d8dee9;background:#fff;border-radius:5px;padding:2px 6px;font:10px inherit;color:#7c8799}.admin-content{padding:32px 36px 50px}.portal .card,.stat-card{border-color:#e5e7eb;border-radius:12px;box-shadow:0 1px 2px rgba(16,24,40,.035)}
@media(max-width:1150px){.portal-layout{grid-template-columns:200px minmax(0,1fr)}.portal-toolbar{padding:0 24px}.portal-search{min-width:230px}}
@media(max-width:760px){.portal-layout{display:block}.portal-toolbar{top:64px;height:58px;padding:0 18px}.portal-context{display:none}.portal-search{min-width:0;flex:1}.portal-search kbd{display:none}.portal-toolbar .primary{font-size:0;padding:8px 12px}.portal-toolbar .primary:after{content:'New';font-size:12px}}

/* Full platform-console redesign based on the approved admin mockup. */
body.portal{--admin-bg:#f5f6f8;--admin-surface:#fff;--admin-border:#e5e7eb;--admin-text:#0f172a;--admin-muted:#64748b;--admin-soft:#f8fafc;--admin-brand:#1555e8;font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--admin-text);background:var(--admin-bg)}
.portal>header{display:none}.portal main{min-height:100dvh}.portal-layout{grid-template-columns:252px minmax(0,1fr);min-height:100dvh}.portal .sidebar{top:0;height:100dvh;padding:16px 12px;gap:4px;background:var(--admin-surface);border-color:var(--admin-border)}
.portal-side-brand{display:flex;align-items:center;gap:10px;padding:6px 8px 18px;color:var(--admin-text);text-decoration:none}.portal-side-brand img{width:34px;height:34px;padding:6px;border-radius:10px;background:#eaf0fe;filter:none}.portal-side-brand strong,.portal-side-brand small{display:block}.portal-side-brand strong{font-size:15px}.portal-side-brand small{font-size:12px;color:var(--admin-muted);font-weight:500;margin-top:1px}
.portal .nav-caption{padding:10px 10px 6px;margin:0;color:#94a3b8;font-size:10px;letter-spacing:.09em}.portal .sidebar>a:not(.portal-side-brand){min-height:40px;padding:9px 10px;border-radius:8px;color:#334155;font-size:13px}.portal .sidebar>a:not(.portal-side-brand):hover{background:#f8fafc;color:#0f172a}.portal .sidebar>a.active{background:#eaf0fe;color:#1447c4}.portal .nav-icon{font-size:14px;width:18px}.portal .sidebar-footer{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:10px;align-items:center;margin-top:auto;padding:14px 6px 4px;border-color:var(--admin-border)}.portal-admin-avatar{grid-row:1/3;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#eaf0fe;color:#1447c4;font-size:11px;font-weight:800}.portal .sidebar-footer strong{font-size:12px;color:var(--admin-text)}.portal .sidebar-footer p{font-size:10px;color:var(--admin-muted);margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.portal-toolbar{height:60px;top:0;padding:0 28px;background:rgba(245,246,248,.9);backdrop-filter:blur(10px);border-color:var(--admin-border)}.portal-context strong{font-size:12px}.portal-search{height:36px;min-height:36px;width:min(340px,40vw);padding:0 10px;border-radius:8px;background:#fff;font-size:12px}.portal-toolbar .primary{min-height:36px;height:36px;padding:0 14px;border-radius:8px}
.admin-content{max-width:1240px;margin:0;padding:24px 28px 64px}.portal .page-heading{align-items:flex-end;margin:0 0 20px;padding:0;background:transparent;color:var(--admin-text);border-radius:0}.portal .page-heading .eyebrow{display:none}.portal .page-heading h1{margin:0;font-size:26px;line-height:1.2;letter-spacing:-.02em;font-weight:800;color:var(--admin-text)}.portal .page-heading p{margin:4px 0 0;color:var(--admin-muted);font-size:13px}.portal .page-heading>.primary{background:var(--admin-brand);border-color:var(--admin-brand);color:#fff;border-radius:8px;min-height:36px;padding:0 14px}
.portal .stat-grid{gap:16px;margin-bottom:16px}.portal .stat-card{padding:16px 18px;border:1px solid var(--admin-border);border-radius:12px;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.06)}.portal .stat-label{font-size:12px;color:var(--admin-muted)}.portal .stat-icon{width:24px;height:24px;border-radius:7px;background:transparent;color:#94a3b8}.portal .stat-card strong{margin:6px 0 2px;font-size:28px;letter-spacing:-.02em;font-weight:800}.portal .stat-card small{font-size:11px;color:var(--admin-muted)}
.portal .card{margin-bottom:16px;border:1px solid var(--admin-border);border-radius:12px;box-shadow:0 1px 3px rgba(15,23,42,.06);background:#fff}.portal .panel-head{padding:16px 18px 12px}.portal .panel-head h2{font-size:15px;font-weight:800}.portal .panel-body{padding:0 18px 18px}.portal th{padding:10px 18px;background:#f9fafb;color:var(--admin-muted);font-size:11px;font-weight:700}.portal td{padding:12px 18px;font-size:12px}.portal tbody tr:hover{background:#f9fafb}.portal .business-mark{width:36px;height:36px;border:0;border-radius:10px;background:#eaf0fe}.portal .badge{padding:3px 9px;border-radius:999px}.portal .quiet-button{min-height:30px;padding:5px 10px;border-radius:8px}.portal .two-panels{gap:16px}.portal .status-total>div{background:#f9fafb;padding:14px}.portal .status-total strong{font-size:22px}.portal .detail-tabs{gap:4px}.portal .detail-tabs a{padding:10px 12px;font-weight:700}.portal .table-tools{padding:14px 18px}.portal .table-tools input,.portal .table-tools select{min-height:36px;background:#fff}
@media(max-width:1150px){.portal-layout{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:760px){.portal-layout{display:block}.portal .sidebar{position:static;height:auto;padding:10px 12px;flex-direction:row;overflow:auto;border-bottom:1px solid var(--admin-border)}.portal-side-brand,.portal .sidebar-footer,.portal .nav-caption{display:none}.portal-toolbar{top:0}.admin-content{padding:22px 18px 44px}.portal .page-heading{align-items:flex-start}.portal .stat-grid{grid-template-columns:1fr 1fr}}

/* The shared dashboard theme renders page headings on a blue banner. */
body.portal .admin-content .page-heading h1{color:#fff}
