/* ZERO'S EDGE / REPS OF RISK
   HQ-inspired obsidian and champagne-gold surface treatment.
   Reversible visual-only layer. Does NOT change the chart, simulated price,
   indicator role colors, P&L coloring, Buy/Sell, or interactive logic.
   Enable by keeping ror-hq-surfaces on <body> in index.html. */

body.ror-ui-2026.ror-hq-surfaces {
  --ror-hq-back: #060708;
  --ror-hq-deep: #0b0c0e;
  --ror-hq-surface: #111215;
  --ror-hq-raised: #17181b;
  --ror-hq-hover: #22211f;
  --ror-hq-line: rgba(209, 175, 119, .25);
  --ror-hq-line-strong: rgba(235, 195, 132, .54);
  --ror-hq-gold: #e7c38a;
  --ror-hq-copy: #eee8de;
  --ror-hq-subcopy: #b8b6b2;
  background:var(--ror-hq-back);
  color-scheme:dark;
}

/* Main structural surfaces: keep chart canvas, axes and trading overlays alone. */
body.ror-hq-surfaces :is(.left, .right) {
  background-color:var(--ror-hq-back);
}
body.ror-hq-surfaces .topbar {
  background:linear-gradient(110deg,#141416,#0a0b0d 52%,#101113)!important;
  border-color:var(--ror-hq-line)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.035),0 8px 22px rgba(0,0,0,.2);
}
body.ror-hq-surfaces :is(.chartTopControls, .topbarCenterStack) {
  background-color:transparent;
}
body.ror-hq-surfaces .chartTopControls {
  border-color:var(--ror-hq-line)!important;
}
body.ror-hq-surfaces .left {
  border-color:var(--ror-hq-line)!important;
}

