:root {
  color-scheme: dark;
  --nx-black: #05070a;
  --nx-ink: #080b10;
  --nx-elevated: #0d1118;
  --nx-panel: #111720;
  --nx-panel-2: #151d28;
  --nx-line: rgba(255, 255, 255, 0.09);
  --nx-line-strong: rgba(255, 255, 255, 0.16);
  --nx-text: #f4f7fa;
  --nx-muted: #8c98a8;
  --nx-soft: #b9c2cc;
  --nx-accent: #cbff4a;
  --nx-cyan: #4bd5ff;
  --nx-teal: #39d1ad;
  --nx-orange: #ffb45f;
  --nx-red: #ff6676;
  --nx-purple: #9d88ff;
  --nx-sidebar: 264px;
  --nx-topbar: 76px;
  --nx-radius: 18px;
  --nx-radius-sm: 12px;
  --nx-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  --nx-font: "Alliance No. 2", "Alliance No2", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--nx-ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 3%, rgba(75, 213, 255, 0.065), transparent 28rem),
    radial-gradient(circle at 13% 92%, rgba(203, 255, 74, 0.035), transparent 24rem),
    var(--nx-ink);
  color: var(--nx-text);
  font-family: var(--nx-font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--nx-accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  translate: 0 -160%;
  border-radius: 8px;
  background: var(--nx-accent);
  color: #071006;
  padding: 10px 14px;
  font-weight: 750;
  text-decoration: none;
  transition: translate 160ms ease;
}

.skip-link:focus {
  translate: 0;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-content: center;
  grid-template-columns: auto auto;
  gap: 18px;
  background: #05070a;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.boot-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.boot-screen strong,
.boot-screen span {
  display: block;
}

.boot-screen strong {
  margin-top: 4px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.19em;
}

.boot-screen span {
  margin-top: 7px;
  color: var(--nx-muted);
  font-size: 11px;
}

.boot-mark {
  position: relative;
  display: grid;
  width: 78px;
  height: 52px;
  place-items: center;
  filter: drop-shadow(0 10px 24px rgba(107, 47, 255, 0.24));
}

.boot-mark img {
  display: block;
  width: 76px;
  height: auto;
}

.boot-mark i {
  position: absolute;
  right: 8px;
  bottom: -7px;
  left: 8px;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: linear-gradient(90deg, #15d9f5, #7e2cff 52%, #f000cf);
  transform-origin: left;
  animation: boot-load 1.25s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes boot-load {
  0%, 100% { scale: 0.18 1; opacity: 0.45; }
  55% { scale: 1 1; opacity: 1; }
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--nx-sidebar) minmax(0, 1fr);
  opacity: 1;
  transition: opacity 260ms ease;
}

.app-shell.is-loading {
  opacity: 0;
}

.app-shell.is-collapsed {
  --nx-sidebar: 88px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  display: flex;
  width: var(--nx-sidebar);
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--nx-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 16rem),
    rgba(5, 7, 10, 0.98);
  transition: width 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms ease;
}

.brand-block {
  display: flex;
  min-height: var(--nx-topbar);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--nx-line);
  padding: 0 20px;
}

.sidebar-mobile-close {
  display: none;
  width: 32px;
  height: 32px;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--nx-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: #8e99a6;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.sidebar-mobile-close:hover {
  border-color: var(--nx-line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sidebar-mobile-close svg {
  width: 16px;
  height: 16px;
}

.brand-symbol {
  display: grid;
  width: 48px;
  height: 34px;
  flex: 0 0 48px;
  place-items: center;
  filter: drop-shadow(0 8px 18px rgba(107, 47, 255, 0.18));
}

.brand-symbol img {
  display: block;
  width: 46px;
  height: auto;
}

.brand-copy {
  min-width: 0;
  white-space: nowrap;
  transition: opacity 160ms ease;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  font-size: 12px;
  letter-spacing: 0.12em;
}

.brand-copy span {
  margin-top: 5px;
  color: var(--nx-muted);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.app-shell.is-collapsed .brand-copy,
.app-shell.is-collapsed .nav-label,
.app-shell.is-collapsed .sidebar-section-label,
.app-shell.is-collapsed .sidebar-status-copy {
  width: 0;
  opacity: 0;
  pointer-events: none;
}

.sidebar-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 22px 14px 16px;
}

.sidebar-section-label {
  margin: 0 10px 10px;
  color: #5e6976;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  white-space: nowrap;
  transition: opacity 160ms ease;
}

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

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #8c98a8;
  cursor: pointer;
  padding: 0 12px;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.035);
  color: #e7edf3;
  transform: translateX(2px);
}

.nav-item.is-active {
  border-color: rgba(203, 255, 74, 0.16);
  background: linear-gradient(90deg, rgba(203, 255, 74, 0.12), rgba(203, 255, 74, 0.035));
  color: #fff;
}

.nav-item.is-active::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -15px;
  width: 3px;
  border-radius: 4px;
  background: var(--nx-accent);
  content: "";
  box-shadow: 0 0 14px rgba(203, 255, 74, 0.45);
}

.nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
}

.nav-icon svg,
.button-icon svg {
  width: 18px;
  height: 18px;
}

.nav-label {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  transition: opacity 160ms ease;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-status {
  display: flex;
  min-height: 68px;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--nx-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
  padding: 12px;
}

.status-led {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--nx-teal);
  box-shadow: 0 0 0 5px rgba(57, 209, 173, 0.1), 0 0 14px rgba(57, 209, 173, 0.4);
}

.sidebar-status-copy {
  min-width: 0;
  transition: opacity 160ms ease;
}

.sidebar-status-copy strong,
.sidebar-status-copy span {
  display: block;
  white-space: nowrap;
}

.sidebar-status-copy strong {
  color: #dfe6ed;
  font-size: 10px;
}

.sidebar-status-copy span {
  margin-top: 5px;
  color: #6f7c8b;
  font-size: 9px;
}

.sidebar-collapse {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  align-self: flex-end;
  margin-top: 10px;
  place-items: center;
  border: 1px solid var(--nx-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
  color: #778391;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.sidebar-collapse:hover {
  border-color: var(--nx-line-strong);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  transform: translateY(-1px);
}

.sidebar-collapse svg {
  width: 15px;
  height: 15px;
}

.app-shell.is-collapsed .sidebar-body {
  padding-inline: 12px;
}

.app-shell.is-collapsed .sidebar-status {
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 10px 0;
}

.app-shell.is-collapsed .status-led {
  margin-top: 0;
}

.app-shell.is-collapsed .sidebar-collapse {
  align-self: center;
}

.workspace-shell {
  grid-column: 2;
  min-width: 0;
  transition: margin 220ms ease;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: var(--nx-topbar);
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--nx-line);
  background: rgba(8, 11, 16, 0.84);
  padding: 0 30px;
  backdrop-filter: blur(18px) saturate(145%);
}

.topbar-leading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.icon-button.mobile-menu {
  display: none;
}

.breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #65717f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb .current {
  overflow: hidden;
  color: #d9e0e7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb-separator {
  color: #3e4751;
}

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

.region-filter {
  position: relative;
  display: flex;
  align-items: center;
}

.region-filter svg {
  position: absolute;
  left: 12px;
  width: 15px;
  pointer-events: none;
  color: #74808e;
}

.region-select {
  width: min(270px, 24vw);
  height: 40px;
  appearance: none;
  border: 1px solid var(--nx-line);
  border-radius: 11px;
  background: #0d1219;
  color: #dfe5eb;
  cursor: pointer;
  padding: 0 34px 0 36px;
  font-size: 11px;
  font-weight: 650;
}

