:root {
  --du-ink: #1f2328;
  --du-ink-muted: #5f6a72;
  --du-accent: #8b5738;
  --du-focus: #8b5738;
  --du-surface: #fbfaf7;
  --du-surface-alt: #d9d9d6;
  --du-paper-gis-land: #f5f3ef;
  --du-border: #bdbdbd;
  --du-white: #ffffff;

  --du-vegetation: #524f4b;
  --du-water: #c9dde8;
  --du-border-gis: #bdbdbd;
  --du-urban: #d9d9d6;

  --qual-1: #a6cee3;
  --qual-2: #1f78b4;
  --qual-3: #b2df8a;
  --qual-4: #33a02c;
  --qual-5: #fb9a99;
  --qual-6: #e31a1c;
  --qual-7: #fdbf6f;
  --qual-8: #ff7f00;
  --qual-9: #cab2d6;
  --qual-10: #6a3d9a;

  --seq-1: #f7fbff;
  --seq-2: #e8f1fa;
  --seq-3: #d9e7f5;
  --seq-4: #c6dbef;
  --seq-5: #abd0e6;
  --seq-6: #82bcdb;
  --seq-7: #58a1cf;
  --seq-8: #3484bf;
  --seq-9: #1764ab;
  --seq-10: #084594;

  --diver-1: #67001f;
  --diver-2: #b2182b;
  --diver-3: #d6604d;
  --diver-4: #f4a582;
  --diver-5: #fddbc7;
  --diver-6: #d1e5f0;
  --diver-7: #92c5de;
  --diver-8: #4393c3;
  --diver-9: #2166ac;
  --diver-10: #053061;

  --color-positive: #33a02c;
  --color-negative: #e31a1c;
  --color-warning: #ff7f00;
  --color-neutral: #d9d9d6;
  --color-support: #58a1cf;
  --color-trust: #1764ab;
  --color-reputation: #1f78b4;
  --color-complaint: #b2182b;
  --color-praise: #33a02c;
  --color-confidence-low: #fdbf6f;
  --color-confidence-medium: #82bcdb;
  --color-confidence-high: #1764ab;

  --font-sans: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-data: "Datatype", "Source Sans 3", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --border-subtle: 1px solid rgba(189, 189, 189, 0.66);
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--du-surface);
  color: var(--du-ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  padding-bottom: 38px;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
.hero-metric strong,
.metric-row__value {
  font-family: var(--font-sans);
  letter-spacing: 0;
}

.score-strip-metric strong,
.metric-row__value,
.scope-list dd,
.summary-card__facts strong,
.hero-metric strong,
.table-bar b,
.comparison-table .num,
.geo-table .num,
.review-card__meta strong {
  font-family: var(--font-data);
}

button,
input,
select {
  font: inherit;
}

button,
input,
select,
[tabindex] {
  outline-color: var(--du-focus);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--du-focus);
  outline-offset: 2px;
}

