:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --panel: #ffffff;
  --ink: #222222;
  --body: #3f3f3f;
  --muted: #6a6a6a;
  --faint: #929292;
  --line: #dddddd;
  --line-soft: #ebebeb;
  --line-strong: #c1c1c1;
  --brand: #ff385c;
  --brand-active: #e00b41;
  --brand-soft: #fff1f4;
  --blue: #428bff;
  --blue-soft: #eef5ff;
  --amber: #8b5a00;
  --amber-soft: #fff7e4;
  --red: #c13515;
  --red-soft: #fff0ec;
  --green: #008a05;
  --green-soft: #edf8ee;
  --surface-soft: #f7f7f7;
  --surface-strong: #f2f2f2;
  --shadow: 0 18px 44px rgba(34, 34, 34, 0.08);
  --shadow-strong: 0 24px 64px rgba(34, 34, 34, 0.14);
  --shadow-soft: 0 10px 26px rgba(34, 34, 34, 0.06);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Airbnb Cereal VF", Circular, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255, 56, 92, 0.25);
  outline-offset: 2px;
}

button:active {
  transform: scale(0.98);
}

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

.side-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  overflow: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  font-weight: 600;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-stack {
  display: grid;
  gap: 8px;
}

.nav-link {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  color: var(--ink);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  border-color: var(--line-soft);
  background: var(--surface-soft);
}

.nav-link span {
  font-weight: 600;
}

.nav-link small {
  color: var(--faint);
}

.rail-panel,
.detail-panel,
.search-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.rail-panel {
  padding: 16px;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-title-row h2,
.section-heading h2,
.detail-panel h2 {
  margin: 0;
}

.panel-title-row h2 {
  font-size: 14px;
}

.text-button,
.ghost-button,
.icon-button,
.detail-tab,
.segment,
.question-list button {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--ink);
}

.text-button {
  padding: 7px 11px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

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

.watch-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.watch-item:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.watch-item-main {
  display: grid;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.watch-item-main strong {
  font-size: 13px;
}

.watch-item-main span {
  color: var(--muted);
  font-size: 12px;
}

.watch-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
}

.watch-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.watch-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-active);
  font-size: 11px;
  font-weight: 700;
}

.watch-remove {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  font-size: 15px;
}

