@font-face {
  font-family: "MLSTifo";
  src: url("/static/fonts/MLSTifo-Regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "MLSTifo";
  src: url("/static/fonts/MLSTifo-Medium.woff2") format("woff2");
  font-weight: 600;
}

@font-face {
  font-family: "MLSTifoHeadline";
  src: url("/static/fonts/MLSTifoHeadline-BoldWide.woff2") format("woff2");
  font-weight: 700;
}

@font-face {
  font-family: "MLSTifoMicro";
  src: url("/static/fonts/MLSTifoMicro-Medium.woff2") format("woff2");
  font-weight: 600;
}

:root {
  color-scheme: dark;
  --shell: #080b12;
  --surface: #101722;
  --surface-2: #151f2c;
  --paper: #f4f6f8;
  --line: rgba(255, 255, 255, 0.12);
  --muted: #9facbb;
  --text: #eef3f7;
  --blue: #1c75bc;
  --red: #e31837;
  --green: #24a865;
  --amber: #d79b22;
  --neutral: #a9b3bd;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--shell);
  color: var(--text);
  font-family: "MLSTifo", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-width: 0;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #070a10;
}

.brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand h1,
.topbar h2,
.panel h3 {
  margin: 0;
}

.brand h1 {
  font-family: "MLSTifoHeadline", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.05;
  text-wrap: balance;
}

.brand-source {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: #718195;
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 10px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-source:hover,
.brand-source:focus-visible {
  color: #c5d0db;
  outline: none;
}

.reddit-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #a94a2d;
  fill: currentColor;
}

.brand-source .reddit-icon {
  width: 11px;
  height: 11px;
}

.eyebrow,
.micro {
  margin: 0 0 5px;
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.hero-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item .hero-icon {
  width: 18px;
  height: 18px;
  color: #718195;
  transition: color 140ms ease, transform 140ms ease;
}

.nav-item span {
  min-width: 0;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.active {
  border-color: rgba(255, 255, 255, 0.14);
  background: #121b28;
  color: var(--text);
  outline: none;
}

.nav-item:hover {
  transform: translateX(2px);
}

.nav-item:hover .hero-icon,
.nav-item:focus-visible .hero-icon,
.nav-item.active .hero-icon {
  color: var(--blue);
}

.system-card {
  margin-top: auto;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #101722;
}

.system-card strong {
  display: block;
  font-size: 13px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber);
}

.status-dot.ok {
  background: var(--green);
}

.workspace {
  min-width: 0;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar h2 {
  font-family: "MLSTifoHeadline", Arial, sans-serif;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121b28;
  color: var(--text);
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: rgba(28, 117, 188, 0.5);
  background: #172235;
  outline: none;
  transform: translateY(-1px);
}

.icon-button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.icon-button svg,
.icon-button .hero-icon {
  width: 20px;
  height: 20px;
}

.refresh-pill,
.chip,
.sentiment-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.filters {
  display: grid;
  grid-template-columns: 128px 128px minmax(140px, 1fr) minmax(130px, 0.9fr) minmax(160px, 1.1fr) 96px minmax(104px, auto);
  gap: 10px;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.source-context-strip {
  display: grid;
  grid-template-columns: 110px minmax(170px, 0.9fr) minmax(220px, 1.25fr) minmax(190px, 1fr);
  gap: 10px;
  align-items: stretch;
  margin: -6px 0 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(16, 23, 34, 0.58);
}

.source-context-strip div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.source-context-strip span {
  color: #718195;
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.1;
  text-transform: uppercase;
}

.source-context-strip strong {
  min-width: 0;
  color: #c7d1da;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.reset-filters {
  align-self: end;
  white-space: nowrap;
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

label span {
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #09111b;
  color: var(--text);
  padding: 10px 11px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.screen {
  display: none;
}

.screen.active {
  display: grid;
  gap: 18px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
}

.kpi {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
}

.kpi-emphasis {
  background: #131d2a;
}

.kpi-danger {
  border-color: rgba(227, 24, 55, 0.5);
}

.kpi-danger::before {
  background: var(--red);
}

.kpi-watch {
  border-color: rgba(215, 155, 34, 0.45);
}

.kpi-watch::before {
  background: var(--amber);
}

.kpi-positive::before {
  background: var(--green);
}

.kpi strong {
  display: block;
  margin-top: 8px;
  font-family: "MLSTifoHeadline", Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
}

.kpi span:last-child {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.top-actions-panel {
  border-color: rgba(244, 246, 248, 0.18);
  background: #111a26;
}

.top-action-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.top-action-card {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: #0d1520;
}

.top-action-card.severity-High,
.top-action-card.severity-Critical,
.top-action-card.severity-Medium,
.top-action-card.severity-Low {
  border-color: rgba(255, 255, 255, 0.14);
}

.top-action-card.severity-High,
.top-action-card.severity-Critical {
  box-shadow: inset 3px 0 0 rgba(227, 24, 55, 0.72);
}

.top-action-card.severity-Medium {
  box-shadow: inset 3px 0 0 rgba(215, 155, 34, 0.68);
}

.top-action-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.top-action-head div {
  min-width: 0;
}

.top-action-head span,
.top-action-footer,
.top-action-grid span {
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.top-action-head strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.top-action-grid {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 7px 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.top-action-grid strong {
  min-width: 0;
  color: #dfe8ef;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.top-action-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.decision-layer {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.screen.active.product-active .product-insight-grid {
  order: 2;
}

.screen.active.product-active .decision-layer {
  order: 3;
}

.screen.active.product-active .split-grid {
  order: 4;
}

.decision-primary {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.split-grid.compact {
  margin-top: 14px;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 18px;
}

.panel {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 15px;
}

.panel h3 {
  font-size: 18px;
  line-height: 1.15;
}

.executive-brief-panel {
  border-color: rgba(244, 246, 248, 0.2);
  background: #141e2b;
}

.executive-brief-panel h3 {
  max-width: 72ch;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.18;
  text-wrap: balance;
}

.chart {
  min-height: 300px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 12px;
  scrollbar-gutter: stable;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.trend-panel .chart {
  min-height: 380px;
}

.trend-insight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(215, 155, 34, 0.32);
  border-radius: 10px;
  background: rgba(215, 155, 34, 0.08);
}

.trend-insight span {
  color: #f2d291;
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
}

.trend-insight strong {
  min-width: 0;
  color: #eef3f7;
  font-size: 13px;
  line-height: 1.35;
}

.chart.tall {
  min-height: 360px;
}

.chart svg {
  max-width: none;
  height: 300px;
  display: block;
}

.chart-empty {
  min-height: inherit;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

.trend-panel .chart svg {
  height: 380px;
}

.chart.tall svg {
  height: 350px;
}

.posture-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
}

.posture-attention,
.status-worsening {
  border-color: rgba(227, 24, 55, 0.54);
  color: #ff9aa9;
}

.posture-watch,
.status-rising {
  border-color: rgba(215, 155, 34, 0.55);
  color: #f2d291;
}

.posture-stable,
.status-stable,
.status-improving,
.status-cooling {
  border-color: rgba(36, 168, 101, 0.42);
  color: #89e1b4;
}

.brief-list,
.brief-decision-list {
  display: grid;
  gap: 10px;
}

.brief-decision-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brief-decision {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #121b28;
}

.brief-decision span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
}

.brief-decision strong {
  display: block;
  color: #eef3f7;
  font-size: 14px;
  line-height: 1.35;
}

.brief-list p {
  margin: 0;
  max-width: 78ch;
  color: #e3ebf1;
  font-size: 15px;
  line-height: 1.45;
}

.action-list,
.cluster-list,
.signal-grid {
  display: grid;
  gap: 10px;
}

.action-card,
.cluster-card,
.signal-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.alerts-rail {
  position: sticky;
  top: 18px;
}

.alert-action {
  gap: 10px;
  padding: 12px;
  border-color: rgba(227, 24, 55, 0.28);
}

.alert-action-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.alert-action-header strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
}

.severity-label {
  min-height: 22px;
  padding: 4px 8px;
}

.alert-metric {
  color: #eef3f7;
  font-family: "MLSTifoHeadline", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.1;
}

.alert-action-grid {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 6px 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
}

.alert-action-grid strong {
  min-width: 0;
  color: #dfe8ef;
  text-align: right;
}

.evidence-reason {
  margin: 0;
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
}

.alert-why {
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
}

.alert-why summary {
  cursor: pointer;
}

.alert-why p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.signal-details {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.signal-details summary {
  cursor: pointer;
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
}

.compact-signal-grid {
  margin-top: 10px;
}

.action-card p,
.cluster-card p,
.signal-card span,
.micro-copy {
  margin: 0;
  color: #cbd6df;
  font-size: 12px;
  line-height: 1.4;
}

.owner-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
}

.cluster-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cluster-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
}

.cluster-metrics > span:not(:first-child) {
  min-height: 24px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.signal-card strong {
  font-family: "MLSTifoHeadline", Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.product-insight-grid,
.clubs-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.digital-brief,
.club-detail,
.insight-response,
.current-readout,
.suggested-question-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.digital-brief > strong,
.club-detail-hero h4 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.25;
}

.digital-brief p,
.insight-response p,
.current-readout p,
.club-detail-hero p {
  margin: 0;
  color: #d8e1e8;
  font-size: 13px;
  line-height: 1.45;
}

.digital-metrics,
.club-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.digital-metrics > div,
.club-metric {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #111a26;
}

.digital-metrics span,
.club-metric span,
.club-metric em,
.club-card-grid em {
  display: block;
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 10px;
  font-style: normal;
  line-height: 1.2;
  text-transform: uppercase;
}

.digital-metrics strong,
.club-metric strong {
  display: block;
  margin-top: 6px;
  min-width: 0;
  color: #eef3f7;
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.driver-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.digital-evidence {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-feedback {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.digital-product-panel.product-active {
  border-color: rgba(36, 168, 101, 0.34);
  background: linear-gradient(180deg, rgba(36, 168, 101, 0.08), rgba(17, 26, 38, 0.98) 38%);
}

.product-summary,
.product-subpanel,
.product-intent-panel,
.product-evidence-section,
.product-priority-panel,
.product-surface-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.product-summary > strong {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.32;
}

.product-metric-grid,
.product-two-col {
  display: grid;
  gap: 8px;
}

.product-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-metric,
.product-cluster {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #111a26;
}

.product-metric span,
.product-metric em,
.product-subheader span,
.product-cluster-grid em,
.intent-row span {
  display: block;
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 10px;
  font-style: normal;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-metric strong {
  display: block;
  margin-top: 6px;
  min-width: 0;
  color: #eef3f7;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-metric em {
  margin-top: 4px;
}

.product-subheader,
.product-cluster-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-subheader strong {
  color: #eef3f7;
  font-size: 13px;
}

.product-list {
  display: grid;
  gap: 8px;
}

.product-priority-list,
.surface-list {
  display: grid;
  gap: 8px;
}

.product-priority {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: #0f1824;
}

.product-priority.severity-High {
  border-color: rgba(220, 47, 59, 0.5);
}

.product-priority.severity-Medium {
  border-color: rgba(215, 155, 34, 0.42);
}

.product-priority-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.product-priority-head div {
  min-width: 0;
}

.product-priority-head span,
.product-priority-meta,
.surface-row em {
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-priority-head strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-priority p {
  margin: 0;
  color: #d8e1e8;
  font-size: 12px;
  line-height: 1.4;
}

.product-priority-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.priority-action {
  color: #eef3f7;
  font-size: 12px;
  line-height: 1.35;
}

.surface-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #111a26;
}

.surface-row span {
  min-width: 0;
  color: #eef3f7;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.surface-row > span {
  display: grid;
  gap: 3px;
}

.surface-row strong {
  color: #ffffff;
  font-size: 13px;
}

.surface-row > span strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.product-cluster {
  display: grid;
  gap: 9px;
}

.product-cluster-head strong {
  min-width: 0;
  color: #eef3f7;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-cluster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.product-cluster-grid strong {
  display: block;
  margin-top: 3px;
  color: #eef3f7;
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.intent-bars {
  display: grid;
  gap: 8px;
}

.intent-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.intent-row strong {
  color: #eef3f7;
  font-size: 12px;
  text-align: right;
}

.intent-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #090f17;
}

.intent-track div {
  width: var(--value, 0%);
  height: 100%;
  background: var(--blue);
}

.product-evidence-card p {
  margin: 0;
}

.product-signal-no_signal {
  border-color: rgba(169, 179, 189, 0.38);
  color: #d1d8df;
}

.product-signal-isolated_watch,
.product-signal-low_volume_emerging_signal,
.product-signal-low_volume_emerging {
  border-color: rgba(215, 155, 34, 0.48);
  color: #f2d291;
}

.product-signal-repeated_signal,
.product-signal-high_confidence_repeated_signal {
  border-color: rgba(36, 168, 101, 0.45);
  color: #89e1b4;
}

.insight-question-form {
  display: grid;
  gap: 10px;
}

.insight-question-form textarea {
  min-height: 78px;
}

.insight-question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.insight-question-module {
  display: grid;
  gap: 12px;
}

.current-readout,
.suggested-question-panel {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #111a26;
}

.supporting-signal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.supporting-signal {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(5, 10, 17, 0.42);
}

.supporting-signal span,
.insight-helper {
  display: block;
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.25;
  text-transform: uppercase;
}

.supporting-signal strong {
  display: block;
  margin-top: 5px;
  color: #eef3f7;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.suggested-question-list {
  display: grid;
  gap: 8px;
}

.suggested-question {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(11, 17, 26, 0.76);
  color: #eef3f7;
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.suggested-question:hover,
.suggested-question:focus-visible {
  border-color: rgba(36, 129, 204, 0.48);
  background: rgba(36, 129, 204, 0.12);
}

.custom-question-details {
  padding-top: 2px;
}

.custom-question-details:not([open]) .insight-question-form {
  display: none;
}

.custom-question-details[open] .insight-question-form {
  margin-top: 10px;
}

.custom-question-details summary {
  width: max-content;
  max-width: 100%;
  color: #b8c3cf;
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
}

.insight-answer {
  margin-top: 12px;
}

.insight-response ul {
  margin: 0;
  padding-left: 18px;
  color: #d8e1e8;
  font-size: 13px;
  line-height: 1.45;
}

.insight-sources {
  display: grid;
  gap: 8px;
}

.insight-source {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #111a26;
}

.insight-source button {
  justify-self: start;
}

.club-list {
  display: grid;
  gap: 10px;
}

.club-card-button {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: var(--surface-2);
  color: inherit;
  text-align: left;
}

.club-card-button:hover,
.club-card-button:focus-visible,
.club-card-button.active {
  border-color: rgba(244, 246, 248, 0.34);
  background: #182333;
  outline: none;
}

.club-card-button.active {
  box-shadow: inset 3px 0 0 var(--blue);
}

.club-card-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.club-card-main strong {
  min-width: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.club-card-main span {
  color: #cbd6df;
  font-size: 12px;
  line-height: 1.35;
}

.club-scoreline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.club-mini-bar {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #090f17;
}

.club-mini-bar span {
  display: block;
  width: var(--value, 50%);
  height: 100%;
  background: var(--bar-color, var(--blue));
}

.club-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.club-card-grid > span {
  min-width: 0;
}

.club-card-grid strong {
  display: block;
  margin-top: 4px;
  color: #eef3f7;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.club-detail-hero {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #141e2b;
}

.mix-bar {
  display: flex;
  height: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #090f17;
}

.mix-bar span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
}

.mix-negative {
  background: var(--red);
}

.mix-positive {
  background: var(--green);
}

.mix-mixed {
  background: var(--amber);
}

.mix-neutral {
  background: var(--neutral);
}

.club-thread-list {
  display: grid;
  gap: 8px;
}

.club-thread {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #111a26;
}

.club-thread strong {
  min-width: 0;
  color: #eef3f7;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1fr) 42px 76px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #0a1018;
}

.bar-fill {
  height: 100%;
  width: var(--value, 50%);
  background: var(--bar-color, var(--blue));
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.live-feed-table {
  min-width: 1360px;
  table-layout: fixed;
}

.live-feed-table th:nth-child(1),
.live-feed-table td:nth-child(1) {
  width: 128px;
}

.live-feed-table th:nth-child(2),
.live-feed-table td:nth-child(2) {
  width: 94px;
}

.live-feed-table th:nth-child(3),
.live-feed-table td:nth-child(3) {
  width: 150px;
}

.live-feed-table th:nth-child(4),
.live-feed-table td:nth-child(4) {
  width: 390px;
}

.live-feed-table th:nth-child(5),
.live-feed-table td:nth-child(5) {
  width: 150px;
}

.live-feed-table th:nth-child(6),
.live-feed-table td:nth-child(6) {
  width: 360px;
}

.live-feed-table th:nth-child(7),
.live-feed-table td:nth-child(7) {
  width: 180px;
}

.live-feed-table th:nth-child(8),
.live-feed-table td:nth-child(8),
.live-feed-table th:nth-child(9),
.live-feed-table td:nth-child(9) {
  width: 96px;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
}

td {
  color: #dce5ec;
}

.text-cell {
  max-width: none;
  overflow-wrap: break-word;
  word-break: normal;
}

.live-feed-table .text-cell {
  min-width: 360px;
}

.feed-timestamp {
  display: grid;
  gap: 3px;
  white-space: nowrap;
  color: #dce5ec;
  font-variant-numeric: tabular-nums;
}

.feed-timestamp span {
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
}

.feed-timestamp strong {
  font-size: 13px;
  font-weight: 700;
}

.row-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}

.sentiment-positive {
  border-color: rgba(36, 168, 101, 0.45);
  color: #89e1b4;
}

.sentiment-negative {
  border-color: rgba(227, 24, 55, 0.48);
  color: #ff9aa9;
}

.sentiment-neutral {
  border-color: rgba(169, 179, 189, 0.38);
  color: #d1d8df;
}

.sentiment-mixed,
.sentiment-unclear {
  border-color: rgba(215, 155, 34, 0.45);
  color: #f2d291;
}

.severity-Critical,
.severity-High {
  border-color: rgba(227, 24, 55, 0.56);
}

.severity-Medium {
  border-color: rgba(215, 155, 34, 0.5);
}

.severity-Low {
  border-color: rgba(169, 179, 189, 0.4);
}

.alert-action.severity-High,
.alert-action.severity-Critical {
  border-color: rgba(227, 24, 55, 0.34);
}

.alert-action.severity-Medium {
  border-color: rgba(215, 155, 34, 0.34);
}

.cluster-card.severity-High {
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 3px 0 0 rgba(215, 155, 34, 0.72);
}

.cluster-card.severity-Medium {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 3px 0 0 rgba(215, 155, 34, 0.5);
}

.cluster-card.severity-Low {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 3px 0 0 rgba(169, 179, 189, 0.38);
}

.item-list {
  display: grid;
  gap: 10px;
}

.item-card,
.alert-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.item-card button,
.alert-card button {
  justify-self: start;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-family: "MLSTifoMicro", Arial, sans-serif;
  font-size: 11px;
}

.primary-button,
.secondary-button {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
}

.primary-button {
  background: var(--blue);
  border-color: rgba(255, 255, 255, 0.16);
}

.secondary-button {
  background: #121b28;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  text-decoration: none;
}

.reddit-link .reddit-icon {
  width: 18px;
  height: 18px;
}

.summary-list {
  display: grid;
  gap: 12px;
}

.summary-list p {
  margin: 0;
  color: #d8e1e8;
  font-size: 13px;
  line-height: 1.45;
}

.empty-state {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: var(--muted);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  width: min(520px, 100vw);
  height: 100vh;
  padding: 22px;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 180ms ease;
  border-left: 1px solid var(--line);
  background: #0b111a;
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 19;
  display: none;
  background: rgba(0, 0, 0, 0.42);
}

.drawer-backdrop.open {
  display: block;
}

.review-form {
  display: grid;
  gap: 12px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.trend-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  margin-bottom: 14px;
}

.model-row {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

@media (max-width: 1280px) {
  .workspace {
    padding: 18px;
  }

  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kpi-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .source-context-strip,
  .top-action-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-grid,
  .product-insight-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .decision-layer,
  .clubs-workspace {
    grid-template-columns: 1fr;
  }

  .alerts-rail {
    position: static;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
    overflow: hidden;
  }

  .nav-list {
    display: flex;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
  }

  .system-card {
    display: none;
  }

  .workspace {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters,
  .source-context-strip,
  .kpi-grid,
  .top-action-list,
  .main-grid,
  .decision-layer,
  .split-grid,
  .product-insight-grid,
  .clubs-workspace,
  .trend-controls,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .digital-metrics,
  .product-metric-grid,
  .product-two-col,
  .club-metric-grid,
  .digital-evidence,
  .product-evidence-grid,
  .supporting-signal-list,
  .club-card-grid {
    grid-template-columns: 1fr;
  }

  .product-cluster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intent-row {
    grid-template-columns: 94px minmax(0, 1fr) 38px;
  }

  .brief-decision-list {
    grid-template-columns: 1fr;
  }

  .decision-primary {
    display: contents;
  }

  .executive-brief-panel {
    order: 1;
  }

  .alerts-rail {
    order: 2;
  }

  .trend-panel {
    order: 3;
  }

  .trend-insight {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    display: flex;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
  }

  .kpi {
    min-width: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
