:root {
  --xz-bg: #06172a;
  --xz-nav: #04111f;
  --xz-panel: #0a253b;
  --xz-panel-strong: #0c2b44;
  --xz-field: #031322;
  --xz-line: #17405d;
  --xz-line-soft: rgba(77, 132, 171, .28);
  --xz-text: #edf3f7;
  --xz-muted: #7f9ab0;
  --xz-muted-2: #5f7d94;
  --xz-gold: #efc75f;
  --xz-gold-dark: #bd9234;
  --xz-green: #28bd91;
  --xz-blue: #4395ea;
  --xz-orange: #ef633e;
  --xz-purple: #9b78d7;
  --xz-radius: 12px;
  --xz-shadow: 0 18px 48px rgba(0, 0, 0, .16);
  --xz-font: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --xz-serif: "Noto Serif SC", serif;
  --xz-num: "Archivo", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; background: var(--xz-bg); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--xz-text);
  background: var(--xz-bg);
  font-family: var(--xz-font);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#global-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07131f;
  transition: opacity .5s ease, visibility .5s ease;
}
#global-loading-overlay.hidden { opacity: 0; visibility: hidden; }
.gl-container { position: relative; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; }
.gl-canvas { z-index: 2; border-radius: 50%; box-shadow: inset -8px -8px 16px rgba(0, 0, 0, .4), inset 8px 8px 16px rgba(255, 255, 255, .05); }
.gl-whirl { position: absolute; inset: -8px; z-index: 1; border: 2px solid transparent; border-top-color: var(--xz-gold); border-right-color: rgba(224, 180, 88, .3); border-radius: 50%; animation: gl-spin 1.5s linear infinite; }
.gl-whirl::before { content: ''; position: absolute; inset: 4px; border: 2px solid transparent; border-bottom-color: rgba(243, 239, 228, .6); border-left-color: rgba(243, 239, 228, .1); border-radius: 50%; animation: gl-spin-reverse 2s linear infinite; }
@keyframes gl-spin { to { transform: rotate(360deg); } }
@keyframes gl-spin-reverse { from { transform: rotate(360deg); } }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.g-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(28px, 3.2vw, 62px);
  border-bottom: 1px solid var(--xz-line);
  background: rgba(4, 17, 31, .96);
  backdrop-filter: blur(16px);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--xz-text);
  font-family: var(--xz-serif);
  font-size: 21px;
  font-weight: 900;
  text-decoration: none;
}
.nav-brand svg { width: 25px; height: 25px; color: var(--xz-gold); stroke-width: 1.7; }
.nav-links { display: flex; align-items: center; gap: clamp(2px, .7vw, 14px); }
.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px clamp(10px, 1vw, 20px);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--xz-muted);
  font-size: clamp(12px, .78vw, 15px);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.nav-links a:hover { color: var(--xz-text); background: rgba(237, 243, 247, .06); }
.nav-links a:active { transform: translateY(1px); }
.nav-links a.active { color: #07182a; background: var(--xz-gold); font-weight: 800; }

.mobile-appbar, .mobile-bottom-nav, .mobile-menu, .mobile-menu-scrim { display: none; }

.intel-page {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 42px clamp(28px, 2.5vw, 48px) 86px;
}

.intel-hero {
  min-height: 126px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--xz-line);
}
.hero-copy { min-width: 0; }
.hero-title-row { display: flex; align-items: center; gap: 28px; min-width: 0; }
.hero-icon { width: 38px; height: 38px; flex: 0 0 auto; color: var(--xz-gold); stroke-width: 1.8; }
.hero-title-row h1 {
  margin: 0;
  color: var(--xz-gold);
  font-family: var(--xz-serif);
  font-size: clamp(34px, 2.25vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}
.hero-divider { width: 1px; height: 38px; flex: 0 0 auto; background: var(--xz-line); }
.hero-mode {
  margin: 0;
  font-family: var(--xz-serif);
  font-size: clamp(31px, 2.05vw, 42px);
  font-weight: 900;
  white-space: nowrap;
}
.hero-subtitle { margin: 14px 0 0; color: var(--xz-muted); font-size: 16px; }
.updated-box {
  min-width: 360px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  align-self: center;
  padding: 10px 18px;
  border: 1px solid var(--xz-line);
  border-radius: 10px;
  color: var(--xz-muted);
  background: rgba(10, 37, 59, .56);
  font-size: 13px;
}
.updated-box svg { display: none; width: 17px; height: 17px; color: var(--xz-gold); }
.updated-box time { color: var(--xz-text); font-family: var(--xz-num); font-size: 14px; letter-spacing: .03em; }
.updated-box b { font-weight: 500; }

.filter-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto auto auto minmax(240px, 1fr) auto;
  gap: 10px;
  margin-top: 28px;
  padding: 10px;
  border: 1px solid var(--xz-line);
  border-radius: var(--xz-radius);
  background: rgba(10, 37, 59, .44);
}
.filter-fields { display: contents; }
.filter-toggle { display: none; }
.filter-control {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--xz-line);
  border-radius: 9px;
  color: var(--xz-text);
  background: var(--xz-panel-strong);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.filter-control:hover { border-color: rgba(239, 199, 95, .42); }
