/* Authenticated themes use the existing body classes and semantic tokens.
   Keep this sheet last: legacy component surfaces precede these scoped overrides.
   No layout dimensions or Matrix behavior are changed here. */
@media screen {
body.authenticated.theme-terminal {
 --app-bg:#050806;--app-background:#050806;--app-bg-secondary:#080e0b;
 --surface:#0d1510;--surface-card:#0d1510;--surface-elevated:#101b15;--surface-soft:#15231a;
 --hero-surface:#0b1810;--metric-hero:#0b1810;--metric-secondary:#0d1510;
 --text-primary:#e8f4ec;--text-secondary:#afc6b7;--text-muted:#8da99a;
 --border:#263b30;--border-strong:#5b7868;--accent-primary:#70f6a4;--accent-secondary:#a5c9ba;--on-accent:#06110b;
 --pnl-positive:#77d99c;--pnl-negative:#ff8792;--state-warning:#f0c674;--state-pending:#f0c674;
 --state-neutral:#9aaba2;--state-offline:#9aaba2;--state-syncing:#9ecfff;--state-synced:#77d99c;
 --focus:#b0ffd1;--chart-primary:#70f6a4;--chart-secondary:#a5c9ba;--chart-grid:#25372c;
 --radius-sm:4px;--radius-md:6px;--radius-lg:8px;--shadow:none;--glow:none;
 --theme-background:var(--app-bg);--theme-card:var(--surface-card);--theme-button:var(--accent-primary);
 --font-mono:'Cascadia Mono',Consolas,'Liberation Mono',monospace;
}
body.authenticated.theme-neon {
 --app-bg:#0c1018;--app-background:#0c1018;--app-bg-secondary:#111724;
 --surface:#151c29;--surface-card:#151c29;--surface-elevated:#181f2d;--surface-soft:#202a3b;
 --hero-surface:#142529;--metric-hero:#142529;--metric-secondary:#151c29;
 --text-primary:#eef2fb;--text-secondary:#b7c3d8;--text-muted:#98a7bf;
 --border:#303a50;--border-strong:#6e7c97;--accent-primary:#54e3b7;--accent-secondary:#b9a3ff;--on-accent:#06140f;
 --pnl-positive:#6adeaa;--pnl-negative:#ff889a;--state-warning:#f1ca7a;--state-pending:#f1ca7a;
 --state-neutral:#a6aec2;--state-offline:#a6aec2;--state-syncing:#91c8ff;--state-synced:#6adeaa;
 --focus:#d1c2ff;--chart-primary:#a0dfee;--chart-secondary:#b9a3ff;--chart-grid:#293349;
 --radius-sm:8px;--radius-md:12px;--radius-lg:16px;--shadow:0 8px 24px #0003;--glow:0 0 18px #54e3b708;
 --theme-background:radial-gradient(ellipse at 95% 0%,#b9a3ff0a,transparent 48%),var(--app-bg);
 --theme-card:linear-gradient(125deg,#54e3b705,#b9a3ff07),var(--surface-card);
 --theme-button:linear-gradient(110deg,#54e3b7,#78e9ca);
}
body.authenticated:is(.theme-terminal,.theme-neon) {
 /* Rebind legacy aliases on the same element as their source tokens. */
 --navy:var(--app-bg-secondary);--blue:var(--accent-primary);--pale:var(--surface-soft);--line:var(--border);
 --ink:var(--text-primary);--muted:var(--text-secondary);--green:var(--pnl-positive);--red:var(--pnl-negative);
 --gold:var(--state-warning);--panel:var(--surface-card);--text:var(--text-primary);
 --green-bg:color-mix(in srgb,var(--pnl-positive) 9%,transparent);--red-bg:color-mix(in srgb,var(--pnl-negative) 9%,transparent);
 --hover:color-mix(in srgb,var(--accent-primary) 8%,transparent);
 --chart-positive:var(--pnl-positive);--chart-negative:var(--pnl-negative);
 --state-success:var(--pnl-positive);--state-danger:var(--pnl-negative);
 --brand-glow:var(--glow);--data-grid:var(--border);--data-wave:var(--accent-secondary);
 --border-illuminated:var(--border-strong);--technical-divider:var(--border);
 --icon-active:var(--accent-primary);--icon-muted:var(--text-muted);
 background:var(--theme-background)!important;color:var(--text-primary);color-scheme:dark;
 scrollbar-color:var(--border-strong) var(--app-bg);
}
body.authenticated:is(.theme-terminal,.theme-neon)::before {display:none}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.topbar,.sidebar) {background:var(--app-bg-secondary)!important;border-color:var(--border)!important;box-shadow:none;backdrop-filter:none}
body.authenticated:is(.theme-terminal,.theme-neon) .topbar::before,
body.authenticated:is(.theme-terminal,.theme-neon) .topbar::after {display:none}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.brand-wordmark,.brand-name) {background:none;color:var(--text-primary);-webkit-text-fill-color:currentColor;text-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) .shell :is(.panel,.metric) {background:var(--theme-card);border-color:var(--border);box-shadow:var(--shadow);border-radius:var(--radius-md)}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.nav.active,.nav:hover,.sidebar-note,.mobile-bottom-nav button.active,.mobile-more-item.active) {background:var(--hover)!important;border-color:var(--border-strong)!important;color:var(--text-primary)!important;box-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.mobile-bottom-nav,.mobile-more-panel) {background:var(--app-bg-secondary);border-color:var(--border)}
body.authenticated:is(.theme-terminal,.theme-neon) .mobile-bottom-nav button.active::before {background:var(--accent-primary);box-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) :is(input,select,textarea) {background:var(--surface-soft);color:var(--text-primary);border-color:var(--border-strong)}
body.authenticated:is(.theme-terminal,.theme-neon) :is(input,textarea)::placeholder {color:var(--text-muted);opacity:1}
body.authenticated:is(.theme-terminal,.theme-neon) :is(input,select,textarea,button):disabled {opacity:.6}
body.authenticated:is(.theme-terminal,.theme-neon) :is(button.primary,.primary,.pgl-page-action) {background:var(--theme-button)!important;color:var(--on-accent)!important;border-color:var(--accent-primary)!important;box-shadow:none;text-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) :is(button.primary,.primary,.page-header-action):hover {filter:brightness(1.06);box-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) :is(button.secondary,.secondary,.chip,.period-chip,.segmented button) {background:var(--surface-soft);border-color:var(--border-strong);color:var(--text-primary);box-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.chip.active,.segmented .active) {background:var(--hover);border-color:var(--accent-primary);color:var(--accent-primary)}
body.authenticated:is(.theme-terminal,.theme-neon) :is(th,thead,.online-registration-table thead th,.online-registration-table tfoot td,.online-registration-table tfoot th) {background:var(--app-bg-secondary)!important;color:var(--text-secondary);border-color:var(--border)}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.live-table,.online-registration-table) {background:var(--surface-card)!important;color:var(--text-primary)}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.online-matrix-meta,.online-matrix-summary,.online-mtt-summary,.live-result,.live-summary,.online-room-totals) {background:var(--surface-elevated);border-color:var(--border);box-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.online-mtt-cell,.online-quick-add) {background:var(--surface-soft)!important;color:var(--text-primary)!important;border-color:var(--border-strong)!important;text-shadow:none;box-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.online-room-total,.room-total-value,.online-registration-table tfoot strong) {color:var(--text-primary);text-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.positive,.pnl-positive) {color:var(--pnl-positive)!important}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.negative,.pnl-negative) {color:var(--pnl-negative)!important}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.muted,.empty,.hint,.sub,.metric small) {color:var(--text-muted)}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.chart-line,.micro-line) {stroke:var(--chart-primary);filter:none}
body.authenticated:is(.theme-terminal,.theme-neon) .chart-dot {fill:var(--surface-card);stroke:var(--chart-primary);filter:none}
body.authenticated:is(.theme-terminal,.theme-neon) linearGradient[id^="pgl-area-"] stop {stop-color:var(--chart-primary)}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.bar.positive,.bar-fill.positive) {background:var(--pnl-positive)}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.bar.negative,.bar-fill.negative) {background:var(--pnl-negative)}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.volume .bar,.room-fill) {background:var(--accent-secondary)}
body.authenticated:is(.theme-terminal,.theme-neon) :is(dialog,.modal-card,.session-modal-card,.save-confirmation-card,.calendar-day-panel,.ticket-dialog,.online-draft-recovery) {background:var(--surface-elevated);color:var(--text-primary);border-color:var(--border-strong);box-shadow:var(--shadow)}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.settings-preferences,.settings-support,.micro-chart,.micro-hero) {border-color:var(--border);box-shadow:var(--shadow)}
body.authenticated:is(.theme-terminal,.theme-neon) #onlineDraftStatus[data-state="error"] {color:var(--pnl-negative)!important;font-weight:700}
body.authenticated:is(.theme-terminal,.theme-neon) #onlineDraftStatus[data-state="saving"] {color:var(--state-syncing)!important}
body.authenticated:is(.theme-terminal,.theme-neon) :focus-visible {outline:2px solid var(--focus)!important;outline-offset:2px}
body.authenticated:is(.theme-terminal,.theme-neon) #rakeRewards {color:var(--text-primary)}
body.authenticated:is(.theme-terminal,.theme-neon) #rakeRewards :is(h1,h2,h3,.rake-metric>strong,.rake-rooms summary) {color:var(--text-primary)}
body.authenticated:is(.theme-terminal,.theme-neon) #rakeRewards :is(p,small,h4,.rake-period>span,.rake-metric>span,.rake-table-heading) {color:var(--text-secondary)}
body.authenticated:is(.theme-terminal,.theme-neon) #rakeRewards :is(h2 i,.rake-details-label,.rake-room-name small,.rake-metric:first-child>strong,.rake-metric:last-child>strong) {color:var(--accent-primary)}
body.authenticated:is(.theme-terminal,.theme-neon) #rakeRewards :is(.rake-metric,.rake-rooms details,.rake-diagnostic,.rake-scope) {background:var(--theme-card);border-color:var(--border)}
body.authenticated:is(.theme-terminal,.theme-neon) #rakeRewards select {background:var(--surface-soft);color:var(--text-primary);border-color:var(--border-strong)}
body.authenticated.theme-terminal :is(.metric-value,.metric strong,.online-mtt-cell,.online-quick-add,.online-registration-table tfoot,.rake-metric>strong,.chart-label) {font-family:var(--font-mono);font-variant-numeric:tabular-nums;letter-spacing:0}
body.authenticated.theme-terminal .pgl-ambient {display:none!important}
body.authenticated.theme-terminal * {text-shadow:none!important}
body.authenticated.theme-neon .pgl-ambient {display:none!important}
body.authenticated.theme-neon .metric:first-child {border-color:color-mix(in srgb,var(--accent-primary) 32%,var(--border))}
/* Inert decoration stays static. No new animation or per-cell effects. */
body.authenticated:is(.theme-terminal,.theme-neon) :is(.panel,.metric,.topbar,.sidebar) {transition-property:opacity,transform}
}
/* Remaining legacy surfaces: palette only, never geometry or working-state DOM. */
@media screen {
body.authenticated:is(.theme-terminal,.theme-neon) #session :is(.live-meta,.live-timer-control,.live-result-field,.live-table-wrap,.online-matrix-scroll) {background:var(--surface-elevated)!important;border-color:var(--border)!important;box-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) .online-registration-table tbody tr:focus-within :is(td,th) {background:var(--hover)!important}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.quick-buyin-menu,.quick-buyin-trigger,.calendar-cell,.plan-card,.rooms-manager,.filters,.history td) {background:var(--surface-card);border-color:var(--border);box-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) .quick-buyin-trigger {background:var(--surface-soft);color:var(--text-secondary)}
body.authenticated:is(.theme-terminal,.theme-neon) .online-room-total {color:var(--text-primary)!important;text-shadow:none!important}
body.authenticated:is(.theme-terminal,.theme-neon) .online-quick-add[aria-invalid="true"] {border-color:var(--state-danger)!important}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.invalid-record-notice,.live-stat.is-pending) {background:color-mix(in srgb,var(--state-warning) 8%,var(--surface-card));color:var(--state-warning);border-color:var(--state-warning)}
body.authenticated:is(.theme-terminal,.theme-neon) #onlineDraftStatus[data-state="failed"] {color:var(--pnl-negative)!important;font-weight:700}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.registration-index,.quick-buyin-option:hover,.quick-buyin-option:focus-visible) {border-color:var(--border-strong);color:var(--accent-primary)}
body.authenticated:is(.theme-terminal,.theme-neon) .chart-grid {stroke:var(--chart-grid)}
body.authenticated:is(.theme-terminal,.theme-neon) .room-fill {box-shadow:none}
}
@media screen {
body.authenticated:is(.theme-terminal,.theme-neon) .topbar-wordmark strong {background:none;-webkit-text-fill-color:var(--text-primary);color:var(--text-primary);text-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.live-totals,.online-room-invested-total) {color:var(--text-secondary);text-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) .mobile-primary-nav button.active::before {background:var(--hover);border-color:var(--border)}
body.authenticated:is(.theme-terminal,.theme-neon) .mobile-more button.active {background:var(--hover)}
body.authenticated:is(.theme-terminal,.theme-neon) .pgl-logo-horizontal {filter:none}
}
@media screen {
body.authenticated:is(.theme-terminal,.theme-neon) :is(.bar.pos,.bar.neg,.bar.vol) {box-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) .bar.pos {background:var(--pnl-positive)}
body.authenticated:is(.theme-terminal,.theme-neon) .bar.neg {background:var(--pnl-negative)}
body.authenticated:is(.theme-terminal,.theme-neon) .bar.vol {background:var(--accent-secondary)}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.career-hero-metric,.career-chart) {background:var(--theme-card)!important;box-shadow:var(--shadow)!important}
body.authenticated:is(.theme-terminal,.theme-neon) .career-hero-metric::before {display:none!important}
body.authenticated:is(.theme-terminal,.theme-neon) .career-hero-metric .value {text-shadow:none}
body.authenticated.theme-terminal :is(.metric .value,.live-stat strong,.rake-room-number b) {font-family:var(--font-mono);font-variant-numeric:tabular-nums}
body.authenticated.theme-neon .career-hero-metric {background:linear-gradient(120deg,#54e3b70a,#b9a3ff10),var(--hero-surface)!important}
body.authenticated:is(.theme-terminal,.theme-neon) #rakeRewards :is(dt,summary) {color:var(--text-secondary)}
body.authenticated:is(.theme-terminal,.theme-neon) #rakeRewards dd {color:var(--text-primary)}
body.authenticated:is(.theme-terminal,.theme-neon) #rakeRewards :is(details,.rake-table-heading,.rake-diagnostic-grid) {border-color:var(--border)}
body.authenticated:is(.theme-terminal,.theme-neon) #rakeRewards :is(summary i,details[open]>summary) {color:var(--accent-primary)}
body.authenticated:is(.theme-terminal,.theme-neon) :is(.ticket-tabs button[aria-selected="true"],.ticket-filters button[aria-pressed="true"]) {background:var(--hover)!important;border-color:var(--accent-primary)!important;color:var(--text-primary)!important}
}
@media screen {
body.authenticated:is(.theme-terminal,.theme-neon) .pgl-ambient-rails {display:none!important}
}
@media screen {
body.authenticated:is(.theme-terminal,.theme-neon) .nav-section-label {color:var(--accent-secondary);text-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) .nav-section-label::after {background:var(--border)}
body.authenticated:is(.theme-terminal,.theme-neon) .topbar-wordmark span,
body.authenticated:is(.theme-terminal,.theme-neon) .page>.title-row h1::after {text-shadow:none}
body.authenticated:is(.theme-terminal,.theme-neon) .bar-track {background:var(--surface-soft)}
}

/* Release 051: approved terminal-market-grid presentation, translated to existing theme classes. */

@media screen {
html body.authenticated.theme-terminal .page>.title-row h1 {text-transform:none!important;font-size:32px;letter-spacing:-.045em;font-weight:650}
html body.authenticated.theme-terminal .page>.title-row h1::after {display:none}
html body.authenticated.theme-terminal .panel h2 {font-weight:600}
html body.authenticated.theme-terminal .metric::before {display:none!important}
html body.authenticated.theme-terminal .topbar-wordmark strong {font-size:13px;letter-spacing:.2em}
html body.authenticated.theme-terminal .topbar-wordmark span {font-size:8px;letter-spacing:.08em;color:var(--text-muted)}
html body.authenticated.theme-terminal #dashboard .filters {padding:10px;border:1px solid var(--border);background:var(--surface-card);border-radius:8px}
html body.authenticated.theme-terminal #dashboard .filters input,html body.authenticated.theme-terminal #dashboard .filters select {min-height:34px;padding-block:5px}
html body.authenticated.theme-terminal .online-matrix-panel {overflow:hidden}
html body.authenticated.theme-terminal .online-matrix-panel>.panel-heading {border-bottom:1px solid var(--border);padding-bottom:14px;margin-bottom:14px}
html body.authenticated.theme-terminal :is(.live-summary,.settings-preferences,.settings-data,.profile-form,.settings-account) {position:relative}
html body.authenticated.theme-terminal :is(.primary,.secondary,.pgl-page-action) {transition:background .15s ease,border-color .15s ease!important}
html body.authenticated.theme-terminal .metric:hover {transform:none}
@media(max-width:640px){html body.authenticated.theme-terminal .page>.title-row h1{font-size:28px}html body.authenticated.theme-terminal #dashboard .filters{width:100%}}
@media(prefers-reduced-motion:reduce){html body.authenticated.theme-terminal *{transition:none!important}}
}

@media screen {
html body.authenticated.theme-terminal {--app-bg:#080b0d;--app-bg-secondary:#0e1215;--surface-card:#101619;--surface-elevated:#141c20;--surface-soft:#182226;--border:#2c3a40;--border-strong:#60767c;--accent-primary:#91edb5;--text-primary:#e7eded;--text-secondary:#b6c4c8;--text-muted:#8c9ea5;background:#080b0d!important}
html body.authenticated.theme-terminal .topbar {background:#0e1215!important;border-bottom:1px solid #4d6258!important}
html body.authenticated.theme-terminal .sidebar {background:#0e1215!important;border-right:1px solid #2c3a40!important}
html body.authenticated.theme-terminal .nav {border-radius:2px!important;font-size:12px;border:1px solid transparent;padding-inline:12px}
html body.authenticated.theme-terminal .nav.active {background:#1a2d24!important;border:1px solid #446653!important;box-shadow:inset 3px 0 #91edb5!important}
html body.authenticated.theme-terminal .nav-section-label {font-family:Consolas,monospace;font-size:9px;letter-spacing:.13em;color:#8c9ea5}
html body.authenticated.theme-terminal .nav-section-label::before {content:'// ';color:#91edb5}
html body.authenticated.theme-terminal .shell :is(.panel,.metric) {background:#101619!important;border:1px solid #2c3a40;border-radius:2px!important;box-shadow:none!important}
html body.authenticated.theme-terminal #metricCards {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;border:1px solid #34464c;background:#34464c}
html body.authenticated.theme-terminal #metricCards .metric {border:0!important;min-height:88px;padding:15px 18px!important;border-radius:0!important;display:flex;flex-direction:column;justify-content:space-between}
html body.authenticated.theme-terminal #metricCards .label {font:10px/1.4 Consolas,monospace;text-transform:uppercase;letter-spacing:.05em;color:#93a8af}
html body.authenticated.theme-terminal #metricCards .value {font:600 25px/1.2 Consolas,monospace;margin-top:8px;letter-spacing:-.04em}
html body.authenticated.theme-terminal #metricCards .metric:nth-child(4) {background:#14281f!important}
html body.authenticated.theme-terminal #dashboard .grid {gap:16px}
html body.authenticated.theme-terminal #dashboard .grid>.panel {padding:0!important}
html body.authenticated.theme-terminal #dashboard .grid>.panel>h2 {font:11px/1.3 Consolas,monospace;letter-spacing:.08em;margin:0!important;padding:13px 16px;border-bottom:1px solid #2c3a40;background:#182126;color:#beced2!important}
html body.authenticated.theme-terminal #dashboard .grid>.panel>h2::before {content:'▸ ';color:#91edb5}
html body.authenticated.theme-terminal #dashboard .grid>.panel>:not(h2) {margin:18px;width:calc(100% - 36px)}
html body.authenticated.theme-terminal .chart-line {stroke-width:1.5!important;stroke:#a1e9b8!important;filter:none}
html body.authenticated.theme-terminal .bar {border-radius:0!important;box-shadow:none!important}
html body.authenticated.theme-terminal .bar-track {background:#1b282e!important;border-radius:0}
html body.authenticated.theme-terminal .room-fill {border-radius:0!important}
html body.authenticated.theme-terminal .online-matrix-panel>.panel-heading h2 {font:12px Consolas,monospace;letter-spacing:.09em;text-transform:uppercase}
html body.authenticated.theme-terminal .online-session-summary {border-top:2px solid #91edb5!important}
html body.authenticated.theme-terminal :is(.primary,.secondary,.pgl-page-action) {border-radius:2px!important;font-size:11px!important;letter-spacing:.05em;box-shadow:none!important}
html body.authenticated.theme-terminal :is(.settings-preferences,.settings-data,.profile-form,.settings-account) {border-top:2px solid #536a61!important}
html body.authenticated.theme-terminal #profile .panel h2 {font:11px Consolas,monospace;letter-spacing:.1em;padding-bottom:14px;border-bottom:1px solid #2c3a40}
html body.authenticated.theme-terminal #profile input,html body.authenticated.theme-terminal #profile select {border-radius:2px}
html body.authenticated.theme-terminal .mobile-primary-nav {background:#0e1215;border-top:1px solid #536a61}
html body.authenticated.theme-terminal .mobile-primary-nav button.active::before {border-radius:2px;background:#243c2d}
@media(max-width:900px){html body.authenticated.theme-terminal #metricCards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){html body.authenticated.theme-terminal #metricCards{grid-template-columns:repeat(2,minmax(0,1fr))}html body.authenticated.theme-terminal #metricCards .metric:nth-child(4){grid-column:span 1}html body.authenticated.theme-terminal #metricCards .value{font-size:23px}html body.authenticated.theme-terminal #dashboard .grid{grid-template-columns:1fr}}
}

@media screen and (min-width:901px){html body.authenticated.theme-terminal #metricCards .metric:last-child{grid-column:span 2}}

@media screen{html body.authenticated.theme-terminal .sidebar:has(~ .content > #dashboard.active) .nav[data-page="lifetime"]{background:#1a2d24!important;border:1px solid #446653!important;box-shadow:inset 3px 0 #91edb5!important}}

/* Release 051: approved neon-orbit presentation, translated to existing theme classes. */

@media screen {
html body.authenticated.theme-neon .page>.title-row h1 {text-transform:none!important;font-size:32px;letter-spacing:-.045em;font-weight:650}
html body.authenticated.theme-neon .page>.title-row h1::after {display:none}
html body.authenticated.theme-neon .panel h2 {font-weight:600}
html body.authenticated.theme-neon .metric::before {display:none!important}
html body.authenticated.theme-neon .topbar-wordmark strong {font-size:13px;letter-spacing:.2em}
html body.authenticated.theme-neon .topbar-wordmark span {font-size:8px;letter-spacing:.08em;color:var(--text-muted)}
html body.authenticated.theme-neon #dashboard .filters {padding:10px;border:1px solid var(--border);background:var(--surface-card);border-radius:8px}
html body.authenticated.theme-neon #dashboard .filters input,html body.authenticated.theme-neon #dashboard .filters select {min-height:34px;padding-block:5px}
html body.authenticated.theme-neon .online-matrix-panel {overflow:hidden}
html body.authenticated.theme-neon .online-matrix-panel>.panel-heading {border-bottom:1px solid var(--border);padding-bottom:14px;margin-bottom:14px}
html body.authenticated.theme-neon :is(.live-summary,.settings-preferences,.settings-data,.profile-form,.settings-account) {position:relative}
html body.authenticated.theme-neon :is(.primary,.secondary,.pgl-page-action) {transition:background .15s ease,border-color .15s ease!important}
html body.authenticated.theme-neon .metric:hover {transform:none}
@media(max-width:640px){html body.authenticated.theme-neon .page>.title-row h1{font-size:28px}html body.authenticated.theme-neon #dashboard .filters{width:100%}}
@media(prefers-reduced-motion:reduce){html body.authenticated.theme-neon *{transition:none!important}}
}

@media screen {
html body.authenticated.theme-neon {--app-bg:#101b22;--app-bg-secondary:#14232c;--surface-card:#1c303a;--surface-elevated:#243b46;--surface-soft:#28414b;--border:#3a5660;--border-strong:#7f9ca6;--accent-primary:#a3ead5;--accent-secondary:#d2b8f1;--text-primary:#edf6f4;--text-secondary:#c6dcd9;--text-muted:#a4bdbb;background:radial-gradient(ellipse at 95% 10%,#8994d52e,transparent 42%),radial-gradient(ellipse at 20% 65%,#4d9a9224,transparent 50%),#101b22!important;background-attachment:fixed!important}
html body.authenticated.theme-neon .topbar {background:#14232ce6!important;border-bottom:1px solid #abcfc52b!important}
html body.authenticated.theme-neon .sidebar {background:#14232cc9!important;border-right:1px solid #abcfc526!important}
html body.authenticated.theme-neon .nav {min-height:44px;border-radius:22px!important;margin-block:3px;font-size:12px;padding-inline:14px}
html body.authenticated.theme-neon .nav.active {background:#c6e8df!important;color:#1c3336!important;box-shadow:0 5px 15px #0002!important}
html body.authenticated.theme-neon .nav.active svg {color:#1c3336}
html body.authenticated.theme-neon .nav-section-label {color:#a3bcb8;font-size:8px;letter-spacing:.21em;padding-top:4px}
html body.authenticated.theme-neon .page>.title-row h1 {font-weight:450;letter-spacing:-.055em;font-size:35px}
html body.authenticated.theme-neon .shell :is(.panel,.metric) {background:linear-gradient(150deg,#d5fff20a,#e4d6ff05),#1c303ae8!important;border:1px solid #b5dcce28;border-radius:27px!important;box-shadow:0 12px 24px #050f1922!important}
html body.authenticated.theme-neon #metricCards {grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html body.authenticated.theme-neon #metricCards .metric {padding:18px 20px!important;min-height:95px;border-radius:18px!important}
html body.authenticated.theme-neon #metricCards .metric:nth-child(4) {order:-2;grid-column:span 2;background:linear-gradient(120deg,#c3e7dc,#bbc6df)!important;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
html body.authenticated.theme-neon #metricCards .metric:nth-child(8) {order:-1;grid-column:span 2;background:#cdbde51a!important}
html body.authenticated.theme-neon #metricCards .metric:nth-child(4) .label {max-width:80px;color:#314a4f!important;text-transform:none;font-size:13px;line-height:1.5}
html body.authenticated.theme-neon #metricCards .metric:nth-child(4) .value {color:#152f35!important;font-size:40px;white-space:nowrap;margin-top:0}
html body.authenticated.theme-neon #metricCards .label {text-transform:none;font-size:11px;letter-spacing:0;color:#b4cdcd}
html body.authenticated.theme-neon #metricCards .value {font-size:28px;font-weight:500;letter-spacing:-.05em;margin-top:9px}
html body.authenticated.theme-neon #dashboard .grid {grid-template-columns:1.4fr 1fr;gap:20px}
html body.authenticated.theme-neon #dashboard .grid>.panel {padding:25px!important}
html body.authenticated.theme-neon #dashboard .grid>.panel:has(#cumulativeChart) {grid-column:1;grid-row:1}
html body.authenticated.theme-neon #dashboard .grid>.panel:has(#monthBars) {grid-column:2;grid-row:1}
html body.authenticated.theme-neon #dashboard .grid>.panel>h2 {text-transform:none;font-weight:500;letter-spacing:-.02em;font-size:15px;color:#dae8e5!important}
html body.authenticated.theme-neon #dashboard .grid>.panel>h2::after {content:'';display:block;width:32px;height:3px;background:#d2b8f1;border-radius:2px;margin-top:12px}
html body.authenticated.theme-neon .chart-line {stroke:#a9e2d3!important;stroke-width:3!important;filter:none}
html body.authenticated.theme-neon .chart-grid {stroke:#91ada638!important;stroke-dasharray:2 7}
html body.authenticated.theme-neon .bar {border-radius:9px 9px 2px 2px!important}
html body.authenticated.theme-neon .bar-track {background:#dfedff09!important;border-radius:9px}
html body.authenticated.theme-neon .online-session-summary {background:#213b44!important;border-radius:20px!important}
html body.authenticated.theme-neon .online-session-summary h2 {text-transform:none;font-size:15px;letter-spacing:-.02em}
html body.authenticated.theme-neon .online-matrix-panel {background:#192c36!important;border-radius:16px!important;box-shadow:0 10px 30px #0002!important}
html body.authenticated.theme-neon .online-matrix-panel>.panel-heading h2 {font-size:17px;text-transform:none;letter-spacing:-.03em;font-weight:500}
html body.authenticated.theme-neon :is(.primary,.pgl-page-action) {border-radius:24px!important;background:#c6e8df!important;color:#1c3336!important;border-color:#c6e8df!important;text-transform:none!important;font-weight:600;box-shadow:none!important}
html body.authenticated.theme-neon .secondary {border-radius:24px!important;background:transparent!important;border-color:#7f9e9b!important}
html body.authenticated.theme-neon #profile .panel {padding:26px!important}
html body.authenticated.theme-neon #profile .panel h2 {text-transform:none;font-size:19px;letter-spacing:-.035em;font-weight:500;color:#e3f0eb}
html body.authenticated.theme-neon #profile .settings-grid {grid-template-columns:1.2fr 1fr;gap:20px}
html body.authenticated.theme-neon #profile .settings-preferences {background:linear-gradient(130deg,#afded41b,#cebaec11),#1c303ae8!important}
html body.authenticated.theme-neon #profile input,html body.authenticated.theme-neon #profile select {border-radius:13px;background:#132832;border-color:#718f97}
html body.authenticated.theme-neon .mobile-primary-nav {background:#1a3039ee;border-top:1px solid #abcfc530}
html body.authenticated.theme-neon .mobile-primary-nav button.active::before {border-radius:14px;background:#c6e8df28;border-color:#c6e8df60}
@media(max-width:640px){html body.authenticated.theme-neon #metricCards{grid-template-columns:repeat(2,minmax(0,1fr))}html body.authenticated.theme-neon #metricCards .metric:nth-child(4){grid-column:1/-1;min-height:105px}html body.authenticated.theme-neon #metricCards .metric:nth-child(8){grid-column:1/-1}html body.authenticated.theme-neon #metricCards .metric:nth-child(4) .value{font-size:35px}html body.authenticated.theme-neon #dashboard .grid,html body.authenticated.theme-neon #profile .settings-grid{grid-template-columns:1fr}html body.authenticated.theme-neon #dashboard .grid>.panel:has(#monthBars),html body.authenticated.theme-neon #dashboard .grid>.panel:has(#cumulativeChart){grid-column:auto;grid-row:auto}html body.authenticated.theme-neon #profile .panel{padding:20px!important}html body.authenticated.theme-neon .page>.title-row h1{font-size:30px}}
}

@media screen{html body.authenticated.theme-neon .sidebar:has(~ .content > #dashboard.active) .nav[data-page="lifetime"]{background:#c6e8df!important;color:#1c3336!important;box-shadow:0 5px 15px #0002!important}}

@media screen and (min-width:641px){html body.authenticated.theme-neon #metricCards .metric:last-child{grid-column:span 2}}
/* Shared authenticated component coverage. Matrix geometry and controls keep their original dimensions. */
@media screen {
html body.authenticated.theme-terminal .page:not(#dashboard):not(#session):not(#profile) .panel>h2 {font:11px/1.4 Consolas,monospace;letter-spacing:.08em;text-transform:uppercase;border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:16px}
html body.authenticated.theme-terminal :is(.career-metrics,.performance-cards) {gap:1px;background:var(--border);border:1px solid var(--border)}
html body.authenticated.theme-terminal :is(.career-metrics,.performance-cards) .metric {border:0!important;border-radius:0!important}
html body.authenticated.theme-terminal :is(dialog,.session-modal-card,.calendar-day-panel,.save-confirmation-card) {border-radius:3px;box-shadow:none}
html body.authenticated.theme-terminal :is(.session-modal-card,.calendar-day-panel,.save-confirmation-card,dialog) h2 {font:14px/1.4 Consolas,monospace;letter-spacing:.02em}
html body.authenticated.theme-terminal :is(.performance-room-row,.performance-room-chart-row,.rake-rooms details,.history td) {border-color:var(--border)}
html body.authenticated.theme-terminal :is(.chart-line,.pgl-micro) {filter:none}
html body.authenticated.theme-neon .page:not(#dashboard):not(#session):not(#profile) .panel>h2 {text-transform:none;letter-spacing:-.02em;font-size:16px;font-weight:500;color:var(--text-primary)}
html body.authenticated.theme-neon :is(.session-modal-card,.calendar-day-panel,.save-confirmation-card,dialog) {border-radius:22px;border-color:var(--border-strong);background:var(--surface-elevated);box-shadow:0 16px 36px #050f1940}
html body.authenticated.theme-neon :is(.session-modal-card,.calendar-day-panel,.save-confirmation-card,dialog) h2 {text-transform:none;letter-spacing:-.035em;font-weight:550}
html body.authenticated.theme-neon #rakeRewards .rake-metric {border-radius:18px;background:linear-gradient(150deg,#d5fff20a,#e4d6ff05),var(--surface-card);border-color:var(--border)}
html body.authenticated.theme-neon :is(.performance-room-chart-value>i,.room-track) {border-radius:8px}
html body.authenticated.theme-neon #metricCards .metric:nth-child(4) {flex-wrap:wrap}
html body.authenticated.theme-neon #metricCards .metric:nth-child(4) .value {white-space:normal}
html body.authenticated.theme-neon #metricCards .metric:nth-child(4) .value.bad {color:#8f233d!important}
html body.authenticated:is(.theme-terminal,.theme-neon) .metric .value {min-width:0;max-width:100%;overflow-wrap:anywhere}
html body.authenticated:is(.theme-terminal,.theme-neon) .draft-safety-bar button {border-radius:0!important;background:transparent!important;box-shadow:none!important}
html body.authenticated:is(.theme-terminal,.theme-neon) :is(.online-mtt-cell,.online-quick-add) {filter:none;backdrop-filter:none}
html body.authenticated:is(.theme-terminal,.theme-neon) :is(.panel,.metric,.sidebar,.topbar) {backdrop-filter:none!important}
html body.authenticated.theme-neon .nav.active .pgl-icon,
html body.authenticated.theme-neon .sidebar:has(~ .content > #dashboard.active) .nav[data-page="lifetime"] .pgl-icon {color:#1c3336}
@media(max-width:360px){html body.authenticated.theme-neon #metricCards .metric:nth-child(4) .value{font-size:30px}}
}
/* Stack Orbit chart modules before their twelve-month labels become crowded. */
@media screen and (min-width:641px) and (max-width:1100px){
 html body.authenticated.theme-neon #dashboard .grid {grid-template-columns:minmax(0,1fr)}
 html body.authenticated.theme-neon #dashboard .grid>.panel:has(#monthBars),
 html body.authenticated.theme-neon #dashboard .grid>.panel:has(#cumulativeChart) {grid-column:auto;grid-row:auto}
}

/* Dashboard navigation is scoped to the sidebar, avoiding whole-page :has invalidation while editing the Matrix. */
/* Financial pages use the same heading and card language as the selected dashboard. */
@media screen {
 html body.authenticated.theme-terminal #rakeRewards .rake-metric {border-radius:2px;background:var(--surface-card);border-color:var(--border);box-shadow:none}
 html body.authenticated.theme-terminal #rakeRewards .rake-header h1 {font-size:32px;font-weight:650;letter-spacing:-.045em;text-transform:none}
 html body.authenticated.theme-neon #rakeRewards .rake-header h1 {font-size:35px;font-weight:450;letter-spacing:-.055em;text-transform:none}
 html body.authenticated:is(.theme-terminal,.theme-neon) #rakeRewards .rake-header h1 i {display:none}
 html body.authenticated.theme-terminal .page:not(#dashboard):not(#session):not(#profile) .panel-heading h2 {font:11px/1.4 Consolas,monospace;letter-spacing:.08em;text-transform:uppercase;border-bottom:1px solid var(--border);padding-bottom:12px}
 html body.authenticated.theme-neon .page:not(#dashboard):not(#session):not(#profile) .panel-heading h2 {font-size:16px;font-weight:500;letter-spacing:-.02em;text-transform:none}
 html body.authenticated:is(.theme-terminal,.theme-neon) .page:not(#dashboard):not(#session):not(#profile) .panel-heading h2::after {display:none}
 @media(max-width:640px){html body.authenticated.theme-terminal #rakeRewards .rake-header h1{font-size:28px}html body.authenticated.theme-neon #rakeRewards .rake-header h1{font-size:30px}}
}
