/* Author targets in the current ticker research column. */
.tt-preview {
  --tt-border: var(--tr-surface-border, #21262d);
  --tt-muted: #8b949e;
  container-type: inline-size;
  margin: 18px 0 24px;
  padding: 20px;
  border: 1px solid var(--tt-border);
  border-radius: 14px;
  background: var(--tr-surface, #0d1117);
  color: #e4e4e7;
  scroll-margin-top: 75px;
  font-family: Inter, system-ui, sans-serif;
}
.tt-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.tt-heading > div { min-width: 0; }
.tt-heading h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; line-height: 24px; margin: 0; }
.tt-heading h2 > i { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid var(--bz-brand-border); border-radius: 9px; color: var(--bz-brand, #f5c84b); background: var(--bz-brand-soft); font-size: 14px; }
.tt-heading h2 > span { min-width: 0; }
.tt-heading p { margin: 0; color: var(--tt-muted); font-size: 12px; line-height: 18px; }
.tt-preview-badge { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 4px 8px; border: 1px solid #f5c84b30; border-radius: 5px; background: #f5c84b0d; color: #d6b454; font-size: 10px; line-height: 16px; white-space: nowrap; }

.tt-overview { padding-block: 24px; border-bottom: 1px solid var(--tt-border); }
.tt-overview h3 { margin: 0; color: #c9d1d9; font-size: 12px; font-weight: 500; line-height: 18px; }
.tt-forecast { display: grid; grid-template-columns: minmax(190px, max-content) minmax(0, 1fr); column-gap: 28px; min-width: 0; }
.tt-average-heading { grid-row: 1 / 4; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding-right: 20px; border-right: 1px solid var(--tt-border); }
.tt-average { flex-shrink: 0; margin: 0; }
.tt-average dt { color: #b4bdc8; font-size: 12px; font-weight: 400; line-height: 18px; }
.tt-average dd { margin: 4px 0 0; color: #f5c84b; font-size: 42px; font-weight: 600; line-height: 48px; letter-spacing: -.035em; font-variant-numeric: tabular-nums lining-nums; }
.tt-average-context { min-width: 0; color: var(--tt-muted); font-size: 11px; line-height: 18px; }
.tt-average-context p { max-width: 23ch; margin: 0; }
.tt-average-context > span { display: block; margin-top: 4px; font-size: 10px; }
.tt-average-context > span:empty { display: none; }
.tt-change { color: #80c9a0; font-variant-numeric: tabular-nums; }
.tt-change.tt-negative { color: #ef9994; }
.tt-distribution-heading { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.tt-distribution-heading span { color: var(--tt-muted); font-size: 10px; line-height: 16px; white-space: nowrap; }
.tt-chart-key { display: flex; align-items: center; gap: 14px; }
.tt-mean-key { display: inline-flex; align-items: center; gap: 6px; }
.tt-mean-key::before { content: ''; width: 10px; border-top: 2px dashed #f5c84b; }
.tt-distribution { grid-column: 2; position: relative; height: 122px; margin-top: 8px; }
.tt-range-stats { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 10px 0 0; }
.tt-range-stats > div { display: grid; grid-template-rows: minmax(16px, auto) 26px; gap: 3px; min-width: 0; }
.tt-range-stats > div:last-child { text-align: right; justify-items: end; }
.tt-range-stats dt { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--tt-muted); font-size: 10px; font-weight: 400; line-height: 16px; }
.tt-range-stats dd { margin: 0; color: #e4e9ef; font-size: 21px; font-weight: 550; line-height: 26px; letter-spacing: -.025em; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }

/* Local ring follows the published Consensus cohort, not the target filters. */
.tr-consensus-visual { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 20px; margin-top: 16px; }
.tr-consensus-donut { position: relative; width: 112px; height: 112px; }
.tr-consensus-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.tr-consensus-center strong { color: #e8edf5; font-size: 26px; font-weight: 600; line-height: 32px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tr-consensus-center span { color: #8b949e; font-size: 11px; line-height: 16px; }
.tr-consensus-breakdown { min-width: 0; }
.tr-consensus-breakdown .tr-stat-meta { margin: 0 0 10px; font-size: 11px; }
.tr-consensus-counts { display: grid; gap: 7px; margin: 0; }
.tr-consensus-counts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; --tr-call-color: #62c19a; }
.tr-consensus-counts > div[data-direction=short] { --tr-call-color: #ec9393; }
.tr-consensus-counts > div[data-direction=avoid] { --tr-call-color: #e7ae60; }
.tr-consensus-counts dt { display: flex; align-items: center; gap: 7px; color: var(--tr-call-color); font-size: 12px; font-weight: 400; line-height: 18px; }
.tr-consensus-counts dt::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tr-call-color); }
.tr-consensus-counts dd { margin: 0; color: #e8edf5; font-size: 14px; font-weight: 550; line-height: 18px; font-variant-numeric: tabular-nums; }

.tt-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 12px 14px; border: 1px solid var(--tt-border); border-radius: 8px; background: #ffffff02; }
.tt-toolbar label { display: grid; gap: 6px; min-width: 0; margin: 0; color: var(--tt-muted); font-size: 10px; line-height: 16px; }
.tt-toolbar select { min-height: 36px; max-width: 220px; padding: 7px 28px 7px 10px; border: 1px solid #ffffff1f; border-radius: 6px; background: var(--tr-surface-raised, #111820); color: #c9d1d9; font: 12px/20px Inter, system-ui, sans-serif; color-scheme: dark; }
.tt-scope { margin-left: auto; padding-bottom: 10px; color: #bbaa78; font-size: 10px; line-height: 16px; }
.tt-empty { margin: 18px 0; color: #a7b0bc; font-size: 12px; line-height: 20px; }
.tt-preview :is(a, button, select, summary):focus-visible { outline: 2px solid #f5c84b; outline-offset: 3px; }

.tt-calls { margin-top: 0; }
.tt-calls > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 14px 0; color: #c9d1d9; font-size: 12px; line-height: 20px; cursor: pointer; list-style: none; }
.tt-calls > summary::-webkit-details-marker { display: none; }
.tt-calls > summary > span:first-child { display: flex; align-items: center; gap: 8px; }
.tt-calls > summary > span:nth-child(2) { margin-left: auto; color: var(--tt-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.tt-calls > summary > i { font-size: 10px; transition: transform .15s; }
.tt-calls[open] > summary > i { transform: rotate(180deg); }
.tt-columns, .tt-call { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(95px, .8fr) minmax(0, 1.2fr) minmax(0, 1.25fr) 28px; column-gap: 20px; }
.tt-columns { padding: 4px 0 10px; color: var(--tt-muted); font-size: 10px; line-height: 16px; }
.tt-columns > span:nth-child(2) { text-align: right; }
.tt-call { align-items: baseline; padding: 12px 0; border-top: 1px solid var(--tt-border); }
.tt-call > div { min-width: 0; }
.tt-call a { color: #e4e4e7; text-decoration: none; font-weight: 550; font-size: 12px; line-height: 22px; overflow-wrap: anywhere; }
.tt-call a:hover { color: #f5c84b; }
.tt-call > div > :first-child { line-height: 22px; }
.tt-call small { display: block; margin-top: 2px; color: var(--tt-muted); font-size: 10px; line-height: 16px; }
.tt-call small:empty { display: none; }
.tt-call-target { text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.tt-call-target strong { color: #e4c777; font-size: 15px; font-weight: 600; white-space: nowrap; }
.tt-call-meta > span { display: inline-block; padding: 0 6px; border-radius: 4px; background: #73bf8f1f; color: #80c9a0; font-size: 10px; }
.tt-call-meta > span[data-direction=short] { background: #ef99941f; color: #ef9994; }
.tt-call-meta > span[data-direction=avoid] { background: #f5c84b1a; color: #f5c84b; }
.tt-call-horizon { overflow-wrap: anywhere; }
.tt-call-horizon > span { color: #c9d1d9; font-size: 12px; }
.tt-source { display: grid; place-items: center; align-self: start; min-height: 28px; }
.tt-call.tt-excluded .tt-call-target strong { color: #98a2b0; white-space: normal; }
.tt-call.tt-excluded .tt-call-target small { color: #cbb16f; }
.tt-preview [hidden] { display: none !important; }
.tt-show-all { display: block; min-height: 36px; margin: 14px auto 0; padding: 8px 16px; border: 1px solid #ffffff1f; border-radius: 6px; background: var(--tr-surface-raised, #111820); color: #c9d1d9; font: 12px/20px Inter, system-ui, sans-serif; cursor: pointer; }
.tt-show-all:hover { border-color: #bbaa78; color: #f5c84b; }
.tt-foot { margin-top: 12px; border-top: 1px solid var(--tt-border); padding-top: 12px; color: var(--tt-muted); font-size: 11px; line-height: 18px; }
.tt-foot > p { margin: 0 0 8px; font-size: 10px; line-height: 16px; }

@container (max-width: 700px) {
  .tt-forecast { grid-template-columns: minmax(170px, max-content) minmax(0, 1fr); column-gap: 20px; }
  .tt-average-heading { padding-right: 16px; }
  .tt-average dd { font-size: 36px; line-height: 42px; }
  .tt-range-stats dd { font-size: 18px; }
  .tt-distribution-heading { flex-wrap: wrap; gap: 2px 8px; }
  .tt-columns, .tt-call { column-gap: 14px; grid-template-columns: minmax(0, 1.25fr) 90px minmax(0, 1.1fr) minmax(0, 1.2fr) 24px; }
  .tt-scope { margin-left: 0; }
}
@container (max-width: 560px) {
  .tt-overview { padding-block: 20px; }
  .tt-forecast { display: block; }
  .tt-average-heading { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 0; margin-bottom: 20px; border-right: 0; }
  .tt-average dd { font-size: 34px; line-height: 40px; }
  .tt-average-context { font-size: 10px; line-height: 16px; }
  .tt-average-context p { max-width: 17ch; }
  .tt-range-stats dd { font-size: clamp(14px, 5.6cqi, 20px); }
  .tt-toolbar { gap: 10px; padding: 12px; }
  .tt-toolbar label { flex: 1 1 40%; }
  .tt-toolbar label:nth-child(3) { flex-basis: 100%; }
  .tt-toolbar select { width: 100%; max-width: none; min-height: 40px; }
  .tt-scope { padding-bottom: 0; }
  .tt-columns { display: none; }
  .tt-call { grid-template-columns: minmax(0, 1fr) minmax(100px, .85fr) 24px; gap: 8px 12px; align-items: baseline; padding: 14px 0; }
  .tt-author { grid-column: 1; grid-row: 1; }
  .tt-call-target { grid-column: 2; grid-row: 1; }
  .tt-call-meta { grid-column: 1; grid-row: 2; }
  .tt-call-horizon { grid-column: 2; grid-row: 2; }
  .tt-source { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .tt-call small { font-size: 10px; }
}
@media (max-width: 600px) {
  .tt-preview { padding: 16px; margin: 14px 0 22px; border-radius: 12px; }
  .tt-heading { gap: 10px; margin-bottom: 20px; }
  .tt-heading h2 { font-size: 15px; }
  .tt-heading p { font-size: 11px; }
  .tt-preview-badge { font-size: 9px; padding: 3px 6px; }
}