.filter-control:focus-within { border-color: var(--xz-gold); box-shadow: 0 0 0 3px rgba(239, 199, 95, .12); }
.filter-control > svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--xz-gold); stroke-width: 2; }
.control-label { flex: 0 0 auto; color: var(--xz-muted-2); font-size: 11px; white-space: nowrap; }
.filter-control select, .filter-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--xz-text);
  background: transparent;
  appearance: none;
}
.select-control select { padding-right: 17px; background-image: none; }
.search-control { background: var(--xz-field); }
.search-control input::placeholder { color: var(--xz-muted-2); opacity: 1; }
.search-control kbd {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid var(--xz-line);
  border-radius: 5px;
  color: var(--xz-muted-2);
  background: var(--xz-panel);
  font: 11px var(--xz-num);
}
.date-control input { width: 128px; font-family: var(--xz-num); }
.clear-filters {
  position: absolute;
  right: 16px;
  bottom: -32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  color: var(--xz-gold);
  background: transparent;
  font-size: 12px;
}
.clear-filters svg { width: 14px; height: 14px; }

.category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}
.category-tabs { min-width: 0; display: flex; gap: 8px; }
.category-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px clamp(11px, .9vw, 18px);
  border: 1px solid var(--xz-line);
  border-radius: 9px;
  color: var(--xz-muted);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.category-tab svg { width: 17px; height: 17px; }
.category-tab:hover { color: var(--xz-text); border-color: rgba(239, 199, 95, .38); background: rgba(239, 199, 95, .05); }
.category-tab:active { transform: translateY(1px); }
.category-tab.active { color: var(--xz-gold); border-color: var(--xz-gold); background: rgba(189, 146, 52, .18); font-weight: 800; }

.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.primary-button, .secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, opacity .18s ease;
}
.primary-button { border: 1px solid var(--xz-gold); color: #07182a; background: var(--xz-gold); }
.primary-button:hover { background: #f7d675; }
.secondary-button { border: 1px solid var(--xz-gold); color: var(--xz-gold); background: transparent; }
.secondary-button:hover { color: #07182a; background: var(--xz-gold); }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: .7; cursor: wait; }
.primary-button svg, .secondary-button svg { width: 17px; height: 17px; }
.mobile-actions { display: none; }

.dashboard-content {
  display: grid;
  grid-template-columns: minmax(0, 2.48fr) minmax(360px, 1fr);
  grid-template-areas:
    "stats scatter"
    "intelligence scatter"
    "intelligence pipeline"
    "intelligence region";
  gap: 20px 24px;
  align-items: start;
  margin-top: 24px;
}
.panel { border: 1px solid var(--xz-line); border-radius: var(--xz-radius); background: var(--xz-panel); box-shadow: var(--xz-shadow); }
.stats-card { grid-area: stats; min-height: 104px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.stat-item { min-height: 78px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 12px; text-align: center; }
.stat-item span { color: var(--xz-muted); font-size: 13px; }
.stat-item strong { color: var(--xz-gold); font: 700 30px/1 var(--xz-num); }
.stat-item[data-tone="positive"] strong { color: var(--xz-green); }
.stat-item[data-tone="risk"] strong { color: var(--xz-orange); }
.stat-item[data-tone="info"] strong { color: var(--xz-blue); }

.intelligence-panel { grid-area: intelligence; overflow: hidden; }
.panel-heading {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--xz-line);
}
.heading-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.heading-title > svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--xz-gold); }
.heading-title h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.heading-title span { color: var(--xz-muted); font-size: 13px; white-space: nowrap; }
.sort-tabs {
  min-width: 320px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border: 1px solid var(--xz-line);
  border-radius: 9px;
  background: var(--xz-field);
}
.sort-tabs button {
  min-height: 38px;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  color: var(--xz-muted);
  background: transparent;
  white-space: nowrap;
}
.sort-tabs button:hover { color: var(--xz-text); }
.sort-tabs button.active { color: #07182a; background: var(--xz-gold); font-weight: 800; }

.intel-item {
  width: 100%;
  min-height: 108px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 72px 72px 128px 24px;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--xz-line);
  color: inherit;
  background: transparent;
  text-align: left;
  transition: background-color .18s ease;
}
.intel-item:hover { background: rgba(69, 138, 184, .055); }
.intel-item:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--xz-gold); outline-offset: -3px; }
.category-badge, .timeline-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 7px;
  color: var(--xz-gold);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
