/* Screen 050 — Canvassing Hub layout */

/* ~5 data rows + sticky header before internal vertical scroll */
:root {
  --canvassing-pane-body-max: 200px;
  --canvassing-row-gap: 28px;
  --canvassing-page-gap: 28px;
}

html.canvassing-page,
body.canvassing-page {
  height: 100%;
  overflow: hidden;
}

#canvassing-container,
.canvassing-wrapper,
.canvassing-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  gap: 0.4rem;
  padding: 0.5rem;
  padding-bottom: 60px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.canvassing-layout {
  display: flex;
  flex-direction: column;
  gap: var(--canvassing-page-gap);
  min-height: 0;
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  /* Extra room below the last row so IOB/Whale cells stay clickable */
  padding-bottom: 60px;
}

.canvassing-row-news {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  /* Height follows news + stacked launchers — no reserved empty band under buttons */
  max-height: none;
  display: grid !important;
  /* ~25% Optioncharts stack | ~75% Market News */
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) !important;
  gap: var(--canvassing-row-gap);
  align-items: start;
  align-content: start;
}

.canvassing-row-news > .canvassing-pane {
  max-height: calc(var(--canvassing-pane-body-max) + 2.25rem);
  width: auto;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  grid-column: auto;
}

/* Optioncharts: stacked navbar-height launchers — hug content, no stretch gap */
.canvassing-row-news > .canvassing-pane-optioncharts {
  max-height: none;
  align-self: start;
  height: fit-content;
}

.canvassing-pane-optioncharts .canvassing-pane-body {
  max-height: none;
  overflow: visible;
}

/* News spans the remaining ~75% */
.canvassing-row-news > .canvassing-pane-news {
  width: auto;
  max-width: 100%;
}

.canvassing-news-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.3rem 0.45rem;
  max-height: var(--canvassing-pane-body-max);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.optioncharts-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  max-height: none;
  overflow: visible;
  align-content: start;
}

.optioncharts-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 0.25rem;
  background: rgba(14, 165, 233, 0.12);
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.optioncharts-link:hover,
.optioncharts-link:focus-visible {
  background: rgba(14, 165, 233, 0.28);
  color: #e0f2fe;
  outline: none;
}

/* Forced 2-column screener row — wide gap = neutral page-scroll channel */
.canvassing-row-flow {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--canvassing-row-gap);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 0 0 auto;
  align-items: stretch;
}

.canvassing-row-flow > .canvassing-pane {
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: calc(var(--canvassing-pane-body-max) + 2.5rem);
  overflow: hidden;
}

.canvassing-row-flow .canvassing-pane-body,
.canvassing-row-flow .screener-scroll {
  max-height: var(--canvassing-pane-body-max) !important;
  overflow-x: auto;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.canvassing-row-mid {
  min-height: 0;
  max-height: none;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

/* Parent card must not fight the isolated WebKit scroll boundary */
.canvassing-row-mid > .canvassing-pane {
  height: auto;
  max-height: none;
  overflow: visible;
}

.canvassing-row-mid .cross-grid {
  max-height: none !important;
  overflow: visible;
  gap: var(--canvassing-row-gap) !important;
  column-gap: var(--canvassing-row-gap) !important;
}

/* Isolated iPadOS / WebKit scroll containers for MA crossover panes */
#pane-bullish-cross .pane-scroll-body,
#pane-bearish-cross .pane-scroll-body {
  height: 220px;
  max-height: 220px;
  overflow-x: auto;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  overscroll-behavior-x: contain;
  contain: content;
  touch-action: pan-y;
}

#pane-bullish-cross,
#pane-bearish-cross {
  height: auto;
  overflow: visible;
  min-height: 0;
}

.canvassing-row-mid .canvassing-pane,
.canvassing-row-bottom .canvassing-pane {
  width: 100%;
  max-width: 100%;
}

.canvassing-row-bottom .canvassing-pane {
  overflow: hidden;
}

