/* Shared desktop presentation only. Never change quote colors, chart geometry,
   trading controls, or mobile layouts here. Keep selectors explicit. */
@media (min-width: 1025px) {
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified {
  --yp-brand:#d92d32; --yp-brand-hover:#bd2429; --yp-brand-soft:#fff3f3;
  --yp-ink:#272b33; --yp-text:#4e5561; --yp-muted:#737b87;
  --yp-border:#e5e8ed; --yp-bg:#f7f8fa;
  --ws-ink:#272b33; --ws-copy:#636c78; --ws-muted:#858e9a;
  --ws-bg:#f7f8fa; --ws-card:#fff; --ws-line:#e5e8ed;
  --ws-shadow:0 2px 6px rgba(30,40,55,.025);
  --shadow-sm:0 1px 3px rgba(30,40,55,.035);
  --shadow:0 2px 6px rgba(30,40,55,.035);
  color:#272b33; background:#f7f8fa;
}
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified > .layout,body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .main-area { background:#f7f8fa !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .sidebar { background:#fff !important; border-right:1px solid #eceef1 !important; box-shadow:none !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .sidebar .brand { color:#262930 !important; border-bottom:0 !important; margin:0 0 8px !important; padding:2px 8px 8px !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .sidebar .brand-mark { width:36px !important; height:36px !important; border-radius:10px !important; box-shadow:none !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .sidebar .brand small { color:#9298a2 !important; font-size:10px !important; font-weight:400 !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .side-item { border:0 !important; border-radius:7px !important; background:transparent !important; box-shadow:none !important; color:#676c76 !important; min-height:44px !important; padding:4px 12px !important; gap:10px !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .side-nav { gap:6px !important; padding-top:0 !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .side-item::before { display:none !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .side-item.active { color:#c52e35 !important; background:#fff0f0 !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .side-item:hover { background:#f7f7f9 !important; transform:none !important; }



body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .si-name { font-size:13px !important; font-weight:550 !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .si-tx small { display:none !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .side-section-head { margin:0 0 6px !important; padding:0 5px !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .side-customize-button { border-color:#eceef1 !important; background:#fff !important; box-shadow:none !important; color:#878b94 !important; font-size:12px !important; min-height:32px !important; padding:5px 12px !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .side-foot { opacity:.6; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .main-area .topbar { top:0 !important; width:100% !important; max-width:none !important; box-sizing:border-box; border:0 !important; border-bottom:1px solid #eceef1 !important; border-radius:0 !important; box-shadow:none !important; background:#fff !important; margin:0 !important; min-height:64px !important; padding:12px 28px !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .page-title { color:#30343b !important; font-size:17px !important; font-weight:650 !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .page-title::before { display:none !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .topbar nav a { color:#777c86 !important; font-size:14px !important; font-weight:500 !important; padding:7px 9px !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .topbar nav a:hover { color:#c7353b !important; background:#fff4f4 !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .topbar-line-icon { width:18px !important; height:18px !important; }

html:not(.yp-sidebar-collapsed) body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .layout > .sidebar {
  width:204px !important; min-width:204px !important; flex-basis:204px !important;
  padding:16px 14px !important;
}
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .side-nav { gap:6px !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .side-foot { font-size:10px; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .main-area .content { padding-top:20px !important; }
/* Secondary navigation remains in the existing order, with the active view in red. */
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.subnav,.subnav.subnav-grouped,.tl-module-switch,.settlement-subtabs,.auction-mode-tabs,.anomaly-tabs,.hot-platform-tabs,.bt-mode-tabs) {
  background:#fff !important; border-color:#e7e9ed !important; border-radius:8px !important;
  box-shadow:none !important;
}
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.subnav,.tl-module-switch,.settlement-subtabs,.auction-mode-tabs,.anomaly-tabs,.hot-platform-tabs,.bt-mode-tabs) > :is(a,button) {
  color:#67717e; font-size:13px; font-weight:550; box-shadow:none !important;
}
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.subnav,.tl-module-switch,.settlement-subtabs,.auction-mode-tabs,.anomaly-tabs,.hot-platform-tabs,.bt-mode-tabs) > :is(a,button).active,body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.hs-tab.active,.subnav-group.active > .subnav-group-trigger) {
  color:#c52e35 !important; background:#fff1f1 !important; border-color:#efcdd0 !important;
  box-shadow:none !important;
}
/* Structural surfaces only: no wildcard card/panel selectors or chart overrides. */
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.card,.panel,.chart-card,.main-chart-panel,.rt-card,.bt-card,.value-card,.swing-card,.anomaly-panel,.hotlist-card,.auction-chart-panel,.auction-table-shell,.nh-chart-card,.nh-board-card,.bf-card,.win-card,.gc-card,.profile-training-card) {
  border-color:#e5e8ed !important; border-radius:10px !important; background:#fff !important;
  box-shadow:0 2px 6px rgba(30,40,55,.025) !important;
}
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.auction-toolbar,.nh-toolbar,.bs-head,.cycle-toolbar) {
  background:#fff !important; border-color:#e5e8ed !important; box-shadow:none !important; border-radius:8px !important;
}
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.rt-section-head,.bt-card-head,.chart-panel-head,.window-card-head) {
  border-color:#eef0f3 !important; background:#fff; box-shadow:none;
}
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.rt-section-head,.bt-card-head,.chart-panel-head,.window-card-head) :is(h2,h3) {
  color:#303640; font-weight:650; font-size:16px;
}
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.rt-hero,.bt-hero,.cycle-hero) { background:transparent; box-shadow:none; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.rt-hero,.cycle-hero) h1 { font-size:26px; font-weight:650; color:#272b33; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.rt-kicker,.cycle-kicker) { color:#c7353b; }
/* Preserve cell alignment, sorting, sticky positioning and semantic price colors. */
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.tbl,.auction-table,.tr-table,.data-table) { font-variant-numeric:tabular-nums; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.tbl,.auction-table,.tr-table,.data-table) th {
  background:#f7f8fa !important; color:#737c89 !important; font-size:12px; font-weight:550; border-color:#e9ecf0;
}
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.tbl,.auction-table,.tr-table,.data-table) td { border-color:#eef0f3; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.tbl,.auction-table,.tr-table,.data-table) tbody tr:hover { background:#f9fafb; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.input,.field input,.field select,.tl-search-wrap input) {
  border-color:#dfe3e9; border-radius:6px; box-shadow:none; background:#fff;
}
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.btn.secondary,.btn.ghost) {
  border-color:#dfe3e9; border-radius:6px; box-shadow:none; background:#fff; color:#5e6875;
}
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(a,button,input,select,textarea):focus-visible {
  outline: none;
}
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified button:disabled { cursor:not-allowed; }
/* Full-screen stock terminal: retain its fixed-height chart grid and trading colors. */
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified.stock-workbench-page .wb-topbar { border-bottom:1px solid #e7e9ed; background:#fff; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified.stock-workbench-page .wb-market-nav :is(a,button) { font-size:14px; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified.stock-workbench-page .wb-market-nav > .active { color:#c7353b; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified.stock-workbench-page .wb-brand strong { font-size:20px; }
/* Standalone service and information pages share the same neutral header. */
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified > .topbar {
  background:#fff !important; border-bottom:1px solid #e7e9ed !important;
  box-shadow:none !important; color:#272b33 !important;
}
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.about-section,.pricing-table-wrap,.contact-card,.support-card) {
  border-color:#e5e8ed; border-radius:10px; box-shadow:none;
}