.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: var(--space-6);
  align-items: center;
  padding: 12px 24px;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.top-header h1 {
  font-size: clamp(28px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.05;
}

.top-header h1 em {
  color: var(--du-ink);
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
}

.eyebrow,
.panel-kicker {
  color: var(--du-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.header-meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 18px;
  align-items: end;
}

.header-meta dt {
  color: #3182bd;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.header-meta dd {
  max-width: 180px;
  overflow: hidden;
  color: var(--du-ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(260px, 292px) minmax(0, 1fr);
  gap: 26px;
  width: 100%;
  padding: 22px 24px 32px;
}

.filter-rail {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 34px);
  overflow: auto;
  padding: 0 12px 0 0;
  border-right: 1px solid var(--seq-3);
}

.dashboard-canvas {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.rail-card,
.panel,
.summary-card,
.hero-metric {
  background: rgba(255, 255, 255, 0.58);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
}

.rail-card {
  padding: 13px 14px;
  margin-bottom: 12px;
}

.rail-card--plain {
  padding: 5px 4px 8px;
  margin-bottom: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.rail-card h2 {
  margin-bottom: 9px;
  font-size: 15px;
  font-weight: 600;
}

.filter-rail > .rail-card:not(.rail-card--plain) h2 {
  color: #3182bd;
}

.rail-card__title-row,
.summary-card__title-row,
.panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.view-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 6px 0 22px;
  border-bottom: 1px solid var(--du-ink);
}

.view-tab {
  border: 1px solid var(--du-ink);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--du-ink-muted);
  color: var(--du-white);
  cursor: pointer;
  padding: 8px 13px 7px;
  font-size: 13px;
  line-height: 1.05;
}

.view-tab.is-active {
  background: var(--du-ink);
  color: var(--du-white);
}

.field-label,
.radio-stack legend {
  display: block;
  margin: 5px 0 5px;
  color: var(--du-ink-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.entity-search,
.rail-card select {
  width: 100%;
  height: 34px;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--du-white);
  color: var(--du-ink);
  padding: 5px 8px;
}

.search-field {
  position: relative;
}

.search-field .entity-search {
  padding-right: 32px;
}

.search-field__clear {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--du-ink-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.search-field__clear:hover,
.search-field__clear:focus-visible {
  background: var(--seq-2);
  color: #3182bd;
}

.entity-search:focus,
.rail-card select:focus {
  border-color: #3182bd;
  box-shadow: 0 0 0 1px #3182bd;
  outline: none;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}

.inline-actions button,
.ghost-button {
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--du-white);
  color: var(--du-ink);
  cursor: pointer;
  padding: 5px 7px;
  font-size: 12px;
  font-weight: 700;
}

.entity-checklist {
  display: grid;
  gap: 7px;
  max-height: 270px;
  overflow: auto;
  padding-right: 2px;
}

.entity-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  align-items: start;
  font-size: 13px;
}

.entity-check input,
.radio-stack input {
  accent-color: var(--du-focus);
}

.radio-stack input[type="checkbox"] {
  appearance: none;
  width: 13px;
  height: 13px;
  border: 1px solid var(--du-ink-muted);
  border-radius: 50%;
  background: var(--du-white);
}

.radio-stack input[type="checkbox"]:checked {
  border-color: var(--du-focus);
  background: var(--du-focus);
  box-shadow: inset 0 0 0 3px var(--du-white);
}

.entity-check strong,
.entity-check small {
  display: block;
}

.entity-check small {
  color: var(--du-ink-muted);
  font-size: 11px;
  line-height: 1.15;
}

.radio-stack {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.radio-stack label {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
}

.filter-note,
.rail-small {
  color: var(--du-ink-muted);
  font-size: 12px;
  line-height: 1.32;
}

.filter-note {
  margin-top: 7px;
}

.scope-list {
  display: grid;
  gap: 5px;
}

.scope-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: baseline;
}

.scope-list dt {
  color: var(--du-ink-muted);
  font-size: 12px;
}

.scope-list dd {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
}

.confidence-guide {
  display: grid;
  gap: 5px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  color: var(--du-ink-muted);
  font-size: 12px;
}

.confidence-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: 1px;
}

.confidence-dot--high {
  background: var(--color-confidence-high);
}

.confidence-dot--medium {
  background: var(--color-confidence-medium);
}

.confidence-dot--low {
  background: var(--color-confidence-low);
  outline: 1px dashed var(--du-ink-muted);
  outline-offset: 1px;
}

.count-pill,
.confidence-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.count-pill {
  background: var(--du-paper-gis-land);
  border: var(--border-subtle);
}

.confidence-badge--high {
  background: var(--seq-2);
  color: var(--seq-9);
}

.confidence-badge--medium {
  background: var(--seq-1);
  color: var(--seq-8);
  border: 1px solid var(--seq-5);
}

.confidence-badge--low {
  background: rgba(253, 191, 111, 0.24);
  color: var(--du-accent);
  border: 1px dashed var(--du-accent);
}

.interpretation-grid {
  display: grid;
  gap: 8px;
}

.interpretation-grid h3 {
  margin-bottom: 2px;
  font-size: 13px;
}

.interpretation-grid p {
  color: var(--du-ink-muted);
  font-size: 12px;
  line-height: 1.3;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(210px, 0.55fr) minmax(210px, 0.55fr);
  gap: 18px;
}

.selection-strip {
  grid-column: 1 / -1;
  padding: 2px 0 10px;
  border-bottom: 1px solid var(--seq-3);
}

.selection-strip__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.selection-strip__head h2 {
  font-size: clamp(23px, 2.25vw, 28px);
  font-weight: 600;
  line-height: 1.05;
}

.selection-strip__head p {
  margin-top: 5px;
  color: var(--du-ink-muted);
  font-size: 12px;
  font-weight: 500;
}

.selection-strip__metrics {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 18px;
}

.score-strip-metric {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--du-ink);
  cursor: help;
  padding: 0;
  text-align: left;
}