/* Right-hand panels and left profile workspace: shared HQ finish. */
body.ror-hq-surfaces :is(
  #terminalStatsCard, #orderTicketCard, #repsOfRiskCard,
  .card.terminalCollapsibleCard, .card.actionControlCard
){
  background:linear-gradient(155deg,#191a1d 0%,#101114 50%,#0b0d10 100%)!important;
  border-color:var(--ror-hq-line)!important;
  box-shadow:inset 0 1px rgba(255,246,218,.04),0 7px 20px rgba(0,0,0,.2);
}
body.ror-hq-surfaces :is(
  .terminalStatsSummary, .orderTicketHeader, .terminalCollapsibleSummary,
  .repsOfRiskToggle
){
  background:linear-gradient(102deg,#222124,#141518 78%)!important;
  border-color:var(--ror-hq-line)!important;
  color:var(--ror-hq-copy);
}
body.ror-hq-surfaces :is(
  .terminalSectionLabel, .terminalSubsectionLabel, .orderTicketToolLabel,
  .repsDropdownSectionTitle
){
  color:var(--ror-hq-gold)!important;
}
body.ror-hq-surfaces :is(
  .orderTicketHint, .orderTicketPanelHint, .accountHint,
  .repsOfRiskBrandSubline, .repsDropdownState.is-muted
){
  color:var(--ror-hq-subcopy)!important;
}
body.ror-hq-surfaces :is(
  .terminalStatsCard .row, .terminalAccountActions,
  .orderTicketTools, .orderTicketWorkingRow, .orderTicketPresetRow,
  .orderTicketToolRow
){
  border-color:rgba(206,175,123,.18)!important;
}
body.ror-hq-surfaces :is(
  .orderTicketQtyBadge, .orderPriceBox, #qtyStepper,
  .orderTicketWorkingRow, .openSimCostNote
){
  background-color:#141518!important;
  border-color:rgba(206,175,123,.2)!important;
}
body.ror-hq-surfaces :is(.orderTicketQtyBadge, .orderTicketWorkingRow, .orderPriceLabel) {
  color:#e2c394;
}
body.ror-hq-surfaces :is(.orderPriceInput, .qtyInputControl) {
  background-color:#0c0d10!important;
  border-color:rgba(214,185,135,.3)!important;
  color:#f5efe4;
}

/* Workspace navigation: retain the meaningful active / trading state colors. */
body.ror-hq-surfaces .sidebarWorkspaceTabs {
  background:linear-gradient(115deg,#17181b,#0e1012)!important;
  border-color:var(--ror-hq-line)!important;
}
body.ror-hq-surfaces .sidebarWorkspaceTab:not(.is-active) {
  background:linear-gradient(155deg,#1b1c1f,#121316)!important;
  color:#ddd6c9;
  border-color:rgba(221,190,138,.22)!important;
}
body.ror-hq-surfaces .sidebarWorkspaceTab:not(.is-active):hover {
  background:linear-gradient(155deg,#29251f,#171719)!important;
  border-color:var(--ror-hq-line-strong)!important;
  color:#fff0d4;
}
body.ror-hq-surfaces :is(
  .controlSection, .accountSignedOut, .accountSignedIn,
  .repsDropdownSectionHead
) {
  border-color:rgba(205,172,117,.17)!important;
}

/* Neutral chart toolbar controls: preserve selected timeframes, Find, and modes. */
body.ror-hq-surfaces :is(
  .instrumentMarketSelect, .timeframeMoreWrap, .chartTimeframeControl,
  .chartTimeframeCurrent, .chartReviewMenu, .rorSoundTrialPanel,
  .chartTopControls .tipBtn.btn-matte,
  .chartTopControls .tipBtn.btn-draw,
  .timeframeQuickButton:not(.is-active),
  .orderTypeTab:not(.is-active),
  .qty-preset-btn:not(.is-active),
  .qty-step-btn
){
  background:linear-gradient(145deg,#1d1e20,#0e1012)!important;
  border-color:rgba(208,175,122,.3)!important;
  color:#e9e0d2;
}
body.ror-hq-surfaces :is(
  .instrumentMarketSelect, .timeframeMoreWrap, .timeframeQuickButton,
  .orderTypeTab, .qty-preset-btn, .qty-step-btn
){
  transition:background-color .17s ease,border-color .17s ease,color .17s ease;
}
body.ror-hq-surfaces :is(
  .timeframeQuickButton:not(.is-active),
  .orderTypeTab:not(.is-active), .qty-preset-btn:not(.is-active),
  .qty-step-btn
):hover:not(:disabled){
  border-color:var(--ror-hq-line-strong)!important;
  background:#29251f!important;
  color:#fff0d1!important;
}
body.ror-hq-surfaces :is(.orderTypeTabs, .chartReviewMenuHeading) {
  background:#151618!important;
  border-color:var(--ror-hq-line)!important;
}
body.ror-hq-surfaces :is(.orderTypeTab.is-active, .timeframeQuickButton.is-active) {
  border-color:rgba(237,193,119,.55)!important;
  box-shadow:inset 0 -2px #dcb477;
}

/* Drawing rail: neutral backgrounds; indicator role identifiers stay colored. */
body.ror-hq-surfaces .chartToolsRail {
  background:linear-gradient(165deg,#101114,#090b0e)!important;
  border-color:rgba(219,184,128,.27)!important;
}
body.ror-hq-surfaces .chartToolsRailToggle {
  background:linear-gradient(110deg,#242220,#151619)!important;
  border-color:rgba(222,187,129,.36)!important;
  color:#f1d6a7;
}
body.ror-hq-surfaces :is(.drawToolbar, .drawToolbarTitle) {
  background-color:transparent!important;
  border-color:rgba(213,176,119,.2)!important;
}
body.ror-hq-surfaces .chartRailToolButton:not(.toolActive):not(.is-on):not([aria-pressed="true"]) {
  background:transparent!important;
  border-color:transparent!important;
  color:#dfdedb;
}
body.ror-hq-surfaces .chartRailToolButton:not(.toolActive):not(.is-on):not([aria-pressed="true"]):hover {
  background:rgba(225,184,117,.095)!important;
  border-color:rgba(228,193,138,.3)!important;
  color:#fff1dc;
}
body.ror-hq-surfaces :is(.chartReviewMenu, .chartReviewMenuItem) {
  border-color:rgba(216,181,118,.26)!important;
}
body.ror-hq-surfaces .chartReviewMenuItem:not([aria-pressed="true"]):hover {
  background:rgba(224,177,104,.1)!important;
}

/* Replay and ancillary desk surfaces (not playback buttons / states). */
body.ror-hq-surfaces :is(
  .practiceReplayControls, .practiceReplayRewindModal,
  .chartReviewMenu, .rorChartTeamDialog, .emaSettingsWindow,
  .repsDropdownSectionHead, .rorSoundSettingsHeader
){
  border-color:var(--ror-hq-line)!important;
}
body.ror-hq-surfaces :is(.practiceReplayControls, .practiceReplayRewindModal) {
  background:linear-gradient(140deg,#1d1e20,#0d1013)!important;
}
body.ror-hq-surfaces :is(
  .practiceReplayHeader, .rorSoundSettingsHeader, .emaSettingsHeader
){
  background:linear-gradient(115deg,#24221f,#111316)!important;
  border-color:var(--ror-hq-line)!important;
}
body.ror-hq-surfaces :is(.practiceReplayLabel, .chartReviewMenuHeading, .rorSoundSettingsEyebrow) {
  color:var(--ror-hq-gold)!important;
}

/* Supporting pages / modals: align the neutral shells, not statuses or metrics. */
body.ror-hq-surfaces :is(
  .profileModal, .analyticsModal, .traderProfileModal,
  .rorSoundTrialPanel, .chartReviewMenu
){
  background:linear-gradient(150deg,#1a1b1d,#0e1013 65%,#090b0d)!important;
  border-color:var(--ror-hq-line)!important;
}
body.ror-hq-surfaces :is(
  .profileHeader, .analyticsHeader, .traderProfileHeader,
  .analyticsTopbar, .analyticsChartCard,
  .profileInfoCard, .analyticsStatCard
){
  background:linear-gradient(145deg,#1c1d20,#101114)!important;
  border-color:var(--ror-hq-line)!important;
}
body.ror-hq-surfaces :is(.profileSectionEyebrow, .analyticsSectionTitle) {
  color:var(--ror-hq-gold)!important;
}

/* Gentle, one-shot hover emphasis; no perpetual animations or layout movement. */
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  body.ror-hq-surfaces :is(
    .terminalCollapsibleSummary, .chartToolsRailToggle,
    .sidebarWorkspaceTab:not(.is-active)
  ) {
    transition:border-color .18s ease,filter .18s ease;
  }
  body.ror-hq-surfaces :is(.terminalCollapsibleSummary, .chartToolsRailToggle):hover {
    border-color:var(--ror-hq-line-strong)!important;
    filter:brightness(1.075);
  }
}
@media(prefers-reduced-motion:reduce){
  body.ror-hq-surfaces :is(
    .terminalCollapsibleSummary, .chartToolsRailToggle, .sidebarWorkspaceTab,
    .timeframeQuickButton, .orderTypeTab, .qty-preset-btn, .qty-step-btn
  ){transition:none!important}
}

/* 2026-11-22: HQ-style card finish without gold-filled metric blocks.
   Treat gold as an edge highlight only; keep trading status/action colors. */
body.ror-ui-2026.ror-hq-surfaces {
  --ror-hq-card-edge: rgba(222, 184, 120, .33);
  --ror-hq-card-edge-hover: rgba(246, 207, 142, .73);
  --ror-hq-card-glint: rgba(234, 196, 134, .16);
}

/* Real card shells, not chart canvases, price scales, or position indicators. */
body.ror-ui-2026.ror-hq-surfaces :is(
  .left > .card, .right > .card,
  #terminalStatsCard, #orderTicketCard, #repsOfRiskCard,
  #practiceReplayControls.practiceReplayControls,
  .practiceReplayControls.is-group-training, .practiceReplayRewindModal,
  .tradingBuddy, .lobbyHudPanel, .lobbyChatPanel, #lobbyOverlayCard,
  .sidebarWorkspaceTabs, .profileInfoCard, .analyticsStatCard, .analyticsChartCard
) {
  border-color: var(--ror-hq-card-edge) !important;
  background: linear-gradient(148deg, #181a1d 0%, #101215 62%, #0b0e11 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 6px 17px rgba(0, 0, 0, .22) !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* The open-sim controller has an unusually specific older blue shell rule. */
body.ror-ui-2026.ror-hq-surfaces #practiceReplayControls.practiceReplayControls.is-open-sim:not([hidden]) {
  border-color: var(--ror-hq-card-edge) !important;
  background: linear-gradient(148deg, #181a1d, #101215 62%, #0b0e11) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 6px 17px rgba(0, 0, 0, .22) !important;
}

/* Remove brown/gold header patches; labels remain lightly gold accented. */
body.ror-ui-2026.ror-hq-surfaces :is(
  .terminalStatsSummary, .orderTicketHeader, .terminalCollapsibleSummary,
  .repsOfRiskToggle, .practiceReplayHeader
) {
  background: linear-gradient(180deg, #1b1c1e, #121416) !important;
  box-shadow: none !important;
}
body.ror-ui-2026.ror-hq-surfaces .practiceReplayControls .practiceReplayHeader {
  background: transparent !important;
}

/* "Last" and "Bid/Ask" used to inherit old gold/blue radial gradients.
   A background-color override did not clear those background images. */
body.ror-ui-2026.ror-hq-surfaces #terminalStatsCard .terminalMarketRow {
  gap: 8px !important;
}
body.ror-ui-2026.ror-hq-surfaces #terminalStatsCard .terminalMarketRow > div,
body.ror-ui-2026.ror-hq-surfaces #terminalStatsCard .terminalMarketRow > div:first-child,
body.ror-ui-2026.ror-hq-surfaces #terminalStatsCard .terminalMarketRow > div:nth-child(2) {
  padding: 9px 10px !important;
  border: 1px solid rgba(221, 185, 125, .23) !important;
  border-radius: 9px !important;
  background: linear-gradient(150deg, #151719, #0d1013) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025) !important;
}
body.ror-ui-2026.ror-hq-surfaces #terminalStatsCard .terminalMarketRow > div:first-child::after {
  content: none !important;
  display: none !important;
}
body.ror-ui-2026.ror-hq-surfaces #terminalStatsCard #lastPx {
  text-shadow: none !important;
}

/* Long Bid/Ask pairs need to wrap between prices on narrow trading rails.
   Never shrink/truncate an actual market quote or let it cross the card edge. */
body.ror-ui-2026.ror-hq-surfaces #terminalStatsCard .terminalMarketRow > div {
  min-width: 0 !important;
  min-height: 76px !important;
}
body.ror-ui-2026.ror-hq-surfaces #terminalStatsCard #baPx {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

/* Other account figures stay a flat, readable data grid, not filled tiles. */
body.ror-ui-2026.ror-hq-surfaces #terminalStatsCard .row:not(.terminalMarketRow) > div,
body.ror-ui-2026.ror-hq-surfaces #terminalStatsCard .row:not(.terminalMarketRow) > div:hover {
  background: transparent !important;
  box-shadow: none !important;
}

/* Monitor-like shine only when hovered. No permanent bloom or movement. */
@media (hover: hover) {
  body.ror-ui-2026.ror-hq-surfaces :is(
    .left > .card, .right > .card,
    #terminalStatsCard, #orderTicketCard, #repsOfRiskCard,
    #practiceReplayControls.practiceReplayControls,
    .practiceReplayControls.is-group-training, .practiceReplayRewindModal,
    .tradingBuddy, .lobbyHudPanel, .lobbyChatPanel, #lobbyOverlayCard,
    .sidebarWorkspaceTabs, .profileInfoCard, .analyticsStatCard, .analyticsChartCard
  ):hover,
  body.ror-ui-2026.ror-hq-surfaces #practiceReplayControls.practiceReplayControls.is-open-sim:not([hidden]):hover {
    border-color: var(--ror-hq-card-edge-hover) !important;
    box-shadow: inset 0 1px 0 rgba(255, 246, 221, .095),
                0 0 0 1px rgba(223, 185, 118, .075),
                0 0 17px var(--ror-hq-card-glint),
                0 8px 20px rgba(0, 0, 0, .25) !important;
  }
  body.ror-ui-2026.ror-hq-surfaces #terminalStatsCard .terminalMarketRow > div:hover {
    border-color: var(--ror-hq-card-edge-hover) !important;
    box-shadow: inset 0 1px 0 rgba(255, 246, 221, .07),
                0 0 10px rgba(230, 191, 126, .11) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.ror-ui-2026.ror-hq-surfaces :is(
    .left > .card, .right > .card, #terminalStatsCard, #orderTicketCard,
    #repsOfRiskCard, #practiceReplayControls.practiceReplayControls,
    .practiceReplayControls.is-group-training, .practiceReplayRewindModal,
    .tradingBuddy, .lobbyHudPanel, .lobbyChatPanel, #lobbyOverlayCard,
    .sidebarWorkspaceTabs, .profileInfoCard, .analyticsStatCard, .analyticsChartCard
  ) { transition: none !important; }
}


/* 2026-11-22 HQ cohesion pass: neutral UI surfaces across Reps, without recoloring market information. */
body.ror-ui-2026.ror-hq-surfaces {
  --ror-hq-metal-border: rgba(218, 181, 121, .33);
  --ror-hq-metal-highlight: rgba(241, 202, 142, .65);
  --ror-hq-control: #151618;
  --ror-hq-control-deep: #0c0e10;
  --ror-hq-gold-soft: rgba(218, 173, 99, .12);
  --ror-hq-muted-text: #bfc0bd;
}

/* The current Profile / Trade navigation still used bright blue selected tabs. */
body.ror-ui-2026.ror-hq-surfaces .sidebarWorkspaceTab:is(.is-active,[aria-selected="true"]) {
  background:linear-gradient(155deg,#4c3823,#24201b 65%,#141518)!important;
  border-color:var(--ror-hq-metal-highlight)!important;
  color:#fff0cf!important;
  box-shadow:inset 0 1px rgba(255,245,217,.10),inset 0 -2px #d5a869!important;
}
body.ror-ui-2026.ror-hq-surfaces .sidebarWorkspaceTab:is(.is-active,[aria-selected="true"]) :is(svg,i,span) {
  color:inherit!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .repsOfRiskBrandIcon,.profileLearningLaunchIcon,
  .marketTimeGlyph,.rorLearningActionIcon
){
  background:linear-gradient(145deg,#28231e,#141619)!important;
  border-color:var(--ror-hq-metal-border)!important;
  color:#e8c793!important;
  box-shadow:none!important;
}
body.ror-ui-2026.ror-hq-surfaces .repsDropdownSectionHead {
  background:transparent!important;
  border-color:rgba(226,187,127,.16)!important;
}
body.ror-ui-2026.ror-hq-surfaces .repsDropdownSectionTitle {
  color:#eacb99!important;
}
body.ror-ui-2026.ror-hq-surfaces .repsDropdownSectionTitle :is(svg,i) {
  color:inherit!important;
}
body.ror-ui-2026.ror-hq-surfaces .repsDropdownState {
  background:#161719!important;
  border:1px solid var(--ror-hq-metal-border)!important;
  color:#d5cdc0!important;
}
body.ror-ui-2026.ror-hq-surfaces .repsDropdownState.is-gold {
  color:#f0c98b!important;
  background:#252018!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .accountControlSection,.repsLearningSection,.repsSessionsSection,.repsPartnerSection,
  .repsPromoCodeLine
){
  background:linear-gradient(148deg,#17191b,#0e1012 75%)!important;
  border-color:var(--ror-hq-metal-border)!important;
  box-shadow:inset 0 1px rgba(255,249,234,.035)!important;
}
body.ror-ui-2026.ror-hq-surfaces .repsOfRiskContent {
  background:transparent!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .accountSignedInMain,.accountProfileOnlyButton,.accountLogoutButton,
  .profileLearningLaunchButton,.trainingEntryButtonJoin
){
  background:linear-gradient(150deg,#202124,#101215)!important;
  border-color:rgba(221,186,129,.34)!important;
  color:#eee7dc!important;
  box-shadow:inset 0 1px rgba(255,255,255,.045)!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  #btnSessionStart,#btnGroupTrainingStart,#btnAccountOpen
){
  background:linear-gradient(140deg,#503c27,#2e251b 62%,#1b1b1a)!important;
  border-color:rgba(240,195,125,.68)!important;
  color:#fff0d6!important;
  box-shadow:inset 0 1px rgba(255,245,220,.11)!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .accountProfileOnlyButton,.accountLogoutButton,.profileLearningLaunchButton,
  .trainingEntryButton,#btnSessionStart,#btnGroupTrainingStart,#btnAccountOpen
):hover:not(:disabled) {
  border-color:var(--ror-hq-metal-highlight)!important;
  filter:brightness(1.09);
}
body.ror-ui-2026.ror-hq-surfaces .profileLearningLaunchCopy strong {
  color:#f3e6d0!important;
}
body.ror-ui-2026.ror-hq-surfaces .profileLearningLaunchCopy small,
body.ror-ui-2026.ror-hq-surfaces :is(.accountHint,.repsCopyStatus,.repsPromoCodeLead small) {
  color:var(--ror-hq-muted-text)!important;
}
body.ror-ui-2026.ror-hq-surfaces .repsPromoCodeLead span {
  color:#e3c291!important;
}
body.ror-ui-2026.ror-hq-surfaces #copyZeroFa.copyCodeButton {
  background:linear-gradient(155deg,#4a3724,#241e19)!important;
  border-color:rgba(235,189,115,.66)!important;
  color:#fff0d9!important;
  box-shadow:none!important;
}
body.ror-ui-2026.ror-hq-surfaces .apex-side-btn {
  background:linear-gradient(145deg,#282522,#14171a)!important;
  border-color:rgba(232,194,134,.44)!important;
  color:#f2e5cf!important;
  box-shadow:none!important;
}
/* Preserve the Apex artwork itself (it contains its own brand colors). */

/* Market selector, level control, learning tools, and top chart chrome. */
body.ror-ui-2026.ror-hq-surfaces :is(
  .marketTimePill,.rorTrainingPathToolbar,.chartTimeframeControl,
  .chartTimeframeCurrent,.topbarTooltipSlot,.tradingDaySnapshotBar
) {
  background:linear-gradient(145deg,#1a1c1e,#0e1012)!important;
  border-color:rgba(225,187,128,.32)!important;
  box-shadow:none!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .marketTimeLabel,.marketTimeDayLabel,.rorTrainingPathLevelLabel,
  .lesson-banner-kicker,.lesson-banner-step,.lesson-progress-percent,
  .tradingDaySnapshotKicker
) {
  color:#e9c68f!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .marketTimeMeta,.marketTimeDate,.chartTimeframeCurrent,
  .rorTrainingPathToolbar select,.rorTrainingPathToolbar option
){
  color:#e5ded3!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  #btnBeginnerStart,#btnTips,.beginnerStartButton,
  #rorTrainingLevel,.chartTopControls .instrumentMarketSelect,
  .timeframeMarketSelect,.chartReviewMenuTrigger
){
  background:linear-gradient(150deg,#222224,#101215)!important;
  border-color:rgba(218,185,132,.4)!important;
  color:#f0e5d2!important;
  box-shadow:none!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  #btnBeginnerStart,#btnTips,#rorTrainingLevel
):hover:not(:disabled) {
  border-color:var(--ror-hq-metal-highlight)!important;
  background:#2d271f!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  #btnTips[aria-pressed="true"],.rorLearningAction.is-active,
  .timeframeQuickButton.is-active,.orderTypeTab.is-active,
  .chartReviewMenuItem[aria-pressed="true"]
) {
  background:linear-gradient(150deg,#45341f,#201d19)!important;
  border-color:#d8b174!important;
  color:#ffedd1!important;
  box-shadow:inset 0 -2px #bc8c4c!important;
}
body.ror-ui-2026.ror-hq-surfaces #btnFind.chartIconButton {
  background:linear-gradient(145deg,#4d3821,#262019)!important;
  border:1px solid #caa269!important;
  color:#fff0d5!important;
  box-shadow:inset 0 1px rgba(255,240,202,.12)!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .chartTopControls .tipBtn:not(.btn-buy):not(.btn-sell),
  .chartReviewMenuTrigger,.timeframeQuickButton,
  .chartTimeframeControl select
):focus-visible {
  outline:2px solid #e8c186!important;
  outline-offset:2px;
}

/* Left chart rail keeps indicator-category colors and active drawing states. */
body.ror-ui-2026.ror-hq-surfaces :is(
  .drawToolbarTitle,.indicatorsToolbarTitle,.chartToolsRailToggleLabel
) {color:#e3bb7c!important}
body.ror-ui-2026.ror-hq-surfaces .chartRailToolButton:focus-visible,
body.ror-ui-2026.ror-hq-surfaces .rorIndicatorGroupToggle:focus-visible {
  outline:2px solid #e8c186!important;
  outline-offset:1px;
}

/* Lessons, onboarding and dialogs: make shells look like HQ, not blue popups.
   Scope backgrounds only, leaving instructional highlight overlays and states intact. */
body.ror-ui-2026.ror-hq-surfaces :is(
  .lesson-banner,.lesson-banner-inner,.lesson-banner-header,
  .startHereChapterMenu,.startHereChapterPickerHeader,
  .rorStartHereResumeCard,.desktopOnlyGateCard,
  .practiceReplayRewindModal,.rorActionDialogModal,.countdownModal,
  .rorResetModal,.openSimNewDayModal,.tradingLobbyModeCard,
  .tradingLobbyChoiceSection,.trainingSetupSessionFields,
  .tradingBuddy,.rorChartTeamCard,.emaSettingsWindow,
  .tipModal,.tipHoverCard,.modalWrap .modal
) {
  background:linear-gradient(145deg,#1b1d1f,#0d0f11 72%)!important;
  border-color:var(--ror-hq-metal-border)!important;
  box-shadow:0 16px 38px rgba(0,0,0,.4),inset 0 1px rgba(255,244,218,.045)!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .lesson-progress-shell,.lesson-banner-action-prompt,.lesson-banner-guide,
  .startHereChapterPickerLegend,.startHereChapterPickerFooter,
  .tradingLobbyModeTabs,
  .trainingSetupRulesList,.groupRefreshLoadingCard,
  .rorActionDialogNote,.emaSettingsBody,.rorDeckPresetCard
) {
  background:#151719!important;
  border-color:rgba(216,178,119,.28)!important;
}
/* Setup descriptions belong on the card surface, not in separate dark bars. */
body.ror-ui-2026.ror-hq-surfaces #lobbyOverlayCard .tradingLobbyChoiceDetails {
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .lesson-banner-title,.lesson-progress-step-title,
  .startHereChapterPickerHeading,.rorActionDialogHeadingText,
  .emaSettingsTitleGroup,.tradingLobbyChoiceSectionHead
){color:#f1e6d4!important}
body.ror-ui-2026.ror-hq-surfaces :is(
  .startHereChapterPickerKicker,.rorActionDialogEyebrow,
  .emaSettingsEyebrow,.tradingLobbyChoiceEyebrow,
  .trainingSetupSectionIndex,.trainingSetupSectionHeader
){color:#e6c187!important}
body.ror-ui-2026.ror-hq-surfaces :is(
  .lesson-progress-track,.profileLessonProgress
){background:#292a29!important;border-color:rgba(218,180,118,.3)!important}
body.ror-ui-2026.ror-hq-surfaces :is(
  .lesson-progress-track #lessonProgressFill
){background:linear-gradient(90deg,#9a7140,#f1c887)!important}

/* Profile, social, session history, guided risk, analytics, authentication. */
body.ror-ui-2026.ror-hq-surfaces :is(
  .authModal,.traderProfileModal,.directMessageModal,.disclosureModal,
  .guidedRiskFavoritesModal,.guidedRiskDeleteModal,
  .profileOptionsPanel,.profileSocialPanel,.profileSoloTabPanel,
  .profileLessonsSection,.profileDropdownSection,
  .profileLessonCategory,.profileLessonsCourseIntro,
  .profilePaPracticeCard,.guidedRiskHistoryCard,
  .profileSocialSection,.profileSessionDetail,
  .rorNotepadPanel
) {
  background:linear-gradient(150deg,#1c1e20,#101215)!important;
  border-color:var(--ror-hq-metal-border)!important;
  box-shadow:inset 0 1px rgba(255,245,221,.04)!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .profileTab,.authTab,.soloSessionTypeTab,
  .profileDropdownSummary,.profileLessonCategorySummary,
  .guidedRiskHistorySummary,.profilePaPracticeSummary
):not(.is-active):not([aria-selected="true"]) {
  background:linear-gradient(145deg,#202124,#121416)!important;
  border-color:rgba(219,181,123,.29)!important;
  color:#e4dacb!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .profileTab,.authTab,.soloSessionTypeTab,
  .profileDropdownSummary,.profileLessonCategorySummary,
  .guidedRiskHistorySummary,.profilePaPracticeSummary
):is(.is-active,[aria-selected="true"],[aria-expanded="true"]) {
  background:linear-gradient(135deg,#44331f,#1c1b19)!important;
  border-color:rgba(235,191,118,.61)!important;
  color:#fff0d5!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .profileLessonCategoryKicker,.profileSectionEyebrow,.profileLessonCategoryWhy,
  .profileInfoLabel,.authEyebrow,.profileSocialSectionHead,
  .profileLessonsLiveTradingBadge
){color:#eac58e!important}
body.ror-ui-2026.ror-hq-surfaces :is(
  .profileLessonCategorySubtext,.profileDropdownSummaryHint,
  .profileLessonCategoryCopy small,.authField label
){color:#c1bbb3!important}
body.ror-ui-2026.ror-hq-surfaces :is(
  .profileModal,.analyticsModal,.authModal,.traderProfileModal,
  .directMessageModal,.rorResetModal,.openSimNewDayModal,
  .emaSettingsWindow,.rorChartTeamDialog
) :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
  background:#0d1012!important;
  border-color:rgba(220,184,126,.35)!important;
  color:#f0e9dd!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .profileModal,.analyticsModal,.authModal,.traderProfileModal,
  .directMessageModal,.rorResetModal,.openSimNewDayModal,
  .emaSettingsWindow,.rorChartTeamDialog
) :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select):focus-visible {
  border-color:#e9c68d!important;
  outline:2px solid rgba(236,194,130,.55)!important;
  outline-offset:1px;
}

/* Consistent HQ neutral data cards and modal navigation. Do not recolor
   financial P&L, success/error, trade direction, roles or time series. */
body.ror-ui-2026.ror-hq-surfaces :is(
  .analyticsChartCard,.profileInfoCard,.profileSocialList,
  .analyticsStatCard,.profileProgressSection,
  .profileLessonCategoryBody,.profileLessonsList,
  .profileSessionDetailSummary,.profileSessionDetail .soloPerfMetric,
  .profileSessionDetail .soloPerfStat
) {
  border-color:var(--ror-hq-metal-border)!important;
  background:linear-gradient(145deg,#1a1c1e,#0e1113)!important;
}
body.ror-ui-2026.ror-hq-surfaces #profileModal #profileCompletedSoloHistorySummary > .soloPerfStat,
body.ror-ui-2026.ror-hq-surfaces #profileModal #profileCompletedSoloHistoryList .soloPerfMetric,
body.ror-ui-2026.ror-hq-surfaces #profileModal #profileCompletedSoloHistoryList > .profileSessionDetail {
  border-color:var(--ror-hq-metal-border)!important;
  background:linear-gradient(145deg,#1a1c1e,#101215)!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .analyticsStatLabel,.profileInfoLabel,.soloPerfLabel
) {color:#c7bcb0!important}

/* Lobby controls and panels have a uniform HQ shell; leave live/team state colors. */
body.ror-ui-2026.ror-hq-surfaces :is(
  .lobbyStatusStrip,.lobbyOverlayPrimaryActions,
  .groupTrainingHudTabs,.groupTrainingRulesToggle,
  .lobbyHudPanel,.lobbyChatPanel,.lobbyOverlayCard
){
  background:linear-gradient(150deg,#1a1c1f,#0f1113)!important;
  border-color:var(--ror-hq-metal-border)!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .groupTrainingHudTab,.tradingLobbyModeCard
):is(.is-active,[aria-selected="true"]) {
  background:linear-gradient(135deg,#49361f,#25201b)!important;
  border-color:#e1b477!important;
  color:#fff0d5!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .groupTrainingHudTab,.tradingLobbyModeCard
):not(.is-active):not([aria-selected="true"]) {
  background:linear-gradient(145deg,#202125,#111416)!important;
  border-color:var(--ror-hq-metal-border)!important;
  color:#e8ddce!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .lobbyChatPanel input,.lobbyChatPanel textarea,
  .directMessageModal textarea
){
  background:#0b0e11!important;
  border-color:var(--ror-hq-metal-border)!important;
  color:#f2eadd!important;
}

/* Opt-in controls should stay visible and keyboard navigable in the dark skin. */
body.ror-ui-2026.ror-hq-surfaces :is(
  .accountProfileOnlyButton,.profileLearningLaunchButton,
  .trainingEntryButton,.copyCodeButton,.sidebarWorkspaceTab,
  .profileTab,.authTab,.groupTrainingHudTab
):focus-visible {
  outline:2px solid #e8c186!important;
  outline-offset:2px;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .accountProfileOnlyButton,.profileLearningLaunchButton,
  .trainingEntryButton,.copyCodeButton,.sidebarWorkspaceTab,
  .profileTab,.authTab,.groupTrainingHudTab
):disabled {opacity:.55;filter:none!important}
@media(prefers-reduced-motion:reduce){
  body.ror-ui-2026.ror-hq-surfaces :is(
    .accountProfileOnlyButton,.profileLearningLaunchButton,
    .trainingEntryButton,.copyCodeButton,.sidebarWorkspaceTab,
    .profileTab,.authTab,.groupTrainingHudTab
  ){transition:none!important}
}


/* ID-level styles for buttons that had their own strongly-specific blue skin. */
body.ror-ui-2026.ror-hq-surfaces :is(
  #btnProfileOpen,#btnAccountLogout,#btnTopLessons,#btnGroupTrainingJoin
){
  background:linear-gradient(150deg,#222426,#111416)!important;
  border:1px solid rgba(226,184,118,.43)!important;
  color:#f3e7d6!important;
  box-shadow:inset 0 1px rgba(255,250,240,.045)!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  #btnProfileOpen,#btnAccountLogout,#btnTopLessons,#btnGroupTrainingJoin
):hover:not(:disabled){
  background:linear-gradient(150deg,#31291f,#161719)!important;
  border-color:#e8c08a!important;
}
body.ror-ui-2026.ror-hq-surfaces #btnApexFunding.apex-side-btn{
  background:linear-gradient(150deg,#29241f,#12161a)!important;
  border-color:rgba(231,192,133,.5)!important;
  box-shadow:inset 0 1px rgba(255,247,226,.05)!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .profileLessonCategory[open] > .profileLessonCategorySummary,
  .profileDropdownSection[open] > .profileDropdownSummary,
  .profilePaPracticeDropdown[open] > .profilePaPracticeSummary,
  .guidedRiskHistoryCard[open] > .guidedRiskHistorySummary
){
  background:linear-gradient(145deg,#33291e,#161719)!important;
  border-color:rgba(231,191,127,.56)!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .profileAnalyticsButton,.profileFieldSaveButton,.authPrimaryButton,
  .reportActionBtnPrimary
):not(.btn-buy):not(.btn-sell){
  background:linear-gradient(145deg,#4b3723,#25201a)!important;
  border-color:rgba(237,196,128,.66)!important;
  color:#ffeed6!important;
}
body.ror-ui-2026.ror-hq-surfaces :is(
  .tipHeader,.tipHoverCardTop,.tradingLobbyChoiceTag,
  .profileLessonCategoryTitle,.profileSectionTitle
){
  color:#ebc993!important;
}


/* 2026-11-22 / HQ course progress pill readability and responsive alignment. */
body.ror-ui-2026.ror-hq-surfaces #profileModal .profileLessonProgressWrap {
  min-width:0!important;
  max-width:100%;
  justify-items:stretch;
}
body.ror-ui-2026.ror-hq-surfaces #profileModal .profileLessonProgress {
  position:relative;
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:10px!important;
  min-width:172px!important;
  max-width:100%;
  min-height:36px!important;
  padding:6px 9px 6px 12px!important;
  overflow:hidden;
  border:1px solid rgba(221,184,124,.42)!important;
  border-radius:999px!important;
  background:#151a1e!important;
  color:#f1e9dd!important;
  box-shadow:none!important;
  white-space:nowrap;
  text-align:left;
}
body.ror-ui-2026.ror-hq-surfaces #profileModal .profileLessonProgress::before {
  inset:auto 0 0 0!important;
  height:3px!important;
  border-radius:0!important;
  background:linear-gradient(90deg,#9b7140,#e4b879)!important;
  box-shadow:none!important;
}
body.ror-ui-2026.ror-hq-surfaces #profileModal .profileLessonProgress .rorCourseProgressCount {
  position:relative;
  z-index:1;
  display:block;
  flex:1 1 auto;
  min-width:0;
  width:auto;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#efe8dc!important;
  text-shadow:none!important;
  font-size:11px!important;
  font-weight:750!important;
  line-height:1.35!important;
  letter-spacing:0!important;
  -webkit-text-fill-color:currentColor!important;
}
body.ror-ui-2026.ror-hq-surfaces #profileModal .profileLessonProgress .rorCourseProgressPercent {
  position:relative;
  z-index:1;
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-width:40px!important;
  height:23px;
  padding:3px 7px!important;
  border:1px solid rgba(228,185,118,.35)!important;
  border-radius:999px!important;
  background:#3c2c1d!important;
  color:#f5d9ad!important;
  box-shadow:none!important;
  text-shadow:none!important;
  font-size:11px!important;
  font-weight:850!important;
  line-height:1!important;
  -webkit-text-fill-color:currentColor!important;
}
body.ror-ui-2026.ror-hq-surfaces #profileModal .profileLessonProgress.is-complete {
  border-color:rgba(73,188,137,.55)!important;
  background:#14231f!important;
}
body.ror-ui-2026.ror-hq-surfaces #profileModal .profileLessonProgress.is-complete .rorCourseProgressPercent {
  background:#1e3a2e!important;
  border-color:rgba(89,201,152,.45)!important;
  color:#a6ebc6!important;
}
body.ror-ui-2026.ror-hq-surfaces #profileModal .profileLessonProgress.is-coming-soon {
  justify-content:center!important;
  min-width:172px!important;
  border-color:rgba(206,176,127,.3)!important;
  background:#151a1e!important;
}
body.ror-ui-2026.ror-hq-surfaces #profileModal .profileLessonProgress.is-coming-soon::before,
body.ror-ui-2026.ror-hq-surfaces #profileModal .profileLessonProgress.is-coming-soon .rorCourseProgressPercent {
  display:none!important;
}
body.ror-ui-2026.ror-hq-surfaces #profileModal .profileLessonProgress.is-coming-soon .rorCourseProgressCount {
  flex:0 1 auto;
  color:#d0b995!important;
  text-align:center;
  -webkit-text-fill-color:currentColor!important;
}
@media (max-width:640px) {
  body.ror-ui-2026.ror-hq-surfaces #profileModal .profileLessonProgress {
    min-width:155px!important;
  }
}


/* 2026-11-22: Manual Tools rail open/close motion.
   Keep canvas geometry instant to avoid stretched candles and duplicated
   price-scale labels. Only the rail shell and tool content animate. */
@media (min-width: 901px) {
  body.ror-ui-2026.ror-hq-surfaces:is(.ror-rail-opening,.ror-rail-closing):not(.ror-level-rail-sizing) #chartToolsRail {
    transition:
      width 360ms cubic-bezier(.2,.72,.2,1),
      min-width 360ms cubic-bezier(.2,.72,.2,1),
      max-width 360ms cubic-bezier(.2,.72,.2,1),
      padding 360ms cubic-bezier(.2,.72,.2,1) !important;
    overflow-x: hidden !important;
  }

  /* The content stays full width through the fade, rather than shrinking
     its labels while the rail is still moving. */
  body.ror-ui-2026.ror-hq-surfaces.ror-rail-closing #chartToolsRail > :is(#drawToolbar,#indicatorsToolbar) {
    opacity: 0 !important;
    translate: -10px 0 !important;
    pointer-events: none !important;
    transition: opacity 155ms ease-in, translate 155ms ease-in !important;
  }
  body.ror-ui-2026.ror-hq-surfaces.ror-rail-opening #chartToolsRail > :is(#drawToolbar,#indicatorsToolbar) {
    animation: rorRailToolsAppear 260ms cubic-bezier(.16,.8,.2,1) 165ms both !important;
  }
  body.ror-ui-2026.ror-hq-surfaces.ror-rail-opening #chartToolsRail > #indicatorsToolbar {
    animation-delay: 190ms !important;
  }
  /* Keep the Tools button usable; only its expanded wordmark fades. */
  body.ror-ui-2026.ror-hq-surfaces.ror-rail-closing #chartToolsRail .chartToolsRailToggleLabel {
    opacity: 0 !important;
    transition: opacity 140ms ease-in !important;
  }
  body.ror-ui-2026.ror-hq-surfaces.ror-rail-opening #chartToolsRail .chartToolsRailToggleLabel {
    animation: rorRailLabelAppear 230ms ease-out 150ms both !important;
  }
}
@keyframes rorRailToolsAppear {
  from { opacity:0; translate:-10px 0; }
  to { opacity:1; translate:0 0; }
}
@keyframes rorRailLabelAppear {
  from { opacity:0; }
  to { opacity:1; }
}
@media (prefers-reduced-motion: reduce) {
  body.ror-ui-2026.ror-hq-surfaces:is(.ror-rail-opening,.ror-rail-closing) #chartToolsRail {
    transition:none !important;
  }
  body.ror-ui-2026.ror-hq-surfaces:is(.ror-rail-opening,.ror-rail-closing) #chartToolsRail > :is(#drawToolbar,#indicatorsToolbar),
  body.ror-ui-2026.ror-hq-surfaces:is(.ror-rail-opening,.ror-rail-closing) #chartToolsRail .chartToolsRailToggleLabel {
    animation:none !important;
    transition:none !important;
    translate:0 0 !important;
  }
}

/* Solo Trading Day order and cash history selector. Scope to the live report. */
body.ror-ui-2026 #reportOverlay .sessionHistoryDayBar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
  margin:0 0 15px;
  padding:15px 18px;
  border:1px solid rgba(221,183,119,.4);
  border-radius:13px;
  background:linear-gradient(135deg,#202123,#101215 75%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
body.ror-ui-2026 #reportOverlay .sessionHistoryDayBar > div {
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
  flex:1 1 260px;
}
body.ror-ui-2026 #reportOverlay .sessionHistoryDayBar span {
  color:#e8c487;
  font-size:10px;
  font-weight:900;
  letter-spacing:.1em;
}
body.ror-ui-2026 #reportOverlay .sessionHistoryDayBar strong {
  color:#f5eee2;
  font-size:15px;
  font-weight:850;
}
body.ror-ui-2026 #reportOverlay .sessionHistoryDayBar small {
  color:#a8b1b6;
  font-size:11px;
  line-height:1.55;
}
body.ror-ui-2026 #reportOverlay .sessionHistoryDayBar select {
  flex:0 1 250px;
  width:min(100%,280px);
  min-height:42px;
  padding:9px 38px 9px 13px;
  border:1px solid rgba(221,183,119,.55)!important;
  border-radius:9px;
  background:#101418!important;
  color:#f4d6a3!important;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}
body.ror-ui-2026 #reportOverlay .sessionHistoryDayBar select:focus-visible {
  outline:2px solid #e9bd77;
  outline-offset:3px;
}
@media(max-width:600px){
  body.ror-ui-2026 #reportOverlay .sessionHistoryDayBar {padding:13px}
  body.ror-ui-2026 #reportOverlay .sessionHistoryDayBar select {flex:1 1 100%;width:100%}
}

/* Auth fields are layout wrappers, not cards. Keep the input surfaces intact. */
body.ror-ui-2026.ror-hq-surfaces #authModal #authForm .authField,
body.ror-ui-2026.ror-hq-surfaces #authModal #authForm .authField > label {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