.canvassing-row-bottom {
  min-height: 0;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--canvassing-row-gap);
  width: 100%;
  max-width: 100%;
}

.canvassing-row-cmf {
  min-height: 0;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--canvassing-row-gap);
  width: 100%;
  max-width: 100%;
}

.canvassing-row-cmf > .canvassing-pane {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  /* Nested .cmf-table-wrap owns vertical scroll — do not clip children. */
  max-height: none;
  overflow: visible;
}

.canvassing-row-rrg {
  min-height: 0;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--canvassing-row-gap);
  width: 100%;
  max-width: 100%;
}

.canvassing-row-rrg > .canvassing-pane {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.rrg-table-wrap {
  max-height: 280px;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.rrg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.rrg-table th,
.rrg-table td {
  padding: 0.2rem 0.4rem;
  white-space: nowrap;
}

.rrg-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgb(15 23 42);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(100 116 139);
}

.rrg-score {
  color: rgb(134 239 172);
  font-weight: 700;
}

.rrg-heading-ne {
  color: rgb(134 239 172);
  font-weight: 700;
}

.rrg-state {
  color: rgb(186 230 253);
}

.cmf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--canvassing-row-gap);
  min-height: 0;
  align-items: stretch;
}

.cmf-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgb(30 41 59 / 0.9);
  border-radius: 0.25rem;
  background: rgb(2 6 23 / 0.35);
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.cmf-panel.bull {
  border-color: rgb(22 101 52 / 0.55);
}

.cmf-panel.bear {
  border-color: rgb(153 27 27 / 0.55);
}

.cmf-panel-label {
  padding: 0.3rem 0.5rem;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgb(30 41 59 / 0.9);
}

.cmf-panel.bull .cmf-panel-label {
  color: rgb(134 239 172);
  background: rgb(6 78 59 / 0.35);
}

.cmf-panel.bear .cmf-panel-label {
  color: rgb(252 165 165);
  background: rgb(127 29 29 / 0.35);
}

.cmf-force-refresh-btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.cmf-force-refresh-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.cmf-head-status {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(100%, 42rem);
}
.cmf-limit-warning {
  color: rgb(250 204 21);
  background: rgb(113 63 18 / 0.35);
  border: 1px solid rgb(202 138 4 / 0.55);
  border-radius: 0.2rem;
  padding: 0.12rem 0.4rem;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.scanner-health.is-limit-warn {
  color: rgb(250 204 21);
}
.scanner-health.is-limit-warn .scanner-health-dot {
  background: rgb(250 204 21);
  box-shadow: 0 0 0 2px rgb(250 204 21 / 0.25);
}
#cmf-health .scanner-health-state {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Scrollable CMF result tables — sticky thead while browsing long lists */
.cmf-table-wrap {
  max-height: 280px;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  flex: 1 1 auto;
}

.cmf-table {
  width: 100%;
  /* separate + spacing 0 keeps sticky thead reliable while scrolling */
  border-collapse: separate;
  border-spacing: 0;
  font-size: 10px;
}

.cmf-table th,
.cmf-table td {
  padding: 0.2rem 0.4rem;
  border-bottom: 1px solid rgb(30 41 59 / 0.7);
  white-space: nowrap;
}

.cmf-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgb(15 23 42);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(100 116 139);
  box-shadow: 0 1px 0 rgb(30 41 59);
}

.cmf-table .cmf-score-bull { color: rgb(134 239 172); font-weight: 700; }
.cmf-table .cmf-score-bear { color: rgb(252 165 165); font-weight: 700; }