.score-strip-metric span {
  display: block;
  min-height: 28px;
  color: var(--du-ink-muted);
  font-size: 13.8px;
  font-weight: 500;
  line-height: 1.15;
}

.score-strip-metric strong {
  display: block;
  color: var(--color-positive);
  font-family: var(--font-data);
  font-size: clamp(34px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 0.92;
}

.score-strip-metric em {
  display: block;
  margin-top: 5px;
  color: var(--du-ink-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.15;
}

.summary-card,
.hero-metric {
  padding: 16px 18px;
}

.summary-card--wide {
  grid-column: span 1;
}

.summary-card h2 {
  margin-top: 2px;
  font-size: clamp(24px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.05;
}

.summary-copy {
  margin-top: 10px;
  color: var(--du-ink-muted);
}

.summary-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 16px;
}

.summary-card__facts span,
.hero-metric span,
.hero-metric em,
.hero-metric small,
.metric-row__meta,
.comparison-metric-row__head small {
  color: var(--du-ink-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
}

.summary-card__facts strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-data);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
}

.hero-metric {
  display: grid;
  align-content: start;
  gap: 4px;
}

.hero-metric strong {
  color: var(--color-reputation);
  font-size: clamp(34px, 4vw, 42px);
  font-weight: 600;
  line-height: 0.95;
}

.hero-metric--risk strong {
  color: var(--color-complaint);
}

.panel {
  padding: 20px 22px;
}

.panel--profile {
  padding-bottom: 22px;
}

.panel__heading {
  margin-bottom: 14px;
}

.panel__heading h2 {
  margin-top: 2px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
}

.panel-note {
  max-width: 360px;
  color: var(--du-ink-muted);
  font-size: 12px;
  line-height: 1.3;
  text-align: right;
}

.score-profile-method,
.chart-subnote {
  margin-top: 4px;
  color: var(--du-ink-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.panel-grid {
  display: grid;
  gap: 18px;
}

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

.metric-profile {
  display: grid;
  grid-template-columns: minmax(430px, 1.18fr) minmax(0, 0.74fr) minmax(0, 0.64fr);
  gap: 34px;
}

.metric-group,
.comparison-profile-group {
  min-width: 0;
}

.metric-group h3,
.comparison-profile-group h3 {
  margin-bottom: 13px;
  font-size: 15px;
  font-weight: 600;
}

.metric-row {
  display: grid;
  grid-template-columns: minmax(125px, 0.9fr) 58px minmax(90px, 1fr) 104px;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(217, 217, 214, 0.72);
}

.metric-group:nth-child(n + 2) .metric-row {
  grid-template-columns: minmax(118px, 1fr) 74px;
  gap: 7px 10px;
}

.metric-group:nth-child(n + 2) .microbar,
.metric-group:nth-child(n + 2) .metric-row__meta {
  grid-column: 1 / -1;
}

.metric-group:nth-child(n + 2) .metric-row__value {
  font-size: 17px;
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row__label {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  color: var(--du-ink);
  font-size: 13px;
  font-weight: 500;
}

.metric-row__label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-info {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--du-border);
  border-radius: 50%;
  background: var(--du-white);
  color: var(--du-ink-muted);
  cursor: help;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.metric-row__value {
  text-align: right;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.metric-row__meta {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  white-space: nowrap;
}

.microbar {
  position: relative;
  height: 8px;
  overflow: visible;
  background: var(--seq-2);
  border-radius: 999px;
}

.microbar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}

.microbar__fill--risk {
  background: var(--color-complaint);
}

.microbar__marker {
  position: absolute;
  top: -4px;
  width: 1px;
  height: 16px;
}

.microbar__marker--global {
  background: var(--du-ink);
}

.microbar__marker--category {
  background: var(--du-accent);
}

.comparison-profile-group {
  display: grid;
  align-content: start;
  gap: 14px;
}

.comparison-score-block {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(217, 217, 214, 0.72);
}

.comparison-score-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.comparison-score-block__head,
.comparison-metric-row__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 500;
}

.comparison-score-block__head small {
  color: var(--du-ink-muted);
  font-size: 12px;
  font-weight: 500;
}

.comparison-score-bars {
  display: grid;
  gap: 6px;
}

.comparison-score-row {
  display: grid;
  grid-template-columns: minmax(86px, 0.86fr) minmax(112px, 1fr) 58px;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.comparison-score-row__entity {
  min-width: 0;
  overflow: hidden;
  color: var(--du-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-score-row__track {
  position: relative;
  display: block;
  height: 20px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--seq-2);
}

.comparison-score-row__track i {
  position: absolute;
  inset: 0 auto 0 0;
}

.comparison-score-row__value {
  position: relative;
  z-index: 1;
  display: block;
  padding: 2px 6px 0;
  color: var(--du-ink);
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  text-align: right;
}

.comparison-score-row__value.is-light,
.table-bar--light b {
  color: var(--du-white);
  text-shadow: 0 1px 1px rgba(31, 35, 40, 0.34);
}

.comparison-score-row__reviews {
  color: var(--du-ink-muted);
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.comparison-metric-row {
  display: grid;
  gap: 7px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(217, 217, 214, 0.72);
}

.comparison-metric-row__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.entity-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--du-white);
  padding: 3px 6px;
  font-size: 12px;
}

.entity-chip b {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-chip i {
  color: var(--du-ink-muted);
  font-style: normal;
  font-weight: 700;
}

.confidence-low {
  opacity: 0.48;
  outline: 1px dashed var(--du-ink-muted);
}

.chart {
  min-height: 210px;
}

.chart--taxonomy {
  min-height: 250px;
}

.chart--heatmap {
  min-height: 160px;
}

svg {
  display: block;
  max-width: 100%;
  overflow: visible;
}

.axis path,
.axis line {
  stroke: rgba(189, 189, 189, 0.58);
}

.axis text {
  fill: var(--du-ink-muted);
  font-family: var(--font-sans);
  font-size: 11px;
}

.axis--stage text {
  font-size: 10px;
}

.grid line {
  stroke: var(--seq-2);
  stroke-width: 1;
}

.grid path,
.axis .domain {
  stroke: transparent;
}

.direct-label,
.cell-value {
  fill: var(--du-ink);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  pointer-events: none;
}

.sentiment-value-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  pointer-events: none;
}

.range-line {
  stroke: var(--du-border);
  stroke-width: 2;
  stroke-linecap: round;
}

.benchmark-dot {
  fill: var(--du-white);
  stroke: var(--du-accent);
  stroke-width: 1.5;
}

.selected-dot {
  stroke: var(--du-ink);
  stroke-opacity: 0.24;
  stroke-width: 1;
}

.value-label {
  fill: var(--du-ink-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
}

.taxonomy-axis text {
  fill: var(--du-ink);
  font-size: 11.5px;
  font-weight: 400;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  color: var(--du-ink-muted);
  font-size: 12px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.chart-legend--three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
}

.chart-legend--three span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sentiment-direct-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  color: var(--du-ink-muted);
  font-size: 12px;
  font-weight: 700;
}

.sentiment-direct-labels span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sentiment-direct-labels i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

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

.comparison-table,
.geo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.comparison-table th,
.comparison-table td,
.geo-table th,
.geo-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(217, 217, 214, 0.82);
  vertical-align: middle;
}

.comparison-table thead th,
.geo-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--du-surface);
  color: var(--du-ink-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.comparison-table th,
.geo-table th {
  text-align: left;
}

.comparison-table .num,
.geo-table .num {
  text-align: right;
}

.table-bar {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  min-width: 92px;
  height: 18px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--seq-2);
  text-align: right;
}

.table-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--seq-7);
}