/* Explicit action/navigation refinements; do not target buy/sell or status classes. */
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .subnav .sub-tab::after { background:#d92d32 !important; }


body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.subnav .sub-tab,.topbar nav a,.side-item) { background-image:none !important; }

body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .cycle-wrap .control-row { background:#fff !important; border-color:#e5e8ed !important; box-shadow:none !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .cycle-wrap #applyBtn { background:#d92d32 !important; border-color:#d92d32 !important; color:#fff !important; box-shadow:none !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.tl-sort,.bs-category-switch button,.bf-metric-tabs button,.auction-category-tabs button,.hot-platform-tabs button).active {
  background:#fff1f1 !important; border-color:#edc9cc !important; color:#c52e35 !important; box-shadow:none !important;
}
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified:is(.auth-page,.landing-page,.wf-page) { background:#fff; }

body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.feed-head,.feed-item,.cmd-card,.research-card) {
  border-color:#e5e8ed !important; background:#fff !important; border-radius:10px !important; box-shadow:none !important;
}
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .feed-ai { background:#fafafa !important; border-color:#eceef1 !important; border-top-style:solid !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .hs-tab.active::after { background:#d92d32 !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .feed-filter.on { background:#fff1f1 !important; color:#c52e35 !important; border-color:#edc9cc !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .pricing-plan { background:#fff !important; border-color:#e5e8ed !important; border-radius:10px !important; box-shadow:none !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .pricing-plan.recommended { border-color:#d99da1 !important; background:#fffafa !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .pricing-plan::before { background:#dfe3e9 !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .pricing-plan.recommended::before { background:#d92d32 !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.pricing-plan-daily strong,.pricing-plan-price strong,.pricing-comparison-kicker) { color:#c7353b !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .pricing-select-button { border-color:#d99da1 !important; color:#c7353b !important; background:#fff !important; box-shadow:none !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified :is(.pricing-plan.recommended,.pricing-plan.selected) .pricing-select-button { color:#fff !important; background:#d92d32 !important; }

body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .settlement-subtab.active::after { background:#d92d32 !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified.review-tool-page #runBtn,body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .bt-primary { background:#d92d32 !important; border-color:#d92d32 !important; color:#fff !important; box-shadow:none !important; }
body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified.review-tool-page .demo-link { color:#c7353b !important; }
}

/* The rail is 204px wide in this theme; keep the toggle inside its clipping edge. */
@media(min-width:1025px) {
 body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .sidebar .side-collapse-button {
   left:174px !important; color:#68717d !important; background:#fff !important;
 }
 html.yp-sidebar-collapsed body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .sidebar {
   width:76px !important; min-width:76px !important; flex:0 0 76px !important; padding:18px 10px !important;
 }
 html.yp-sidebar-collapsed body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .sidebar .side-collapse-button { left:46px !important; }
 html.yp-sidebar-collapsed body.yp-desktop-unified.yp-desktop-unified.yp-desktop-unified .sidebar .side-item,
 html.yp-sidebar-collapsed #workspaceHome .sidebar .side-item {
   width:48px !important; min-width:48px !important; padding:5px !important; gap:0 !important; justify-content:center !important;
 }
}

/* Desktop header fold: a slim handle remains reachable after folding. */
@media(min-width:1025px) {
 html body:is(#workspaceHome,.yp-desktop-unified) .main-area > .topbar[data-collapsible-topbar] { padding-right:58px !important; }
 html body:is(#workspaceHome,.yp-desktop-unified) .yp-topbar-toggle {
   position:absolute; right:12px; top:50%; transform:translateY(-50%);
   display:grid; place-items:center; width:32px; height:32px; padding:0;
   border:1px solid #e5e5e5; border-radius:7px; color:#737373; background:#fff; cursor:pointer;
 }
 html body:is(#workspaceHome,.yp-desktop-unified) .yp-topbar-toggle svg { width:18px; height:18px; }
 html body:is(#workspaceHome,.yp-desktop-unified) .yp-topbar-toggle:hover { color:#c52e35; border-color:#d9a1a4; }
 html body:is(#workspaceHome,.yp-desktop-unified) .main-area > .topbar.yp-topbar-collapsed[data-collapsible-topbar] {
   height:24px !important; min-height:24px !important; padding:0 !important; margin:0 !important;
 }
 html body:is(#workspaceHome,.yp-desktop-unified) .topbar.yp-topbar-collapsed > :not(.yp-topbar-toggle) { display:none !important; }
 html body:is(#workspaceHome,.yp-desktop-unified) .topbar.yp-topbar-collapsed .yp-topbar-toggle {
   width:32px; height:22px; right:12px; border-top:0; border-radius:0 0 7px 7px;
 }
 html body:is(#workspaceHome,.yp-desktop-unified) .topbar.yp-topbar-collapsed .yp-topbar-toggle svg { transform:rotate(180deg); }
}
