/* Staff navigation uses the same ink and mint as the customer Research Desk. */
#cpfOperatorShell {
  --operator-ink: #102b34;
  --operator-link: #eff7f7;
  --operator-line: #547078;
  --operator-selected: #23444b;
  --operator-accent: #7bd6c4;
  background: var(--operator-ink) !important;
  color: var(--operator-link);
  border: 0 !important;
  border-bottom: 1px solid #27454c !important;
  min-width: 0;
}
#cpfOperatorShell .tx-primary-inner {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand links actions";
  align-items: center;
  max-width: none;
  min-height: 64px !important;
  gap: 0 clamp(12px, 2vw, 32px) !important;
  padding: 0 clamp(16px, 2.5vw, 44px) !important;
  overflow: visible !important;
}
#cpfOperatorShell .tx-research-brand.cpf-product-brand {
  grid-area: brand;
  justify-self: start;
  display: inline-flex !important;
  width: clamp(145px, 13vw, 205px) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 44px;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
#cpfOperatorShell .cpf-nav-lockup { display: block !important; width: 100% !important; }
#cpfOperatorShell .cpf-nav-lockup img {
  width: 100% !important; max-height: 47px !important; height: auto !important;
  filter: none !important; object-fit: contain;
}
#cpfOperatorShell .cpf-nav-lockup img.cpf-lockup-light { display: none !important; }
#cpfOperatorShell .cpf-nav-lockup img.cpf-lockup-dark { display: block !important; }
#cpfOperatorShell .tx-primary-links {
  grid-area: links;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 0 !important;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
}
#cpfOperatorShell .tx-primary-links > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px !important;
  padding: 0 clamp(8px, .7vw, 14px) !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 6px !important;
  color: var(--operator-link) !important;
  background: transparent !important;
  font: 600 clamp(.78rem,.88vw,.94rem)/1.2 var(--cpf-type,system-ui,sans-serif);
  text-decoration: none;
  white-space: nowrap;
}
#cpfOperatorShell .tx-primary-links > a:hover,
#cpfOperatorShell .tx-primary-links > a[aria-current] { background: var(--operator-selected) !important; }
#cpfOperatorShell .tx-primary-links > a[aria-current] { border-bottom-color: var(--operator-accent) !important; }
#cpfOperatorShell .cpf-operator-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 6px;
}
#cpfOperatorShell .cpf-operator-actions > :is(button, .cpf-account-trigger) {
  box-sizing: border-box; display: inline-flex !important; align-items: center; justify-content: center;
  min-width: 44px !important; min-height: 44px !important;
  border: 1px solid var(--operator-line) !important; border-radius: 9px !important;
  background: transparent !important; color: var(--operator-link) !important;
  padding: 0 .68rem !important; margin: 0 !important;
  font: 600 .82rem/1.2 var(--cpf-type,system-ui,sans-serif) !important;
  cursor: pointer;
}
#cpfOperatorShell .cpf-operator-actions > button:hover { background: var(--operator-selected) !important; }
#cpfOperatorShell .cpf-operator-actions > .tx-primary-menu { display: none !important; }
#cpfOperatorShell .tx-theme-toggle { order: 1; }
#cpfOperatorShell .tx-preferences-open { order: 2; gap: .35rem; }
#cpfOperatorShell .cpf-account-trigger { order: 3; width: 44px !important; }
#cpfOperatorShell .cpf-account-trigger span { display: none; }
#cpfOperatorShell .cpf-account-trigger img { width: 20px; height: 20px; filter: brightness(0) invert(1) !important; }
#cpfOperatorShell :is(.tx-preferences-open, .tx-primary-menu)::before {
  content: ''; display: inline-block; width: 19px; height: 19px; flex: none; background: currentColor;
  mask: url('/static/brand/research-icons/activity.svg') center/contain no-repeat;
}
#cpfOperatorShell .tx-primary-menu::before { mask-image: url('/static/brand/research-icons/menu.svg'); }
#cpfOperatorShell .tx-primary-menu img { display: none; }
#cpfOperatorShell :is(a,button):focus-visible,.cpf-operator-mobile-nav :focus-visible {
  outline: 3px solid #66c9ba !important; outline-offset: -3px;
}
.cpf-operator-drawer.tx-primary-drawer a[aria-current="page"] {
  color: #154e43 !important; background: #dbf1ec !important; border-color: #74baae !important;
}
html[data-theme=dark] .cpf-operator-drawer.tx-primary-drawer a[aria-current="page"] {
  color: #e8faf4 !important; background: #27534b !important; border-color: #62a69a !important;
}
@media (min-width:901px) and (max-width:1179px) {
  #cpfOperatorShell .tx-primary-inner { gap: 0 8px !important; padding-inline: 12px !important; }
  #cpfOperatorShell .tx-research-brand.cpf-product-brand { width: 124px !important; }
  #cpfOperatorShell .tx-primary-links > a { padding-inline: 6px !important; }
  #cpfOperatorShell .cpf-operator-actions .tx-preferences-open { width: 44px !important; padding: 0 !important; gap: 0; font-size: 0 !important; }
}
@media (max-width:900px) {
  #cpfOperatorShell .tx-primary-inner {
    grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "brand actions";
    min-height: 58px !important; gap: 0 6px !important; padding: 5px clamp(8px,2.7vw,18px) !important;
  }
  #cpfOperatorShell .tx-research-brand.cpf-product-brand { width: clamp(115px,35vw,165px) !important; }
  #cpfOperatorShell .cpf-operator-actions { gap: 4px; }
  #cpfOperatorShell .cpf-operator-actions .tx-preferences-open {
    width: 44px !important; font-size: 0 !important; padding: 0 !important; gap: 0;
  }
  #cpfOperatorShell .tx-primary-links {
    grid-area: auto; grid-column: 1/-1; max-width: 100%; overflow-x: auto; justify-content: start;
  }
  body:has(#txPrimaryDrawer) #cpfOperatorShell .tx-primary-links { display: none !important; }
  body:has(#txPrimaryDrawer):not(:has(.cpf-operator-mobile-nav)) #cpfOperatorShell .cpf-operator-actions .tx-primary-menu { display: inline-flex !important; }
  .cpf-operator-mobile-nav.tx-primary-bottom {
    box-sizing: border-box; display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 3px; padding: 4px 6px max(4px,env(safe-area-inset-bottom)) !important;
    background: var(--tx-surface, #fff) !important; border-top: 1px solid var(--tx-border,#bdcfce) !important;
  }
  .cpf-operator-mobile-nav.tx-primary-bottom :is(a,button) {
    display: flex !important; flex-direction: column; align-items: center; justify-content: center;
    min-height: 46px !important; min-width: 0; padding: 2px 0 !important; gap: 2px;
    font: 650 .74rem/1.1 var(--cpf-type,system-ui,sans-serif) !important;
    color: var(--tx-text,#18343c) !important; background: transparent !important; border: 0 !important; border-radius: 7px;
  }
  .cpf-operator-mobile-nav.tx-primary-bottom :is([aria-current="page"],.has-current-section) { background: #dbf1ec !important; color: #134e45 !important; }
  html[data-theme=dark] .cpf-operator-mobile-nav.tx-primary-bottom :is([aria-current="page"],.has-current-section) { background: #28534f !important; color: #e7faf6 !important; }
  .cpf-operator-mobile-nav.tx-primary-bottom img { width: 19px; height: 19px; }
  body:has(.cpf-operator-mobile-nav) .cpf-operator-footer { margin-bottom: calc(55px + env(safe-area-inset-bottom)) !important; }
}
@media (min-width:901px) {
  .cpf-operator-mobile-nav.tx-primary-bottom { display: none !important; }
}

#sessions .cpf-watch-heading { column-gap: .8rem; row-gap: .25rem; }
#sessions .cpf-watch-tools {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  margin-inline-start: auto; gap: .4rem; min-width: 0; max-width: 100%;
  font: 550 .79rem/1.25 var(--cpf-type,system-ui,sans-serif);
}
#sessions .cpf-watch-tools .cpf-watch-mode,
#sessions .cpf-watch-tools #marketClock { color: var(--tx-muted,#48626b); }
#sessions .cpf-watch-tools #marketClock { font-size: .75rem; font-variant-numeric: tabular-nums; }
#sessions .cpf-watch-tools #socketStatus {
  display: inline-flex; align-items: center; gap: .35rem; color: var(--tx-text,#15343a);
  background: transparent; border: 0; white-space: nowrap; font: inherit;
}
#sessions .cpf-watch-tools #socketStatus::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #9a6a17; flex: none;
}
#sessions .cpf-watch-tools #socketStatus[data-connection="connected"]::before { background: #17815b; }
html[data-theme="dark"] #sessions .cpf-watch-tools #socketStatus[data-connection="connected"]::before { background: #6edcb0; }
#sessions .cpf-watch-tools :is(#btnRefresh,#deskFilterToggle) {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  min-height: 40px !important; min-width: 44px !important; width: auto !important; flex: none !important;
  padding: .4rem .7rem !important; margin: 0 !important;
  color: var(--tx-text,#163238) !important; background: var(--tx-surface,#fff) !important;
  border: 1px solid var(--tx-border,#b7ccce) !important; border-radius: 7px !important;
  font: 650 .82rem/1.2 var(--cpf-type,system-ui,sans-serif) !important; cursor: pointer;
}
#sessions .cpf-watch-tools #btnRefresh::before { content: none; }
#sessions .cpf-watch-tools :is(#btnRefresh,#deskFilterToggle):hover { background: var(--tx-raised,#e9f2f2) !important; }
#sessions .cpf-watch-tools :is(#btnRefresh,#deskFilterToggle):focus-visible { outline: 2px solid #238e7e; outline-offset: 2px; }
@media (max-width:1400px) {
  #sessions .cpf-watch-tools #marketClock, #sessions .cpf-watch-mode { display: none; }
}
@media (max-width:650px) {
  #sessions .cpf-watch-tools { justify-content: flex-start; column-gap: .4rem; }
  #sessions .cpf-watch-tools :is(#btnRefresh,#deskFilterToggle) { min-height: 44px !important; }
}
#tx-ra-attribution.cpf-operator-footer {
  box-sizing: border-box; display: flex; justify-content: center !important; align-items: center;
  flex: none; margin: 0; min-height: 44px; padding: 0 .75rem !important;
  border-top: 1px solid var(--tx-border,#c6d5d3); color: var(--tx-muted,#466269);
  background: var(--tx-surface,#fff); text-align: center;
}
#tx-ra-attribution.cpf-operator-footer > a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .18em; font: 550 .8rem/1.3 var(--cpf-type,system-ui,sans-serif); }
#cpfOperatorDisclosures {
  position: fixed; inset: 0; margin: auto; width: min(30rem, calc(100vw - 28px));
  max-height: min(82dvh, 44rem); padding: 0; overflow: auto; overscroll-behavior: contain;
  color: var(--tx-text,#153239); background: var(--tx-surface,#fff); border: 1px solid var(--tx-border,#b5cccc);
  border-radius: 14px; text-align: left; box-shadow: 0 16px 64px #07191d45; font: 500 .93rem/1.45 var(--cpf-type,system-ui,sans-serif);
}
#cpfOperatorDisclosures:not([open]) { display: none !important; }
#cpfOperatorDisclosures::backdrop { background: rgb(5 24 30 / 66%); }
#cpfOperatorDisclosures .cpf-operator-disclosures__heading {
  display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  position: sticky; top: 0; padding: .75rem 1rem; border-bottom: 1px solid var(--tx-border,#c6d5d3); background: inherit;
}
#cpfOperatorDisclosures .cpf-operator-disclosures__heading h2 { margin: 0; font-size: 1.19rem; font-weight: 700; color: inherit; }
#cpfOperatorDisclosures .cpf-operator-disclosures__heading button { min-height: 44px; padding: 0 .8rem; border: 1px solid var(--tx-border,#c6d5d3); border-radius: 7px; color: inherit; }
#cpfOperatorDisclosures .cpf-operator-disclosures__body { padding: 1rem; }
#cpfOperatorDisclosures .cpf-provider-id { align-items: start; color: inherit; }
#cpfOperatorDisclosures .cpf-provider-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 .8rem; margin: .8rem 0; }
#cpfOperatorDisclosures .cpf-provider-links a { min-height: 44px; color: inherit; text-decoration: underline; text-underline-offset: .16em; }
#cpfOperatorDisclosures p { margin: 0; font-size: .85rem; }
@media (max-width:600px) {
  #cpfOperatorDisclosures { inset: auto 0 0; width: 100%; max-height: 88dvh; padding-bottom: env(safe-area-inset-bottom); border-radius: 14px 14px 0 0; }
}