.region-filter::after {
  position: absolute;
  right: 13px;
  width: 6px;
  height: 6px;
  border-right: 1px solid #84909d;
  border-bottom: 1px solid #84909d;
  content: "";
  pointer-events: none;
  rotate: 45deg;
  translate: 0 -2px;
}

.icon-button,
.text-button,
.segmented-button,
.chip,
.table-action {
  border: 1px solid var(--nx-line);
  background: #0d1219;
  color: #aeb8c2;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
}

.icon-button:hover,
.text-button:hover,
.segmented-button:hover,
.chip:hover,
.table-action:hover {
  border-color: var(--nx-line-strong);
  background: #141b24;
  color: #fff;
  transform: translateY(-1px);
}

.text-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border-radius: 11px;
  padding: 0 13px;
  font-size: 10px;
  font-weight: 750;
}

.ai-chat-trigger {
  border-color: rgba(75, 213, 255, 0.2);
  background: linear-gradient(135deg, rgba(75, 213, 255, 0.09), rgba(157, 136, 255, 0.07)), #0d1219;
}

.ai-chat-trigger .button-icon {
  color: var(--nx-cyan);
}

.ai-chat-trigger.is-active {
  border-color: rgba(75, 213, 255, 0.42);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(75, 213, 255, 0.07);
}

.workspace {
  min-width: 0;
  padding: 28px 30px 52px;
}

.view-root {
  width: min(100%, 1740px);
  margin: 0 auto;
}

.view-enter {
  animation: view-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-heading-copy {
  min-width: 0;
}

.section-kicker {
  display: block;
  color: var(--nx-accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 8px 0 8px;
  color: #f8fafc;
  font-size: clamp(24px, 2.35vw, 38px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.page-heading p {
  max-width: 70ch;
  margin: 0;
  color: var(--nx-muted);
  font-size: 12px;
  line-height: 1.65;
}

.page-heading-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.freshness-badge,
.source-badge,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #8e99a6;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.freshness-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nx-teal);
  box-shadow: 0 0 10px rgba(57, 209, 173, 0.55);
}

.executive-summary {
  margin-bottom: 16px;
}

.executive-summary-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.executive-summary-head > div:first-child {
  min-width: 0;
}

.executive-summary-head h1 {
  margin: 8px 0 8px;
  color: #f8fafc;
  font-size: clamp(27px, 2.5vw, 40px);
  font-weight: 650;
  letter-spacing: -0.048em;
  line-height: 1.02;
}

.executive-summary-head p {
  max-width: 78ch;
  margin: 0;
  color: var(--nx-muted);
  font-size: 11px;
  line-height: 1.65;
}

.executive-summary-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 8px;
}

.executive-scope {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(203, 255, 74, 0.15);
  border-radius: 999px;
  background: rgba(203, 255, 74, 0.045);
  color: #cce788;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.executive-brief-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(75, 213, 255, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 86% -20%, rgba(203, 255, 74, 0.075), transparent 28%),
    linear-gradient(110deg, rgba(75, 213, 255, 0.055), rgba(13, 17, 24, 0.2) 44%),
    rgba(13, 17, 24, 0.9);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.executive-brief-card::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 4px;
  border-radius: 0 6px 6px 0;
  background: var(--nx-cyan);
  content: "";
  box-shadow: 0 0 18px rgba(75, 213, 255, 0.34);
}

.executive-brief-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr);
}

.executive-synthesis,
.executive-action {
  min-width: 0;
  padding: 20px 22px;
}

.executive-card-label {
  display: block;
  margin-bottom: 8px;
  color: #71808f;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.executive-synthesis > p {
  max-width: 102ch;
  margin: 0;
  color: #b7c1ca;
  font-size: 11px;
  line-height: 1.68;
}

.executive-synthesis > p strong {
  color: #f3f7fa;
  font-weight: 750;
}

.executive-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.executive-fact {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  background: rgba(2, 5, 8, 0.28);
  padding: 10px 11px;
}

.executive-fact span,
.executive-fact strong,
.executive-fact small {
  display: block;
}

.executive-fact span {
  color: #697684;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.executive-fact strong {
  overflow: hidden;
  margin-top: 5px;
  color: #eef3f6;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-fact small {
  overflow: hidden;
  margin-top: 4px;
  color: #6f7b88;
  font-size: 8px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-action {
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, 0.065);
  background: linear-gradient(135deg, rgba(203, 255, 74, 0.045), rgba(203, 255, 74, 0.008));
}

.executive-action .executive-card-label {
  color: #9bb95a;
}

.executive-action p {
  margin: 0;
  color: #e7ecdf;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.65;
}

.executive-action > small {
  display: block;
  margin-top: 10px;
  color: #74806a;
  font-size: 8px;
  line-height: 1.5;
}

.executive-news {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(1, 3, 6, 0.22);
  padding: 12px 22px;
}

.executive-news-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(75, 213, 255, 0.14);
  border-radius: 9px;
  background: rgba(75, 213, 255, 0.045);
  color: var(--nx-cyan);
}

.executive-news-mark svg {
  width: 15px;
  height: 15px;
}

