/*
 * GKN visual refinement layer
 * Kept separate from the legacy stylesheet so the product surface can evolve
 * without coupling presentation changes to the information architecture.
 */
:root {
  --gkn-navy-950: #0b1726;
  --gkn-navy-900: #11243a;
  --gkn-navy-800: #183451;
  --gkn-gold: #b4934a;
  --gkn-gold-soft: #e8dcc0;
  --gkn-paper: #f5f7fa;
  --gkn-surface: #ffffff;
  --gkn-surface-muted: #f8fafc;
  --gkn-ink: #172235;
  --gkn-muted: #627087;
  --gkn-line: #d8e0ea;
  --gkn-line-strong: #c5d0dd;
  --gkn-shadow: 0 10px 28px rgba(11, 23, 38, 0.07);
  --gkn-shadow-raised: 0 18px 42px rgba(11, 23, 38, 0.12);

  --color-bg: var(--gkn-paper);
  --color-bg-soft: var(--gkn-surface-muted);
  --color-surface: var(--gkn-surface);
  --color-surface-subtle: #fbfcfe;
  --color-ink: var(--gkn-ink);
  --color-muted: var(--gkn-muted);
  --color-border: var(--gkn-line);
  --color-brand: var(--gkn-navy-800);
  --color-brand-deep: var(--gkn-navy-950);
  --color-accent: #466887;
  --shadow-panel: var(--gkn-shadow);
  --shadow-card: 0 2px 8px rgba(11, 23, 38, 0.035);
  --shadow-hover: var(--gkn-shadow-raised);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--gkn-paper);
  color: var(--gkn-ink);
  font-family: "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.shell {
  background: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  padding: 12px 34px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(197, 208, 221, 0.9);
  box-shadow: 0 1px 0 rgba(11, 23, 38, 0.02);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand-lockup {
  gap: 10px;
  min-width: 176px;
}

.brand-mark {
  width: 36px;
  height: 30px;
}

.brand-copy .eyebrow,
.eyebrow,
.panel-kicker,
.brief-label {
  color: #728197;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-copy h1 {
  color: var(--gkn-navy-900);
  font-size: 14px;
  font-weight: 760;
}

.site-nav {
  gap: 3px;
}

.site-nav a {
  position: relative;
  padding: 8px 10px;
  color: #3c4b61;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gkn-navy-900);
  background: #edf2f7;
}

.topbar-actions {
  gap: 8px;
}

.topbar-actions #dataUpdated {
  color: #718096;
  font-variant-numeric: tabular-nums;
}