@media (max-width: 768px) {
  .cmf-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.canvassing-row-bottom > .canvassing-pane {
  max-height: calc(var(--canvassing-pane-body-max) + 2.5rem);
}

/* Whales + IOB: 5-row vertical window + horizontal touch scroll */
.canvassing-row-bottom .canvassing-pane-body,
.canvassing-row-bottom .table-scroll-x {
  max-height: var(--canvassing-pane-body-max) !important; /* 200px ≈ 5 rows */
  overflow-x: auto;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .canvassing-layout {
    gap: 24px;
  }

  .canvassing-row-news {
    grid-template-columns: minmax(0, 1fr) !important;
    max-height: none;
    gap: 24px;
  }

  .optioncharts-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .canvassing-row-news > .canvassing-pane {
    max-height: calc(var(--canvassing-pane-body-max) + 2.25rem);
  }

  .canvassing-row-news > .canvassing-pane-optioncharts {
    max-height: none;
  }

  .canvassing-row-flow,
  .canvassing-row-bottom,
  .canvassing-row-mid .cross-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
    column-gap: 24px !important;
  }

  /* Horizontal scroll so screener columns stay readable on iPhone/iPad */
  .canvassing-row-flow .canvassing-pane-body,
  .canvassing-row-flow .screener-scroll,
  .canvassing-row-bottom .canvassing-pane-body {
    max-height: var(--canvassing-pane-body-max) !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Keep both MA crossover panes identical fixed windows on touch devices */
  .canvassing-row-mid > .canvassing-pane {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .canvassing-row-mid .cross-panel,
  #pane-bullish-cross,
  #pane-bearish-cross {
    height: auto;
    max-height: none;
    overflow: visible;
    min-height: 0;
  }

  #pane-bullish-cross .pane-scroll-body,
  #pane-bearish-cross .pane-scroll-body {
    height: 220px;
    max-height: 220px;
    overflow-x: auto;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    overscroll-behavior-x: contain;
    contain: content;
    touch-action: pan-y;
  }

  .canvassing-row-flow .flow-table {
    min-width: 560px;
  }

  .canvassing-row-flow .unusual-table {
    /* Hug contract text — avoid oversized blank columns on iPhone */
    min-width: 0;
    width: max-content;
    max-width: none;
  }

  .canvassing-row-mid .cross-table {
    min-width: 480px;
  }

  .canvassing-row-mid {
    max-height: none;
  }

  .canvassing-row-mid > .canvassing-pane {
    max-height: none;
  }

  .canvassing-row-mid .cross-grid {
    max-height: none !important;
  }

  .canvassing-row-flow > .canvassing-pane,
  .canvassing-row-bottom > .canvassing-pane {
    max-height: none;
  }
}

.canvassing-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgb(30 41 59 / 0.9);
  border-radius: 0.35rem;
  background: rgb(2 6 23 / 0.55);
  overflow: hidden;
}

.canvassing-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid rgb(30 41 59 / 0.9);
  flex-shrink: 0;
  min-width: 0;
}

.canvassing-pane-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(148 163 184);
}

/* IV panes: title+meta on the left, ACTIVE badge pinned to the far right. */
.pane-head-iv {
  align-items: flex-start;
}

.pane-head-iv .pane-head-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding-right: 0.35rem;
}

.pane-head-iv .canvassing-pane-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  min-width: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(148 163 184);
}

.pane-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgb(71 85 105);
  background: rgb(15 23 42);
  color: rgb(148 163 184);
  font-size: 8px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: help;
  padding: 0;
}

.pane-info-icon:hover,
.pane-info-icon:focus-visible {
  border-color: rgb(125 211 252);
  color: rgb(186 230 253);
  outline: none;
}

.pane-head-iv .canvassing-pane-meta {
  display: block;
  font-size: 9px;
  color: rgb(71 85 105);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.pane-head-iv .scanner-health {
  margin-left: 0;
  flex: 0 0 auto;
  align-self: center;
}

#exploding-pane .canvassing-pane-title,
#imploding-pane .canvassing-pane-title,
.canvassing-pane-exploding .canvassing-pane-title,
.canvassing-pane-imploding .canvassing-pane-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(148 163 184);
}

