/* One visual system for PokeScan and its native TCG Business pages. */
:root,html[data-theme="bright"]{
 color-scheme:light;--bg:#eef5ff;--card:rgba(255,255,255,.9);--text:#16335b;--muted:#627492;--accent:#2c70ff;--border:rgba(22,51,91,.13);--good:#228f60;--bad:#b1383d;
 --ui-rail:280px;--ui-top:80px;--ui-radius:22px;--paper:rgba(255,255,255,.9);--paper-strong:#fff;--ink:#16335b;--line:rgba(22,51,91,.12);--brand:#2c70ff;--brand-dark:#1747ad;--accent-red:#ef5350;--danger:#b1383d;--danger-soft:#fce9ec;--success:#228f60;--success-soft:#e5f6ee;--radius:22px;--shadow:0 18px 45px rgba(21,47,89,.09);--font-ui:"Avenir Next Condensed","Trebuchet MS","Gill Sans",sans-serif;
 --scheme-text:#16335b;--scheme-text-soft:#39577d;--scheme-muted:#627492;--scheme-info:#245bb0;--scheme-positive:#228f60;--scheme-positive-rgb:34 143 96;--scheme-danger:#b1383d;--scheme-warning:#92600c;
 --scheme-surface:#fff;--scheme-surface-rgb:255 255 255;--scheme-surface-soft:#f3f7ff;--scheme-surface-soft-rgb:243 247 255;--scheme-surface-raised:#eaf1ff;--scheme-surface-raised-rgb:234 241 255;
 --scheme-field:#fff;--scheme-field-rgb:255 255 255;--scheme-navigation:#10244a;--scheme-navigation-rgb:16 36 74;--scheme-button:#eaf1ff;--scheme-button-rgb:234 241 255;
 --scheme-primary:#ffe187;--scheme-primary-hover:#ffcf65;--scheme-selected:#e7efff;--scheme-selected-rgb:44 112 255;--scheme-border:rgba(22,51,91,.16);--scheme-border-rgb:110 140 183;--scheme-accent-border:#7ea6ff;--scheme-accent-border-rgb:126 166 255;
 --scheme-danger-border:#d9a0a4;--scheme-danger-border-rgb:177 56 61;--scheme-danger-surface:#fce9ec;--scheme-danger-surface-rgb:247 213 218;--scheme-warning-border:#dcb46d;--scheme-warning-border-rgb:200 150 55;--scheme-warning-surface:#fff5d9;--scheme-warning-surface-rgb:255 228 158;--scheme-shadow-rgb:21 47 89;
 --action-blue-bg:#e8efff;--action-blue-bg-hover:#d9e6ff;--action-blue-border:#a9c4ff;--action-blue-border-hover:#7da6fc;--action-blue-text:#1747ad;
 --action-red-bg:#fce9ec;--action-red-bg-hover:#f9d9df;--action-red-border:#d9a0a4;--action-red-border-hover:#bf777f;--action-red-text:#a92e39;
 --app-background:radial-gradient(circle at 10% 18%,#ffcb0533,transparent 20%),radial-gradient(circle at 84% 16%,#2c70ff29,transparent 18%),radial-gradient(circle at 88% 72%,#ef53501f,transparent 16%),linear-gradient(160deg,#f7fbff,#eef5ff 58%,#fdf8eb);
}
html[data-theme="dark"]{
 color-scheme:dark;--bg:#111e34;--card:#192a44;--text:#edf3ff;--muted:#a5b6d0;--accent:#8bb4ff;--border:#344966;--good:#6dd8a7;--bad:#ff9caa;--paper:#192a44;--paper-strong:#20334e;--ink:#edf3ff;--line:#344966;--brand:#82adff;--brand-dark:#adccff;--shadow:0 18px 45px #030d1b30;
 --scheme-text:#edf3ff;--scheme-text-soft:#d4e1f4;--scheme-muted:#a5b6d0;--scheme-info:#a8c9ff;--scheme-positive:#6dd8a7;--scheme-positive-rgb:109 216 167;--scheme-danger:#ff9caa;--scheme-warning:#f5d28b;
 --scheme-surface:#192a44;--scheme-surface-rgb:25 42 68;--scheme-surface-soft:#15243c;--scheme-surface-soft-rgb:21 36 60;--scheme-surface-raised:#253b5b;--scheme-surface-raised-rgb:37 59 91;--scheme-field:#15243c;--scheme-field-rgb:21 36 60;--scheme-button:#253b5b;--scheme-button-rgb:37 59 91;--scheme-primary:#f4cc72;--scheme-primary-hover:#ffe09a;--scheme-selected:#294775;--scheme-selected-rgb:96 148 235;--scheme-border:#344966;--scheme-border-rgb:95 128 177;--scheme-accent-border:#799fe0;--scheme-accent-border-rgb:121 159 224;--scheme-danger-surface:#482938;--scheme-danger-surface-rgb:72 41 56;--scheme-warning-surface:#40372a;--scheme-warning-surface-rgb:64 55 42;
 --action-blue-bg:#294775;--action-blue-bg-hover:#33588e;--action-blue-border:#557db9;--action-blue-border-hover:#8bb4ff;--action-blue-text:#e0ecff;--action-red-bg:#482938;--action-red-bg-hover:#633047;--action-red-border:#a56577;--action-red-border-hover:#e69baa;--action-red-text:#ffc4d0;
 --app-background:radial-gradient(circle at 82% 10%,#2c70ff19,transparent 32%),linear-gradient(160deg,#111e34,#15243c 70%,#232b3c);
}
body.workspace-body{background:var(--app-background);font-family:var(--font-ui);color:var(--text);line-height:1.5}
body.workspace-body::before{display:none}
.workspace-body .ui-topbar{position:sticky;top:0;height:var(--ui-top);z-index:1300;display:flex;gap:18px;padding:0 22px;background:radial-gradient(circle at 15% 0,#ffcb0510,transparent 28%),linear-gradient(120deg,#0d1e3b,#142d56);border-bottom:1px solid #ffffff20;box-shadow:0 4px 18px #0d234b15;color:#f8fbff}
.ui-brand-row{width:245px;min-width:0;display:flex;align-items:center;gap:9px}.ui-brand,.ui-brand:hover{color:#f8fbff;font-size:26px;letter-spacing:-.8px}.ui-brand-accent{color:#ffd565}.ui-brand-mark{color:#ffd565}.ui-brand small{color:#b6c9e7;font-size:10px;letter-spacing:1.8px}.ui-topnav{gap:3px;min-width:0}.ui-topnav-link{color:#d3dff2;font-size:14px;border-radius:12px;padding:9px 10px}.ui-topnav-link:hover{background:#ffffff10;color:white}.ui-topnav-link.is-active,html[data-theme="bright"] .workspace-body .ui-topnav-link.is-active{color:#132d52;background:linear-gradient(135deg,#ffcb05ee,#ef5350e0);box-shadow:none;font-weight:700}
.ui-topbar-tools{gap:7px}.ui-topbar .ui-icon-button{color:#dce7fb}.ui-topbar .ui-icon-button:hover,html[data-theme="bright"] .ui-topbar .ui-icon-button:hover{background:#ffffff14;color:#fff}.ui-topbar .ui-avatar{color:#ffe7a0;border-color:#a9c4eb55;background:#ffffff0c}.ui-topbar .ui-signin{color:#eef4ff;border-color:#b0c9eb55}.ui-topbar .ui-supporter-badge{color:#ffe7a0;border-color:#ffdb7e55;background:#ffe1870b}.ui-topbar .ui-member-preview-link,.ui-topbar .ui-member-preview-exit button{color:#ffe7a0;background:#ffffff0a;border-color:#ffdb7e66}.ui-menu-popover{color:var(--text);z-index:1500}.ui-menu-popover a{color:var(--text)}
.workspace-shell{grid-template-columns:var(--ui-rail) minmax(0,1fr);min-height:calc(100vh - var(--ui-top))}.workspace-sidebar{background:radial-gradient(circle at top,#ffcb0514,transparent 30%),linear-gradient(180deg,#10213f,#14294d);border-right:1px solid #ffffff16;padding:22px 16px 16px;color:#f8fbff;scrollbar-color:#516887 transparent}.ui-sidebar-heading{margin:0 8px 24px;gap:10px}.ui-sidebar-heading strong{color:#f8fbff;font-size:21px}.ui-sidebar-heading .ui-eyebrow{color:#a6bce0;letter-spacing:1.6px;font-size:10px}.ui-section-icon{color:#ffd565;background:#ffffff08;border-color:#ffffff16;border-radius:12px}.ui-nav-group-label{color:#a1b8dc;letter-spacing:1.5px;font-size:10px}.workspace-sidebar .ui-side-link{color:#f0f5ff;border-radius:12px;background:#ffffff0b;padding:10px 11px;margin:5px 0;min-height:40px;font-size:15px;line-height:1.35;transition:background .15s,color .15s}.workspace-sidebar .ui-side-link svg{color:#becfeb}.workspace-sidebar .ui-side-link:hover{background:#ffffff18;color:#fff}.workspace-sidebar .ui-side-link.is-active,html[data-theme="bright"] .workspace-sidebar .ui-side-link.is-active{background:linear-gradient(135deg,#ffcb05ee,#ef5350e0);color:#16335b;font-weight:700}.workspace-sidebar .ui-side-link.is-active svg{color:#16335b}.workspace-sidebar .ui-side-link.is-active:after{display:none}.ui-user-summary{color:#c4d3eb;border-top:1px solid #ffffff16;padding-top:15px}.ui-user-summary small{color:#e3edff;background:#ffffff12}.ui-user-summary a{color:#c4d3eb}.ui-sidebar-sets{border-color:#ffffff20}.ui-sidebar-sets summary,.workspace-sidebar .official-collection-sidebar-list button{color:#cedcf1}.ui-business-nav-group summary{list-style:none;cursor:pointer}.ui-business-nav-group summary::-webkit-details-marker{display:none}.ui-business-nav-group summary>svg:last-child{margin-left:auto}.ui-business-subnav{padding:0 0 7px 13px;border-left:1px solid #ffffff20;margin-left:17px}.ui-business-subnav .ui-side-link{font-size:14px;background:#ffffff06;min-height:35px}.ui-business-secondary{margin-top:24px;padding-top:13px;border-top:1px solid #ffffff16}
.workspace-content.page{padding:24px 26px 12px;max-width:none}.workspace-body .ui-page-heading{position:relative;overflow:hidden;margin:0 0 24px;padding:23px 25px;border:1px solid #ffffff65;border-radius:22px;background:linear-gradient(125deg,var(--paper-strong),var(--paper) 76%,#fff5ce99);box-shadow:var(--shadow);gap:20px}.ui-breadcrumb{color:var(--muted);font-size:11px;letter-spacing:.04em;margin-bottom:6px}.ui-breadcrumb>span:first-child{color:var(--muted)}.ui-page-heading h1{font-size:29px;font-weight:700;letter-spacing:-.8px;color:var(--text)}.ui-page-heading p{font-size:14px;margin:5px 0 0;color:var(--muted)}.workspace-body .ui-primary-button{background:linear-gradient(135deg,#ffcb05ee,#ef5350e0);border:0;color:#16335b;font-weight:700;border-radius:12px;box-shadow:0 6px 15px #d48c2520}.workspace-body .ui-primary-button:hover,html[data-theme="bright"] .ui-primary-button:hover{background:linear-gradient(135deg,#ffdc48,#f67e65);color:#16335b}.workspace-body .ui-secondary-button{background:var(--scheme-button);border:1px solid var(--border);color:var(--text);border-radius:12px}.ui-secondary-button:hover{background:var(--scheme-surface-raised)}
.workspace-body .card,.workspace-body .card .card{background:var(--card);border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow)}.workspace-body .card::before,.workspace-body .card::after{display:none}.workspace-body .card h2,.workspace-body .card h3{color:var(--text)}.workspace-body input:not([type=checkbox]):not([type=radio]):not([type=range]),.workspace-body select,.workspace-body textarea{background:var(--scheme-field);color:var(--text);border-color:var(--border);border-radius:12px}.workspace-body input:focus,.workspace-body select:focus,.workspace-body textarea:focus{border-color:var(--scheme-accent-border)!important;box-shadow:0 0 0 3px #2c70ff13}.workspace-body button:focus-visible,.workspace-body a:focus-visible,.workspace-body summary:focus-visible{outline-color:#8badff}.workspace-body table{color:var(--text)}.workspace-body th{background:var(--scheme-surface-soft);color:var(--muted)}.workspace-body th,.workspace-body td{border-color:var(--border)}.workspace-body tbody tr:hover,html[data-theme="bright"] .workspace-body tbody tr:hover{background:var(--scheme-surface-soft)}.workspace-body .ui-footer{color:var(--muted);border-color:var(--border)}.ui-footer a{color:var(--muted)}.ui-footer a:hover{color:var(--brand)}
.ui-wallet-breakdown,.ui-wallet-cost-dialog{color:var(--text);background:var(--paper-strong);border-color:var(--border);box-shadow:var(--shadow)}.ui-wallet-breakdown small{color:var(--muted)}.ui-wallet-breakdown>strong{color:var(--text)}.ui-wallet-breakdown a,.ui-wallet-cost-dialog>a{color:var(--brand-dark)}.ui-wallet-breakdown progress{accent-color:#2c70ff}.ui-wallet-popover .ui-coin-badge{background:linear-gradient(135deg,#112b4c,#192b46);border-color:#92bcff66}.workspace-body .cookie-consent{background:var(--paper-strong);color:var(--text);border-color:var(--border);box-shadow:var(--shadow)}.cookie-consent__title,.cookie-consent__text{color:var(--text)}.workspace-body .pokescan-modal__panel{background:var(--paper-strong);border-color:var(--border)}.ui-member-preview-banner{background:var(--scheme-warning-surface);border-color:var(--scheme-warning-border)}
/* Business content is the main page, sharing the global bar and sidebar. */
body.business-native{display:flex;flex-direction:column;height:auto;overflow-x:clip;overflow-y:visible}.business-native .workspace-content{height:auto;overflow:visible}.business-native .page-content{min-width:0}.business-native .page-header{margin-bottom:24px}.business-native .ui-footer{margin-top:28px}.business-native .page-header,.business-native .panel,.business-native .stat-card{box-shadow:var(--shadow)}.business-native .ui-page-heading{display:none}.business-native .page-content .inventory-table{display:table;grid-template-columns:none;gap:normal}.business-native .page-content table{width:100%}.business-native .ui-topbar button{width:auto}.business-native .ui-topbar .ui-avatar{width:33px;height:33px}.business-native .ui-wallet-cost-dialog form{display:flex}.business-native .ui-wallet-cost-dialog button{width:auto}.business-native .ui-wallet-cost-rows{margin:0}.business-native .ui-wallet-cost-dialog{padding:22px;width:min(620px,calc(100vw - 28px));max-width:620px}.business-native .ui-topbar .ui-coin-badge{display:inline-flex}.business-native .workspace-sidebar{height:calc(100vh - var(--ui-top));top:var(--ui-top)}
html[data-theme="dark"] .ui-page-heading,html[data-theme="dark"] .business-native .page-header{background:linear-gradient(125deg,#20334e,#1b2d48)}
@media(max-width:1499px){:root,html[data-theme]{--ui-top:124px}.workspace-body .ui-topbar{height:var(--ui-top);display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:70px 44px;gap:0 16px;padding:0 20px 10px}.ui-brand-row{width:auto;grid-column:1;grid-row:1}.ui-topbar-tools{grid-column:2;grid-row:1;justify-self:end}.ui-topnav{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:nowrap;justify-content:flex-start;width:100%;overflow-x:auto;scrollbar-width:none;gap:5px;min-height:44px}.ui-topnav::-webkit-scrollbar{display:none}.ui-topnav-link{flex:0 0 auto;font-size:14px;padding:8px 13px}.ui-topnav .ui-member-preview-link,.ui-topnav .ui-member-preview-exit{flex:0 0 auto}.ui-topnav .ui-member-preview-exit button{white-space:nowrap}.workspace-content.page{padding:22px}}
@media(min-width:1500px) and (max-width:1700px){.ui-brand-row{width:210px}.ui-topbar{gap:10px!important;padding-inline:18px!important}.ui-topnav-link{padding-inline:8px;font-size:13px}.ui-topbar-tools{gap:5px}}
@media(max-width:820px){:root,html[data-theme]{--ui-top:112px}.workspace-body .ui-topbar{padding:0 12px 8px;grid-template-rows:60px 44px;gap:0 8px}.ui-brand-row{gap:6px}.ui-brand{font-size:22px;gap:6px}.ui-brand-mark,.ui-brand-mark img{width:29px;height:32px}.ui-brand small{display:none}.ui-mobile-menu{display:inline-flex}.ui-topnav-link{padding:8px 11px;font-size:13px}.ui-topbar-tools{gap:4px}.ui-topbar .ui-icon-button{min-width:30px;height:32px;padding:5px}.ui-supporter-badge{display:none}.ui-language-menu summary>span{display:none}.ui-topbar .ui-avatar,.business-native .ui-topbar .ui-avatar{width:28px;height:28px;font-size:13px}.ui-topbar .ui-coin-badge{padding:4px 6px;min-height:34px;gap:3px;font-size:12px}.ui-topbar .ui-wallet-flame{width:25px;height:29px}.workspace-shell{grid-template-columns:minmax(0,1fr)}.workspace-sidebar{width:260px;position:fixed;left:0;top:var(--ui-top);height:calc(100vh - var(--ui-top));height:calc(100dvh - var(--ui-top));z-index:1200;transform:translateX(-100%);transition:transform .18s ease}.ui-sidebar-overlay{top:var(--ui-top);z-index:1190}body.ui-sidebar-open .workspace-sidebar{transform:translateX(0)}.workspace-content.page{padding:16px 13px 10px}.workspace-body .ui-page-heading{padding:19px 18px;margin-bottom:18px;border-radius:18px;flex-wrap:wrap;gap:14px}.ui-page-heading h1{font-size:25px}.ui-page-actions{gap:7px;flex-wrap:wrap}.workspace-body .card,.workspace-body .card .card{border-radius:18px}.business-native .page-header{padding:19px 18px;border-radius:18px;gap:12px}.business-native .page-header-side{margin-left:0}.ui-menu-popover{top:39px}.ui-wallet-breakdown{position:fixed;right:12px;top:58px;max-width:calc(100vw - 24px)}.ui-business-nav-group .ui-side-link{min-height:39px}}
@media(max-width:380px){.ui-brand-mark{display:none}.ui-brand{font-size:20px}.ui-topbar-tools{gap:2px}.workspace-body .ui-topbar{padding-inline:8px;column-gap:4px}.ui-topbar .ui-coin-badge{padding:4px;font-size:11px}.ui-topbar .ui-wallet-flame{width:22px}.ui-topbar .ui-icon-button{min-width:28px}.ui-topbar .ui-avatar{width:26px;height:26px}}
/* Native calendar headers stay beneath the shared navigation while scrolling. */
.business-native .dash-toolbar-shell{top:var(--ui-top)}
html:has(body.business-native.dashboard-page){scroll-padding-top:calc(var(--ui-top) + var(--dashboard-header-height,150px))}
.business-native .dash-section-heading{scroll-margin-top:calc(var(--ui-top) + 14px)}
/* The original business screens used literal white surfaces in a few widgets. */
html[data-theme="dark"] .business-native :is(.dash-toolbar,.dash-kpi,.dash-kpi-potential,.insight-potential,.dash-stock-grid .insight-price-panel,.business-brief,.company-contact-card,.legal-review-notes,.finance-report-notes,.dashboard-detail-dialog,.dashboard-detail-head,.dashboard-action-card,.dashboard-chart-empty,.dash-chart-empty,.shipping-sim-materials,.shipping-sim-alternatives,.shipping-sim-metric,.supply-calculator-history li){background:var(--paper-strong);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .business-native :is(.dash-segments,.dash-segments a.selected,.dash-section-nav a,.dashboard-detail-metrics>div,.dash-compare-track,.shipping-sim-methods){background:var(--scheme-surface-raised);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .business-native .dash-segments a.selected{background:var(--scheme-selected)}
html[data-theme="dark"] .business-native :is(.dash-badge,.buyer-rank,.dash-section-number){background:var(--scheme-surface-raised);color:var(--scheme-info)}
html[data-theme="dark"] .business-native :is(.dash-tooltip,.resolve-category,.resolve-category.is-selected){background:var(--paper-strong);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .business-native :is(.dash-positive>strong,.dash-kpi.dash-positive strong){color:var(--good)}
html[data-theme="dark"] .business-native :is(.dash-negative>strong,.dash-kpi.dash-negative strong){color:var(--bad)}
html[data-theme="dark"] .business-native :is(.dash-notice,.bulk-value-card){background:var(--scheme-warning-surface);color:var(--scheme-warning)}
#coinPurchasing #subscriptionHeading,#coinPurchasing #oneTimeHeading{color:var(--scheme-positive)}
#purchasePromotions .ui-welcome-bottom p strong{color:var(--scheme-positive)}
@media(max-width:340px){.ui-brand-row{gap:2px}.ui-brand{font-size:14px;letter-spacing:-.7px}.ui-topbar .ui-mobile-menu{min-width:24px;width:24px;padding:3px}.ui-topbar .ui-icon-button{min-width:25px}}