[data-category="clinical"] { --category-color: var(--xz-green); }
[data-category="regulatory"] { --category-color: var(--xz-blue); }
[data-category="deal"] { --category-color: var(--xz-orange); }
[data-category="policy"] { --category-color: var(--xz-purple); }
[data-category="approval"] { --category-color: var(--xz-gold); }
[data-category="pipeline"] { --category-color: #48c9bb; }
[data-category="paper"] { --category-color: var(--xz-purple); }
.intel-item .category-badge { color: var(--category-color); }
.intel-main { min-width: 0; }
.intel-main h3 { margin: 0; color: var(--xz-text); font-size: 17px; line-height: 1.45; font-weight: 800; }
.title-original {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--xz-muted-2);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.intel-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 16px; margin-top: 10px; color: var(--xz-muted); font-size: 12px; }
.intel-meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.intel-meta svg { width: 14px; height: 14px; color: var(--xz-muted-2); }
.score-block { min-width: 0; }
.score-block span { display: block; color: var(--xz-muted-2); font-size: 11px; }
.score-block strong { display: block; margin: 4px 0 7px; color: var(--xz-gold); font: 700 22px/1 var(--xz-num); }
.score-block.impact strong { color: var(--xz-green); }
.score-track { height: 3px; overflow: hidden; border-radius: 99px; background: var(--xz-line); }
.score-track i { display: block; height: 100%; border-radius: inherit; background: var(--xz-gold); }
.score-block.impact .score-track i { background: var(--xz-green); }
.intel-item[data-category="regulatory"] .score-block.impact strong { color: var(--xz-blue); }
.intel-item[data-category="regulatory"] .score-block.impact .score-track i { background: var(--xz-blue); }
.intel-item[data-category="deal"] .score-block.impact strong { color: var(--xz-orange); }
.intel-item[data-category="deal"] .score-block.impact .score-track i { background: var(--xz-orange); }
.intel-item[data-category="policy"] .score-block.impact strong { color: var(--xz-gold); }
.intel-item[data-category="policy"] .score-block.impact .score-track i { background: var(--xz-gold); }
.verification { display: inline-flex; align-items: center; gap: 6px; justify-self: end; color: var(--xz-muted); font-size: 12px; white-space: nowrap; }
.verification svg { width: 15px; height: 15px; }
.verification.verified { color: var(--xz-green); }
.verification.pending { color: var(--xz-gold); }
.intel-arrow { width: 19px; height: 19px; color: var(--xz-muted-2); }
.show-all-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: var(--xz-gold);
  background: transparent;
  font-size: 14px;
}
.show-all-button:hover { background: rgba(239, 199, 95, .05); }
.show-all-button svg { width: 16px; height: 16px; }
.empty-state { min-height: 334px; display: grid; place-items: center; align-content: center; gap: 12px; padding: 38px; color: var(--xz-muted); text-align: center; }
.empty-state svg { width: 34px; height: 34px; color: var(--xz-muted-2); }
.empty-state strong { color: var(--xz-text); font-size: 17px; }
.empty-state p { max-width: 360px; margin: 0; font-size: 13px; }
.empty-state > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.empty-state button { min-height: 36px; padding: 0 8px; border: 0; color: var(--xz-gold); background: transparent; font-weight: 700; }