#exploding-pane .canvassing-pane-meta,
#imploding-pane .canvassing-pane-meta,
.canvassing-pane-exploding .canvassing-pane-meta,
.canvassing-pane-imploding .canvassing-pane-meta {
  font-size: 9px;
  color: rgb(71 85 105);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.canvassing-pane-meta {
  font-size: 9px;
  color: rgb(71 85 105);
  white-space: nowrap;
}

.scanner-health {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
  margin-left: 0.35rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgb(34 197 94 / 0.35);
  background: rgb(6 78 59 / 0.35);
  color: rgb(134 239 172);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: help;
  line-height: 1.2;
}

.scanner-health.is-stale,
.scanner-health.is-empty {
  border-color: rgb(148 163 184 / 0.35);
  background: rgb(30 41 59 / 0.55);
  color: rgb(148 163 184);
}

.scanner-health.is-live {
  border-color: rgb(34 197 94 / 0.45);
  background: rgb(6 78 59 / 0.45);
  color: rgb(134 239 172);
}

.scanner-health.is-cached {
  border-color: rgb(56 189 248 / 0.35);
  background: rgb(12 74 110 / 0.4);
  color: rgb(125 211 252);
}

.scanner-health.is-error {
  border-color: rgb(248 113 113 / 0.4);
  background: rgb(127 29 29 / 0.35);
  color: rgb(252 165 165);
}

.scanner-health-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgb(74 222 128);
  box-shadow: 0 0 0 2px rgb(74 222 128 / 0.18);
}

.scanner-health.is-stale .scanner-health-dot,
.scanner-health.is-empty .scanner-health-dot {
  background: rgb(148 163 184);
  box-shadow: none;
}

.scanner-health.is-live .scanner-health-dot {
  background: rgb(74 222 128);
  box-shadow: 0 0 0 2px rgb(74 222 128 / 0.25);
}

.scanner-health.is-cached .scanner-health-dot {
  background: rgb(56 189 248);
  box-shadow: none;
}

.scanner-health.is-error .scanner-health-dot {
  background: rgb(248 113 113);
  box-shadow: none;
}

.scanner-health-clock {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.canvassing-pane-body {
  min-height: 0;
  min-width: 0;
  flex: 1;
  overflow: auto;
}

/* Option flow — fixed layout, no horizontal scroll */
.flow-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.flow-table col.col-symbol { width: 9%; }
.flow-table col.col-name { width: 28%; }
.flow-table col.col-opt { width: 14%; }
.flow-table col.col-call { width: 13%; }
.flow-table col.col-put { width: 13%; }
.flow-table col.col-pc { width: 10%; }
.flow-table col.col-adv { width: 13%; }

.flow-table th,
.flow-table td {
  border: 1px solid rgb(30 41 59 / 0.9);
  padding: 0 4px;
  line-height: 0.9rem;
  font-size: 10px;
  vertical-align: middle;
}

.flow-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgb(15 23 42);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1rem;
  white-space: nowrap;
  font-size: 9px;
  text-transform: uppercase;
  color: rgb(100 116 139);
}

.flow-table thead th.flow-sort {
  cursor: pointer;
  user-select: none;
  transition: color 0.12s ease, background 0.12s ease;
}

.flow-table thead th.flow-sort:hover {
  color: rgb(186 230 253);
  background: rgb(30 41 59);
}

.flow-table thead th.flow-sort.sorted {
  color: rgb(125 211 252);
}

.flow-table thead th.flow-sort .sort-ind {
  display: inline-block;
  margin-left: 0.2rem;
  font-size: 8px;
  line-height: 1;
  color: rgb(56 189 248);
}

.flow-table tbody tr:nth-child(even) { background: rgb(2 6 23 / 0.35); }
.flow-table tbody tr:hover { background: rgb(15 23 42 / 0.55); }
.flow-table tbody tr.extreme-skew {
  background: rgba(120, 53, 15, 0.35);
  box-shadow: inset 3px 0 0 rgb(251 146 60);
}

.flow-table .cell-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgb(203 213 225);
}

.flow-table .cell-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.flow-table .cell-adv {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-right: 6px;
}