.table-bar--risk i {
  background: var(--diver-3);
}

.table-bar b {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 0 5px;
  font-weight: 700;
}

.table-bar--light b {
  font-weight: 700;
}

.geo-table tbody tr {
  cursor: pointer;
}

.geo-table tbody tr:hover {
  background: rgba(232, 241, 250, 0.42);
}

.sentiment-mini {
  position: relative;
  display: flex;
  align-items: center;
  width: 132px;
  height: 18px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--du-surface-alt);
}

.sentiment-mini i {
  height: 100%;
}

.sentiment-mini__positive {
  background: var(--color-positive);
}

.sentiment-mini__negative {
  margin-left: auto;
  background: var(--color-negative);
}

.sentiment-mini b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--du-ink);
  font-size: 11px;
}

.evidence-panel {
  margin-bottom: 8px;
  border: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.evidence-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.evidence-tab {
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--du-ink-muted);
  cursor: pointer;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
}

.evidence-tab.is-active {
  color: var(--du-ink);
  background: var(--du-paper-gis-land);
}

.evidence-filter-status {
  min-height: 17px;
  margin: -6px 0 8px;
  color: var(--du-accent);
  font-size: 12px;
  font-weight: 700;
}

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

.review-card {
  min-width: 0;
  padding: 11px 12px;
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.review-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 7px;
  color: var(--du-ink-muted);
  font-size: 11px;
  line-height: 1.2;
}