.primary-action,
.ghost-action,
.report-link,
.topbar button {
  min-height: 34px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 140ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.primary-action,
.report-link {
  background: var(--gkn-navy-900);
  border-color: var(--gkn-navy-900);
  box-shadow: 0 4px 10px rgba(17, 36, 58, 0.14);
}

.primary-action:hover,
.report-link:hover {
  background: var(--gkn-navy-950);
  border-color: var(--gkn-navy-950);
  box-shadow: 0 7px 16px rgba(17, 36, 58, 0.2);
}

.ghost-action {
  color: var(--gkn-navy-900);
  border-color: var(--gkn-line-strong);
  background: rgba(255, 255, 255, 0.68);
}

.ghost-action:hover {
  color: var(--gkn-navy-950);
  border-color: #aebdcd;
  background: #f7f9fc;
}

main {
  max-width: 1480px;
  padding: 28px 34px 56px;
}

.ui-panel,
.ui-card,
.page-hero,
.report-hero,
.report-section,
.report-side,
.homepage-governance,
.globe-board {
  border-color: var(--gkn-line);
  box-shadow: var(--gkn-shadow);
}

.ui-panel,
.workspace-panel,
.page-hero,
.report-hero,
.report-section,
.report-side,
.homepage-governance {
  background: var(--gkn-surface);
}

.ui-card {
  background: var(--gkn-surface-muted);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}

.ui-clickable,
.ui-card[data-clickable="true"],
.today-card,
.homepage-governance__item,
.globe-hotspot,
.event-topic-card,
.profile-row,
.event-item,
.governance-item,
.watch-item,
.country-report-link {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.ui-clickable:hover,
.ui-card[data-clickable="true"]:hover,
.today-card:hover,
.homepage-governance__item:hover,
.event-topic-card:hover,
.profile-row:hover,
.event-item:hover,
.governance-item:hover,
.watch-item:hover,
.country-report-link:hover {
  transform: translateY(-2px);
  border-color: #acbbcb;
  box-shadow: var(--gkn-shadow-raised);
}

.research-asset {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.research-asset b {
  display: block;
  margin-top: 18px;
  color: var(--gkn-gold);
  font-size: 12px;
}

.research-asset:hover b {
  color: var(--gkn-navy-800);
}

.today-card__source {
  color: var(--gkn-navy-800);
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-source-link,
.research-preview__source a {
  color: var(--gkn-navy-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gkn-assistant__launcher {
  border: 1px solid rgba(180, 147, 74, 0.7);
  box-shadow: 0 12px 30px rgba(11, 23, 38, 0.22), 0 0 0 5px rgba(180, 147, 74, 0.1);
  animation: gkn-assistant-pulse 3.5s ease-in-out infinite;
}

.gkn-assistant__launcher em {
  color: #d8c28d;
}

@keyframes gkn-assistant-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(11, 23, 38, 0.22), 0 0 0 5px rgba(180, 147, 74, 0.1); }
  50% { box-shadow: 0 14px 34px rgba(11, 23, 38, 0.28), 0 0 0 8px rgba(180, 147, 74, 0.17); }
}

@media (prefers-reduced-motion: reduce) {
  .gkn-assistant__launcher { animation: none; }
}

.gkn-is-pressed {
  transform: scale(0.985) !important;
}

.geo-node.gkn-is-pressed {
  transform: translate(-50%, -50%) scale(1.12) !important;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(180, 147, 74, 0.38);
  outline-offset: 2px;
}

.globe-board.first-screen {
  position: relative;
  overflow: hidden;
  min-height: min(664px, calc(100vh - 108px));
  grid-template-columns: minmax(270px, 0.65fr) minmax(480px, 1.45fr) minmax(280px, 0.7fr);
  color: #edf3f8;
  background: var(--gkn-navy-950);
  border-color: #1b354f;
  box-shadow: 0 22px 50px rgba(11, 23, 38, 0.18);
}

.first-screen .globe-copy,
.first-screen .globe-feed {
  padding: 34px 30px;
  background: #0e1d2f;
}

.first-screen .globe-copy {
  border-right-color: rgba(189, 208, 225, 0.17);
}

.first-screen .globe-feed {
  border-left-color: rgba(189, 208, 225, 0.17);
}

.first-screen .panel-kicker {
  color: var(--gkn-gold);
}

.first-screen .globe-copy h2 {
  max-width: 320px;
  color: #f5f8fb;
  font-size: 34px;
  font-weight: 720;
  line-height: 1.28;
  letter-spacing: 0;
}

.first-screen .globe-copy p,
.first-screen .globe-feed p,
.first-screen .globe-legend span,
.first-screen .globe-hotspot,
.first-screen .globe-hotspot em {
  color: #b9c7d5;
}

.first-screen .globe-stage {
  position: relative;
  background: #091827;
  border-right-color: rgba(189, 208, 225, 0.17);
}

.first-screen .globe-stage::after {
  content: "拖拽探索地图";
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(213, 225, 237, 0.58);
  font-size: 11px;
  pointer-events: none;
}

.first-screen #riskGlobe {
  cursor: grab;
}

.first-screen #riskGlobe:active {
  cursor: grabbing;
}

.first-screen .globe-legend {
  gap: 10px;
}

.first-screen .globe-legend span {
  padding: 5px 0;
  font-size: 12px;
}

.first-screen .globe-hotspot {
  padding: 14px 0;
  border-bottom-color: rgba(189, 208, 225, 0.16);
}

.first-screen .globe-hotspot:hover {
  padding-left: 8px;
  background: transparent;
}

.first-screen .globe-hotspot strong,
.first-screen .globe-hotspot b {
  color: #f2f6fa;
  font-variant-numeric: tabular-nums;
}

.first-screen .primary-action {
  color: #122033;
  background: var(--gkn-gold);
  border-color: var(--gkn-gold);
  box-shadow: none;
}

.first-screen .primary-action:hover {
  background: #c7a85f;
  border-color: #c7a85f;
}

.first-screen .ghost-action {
  color: #dce7f0;
  border-color: rgba(220, 231, 240, 0.38);
  background: transparent;
}

.today-brief,
.homepage-governance {
  margin-top: 18px;
  padding: 24px 26px 26px;
  border-radius: 8px;
}

.today-brief__head,
.homepage-governance__head {
  margin-bottom: 18px;
}

.today-brief__head h2,
.homepage-governance__head h2 {
  color: var(--gkn-navy-900);
  font-size: 22px;
  font-weight: 720;
  letter-spacing: 0;
}

.today-focus,
.homepage-governance__grid {
  gap: 12px;
}

.today-card,
.homepage-governance__item {
  min-height: 164px;
  padding: 17px;
  border-top: 2px solid transparent;
}

.today-card:hover,
.homepage-governance__item:hover {
  border-top-color: var(--gkn-gold);
}

.today-card strong,
.homepage-governance__item strong {
  color: var(--gkn-navy-900);
  font-weight: 720;
}

.today-card p,
.homepage-governance__item p {
  color: var(--gkn-muted);
  line-height: 1.62;
}

.hero-band,
.intelligence-note,
.method-section,
.about-section,
.contact-section {
  border-radius: 8px;
  border-color: var(--gkn-line);
}

.hero-band {
  margin-top: 18px;
  background: #ffffff;
}

.brief {
  padding: 28px;
}

.brief h2 {
  color: var(--gkn-navy-900);
  font-size: 26px;
  font-weight: 720;
  line-height: 1.35;
  letter-spacing: 0;
}

.metric-strip {
  background: #f9fbfd;
}

.metric {
  padding: 22px 16px;
}

.metric span {
  color: #728197;
  font-size: 12px;
}

.metric strong {
  color: var(--gkn-navy-900);
  font-size: 30px;
  font-weight: 740;
  font-variant-numeric: tabular-nums;
}

.status-pill,
.ui-badge {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.control-row,
.view-switcher {
  margin-top: 18px;
}

.ui-tab,
.view-tab {
  border-radius: 6px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}

.ui-tab.active,
.view-tab.active,
.ui-tab:hover,
.view-tab:hover {
  color: #ffffff;
  background: var(--gkn-navy-900);
  border-color: var(--gkn-navy-900);
}

.geo-map {
  border-radius: 6px;
  background: #f4f7fa;
}

/* Shared country-map workbench. Geographic paths are bundled locally, with no map key or tile dependency. */
.gkn-map-host {
  position: relative;
  min-height: 0;
  margin: 16px 18px 20px;
  overflow: hidden;
  border: 1px solid #d9e2ea;
  border-radius: 6px;
  background: #e8f0f4;
}

.gkn-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px solid rgba(26, 66, 96, 0.14);
  background: rgba(251, 253, 254, 0.96);
}

.gkn-map-toolbar__label,
.gkn-map-note,
.gkn-map-legend {
  color: #567084;
  font-size: 12px;
  line-height: 1.35;
}

.gkn-map-toolbar__actions {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #c9d7e1;
  border-radius: 4px;
  background: #fff;
}

.gkn-map-control {
  width: 30px;
  height: 28px;
  padding: 0;
  border: 0;
  border-right: 1px solid #dbe5eb;
  background: #fff;
  color: #173a59;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.gkn-map-control:last-child { border-right: 0; }
.gkn-map-control:hover { background: #edf3f7; color: #9d6b17; }
.gkn-map-control:focus-visible,
.gkn-vector-map__countries path:focus-visible { outline: 2px solid #c8942b; outline-offset: 2px; }

.gkn-map-viewport {
  position: relative;
  aspect-ratio: 1.78 / 1;
  min-height: 360px;
  overflow: hidden;
  touch-action: none;
  background:
    radial-gradient(circle at 22% 25%, rgba(255, 255, 255, 0.68), transparent 24%),
    linear-gradient(180deg, #dce9ef 0%, #edf4f6 100%);
  cursor: grab;
}

.gkn-map-viewport.is-grabbing { cursor: grabbing; }
.gkn-vector-map { display: block; width: 100%; height: 100%; }
.gkn-vector-map__content { transform-origin: 0 0; }

.gkn-vector-map__grid path {
  fill: none;
  stroke: rgba(31, 70, 99, 0.11);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
}

.gkn-vector-map__countries path {
  fill: #c6d5dc;
  stroke: rgba(251, 253, 254, 0.95);
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
  transition: fill 180ms ease, stroke 180ms ease, opacity 180ms ease;
}

.gkn-vector-map__countries path.is-country { cursor: pointer; }
.gkn-vector-map__countries path.is-country:hover,
.gkn-vector-map__countries path.is-country.is-selected { stroke: #173a59; stroke-width: 1.45; }
.gkn-vector-map__countries path.risk-high { fill: #b85a4c; }
.gkn-vector-map__countries path.risk-watch { fill: #d59a35; }
.gkn-vector-map__countries path.risk-stable { fill: #568a79; }
.gkn-vector-map__countries path.risk-unknown { fill: #aebfc8; }
.gkn-vector-map__countries path.is-selected { filter: drop-shadow(0 2px 2px rgba(10, 35, 54, 0.22)); }
.gkn-vector-map__countries path.is-blocked { fill: #9aacb8; opacity: 0.72; cursor: not-allowed; }

.gkn-map-tooltip {
  position: absolute;
  z-index: 3;
  max-width: 150px;
  padding: 7px 9px;
  border: 1px solid rgba(20, 52, 78, 0.26);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 7px 18px rgba(21, 48, 70, 0.14);
  color: #173a59;
  font-size: 12px;
  pointer-events: none;
}

.gkn-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  padding: 10px 14px 4px;
  background: #f9fbfc;
}

.gkn-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.gkn-map-legend i { width: 8px; height: 8px; border-radius: 50%; background: #aebfc8; }
.gkn-map-legend .is-high { background: #b85a4c; }
.gkn-map-legend .is-watch { background: #d59a35; }
.gkn-map-legend .is-stable { background: #568a79; }
.gkn-map-note { margin: 0; padding: 0 14px 11px; background: #f9fbfc; }

.governance-service-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d9e2ea;
}

.governance-service-action {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #c7d4de;
  border-radius: 4px;
  background: #fff;
  color: #173a59;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.governance-service-action:hover {
  border-color: #b28630;
  background: #fffaf0;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .gkn-map-host { margin: 12px; }
  .gkn-map-viewport { min-height: 270px; }
  .gkn-map-toolbar__label { font-size: 11px; }
  .gkn-map-legend { gap: 7px 10px; font-size: 11px; }
  .governance-service-actions { grid-template-columns: 1fr; }
}

.world-map-outline__land path {
  fill: rgba(24, 52, 81, 0.11);
  stroke: rgba(24, 52, 81, 0.24);
}

.geo-node,
.geo-disabled {
  border-radius: 5px;
}

.detail-modal {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 26px 72px rgba(11, 23, 38, 0.28);
}

.modal-backdrop {
  background: rgba(7, 18, 31, 0.64);
  backdrop-filter: blur(8px);
}

.modal-body h2 {
  color: var(--gkn-navy-900);
  font-weight: 720;
  letter-spacing: 0;
}

@media (max-width: 1080px) {
  .globe-board.first-screen {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .first-screen .globe-copy,
  .first-screen .globe-feed,
  .first-screen .globe-stage {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(189, 208, 225, 0.17);
  }

  .first-screen .globe-stage,
  .first-screen #riskGlobe {
    min-height: 440px;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 12px 16px;
    background: #ffffff;
    backdrop-filter: none;
  }

  .site-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 8px 9px;
    white-space: nowrap;
  }

  main {
    padding: 18px 14px 40px;
  }

  .first-screen .globe-copy,
  .first-screen .globe-feed {
    padding: 24px 20px;
  }

  .first-screen .globe-copy h2 {
    font-size: 28px;
  }

  .first-screen .globe-stage,
  .first-screen #riskGlobe {
    min-height: 360px;
  }

  .today-brief,
  .homepage-governance {
    padding: 20px 16px;
  }

  .today-brief__head h2,
  .homepage-governance__head h2 {
    font-size: 20px;
  }
}

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

@media (prefers-reduced-transparency: reduce) {
  .topbar,
  .modal-backdrop {
    backdrop-filter: none;
  }

  .topbar {
    background: #ffffff;
  }
}

/* Persistent entry for the future GKN research-agent experience. */
.gkn-assistant {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
}

.gkn-assistant__launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 13px 8px 9px;
  color: #f5f8fb;
  border: 1px solid rgba(220, 231, 240, 0.22);
  border-radius: 7px;
  background: #10263d;
  box-shadow: 0 14px 28px rgba(11, 23, 38, 0.22);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.gkn-assistant__launcher:hover {
  background: #17324b;
  box-shadow: 0 18px 34px rgba(11, 23, 38, 0.28);
  transform: translateY(-2px);
}

.gkn-assistant__launcher:active {
  transform: scale(0.98);
}

.gkn-assistant__launcher img {
  width: 30px;
  height: 30px;
  padding: 3px;
  object-fit: contain;
  border-radius: 50%;
  background: #f0f4f7;
}

.gkn-assistant__launcher span {
  display: grid;
  gap: 2px;
}

.gkn-assistant__launcher strong {
  font-size: 12px;
  font-weight: 720;
}

.gkn-assistant__launcher em {
  color: #b7c6d4;
  font-size: 10px;
  font-style: normal;
}

.gkn-assistant__panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(376px, calc(100vw - 32px));
  overflow: hidden;
  color: #172235;
  border: 1px solid #cbd6df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 64px rgba(11, 23, 38, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.985);
  transform-origin: right bottom;
  transition: opacity 180ms cubic-bezier(0.23, 1, 0.32, 1), transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.gkn-assistant.is-open .gkn-assistant__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.gkn-assistant__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  color: #f5f8fb;
  background: #10263d;
}

.gkn-assistant__header p {
  margin: 0 0 6px;
  color: #b4934a;
  font-size: 10px;
  font-weight: 720;
}

.gkn-assistant__header h2 {
  margin: 0;
  color: #f5f8fb;
  font-size: 19px;
}

.gkn-assistant__close {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #d7e3ec;
  border: 1px solid rgba(220, 231, 240, 0.25);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  place-items: center;
}

.gkn-assistant__body {
  padding: 18px 20px 20px;
}

.gkn-assistant__intro {
  margin: 0;
  color: #5d6e80;
  font-size: 13px;
  line-height: 1.65;
}

.gkn-assistant__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #6c5421;
  font-size: 11px;
  font-weight: 700;
}

.gkn-assistant__status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b4934a;
}

.gkn-assistant__prompts {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.gkn-assistant__prompts button {
  padding: 9px 10px;
  color: #29435a;
  border: 1px solid #d7e0e7;
  border-radius: 5px;
  background: #f7f9fb;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.gkn-assistant__prompts button:hover {
  border-color: #afc0ce;
  background: #f1f5f8;
}

.gkn-assistant__composer {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.gkn-assistant__composer label {
  color: #586b7e;
  font-size: 11px;
  font-weight: 700;
}

.gkn-assistant__composer textarea {
  width: 100%;
  resize: vertical;
  padding: 10px;
  color: #172235;
  border: 1px solid #cbd6df;
  border-radius: 5px;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.gkn-assistant__composer textarea:focus {
  outline: 2px solid rgba(180, 147, 74, 0.35);
  border-color: #b4934a;
}

.gkn-assistant__composer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gkn-assistant__composer-row span,
.gkn-assistant__notice {
  color: #7a8997;
  font-size: 11px;
  line-height: 1.5;
}

.gkn-assistant__composer-row button {
  min-height: 30px;
  padding: 6px 9px;
  color: #ffffff;
  border: 1px solid #17324b;
  border-radius: 5px;
  background: #17324b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.gkn-assistant__notice {
  min-height: 17px;
  margin: 10px 0 0;
}

@media (max-width: 720px) {
  .gkn-assistant {
    right: 16px;
    bottom: 16px;
  }

  .gkn-assistant__launcher span {
    display: none;
  }

  .gkn-assistant__launcher {
    width: 48px;
    min-height: 48px;
    padding: 8px;
    justify-content: center;
    border-radius: 50%;
  }

  .gkn-assistant__panel {
    right: 0;
    bottom: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gkn-assistant__panel,
  .gkn-assistant__launcher {
    transition: none;
  }
}

/* Live public-research workspace. The service boundary lives in /api/agent/chat. */
.gkn-assistant__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 31, 47, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.gkn-assistant.is-open .gkn-assistant__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.gkn-assistant__panel {
  display: grid;
  grid-template-rows: auto auto minmax(240px, 1fr) auto auto;
  width: min(680px, calc(100vw - 44px));
  min-height: min(690px, calc(100vh - 88px));
  max-height: min(730px, calc(100vh - 88px));
  z-index: 1;
}

.gkn-assistant__header {
  align-items: center;
  padding: 19px 22px 17px;
}

.gkn-assistant__header h2 {
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 22px;
  font-weight: 600;
}

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

.gkn-assistant__clear {
  padding: 5px 0;
  color: #bfcdda;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.gkn-assistant__clear:hover { color: #f3cf70; }

.gkn-assistant__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #c3d2dc;
  font-size: 11px;
}

.gkn-assistant__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4ae48;
}

.gkn-assistant__privacy {
  padding: 9px 22px;
  color: #66778a;
  border-bottom: 1px solid #e0e7ec;
  background: #f5f8fa;
  font-size: 11px;
  line-height: 1.55;
}

.gkn-assistant__messages {
  display: grid;
  align-content: start;
  gap: 13px;
  overflow: auto;
  padding: 20px 22px 14px;
  background: #fbfcfd;
  scrollbar-color: #c7d2dc transparent;
}

.gkn-assistant__message {
  max-width: 88%;
  color: #294054;
  font-size: 13px;
  line-height: 1.7;
}

.gkn-assistant__message > div {
  padding: 11px 13px;
  border: 1px solid #dbe4ea;
  border-radius: 7px;
  background: #ffffff;
}

.gkn-assistant__message.is-user {
  justify-self: end;
  color: #f7fafc;
}

.gkn-assistant__message.is-user > div {
  border-color: #1b3852;
  background: #17334d;
}

.gkn-assistant__sources {
  display: grid;
  gap: 5px;
  padding: 8px 3px 0;
}

.gkn-assistant__sources > span {
  color: #708194;
  font-size: 10px;
  font-weight: 700;
}

.gkn-assistant__sources a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #66511d;
  font-size: 11px;
  text-decoration: none;
}

.gkn-assistant__sources a:hover { color: #9b7216; text-decoration: underline; }
.gkn-assistant__sources b { color: #ad852d; }
.gkn-assistant__sources em { font-style: normal; }

.gkn-assistant__suggestions {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 5px 22px 11px;
  border-top: 1px solid #e4eaee;
  background: #fbfcfd;
}

.gkn-assistant__suggestions button {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #395268;
  border: 1px solid #d5e0e7;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  font-size: 11px;
}

.gkn-assistant__suggestions button:hover { border-color: #b4934a; color: #694f18; }

.gkn-assistant__composer {
  margin: 0;
  padding: 0 22px 14px;
  background: #fbfcfd;
}

.gkn-assistant__composer textarea {
  min-height: 66px;
  max-height: 110px;
  resize: vertical;
}

.gkn-assistant__composer-row { margin-top: 4px; }
.gkn-assistant__composer-row button { display: inline-flex; align-items: center; gap: 5px; }
.gkn-assistant__composer-row button b { font-size: 16px; line-height: 0.8; }
.gkn-assistant__composer-row button:disabled { cursor: wait; opacity: 0.66; }
.gkn-assistant__notice { margin: 0; padding: 0 22px 14px; background: #fbfcfd; }
.gkn-assistant.is-busy .gkn-assistant__live i { animation: gkn-agent-pulse 1.2s ease-in-out infinite; }

@keyframes gkn-agent-pulse {
  50% { opacity: 0.28; transform: scale(0.72); }
}

@media (max-width: 720px) {
  .gkn-assistant__panel {
    right: 0;
    bottom: 0;
    width: 100vw;
    min-height: min(720px, calc(100vh - 18px));
    max-height: calc(100vh - 18px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    transform-origin: bottom center;
  }

  .gkn-assistant__header,
  .gkn-assistant__privacy,
  .gkn-assistant__messages,
  .gkn-assistant__suggestions,
  .gkn-assistant__composer,
  .gkn-assistant__notice { padding-right: 16px; padding-left: 16px; }
  .gkn-assistant__clear { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gkn-assistant__backdrop,
  .gkn-assistant__panel,
  .gkn-assistant__launcher { transition: none; }
  .gkn-assistant.is-busy .gkn-assistant__live i { animation: none; }
}
/* Business index transparency: reference baselines remain visibly distinct from formal CBEE scores. */
.business-index-page .index-freshness { align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.business-index-page .index-freshness span { font-size: 0.78rem; color: var(--muted); }
.business-index-page .index-disclosure { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.56); }
.business-index-page .index-disclosure p { margin: .35rem 0; }
.business-index-page .index-disclosure small { display: flex; gap: .8rem; flex-wrap: wrap; }
.business-index-page #lensDisabledNote { display: block; max-width: 15rem; margin-top: .35rem; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.source-contribution-card { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.48); }
.source-contribution-card h3 { margin: .2rem 0 .35rem; }
.source-contribution-card p { margin: 0; color: var(--muted); }
.source-contribution-card__rows { display: grid; gap: .65rem; margin-top: .9rem; }
.source-contribution-card__rows div { display: grid; gap: .18rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.source-contribution-card__rows span, .source-contribution-card__rows small { color: var(--muted); font-size: .84rem; }
.source-contribution-card__action { margin-top: .9rem; width: 100%; justify-content: center; }
.score-evidence { display: grid; gap: 1rem; }
.score-evidence .method-card { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.48); }
.score-evidence .method-card > h3 { margin-top: 0; }
.score-evidence .method-card > a { display: inline-flex; margin-top: .75rem; color: var(--accent); }
@media (max-width: 720px) { .business-index-page .index-disclosure { display: grid; } .business-index-page .index-freshness { display: grid; gap: .15rem; } }

/* Business index decision workspace: map first, evidence on demand, methodology last. */
.business-index-page .business-index-main {
  gap: 20px;
  padding-top: 18px;
}

.business-index-page .business-index-workspace {
  grid-template-columns: minmax(600px, 1.32fr) minmax(390px, .78fr);
  align-items: stretch;
  margin: 0;
}

.business-index-page .business-index-workspace > .panel {
  min-width: 0;
  overflow: hidden;
}

.business-index-page .coverage-summary {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  padding: 12px 18px 4px;
  color: var(--color-muted);
  font-size: 12px;
}

.business-index-page .coverage-summary strong {
  color: var(--color-brand);
  font-size: 13px;
}

.business-index-page .coverage-summary span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 6px 2px 0;
  border-radius: 50%;
  background: #9ba9b7;
}

.business-index-page .coverage-summary em {
  margin-left: auto;
  color: var(--color-accent);
  font-style: normal;
  font-weight: 650;
}

.business-index-page .map-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 18px 0;
}

.business-index-page .map-filter-row label {
  display: grid;
  gap: 5px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 650;
}

.business-index-page .map-filter-row select {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-ink);
}

.business-index-page .map-filter-row #lensDisabledNote {
  max-width: none;
  margin: 0;
  font-size: 10px;
}

.business-index-page .business-index-workspace .geo-map {
  min-height: 585px;
  margin-top: 12px;
}

.business-index-page .market-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 790px;
}

.business-index-page .market-panel .country-profile {
  min-height: 0;
  padding: 0 18px 20px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.business-index-page .country-profile section {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.business-index-page .country-profile section:last-of-type {
  border-bottom: 0;
}

.business-index-page .country-score-overview .score-block {
  margin-bottom: 12px;
}

.business-index-page .country-score-badges,
.business-index-page .market-discovery-card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.business-index-page .country-score-overview h2 {
  margin: 0 0 5px;
  font-size: 19px;
}

.business-index-page .country-organization-chips,
.business-index-page .market-discovery-card__organizations {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.business-index-page .country-organization-chips span,
.business-index-page .market-discovery-card__organizations span {
  padding: 4px 7px;
  border: 1px solid #d8e0e8;
  border-radius: 999px;
  background: #f8fafc;
  color: #526478;
  font-size: 11px;
}

.business-index-page .country-trend-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  margin-top: 12px;
  padding: 11px 12px;
  border-left: 3px solid #8292a3;
  border-radius: 4px 8px 8px 4px;
  background: #f7f9fb;
}

.business-index-page .country-trend-callout[data-tone="high"] { border-left-color: var(--red); background: #fff7f6; }
.business-index-page .country-trend-callout[data-tone="watch"] { border-left-color: var(--amber); background: #fffaf0; }
.business-index-page .country-trend-callout[data-tone="stable"] { border-left-color: var(--green); background: #f4faf6; }
.business-index-page .country-trend-callout span,
.business-index-page .country-section-head span {
  display: block;
  margin-bottom: 3px;
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.business-index-page .country-trend-callout strong { font-size: 14px; }
.business-index-page .country-trend-callout b { align-self: center; font-size: 12px; }
.business-index-page .country-trend-callout p {
  grid-column: 1 / -1;
  margin: 3px 0 0;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.55;
}

.business-index-page .country-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.business-index-page .country-section-head h3 {
  margin: 0;
  font-size: 15px;
}

.business-index-page .country-section-head > small {
  color: var(--color-muted);
  font-size: 11px;
}

.business-index-page .text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-accent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 680;
}

.business-index-page .latest-signal-card {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 12px;
  border: 1px solid #ead7b3;
  border-radius: 7px;
  background: #fffaf1;
  color: var(--color-ink);
  text-align: left;
}

.business-index-page .latest-signal-card p,
.business-index-page .latest-signal-card em {
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.55;
}

.business-index-page .latest-signal-card em { color: var(--color-accent); font-weight: 650; }
.business-index-page .country-section-note {
  margin: -2px 0 10px;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.55;
}

.business-index-page .country-indicator-section .profile-list { gap: 8px; }
.business-index-page .country-indicator-section .profile-row { padding: 10px 11px; }
.business-index-page .country-indicator-section .profile-row > div { min-width: 0; }
.business-index-page .country-indicator-section .profile-row strong,
.business-index-page .country-indicator-section .profile-row small { display: block; }
.business-index-page .country-indicator-section .profile-row small {
  margin: 3px 0 7px;
  color: var(--color-muted);
  font-size: 10px;
}
.business-index-page .country-indicator-section .profile-row > span {
  color: var(--color-ink);
  font-size: 17px;
  font-weight: 720;
}
.business-index-page .country-indicator-section .profile-row > span em {
  color: var(--color-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
}

.business-index-page .score-method-summary {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 11px;
  border: 1px dashed #c9d3dd;
  border-radius: 7px;
  background: #f8fafc;
  color: var(--color-ink);
  text-align: left;
}
.business-index-page .score-method-summary span,
.business-index-page .score-method-summary em { color: var(--color-muted); font-size: 10px; font-style: normal; }
.business-index-page .score-method-summary strong { font-size: 11px; line-height: 1.45; }
.business-index-page .score-method-summary em { color: var(--color-accent); font-weight: 650; }

.business-index-page .country-event-preview { display: grid; gap: 7px; }
.business-index-page .country-event-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  width: 100%;
  padding: 9px 0;
  border: 0;
  border-top: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-ink);
  text-align: left;
}
.business-index-page .country-event-row:first-child { border-top: 0; }
.business-index-page .country-event-row strong,
.business-index-page .country-event-row small { display: block; }
.business-index-page .country-event-row strong { font-size: 12px; line-height: 1.4; }
.business-index-page .country-event-row small {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 10px;
  line-height: 1.45;
}
.business-index-page .country-event-row > em { color: var(--color-muted); font-size: 9px; font-style: normal; white-space: nowrap; }
.business-index-page .event-score-boundary {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f3f6f8;
  color: var(--color-muted);
  font-size: 10px;
  line-height: 1.5;
}
.business-index-page .country-panel-boundary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  color: var(--color-muted);
  font-size: 10px;
}

.business-index-page .country-event-collection { display: grid; gap: 10px; }
.business-index-page .country-event-card {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
  text-align: left;
}
.business-index-page .country-event-card__meta,
.business-index-page .country-event-card p,
.business-index-page .country-event-card em {
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.55;
}
.business-index-page .country-event-card em { color: var(--color-accent); font-weight: 650; }

.business-index-page .market-discovery { overflow: hidden; }
.business-index-page .watchlist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}
.business-index-page .market-card-group { padding: 18px; border-top: 1px solid var(--color-border); }
.business-index-page .market-card-group:first-child { border-top: 0; }
.business-index-page .market-card-group--change { background: #fbfcfd; }
.business-index-page .market-card-group__head {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 13px;
}
.business-index-page .market-card-group__head span {
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.business-index-page .market-card-group__head h3 { margin: 4px 0 0; font-size: 17px; }
.business-index-page .market-card-group__head p {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.5;
}
.business-index-page .market-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.business-index-page .market-discovery-card {
  display: grid;
  gap: 9px;
  min-height: 180px;
  padding: 13px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
  text-align: left;
}
.business-index-page .market-discovery-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.business-index-page .market-discovery-card__top span,
.business-index-page .market-discovery-card__top strong { display: block; }
.business-index-page .market-discovery-card__top span { color: var(--color-muted); font-size: 10px; }
.business-index-page .market-discovery-card__top strong { margin-top: 2px; font-size: 16px; }
.business-index-page .market-discovery-card__top b { font-size: 23px; }
.business-index-page .market-discovery-card__top b small { color: var(--color-muted); font-size: 9px; }
.business-index-page .market-discovery-card p,
.business-index-page .market-discovery-card > em {
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
}
.business-index-page .market-discovery-card p span { display: block; margin-bottom: 3px; color: var(--color-ink); font-weight: 680; }
.business-index-page .market-discovery-card > em { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--color-border); }

.business-index-page .index-methodology { overflow: hidden; }
.business-index-page .methodology-intro { padding: 18px 18px 8px; }
.business-index-page .methodology-intro h3 { margin: 0 0 6px; font-size: 20px; }
.business-index-page .methodology-intro p { max-width: 920px; margin: 0; color: var(--color-muted); line-height: 1.65; }
.business-index-page .index-disclosure {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 10px 18px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.business-index-page .methodology-card {
  min-height: 190px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fbfcfd;
}
.business-index-page .methodology-card > span { color: var(--color-accent); font-size: 10px; font-weight: 720; letter-spacing: .08em; }
.business-index-page .methodology-card h3 { margin: 8px 0; font-size: 15px; }
.business-index-page .methodology-card p,
.business-index-page .methodology-card small,
.business-index-page .methodology-card li {
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.6;
}
.business-index-page .methodology-card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.business-index-page .methodology-card li a,
.business-index-page .methodology-card li small { display: block; }
.business-index-page .methodology-card li a { color: var(--color-accent); font-weight: 680; }
.business-index-page .methodology-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
}
.business-index-page .methodology-footer p { margin: 4px 0 0; color: var(--color-muted); font-size: 11px; }

@media (max-width: 1120px) {
  .business-index-page .business-index-workspace { grid-template-columns: 1fr; }
  .business-index-page .market-panel { max-height: none; }
  .business-index-page .market-panel .country-profile { max-height: 760px; }
  .business-index-page .market-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-index-page .index-disclosure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .business-index-page .business-index-main { padding: 10px 12px 32px; }
  .business-index-page .map-filter-row { grid-template-columns: 1fr 1fr; }
  .business-index-page .map-lens-control { grid-column: 1 / -1; }
  .business-index-page .business-index-workspace .geo-map { min-height: 430px; margin-right: 10px; margin-left: 10px; }
  .business-index-page .coverage-summary em { width: 100%; margin-left: 0; }
  .business-index-page .market-card-group__head { grid-template-columns: 1fr; gap: 6px; }
  .business-index-page .market-card-grid,
  .business-index-page .index-disclosure { grid-template-columns: 1fr; }
  .business-index-page .methodology-footer { display: grid; }
  .business-index-page .country-event-row { grid-template-columns: auto minmax(0, 1fr); }
  .business-index-page .country-event-row > em { grid-column: 2; }
}
