/* GERAL · symbol search (header + slots Terminal) */
.tf-search-wrap {
  --tf-search-z: 1;
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  margin: 0 8px 0 0;
  max-width: 360px;
  min-width: 240px;
  position: relative;
  width: 300px;
}

/* Status bar — dropdown abre PARA CIMA (não cortar) */
#footer-stack,
#footer-stack #bottombar,
#footer-stack #governanca,
.bb-left-cluster,
.tf-search-bb-home {
  overflow: visible !important;
}

#bottombar > .bb-left-cluster > .tf-search-wrap,
.bb-left-cluster > .tf-search-wrap,
.tf-search-bb-home > .tf-search-wrap {
  align-self: center;
  flex: 0 1 220px;
  margin: 0 0 0 4px;
  max-width: 240px;
  min-width: 150px;
  padding: 0;
  width: 200px;
  --tf-search-z: 0.88;
  z-index: 220;
}

.tf-search-bb-home {
  align-items: center;
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
}

.bb-left-cluster > .tf-search-wrap .tf-search-label,
.tf-search-bb-home > .tf-search-wrap .tf-search-label {
  margin-right: calc(6px * var(--tf-search-z));
}

.bb-left-cluster > .tf-search-wrap .tf-search-input,
.tf-search-bb-home > .tf-search-wrap .tf-search-input {
  background: rgba(0, 0, 0, 0.35);
  min-height: calc(24px * var(--tf-search-z));
  padding: calc(4px * var(--tf-search-z)) calc(9px * var(--tf-search-z));
}

.bb-left-cluster > .tf-search-wrap .tf-search-dropdown,
.tf-search-bb-home > .tf-search-wrap .tf-search-dropdown,
#bottombar .tf-search-wrap .tf-search-dropdown {
  bottom: calc(100% + 6px) !important;
  left: 0;
  max-height: min(420px, calc(100vh - 100px));
  min-width: min(360px, 72vw);
  right: auto;
  top: auto !important;
  width: max(100%, 320px);
  z-index: 400;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.65);
}

/* Tela cheia gráfico (#tf-bar) — search na frente dos TFs */
.tf-search-fs-slot {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
}

.tf-search-fs-slot:empty {
  display: none;
}

#tf-bar > .tf-search-fs-slot > .tf-search-wrap {
  margin: 0 8px 0 0;
  max-width: 300px;
  min-width: 200px;
  width: 260px;
  --tf-search-z: 1;
}

#tf-bar > .tf-search-fs-slot > .tf-search-wrap .tf-search-dropdown {
  bottom: auto;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  z-index: 130;
}

body.fs-chart-only #tf-search-fs-sep:not(.ih-hidden) {
  display: block;
}