/* Unusual activity screener — Contract column hugs ticker text (no fixed % width) */
.unusual-table,
.unusual-table.table-sm {
  table-layout: auto;
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.flow-table.table-sm {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.unusual-table col.col-symbol { width: auto; }
.unusual-table col.col-time { width: 5.5rem; min-width: 5.25rem; }
.unusual-table col.col-contract {
  width: auto;
  max-width: fit-content;
}
.unusual-table col.col-ratio { width: auto; }
.unusual-table col.col-vol { width: auto; }
.unusual-table col.col-oi { width: auto; }

.unusual-table th,
.unusual-table td {
  border: 1px solid rgb(30 41 59 / 0.9);
  padding: 0 6px;
  line-height: 0.9rem;
  font-size: 10px;
  vertical-align: middle;
}

.unusual-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgb(15 23 42);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px;
  text-transform: uppercase;
  color: rgb(100 116 139);
}

.unusual-table thead th.text-right,
.unusual-table td.cell-num,
.unusual-table td.cell-ratio {
  text-align: right;
  padding-right: 8px;
}

.unusual-table tbody tr:nth-child(even) { background: rgb(2 6 23 / 0.35); }
.unusual-table tbody tr:hover { background: rgb(15 23 42 / 0.55); }
.unusual-table .cell-contract,
.unusual-table td.cell-contract {
  width: auto;
  max-width: fit-content;
  white-space: nowrap;
  padding-right: 12px;
  overflow: visible;
  text-overflow: clip;
}
.unusual-table .cell-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.unusual-table .cell-ratio {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: rgb(251 191 36);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Exploding Volatility screener (top-row companion to news) */
.exploding-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  min-width: 280px;
}

/* SYMBOL | IV30 | IV30 CHANGE | 5D INC/DEC % — readable without crush */
.exploding-table col.col-symbol { width: 18%; }
.exploding-table col.col-iv30 { width: 18%; }
.exploding-table col.col-iv30-chg { width: 28%; }
.exploding-table col.col-5d { width: 36%; }

.exploding-table th,
.exploding-table td {
  border: 1px solid rgb(30 41 59 / 0.9);
  padding: 0 4px;
  line-height: 0.95rem;
  font-size: 9px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.exploding-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgb(15 23 42);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1rem;
  white-space: nowrap;
  font-size: 8px;
  text-transform: uppercase;
  color: rgb(100 116 139);
}

.exploding-table tbody tr:nth-child(even) { background: rgb(2 6 23 / 0.35); }
.exploding-table tbody tr:hover { background: rgb(15 23 42 / 0.55); }

.exploding-table .cell-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.exploding-table .cell-spike {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: rgb(251 146 60);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.exploding-table .cell-crush {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: rgb(96 165 250);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.canvassing-row-news .screener-scroll {
  max-height: var(--canvassing-pane-body-max) !important;
  overflow-x: auto;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.asset-filter-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(51 65 85);
  border-radius: 0.25rem;
  overflow: hidden;
  background: rgb(15 23 42);
}

.asset-filter-btn {
  border: 0;
  border-right: 1px solid rgb(51 65 85);
  background: transparent;
  color: rgb(148 163 184);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  cursor: pointer;
  line-height: 1.2;
}

.asset-filter-btn:last-child { border-right: 0; }
.asset-filter-btn:hover { color: rgb(186 230 253); background: rgb(30 41 59 / 0.55); }
.asset-filter-btn.is-active {
  color: rgb(125 211 252);
  background: rgb(8 47 73 / 0.55);
}

/* Crossover panels — wide channel matches flow/bottom rows for page scroll */
.cross-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: var(--canvassing-row-gap) !important;
  column-gap: var(--canvassing-row-gap) !important;
  row-gap: var(--canvassing-row-gap) !important;
  padding: 0.4rem;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cross-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--canvassing-row-gap) !important;
    column-gap: var(--canvassing-row-gap) !important;
  }
}

.canvassing-row-mid .cross-grid {
  max-height: none !important;
  overflow: visible;
  gap: var(--canvassing-row-gap) !important;
  column-gap: var(--canvassing-row-gap) !important;
}