.side-card { padding: 22px; }
.scatter-card { grid-area: scatter; min-height: 382px; }
.pipeline-card { grid-area: pipeline; }
.region-card { grid-area: region; }
.side-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.side-heading > svg { width: 18px; height: 18px; color: var(--xz-gold); }
.side-heading h2 { margin: 0; font-size: 18px; }
.scatter-note { margin-left: auto; color: var(--xz-muted-2); font-size: 11px; white-space: nowrap; }
.side-heading .text-button { margin-left: auto; }
.text-button { display: inline-flex; align-items: center; gap: 3px; border: 0; color: var(--xz-muted); background: transparent; font-size: 12px; }
.text-button:hover { color: var(--xz-gold); }
.text-button svg { width: 14px; height: 14px; }
.chart-frame { position: relative; width: 100%; }
.scatter-frame { height: 310px; }
.chart-frame canvas, .donut-wrap canvas { display: block; width: 100%; height: 100%; }
.scatter-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; margin: 10px 0 0; padding: 0; list-style: none; }
.scatter-legend[hidden] { display: none; }
.scatter-legend li { min-width: 0; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 6px; color: var(--xz-muted); font-size: 10px; }
.scatter-legend .scatter-index { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #04121f; font: 700 9px/1 var(--xz-num); }
.scatter-legend .scatter-key-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-tooltip {
  position: absolute;
  z-index: 3;
  max-width: 190px;
  padding: 7px 9px;
  border: 1px solid var(--xz-line);
  border-radius: 7px;
  color: var(--xz-text);
  background: #031322;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .34);
  font-size: 11px;
  pointer-events: none;
  transform: translate(10px, -50%);
}
.pipeline-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.pipeline-item { display: grid; grid-template-columns: 18px minmax(90px, .9fr) minmax(100px, 1.65fr) 28px; align-items: center; gap: 8px; color: var(--xz-muted); font-size: 12px; }
.pipeline-item .rank { color: var(--xz-gold); font-family: var(--xz-num); }
.pipeline-item .name { overflow: hidden; color: var(--xz-text); text-overflow: ellipsis; white-space: nowrap; }
.pipeline-track { height: 7px; overflow: hidden; border-radius: 99px; background: var(--xz-field); }
.pipeline-track i { display: block; height: 100%; border-radius: inherit; background: var(--xz-green); }
.pipeline-item[data-tone="blue"] .pipeline-track i { background: var(--xz-blue); }
.pipeline-item[data-tone="purple"] .pipeline-track i { background: var(--xz-purple); }
.pipeline-item[data-tone="gold"] .pipeline-track i { background: var(--xz-gold); }
.pipeline-item .score { text-align: right; font-family: var(--xz-num); }
.region-layout { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 20px; }
.donut-wrap { width: 132px; height: 132px; }
.region-legend { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.region-legend li { display: grid; grid-template-columns: 10px minmax(45px, 1fr) auto auto; align-items: center; gap: 8px; color: var(--xz-muted); font-size: 12px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--legend-color); }
.region-legend strong { color: var(--xz-text); font-family: var(--xz-num); font-weight: 500; }
.region-legend em { color: var(--xz-muted-2); font-family: var(--xz-num); font-style: normal; }

.timeline-panel { margin-top: 24px; padding: 24px; overflow: hidden; }
.timeline-heading { margin-bottom: 28px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); margin: 0; padding: 0 12px; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 42px; left: 7%; right: 7%; height: 2px; background: var(--xz-line); }
.timeline-item { position: relative; min-width: 0; padding: 0 10px; text-align: center; }
.timeline-item time { display: block; margin-bottom: 21px; color: var(--xz-text); font-size: 13px; font-weight: 800; }
.timeline-item.future time { color: var(--xz-muted); }
.timeline-dot { position: absolute; top: 37px; left: calc(50% - 5px); z-index: 1; width: 10px; height: 10px; border-radius: 50%; background: var(--timeline-color, var(--xz-gold)); box-shadow: 0 0 0 4px var(--xz-panel); }
.timeline-badge { margin: 16px auto 10px; color: var(--timeline-color, var(--xz-gold)); }
.timeline-item p { margin: 0; color: var(--xz-muted); font-size: 12px; line-height: 1.7; }
.timeline-item p span { display: block; }
.timeline-item.future { opacity: .78; }
.timeline-item[data-tone="clinical"] { --timeline-color: var(--xz-green); }
.timeline-item[data-tone="regulatory"] { --timeline-color: var(--xz-blue); }
.timeline-item[data-tone="approval"] { --timeline-color: var(--xz-gold); }
.timeline-item[data-tone="deal"] { --timeline-color: var(--xz-orange); }
.timeline-item[data-tone="policy"] { --timeline-color: var(--xz-purple); }