.executive-news-state {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.executive-news-state > span {
  color: #6f7b88;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.executive-news-state > a,
.executive-news-state > strong {
  min-width: 0;
  overflow: hidden;
  color: #d8e0e7;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-news-state > a:hover {
  color: var(--nx-cyan);
}

.executive-news-state > small {
  color: #64707d;
  font-size: 8px;
  white-space: nowrap;
}

.executive-news-state.loading > strong {
  color: #8f9aa5;
}

.executive-news-state.unavailable > strong {
  color: #b89169;
}

.insight-strip {
  position: relative;
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(75, 213, 255, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(100deg, rgba(75, 213, 255, 0.08), rgba(203, 255, 74, 0.025)),
    rgba(13, 17, 24, 0.86);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.insight-strip::after {
  position: absolute;
  right: 4%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.insight-accent {
  width: 4px;
  height: 32px;
  border-radius: 8px;
  background: var(--nx-cyan);
  box-shadow: 0 0 17px rgba(75, 213, 255, 0.3);
}

.insight-text {
  position: relative;
  z-index: 1;
  color: #b3bdc7;
  font-size: 11px;
  line-height: 1.6;
}

.insight-text strong {
  color: #fff;
  font-weight: 700;
}

.insight-label {
  position: relative;
  z-index: 1;
  color: #5e6a77;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.kpi-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), transparent 70%),
    var(--nx-elevated);
  padding: 15px 16px 14px;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: #10151d;
  transform: translateY(-2px);
}

.kpi-card::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--kpi-accent, transparent);
  content: "";
  opacity: 0.8;
}

.kpi-label {
  overflow: hidden;
  color: #778391;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.kpi-value {
  overflow: hidden;
  margin-top: 9px;
  color: #f8fafc;
  font-size: clamp(20px, 1.8vw, 29px);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-sub {
  overflow: hidden;
  margin-top: 7px;
  color: #687482;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(340px, 0.82fr);
  gap: 14px;
  margin-top: 14px;
}

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

.dashboard-grid.wide-right {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
}

.stack {
  display: grid;
  align-content: start;
  gap: 14px;
}

.frame {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 60%),
    var(--nx-elevated);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.08);
}

.frame:hover {
  border-color: rgba(255, 255, 255, 0.115);
}

.frame-head {
  display: flex;
  min-height: 70px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  padding: 17px 18px 14px;
}

.frame-title {
  color: #eaf0f5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.frame-subtitle {
  max-width: 68ch;
  margin-top: 6px;
  color: #6f7b88;
  font-size: 9px;
  line-height: 1.5;
}

.frame-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.frame-body {
  min-height: 0;
  padding: 18px;
}

.frame-body.no-pad {
  padding: 0;
}

.segmented-control {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--nx-line);
  border-radius: 10px;
  background: #090d12;
  padding: 3px;
}

.segmented-button {
  min-height: 29px;
  border-color: transparent;
  border-radius: 7px;
  background: transparent;
  padding: 0 9px;
  color: #6e7a87;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.segmented-button.is-active {
  border-color: rgba(255, 255, 255, 0.07);
  background: #18202b;
  color: #fff;
}

.chip-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.chip {
  min-height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 9px;
  font-weight: 750;
}

.chip.is-active {
  border-color: rgba(203, 255, 74, 0.32);
  background: rgba(203, 255, 74, 0.11);
  color: var(--nx-accent);
}

.map-stage {
  position: relative;
  height: 560px;
  overflow: hidden;
  background:
    radial-gradient(circle at 60% 35%, rgba(75, 213, 255, 0.07), transparent 36%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #080d13;
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.map-stage::after {
  position: absolute;
  inset: 0;
  z-index: 400;
  border: 1px solid rgba(255, 255, 255, 0.02);
  content: "";
  pointer-events: none;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  background: transparent !important;
  font-family: var(--nx-font) !important;
}

.leaflet-tile-pane {
  filter: grayscale(0.22) saturate(0.62) brightness(0.7) contrast(1.18);
}

.leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid var(--nx-line-strong) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.leaflet-control-zoom a {
  border: 0 !important;
  border-bottom: 1px solid var(--nx-line) !important;
  background: rgba(8, 13, 19, 0.92) !important;
  color: #dbe2e9 !important;
}

.leaflet-control-zoom a:last-child {
  border-bottom: 0 !important;
}

.leaflet-control-attribution {
  border-radius: 7px 0 0 0;
  background: rgba(8, 13, 19, 0.82) !important;
  color: #64717f !important;
  font-size: 8px !important;
}

.leaflet-control-attribution a {
  color: #8895a3 !important;
}

.leaflet-control-layers {
  overflow: hidden;
  border: 1px solid var(--nx-line-strong) !important;
  border-radius: 10px !important;
  background: rgba(8, 13, 19, 0.94) !important;
  box-shadow: none !important;
  color: #dbe2e9;
}

.leaflet-control-layers-expanded {
  padding: 10px 12px !important;
}

.leaflet-control-layers-toggle {
  filter: invert(1) opacity(0.72);
}

.leaflet-control-layers-separator {
  border-top-color: var(--nx-line) !important;
}

.leaflet-control-layers label {
  margin: 5px 0;
  color: #a7b2bd;
  font-size: 9px;
}

.leaflet-tooltip.nx-map-tooltip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(8, 12, 17, 0.96);
  box-shadow: var(--nx-shadow);
  color: #fff;
  padding: 10px 11px;
  font-family: var(--nx-font);
  font-size: 10px;
}

.leaflet-tooltip.nx-map-tooltip::before {
  display: none;
}

.map-tooltip-title {
  margin-bottom: 6px;
  font-weight: 750;
}

.map-tooltip-row {
  display: flex;
  min-width: 176px;
  justify-content: space-between;
  gap: 14px;
  color: #82909e;
  line-height: 1.6;
}

.map-tooltip-row b {
  color: #e9eef3;
  font-variant-numeric: tabular-nums;
}

.map-label-marker {
  border: 0;
  background: transparent;
}

.map-label-marker span {
  display: inline-flex;
  max-width: 150px;
  border: 1px solid rgba(203, 255, 74, 0.3);
  border-radius: 999px;
  background: rgba(8, 12, 17, 0.9);
  color: #fff;
  padding: 5px 8px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
  font-size: 8px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-legend {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 500;
  min-width: 190px;
  border: 1px solid var(--nx-line-strong);
  border-radius: 11px;
  background: rgba(8, 12, 17, 0.9);
  padding: 11px 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.map-legend-title {
  margin-bottom: 8px;
  color: #dce3e9;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legend-gradient {
  height: 7px;
  border-radius: 999px;
}

.legend-range {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: #687583;
  font-size: 8px;
}

.legend-category {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: #8895a3;
  font-size: 8px;
}

.legend-category i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--legend-color);
}

.map-source-note {
  position: absolute;
  top: 14px;
  right: auto;
  left: 54px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  background: rgba(8, 12, 17, 0.82);
  color: #6f7b87;
  padding: 6px 9px;
  font-size: 8px;
  backdrop-filter: blur(8px);
}

.profile-score {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--nx-line);
}

.profile-score-value {
  color: #fff;
  font-size: 48px;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.profile-score-label {
  margin-top: 9px;
  color: #6f7b88;
  font-size: 9px;
}

.rank-chip {
  border: 1px solid var(--nx-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: #82909e;
  padding: 8px 10px;
  font-size: 9px;
  white-space: nowrap;
}

.rank-chip b {
  color: #fff;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag.good {
  border-color: rgba(57, 209, 173, 0.18);
  background: rgba(57, 209, 173, 0.08);
  color: var(--nx-teal);
}

.tag.warn {
  border-color: rgba(255, 180, 95, 0.2);
  background: rgba(255, 180, 95, 0.08);
  color: var(--nx-orange);
}

.tag.bad {
  border-color: rgba(255, 102, 118, 0.2);
  background: rgba(255, 102, 118, 0.08);
  color: var(--nx-red);
}

.mini-section-title {
  margin: 18px 0 10px;
  color: #687583;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.dimension-row {
  display: grid;
  grid-template-columns: minmax(108px, 0.8fr) minmax(100px, 1fr) 38px;
  align-items: center;
  gap: 9px;
}

.dimension-label {
  overflow: hidden;
  color: #95a1ae;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dimension-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.dimension-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #335167, var(--nx-cyan));
  animation: fill-in 720ms 160ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fill-in {
  to {
    width: var(--fill);
  }
}

.dimension-value {
  color: #dce3e9;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  text-align: right;
}

.diagnosis-box,
.policy-box,
.empty-state {
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: #8b97a4;
  padding: 12px 13px;
  font-size: 9px;
  line-height: 1.65;
}

.diagnosis-box {
  margin-top: 16px;
}

.diagnosis-box strong,
.policy-box strong {
  color: #e8edf2;
}

.chart-canvas {
  position: relative;
  width: 100%;
  min-height: 320px;
}

.chart-canvas.tall {
  min-height: 420px;
}

.chart-canvas.compact {
  min-height: 260px;
}

.chart-canvas svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-canvas .axis text,
.chart-canvas .axis-label {
  fill: #687583;
  font-family: var(--nx-font);
  font-size: 9px;
}

.chart-canvas .axis path,
.chart-canvas .axis line {
  stroke: rgba(255, 255, 255, 0.09);
}

.chart-canvas .grid line {
  stroke: rgba(255, 255, 255, 0.055);
}

.chart-canvas .grid path {
  display: none;
}

.chart-canvas .bar-label,
.chart-canvas .value-label {
  fill: #aab4bf;
  font-family: var(--nx-font);
  font-size: 9px;
}

.chart-canvas .value-label {
  fill: #dce3ea;
  font-weight: 700;
}

.chart-skeleton {
  position: absolute;
  inset: 12px 0 0;
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 28px;
}

.chart-skeleton i {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  background-size: 200% 100%;
  animation: skeleton 1.5s linear infinite;
}

.chart-skeleton i:nth-child(2) {
  width: 78%;
}

.chart-skeleton i:nth-child(3) {
  width: 58%;
}

.chart-skeleton i:nth-child(4) {
  width: 89%;
}

@keyframes skeleton {
  to {
    background-position: -200% 0;
  }
}

.chart-tooltip {
  position: fixed;
  z-index: 900;
  width: max-content;
  max-width: 260px;
  visibility: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(6, 9, 13, 0.96);
  color: #e9eef3;
  padding: 9px 10px;
  box-shadow: var(--nx-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 100ms ease, transform 100ms ease, visibility 100ms;
  font-size: 9px;
  line-height: 1.55;
}

.chart-tooltip.is-visible {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 10px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  padding: 0 10px;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.rank-row:hover,
.rank-row:focus-visible {
  border-color: var(--nx-line);
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(2px);
}

.rank-row-index {
  color: #56616e;
  font-size: 8px;
}

.rank-row-name {
  overflow: hidden;
  color: #aab4be;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row-value {
  color: #e6ebf0;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.metric-positive {
  color: var(--nx-teal) !important;
}

.metric-negative {
  color: var(--nx-red) !important;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.flow-node {
  position: relative;
  min-width: 0;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  padding: 13px;
}

.flow-node:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -8px;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-top: 1px solid #4c5865;
  border-right: 1px solid #4c5865;
  content: "";
  rotate: 45deg;
  translate: 0 -50%;
}

.flow-node-label {
  min-height: 27px;
  color: #727f8d;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
}

.flow-node-value {
  margin-top: 8px;
  color: #e9eef3;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.data-table-wrap {
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  scrollbar-color: #26313d transparent;
  scrollbar-width: thin;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #10161e;
  color: #6f7b88;
  padding: 10px 11px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  color: #98a4b0;
  padding: 10px 11px;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background 140ms ease;
}

.data-table tbody tr:hover,
.data-table tbody tr.is-selected {
  background: rgba(203, 255, 74, 0.035);
}

.data-table .numeric {
  color: #dbe2e8;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.topbar-live svg {
  width: 15px;
  height: 15px;
  color: var(--nx-cyan);
}

.comparison-selector-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  margin-bottom: 16px;
}

.comparison-region-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--compare-color) 18%, var(--nx-line));
  border-radius: 15px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--compare-color) 7%, transparent), transparent 58%),
    var(--nx-elevated);
  padding: 15px 17px;
}