.watch-remove:hover {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.watch-empty {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.workspace {
  min-width: 0;
  padding: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 260px, #f7f7f7 260px, #f7f7f7 100%);
}

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

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
  text-wrap: balance;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(400px, 38vw);
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  color: var(--muted);
  box-shadow: 0 6px 18px rgba(34, 34, 34, 0.08);
}

.search-box:focus-within {
  border-color: var(--ink);
  box-shadow: 0 8px 24px rgba(34, 34, 34, 0.12);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.primary-button,
.ghost-button {
  min-height: 48px;
  padding: 0 20px;
  font-weight: 600;
}

.primary-button {
  border: 1px solid var(--brand);
  border-radius: var(--radius-xl);
  background: var(--brand);
  color: #ffffff;
}

.primary-button:hover {
  border-color: var(--brand-active);
  background: var(--brand-active);
}

.ghost-button {
  background: var(--surface);
}

.ghost-button:hover {
  border-color: var(--ink);
}

.control-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.snapshot-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.snapshot-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.snapshot-card-primary {
  background:
    radial-gradient(circle at right top, rgba(255, 56, 92, 0.12), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #fff7f8 100%);
  border-color: #f2c6cf;
}

.snapshot-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.snapshot-card-primary .snapshot-kicker {
  background: #ffffff;
  color: var(--brand-active);
}

.snapshot-card h2,
.snapshot-card h3,
.snapshot-card p {
  margin: 0;
}

.snapshot-card h2 {
  font-size: 21px;
  line-height: 1.28;
  text-wrap: pretty;
}

.snapshot-card h3 {
  font-size: 16px;
}

.snapshot-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.snapshot-metrics,
.connection-list {
  display: grid;
  gap: 8px;
}

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

.metric-cell,
.connection-item {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.metric-cell strong,
.connection-item strong {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.metric-cell span,
.connection-item span {
  color: var(--muted);
  font-size: 12px;
}

.connection-item.error {
  background: var(--red-soft);
}

.connection-item.error strong,
.connection-item.error span {
  color: var(--red);
}

.metric-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.signal-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.metric-pill.lane-brand,
.issue-meta-pill.brand,
.briefing-chip.brand {
  background: var(--brand-soft);
  color: var(--brand-active);
}

.metric-pill.lane-warn,
.issue-meta-pill.warn,
.briefing-chip.warn {
  background: var(--red-soft);
  color: var(--red);
}

.metric-pill.lane-info,
.issue-meta-pill.info,
.briefing-chip.info {
  background: var(--blue-soft);
  color: var(--blue);
}

.metric-pill.lane-muted,
.issue-meta-pill.muted,
.briefing-chip.muted {
  background: var(--surface-soft);
  color: var(--muted);
}

.signal-chip,
.briefing-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--body);
  font-size: 11px;
  font-weight: 700;
}

.signal-chip.confirmed {
  border-color: #bdd9cf;
  background: var(--green-soft);
  color: var(--green);
}

.signal-chip.info,
.briefing-chip.info {
  border-color: #c7d9ff;
  background: var(--blue-soft);
  color: var(--blue);
}

.signal-chip.practical {
  border-color: #f3d2da;
  background: var(--brand-soft);
  color: var(--brand-active);
}

.signal-chip.korea {
  border-color: #e4d29e;
  background: var(--amber-soft);
  color: var(--amber);
}

.signal-chip.risk {
  border-color: #e2bdb8;
  background: var(--red-soft);
  color: var(--red);
}

.signal-chip.calm {
  border-color: #bdd9cf;
  background: var(--green-soft);
  color: var(--green);
}

.signal-chip.soft {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
}

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

.snapshot-role-item,
.snapshot-role-focus {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: left;
}

.snapshot-role-item strong,
.snapshot-role-focus strong {
  font-size: 12px;
}

.snapshot-role-item.active {
  border-color: #f2c6cf;
  background: #fff7f8;
}

.snapshot-role-item span,
.snapshot-role-focus span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.snapshot-role-focus b {
  font-size: 14px;
  line-height: 1.45;
}

.snapshot-note {
  color: var(--body);
  font-size: 13px;
  line-height: 1.5;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segment {
  min-height: 38px;
  padding: 0 14px;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
}

.segment.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 20px;
  align-items: start;
}

.primary-column {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.context-column {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 14px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: 21px;
  font-weight: 700;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.issue-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(34, 34, 34, 0.04);
  transition: border-color 180ms ease-out, background 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out;
}

.issue-card:hover,
.issue-card.selected {
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: var(--shadow-strong);
}

.issue-card:hover {
  transform: translateY(-1px);
}

.issue-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.issue-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.issue-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.issue-title-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
}

.issue-title-button h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.28;
  text-wrap: pretty;
}

.issue-title-button p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.score-block {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 4px;
  min-width: 72px;
}

.score-block strong {
  color: var(--brand);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.score-block span {
  color: var(--muted);
  font-size: 12px;
}

.badge-row,
.action-row,
.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--body);
  font-size: 12px;
  font-weight: 600;
}

.badge.official,
.badge.confirmed {
  border-color: #bdd9cf;
  background: var(--green-soft);
  color: var(--green);
}

.badge.rising,
.badge.realtime {
  border-color: #e4d29e;
  background: var(--amber-soft);
  color: var(--amber);
}

.badge.risk,
.badge.debated {
  border-color: #e2bdb8;
  background: var(--red-soft);
  color: var(--red);
}

.source-row {
  color: var(--muted);
  font-size: 14px;
}

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

.metric-card {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.metric-card b {
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-action,
.why-button,
.card-action-strong {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.card-action:hover,
.why-button:hover,
.card-action-strong:hover {
  border-color: var(--ink);
}

.why-button {
  border-color: var(--ink);
}

.card-action-strong {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-active);
  font-weight: 600;
}

.why-panel {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 2px;
}

.issue-card.expanded .why-panel {
  display: grid;
}

.why-item {
  padding: 13px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.why-item b {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.why-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.radar-lane {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}

.radar-lane:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.radar-lane h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.lane-meter {
  height: 7px;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.lane-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.radar-lane p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.briefing-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.briefing-item summary {
  cursor: pointer;
  padding: 0;
  list-style: none;
}

.briefing-item summary::-webkit-details-marker {
  display: none;
}

.briefing-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px 16px;
}

.briefing-order {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.briefing-head {
  display: grid;
  gap: 6px;
}

.briefing-head strong {
  font-size: 15px;
  line-height: 1.4;
}

.briefing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.briefing-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.briefing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.detail-panel,
.search-panel {
  padding: 16px;
}

.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.state-pill,
.mini-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-active);
  font-size: 12px;
  font-weight: 700;
}

.icon-button {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.icon-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.detail-panel h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.32;
  text-wrap: pretty;
}

.detail-summary {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.detail-kicker {
  margin: 8px 0 0;
  color: var(--brand-active);
  font-size: 12px;
  font-weight: 700;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.trust-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.trust-item b {
  display: block;
  color: var(--brand);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.trust-item span {
  color: var(--muted);
  font-size: 12px;
}

.trust-item.positive {
  border-color: #bdd9cf;
  background: var(--green-soft);
}

.trust-item.positive b,
.trust-item.positive span {
  color: var(--green);
}

.trust-item.warn {
  border-color: #e2bdb8;
  background: var(--red-soft);
}

.trust-item.warn b,
.trust-item.warn span {
  color: var(--red);
}

.trust-item.info {
  border-color: #c7d9ff;
  background: var(--blue-soft);
}

.trust-item.info b,
.trust-item.info span {
  color: var(--blue);
}

.detail-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.detail-tab {
  min-height: 38px;
  font-size: 14px;
  font-weight: 600;
}

.detail-tab.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.detail-content {
  display: grid;
  gap: 10px;
}

.detail-callout {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-block {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-block b {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.detail-block p,
.detail-block li {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.detail-block ul {
  margin: 0;
  padding-left: 18px;
}

.detail-source-group + .detail-source-group {
  margin-top: 10px;
}

.detail-source-group strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}

.detail-source-list {
  margin: 0;
  padding-left: 18px;
}

.question-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.question-list button {
  min-height: 42px;
  padding: 9px 13px;
  text-align: left;
  color: var(--body);
  font-size: 14px;
}

.question-list button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.search-results {
  display: grid;
  gap: 8px;
}

.result-group {
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.result-group strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.result-group button {
  display: block;
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  text-align: left;
  font-size: 13px;
}

.empty-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.empty-card strong,
.empty-card p {
  margin: 0;
}

.empty-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease-out, transform 160ms ease-out;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

  .side-rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

  .context-column {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .snapshot-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .side-rail {
    gap: 12px;
    padding: 14px;
  }

  .rail-panel {
    display: none;
  }

  .workspace {
    padding: 16px;
  }

  .topbar,
  .control-strip,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .context-column,
  .why-panel,
  .briefing-body,
  .trust-strip,
  .radar-grid,
  .snapshot-metrics,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    display: grid;
  }

  .search-box {
    width: 100%;
  }

  h1 {
    font-size: 23px;
  }

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

  .nav-link {
    display: grid;
    min-height: 42px;
    place-items: center;
    padding: 8px 6px;
    text-align: center;
  }

  .nav-link small {
    display: none;
  }

  .issue-header {
    grid-template-columns: 1fr;
  }

  .score-block {
    justify-items: start;
  }

  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .action-group {
    width: 100%;
  }

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