.cross-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
  border-radius: 0.3rem;
  border: 1px solid rgb(30 41 59 / 0.85);
  background: rgb(2 6 23 / 0.35);
  overflow: visible;
}

.cross-panel.bull { border-color: rgb(6 78 59 / 0.55); }
.cross-panel.bear { border-color: rgb(136 19 55 / 0.5); }

.cross-panel-label {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgb(15 23 42);
}

.cross-panel.bull .cross-panel-label { color: rgb(110 231 183); }
.cross-panel.bear .cross-panel-label { color: rgb(253 164 175); }

.cross-table-wrap {
  min-height: 0;
  flex: 0 0 auto;
}

#pane-bullish-cross .pane-scroll-body,
#pane-bearish-cross .pane-scroll-body,
.cross-table-wrap.pane-scroll-body {
  height: 220px;
  max-height: 220px;
  overflow-x: auto;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  overscroll-behavior-x: contain;
  contain: content;
  touch-action: pan-y;
}

.cross-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

.cross-table col.col-sym { width: 14%; }
.cross-table col.col-close { width: 14%; }
.cross-table col.col-sma5 { width: 14%; }
.cross-table col.col-sma13 { width: 14%; }
.cross-table col.col-macd { width: 15%; }
.cross-table col.col-date { width: 15%; }
.cross-table col.col-chart { width: 14%; }

.cross-table th,
.cross-table td {
  border: 1px solid rgb(30 41 59 / 0.9);
  padding: 0 4px;
  line-height: 0.9rem;
  font-size: 10px;
  white-space: nowrap;
}

.cross-table thead th {
  background: rgb(15 23 42);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgb(100 116 139);
  text-transform: uppercase;
  font-size: 9px;
}

.cross-table tbody tr:nth-child(even) { background: rgb(2 6 23 / 0.35); }
.cross-table tbody tr:hover { background: rgb(15 23 42 / 0.5); }

.cross-chart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(14 116 144 / 0.6);
  border-radius: 0.25rem;
  padding: 0 0.4rem;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2rem;
  white-space: nowrap;
  text-decoration: none;
  color: rgb(125 211 252);
  background: transparent;
  cursor: pointer;
}

.cross-chart-btn:hover {
  background: rgba(14, 116, 144, 0.25);
  color: rgb(186 230 253);
}

.cross-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  min-height: 0;
}

.cross-empty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgb(51 65 85 / 0.85);
  background: rgb(15 23 42 / 0.75);
  color: rgb(100 116 139);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Whale pane: fixed-width 2-line title; meta stacked under toolbar. */
.pane-head-whale {
  align-items: flex-start;
  gap: 0.65rem;
}

.whale-pane-title,
#whale-pane-title.whale-pane-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  min-width: 220px;
  width: 220px;
  flex: 0 0 220px;
  flex-shrink: 0;
  white-space: normal;
  line-height: 1.25;
  overflow: visible;
  text-overflow: clip;
}

.whale-pane-title .whale-title-main,
.whale-pane-title .whale-title-sub {
  display: block;
  white-space: nowrap;
}

.whale-pane-title .whale-title-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgb(100 116 139);
}

.whale-head-controls {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.whale-head-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  max-width: 100%;
}

.whale-head-toolbar .scanner-health {
  margin-left: 0.15rem;
}

.whale-meta,
#whale-meta.whale-meta {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: right;
  white-space: normal;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgb(71 85 105);
  font-size: 9px;
}

/* Whale + IOB feed tables — shared typography; auto column fit (no truncation) */
#whaleOrdersTable,
#iobTable,
.whale-table,
.iob-table {
  table-layout: auto;
  width: 100%;
  border-collapse: collapse;
}

#whaleOrdersTable th,
#whaleOrdersTable td,
#iobTable th,
#iobTable td,
.whale-table th,
.whale-table td,
.iob-table th,
.iob-table td {
  border: 1px solid rgb(30 41 59 / 0.9);
  padding: 0 4px;
  line-height: 0.9rem;
  font-size: 10px;
  white-space: nowrap;
}