.comparison-region-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--compare-color);
  content: "";
}

.comparison-region-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--compare-color);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.comparison-region-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--compare-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--compare-color) 50%, transparent);
}

.comparison-region-card label {
  display: block;
  margin-top: 10px;
}

.comparison-region-card label > span {
  display: block;
  margin-bottom: 5px;
  color: #687482;
  font-size: 8px;
}

.comparison-select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--nx-line);
  border-radius: 10px;
  outline: none;
  background: #0a0f15;
  color: #d8e0e7;
  padding: 0 34px 0 11px;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
}

.comparison-select:focus-visible {
  border-color: var(--compare-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--compare-color) 10%, transparent);
}

.comparison-region-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}

.comparison-region-score strong {
  color: #f3f7fa;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
}

.comparison-region-score span {
  color: #707d8a;
  font-size: 9px;
}

.comparison-region-card .tag-row {
  margin-top: 9px;
}

.comparison-region-card .tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comparison-swap {
  display: grid;
  min-height: 100%;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--nx-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
  color: #7b8794;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.comparison-swap:hover {
  border-color: var(--nx-line-strong);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  transform: translateY(-1px);
}

.comparison-swap svg {
  width: 18px;
  height: 18px;
  margin: auto;
}

.comparison-swap span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comparison-table-wrap {
  max-height: 520px;
}

.comparison-wide-table {
  max-height: none;
}

.comparison-price-table {
  max-height: 620px;
}

.comparison-table {
  min-width: 620px;
}

.comparison-wide-table .comparison-table,
.comparison-price-table .comparison-table {
  min-width: 1120px;
}

.comparison-table tbody tr {
  cursor: default;
}

.comparison-table td:first-child small {
  display: block;
  margin-bottom: 3px;
  color: #586573;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-table .compare-a {
  color: #91e7ff;
}

.comparison-table .compare-b {
  color: #d9ff79;
}

.comparison-table th.group-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.comparison-table .comparison-gap {
  color: #7e8a96;
}

.comparison-radar {
  min-height: 420px;
}

.comparison-access-chart {
  min-height: 650px;
}

.comparison-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.comparison-policy-grid .policy-box {
  margin: 0;
}

.comparison-policy-grid .compare-a {
  border-color: rgba(75, 213, 255, 0.15);
}

.comparison-policy-grid .compare-b {
  border-color: rgba(203, 255, 74, 0.15);
}

.comparison-price-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.comparison-price-summary {
  min-width: 0;
  border: 1px solid var(--nx-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
  padding: 15px;
}

.comparison-price-summary.compare-a {
  border-top-color: rgba(75, 213, 255, 0.48);
}

.comparison-price-summary.compare-b {
  border-top-color: rgba(203, 255, 74, 0.48);
}

.comparison-price-summary > span,
.comparison-price-summary > strong,
.comparison-price-summary > small,
.comparison-price-summary > div {
  display: block;
}

.comparison-price-summary > span {
  overflow: hidden;
  color: #84919e;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-price-summary > strong {
  margin-top: 10px;
  color: #f1f5f8;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.comparison-price-summary > small {
  margin-top: 5px;
  color: #74818e;
  font-size: 8px;
}

.comparison-price-summary > div {
  margin-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #687583;
  padding-top: 10px;
  font-size: 8px;
}

.comparison-price-summary > div b {
  color: #dce3e8;
}

.comparison-footnote {
  margin-top: 14px;
  border: 1px solid var(--nx-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.015);
  color: #697582;
  padding: 11px 13px;
  font-size: 8px;
  line-height: 1.6;
}

.typology-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.typology-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--nx-line);
  border-radius: 13px;
  background: var(--nx-elevated);
  cursor: pointer;
  padding: 14px;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.typology-card::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--type-color);
  content: "";
}

.typology-card:hover,
.typology-card.is-active {
  border-color: color-mix(in srgb, var(--type-color) 40%, transparent);
  background: color-mix(in srgb, var(--type-color) 7%, var(--nx-elevated));
  transform: translateY(-2px);
}

