/* Account and staff surfaces share the desktop app's charcoal and light blue. */
.portal-surface {
  --ink:#202022; --well:#29292c; --line:#414145; --mute:#b3b3ba;
  --paper:#f1f1f3; --accent:#93b9d7; --panel:#29292c; --field:#222225;
  min-height:100vh; background:var(--ink); color:var(--paper);
}
.portal-surface #app {min-height:100vh;display:flex;flex-direction:column}
.portal-surface #main {flex:1}
.portal-surface .member-head,.portal-surface header,.portal-surface footer {background:#252527}
.portal-surface .member-head {border-bottom:1px solid var(--line)}
.portal-surface .brand img[src*="parent"],.member-nav .brand img {filter:grayscale(1)}
.portal-surface .member-nav {min-height:72px;gap:22px}
.member-nav .profile-link {margin-left:auto;display:flex;align-items:center;gap:10px;font-size:14px}
.profile-avatar {width:32px;height:32px;flex:none;display:inline-grid;place-items:center;object-fit:cover;border-radius:50%;color:#dcebf5;background:#36424d;font-size:13px;font-weight:650}
.portal-tabs {display:flex;gap:26px;align-items:stretch}
.portal-tabs a {color:var(--mute);font-size:14px;font-weight:600;display:flex;align-items:center;padding:9px 1px 12px;position:relative}
.portal-tabs a:hover,.portal-tabs [aria-current] {color:var(--paper)}
.portal-tabs [aria-current]::after {content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;background:var(--accent);border-radius:8px}
.portal-surface .sport-switch>summary,.portal-surface .sport-menu {background:#303033;border-color:#49494d}
.portal-surface .sport-menu a:hover,.portal-surface .sport-menu a:focus-visible {background:#414145}
.portal-surface .sport-menu a.chosen {background:#38434d}
.portal-surface .sport-menu small,.portal-surface .sport-switch summary small {color:#c4c5ca}
.portal-surface .sport-switch[open]>summary {border-color:var(--accent)}
.portal-surface :focus-visible {outline-color:var(--accent)}
.portal-surface .portal-panel,.portal-surface .bill-row,.portal-surface .manage-panel,.portal-surface .alongside,.portal-surface .clubworkspace>div,.portal-surface .clubworkspace form,.portal-surface .account-story {background:var(--panel);border:1px solid var(--line)}
.portal-panel {border-radius:14px;min-width:0;padding:24px}
.portal-surface .btn,.portal-surface button,.portal-surface select {font-family:inherit}
.portal-surface .btn {border-radius:8px;min-height:40px;padding:8px 16px;font-weight:600;font-size:14px}
.portal-surface .btn.primary {background:var(--accent);color:#14212c}
.portal-surface .btn.outline,.row-action {color:var(--paper);border:1px solid #535358;background:#303033}
.portal-surface .btn.outline:hover,.row-action:hover {background:#3a3b40;border-color:#77787e}
.portal-surface .row-action {display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 12px;border-radius:7px;font:inherit;font-size:14px;white-space:nowrap}
.portal-surface input:not([type=range]):not([type=file]),.portal-surface select,.portal-surface textarea {color:var(--paper);background:var(--field);border-color:#525257}
.portal-surface select {appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%23c9cbd0' stroke-width='1.5'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:32px}
.portal-surface .desk-page,.portal-surface .account-ledger {padding-block:clamp(30px,4.5vw,64px) clamp(45px,7vw,85px)}
.desk-page .eyebrow,.portal-surface .account-ledger .eyebrow {color:#a6c4db;margin:0 0 10px;font-size:12px}
.desk-page h1,.portal-surface .account-ledger h1,.portal-surface .manage-id h1 {font-size:clamp(36px,4vw,56px);letter-spacing:-.055em;line-height:1.06}
.portal-surface .account-ledger h1 em,.portal-surface .manage-id h1 em {color:inherit;font:inherit}
.desk-page h2,.portal-surface .account-ledger>h2 {font-size:clamp(21px,2vw,26px);letter-spacing:-.035em;line-height:1.15}
.desk-page .page-lead {color:var(--mute);margin:12px 0 28px;font-size:16px}
.workspace-title,.membership-line,.photo-edit,.dialog-membership,.quota-list,.table-sport,.table-sports,.table-sports span {display:flex;align-items:center;gap:12px}
.workspace-title {gap:16px}.workspace-title .badge {width:62px;height:62px}
.workspace-title .eyebrow {margin-bottom:5px}
.membership-line {color:var(--mute);margin:16px 0 0;font-size:14px}
.state-pill,.status-badge {display:inline-flex;border-radius:5px;padding:3px 8px;font-size:13px;line-height:1.35;font-weight:600;white-space:nowrap}
.state-pill,.status-badge.active {background:#31414d;color:#b9d9f1}
.status-badge.trial {background:#423a54;color:#e3d2fa}.status-badge.ending {background:#4a3b2c;color:#f1ce9c}.status-badge.ended {background:#3d3d41;color:#cacbd1}
.trial-explain {margin-top:10px}
.download-grid {display:grid;grid-template-columns:minmax(0,1.9fr) minmax(220px,.85fr);gap:18px;margin-top:30px;align-items:stretch}
.installer-list {margin-top:16px}
.installer-row {display:grid;align-items:center;gap:16px;grid-template-columns:42px 1fr auto;padding:20px 0;border-top:1px solid var(--line)}
.installer-row:last-child {padding-bottom:2px}
.installer-row h3 {font-size:18px;letter-spacing:-.025em}
.installer-row p,.device-summary>p,.security-card>p,.photo-edit small {color:var(--mute);font-size:14px;margin-top:5px}
.installer-row .os-icon,.panel-symbol {display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#353539;color:#d4d5db}
.os-icon svg {width:22px;height:22px}.panel-symbol svg {width:22px;height:22px}
.installer-row select {margin-top:7px;width:fit-content;min-width:121px;font-size:14px;padding:4px 30px 4px 8px}
.installer-row .btn {gap:8px}
.device-summary,.security-card {display:flex;flex-direction:column;align-items:flex-start}
.device-summary .panel-symbol,.security-card .panel-symbol {margin-bottom:14px}
.device-summary .device-count {color:var(--paper);font-size:29px;font-weight:600;line-height:1;margin-top:13px}
.device-count small {font-size:20px;color:var(--mute);font-weight:400}
.device-summary .btn {margin-top:16px}
.panel-toolbar,.form-actions,.dialog-actions {display:flex;align-items:center;justify-content:space-between;gap:12px}
.panel-toolbar {flex-wrap:wrap}.short-filter {display:flex;align-items:center;gap:10px;font-size:14px}
.quota-list {padding:13px 0 17px;flex-wrap:wrap}
.device-quota {display:inline-flex;align-items:center;gap:8px;color:var(--mute);font-size:14px}
.device-quota img {width:22px;height:22px}.device-quota b {color:var(--paper);font-weight:600}
.table-wrap {position:relative;overflow-x:auto;max-width:100%;scrollbar-color:#55555a transparent}
.portal-table {border-collapse:collapse;width:100%;text-align:left;font-size:14px}
.portal-table th {font-weight:500;color:var(--mute);background:#303033;white-space:nowrap}
.portal-table td,.portal-table th {padding:12px;border:0;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.portal-table td {white-space:nowrap}.portal-table strong {display:block;font-weight:600}
.portal-table small {display:block;color:var(--mute);font-size:13px;margin-top:3px}
.portal-table td:last-child {text-align:right}
.table-sport .badge,.table-sports .badge {width:30px;height:30px}
.table-sports {flex-wrap:wrap}
.customer-row {cursor:pointer}
.customer-row:hover,.customer-row:focus-within {background:#333438}
.customer-name {display:flex;align-items:center;gap:8px}
.customer-link {font-weight:600;border-radius:3px}
.customer-row:hover .customer-link,.customer-link:focus-visible {color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.subscription-count {display:inline-grid;place-items:center;min-width:24px;padding:1px 6px;border-radius:6px;background:#33414b;color:#beddf2;font-size:13px;font-weight:600}
.customer-record .back-link {display:inline-block;margin-bottom:18px;color:var(--accent);font-size:14px}
.customer-record .back-link:hover,.reset-preview-link:hover {text-decoration:underline}
.portal-surface .record-head {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:none;border:0;padding:0;margin-bottom:24px}
.record-identity,.record-actions {display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.record-identity {min-width:0;flex-wrap:nowrap}.record-identity>div {min-width:0;overflow-wrap:anywhere}
.record-identity .profile-avatar {width:52px;height:52px;font-size:18px}
.record-identity h1 {font-size:clamp(29px,4vw,46px)}.record-identity p {margin:5px 0 2px}.record-identity small,.record-total {color:var(--mute);font-size:14px}
.record-section {padding:0;overflow:hidden;margin-top:18px}.record-section .panel-toolbar {padding:18px}
.record-section .portal-table td:first-child,.record-section .portal-table th:first-child {padding-left:18px}
.customer-row td:last-child:has(.subscription-count) {text-align:left}
.record-section .record-quotas {padding:0 18px 16px;color:var(--mute);font-size:14px}
.record-actions {gap:8px}.reset-preview-link {color:var(--accent);font-size:14px}
.staff-form {display:grid;gap:14px}.staff-form label {display:grid;gap:6px}
.portal-surface dialog .error {color:#ffbab9}.staff-form .error:empty {display:none}
.preview-recipient {margin-bottom:16px;overflow-wrap:anywhere}
@media(max-width:680px){.portal-panel.record-section {padding:0}.record-identity .profile-avatar {width:42px;height:42px}.record-section .panel-toolbar {padding:14px}}
.empty-state,.table-foot {color:var(--mute);padding:16px 12px;font-size:14px}
.profile-grid {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(250px,1fr);gap:18px;align-items:start}
.settings-card {display:grid;gap:17px}
.settings-card label,.staff-filters label,#change-demo-password label {display:grid;gap:6px;color:var(--mute);font-size:14px}
.settings-card .formpair {gap:14px}.settings-card .profile-avatar {width:56px;height:56px;font-size:20px}
.settings-card .photo-edit .upload-label {display:inline-flex;position:relative;align-items:center;overflow:hidden;color:var(--paper);cursor:pointer}
.upload-label input {position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.upload-label:focus-within {outline:2px solid var(--accent);outline-offset:2px}
.photo-edit small,.account-since small {display:block;color:var(--mute)}
.form-actions {justify-content:flex-start;margin-top:2px}.form-feedback {font-size:14px;color:#f5bcb9}
.security-card {gap:0}.security-card .btn {margin-top:18px}.account-since {border-top:1px solid var(--line);margin-top:22px;padding-top:14px;width:100%}.account-since strong {font-size:15px}
.staff-head .member-nav>strong {font-size:16px;font-weight:500;color:#d0d1d7}
.staff-indicator {margin-left:auto;font-size:13px;color:var(--mute)}
.portal-surface .desk-page.staff-page {padding-top:clamp(26px,3.3vw,48px)}
.staff-stats {display:grid;grid-template-columns:repeat(4,1fr);margin:22px 0;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}
.staff-stats>div {padding:18px 20px;display:grid;gap:7px}.staff-stats>div+div {border-left:1px solid var(--line)}
.staff-stats span {color:var(--mute);font-size:14px}.staff-stats strong {font-size:29px;letter-spacing:-.05em;line-height:1}
.staff-panel {padding:0;overflow:hidden}.staff-filters {padding:18px;display:grid;grid-template-columns:1.8fr 1fr .85fr 1.15fr;gap:12px}
.staff-search span {position:relative}.staff-search .icon {position:absolute;top:50%;transform:translateY(-50%);left:10px}
.staff-search input[type=search] {padding-left:36px!important}
.staff-filters input,.staff-filters select {height:40px;font-size:14px}
.staff-panel .portal-table th:first-child,.staff-panel .portal-table td:first-child,.table-foot {padding-left:18px}
.analytics-panel {margin-top:24px}.analytics-panel h2 {margin-bottom:20px}
.portal-surface dialog {background:var(--panel);color:var(--paper);border-color:#525257;box-shadow:0 18px 50px #0005}
.portal-surface dialog::backdrop {background:#101012b8}
.portal-surface .dialoghead h2 {font-size:26px;letter-spacing:-.04em}.portal-surface dialog .iconbtn {border-color:#535359}
.portal-surface dialog p {color:#c4c4cc}.dialog-actions {justify-content:flex-end;margin-top:20px;flex-wrap:wrap}
.dialog-membership {margin:4px 0 18px}.dialog-membership .badge {width:32px;height:32px}
.data-list {display:grid;grid-template-columns:auto 1fr;gap:10px;margin:0;padding:16px 0;border-block:1px solid var(--line);font-size:14px}
.data-list dt {color:var(--mute)}.data-list dd {text-align:right;overflow-wrap:anywhere;margin:0}
.portal-surface .danger-outline {border:1px solid #785454;background:transparent;color:#f0b8b8}
.portal-surface .cancel-confirm {background:#e5a9a8;color:#301819}
.portal-surface .portal-toast {position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:15;width:max-content;max-width:calc(100% - 24px);border:1px solid #617687;background:#303841;color:#ebf3fb;padding:11px 16px;border-radius:10px;font-size:14px}
.portal-surface #change-demo-password {display:grid;gap:10px}.portal-surface #change-demo-password .error {color:#ffbab9}
.portal-surface .price-card,.portal-surface .checkout {background:linear-gradient(135deg,color-mix(in srgb,var(--t) 13%,#29292c),#29292c 65%);border-color:color-mix(in srgb,var(--t) 42%,#424246)}
.portal-surface .checkouthead p,.portal-surface .checkout>p,.portal-surface .cancel-box p,.portal-surface .manage-panel>p {color:var(--mute)}
.portal-surface .preview-note,.portal-surface .notice,.portal-surface .segments,.portal-surface .segments button[aria-pressed=true],.portal-surface .walk-guide {background:#303034;color:var(--paper);border-color:var(--line)}
.portal-surface .foot {border:0}.portal-surface #app>footer {border-top:1px solid var(--line)}
@media(max-width:850px){
 .download-grid,.profile-grid {grid-template-columns:minmax(0,1.5fr) minmax(210px,1fr)}
 .portal-surface .shell {width:min(1168px,calc(100% - 40px))}
 .staff-filters {grid-template-columns:1.2fr 1fr}.staff-stats>div {padding:13px}
}
@media(max-width:680px){
 .download-grid,.profile-grid {grid-template-columns:1fr}.device-summary .device-count {margin-top:8px}
 .portal-tabs {gap:clamp(10px,3vw,24px);overflow-x:auto}.portal-tabs a {font-size:13px;white-space:nowrap}
 .portal-surface .member-nav {min-height:60px;gap:12px}.member-nav .profile-link>span:not(.profile-avatar){display:none}
 .portal-panel {padding:17px}.staff-panel {padding:0}.staff-filters {padding:12px}
 .portal-surface .shell {width:calc(100% - 28px)}.staff-stats {grid-template-columns:1fr 1fr}
 .staff-stats>div:nth-child(3) {border-left:0}.staff-stats>div:nth-child(n+3) {border-top:1px solid var(--line)}
 .installer-row {grid-template-columns:32px minmax(0,1fr) auto;gap:9px}.installer-row .os-icon {width:30px;height:32px}
 .installer-row .btn {padding:7px 9px}.installer-row .btn .icon {display:none}
 .workspace-title .badge {width:45px;height:45px}.formpair {grid-template-columns:1fr}
 .table-sports {min-width:180px}.staff-head .member-nav .brand b {display:block}
}
@media(prefers-reduced-motion:no-preference){
 .desk-page,.account-ledger {animation:portal-entry .18s ease-out}
 @keyframes portal-entry {from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
}