.methodology-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 17px 20px;
  border: 1px solid var(--xz-line);
  border-radius: var(--xz-radius);
  color: var(--xz-muted);
  background: var(--xz-panel-strong);
  font-size: 13px;
}
.methodology-notice svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--xz-gold); }
.methodology-notice p { margin: 0; }
.methodology-notice strong { color: var(--xz-muted); }

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--xz-muted);
  background: transparent;
}
.icon-button:hover { color: var(--xz-text); background: rgba(237, 243, 247, .06); }
.icon-button svg { width: 22px; height: 22px; }

.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 500; display: grid; gap: 10px; pointer-events: none; }
.toast {
  max-width: min(390px, calc(100vw - 32px));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid rgba(40, 189, 145, .5);
  border-radius: 10px;
  color: var(--xz-text);
  background: #0c2b44;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .4);
  font-size: 13px;
}
.toast svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--xz-green); }

.intel-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: min(88dvh, 860px);
  padding: 0;
  border: 1px solid var(--xz-line);
  border-radius: 14px;
  color: var(--xz-text);
  background: var(--xz-panel);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .58);
}
.intel-dialog::backdrop { background: rgba(1, 7, 13, .72); backdrop-filter: blur(5px); }
.detail-dialog { width: min(580px, 100vw); height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border-radius: 14px 0 0 14px; }
.dialog-shell { height: 100%; display: flex; flex-direction: column; margin: 0; }
.dialog-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--xz-line); }
.dialog-header h2 { margin: 3px 0 0; font-size: 20px; line-height: 1.35; }
.dialog-eyebrow { color: var(--xz-gold); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.dialog-close { flex: 0 0 auto; }
.detail-content, .report-summary, .subscription-fields { overflow-y: auto; padding: 22px; }
.detail-summary { padding: 16px; border-left: 3px solid var(--xz-gold); border-radius: 0 8px 8px 0; background: var(--xz-field); }
.detail-summary p { margin: 0; color: var(--xz-text); font-size: 14px; }
.translation-original { margin: 0 0 16px; padding: 14px; border: 1px solid var(--xz-line-soft); border-radius: 8px; background: rgba(3, 19, 34, .4); }
.translation-original span { color: var(--xz-gold); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.translation-original p { margin: 6px 0; color: var(--xz-text); font-size: 13px; line-height: 1.5; }
.translation-original small { color: var(--xz-muted-2); font-size: 10px; line-height: 1.45; }
.detail-section { margin-top: 24px; }
.detail-section h3 { margin: 0 0 10px; color: var(--xz-gold); font-size: 14px; }
.detail-section p { margin: 0; color: var(--xz-muted); font-size: 13px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.detail-grid div { padding: 12px; border: 1px solid var(--xz-line-soft); border-radius: 8px; background: rgba(3, 19, 34, .4); }
.detail-grid span { display: block; color: var(--xz-muted-2); font-size: 11px; }
.detail-grid strong { display: block; margin-top: 4px; color: var(--xz-text); font-size: 13px; }
.source-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.source-list a { display: flex; align-items: center; gap: 8px; color: var(--xz-blue); font-size: 13px; text-decoration: none; }
.source-list a:hover { text-decoration: underline; }
.source-list svg { width: 14px; height: 14px; }
.medagent-button { width: 100%; margin-top: 18px; text-decoration: none; }
.medagent-unavailable { margin: 18px 0 0; color: var(--xz-muted-2); font-size: 12px; text-align: center; }
.report-success { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(40, 189, 145, .35); border-radius: 9px; background: rgba(40, 189, 145, .07); }
.report-success > svg { width: 25px; height: 25px; color: var(--xz-green); }
.report-success strong, .report-success span { display: block; }
.report-success span { color: var(--xz-muted); font-size: 12px; }
#reportPreview { margin-top: 18px; }
.report-preview-item { padding: 13px 0; border-bottom: 1px solid var(--xz-line-soft); }
.report-preview-item strong { display: block; font-size: 14px; }
.report-preview-item span { color: var(--xz-muted); font-size: 12px; }
.report-original { margin: 4px 0 5px; color: var(--xz-muted-2); font-size: 10px; line-height: 1.4; }
.dialog-note { margin: 18px 0 0; color: var(--xz-muted-2); font-size: 11px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: auto; padding: 16px 22px; border-top: 1px solid var(--xz-line); }
.subscription-fields { display: grid; gap: 20px; }
.subscription-fields fieldset { margin: 0; padding: 0; border: 0; }
.subscription-fields legend, .subscription-fields label > span { display: block; margin-bottom: 9px; color: var(--xz-text); font-size: 13px; font-weight: 700; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.checkbox-grid label { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--xz-line); border-radius: 8px; color: var(--xz-muted); font-size: 12px; }
.checkbox-grid input { accent-color: var(--xz-gold); }
.subscription-fields > label input, .subscription-fields > label select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--xz-line); border-radius: 8px; outline: 0; color: var(--xz-text); background: var(--xz-field); }
.subscription-fields > label input:focus, .subscription-fields > label select:focus { border-color: var(--xz-gold); box-shadow: 0 0 0 3px rgba(239, 199, 95, .1); }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--xz-gold); outline-offset: 3px; }