.typology-index {
  color: var(--type-color);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.typology-card h3 {
  min-height: 40px;
  margin: 9px 0 12px;
  color: #dfe5eb;
  font-size: 10px;
  line-height: 1.45;
}

.typology-score {
  color: #fff;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.typology-meta {
  margin-top: 5px;
  color: #6c7885;
  font-size: 8px;
}

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

.member-pill {
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: #8e9aa7;
  cursor: pointer;
  padding: 6px 9px;
  font-size: 8px;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.member-pill:hover {
  border-color: var(--nx-line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.modal {
  width: min(760px, calc(100vw - 34px));
  max-height: min(84vh, 780px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #0d1219;
  color: var(--nx-text);
  padding: 0;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.62);
}

.modal::backdrop {
  background: rgba(2, 4, 7, 0.75);
  backdrop-filter: blur(9px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--nx-line);
  padding: 20px 22px 17px;
}

.modal-head h2 {
  margin: 7px 0 0;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.modal-content {
  max-height: calc(84vh - 83px);
  overflow: auto;
  padding: 20px 22px 26px;
}

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

.method-card {
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  padding: 13px;
}

.method-card strong {
  display: block;
  color: #dfe6ed;
  font-size: 10px;
}

.method-card p,
.method-card li,
.modal-note {
  color: #85919e;
  font-size: 9px;
  line-height: 1.7;
}

.method-card p {
  margin: 7px 0 0;
}

.method-card ul {
  margin: 7px 0 0;
  padding-left: 16px;
}

.source-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.source-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--nx-line);
  border-radius: 10px;
  padding: 10px 11px;
}

.source-row i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nx-teal);
}

.source-row span {
  overflow: hidden;
  color: #a9b4bf;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-row small {
  color: #5f6b78;
  font-size: 8px;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 950;
  display: grid;
  gap: 8px;
}

.toast {
  display: flex;
  max-width: 330px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--nx-line-strong);
  border-radius: 11px;
  background: rgba(12, 17, 24, 0.96);
  color: #bcc5ce;
  padding: 10px 12px;
  box-shadow: var(--nx-shadow);
  animation: toast-in 220ms ease both;
  font-size: 9px;
}

.toast i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--nx-teal);
}

.toast.error i {
  background: var(--nx-red);
}

@keyframes toast-in {
  from {
    opacity: 0;
    translate: 0 7px;
  }
}

.mobile-scrim {
  display: none;
}

.noscript {
  position: fixed;
  inset: auto 18px 18px;
  z-index: 9999;
  border: 1px solid rgba(255, 102, 118, 0.24);
  border-radius: 12px;
  background: #1b0d12;
  color: #ffdbe0;
  padding: 14px;
}

.chat-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
}

.chat-layer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.chat-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 4, 7, 0.28);
  opacity: 0;
  cursor: default;
  transition: opacity 220ms ease;
  backdrop-filter: blur(1px);
}

.chat-layer.is-open .chat-scrim {
  opacity: 1;
}

.chat-drawer {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: min(440px, calc(100vw - 24px));
  overflow: hidden;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 2%, rgba(75, 213, 255, 0.09), transparent 18rem),
    #0b1017;
  box-shadow: -26px 28px 90px rgba(0, 0, 0, 0.48);
  transform: translateX(calc(100% + 24px));
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-layer.is-open .chat-drawer {
  transform: none;
}

.chat-head {
  display: grid;
  min-height: 74px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 11px;
  border-bottom: 1px solid var(--nx-line);
  padding: 13px 15px;
}

.chat-head-mark,
.chat-empty-mark {
  display: grid;
  place-items: center;
  color: #061019;
  background: linear-gradient(135deg, var(--nx-cyan), var(--nx-purple));
}

.chat-head-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 9px 26px rgba(75, 213, 255, 0.16);
}

.chat-head-mark svg,
.chat-empty-mark svg {
  width: 19px;
}

.chat-head > div:nth-child(2) span,
.chat-head > div:nth-child(2) strong {
  display: block;
}

.chat-head > div:nth-child(2) span {
  color: var(--nx-cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.chat-head > div:nth-child(2) strong {
  margin-top: 3px;
  color: #f5f8fb;
  font-size: 14px;
}

.chat-grounded {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(57, 209, 173, 0.18);
  border-radius: 999px;
  background: rgba(57, 209, 173, 0.06);
  color: #a7c4bb;
  padding: 6px 8px;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chat-grounded b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nx-teal);
  box-shadow: 0 0 10px rgba(57, 209, 173, 0.8);
}

.chat-context {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--nx-line);
  background: rgba(255, 255, 255, 0.015);
  padding: 9px 16px;
}

.chat-context span {
  color: #697685;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.chat-context strong {
  overflow: hidden;
  color: #cbd3dc;
  font-size: 10px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-transcript {
  min-height: 0;
  overflow: auto;
  padding: 18px 16px 22px;
  overscroll-behavior: contain;
  scrollbar-color: #2e3947 transparent;
  scrollbar-width: thin;
}

.chat-message {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  animation: view-in 220ms ease both;
}

.chat-message + .chat-message {
  margin-top: 18px;
}

.chat-message.user {
  margin-left: 38px;
  grid-template-columns: minmax(0, 1fr) 30px;
}

.chat-message.user .chat-avatar {
  grid-column: 2;
  grid-row: 1;
}

.chat-message.user .chat-message-body {
  grid-column: 1;
  grid-row: 1;
  align-items: flex-end;
}

.chat-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(75, 213, 255, 0.2);
  border-radius: 9px;
  background: rgba(75, 213, 255, 0.08);
  color: var(--nx-cyan);
  font-size: 8px;
  font-weight: 800;
}

.chat-message.user .chat-avatar {
  border-color: rgba(203, 255, 74, 0.15);
  background: rgba(203, 255, 74, 0.06);
  color: var(--nx-accent);
}

.chat-avatar svg {
  width: 15px;
}

.chat-message-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.chat-message-body > span {
  margin: 1px 0 6px;
  color: #667483;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chat-message-content {
  max-width: 100%;
  border: 1px solid var(--nx-line);
  border-radius: 4px 13px 13px;
  background: #111821;
  color: #c8d0d9;
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.chat-message.user .chat-message-content {
  border-color: rgba(203, 255, 74, 0.13);
  border-radius: 13px 4px 13px 13px;
  background: rgba(203, 255, 74, 0.065);
  color: #e5eadf;
}

.chat-message-content strong {
  color: #f7fafc;
}

.chat-citation {
  display: inline;
  color: #75ddff;
  font-size: 10px;
  font-weight: 700;
}

.chat-thinking {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  gap: 4px;
}

.chat-thinking b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nx-cyan);
  animation: chat-pulse 900ms ease-in-out infinite;
}

.chat-thinking b:nth-child(2) { animation-delay: 120ms; }
.chat-thinking b:nth-child(3) { animation-delay: 240ms; }