.review-card__meta strong {
  color: var(--du-ink);
}

.review-card__brand {
  color: #8b5738;
  font-weight: 600;
}

.review-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--du-ink);
  font-size: 13px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.theme-tags span {
  border: var(--border-subtle);
  border-radius: 999px;
  color: var(--du-ink-muted);
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.1;
}

.empty-state {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed rgba(189, 189, 189, 0.9);
  border-radius: var(--radius-md);
  color: var(--du-ink-muted);
  padding: 20px;
  text-align: center;
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  padding: 8px 24px;
  border-top: var(--border-subtle);
  background: rgba(251, 250, 247, 0.96);
  color: var(--du-ink-muted);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  backdrop-filter: blur(10px);
}

.tooltip {
  position: fixed;
  z-index: 100;
  max-width: 320px;
  opacity: 0;
  pointer-events: none;
  border-radius: var(--radius-sm);
  background: rgba(31, 35, 40, 0.96);
  color: var(--du-white);
  padding: 8px 9px;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .top-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .app-shell {
    grid-template-columns: 1fr;
  }

  .filter-rail {
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .rail-card {
    margin-bottom: 0;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .summary-card {
    grid-column: 1 / -1;
  }

  .metric-profile {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .panel-grid--two,
  .evidence-list {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: minmax(130px, 1fr) 70px;
  }

  .microbar,
  .metric-row__meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: auto;
  }

  .top-header {
    position: static;
    padding: 14px 16px;
  }

  .top-header h1 {
    font-size: 27px;
  }

  .header-meta,
  .filter-rail,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    padding: 16px;
  }

  .summary-card__facts {
    grid-template-columns: 1fr 1fr;
  }

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

  .panel {
    padding: 14px;
  }

  .panel__heading {
    display: grid;
  }

  .panel-note {
    text-align: left;
  }
}

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