.tf-search-label {
  color: var(--text-dim, #6a7884);
  flex-shrink: 0;
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(17px * var(--tf-search-z));
  font-weight: 600;
  line-height: 1;
  margin-right: calc(8px * var(--tf-search-z));
  opacity: 0.9;
  pointer-events: none;
}

.tf-search-input {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border2, rgba(255, 255, 255, 0.12));
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  color: var(--text, #d4dce4);
  flex: 1 1 auto;
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(15px * var(--tf-search-z));
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  min-height: calc(30px * var(--tf-search-z));
  min-width: 0;
  padding: calc(7px * var(--tf-search-z)) calc(12px * var(--tf-search-z));
  width: 100%;
}

.tf-search-input::placeholder {
  color: var(--text-faint, #5a6670);
  font-size: calc(15px * var(--tf-search-z));
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 1;
}

.tf-search-input:focus {
  background: rgba(74, 143, 160, 0.06);
  border-color: rgba(74, 143, 160, 0.5);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  outline: none;
}

.tf-search-dropdown {
  background: #080b0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
  left: 0;
  max-height: calc(320px * var(--tf-search-z));
  min-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: absolute;
  right: 0;
  scrollbar-color: rgba(74, 143, 160, 0.7) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
  top: calc(100% + 5px);
  z-index: 120;
}

.tf-search-dropdown.ih-hidden {
  display: none !important;
}

.tf-search-item {
  align-items: center;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: calc(12px * var(--tf-search-z));
  justify-content: space-between;
  min-height: calc(36px * var(--tf-search-z));
  padding: calc(9px * var(--tf-search-z)) calc(14px * var(--tf-search-z));
  text-align: left;
  width: 100%;
}

.tf-search-item:last-child {
  border-bottom: none;
}

.tf-search-item:hover,
.tf-search-item--active {
  background: rgba(74, 143, 160, 0.1);
}

.tf-search-item__asset {
  align-items: center;
  display: inline-flex;
  gap: calc(7px * var(--tf-search-z));
  min-width: 0;
}

.tf-search-item__asset .wl-flags {
  flex: 0 0 auto;
}

.tf-search-item__asset .wl-flag {
  height: calc(10px * var(--tf-search-z));
  width: calc(14px * var(--tf-search-z));
}

.tf-search-item__asset .wl-flag svg {
  height: 100%;
  width: 100%;
}

.tf-search-item__sym {
  color: var(--inst-cyan, var(--cyan, #4A8FA0));
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(15px * var(--tf-search-z));
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tf-search-item__sub {
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(12px * var(--tf-search-z));
  letter-spacing: 0.03em;
  text-align: right;
  white-space: nowrap;
}

.tf-search-empty {
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(14px * var(--tf-search-z));
  padding: calc(12px * var(--tf-search-z)) calc(14px * var(--tf-search-z));
}

body.view-geral-active .tf-search-wrap {
  --tf-search-z: 1.12;
  margin: 0 10px 0 0;
  max-width: 420px;
  width: 340px;
}

body.view-geral-active .tf-search-label {
  color: var(--inst-text-dim);
  font-size: calc(18px * var(--tf-search-z));
}

body.view-geral-active .tf-search-input {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border-dim);
  border-radius: var(--inst-radius, 2px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
  color: var(--inst-text);
  font-size: calc(17px * var(--tf-search-z));
  min-height: calc(34px * var(--tf-search-z));
  padding: calc(8px * var(--tf-search-z)) calc(14px * var(--tf-search-z));
}

body.view-geral-active .tf-search-input::placeholder {
  color: var(--inst-text-faint, #5a6670);
  font-size: calc(17px * var(--tf-search-z));
}

body.view-geral-active .tf-search-input:focus {
  background: rgba(74, 143, 160, 0.05);
  border-color: var(--inst-cyan-muted, rgba(74, 143, 160, 0.5));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.view-geral-active .tf-search-item__sym {
  color: var(--inst-cyan);
  font-size: calc(16px * var(--tf-search-z));
}

body.view-geral-active .tf-search-item__sub {
  color: var(--inst-text-dim);
  font-size: calc(13px * var(--tf-search-z));
}

body.view-geral-active .tf-search-empty {
  font-size: calc(15px * var(--tf-search-z));
}

body.view-geral-active.fs-chart-only .tf-search-wrap {
  display: flex;
}

/* ── Asset Snapshot modal (etapa 2) ── */
.tf-search-snapshot.ih-fred-modal {
  z-index: 430;
}

.tf-search-snapshot-panel {
  --tf-snap-z: 1.36;
  --tf-snap-steel: var(--bbg-bg, var(--inst-panel, #07090C));
  box-sizing: border-box;
  background: var(--tf-snap-steel) !important;
  height: calc(88vh / var(--ui-fs-boost, 1));
  max-height: none;
  max-width: none;
  width: calc(80vw / var(--ui-fs-boost, 1));
}

.tf-search-snapshot .ih-fred-modal-hdr {
  gap: calc(14px * var(--tf-snap-z));
  padding: calc(18px * var(--tf-snap-z)) calc(22px * var(--tf-snap-z)) calc(16px * var(--tf-snap-z));
}

.tf-search-snapshot .ih-fred-modal-hdr .ih-macro-card-title {
  font-size: calc(18px * var(--tf-snap-z));
  letter-spacing: 0.14em;
}

.tf-search-snapshot .ih-fred-modal-hdr .ih-macro-card-sub {
  font-size: calc(14px * var(--tf-snap-z));
  letter-spacing: 0.07em;
  margin-top: calc(6px * var(--tf-snap-z));
}

.tf-search-snapshot .ih-fred-modal-close {
  font-size: calc(18px * var(--tf-snap-z));
  height: calc(36px * var(--tf-snap-z));
  min-width: calc(36px * var(--tf-snap-z));
}

.tf-search-snapshot-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: calc(18px * var(--tf-snap-z)) calc(22px * var(--tf-snap-z)) calc(14px * var(--tf-snap-z));
}

.tf-search-snapshot-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: calc(14px * var(--tf-snap-z)) calc(22px * var(--tf-snap-z)) calc(18px * var(--tf-snap-z));
}

.tf-search-snapshot-loading {
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(15px * var(--tf-snap-z));
  padding: 36px 12px;
  text-align: center;
}

.tf-snap-hero {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: calc(22px * var(--tf-snap-z));
  justify-content: space-between;
  margin-bottom: calc(18px * var(--tf-snap-z));
  padding-bottom: calc(16px * var(--tf-snap-z));
}

.tf-snap-price {
  color: var(--cyan, #00a8cc);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(40px * var(--tf-snap-z));
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.tf-snap-chg {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.tf-snap-chg__item {
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(15px * var(--tf-snap-z));
  font-weight: 600;
  letter-spacing: 0.05em;
}

.tf-snap-chg__item--up {
  color: #3ecf8e;
}

.tf-snap-chg__item--dn {
  color: #ef5350;
}

.tf-snap-hero__spark {
  flex-shrink: 0;
  min-width: 300px;
}

.tf-snap-grid {
  display: grid;
  gap: calc(14px * var(--tf-snap-z));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tf-snap-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  min-height: calc(119px * var(--tf-snap-z));
  padding: calc(14px * var(--tf-snap-z)) calc(16px * var(--tf-snap-z));
}

.tf-snap-card__lbl {
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(12px * var(--tf-snap-z));
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tf-snap-card__val {
  color: var(--text, #d4dce4);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(20px * var(--tf-snap-z));
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-top: calc(8px * var(--tf-snap-z));
}

.tf-snap-card__val--imp,
.tf-snap-card__val--lre {
  color: #4a8fa0;
}

.tf-snap-card__val--exh,
.tf-snap-card__val--sat {
  color: #c8883a;
}

.tf-snap-card__val--cor {
  color: #8fa4b8;
}

.tf-snap-card__val--overbought {
  color: #ef5350;
}

.tf-snap-card__val--oversold {
  color: #3ecf8e;
}

.tf-snap-card__val--bullish {
  color: #3ecf8e;
}

.tf-snap-card__val--bearish {
  color: #ef5350;
}

.tf-snap-card__sub {
  color: var(--text-faint, #5a6670);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(13px * var(--tf-snap-z));
  line-height: 1.4;
  margin-top: calc(7px * var(--tf-snap-z));
}

.tf-snap-summary {
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(14px * var(--tf-snap-z));
  line-height: 1.5;
  margin-top: calc(14px * var(--tf-snap-z));
}

.tf-snap-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  color: var(--text, #d4dce4);
  cursor: pointer;
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(14px * var(--tf-snap-z));
  font-weight: 700;
  letter-spacing: 0.08em;
  min-height: calc(40px * var(--tf-snap-z));
  padding: calc(9px * var(--tf-snap-z)) calc(18px * var(--tf-snap-z));
  text-transform: uppercase;
}

.tf-snap-btn:hover {
  border-color: rgba(0, 168, 204, 0.45);
  color: var(--cyan, #00a8cc);
}

.tf-snap-btn--primary {
  background: rgba(0, 168, 204, 0.12);
  border-color: rgba(0, 168, 204, 0.35);
  color: var(--cyan, #00a8cc);
}

body.tf-search-snapshot-open {
  overflow: hidden;
}

body.view-geral-active .tf-search-snapshot-panel {
  --tf-snap-z: 1.44;
}

body.view-geral-active .tf-snap-price {
  color: var(--inst-cyan);
}

body.view-geral-active .tf-snap-card {
  background: var(--inst-surface);
  border-color: var(--inst-border-dim);
}

body.view-geral-active .tf-snap-card__lbl {
  color: var(--inst-text-dim);
}

body.view-geral-active .tf-snap-card__sub,
body.view-geral-active .tf-snap-summary {
  color: var(--inst-text-dim);
}

body.view-geral-active .tf-snap-btn--primary {
  background: rgba(0, 168, 204, 0.14);
  border-color: var(--inst-cyan-muted, rgba(0, 168, 204, 0.35));
  color: var(--inst-cyan);
}

/* ── Bloomberg GP snapshot layout ── */
.tf-search-snapshot--gp .tf-search-snapshot-panel {
  height: calc(88vh / var(--ui-fs-boost, 1));
  max-height: none;
  max-width: none;
  width: calc(80vw / var(--ui-fs-boost, 1));
}

.tf-snap-gp {
  display: flex;
  flex-direction: column;
  gap: calc(14px * var(--tf-snap-z));
}

.tf-snap-gp__head {
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: calc(18px * var(--tf-snap-z));
  justify-content: space-between;
  padding-bottom: calc(12px * var(--tf-snap-z));
}

.tf-snap-gp__quote {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
}

.tf-snap-gp__badge {
  align-self: flex-start;
  background: rgba(0, 168, 204, 0.14);
  border: 1px solid rgba(0, 168, 204, 0.35);
  border-radius: 2px;
  color: var(--cyan, #00a8cc);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(10px * var(--tf-snap-z));
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 2px 8px;
}

.tf-snap-gp__price {
  color: var(--cyan, #00a8cc);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(44px * var(--tf-snap-z));
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.05;
}

.tf-snap-gp__chg {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tf-snap-gp__ohlc {
  display: grid;
  gap: calc(8px * var(--tf-snap-z)) calc(18px * var(--tf-snap-z));
  grid-template-columns: repeat(4, minmax(72px, auto));
}

.tf-snap-gp-kv {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tf-snap-gp-kv span {
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(11px * var(--tf-snap-z));
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tf-snap-gp-kv strong {
  color: var(--text, var(--ink-cream, #ebe5d8));
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(15px * var(--tf-snap-z));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tf-snap-gp__main {
  display: grid;
  gap: calc(16px * var(--tf-snap-z));
  grid-template-columns: minmax(0, 1.62fr) minmax(280px, 0.88fr);
  min-height: calc(462px * var(--tf-snap-z));
}

.tf-snap-gp__chart-wrap {
  background: var(--tf-snap-steel, var(--bbg-bg, var(--inst-surface, #07090C)));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  min-height: calc(440px * var(--tf-snap-z));
  overflow: hidden;
  position: relative;
}

.tf-snap-gp__chart {
  flex: 1;
  min-height: calc(396px * var(--tf-snap-z));
  position: relative;
}

.tf-snap-gp-chart-host {
  height: 100%;
  min-height: calc(374px * var(--tf-snap-z));
  position: relative;
  width: 100%;
}

.tf-snap-gp__chart-wrap .bbg-range-stats {
  right: calc(48px * var(--bbg-rs-scale, 1));
  top: calc(6px * var(--bbg-rs-scale, 1));
  z-index: 12;
}

.tf-snap-gp-broker,
.tf-snap-gp-tech {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  min-height: calc(88px * var(--tf-snap-z));
  padding: calc(13px * var(--tf-snap-z)) calc(15px * var(--tf-snap-z));
}

.tf-snap-gp-broker__hdr,
.tf-snap-gp-tech__hdr {
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(11px * var(--tf-snap-z));
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: calc(10px * var(--tf-snap-z));
  text-transform: uppercase;
}

.tf-snap-gp-broker__grid,
.tf-snap-gp-tech__grid {
  display: grid;
  gap: calc(8px * var(--tf-snap-z)) calc(12px * var(--tf-snap-z));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tf-snap-gp-broker__na,
.tf-snap-gp-tech__na,
.tf-snap-gp-fund__role {
  color: var(--text-faint, #5a6670);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(11px * var(--tf-snap-z));
  line-height: 1.4;
  margin-bottom: calc(8px * var(--tf-snap-z));
}

.tf-snap-gp-kv--bullish { color: #3ecf8e !important; }
.tf-snap-gp-kv--bearish { color: #ef5350 !important; }
.tf-snap-gp-kv--overbought { color: #ef5350 !important; }
.tf-snap-gp-kv--oversold { color: #3ecf8e !important; }
.tf-snap-gp-kv--neutral { color: var(--text, var(--ink-cream, #ebe5d8)) !important; }

.tf-snap-gp__chart-lbl {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(10px * var(--tf-snap-z));
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: calc(8px * var(--tf-snap-z)) calc(12px * var(--tf-snap-z));
  text-transform: uppercase;
}

.tf-snap-gp-ma-legend {
  align-items: center;
  display: inline-flex;
  margin-left: calc(14px * var(--tf-snap-z));
}

.tf-snap-gp-ma-legend i {
  background: #67E6C9;
  display: inline-block;
  height: 1px;
  margin-right: calc(5px * var(--tf-snap-z));
  width: calc(18px * var(--tf-snap-z));
}

.tf-snap-gp-ma-legend--50 {
  color: #67E6C9;
}

.tf-snap-gp-chart-empty {
  align-items: center;
  color: var(--text-dim, #6a7884);
  display: flex;
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(13px * var(--tf-snap-z));
  height: 100%;
  justify-content: center;
  min-height: calc(220px * var(--tf-snap-z));
}

.tf-snap-gp__side {
  display: flex;
  flex-direction: column;
  gap: calc(12px * var(--tf-snap-z));
}

.tf-snap-gp-52w {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  min-height: calc(77px * var(--tf-snap-z));
  padding: calc(13px * var(--tf-snap-z)) calc(15px * var(--tf-snap-z));
}

.tf-snap-gp-52w__hdr,
.tf-snap-gp-fund__hdr,
.tf-snap-gp-intel__hdr {
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(11px * var(--tf-snap-z));
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: calc(10px * var(--tf-snap-z));
  text-transform: uppercase;
}

.tf-snap-gp-52w__track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  height: calc(8px * var(--tf-snap-z));
  margin: calc(8px * var(--tf-snap-z)) 0;
  position: relative;
}

.tf-snap-gp-52w__fill {
  background: linear-gradient(90deg, rgba(224, 134, 134, 0.35), rgba(116, 222, 198, 0.35));
  border-radius: 2px;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.tf-snap-gp-52w__mark {
  background: var(--cyan, #00a8cc);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  height: calc(12px * var(--tf-snap-z));
  margin-left: calc(-6px * var(--tf-snap-z));
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(12px * var(--tf-snap-z));
}

.tf-snap-gp-52w__vals {
  display: flex;
  justify-content: space-between;
}

.tf-snap-gp-52w__lo,
.tf-snap-gp-52w__hi {
  color: var(--text, var(--ink-cream, #ebe5d8));
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(12px * var(--tf-snap-z));
  font-variant-numeric: tabular-nums;
}

.tf-snap-gp-52w--empty,
.tf-snap-gp-fund__na {
  color: var(--text-faint, #5a6670);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(12px * var(--tf-snap-z));
  line-height: 1.45;
}

.tf-snap-gp-fund {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  min-height: calc(88px * var(--tf-snap-z));
  padding: calc(13px * var(--tf-snap-z)) calc(15px * var(--tf-snap-z));
}

.tf-snap-gp-fund__grid {
  display: grid;
  gap: calc(8px * var(--tf-snap-z)) calc(12px * var(--tf-snap-z));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tf-snap-gp-intel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  min-height: calc(88px * var(--tf-snap-z));
  padding: calc(13px * var(--tf-snap-z)) calc(15px * var(--tf-snap-z));
}

.tf-snap-grid--gp {
  gap: calc(8px * var(--tf-snap-z));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tf-snap-card--compact {
  min-height: calc(79px * var(--tf-snap-z));
  padding: calc(10px * var(--tf-snap-z)) calc(12px * var(--tf-snap-z));
}

.tf-snap-card--compact .tf-snap-card__val {
  font-size: calc(16px * var(--tf-snap-z));
  margin-top: calc(5px * var(--tf-snap-z));
}

.tf-snap-gp-intel__sum {
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(12px * var(--tf-snap-z));
  line-height: 1.45;
  margin-top: calc(10px * var(--tf-snap-z));
}

.tf-search-snapshot-foot {
  align-items: center;
}

.tf-snap-gp-source {
  color: var(--text-faint, #5a6670);
  flex: 1;
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(11px * var(--tf-snap-z));
  letter-spacing: 0.04em;
  text-align: left;
}

body.view-geral-active .tf-snap-gp__price {
  color: var(--inst-cyan);
}

body.view-geral-active .tf-snap-gp-52w,
body.view-geral-active .tf-snap-gp-fund,
body.view-geral-active .tf-snap-gp-intel,
body.view-geral-active .tf-snap-gp__chart-wrap {
  background: var(--bbg-bg, var(--inst-surface, #07090C));
  border-color: var(--inst-border-dim, #19262b);
}

body.view-geral-active .tf-search-snapshot-panel {
  background: var(--bbg-bg, var(--inst-panel, #07090C)) !important;
}

@media (max-width: 900px) {
  .tf-snap-gp__main {
    grid-template-columns: 1fr;
  }

  .tf-snap-gp__ohlc {
    grid-template-columns: repeat(2, minmax(72px, auto));
  }
}

/* ── LRE search results + modal (etapa 3) ── */
.tf-search-item--lre {
  flex-wrap: wrap;
}

.tf-search-item__badge {
  background: rgba(74, 143, 160, 0.14);
  border: 1px solid rgba(74, 143, 160, 0.35);
  border-radius: 2px;
  color: #4a8fa0;
  flex: 0 0 auto;
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(11px * var(--tf-search-z, 1));
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-left: auto;
  padding: calc(3px * var(--tf-search-z, 1)) calc(7px * var(--tf-search-z, 1));
}

.tf-search-item__badge--cmd {
  background: rgba(74, 143, 160, 0.12);
  border-color: rgba(74, 143, 160, 0.35);
  color: var(--inst-cyan, var(--cyan, #4A8FA0));
}

.tf-search-item__badge--help {
  background: rgba(74, 143, 160, 0.12);
  border-color: rgba(74, 143, 160, 0.4);
  color: var(--inst-cyan, var(--cyan, #4A8FA0));
}

.tf-search-item--command .tf-search-item__sym {
  color: var(--inst-cyan, var(--cyan, #4A8FA0));
}

.tf-search-item--lre .tf-search-item__sub {
  flex: 1 1 100%;
  margin-top: 2px;
  text-align: left;
}

body.view-geral-active .tf-search-item__badge {
  font-size: calc(12px * var(--tf-search-z, 1.12));
}

.tf-search-lre-panel {
  height: calc(88vh / var(--ui-fs-boost, 1));
  max-height: none;
  max-width: calc(80vw / var(--ui-fs-boost, 1));
  width: calc(80vw / var(--ui-fs-boost, 1));
}

.tf-lre-pipeline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: calc(8px * var(--tf-snap-z, 1.28));
  margin-bottom: calc(16px * var(--tf-snap-z, 1.28));
}

.tf-lre-step {
  color: var(--text-faint, #5a6670);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(12px * var(--tf-snap-z, 1.28));
  font-weight: 600;
  letter-spacing: 0.08em;
}

.tf-lre-step--done {
  color: var(--text-dim, #6a7884);
}

.tf-lre-step--active {
  font-weight: 700;
}

.tf-lre-step--lre {
  color: #4a8fa0;
}

.tf-lre-step--exh,
.tf-lre-step--sat {
  color: #c8883a;
}

.tf-lre-step--imp {
  color: #8fa4b8;
}

.tf-lre-step__sep {
  color: var(--text-faint, #5a6670);
  font-size: calc(12px * var(--tf-snap-z, 1.28));
  opacity: 0.7;
}

.tf-lre-pipeline--gp {
  margin-bottom: calc(4px * var(--tf-snap-z, 1.28));
}

.tf-snap-gp__badge--lre {
  background: rgba(74, 143, 160, 0.18);
  border: 1px solid rgba(74, 143, 160, 0.45);
  color: #4a8fa0;
}

.tf-lre-kv--entry { color: #c8883a !important; }
.tf-lre-kv--sl { color: #E77A7A !important; }
.tf-lre-kv--tp { color: #2dbd87 !important; }

.tf-lre-levels__hint {
  color: var(--text-faint, #5a6670);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(11px * var(--tf-snap-z, 1.28));
  letter-spacing: 0.06em;
  margin-top: calc(8px * var(--tf-snap-z, 1.28));
  text-transform: uppercase;
}

.tf-lre-risk {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(62, 207, 142, 0.28);
  display: flex;
  flex-direction: column;
  gap: calc(10px * var(--tf-snap-z, 1.28));
  padding: calc(12px * var(--tf-snap-z, 1.28));
}

.tf-lre-risk__hdr {
  color: var(--text-dim, #8a969e);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(11px * var(--tf-snap-z, 1.28));
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tf-lre-risk__opts {
  display: flex;
  gap: 6px;
}

.tf-lre-risk__btn {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim, #8a969e);
  cursor: pointer;
  flex: 1;
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(12px * var(--tf-snap-z, 1.28));
  font-weight: 700;
  padding: calc(8px * var(--tf-snap-z, 1.28)) 4px;
}

.tf-lre-risk__btn.is-active {
  border-color: rgba(62, 207, 142, 0.7);
  color: #3ecf8e;
}

.tf-lre-risk__confirm {
  background: transparent;
  border: 1px solid rgba(62, 207, 142, 0.65);
  color: #3ecf8e;
  cursor: pointer;
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(13px * var(--tf-snap-z, 1.28));
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: calc(12px * var(--tf-snap-z, 1.28));
  text-transform: uppercase;
}

.tf-lre-risk__confirm:hover {
  background: rgba(62, 207, 142, 0.1);
}

.tf-lre-risk__confirm:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.tf-lre-live {
  margin-top: calc(4px * var(--tf-snap-z, 1.28));
}

.tf-lre-live .ih-vs-live__val {
  font-size: calc(14px * var(--tf-snap-z, 1.28));
}

.tf-snap-price--lre.tf-snap-price--lre {
  color: #4a8fa0;
}

.tf-snap-price--lre.tf-snap-price--exh {
  color: #c8883a;
}

.tf-snap-price--lre.tf-snap-price--imp {
  color: #8fa4b8;
}

body.tf-search-lre-open,
body.tf-search-macro-open,
body.tf-search-fx-open,
body.tf-search-session-open {
  overflow: hidden;
}

.tf-search-item__badge--fx {
  background: rgba(0, 168, 204, 0.12);
  border-color: rgba(0, 168, 204, 0.35);
  color: var(--cyan, #00a8cc);
}

.tf-search-item--fx .tf-search-item__sym {
  color: #b8e8f4;
}

.tf-fx-hero {
  display: grid;
  gap: calc(10px * var(--tf-snap-z, 1.28));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: calc(16px * var(--tf-snap-z, 1.28));
}

.tf-fx-hero__block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  padding: calc(12px * var(--tf-snap-z, 1.28)) calc(14px * var(--tf-snap-z, 1.28));
}

.tf-fx-hero__lbl {
  color: var(--text-dim, #6a7884);
  display: block;
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(11px * var(--tf-snap-z, 1.28));
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: calc(6px * var(--tf-snap-z, 1.28));
}

.tf-fx-hero__val {
  color: var(--text, #d4dce4);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(22px * var(--tf-snap-z, 1.28));
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tf-fx-hero__block--up .tf-fx-hero__val {
  color: #3ecf8e;
}

.tf-fx-hero__block--dn .tf-fx-hero__val {
  color: #ef5350;
}

.tf-search-item__badge--macro {
  background: rgba(200, 136, 58, 0.14);
  border-color: rgba(200, 136, 58, 0.35);
  color: #c8883a;
}

.tf-search-item--macro .tf-search-item__sym {
  color: #e8dcc8;
}

.tf-macro-status {
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(12px * var(--tf-snap-z, 1.28));
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: calc(12px * var(--tf-snap-z, 1.28));
  text-transform: uppercase;
}

.tf-macro-status--released {
  color: #3ecf8e;
}

.tf-macro-status--upcoming {
  color: #c8883a;
}

.tf-snap-card__val--high {
  color: #ef5350;
}

.tf-snap-card__val--med {
  color: #c8883a;
}

.tf-snap-card__val--low {
  color: #8fa4b8;
}

.tf-search-item__badge--session {
  background: rgba(62, 207, 142, 0.1);
  border-color: rgba(62, 207, 142, 0.32);
  color: #3ecf8e;
}

.tf-search-item--session .tf-search-item__sym {
  color: #d8f0e4;
}

.tf-search-item--session.tf-search-item--active .tf-search-item__badge--session {
  color: #0a1a12;
}

.tf-sess-hero {
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: calc(6px * var(--tf-snap-z, 1.28));
  margin-bottom: calc(16px * var(--tf-snap-z, 1.28));
  padding: calc(16px * var(--tf-snap-z, 1.28));
  text-align: center;
}

.tf-sess-hero__val {
  color: #3ecf8e;
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(34px * var(--tf-snap-z, 1.28));
  font-weight: 700;
  line-height: 1;
}

.tf-sess-hero__lbl,
.tf-sess-hero__state {
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(12px * var(--tf-snap-z, 1.28));
  font-weight: 700;
  letter-spacing: 0.12em;
}

.tf-sess-hero--open .tf-sess-hero__state {
  color: #3ecf8e;
}

.tf-sess-hero--closed .tf-sess-hero__state {
  color: #8fa4b8;
}

.tf-sess-hero__clock {
  color: var(--text, #d4dce4);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(18px * var(--tf-snap-z, 1.28));
  font-weight: 700;
}

.tf-sess-summary,
.tf-sess-macro {
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(12px * var(--tf-snap-z, 1.28));
  letter-spacing: 0.04em;
  line-height: 1.45;
  margin-bottom: calc(14px * var(--tf-snap-z, 1.28));
}

.tf-sess-list {
  display: flex;
  flex-direction: column;
  gap: calc(6px * var(--tf-snap-z, 1.28));
}

.tf-sess-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  cursor: pointer;
  display: grid;
  gap: calc(8px * var(--tf-snap-z, 1.28));
  grid-template-columns: minmax(0, 1.1fr) auto auto minmax(0, 1.4fr);
  padding: calc(10px * var(--tf-snap-z, 1.28)) calc(12px * var(--tf-snap-z, 1.28));
  text-align: left;
  width: 100%;
}

.tf-sess-row:hover {
  border-color: rgba(0, 168, 204, 0.28);
}

.tf-sess-row--open {
  border-color: rgba(62, 207, 142, 0.22);
}

.tf-sess-row__name {
  color: var(--text, #d4dce4);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(12px * var(--tf-snap-z, 1.28));
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tf-sess-row__state {
  color: #8fa4b8;
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(10px * var(--tf-snap-z, 1.28));
  font-weight: 700;
  letter-spacing: 0.1em;
}

.tf-sess-row--open .tf-sess-row__state {
  color: #3ecf8e;
}

.tf-sess-row__clock {
  color: var(--cyan, #00a8cc);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(11px * var(--tf-snap-z, 1.28));
  font-weight: 700;
}

.tf-sess-row__sum {
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(10px * var(--tf-snap-z, 1.28));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Gerenciamento de Risco — search badge */
.tf-search-item__badge--risk {
  background: rgba(255, 170, 64, 0.12);
  border-color: rgba(255, 170, 64, 0.35);
  color: #ffaa40;
}

.tf-search-item--risk .tf-search-item__sym {
  color: #ffe8c8;
}

/* Gerenciamento de Risco + Mentor — janela ~80% da tela (gráfico permanece ativo atrás) */
body.tf-search-risk-open.tf-search-risk-expanded,
body.tf-search-mentor-open.tf-search-mentor-expanded,
body.tf-search-help-open.tf-search-help-expanded {
  overflow: hidden;
}

#tf-search-risk-modal.tf-search-risk--viewport-80,
#tf-search-mentor-modal.tf-search-mentor--viewport-80,
#tf-search-help-modal.tf-search-help--viewport-80 {
  inset: 0;
  pointer-events: none;
  position: fixed !important;
  z-index: 350;
}

#tf-search-risk-modal.tf-search-risk--viewport-80 .ih-fred-modal-backdrop,
#tf-search-mentor-modal.tf-search-mentor--viewport-80 .ih-fred-modal-backdrop,
#tf-search-help-modal.tf-search-help--viewport-80 .ih-fred-modal-backdrop {
  background: rgba(0, 0, 0, 0.52);
  display: block;
  pointer-events: auto;
}

#tf-search-risk-modal.tf-search-risk--viewport-80 .tf-search-risk-panel,
#tf-search-mentor-modal.tf-search-mentor--viewport-80 .tf-search-mentor-panel,
#tf-search-help-modal.tf-search-help--viewport-80 .tf-search-help-panel {
  background: rgba(8, 12, 18, 0.97);
  border: 1px solid rgba(0, 168, 204, 0.38);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: calc(88vh / var(--ui-fs-boost, 1));
  left: 50%;
  max-height: none;
  max-width: none;
  pointer-events: auto;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(80vw / var(--ui-fs-boost, 1));
}

/* Macro Help · tela cheia */
#tf-search-mentor-modal.tf-search-mentor--viewport-80:not(.tf-search-mentor--minimized) .tf-search-mentor-panel {
  border-radius: 0;
  bottom: 0;
  height: calc(100vh / var(--ui-fs-boost, 1));
  left: 0;
  right: 0;
  top: 0;
  transform: none;
  width: calc(100vw / var(--ui-fs-boost, 1));
}

#tf-search-mentor-modal.tf-search-mentor--viewport-80:not(.tf-search-mentor--minimized) .ih-fred-modal-backdrop {
  background: #05070a;
}

/* HELP SYSTEM · tela cheia */
#tf-search-help-modal.tf-search-help--viewport-80 .tf-search-help-panel {
  border-radius: 0;
  bottom: 0;
  height: calc(100vh / var(--ui-fs-boost, 1));
  left: 0;
  right: 0;
  top: 0;
  transform: none;
  width: calc(100vw / var(--ui-fs-boost, 1));
}

#tf-search-help-modal.tf-search-help--viewport-80 .ih-fred-modal-backdrop {
  background: #05070a;
}

/* GERENCIAMENTO DE RISCO · tela cheia */
#tf-search-risk-modal.tf-search-risk--viewport-80:not(.tf-search-risk--minimized) .tf-search-risk-panel {
  border-radius: 0;
  bottom: 0;
  height: calc(100vh / var(--ui-fs-boost, 1));
  left: 0;
  right: 0;
  top: 0;
  transform: none;
  width: calc(100vw / var(--ui-fs-boost, 1));
}

#tf-search-risk-modal.tf-search-risk--viewport-80:not(.tf-search-risk--minimized) .ih-fred-modal-backdrop {
  background: #05070a;
}

#tf-search-risk-modal.tf-search-risk--viewport-80 .ih-fred-modal-hdr,
#tf-search-risk-modal.tf-search-risk--viewport-80 .tf-search-snapshot-foot,
#tf-search-mentor-modal.tf-search-mentor--viewport-80 .ih-fred-modal-hdr,
#tf-search-mentor-modal.tf-search-mentor--viewport-80 .tf-search-snapshot-foot,
#tf-search-help-modal.tf-search-help--viewport-80 .ih-fred-modal-hdr,
#tf-search-help-modal.tf-search-help--viewport-80 .tf-search-snapshot-foot {
  flex-shrink: 0;
}

#tf-search-risk-modal.tf-search-risk--viewport-80 .ih-fred-modal-hdr {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

#tf-search-risk-modal.tf-search-risk--viewport-80 .tf-search-risk-body {
  display: flex;
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  padding: 0 !important;
}

#tf-search-mentor-modal.tf-search-mentor--viewport-80 .tf-search-mentor-body,
#tf-search-help-modal.tf-search-help--viewport-80 .tf-search-help-body {
  display: flex;
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  padding: 0 !important;
}

.tf-search-mentor-panel .gct-help-doc__meta {
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(12px * var(--tf-snap-z, 1.48));
  letter-spacing: 0.06em;
  margin: 0 0 calc(16px * var(--tf-snap-z, 1.48));
}

.tf-search-mentor-panel .tf-mentor-doc {
  color: var(--amber, #C8883A);
  padding: calc(20px * var(--tf-snap-z, 1.48)) calc(24px * var(--tf-snap-z, 1.48)) calc(28px * var(--tf-snap-z, 1.48));
}

.tf-search-mentor-panel .gct-help-doc__body {
  color: var(--amber, #C8883A);
}

.tf-search-mentor-panel .gct-help-doc__body p,
.tf-search-mentor-panel .gct-help-doc__body li,
.tf-search-mentor-panel .tf-mentor-list li,
.tf-search-mentor-panel .tf-mentor-block p {
  color: var(--amber, #C8883A);
}

.tf-search-mentor-panel .tf-mentor-gloss dd {
  color: var(--amber, #C8883A);
}

.tf-search-mentor-panel .tf-mentor-block--dim p {
  color: rgba(200, 136, 58, 0.85);
}

#tf-search-risk-modal.tf-search-risk--viewport-80.tf-search-risk--minimized .ih-fred-modal-backdrop,
#tf-search-mentor-modal.tf-search-mentor--viewport-80.tf-search-mentor--minimized .ih-fred-modal-backdrop {
  display: none;
}

#tf-search-risk-modal.tf-search-risk--viewport-80 .tf-search-risk-panel {
  --tf-snap-z: 1.62;
  --tf-risk-z: 1.82;
}

#tf-search-mentor-modal.tf-search-mentor--viewport-80 .tf-search-mentor-panel,
#tf-search-help-modal.tf-search-help--viewport-80 .tf-search-help-panel {
  --tf-snap-z: 1.62;
  --tf-macro-nav-z: 1.34;
  --tf-mentor-body-z: 1.88;
  --tf-help-nav-z: 1.34;
  --tf-help-body-z: 1.88;
}

/* Macro Help + System Help · sidebar / tipografia / search iguais */
.tf-search-mentor-panel .gct-help-layout,
.tf-search-help-panel .gct-help-layout {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.tf-search-mentor-panel .gct-help-side-search-wrap,
.tf-search-help-panel .gct-help-side-search-wrap {
  padding: calc(14px * var(--tf-macro-nav-z, 1.34)) calc(16px * var(--tf-macro-nav-z, 1.34));
}

.tf-search-mentor-panel #tf-search-mentor-side-search,
.tf-search-help-panel #tf-search-help-side-search {
  font-size: calc(16px * var(--tf-macro-nav-z, 1.34));
  padding: calc(10px * var(--tf-macro-nav-z, 1.34)) calc(30px * var(--tf-macro-nav-z, 1.34)) calc(10px * var(--tf-macro-nav-z, 1.34)) calc(12px * var(--tf-macro-nav-z, 1.34));
  background: #C8923A;
  border: 1px solid rgba(232, 184, 92, 0.95);
  border-radius: 2px;
  color: #1a1208;
  caret-color: #1a1208;
  outline: none;
  width: 100%;
  font-family: var(--font-bloomberg, var(--mono), Consolas, monospace);
  letter-spacing: 0.04em;
  -webkit-appearance: none;
  appearance: none;
}

.tf-search-mentor-panel #tf-search-mentor-side-search:focus,
.tf-search-help-panel #tf-search-help-side-search:focus {
  border-color: #E8B85C;
  box-shadow: 0 0 0 1px rgba(232, 184, 92, 0.35);
}

.tf-search-mentor-panel #tf-search-mentor-side-search::placeholder,
.tf-search-help-panel #tf-search-help-side-search::placeholder {
  font-size: calc(15px * var(--tf-macro-nav-z, 1.34));
  color: rgba(26, 18, 8, 0.62);
}

.tf-search-mentor-panel .gct-help-side-search-ico,
.tf-search-help-panel .gct-help-side-search-ico {
  font-size: calc(15px * var(--tf-macro-nav-z, 1.34));
  right: calc(26px * var(--tf-macro-nav-z, 1.34));
  color: #1a1208;
  opacity: 0.72;
}

.tf-search-mentor-panel .gct-help-nav,
.tf-search-help-panel .gct-help-nav {
  padding: calc(10px * var(--tf-macro-nav-z, 1.34)) 0 calc(18px * var(--tf-macro-nav-z, 1.34));
}

.tf-search-mentor-panel .gct-help-nav-sec,
.tf-search-help-panel .gct-help-nav-sec {
  color: var(--cyan, #00a8cc);
  font-size: calc(14px * var(--tf-macro-nav-z, 1.34));
  margin: calc(16px * var(--tf-macro-nav-z, 1.34)) calc(16px * var(--tf-macro-nav-z, 1.34)) calc(8px * var(--tf-macro-nav-z, 1.34));
}

.tf-search-mentor-panel .gct-help-nav-item,
.tf-search-help-panel .gct-help-nav-item {
  color: var(--text, #ebe5d8);
  font-size: calc(16px * var(--tf-macro-nav-z, 1.34));
  line-height: 1.35;
  padding: calc(11px * var(--tf-macro-nav-z, 1.34)) calc(16px * var(--tf-macro-nav-z, 1.34)) calc(11px * var(--tf-macro-nav-z, 1.34)) calc(18px * var(--tf-macro-nav-z, 1.34));
}

.tf-search-mentor-panel .gct-help-nav-empty,
.tf-search-help-panel .gct-help-nav-empty {
  font-size: calc(15px * var(--tf-macro-nav-z, 1.34));
  padding: calc(18px * var(--tf-macro-nav-z, 1.34));
}

.tf-search-mentor-panel .gct-help-doc__title,
.tf-search-help-panel .gct-help-doc__title {
  color: var(--cyan, #00a8cc);
  font-size: calc(28px * var(--tf-snap-z, 1.62));
}

.tf-search-mentor-panel .gct-help-doc__meta {
  font-size: calc(13px * var(--tf-snap-z, 1.62));
}

.tf-search-mentor-panel .tf-mentor-doc,
.tf-search-mentor-panel .gct-help-doc__body,
.tf-search-help-panel .gct-help-doc__body {
  color: var(--amber, #C8883A);
  font-size: calc(17px * var(--tf-mentor-body-z, var(--tf-snap-z, 1.62)));
  line-height: 1.68;
}

.tf-search-mentor-panel .gct-help-doc__body p,
.tf-search-mentor-panel .gct-help-doc__body li,
.tf-search-mentor-panel .gct-help-doc__body ol li,
.tf-search-mentor-panel .tf-mentor-list li,
.tf-search-mentor-panel .tf-mentor-block p,
.tf-search-mentor-panel .tf-mentor-gloss dd,
.tf-search-help-panel .gct-help-doc__body p,
.tf-search-help-panel .gct-help-doc__body li,
.tf-search-help-panel .gct-help-doc__body ol li,
.tf-search-help-panel .gct-help-gloss dd {
  color: var(--amber, #C8883A);
  font-size: calc(17px * var(--tf-mentor-body-z, var(--tf-snap-z, 1.62)));
  line-height: 1.68;
}

.tf-search-mentor-panel .tf-mentor-h3 {
  font-size: calc(16px * var(--tf-snap-z, 1.62));
}

.tf-search-mentor-panel .tf-mentor-h4 {
  font-size: calc(14px * var(--tf-snap-z, 1.62));
}

.tf-search-mentor-panel .tf-mentor-hint,
.tf-search-mentor-panel .tf-mentor-disclaimer {
  font-size: calc(13px * var(--tf-mentor-body-z, var(--tf-snap-z, 1.62)));
  line-height: 1.55;
}

#tf-search-mentor-modal .tf-search-mentor-panel .ih-fred-modal-hdr .ih-macro-card-title,
#tf-search-help-modal .tf-search-help-panel .ih-fred-modal-hdr .ih-macro-card-title {
  color: var(--cyan, #00a8cc);
  font-family: var(--font-bloomberg, var(--mono), Consolas, monospace);
  font-size: calc(22px * var(--tf-snap-z, 1.62));
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#tf-search-mentor-modal .tf-search-mentor-panel .ih-fred-modal-hdr .ih-macro-card-sub,
#tf-search-help-modal .tf-search-help-panel .ih-fred-modal-hdr .ih-macro-card-sub {
  color: var(--text, #ebe5d8);
  font-family: var(--font-bloomberg, var(--mono), Consolas, monospace);
  font-size: calc(13px * var(--tf-snap-z, 1.62));
  letter-spacing: 0.07em;
  margin-top: calc(6px * var(--tf-snap-z, 1.62));
}

#tf-search-risk-modal.tf-search-risk--viewport-80.tf-search-risk--minimized .tf-search-risk-panel,
#tf-search-mentor-modal.tf-search-mentor--viewport-80.tf-search-mentor--minimized .tf-search-mentor-panel {
  border-radius: 8px 8px 0 0;
  bottom: 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
  height: auto;
  left: auto;
  max-height: none;
  max-width: min(420px, calc(100% - 20px));
  min-width: 260px;
  right: 10px;
  top: auto;
  transform: none;
  width: auto;
}

#tf-search-risk-modal.tf-search-risk--minimized .tf-search-risk-body,
#tf-search-risk-modal.tf-search-risk--minimized .tf-search-snapshot-foot {
  display: none !important;
}

#tf-search-risk-modal.tf-search-risk--minimized .ih-fred-modal-hdr .ih-macro-card-sub {
  display: none;
}

#tf-search-risk-modal.tf-search-risk--minimized .ih-fred-modal-hdr {
  cursor: pointer;
  padding-bottom: calc(10px * var(--tf-snap-z, 1.62));
  padding-top: calc(10px * var(--tf-snap-z, 1.62));
}

.tf-search-risk-hdr-main {
  flex: 1 1 auto;
  min-width: 0;
}

.tf-search-risk-hdr-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: calc(6px * var(--tf-snap-z, 1.62));
}

#tf-search-risk-modal .ih-fred-modal-min {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: var(--text-dim, #8fa4b8);
  cursor: pointer;
  font-family: var(--mono);
  font-size: calc(14px * var(--tf-snap-z, 1.62));
  height: calc(34px * var(--tf-snap-z, 1.62));
  line-height: 1;
  min-width: calc(34px * var(--tf-snap-z, 1.62));
  padding: 0;
}

#tf-search-risk-modal .ih-fred-modal-min:hover {
  border-color: rgba(0, 168, 204, 0.45);
  color: var(--cyan, #00a8cc);
}

#tf-search-risk-modal.tf-search-risk--minimized .ih-fred-modal-min {
  display: none;
}

.tf-search-risk-panel {
  --tf-snap-z: 1.62;
  --tf-risk-z: 1.82;
  height: calc(88vh / var(--ui-fs-boost, 1));
  max-height: none;
  max-width: calc(80vw / var(--ui-fs-boost, 1));
  width: calc(80vw / var(--ui-fs-boost, 1));
}

.tf-search-risk-body {
  display: flex;
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  padding: 0 !important;
}

.tf-risk-layout {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  height: 100%;
}

.tf-risk-side .gct-help-nav-item {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tf-risk-nav-label {
  display: block;
  font-size: calc(15px * var(--tf-risk-z, 1.48));
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tf-risk-nav-sub {
  color: var(--text-dim, #6a7884);
  display: block;
  font-size: calc(12px * var(--tf-risk-z, 1.48));
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.tf-risk-side .gct-help-nav-item.is-active .tf-risk-nav-sub {
  color: rgba(0, 168, 204, 0.75);
}

.tf-risk-content {
  min-height: 0;
  overflow-y: auto;
}

.tf-risk-content .tf-risk-doc {
  padding: calc(20px * var(--tf-risk-z, 1.48)) calc(24px * var(--tf-risk-z, 1.48)) calc(28px * var(--tf-risk-z, 1.48));
}

.tf-risk-content .gct-help-doc__title {
  color: var(--cyan, #00a8cc);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(20px * var(--tf-risk-z, 1.48));
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 calc(6px * var(--tf-risk-z, 1.48));
  text-transform: uppercase;
}

.tf-risk-content .gct-help-doc__meta {
  color: var(--text-dim, #6a7884);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(12px * var(--tf-risk-z, 1.48));
  letter-spacing: 0.06em;
  margin: 0 0 calc(16px * var(--tf-risk-z, 1.48));
}

.tf-risk-table-wrap {
  margin-top: calc(22px * var(--tf-risk-z, 1.48));
  overflow-x: auto;
}

.tf-risk-table {
  border-collapse: collapse;
  font-family: var(--font-bloomberg, var(--mono));
  width: 100%;
}

.tf-risk-table th,
.tf-risk-table td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: calc(12px * var(--tf-risk-z, 1.48)) calc(14px * var(--tf-risk-z, 1.48));
  text-align: center;
}

.tf-risk-table thead th {
  background: rgba(0, 168, 204, 0.1);
  color: var(--cyan, #00a8cc);
  font-size: calc(12px * var(--tf-risk-z, 1.48));
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tf-risk-table tbody th {
  font-size: calc(15px * var(--tf-risk-z, 1.48));
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
}

.tf-risk-table tbody td {
  color: #fff;
  font-size: calc(16px * var(--tf-risk-z, 1.48));
  font-weight: 700;
}

.tf-risk-table-row--a th { color: #ff7a5c; }
.tf-risk-table-row--b th { color: #ffaa40; }
.tf-risk-table-row--c th { color: #3ecf8e; }

.tf-risk-doc--table .tf-risk-levels li strong {
  min-width: 4.5em;
  text-align: right;
}

@media (max-width: 820px) {
  .tf-risk-layout {
    grid-template-columns: 1fr;
  }

  .tf-risk-side {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 0;
    max-height: 34%;
  }
}

.tf-risk-doc {
  color: var(--text, #c8d0d8);
  font-family: var(--font-read, system-ui, sans-serif);
  font-size: calc(15px * var(--tf-risk-z, 1.48));
  line-height: 1.62;
}

.tf-risk-lead {
  margin: 0 0 calc(16px * var(--tf-risk-z, 1.48));
}

.tf-risk-note {
  background: rgba(255, 170, 64, 0.08);
  border-left: 3px solid #ffaa40;
  color: #d8c4a8;
  margin: 0 0 calc(20px * var(--tf-risk-z, 1.48));
  padding: calc(12px * var(--tf-risk-z, 1.48)) calc(14px * var(--tf-risk-z, 1.48));
}

.tf-risk-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: calc(18px * var(--tf-risk-z, 1.48));
  padding-top: calc(16px * var(--tf-risk-z, 1.48));
}

.tf-risk-h3 {
  color: var(--amber, #ffaa40);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(14px * var(--tf-risk-z, 1.48));
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 calc(10px * var(--tf-risk-z, 1.48));
  text-transform: uppercase;
}

.tf-risk-section--a .tf-risk-h3 { color: #ff7a5c; }
.tf-risk-section--b .tf-risk-h3 { color: #ffaa40; }
.tf-risk-section--c .tf-risk-h3 { color: #3ecf8e; }

.tf-risk-section p {
  margin: 0 0 calc(12px * var(--tf-risk-z, 1.48));
}

.tf-risk-levels {
  list-style: none;
  margin: 0 0 calc(14px * var(--tf-risk-z, 1.48));
  padding: 0;
}

.tf-risk-levels li {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  gap: calc(14px * var(--tf-risk-z, 1.48));
  justify-content: space-between;
  padding: calc(10px * var(--tf-risk-z, 1.48)) 0;
}

.tf-risk-levels li span {
  color: var(--text-dim, #8fa4b8);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(12px * var(--tf-risk-z, 1.48));
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tf-risk-levels li strong {
  color: #fff;
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(16px * var(--tf-risk-z, 1.48));
}

.tf-risk-use {
  color: #a8b8c8;
  font-size: calc(14px * var(--tf-risk-z, 1.48));
}

.tf-risk-steps {
  margin: 0;
  padding-left: calc(20px * var(--tf-risk-z, 1.48));
}

.tf-risk-steps li {
  margin-bottom: calc(8px * var(--tf-risk-z, 1.48));
}

/* CPM ALERTS · search flutuante (S + clique no card) */
.tf-search-wrap.tf-search-wrap--floating {
  position: fixed;
  top: calc(var(--header-h, 48px) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 12050;
  width: min(420px, 92vw);
  max-width: 420px;
  min-width: 260px;
  margin: 0;
  padding: 8px 10px;
  background: rgba(5, 7, 10, 0.98);
  border: 1px solid rgba(0, 168, 204, 0.35);
  border-radius: 2px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.tf-search-wrap.tf-search-wrap--floating .tf-search-dropdown {
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
}

body.tf-search-floating-open {
  cursor: crosshair;
}

/* Mentor GCT — badge */
.tf-search-item__badge--mentor {
  background: rgba(0, 168, 204, 0.12);
  border-color: rgba(0, 168, 204, 0.38);
  color: #5ec8e8;
}

.tf-search-item--mentor .tf-search-item__sym {
  color: #d8f4ff;
}

#tf-search-mentor-modal.tf-search-mentor--minimized .tf-search-mentor-body,
#tf-search-mentor-modal.tf-search-mentor--minimized .tf-search-snapshot-foot {
  display: none !important;
}

#tf-search-mentor-modal.tf-search-mentor--minimized .ih-fred-modal-hdr .ih-macro-card-sub {
  display: none;
}

#tf-search-mentor-modal.tf-search-mentor--minimized .ih-fred-modal-hdr {
  cursor: pointer;
}

#tf-search-mentor-modal.tf-search-mentor--minimized .ih-fred-modal-min {
  display: none;
}

.tf-mentor-doc {
  color: var(--amber, #C8883A);
  font-family: var(--font-bloomberg, var(--mono));
  font-size: calc(14px * var(--tf-snap-z, 1.28));
  line-height: 1.62;
}

.tf-mentor-h3 {
  color: #5ec8e8;
  font-size: calc(14px * var(--tf-snap-z, 1.28));
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.tf-mentor-h4 {
  color: #8fa4b8;
  font-size: calc(12px * var(--tf-snap-z, 1.28));
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.tf-mentor-block {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: calc(12px * var(--tf-snap-z, 1.28));
  padding-bottom: calc(10px * var(--tf-snap-z, 1.28));
}

.tf-mentor-list {
  margin: 0;
  padding-left: calc(18px * var(--tf-snap-z, 1.28));
}

.tf-mentor-list li {
  margin-bottom: 6px;
}

.tf-mentor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tf-mentor-tag {
  background: rgba(0, 168, 204, 0.1);
  border: 1px solid rgba(0, 168, 204, 0.25);
  border-radius: 2px;
  color: #9ed8ea;
  font-size: calc(13px * var(--tf-snap-z, 1.28));
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  padding: 6px 11px;
}

.tf-mentor-gloss dt {
  color: #5ec8e8;
  font-weight: 600;
  margin-top: 8px;
}

.tf-mentor-gloss dd {
  color: var(--text-dim, #8fa4b8);
  margin: 2px 0 0;
}

.tf-mentor-hint,
.tf-mentor-disclaimer {
  color: var(--text-dim, #6a7884);
  font-size: calc(12px * var(--tf-snap-z, 1.28));
  line-height: 1.5;
  margin-top: 10px;
}