@keyframes chat-pulse {
  0%, 100% { opacity: 0.24; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.chat-empty {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 6px;
}

.chat-empty-mark {
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 15px;
}

.chat-empty > span {
  color: var(--nx-cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.chat-empty h3 {
  max-width: 320px;
  margin: 8px 0;
  color: #f3f6f9;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.chat-empty p {
  max-width: 350px;
  margin: 0;
  color: #82909f;
  font-size: 11px;
  line-height: 1.65;
}

.chat-suggestions {
  display: grid;
  width: 100%;
  gap: 7px;
  margin-top: 20px;
}

.chat-suggestion {
  min-height: 42px;
  border: 1px solid var(--nx-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  color: #b8c2cc;
  cursor: pointer;
  padding: 9px 11px;
  text-align: left;
  font-size: 10px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.chat-suggestion:hover {
  border-color: rgba(75, 213, 255, 0.28);
  background: rgba(75, 213, 255, 0.06);
  color: #edf7fb;
  transform: translateX(2px);
}

.chat-error {
  margin: 0 16px 8px;
  border: 1px solid rgba(255, 102, 118, 0.2);
  border-radius: 9px;
  background: rgba(255, 102, 118, 0.07);
  color: #ffc2cb;
  padding: 8px 10px;
  font-size: 10px;
}

.chat-compose {
  border-top: 1px solid var(--nx-line);
  background: #0d131b;
  padding: 12px 14px 13px;
}

.chat-compose > label {
  display: block;
  margin: 0 0 7px 2px;
  color: #6f7d8c;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.chat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

.chat-input-row textarea {
  min-height: 44px;
  max-height: 110px;
  resize: vertical;
  border: 1px solid var(--nx-line);
  border-radius: 11px;
  outline: 0;
  background: #080c12;
  color: #e7ecf0;
  padding: 11px 12px;
  font: inherit;
  font-size: 11px;
  line-height: 1.45;
}

.chat-input-row textarea::placeholder {
  color: #566270;
}

.chat-input-row button {
  display: grid;
  border: 1px solid rgba(75, 213, 255, 0.22);
  border-radius: 11px;
  place-items: center;
  background: linear-gradient(135deg, var(--nx-cyan), #7b8fff);
  color: #061019;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease;
}

.chat-input-row button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.chat-input-row button:disabled,
.chat-compose-meta button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.chat-input-row button svg {
  width: 17px;
}

.chat-compose-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.chat-compose-meta span {
  color: #5d6976;
  font-size: 9px;
}

.chat-compose-meta button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #6f7b88;
  cursor: pointer;
  font-size: 9px;
}

.chat-compose-meta button:hover:not(:disabled) {
  color: #e3e8ed;
}

.chat-compose-meta svg {
  width: 12px;
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-content: center;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: #dce3e9;
}

@media (max-width: 1320px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  :root {
    --nx-sidebar: 264px;
  }

  .app-shell,
  .app-shell.is-collapsed {
    display: block;
  }

  .workspace-shell {
    grid-column: auto;
  }

  .sidebar {
    width: min(284px, calc(100vw - 48px));
    transform: translateX(-104%);
    box-shadow: 22px 0 70px rgba(0, 0, 0, 0.45);
  }

  .app-shell.is-mobile-open .sidebar {
    transform: none;
  }

  .brand-copy,
  .nav-label,
  .sidebar-section-label,
  .sidebar-status-copy,
  .app-shell.is-collapsed .brand-copy,
  .app-shell.is-collapsed .nav-label,
  .app-shell.is-collapsed .sidebar-section-label,
  .app-shell.is-collapsed .sidebar-status-copy {
    width: auto;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-scrim {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: block;
    visibility: hidden;
    background: rgba(1, 3, 5, 0.7);
    opacity: 0;
    transition: opacity 180ms ease, visibility 180ms;
  }

  .app-shell.is-mobile-open .mobile-scrim {
    visibility: visible;
    opacity: 1;
  }

  .icon-button.mobile-menu,
  .sidebar-mobile-close {
    display: inline-grid;
  }

  .sidebar-collapse {
    display: none;
  }

  .app-shell.is-collapsed .sidebar-body {
    padding: 22px 14px 16px;
  }

  .app-shell.is-collapsed .sidebar-status {
    min-height: 68px;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 11px;
    padding: 12px;
  }

  .app-shell.is-collapsed .status-led {
    margin-top: 4px;
  }

  .dashboard-grid,
  .dashboard-grid.equal,
  .dashboard-grid.wide-right {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 0 18px;
  }

  .workspace {
    padding: 22px 18px 42px;
  }

  .map-stage {
    height: 510px;
  }

  .topbar-actions .text-button span:not(.button-icon) {
    display: none;
  }
}

@media (max-width: 700px) {
  .topbar {
    min-height: 68px;
    gap: 8px;
    padding: 0 12px;
  }

  .breadcrumb > span:first-child,
  .breadcrumb-separator {
    display: none;
  }

  .region-select {
    width: 150px;
  }

  .topbar-actions [data-action="print"] {
    display: none;
  }

  .chat-drawer {
    inset: 0;
    width: 100%;
    border: 0;
    border-radius: 0;
  }

  .is-chat-open {
    overflow: hidden;
  }

  .chat-head {
    min-height: 68px;
  }

  .workspace {
    padding: 18px 12px 36px;
  }

  .comparison-selector-panel {
    grid-template-columns: 1fr;
  }

  .comparison-swap {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }

  .comparison-swap svg {
    margin: 0;
  }

  .comparison-policy-grid,
  .comparison-price-summary-grid {
    grid-template-columns: 1fr;
  }

  .executive-summary-head {
    display: block;
  }

  .executive-summary-meta {
    align-items: flex-start;
    margin-top: 13px;
  }

  .executive-scope {
    display: none;
  }

  .executive-brief-main {
    display: block;
  }

  .executive-synthesis,
  .executive-action {
    padding: 18px;
  }

  .executive-action {
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    border-left: 0;
  }

  .executive-facts {
    grid-template-columns: 1fr;
  }

  .executive-fact strong,
  .executive-fact small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .executive-news {
    align-items: flex-start;
    padding: 13px 18px;
  }

  .executive-news-state {
    display: block;
  }

  .executive-news-state > span,
  .executive-news-state > a,
  .executive-news-state > strong,
  .executive-news-state > small {
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .executive-news-state > a,
  .executive-news-state > strong {
    margin-top: 5px;
    line-height: 1.5;
  }

  .executive-news-state > small {
    margin-top: 5px;
    line-height: 1.45;
  }

  .page-heading {
    display: block;
  }

  .page-heading-meta {
    margin-top: 13px;
  }

  .insight-strip {
    grid-template-columns: 5px minmax(0, 1fr);
  }

  .insight-label {
    display: none;
  }

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

  .kpi-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .frame-head {
    display: block;
  }

  .frame-actions {
    margin-top: 12px;
  }

  .map-stage {
    height: 450px;
  }

  .map-legend {
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-width: 0;
  }

  .map-source-note {
    display: none;
  }

  .flow-strip,
  .typology-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .flow-node:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -8px;
    rotate: 135deg;
    translate: 50% 0;
  }

  .typology-card h3 {
    min-height: auto;
  }
}

.topbar-live {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #8f9ba8;
  padding: 0 13px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.news-frame {
  overflow: hidden;
}

.news-toolbar {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  border-bottom: 1px solid var(--nx-line);
  padding: 12px 18px;
  scrollbar-width: thin;
}

.news-filter {
  flex: 0 0 auto;
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #8794a2;
  padding: 7px 11px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, translate 160ms ease;
}

.news-filter:hover {
  border-color: rgba(203, 255, 74, 0.26);
  color: #dfe7ed;
  translate: 0 -1px;
}

.news-filter.is-active {
  border-color: rgba(203, 255, 74, 0.34);
  background: rgba(203, 255, 74, 0.1);
  color: var(--nx-accent);
}

.news-body {
  min-height: 320px;
}

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

.news-card {
  position: relative;
  display: flex;
  min-height: 222px;
  flex-direction: column;
  border: 1px solid var(--nx-line);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), transparent 48%),
    rgba(8, 12, 17, 0.45);
  padding: 16px;
  transition: border-color 180ms ease, background 180ms ease, translate 180ms ease, box-shadow 180ms ease;
}

.news-card::before {
  position: absolute;
  top: -1px;
  right: 16px;
  left: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203, 255, 74, 0.34), transparent);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.news-card:hover {
  border-color: rgba(203, 255, 74, 0.2);
  background:
    linear-gradient(145deg, rgba(203, 255, 74, 0.035), transparent 48%),
    rgba(9, 14, 19, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  translate: 0 -3px;
}

.news-card:hover::before {
  opacity: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #697684;
  font-size: 8px;
  line-height: 1.4;
}

.news-category {
  overflow: hidden;
  max-width: 58%;
  border: 1px solid rgba(75, 213, 255, 0.19);
  border-radius: 999px;
  background: rgba(75, 213, 255, 0.07);
  color: var(--nx-cyan);
  padding: 4px 7px;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-card h2 {
  margin: 17px 0 22px;
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.38;
}

.news-card h2 a {
  color: #eef3f6;
  text-decoration: none;
  transition: color 150ms ease;
}

.news-card h2 a:hover {
  color: var(--nx-accent);
}

.news-card-source {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  border-top: 1px solid var(--nx-line);
  padding-top: 12px;
}

.publisher-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(203, 255, 74, 0.2);
  border-radius: 9px;
  background: rgba(203, 255, 74, 0.07);
  color: var(--nx-accent);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.news-card-source strong,
.news-card-source small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card-source strong {
  color: #bdc7d0;
  font-size: 9px;
  font-weight: 750;
}

.news-card-source small {
  margin-top: 3px;
  color: #596674;
  font-size: 8px;
}

.news-open {
  color: #6d7a87;
  font-size: 14px;
  transition: color 150ms ease, translate 150ms ease;
}

.news-card:hover .news-open {
  color: var(--nx-accent);
  translate: 2px -2px;
}

.news-card-loading {
  gap: 13px;
  pointer-events: none;
}

.news-card-loading i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  background-size: 220% 100%;
  animation: news-shimmer 1.35s ease-in-out infinite;
}

.news-card-loading i:nth-child(1) {
  width: 34%;
}

.news-card-loading i:nth-child(2) {
  width: 94%;
  height: 17px;
  margin-top: 10px;
}

.news-card-loading i:nth-child(3) {
  width: 76%;
  height: 17px;
}

.news-card-loading i:nth-child(4) {
  width: 58%;
  margin-top: auto;
}

@keyframes news-shimmer {
  to {
    background-position: -220% 0;
  }
}

.news-warning {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 180, 95, 0.18);
  border-radius: 11px;
  background: rgba(255, 180, 95, 0.055);
  color: #c9a278;
  padding: 10px 12px;
  font-size: 9px;
  line-height: 1.5;
}

.news-warning i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--nx-orange);
  box-shadow: 0 0 0 4px rgba(255, 180, 95, 0.08);
}

.news-empty {
  display: grid;
  min-height: 280px;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.news-empty strong,
.news-empty span {
  display: block;
}

.news-empty strong {
  color: #dce4ea;
  font-size: 15px;
}

.news-empty span {
  max-width: 480px;
  margin: 8px 0 18px;
  color: #73808d;
  font-size: 10px;
  line-height: 1.65;
}

.news-source-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.news-source-list a {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  border: 1px solid var(--nx-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  color: #aeb9c3;
  padding: 11px 12px;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, translate 150ms ease;
}

.news-source-list a:hover {
  border-color: rgba(203, 255, 74, 0.23);
  background: rgba(203, 255, 74, 0.035);
  translate: 0 -2px;
}

.news-source-list i {
  width: 7px;
  height: 7px;
  grid-row: 1 / span 2;
  border-radius: 50%;
  background: var(--nx-teal);
  box-shadow: 0 0 0 4px rgba(57, 209, 173, 0.07);
}

.news-source-list span,
.news-source-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-source-list span {
  font-size: 9px;
  font-weight: 750;
}

.news-source-list small {
  color: #63707d;
  font-size: 8px;
}

.text-button:disabled {
  cursor: wait;
  opacity: 0.52;
}

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

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

@media (max-width: 680px) {
  .topbar-live {
    display: none;
  }

  .news-grid,
  .news-source-list {
    grid-template-columns: 1fr;
  }

  .news-card {
    min-height: 205px;
  }

  .news-toolbar {
    padding-inline: 12px;
  }
}

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

.print-report-header,
.print-report-footer {
  display: none;
}

@page {
  size: A4 landscape;
  margin: 12mm 10mm 16mm;
}

@media print {
  :root {
    color-scheme: light;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    box-shadow: none !important;
    print-color-adjust: exact;
    transition: none !important;
    -webkit-print-color-adjust: exact;
  }

  html,
  body {
    width: auto;
    min-width: 0;
    background: #fff;
    color: #111;
    font-size: 9pt;
  }

  .sidebar,
  .topbar,
  .boot-screen,
  .skip-link,
  .page-heading,
  .executive-summary-head,
  .page-heading-meta,
  .frame-actions,
  .insight-label,
  .chip-row,
  .segmented-control,
  .comparison-selector-panel,
  .news-toolbar,
  .mobile-scrim,
  .toast-region,
  #chatRoot,
  .chart-tooltip,
  .modal,
  .leaflet-control-zoom,
  .leaflet-control-layers {
    display: none !important;
  }

  .print-report-header {
    display: block;
    margin-bottom: 5mm;
    border-bottom: 0.5mm solid #101820;
    padding-bottom: 5mm;
  }

  .print-report-brand {
    display: flex;
    align-items: center;
    gap: 3mm;
  }

  .print-report-mark {
    display: grid;
    width: 15mm;
    height: 10mm;
    place-items: center;
  }

  .print-report-mark img {
    display: block;
    width: 14mm;
    height: auto;
  }

  .print-report-brand > div:nth-child(2) strong,
  .print-report-brand > div:nth-child(2) span {
    display: block;
  }

  .print-report-brand > div:nth-child(2) strong {
    color: #111827;
    font-size: 8pt;
    letter-spacing: 0.14em;
  }

  .print-report-brand > div:nth-child(2) span {
    margin-top: 1mm;
    color: #64707c;
    font-size: 6pt;
  }

  .print-report-brand em {
    margin-left: auto;
    border: 0.25mm solid #cad2d9;
    border-radius: 99mm;
    color: #53606c;
    padding: 1.8mm 3mm;
    font-size: 6pt;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.1em;
  }

  .print-report-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(52mm, 0.36fr);
    align-items: end;
    gap: 10mm;
    margin-top: 7mm;
  }

  .print-report-title > div:first-child > span {
    display: block;
    color: #6f8f00;
    font-size: 6.5pt;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .print-report-title h1 {
    margin: 2mm 0 1.5mm;
    color: #0f1720;
    font-size: 23pt;
    font-weight: 680;
    letter-spacing: -0.045em;
    line-height: 1;
  }

  .print-report-title p {
    max-width: 180mm;
    margin: 0;
    color: #5f6b76;
    font-size: 7.5pt;
    line-height: 1.5;
  }

  .print-report-scope {
    border-left: 0.7mm solid #45b8d9;
    background: #f2f8fa;
    padding: 3mm 4mm;
  }

  .print-report-scope small,
  .print-report-scope strong {
    display: block;
  }

  .print-report-scope small {
    color: #69808a;
    font-size: 5.8pt;
    font-weight: 850;
    letter-spacing: 0.13em;
  }

  .print-report-scope strong {
    margin-top: 1.5mm;
    color: #17212a;
    font-size: 8.5pt;
    line-height: 1.4;
  }

  .print-report-meta {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 5mm;
    border: 0.25mm solid #d7dde2;
    border-radius: 2mm;
  }

  .print-report-meta > div {
    min-width: 0;
    padding: 2.5mm 3mm;
  }

  .print-report-meta > div + div {
    border-left: 0.25mm solid #d7dde2;
  }

  .print-report-meta span,
  .print-report-meta strong {
    display: block;
  }

  .print-report-meta span {
    color: #7a858f;
    font-size: 5.5pt;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .print-report-meta strong {
    overflow: hidden;
    margin-top: 1mm;
    color: #26323d;
    font-size: 7pt;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .print-report-footer {
    position: fixed;
    right: 0;
    bottom: -11mm;
    left: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 4mm;
    border-top: 0.25mm solid #cfd6dc;
    background: #fff;
    color: #76818b;
    padding-top: 2mm;
    font-size: 5.5pt;
    letter-spacing: 0.03em;
  }

  .print-report-footer span:nth-child(2) {
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .print-page-number::after {
    content: "Page " counter(page);
  }

  .app-shell,
  .workspace-shell {
    display: block;
    width: auto;
    min-width: 0;
  }

  .workspace {
    padding: 0 0 4mm;
  }

  .view-root {
    width: 100%;
    max-width: none;
  }

  .view-enter {
    animation: none;
  }

  .executive-summary {
    margin-bottom: 4mm;
  }

  .frame,
  .kpi-card,
  .insight-strip,
  .executive-brief-card,
  .executive-action,
  .executive-fact,
  .executive-news {
    break-inside: avoid;
    border-color: #d7dce1;
    background: #fff;
    box-shadow: none;
  }

  .frame {
    overflow: visible;
    break-inside: auto;
    border-radius: 2.5mm;
  }

  .frame:not(:has(.data-table-wrap)) {
    break-inside: avoid;
  }

  .frame-head {
    min-height: 0;
    break-after: avoid;
    border-bottom-color: #dfe4e8;
    padding: 3.2mm 4mm 2.8mm;
  }

  .frame-body {
    overflow: visible;
    padding: 3.5mm 4mm;
  }

  .executive-brief-main {
    grid-template-columns: minmax(0, 1.55fr) minmax(62mm, 0.75fr);
  }

  .executive-synthesis,
  .executive-action {
    padding: 4mm;
  }

  .executive-action {
    border-left-color: #dfe5d3;
  }

  .executive-news {
    border-top-color: #dfe4e8;
    padding: 2.8mm 4mm;
  }

  .executive-news-mark {
    border-color: #b8dbe6;
    background: #f0f8fa;
    color: #1883a2;
  }

  .kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2.5mm;
    margin-bottom: 4mm;
  }

  .kpi-card {
    min-height: 25mm;
    border-radius: 2.5mm;
    padding: 3.5mm;
  }

  .insight-strip {
    grid-template-columns: 1.2mm minmax(0, 1fr);
    gap: 3mm;
    border-color: #c9dde4;
    border-radius: 2.5mm;
    margin-bottom: 4mm;
    padding: 3mm 4mm;
  }

  .insight-strip::after {
    display: none;
  }

  .insight-accent {
    width: 1mm;
    height: 9mm;
    background: #2aa7cb;
  }

  .page-heading h1,
  .executive-summary-head h1,
  .frame-title,
  .kpi-value,
  .profile-score-value,
  .executive-synthesis > p strong,
  .executive-action p,
  .executive-fact strong,
  .executive-news-state > a,
  .executive-news-state > strong {
    color: #111;
  }

  .section-kicker,
  .executive-card-label,
  .kpi-label,
  .mini-section-title {
    color: #697d13;
  }

  .page-heading p,
  .executive-summary-head p,
  .frame-subtitle,
  .kpi-label,
  .kpi-sub,
  .insight-text,
  .executive-synthesis > p,
  .executive-action > small,
  .executive-fact small,
  .executive-news-state > span,
  .executive-news-state > small,
  .dimension-label,
  .rank-row-name,
  .data-table td {
    color: #4b5563;
  }

  .frame-title {
    font-size: 9pt;
  }

  .frame-subtitle,
  .insight-text,
  .executive-synthesis > p,
  .executive-action p {
    font-size: 7pt;
  }

  .kpi-value {
    font-size: 17pt;
  }

  .rank-row,
  .member-pill,
  .typology-card,
  .news-card {
    break-inside: avoid;
  }

  .rank-row,
  .member-pill {
    border-color: #dce2e6;
    background: #fff;
    color: #28333d;
  }

  .policy-box,
  .diagnosis-box,
  .executive-fact,
  .comparison-price-summary {
    border-color: #d8dee3;
    background: #f8fafb;
    color: #4b5563;
  }

  .policy-box strong,
  .diagnosis-box strong,
  .comparison-price-summary > strong,
  .comparison-price-summary > div b {
    color: #18222c;
  }

  .tag,
  .rank-chip,
  .source-badge,
  .freshness-badge {
    border-color: #d4dbe0;
    background: #f8fafb;
    color: #4b5660;
  }

  .chart-canvas {
    min-height: 70mm;
    break-inside: avoid;
  }

  .chart-canvas.tall,
  .comparison-radar {
    min-height: 92mm;
  }

  .comparison-access-chart {
    min-height: 142mm;
  }

  .chart-canvas .axis text,
  .chart-canvas .axis-label,
  .chart-canvas .bar-label,
  .chart-canvas .value-label {
    fill: #4e5b66;
  }

  .chart-canvas .axis path,
  .chart-canvas .axis line,
  .chart-canvas .grid line {
    stroke: #d8dee3;
  }

  .map-stage {
    height: 102mm;
    break-inside: avoid;
    background: #eef2f4;
  }

  .leaflet-container {
    background: #eef2f4;
  }

  .leaflet-control-attribution {
    display: block !important;
    border: 0;
    background: rgba(255, 255, 255, 0.88) !important;
    color: #66717a !important;
    font-size: 5pt !important;
  }

  .map-legend {
    border-color: #ccd5db;
    background: rgba(255, 255, 255, 0.94);
    color: #34404a;
  }

  .map-source-note {
    display: block;
    background: rgba(255, 255, 255, 0.92);
    color: #5d6872;
  }

  .data-table-wrap,
  .comparison-table-wrap,
  .comparison-wide-table,
  .comparison-price-table {
    max-height: none;
    overflow: visible;
    border-color: #d8dee3;
    border-radius: 1.5mm;
  }

  .data-table,
  .comparison-table,
  .comparison-wide-table .comparison-table,
  .comparison-price-table .comparison-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    font-size: 6.2pt;
  }

  .comparison-price-table .comparison-table,
  .comparison-wide-table .comparison-table {
    font-size: 5.6pt;
  }

  .data-table thead {
    display: table-header-group;
  }

  .data-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .data-table th {
    position: static;
    background: #eef2f4;
    color: #45515c;
    padding: 1.8mm 2mm;
    font-size: 5.5pt;
  }

  .data-table td {
    border-top-color: #e1e6e9;
    color: #4b5563;
    padding: 1.8mm 2mm;
  }

  .data-table .numeric {
    color: #1f2933;
  }

  .comparison-table .compare-a {
    color: #0d7896;
  }

  .comparison-table .compare-b {
    color: #667f08;
  }

  .comparison-footnote {
    border-color: #d8dee3;
    background: #f8fafb;
    color: #5f6a74;
  }

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

  .news-card {
    min-height: 48mm;
    border-color: #d8dee3;
    background: #fff;
    padding: 3.5mm;
  }

  .news-card h2 a,
  .news-card-source strong {
    color: #17212a;
  }

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

  .dashboard-grid,
  .dashboard-grid.equal,
  .dashboard-grid.wide-right {
    gap: 4mm;
    margin-top: 4mm;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(62mm, 0.65fr);
  }

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

  .dashboard-grid.wide-right {
    grid-template-columns: minmax(62mm, 0.72fr) minmax(0, 1.28fr);
  }

  .stack {
    gap: 4mm;
  }

  .comparison-policy-grid,
  .comparison-price-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