#whaleOrdersTable thead th,
#iobTable thead th,
.whale-table thead th,
.iob-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgb(15 23 42);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 9px;
  color: rgb(100 116 139);
}

#whaleOrdersTable th.col-time,
#whaleOrdersTable td.col-time,
#iobTable th.col-time,
#iobTable td.col-time,
.whale-table th.col-time,
.whale-table td.col-time,
.iob-table th.col-time,
.iob-table td.col-time {
  width: 100px;
  min-width: 95px;
  max-width: 110px;
  white-space: nowrap;
}

.whale-table tbody tr:nth-child(even),
.iob-table tbody tr:nth-child(even) { background: rgb(2 6 23 / 0.35); }

.whale-table tbody tr:hover,
.iob-table tbody tr:hover { background: rgb(15 23 42 / 0.5); }

.iob-cross { color: rgb(196 181 253); }

.news-item {
  border-bottom: 1px solid rgb(30 41 59 / 0.7);
  padding: 0.28rem 0.35rem;
  flex-shrink: 0;
}

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

.news-item p {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-source {
  display: inline-flex;
  max-width: 8rem;
  border-radius: 9999px;
  border: 1px solid rgb(51 65 85);
  background: rgb(15 23 42);
  color: rgb(148 163 184);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-ticker {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid rgb(14 116 144);
  background: rgb(8 47 73);
  color: rgb(125 211 252);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
}

.bias-bull { color: rgb(134 239 172); }
.bias-bear { color: rgb(252 165 165); }

.filter-input {
  background: rgb(15 23 42);
  border: 1px solid rgb(51 65 85);
  border-radius: 0.25rem;
  color: rgb(226 232 240);
  font-size: 10px;
  padding: 0.15rem 0.35rem;
  width: 5.5rem;
}

.flow-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.flow-stocks-only {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.4rem;
  border: 1px solid rgb(51 65 85);
  border-radius: 0.25rem;
  background: rgb(15 23 42);
  color: rgb(148 163 184);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.flow-stocks-only:hover {
  border-color: rgb(14 165 233 / 0.55);
  color: rgb(186 230 253);
}

.flow-stocks-only input {
  margin: 0;
  accent-color: rgb(14 165 233);
  cursor: pointer;
}

.flow-stocks-only:has(input:checked) {
  border-color: rgb(14 165 233 / 0.7);
  color: rgb(125 211 252);
  background: rgb(8 47 73 / 0.45);
}

/* Screen 050 Chart column — 1m ETH hover popover (shared with Screen 055). */
.scans-chart-popover {
  position: fixed;
  z-index: 80;
  width: 360px;
  height: 240px;
  box-sizing: border-box;
  padding: 0.45rem 0.5rem 0.4rem;
  border: 1px solid rgb(51 65 85);
  border-radius: 0.4rem;
  background: rgb(15 23 42);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.45);
  pointer-events: auto;
  overflow: hidden;
}
.scans-chart-popover.hidden { display: none; }
.scans-chart-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}
.scans-chart-popover-title {
  font-size: 11px;
  font-weight: 600;
  color: rgb(226 232 240);
  letter-spacing: 0.02em;
}
.scans-chart-popover-legend {
  display: flex;
  gap: 0.55rem;
  font-size: 9px;
  color: rgb(148 163 184);
}
.scans-chart-leg::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 2px;
  margin-right: 0.25rem;
  vertical-align: middle;
  border-radius: 1px;
}
.scans-chart-leg-vwap::before { background: #3b82f6; }
.scans-chart-leg-ema::before { background: #f97316; }
.scans-chart-popover-status {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  text-align: center;
  font-size: 11px;
  color: rgb(148 163 184);
  pointer-events: none;
}
.scans-chart-popover-status.hidden { display: none; }
.scans-chart-popover-status.is-error { color: rgb(248 113 113); }
.scans-chart-popover-canvas {
  width: 100%;
  height: calc(100% - 1.35rem);
}