@media (max-width: 1500px) {
  .intel-page { padding-left: 28px; padding-right: 28px; }
  .nav-links { gap: 1px; }
  .nav-links a { padding-left: 10px; padding-right: 10px; }
  .category-tab { padding-left: 10px; padding-right: 10px; font-size: 13px; }
  .category-tab svg { display: none; }
  .intel-item { grid-template-columns: 88px minmax(0, 1fr) 60px 60px 112px 20px; gap: 13px; }
}

@media (max-width: 1180px) {
  .nav-brand span { font-size: 18px; }
  .nav-links a { font-size: 12px; padding: 7px 8px; }
  .hero-title-row { gap: 18px; }
  .updated-box { min-width: 305px; }
  .filter-panel { grid-template-columns: auto auto auto minmax(180px, 1fr); }
  .date-control { grid-column: 1 / 2; }
  .category-toolbar { align-items: flex-start; }
  .category-tabs { flex-wrap: wrap; }
  .dashboard-content { grid-template-columns: minmax(0, 1.75fr) minmax(330px, 1fr); }
  .intel-item { grid-template-columns: 84px minmax(0, 1fr) 55px 55px 100px 18px; gap: 10px; padding: 17px 15px; }
  .intel-meta { gap: 5px 10px; }
}

@media (max-width: 900px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .g-nav { display: none; }
  .mobile-appbar {
    position: sticky;
    top: 0;
    z-index: 180;
    min-height: 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    border-bottom: 1px solid var(--xz-line);
    background: rgba(4, 17, 31, .98);
    backdrop-filter: blur(16px);
  }
  .mobile-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--xz-text); font-size: 18px; font-weight: 800; text-decoration: none; }
  .mobile-brand svg { width: 20px; height: 20px; color: var(--xz-gold); }
  .mobile-menu-scrim { position: fixed; inset: 0; z-index: 210; display: block; background: rgba(1, 7, 13, .7); backdrop-filter: blur(4px); }
  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 220;
    width: min(320px, 86vw);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-left: 1px solid var(--xz-line);
    background: #06192b;
    box-shadow: -24px 0 60px rgba(0, 0, 0, .45);
    transform: translateX(102%);
    transition: transform .22s ease;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu-head { min-height: 52px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 5px 10px 12px; border-bottom: 1px solid var(--xz-line); }
  .mobile-menu a { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--xz-muted); text-decoration: none; }
  .mobile-menu a svg { width: 18px; height: 18px; }
  .mobile-menu a[aria-current="page"] { color: #07182a; background: var(--xz-gold); font-weight: 800; }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 190;
    min-height: calc(66px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
    padding: 8px 6px env(safe-area-inset-bottom);
    border-top: 1px solid var(--xz-line);
    background: rgba(4, 17, 31, .98);
    backdrop-filter: blur(16px);
  }
  .mobile-bottom-nav a, .mobile-bottom-nav button { min-width: 0; min-height: 49px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 2px; border: 0; color: var(--xz-muted); background: transparent; font-size: 10px; text-decoration: none; }
  .mobile-bottom-nav svg { width: 21px; height: 21px; }
  .mobile-bottom-nav .active { color: var(--xz-gold); font-weight: 800; }

  .intel-page { max-width: 680px; padding: 30px 16px 32px; }
  .intel-hero { min-height: 0; display: block; padding-bottom: 18px; }
  .hero-title-row { align-items: flex-start; column-gap: 12px; row-gap: 4px; flex-wrap: wrap; }
  .hero-icon { width: 31px; height: 31px; margin-top: 1px; }
  .hero-title-row h1 { flex: 1 1 calc(100% - 48px); color: var(--xz-text); font-family: var(--xz-font); font-size: clamp(24px, 6.5vw, 29px); letter-spacing: -.035em; white-space: nowrap; }
  .hero-divider { display: none; }
  .hero-mode { flex-basis: 100%; margin-top: 4px; color: var(--xz-gold); font-size: 24px; }
  .hero-subtitle { margin-top: 8px; font-size: 14px; line-height: 1.65; }
  .updated-box { width: fit-content; min-width: 0; min-height: 40px; justify-content: flex-start; margin-top: 10px; padding: 7px 12px; font-size: 12px; }
  .updated-box svg { display: block; }
  .updated-box b { display: none; }

  .filter-panel { display: block; margin-top: 14px; padding: 8px; }
  .filter-toggle {
    width: 100%;
    min-height: 46px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 0;
    color: var(--xz-text);
    background: transparent;
    text-align: left;
  }
  .filter-toggle > svg { width: 18px; height: 18px; color: var(--xz-gold); }
  .filter-toggle span { min-width: 0; display: grid; gap: 1px; }
  .filter-toggle strong { font-size: 14px; }
  .filter-toggle small { overflow: hidden; color: var(--xz-muted); font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
  .filter-toggle .filter-toggle-chevron { color: var(--xz-muted); transition: transform .18s ease; }
  .filter-panel.expanded .filter-toggle-chevron { transform: rotate(180deg); }
  .filter-fields { display: none; }
  .filter-panel.expanded .filter-fields { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; border-top: 1px solid var(--xz-line-soft); }
  .search-control { order: -1; flex: 1 0 100%; min-height: 44px; }
  .search-control kbd { display: none; }
  .select-control, .date-control { width: auto; min-height: 38px; flex: 1 1 calc(50% - 4px); padding: 0 11px; }
  .date-control:not([hidden]) { flex-basis: 100%; }
  .select-control select, .date-control input { font-size: 13px; }
  .date-control input { width: 100%; }
  .clear-filters { position: static; min-height: 36px; flex: 1 0 100%; justify-content: flex-end; padding: 0 3px; }
  .category-toolbar { display: block; margin-top: 14px; }
  .category-tabs { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 6px; }
  .category-tab { min-width: 0; min-height: 38px; padding: 6px 7px; font-size: 12px; }
  .category-tab svg { display: block; width: 15px; height: 15px; }
  .desktop-actions { display: none; }

  .dashboard-content { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
  .stats-card { order: 1; width: 100%; min-height: 72px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-item { min-height: 70px; gap: 2px; padding: 8px 3px; }
  .stat-item span { font-size: 10px; white-space: nowrap; }
  .stat-item strong { font-size: 21px; }
  .intelligence-panel { order: 2; width: 100%; }
  .pipeline-card { order: 3; width: 100%; }
  .region-card { order: 4; width: 100%; }
  .scatter-card { order: 5; width: 100%; }
  .panel-heading { min-height: 0; align-items: stretch; flex-direction: column; padding: 16px 14px 12px; }
  .heading-title h2 { font-size: 19px; }
  .sort-tabs { width: 100%; min-width: 0; }
  .sort-tabs button { min-width: 0; padding: 7px 4px; font-size: 12px; }
  .intel-item { min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 14px 14px 12px; }
  .intel-item .category-badge { grid-column: 1 / 2; grid-row: 1; width: fit-content; }
  .intel-item .verification { grid-column: 2 / 3; grid-row: 1; align-self: center; }
  .intel-main { grid-column: 1 / -1; grid-row: 2; }
  .intel-main h3 { margin-top: 12px; font-size: 16px; line-height: 1.5; }
  .title-original { font-size: 10.5px; -webkit-line-clamp: 2; }
  .intel-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-top: 12px; }
  .intel-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .score-block { grid-row: 3; margin-top: 12px; }
  .score-block.heat { grid-column: 1 / 2; }
  .score-block.impact { grid-column: 2 / 3; }
  .score-block span { display: inline; }
  .score-block strong { display: inline; float: right; margin: 0; font-size: 20px; }
  .score-track { clear: both; height: 4px; margin-top: 8px; }
  .intel-arrow { grid-column: 2; grid-row: 3; display: none; }
  .show-all-button { min-height: 52px; }
  .empty-state { min-height: 300px; }
  .side-card { padding: 18px 16px; }
  .scatter-card { min-height: 360px; }
  .scatter-frame { height: 280px; max-width: 330px; margin: 0 auto; }
  .scatter-legend { max-width: 330px; margin-left: auto; margin-right: auto; }
  .pipeline-list { gap: 14px; }
  .pipeline-item { grid-template-columns: 18px minmax(104px, 1fr) minmax(90px, 1.6fr) 30px; }
  .region-layout { grid-template-columns: 132px minmax(0, 1fr); gap: 15px; }
  .timeline-panel { margin-top: 16px; padding: 18px 16px; }
  .timeline-heading { margin-bottom: 16px; }
  .timeline-heading .heading-title { flex-wrap: wrap; }
  .timeline-heading .heading-title span { flex-basis: 100%; margin-left: 27px; }
  .timeline { display: block; padding: 0; }
  .timeline::before { top: 10px; bottom: 20px; left: 5px; right: auto; width: 2px; height: auto; }
  .timeline-item { min-height: 70px; padding: 0 0 12px 28px; text-align: left; }
  .timeline-item:last-child { min-height: 0; }
  .timeline-item time { display: inline-block; margin: 0 8px 7px 0; font-size: 14px; }
  .timeline-dot { top: 6px; left: 0; }
  .timeline-badge { display: inline-flex; min-height: 29px; margin: 0 0 7px; }
  .timeline-item p { font-size: 12px; }
  .timeline-item p span { display: inline; }
  .timeline-item p span + span::before { content: " · "; }
  .methodology-notice { margin-top: 16px; padding: 15px; font-size: 12px; }
  .mobile-actions { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
  .mobile-actions .primary-button, .mobile-actions .secondary-button { min-height: 50px; }
  .toast-region { left: 16px; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }
  .detail-dialog { width: 100%; height: min(88dvh, 760px); max-height: 88dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .intel-dialog:not(.detail-dialog) { width: calc(100vw - 24px); }
}

@media (max-width: 480px) {
  .intel-page { padding-left: 14px; padding-right: 14px; }
  .mobile-appbar { padding-left: 8px; padding-right: 8px; }
  .hero-subtitle { font-size: 13px; }
  .filter-panel { padding: 7px; }
  .category-tab { gap: 5px; font-size: 11.5px; }
  .intel-item { padding-left: 14px; padding-right: 14px; }
  .verification { font-size: 11px; }
  .region-layout { grid-template-columns: 126px minmax(0, 1fr); gap: 12px; }
  .donut-wrap { width: 126px; height: 126px; }
  .region-legend li { grid-template-columns: 8px minmax(38px, 1fr) auto auto; gap: 6px; font-size: 11px; }
  .scatter-frame { width: 100%; height: 260px; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .dialog-header, .detail-content, .report-summary, .subscription-fields { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 360px) {
  .category-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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