:root {
  --bg: #030712;
  --bg-elevated: #07111f;
  --nav: #081827;
  --panel: rgba(15, 31, 51, 0.92);
  --panel-soft: rgba(13, 31, 53, 0.88);
  --border: rgba(31, 77, 120, 0.78);
  --border-strong: rgba(34, 211, 238, 0.42);
  --text: #ffffff;
  --muted: #9fb7d5;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --violet: #9d7cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --pcs-panel-gap: 14px;
}

@media (max-width: 520px) {
  .queue-actions, .research-export-actions { grid-template-columns: 1fr; }
  .research-evidence-inspector dl { grid-template-columns: 1fr; }
  .research-queue-item { flex-direction: column; }
  .queue-item-actions { flex-direction: row; justify-content: flex-start; }
  .mapping-viewport .research-graph-node text { font-size: 30px; stroke-width: 7px; }
  .research-graph-node.is-label-visible:not(.node-document):not(.node-model):not(.node-equation) text { opacity: 0; }
  .research-graph-node:hover text, .research-graph-node:focus-visible text, .research-graph-node.is-selected text, .research-graph-node.is-related text { opacity: 1; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -20%, rgba(47, 125, 246, 0.28), transparent 34rem),
    linear-gradient(180deg, #02040b 0%, #07101c 52%, #030712 100%);
}

button,
input,
select {
  font: inherit;
}

.global-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px clamp(12px, 1.4vw, 24px);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(8, 24, 39, 0.98), rgba(7, 17, 31, 0.96));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
}

.nav-brand {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pcs-brand-area {
  justify-items: center;
  text-align: center;
}

.pcs-brand-area .support-button {
  width: min(100%, 320px);
}

.nav-brand strong {
  color: var(--cyan);
  font-size: 1.05rem;
  line-height: 1.1;
}

.nav-brand span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px solid #41b6f2;
  border-radius: 9px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  background: #0070ba;
  box-shadow: 0 6px 18px rgba(0, 112, 186, 0.28);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.support-button:hover {
  border-color: #78cff8;
  background: #005ea6;
  transform: translateY(-1px);
}

.support-button:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.45);
  outline-offset: 3px;
}

.nav-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.global-nav > *,
.system-strip > * {
  min-width: 0;
}

.system-strip > *,
.top-bar h1,
.top-bar p,
.panel h2,
.panel h3,
.panel p,
.panel strong,
.panel span,
.panel dt,
.panel dd {
  overflow-wrap: anywhere;
}

.nav-status div {
  min-width: 0;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid rgba(31, 77, 120, 0.62);
  border-radius: 8px;
  background: rgba(15, 31, 51, 0.72);
}

.nav-status span,
.nav-controls span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-status strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.nav-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.nav-controls label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nav-controls select,
.region-selector {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--text);
  background: #07111f;
  outline: none;
}

.nav-controls select:focus,
.region-selector:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.observatory-shell {
  width: min(95vw, 2560px);
  max-width: 2560px;
  min-width: 0;
  margin-inline: auto;
  min-height: 100vh;
  padding: 16px clamp(16px, 2vw, 32px) 18px;
}

.pcs-update-banner {
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(10, 31, 49, 0.96), rgba(11, 24, 42, 0.94));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.pcs-update-banner__heading,
.pcs-update-banner__identity,
.pcs-update-banner__content,
.pcs-update-banner__meta {
  display: flex;
  align-items: center;
}

.pcs-update-banner__heading {
  justify-content: space-between;
  gap: 12px;
}

.pcs-update-banner__identity,
.pcs-update-banner__meta {
  flex-wrap: wrap;
  gap: 8px;
}

.pcs-update-banner__label {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pcs-update-banner__phase,
.pcs-update-banner__status {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
}

.pcs-update-banner__status {
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.55);
}

.pcs-update-banner__content { display: block; padding-top: 12px; }

.pcs-update-banner__summary { padding-top: 8px; }

.pcs-update-banner__summary h2 {
  margin: 0 0 4px;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
}

.pcs-update-banner__summary p {
  max-width: 78ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.pcs-release-banner__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pcs-release-banner__coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 750;
}

.pcs-release-banner__coverage li {
  position: relative;
}

.pcs-release-banner__coverage li:not(:last-child)::after {
  position: absolute;
  left: calc(100% + 6px);
  color: var(--cyan);
  content: "→";
}

.pcs-update-banner__summary .pcs-release-banner__next {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.pcs-release-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pcs-release-banner__actions button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text);
  background: rgba(5, 15, 28, 0.9);
  cursor: pointer;
}

.pcs-release-banner__actions button:first-child {
  color: var(--cyan);
  background: rgba(28, 116, 144, 0.14);
}

.pcs-release-banner__actions button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.pcs-update-banner__meta {
  flex: 0 0 auto;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.75rem;
}

.pcs-update-banner__details {
  color: var(--cyan);
  font-weight: 800;
}

.pcs-update-banner__toggle {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: rgba(7, 17, 31, 0.88);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
}

.pcs-update-banner__toggle:focus-visible,
.pcs-update-banner__details:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.pcs-update-banner.is-collapsed .pcs-update-banner__content {
  display: none;
}

.pcs-update-banner:not(.is-release-center-open) .pcs-update-banner__content {
  display: none;
}

.pcs-update-banner.is-collapsed .pcs-update-banner__summary {
  display: none;
}

.pcs-release-banner__columns {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.pcs-release-banner__info {
  flex: 0 1 46%;
  min-width: 0;
}

.pcs-release-video {
  flex: 1 1 54%;
  min-width: 0;
  align-self: center;
}

.pcs-release-video__facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  padding: 0;
}

.pcs-release-video__facade img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.2s;
}

.pcs-release-video__facade:hover img,
.pcs-release-video__facade:focus-visible img {
  opacity: 1;
}

.pcs-release-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform 0.2s;
}

.pcs-release-video__facade:hover .pcs-release-video__play {
  transform: translate(-50%, -50%) scale(1.12);
}

.pcs-release-video__facade:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.pcs-release-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 10px;
  background: var(--bg);
}

.pcs-release-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pcs-release-tabs { display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: 0; z-index: 1; padding: 4px 0 10px; background: rgba(9, 25, 43, 0.98); }
.pcs-release-tabs button { min-height: 36px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 7px; color: var(--muted); background: rgba(5, 15, 28, 0.9); cursor: pointer; }
.pcs-release-tabs button[aria-selected="true"] { color: var(--cyan); border-color: var(--cyan); background: rgba(28, 116, 144, 0.14); }
.pcs-release-tabs button:focus-visible, .pcs-release-view a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.pcs-release-view { max-height: min(62vh, 680px); overflow: auto; overscroll-behavior: contain; padding: 2px 4px 8px 0; color: var(--text); scrollbar-gutter: stable; }
.pcs-release-view h3 { margin: 16px 0 7px; color: var(--cyan); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.pcs-release-view p, .pcs-release-view li { font-size: .78rem; line-height: 1.5; }
.pcs-release-view ul { margin: 5px 0; padding-left: 20px; }
.pcs-release-view a { color: var(--cyan); font-weight: 750; overflow-wrap: anywhere; }
.pcs-release-metadata { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 8px; margin: 0; }
.pcs-release-metadata div { padding: 9px; border: 1px solid var(--border); border-radius: 7px; background: rgba(3, 12, 23, .5); }
.pcs-release-metadata dt { color: var(--muted); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.pcs-release-metadata dd { margin: 4px 0 0; font-size: .82rem; font-weight: 800; }
.pcs-release-grid, .pcs-release-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.pcs-release-checklist { list-style: "✓  "; }
.pcs-release-checklist li span { display: block; color: var(--muted); }
.pcs-release-status { display: inline-block; padding: 2px 7px; border: 1px solid var(--border); border-radius: 999px; font-size: .68rem; white-space: nowrap; }
.pcs-release-status[data-status="completed"], .pcs-release-status[data-status="stable"] { color: #8bd5d9; }
.pcs-release-status[data-status="in-progress"] { color: var(--amber); }
.pcs-release-status[data-status="planned"], .pcs-release-status[data-status="waiting"], .pcs-release-status[data-status="deferred"] { color: var(--muted); }
.pcs-roadmap { display: grid; gap: 7px; padding: 0; list-style: none; }
.pcs-roadmap li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px; border: 1px solid var(--border); border-radius: 7px; }
.pcs-roadmap li div span { display: block; color: var(--muted); }
.pcs-roadmap .pcs-roadmap-items { margin: 6px 0 0; padding-left: 18px; color: var(--text); }
.pcs-roadmap .pcs-roadmap-items li { display: list-item; padding: 0; border: 0; border-radius: 0; }
.pcs-roadmap-symbol { color: var(--cyan); }
.pcs-release-link-list { padding: 0 !important; list-style: none; }
.pcs-release-link-list li { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.pcs-release-link-list code { overflow-wrap: anywhere; color: var(--muted); }
.pcs-release-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pcs-release-record { border-left: 3px solid var(--cyan); padding-left: 12px; }
.pcs-release-record span { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.pcs-release-record h3 { margin-top: 4px; }
.pcs-release-notice { padding: 8px 10px; border-left: 2px solid var(--cyan); background: rgba(28, 116, 144, .1); }

@media (max-width: 620px) {
  .pcs-update-banner {
    padding: 10px;
  }

  .pcs-update-banner__heading,
  .pcs-update-banner__content {
    align-items: flex-start;
  }

  .pcs-update-banner__content {
    flex-direction: column;
    gap: 8px;
  }

  .pcs-update-banner__meta {
    justify-content: flex-start;
  }

  .pcs-release-banner__coverage {
    display: grid;
    gap: 5px;
  }

  .pcs-release-banner__coverage li:not(:last-child)::after {
    position: static;
    margin-left: 7px;
  }

  .pcs-release-banner__columns {
    flex-direction: column;
    gap: 14px;
  }

  .pcs-release-banner__info,
  .pcs-release-video {
    flex: none;
    width: 100%;
  }

  .pcs-release-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pcs-release-banner__actions button {
    width: 100%;
  }

  .pcs-release-metadata, .pcs-release-grid, .pcs-release-columns { grid-template-columns: 1fr; }
  .pcs-release-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcs-release-tabs button { min-width: 0; }
  .pcs-release-view { max-height: 66vh; scrollbar-gutter: auto; }
  .pcs-release-link-list li { grid-template-columns: 1fr; gap: 4px; }
  .pcs-release-link-list code { max-width: 100%; }
  .pcs-roadmap li { grid-template-columns: 20px minmax(0, 1fr); }
  .pcs-roadmap .pcs-release-status { grid-column: 2; justify-self: start; }
}

.top-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(8, 20, 38, 0.94), rgba(3, 10, 21, 0.92));
  box-shadow: var(--shadow);
}

.top-bar > *,
.panel-heading > *,
.dashboard-layout > *,
.bottom-grid > * {
  min-width: 0;
}

.eyebrow,
.panel-label {
  display: block;
  margin: 0;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 4px 0 0;
  font-size: clamp(1.45rem, 2.8vw, 2.65rem);
  line-height: 1;
}

h2 {
  margin: 4px 0 0;
  font-size: clamp(1.08rem, 1.4vw, 1.45rem);
  line-height: 1.1;
}

h3 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.15;
}

.system-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 0;
}

.region-control {
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(57, 213, 255, 0.24);
  border-radius: 8px;
  background: rgba(57, 213, 255, 0.06);
}

.region-selector {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--text);
  background: #07111f;
  outline: none;
}

.region-selector:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(57, 213, 255, 0.16);
}

.region-control strong {
  color: var(--cyan);
  font-size: 1rem;
}

.region-control span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
  gap: var(--pcs-panel-gap);
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: var(--pcs-panel-gap);
}

.primary-workspace,
.secondary-workspace,
.bottom-primary-column,
.bottom-secondary-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--pcs-panel-gap);
  min-width: 0;
}

.upper-workspace-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(620px, 2fr);
  gap: var(--pcs-panel-gap);
  align-items: start;
  min-width: 0;
}

.research-zone-heading {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(9, 27, 46, 0.94), rgba(4, 12, 23, 0.9));
}

.research-zone-heading h2 { margin-top: 5px; }
.research-zone-heading p { margin: 7px 0 0; color: var(--muted); font-size: 0.76rem; line-height: 1.45; }
.analysis-zone-heading { border-left-color: var(--amber); }
.secondary-zone-heading { border-left-color: var(--muted); }

.model-stage > .globe-panel {
  border-color: rgba(34, 211, 238, 0.62);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.48), 0 0 30px rgba(34, 211, 238, 0.06);
}

.analysis-capability-panel,
.research-lab-panel { padding: 16px; }

.analysis-capability-panel { border-color: rgba(245, 158, 11, 0.34); }

.analysis-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.analysis-capability-grid > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(245, 158, 11, 0.17);
  border-radius: 7px;
  background: rgba(245, 158, 11, 0.035);
}

.analysis-capability-grid dt { color: #ffd479; font-size: 0.74rem; font-weight: 800; }
.analysis-capability-grid dd { margin: 4px 0 0; color: var(--muted); font-size: 0.72rem; line-height: 1.4; overflow-wrap: anywhere; }

.research-lab-panel {
  min-height: 0;
  border-color: rgba(59, 130, 246, 0.52);
  background: linear-gradient(180deg, rgba(10, 29, 53, 0.96), rgba(5, 15, 29, 0.95));
}

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

.research-tabs button {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(59, 130, 246, 0.38);
  border-radius: 6px;
  padding: 8px 9px;
  color: var(--muted);
  background: rgba(5, 17, 34, 0.86);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.research-tabs button[aria-selected="true"],
.research-tabs button:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.09);
  outline: 2px solid rgba(34, 211, 238, 0.2);
  outline-offset: 1px;
}

.research-tab-panel {
  min-height: 0;
  max-height: min(72vh, 760px);
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 8px;
  background: rgba(2, 10, 21, 0.58);
  scrollbar-width: thin;
}

.research-tab-panel > * + * { margin-top: 12px; }
.research-status-card,
.research-empty-state { padding: 12px; border: 1px solid rgba(34, 211, 238, 0.18); border-radius: 7px; background: rgba(34, 211, 238, 0.035); }
.research-status-card h3 { margin-top: 5px; color: var(--text); }
.research-status-card p,
.research-empty-state p { margin: 7px 0 0; color: var(--muted); font-size: 0.76rem; line-height: 1.5; }
.research-empty-state > strong { color: var(--amber); letter-spacing: 0.04em; }

.comparison-status-key { display: flex; flex-wrap: wrap; gap: 7px; }
.comparison-status-key span { padding: 6px 8px; border: 1px solid rgba(142, 168, 189, 0.28); border-radius: 999px; color: var(--muted); font-size: 0.66rem; font-weight: 800; }

.research-tab-panel .pcs-analysis-panel,
.research-tab-panel .satellite-information-panel {
  margin: 0;
  border-color: rgba(59, 130, 246, 0.24);
  box-shadow: none;
  background: rgba(7, 22, 39, 0.72);
}

.alert-schema { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(245, 158, 11, 0.22); }
.alert-schema summary { color: #ffd479; font-size: 0.76rem; font-weight: 800; cursor: pointer; }
.alert-schema p { margin: 8px 0; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.alert-schema strong { color: var(--amber); font-size: 0.72rem; }

.research-input-panel {
  min-height: 0;
  padding: 16px;
  border-color: rgba(59, 130, 246, 0.6);
  background: linear-gradient(180deg, rgba(8, 28, 53, 0.97), rgba(4, 14, 29, 0.96));
}

.research-input-panel > .panel-note { margin: 0 0 14px; }

.research-input-block {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  background: rgba(3, 11, 24, 0.62);
}

.research-input-block h3 { color: #8fcbff; letter-spacing: 0.055em; }

.research-file-drop,
.research-field,
.research-library-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.research-file-drop {
  padding: 11px;
  border: 1px dashed rgba(91, 164, 255, 0.48);
  border-radius: 7px;
  background: rgba(59, 130, 246, 0.05);
}

.research-file-drop input,
.research-field input,
.research-field textarea,
.research-library-grid select,
.research-search-row input,
.mapping-toolbar select,
.event-filter-bar input,
.event-filter-bar select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(91, 164, 255, 0.34);
  border-radius: 6px;
  padding: 8px 9px;
  color: var(--text);
  background: #06111f;
}

.research-field textarea { resize: vertical; }
.research-library-grid { display: grid; gap: 8px; }
.research-connection-state { margin: 0; color: var(--amber); font-size: 0.69rem; font-weight: 850; letter-spacing: 0.04em; }
.research-registry-details { display: grid; gap: 5px; padding: 8px 9px; border: 1px solid rgba(91, 164, 255, 0.18); border-radius: 6px; background: rgba(3, 11, 24, 0.48); }
.research-registry-details p { margin: 0; color: var(--muted); font-size: 0.66rem; line-height: 1.45; overflow-wrap: anywhere; }
.research-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.queue-heading, .event-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.queue-heading > span, .event-section-heading > span, #event-stream-count { color: var(--muted); font-size: 0.66rem; font-weight: 850; letter-spacing: 0.04em; }
.compare-queue-list { display: grid; gap: 7px; min-height: 88px; margin: 0; padding: 0; list-style: none; }
.compare-queue-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border: 1px solid rgba(91, 164, 255, 0.18); border-radius: 6px; color: var(--muted); font-size: 0.72rem; background: rgba(255, 255, 255, 0.025); }
.compare-queue-list li span { min-width: 0; overflow-wrap: anywhere; }
.compare-queue-list button { border: 0; color: #8fcbff; background: transparent; font-size: 0.62rem; font-weight: 850; cursor: pointer; }
.queue-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.research-queue-item { align-items: stretch !important; }
.queue-item-meta { display: grid; gap: 2px; flex: 1; }
.queue-item-meta b { color: var(--cyan); font-size: 0.6rem; letter-spacing: 0.08em; }
.queue-item-meta > span { color: var(--text); font-weight: 760; }
.queue-item-meta small { color: var(--muted); }
.queue-item-meta em { color: var(--green); font-size: 0.62rem; font-style: normal; font-weight: 850; }
.queue-item-actions { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
#compare-queue-status[data-status="error"] { color: var(--red); }

.panel.model-mapping-panel {
  width: calc(150% + 14px);
  max-width: none;
  min-height: 0;
  margin-left: calc(-50% - 14px);
  padding: 16px;
  border-color: rgba(239, 84, 58, 0.5);
  background: linear-gradient(180deg, rgba(12, 24, 40, 0.98), rgba(3, 9, 19, 0.97));
}
.mapping-workspace-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.mapping-workspace-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.mapping-workspace-controls .framework-button { min-height: 34px; padding: 7px 10px; font-size: 0.61rem; }
body.generic-model-space-overlay-active { overflow: hidden; }
.panel.model-mapping-panel.is-pinned,
.panel.model-mapping-panel.is-maximized {
  position: fixed;
  inset: 14px;
  z-index: 10020;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.72);
}
.panel.model-mapping-panel.is-pinned { inset: 42px; border-color: rgba(123, 195, 239, 0.62); }
.panel.model-mapping-panel.is-maximized { inset: 8px; border-color: rgba(214, 180, 255, 0.66); }
.panel.model-mapping-panel.is-pinned .mapping-research-profile,
.panel.model-mapping-panel.is-pinned .mapping-mathematical-profile,
.panel.model-mapping-panel.is-maximized .mapping-research-profile,
.panel.model-mapping-panel.is-maximized .mapping-mathematical-profile,
.panel.model-mapping-panel.is-popout-workspace .mapping-research-profile,
.panel.model-mapping-panel.is-popout-workspace .mapping-mathematical-profile { max-height: 132px; overflow: auto; }
.panel.model-mapping-panel.is-pinned .mapping-viewport,
.panel.model-mapping-panel.is-maximized .mapping-viewport,
.panel.model-mapping-panel.is-popout-workspace .mapping-viewport { height: max(68vh, 600px); min-height: 600px; }
body.generic-model-space-popout { min-width: 0; margin: 0; padding: 12px; overflow: auto; background: #020812; }
body.generic-model-space-popout > :not(.model-mapping-panel) { display: none !important; }
body.generic-model-space-popout > .panel.model-mapping-panel { position: relative; inset: auto; width: 100%; max-width: none; min-height: calc(100vh - 24px); margin: 0; }
body.generic-model-space-popout > .panel.model-mapping-panel.is-maximized { position: fixed; inset: 8px; width: auto; min-height: 0; }

.mapping-toolbar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto auto auto;
  gap: 8px;
  margin-bottom: 12px;
}

.mapping-toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 0.64rem; font-weight: 850; }
.mapping-viewport { container-type: size; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; height: clamp(560px, 66vh, 820px); min-height: 560px; padding: 22px; overflow: hidden; border: 1px solid rgba(239, 84, 58, 0.3); border-radius: 8px; background: radial-gradient(circle at 50% 46%, rgba(31, 94, 137, 0.2), transparent 42%), linear-gradient(180deg, #061321, #030b16); }
.mapping-camera-pad { z-index: 5; }
.mapping-camera-pad .pcs-gms-camera-button:disabled { cursor: not-allowed; opacity: 0.38; }
.mapping-viewport::before { content: ""; position: absolute; inset: 0; opacity: 0.36; background-image: linear-gradient(rgba(89, 138, 176, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(89, 138, 176, 0.08) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle, #000, transparent 70%); }
.neutral-sphere { position: relative; width: min(70%, 620px); width: clamp(430px, 83cqh, 620px); aspect-ratio: 1; flex: 0 0 auto; border: 1px solid rgba(158, 188, 214, 0.7); border-radius: 50%; background: radial-gradient(circle at 36% 31%, rgba(183, 211, 233, 0.2), rgba(65, 95, 122, 0.13) 32%, rgba(7, 17, 29, 0.82) 70%); box-shadow: inset -28px -20px 54px rgba(0, 0, 0, 0.72), 0 0 60px rgba(104, 158, 194, 0.12); }
.neutral-sphere::before, .neutral-sphere::after { content: ""; position: absolute; inset: 13%; border: 1px solid rgba(158, 188, 214, 0.27); border-radius: 50%; }
.neutral-sphere::before { transform: rotateX(64deg); }
.neutral-sphere::after { transform: rotateY(64deg); }
.neutral-sphere-axis { position: absolute; top: 50%; left: 50%; width: 112%; height: 1px; background: linear-gradient(90deg, transparent, rgba(139, 181, 211, 0.34), transparent); transform-origin: center; }
.neutral-sphere-axis-y { transform: translate(-50%, -50%) rotate(90deg); }
.neutral-sphere-axis-x { transform: translate(-50%, -50%); }
.neutral-sphere-axis-z { transform: translate(-50%, -50%) rotate(-34deg); }
.mapping-empty-state { position: relative; z-index: 1; width: min(90%, 560px); flex: 0 0 auto; padding: 12px; border: 1px solid rgba(142, 168, 189, 0.2); border-radius: 7px; text-align: center; background: rgba(2, 7, 16, 0.9); }
.mapping-empty-state strong { color: var(--text); }
.mapping-empty-state p { margin: 5px 0; color: var(--muted); font-size: 0.78rem; }
.mapping-empty-state span, .mapping-scope-note { color: var(--muted); font-size: 0.67rem; font-weight: 800; }
.mapping-scope-note { margin: 10px 0 0; line-height: 1.5; }
.research-graph-svg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; touch-action: none; user-select: none; }
.research-graph-edge { stroke: var(--pcs-structure-edge, rgba(123, 195, 239, 0.62)); stroke-width: 1.8; vector-effect: non-scaling-stroke; transition: opacity 140ms ease, stroke 140ms ease, stroke-width 140ms ease; }
.research-graph-edge.is-comparison { stroke: #ffc45c; stroke-width: 2.2; stroke-dasharray: 7 5; }
.research-graph-edge.is-related { stroke: var(--pcs-structure-selected, #67e8f9); stroke-width: 3.4; opacity: 1; }
.research-graph-svg.has-selection .research-graph-edge:not(.is-related) { opacity: 0.18; }
.research-graph-node { cursor: pointer; outline: none; transition: opacity 140ms ease; }
.research-graph-node circle { fill: var(--pcs-structure-node-fill, #16466a); stroke: var(--pcs-structure-node-stroke, #8bd5ff); stroke-width: 2.3; vector-effect: non-scaling-stroke; transition: fill 140ms ease, stroke 140ms ease, stroke-width 140ms ease, filter 140ms ease; }
.research-graph-node text { fill: var(--pcs-structure-label, #f4fbff); font-size: 13px; font-weight: 760; letter-spacing: 0.015em; text-anchor: middle; paint-order: stroke fill; stroke: #020812; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; opacity: 0; transition: opacity 140ms ease; }
.research-graph-node.is-label-visible text, .research-graph-node:hover text, .research-graph-node:focus-visible text, .research-graph-node.is-selected text, .research-graph-node.is-related text { opacity: 1; }
.research-graph-node.node-document circle, .research-graph-node.node-model circle { fill: var(--pcs-structure-node-fill, #08758c); stroke: var(--pcs-structure-node-stroke, #baf5ff); stroke-width: 3; filter: drop-shadow(0 0 9px rgba(34, 211, 238, 0.5)); }
.research-graph-node.node-equation circle { fill: var(--pcs-structure-node-fill, #76501a); stroke: var(--pcs-structure-node-stroke, #ffd27a); }
.research-graph-node.node-variable circle, .research-graph-node.node-parameter circle, .research-graph-node.node-input circle, .research-graph-node.node-output circle { fill: var(--pcs-structure-node-fill, #235c80); stroke: var(--pcs-structure-node-stroke, #a7ddff); }
.research-graph-node.node-reference circle { fill: var(--pcs-structure-node-fill, #55356d); stroke: var(--pcs-structure-node-stroke, #ddb5ff); }
.research-graph-node.node-method circle, .research-graph-node.node-result circle, .research-graph-node.node-dataset circle { fill: var(--pcs-structure-node-fill, #1c5360); stroke: var(--pcs-structure-node-stroke, #9de8e4); }
.research-graph-node:hover circle, .research-graph-node:focus-visible circle { stroke: #fff; stroke-width: 3.2; filter: drop-shadow(0 0 8px rgba(186, 245, 255, 0.7)); }
.research-graph-node.is-related circle { stroke: #dffaff; stroke-width: 3.3; filter: drop-shadow(0 0 7px rgba(103, 232, 249, 0.55)); }
.research-graph-node.is-selected circle { fill: var(--pcs-structure-selected, #0f92a8); stroke: #fff; stroke-width: 4.5; filter: drop-shadow(0 0 13px rgba(103, 232, 249, 0.95)); }
.research-graph-svg.has-selection .research-graph-node:not(.is-selected):not(.is-related) { opacity: 0.52; }
.research-graph-node.is-selected text, .research-graph-node.is-related text { fill: #fff; font-weight: 900; }
.structure-space-safety { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; padding: 9px 12px; border: 1px solid rgba(103, 232, 249, 0.42); border-radius: 8px; background: rgba(3, 15, 27, 0.94); color: #c8f6ff; font-size: 10px; font-weight: 800; letter-spacing: 0.07em; }
.structure-space-safety[hidden], .structure-space-inspection-control[hidden] { display: none !important; }
.structure-space-safety span:first-child { color: #67e8f9; }
.structure-space-inspection-control { min-width: 96px; }
#mapping-structure-space-toggle[aria-pressed="true"] { border-color: #67e8f9; color: #e9fdff; box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.22) inset; }
.pcs-palette-editor { position: relative; z-index: 6; align-self: start; min-width: 210px; padding: 7px 9px; border: 1px solid rgba(123,195,239,.28); border-radius: 7px; background: rgba(3,12,23,.94); color: var(--text); }
.pcs-palette-editor summary { cursor: pointer; color: #bcecff; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.pcs-palette-note { margin: 8px 0; color: var(--muted); font-size: 9px; font-weight: 750; line-height: 1.4; }
.pcs-palette-fields { display: grid; grid-template-columns: repeat(2, minmax(78px, 1fr)); gap: 8px; }
.pcs-palette-fields label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; font-weight: 800; }
.pcs-palette-fields input[type="color"] { width: 36px; height: 32px; padding: 2px; border: 1px solid rgba(123,195,239,.3); border-radius: 5px; background: #071321; cursor: pointer; }
.pcs-palette-reset { margin-top: 9px; width: 100%; }
.mapping-structure-badge { font-size: 11px; letter-spacing: 0.08em; color: #7bc3ef; padding: 3px 10px; background: rgba(123, 195, 239, 0.08); border-left: 2px solid rgba(123, 195, 239, 0.35); margin: 4px 0 0 0; }
.mapping-phenomenon-controls { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(130px, 1fr)) auto; gap: 8px; align-items: end; margin: 8px 0 12px; padding: 10px; border: 1px solid rgba(123, 195, 239, 0.22); border-radius: 7px; background: rgba(3, 12, 23, 0.78); }
.mapping-phenomenon-controls[hidden] { display: none; }
.mapping-phenomenon-controls label, .mapping-phenomenon-controls > div { display: grid; gap: 5px; min-width: 0; }
.mapping-phenomenon-controls span { color: var(--muted); font-size: 0.56rem; font-weight: 850; letter-spacing: 0.06em; }
.mapping-phenomenon-controls strong { min-height: 31px; padding: 8px 9px; border: 1px solid rgba(91, 164, 255, 0.14); border-radius: 5px; color: var(--text); font-size: 0.67rem; overflow-wrap: anywhere; }
.phenomenon-svg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; user-select: none; }
.phenomenon-title { fill: #e8f6ff; font-size: 22px; font-weight: 820; letter-spacing: 0.02em; }
.phenomenon-subtitle, .phenomenon-data-status { fill: #88a7bd; font-size: 12px; font-weight: 760; letter-spacing: 0.07em; }
.phenomenon-region-label { fill: #b9d5e8; font-size: 12px; font-weight: 820; letter-spacing: 0.08em; }
.phenomenon-flow-domain, .phenomenon-field-domain { fill: rgba(19, 58, 82, 0.24); stroke: rgba(133, 191, 225, 0.48); stroke-width: 2; }
.phenomenon-streamline, .phenomenon-vector { fill: none; stroke: #8ac8e8; stroke-width: 2.6; opacity: 0.82; }
.phenomenon-streamline.is-unstable { stroke: #d8a960; stroke-dasharray: 8 6; }
.phenomenon-transition-boundary, .phenomenon-boundary-axis { stroke: rgba(231, 186, 112, 0.7); stroke-width: 2; stroke-dasharray: 7 7; }
.phenomenon-arrow-head { fill: #9fd6ef; }
.phenomenon-surface-body { fill: rgba(23, 67, 91, 0.32); stroke: #91cbe6; stroke-width: 2.5; }
.phenomenon-surface-grid, .phenomenon-earth-grid { fill: none; stroke: rgba(139, 198, 226, 0.28); stroke-width: 1.2; }
.phenomenon-deformation-outline { fill: none; stroke: rgba(230, 184, 108, 0.72); stroke-width: 2.2; stroke-dasharray: 9 7; }
.phenomenon-local-patch { fill: rgba(95, 178, 214, 0.2); stroke: #9bd7ef; stroke-width: 2; }
.phenomenon-state-region { stroke-width: 2; }
.phenomenon-state-region.is-ordered { fill: rgba(42, 101, 126, 0.24); stroke: #82c8df; }
.phenomenon-state-region.is-transition { fill: rgba(144, 113, 55, 0.15); stroke: #d1a760; stroke-dasharray: 7 5; }
.phenomenon-state-region.is-disordered { fill: rgba(95, 70, 73, 0.18); stroke: #bb8d90; }
.phenomenon-order-line, .phenomenon-transition-curve, .phenomenon-contour-line { fill: none; stroke: #83c5df; stroke-width: 2; }
.phenomenon-transition-curve { stroke: #d1a760; stroke-dasharray: 6 5; }
.phenomenon-disorder-point { fill: #c49a9d; }
.phenomenon-earth-body { fill: rgba(22, 76, 100, 0.26); stroke: #85c5df; stroke-width: 2.5; }
.phenomenon-callout-line { stroke: rgba(139, 198, 226, 0.55); stroke-width: 1.5; }
.phenomenon-variable-label { fill: #d8edf7; font-size: 13px; font-weight: 790; }
.phenomenon-shell-layer { fill: rgba(29, 77, 102, 0.06); stroke: rgba(127, 191, 219, 0.75); stroke-width: 2; }
.phenomenon-shell-layer.layer-1, .phenomenon-shell-layer.layer-3 { stroke-dasharray: 8 5; }
.phenomenon-contour-line { stroke: rgba(134, 197, 222, 0.66); }
.phenomenon-wave-axis { stroke: rgba(136, 168, 189, 0.45); stroke-width: 1.5; }
.phenomenon-wave-path, .phenomenon-trajectory-path { fill: none; stroke: #8ac8e8; stroke-width: 3; }
.phenomenon-trajectory-state { fill: #16466a; stroke: #a5daef; stroke-width: 2; }
.phenomenon-component { cursor: pointer; outline: none; }
.phenomenon-component rect { fill: rgba(3, 15, 27, 0.94); stroke: rgba(125, 190, 220, 0.48); stroke-width: 1.5; }
.phenomenon-component:hover rect, .phenomenon-component:focus-visible rect, .phenomenon-component.is-selected rect, .phenomenon-component.is-cross-linked rect { stroke: #dff7ff; stroke-width: 2.6; }
.phenomenon-component.is-selected rect { fill: rgba(19, 95, 118, 0.9); }
.phenomenon-component-label { fill: #edf9ff; font-size: 12px; font-weight: 800; text-anchor: middle; }
.phenomenon-component-status { fill: #82a5ba; font-size: 8px; font-weight: 760; letter-spacing: 0.04em; text-anchor: middle; }
.research-graph-node.is-cross-linked circle { stroke: #fff0b5; stroke-width: 4; }
.mapping-research-profile { margin: 8px 0 12px; padding: 10px; border: 1px solid rgba(123, 195, 239, 0.2); border-radius: 7px; background: rgba(3, 12, 23, 0.72); }
.mapping-research-profile h3 { margin: 0; color: var(--cyan); font-size: 0.72rem; letter-spacing: 0.08em; }
.mapping-research-profile > p { margin: 4px 0 8px; color: var(--muted); font-size: 0.66rem; }
.mapping-research-profile dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 0; }
.mapping-research-profile dl > div { min-width: 0; padding: 7px; border: 1px solid rgba(91, 164, 255, 0.12); border-radius: 5px; }
.mapping-research-profile dl > .research-profile-artifact { border-color: rgba(255, 196, 92, 0.32); background: rgba(255, 196, 92, 0.05); }
.mapping-research-profile dt { color: var(--muted); font-size: 0.56rem; font-weight: 850; letter-spacing: 0.05em; }
.mapping-research-profile dd { margin: 4px 0; color: var(--text); font-size: 0.72rem; overflow-wrap: anywhere; }
.mapping-research-profile small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.59rem; line-height: 1.35; overflow-wrap: anywhere; }
.research-profile-status { display: inline-block; padding: 2px 5px; border: 1px solid rgba(123, 195, 239, 0.3); border-radius: 999px; color: #7bc3ef; font-size: 0.53rem; font-weight: 850; }
.mapping-mathematical-profile { margin: 8px 0 12px; padding: 10px; border: 1px solid rgba(188, 134, 255, 0.28); border-radius: 7px; background: rgba(12, 7, 25, 0.76); }
.mathematical-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mapping-mathematical-profile h3 { margin: 0; color: #d6b4ff; font-size: 0.72rem; letter-spacing: 0.08em; }
.mapping-mathematical-profile p { margin: 4px 0 8px; color: var(--muted); font-size: 0.66rem; }
.mapping-mathematical-profile dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 0; }
.mapping-mathematical-profile dl > div { min-width: 0; padding: 7px; border: 1px solid rgba(188, 134, 255, 0.16); border-radius: 5px; }
.mapping-mathematical-profile .mathematical-profile-primary { border-color: rgba(214, 180, 255, 0.42); background: rgba(188, 134, 255, 0.08); }
.mapping-mathematical-profile .mathematical-profile-artifact { border-color: rgba(255, 196, 92, 0.32); }
.mapping-mathematical-profile .mathematical-profile-renderer { border-color: rgba(123, 195, 239, 0.28); }
.mapping-mathematical-profile dt { color: var(--muted); font-size: 0.56rem; font-weight: 850; letter-spacing: 0.05em; }
.mapping-mathematical-profile dd { margin: 4px 0; color: var(--text); font-size: 0.7rem; line-height: 1.45; overflow-wrap: anywhere; }
.mapping-mathematical-profile small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.57rem; line-height: 1.35; overflow-wrap: anywhere; }
.mathematical-profile-value { appearance: none; margin: 0; padding: 0; border: 0; color: #e6d4ff; background: transparent; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(214, 180, 255, 0.4); text-underline-offset: 2px; }
.mathematical-profile-value:hover:not(:disabled), .mathematical-profile-value:focus-visible, .mathematical-profile-value.is-selected { color: #fff; text-decoration-color: #d6b4ff; outline: none; }
.mathematical-profile-value:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.research-graph-node.node-tier-1 circle { fill: rgba(123, 195, 239, 0.18); stroke: #7bc3ef; stroke-width: 2; }
.research-graph-node.node-tier-2 circle { fill: rgba(123, 195, 239, 0.10); stroke: rgba(123, 195, 239, 0.7); stroke-width: 1.5; }
.research-graph-node.node-tier-3 circle { fill: rgba(123, 195, 239, 0.06); stroke: rgba(123, 195, 239, 0.45); stroke-width: 1; }
.research-graph-node.node-tier-4 circle { fill: rgba(123, 195, 239, 0.03); stroke: rgba(123, 195, 239, 0.25); stroke-width: 0.8; }
.research-graph-edge.is-flow { stroke: rgba(123, 195, 239, 0.45); stroke-dasharray: none; }
.research-graph-edge.is-dependency { stroke: rgba(123, 195, 239, 0.5); }
.research-graph-node.node-theorem circle, .research-graph-node.node-proposition circle, .research-graph-node.node-lemma circle, .research-graph-node.node-corollary circle { fill: #153d57; stroke: #a8e4ff; stroke-width: 3; }
.research-graph-node.node-definition circle, .research-graph-node.node-assumption circle, .research-graph-node.node-hypothesis circle, .research-graph-node.node-conjecture circle { fill: #243955; stroke: #9db8dc; stroke-dasharray: 4 2; }
.research-graph-node.node-proof circle { fill: #3f3520; stroke: #f3cc75; stroke-width: 2.4; }
.research-evidence-inspector, .research-export-panel { margin-top: 12px; padding: 12px; border: 1px solid rgba(34, 211, 238, 0.22); border-radius: 8px; background: rgba(3, 12, 23, 0.84); }
.research-evidence-inspector h3, .research-export-panel h3 { color: var(--cyan); letter-spacing: 0.06em; }
.research-evidence-inspector dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 10px 0 0; }
.research-evidence-inspector dl > div { padding: 7px; border: 1px solid rgba(91, 164, 255, 0.14); border-radius: 5px; overflow-wrap: anywhere; }
.research-evidence-inspector dt { color: var(--muted); font-size: 0.59rem; font-weight: 850; letter-spacing: 0.06em; }
.research-evidence-inspector dd { margin: 4px 0 0; color: var(--text); font-size: 0.78rem; line-height: 1.5; }
.research-export-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }

.event-analysis-center { min-height: 0; padding: 18px; border-color: rgba(250, 214, 75, 0.58); background: linear-gradient(180deg, rgba(25, 27, 27, 0.97), rgba(8, 15, 24, 0.97)); }
.event-analysis-center > .panel-note { margin: 0 0 14px; }
.event-stream-section, .selected-event-section, .alert-evidence-section { padding: 14px; border: 1px solid rgba(250, 214, 75, 0.2); border-radius: 8px; background: rgba(7, 12, 21, 0.72); }
.selected-event-section, .alert-evidence-section { margin-top: 14px; }
.event-filter-bar { display: grid; grid-template-columns: minmax(180px, 1.35fr) repeat(3, minmax(120px, 0.8fr)) repeat(2, minmax(120px, 0.65fr)); gap: 8px; margin: 12px 0; }
.event-filter-bar label { display: grid; gap: 4px; color: var(--muted); font-size: 0.61rem; font-weight: 850; }
.event-table { border: 1px solid rgba(250, 214, 75, 0.15); border-radius: 7px; overflow: hidden; }
.event-table-head { display: grid; grid-template-columns: 0.9fr 0.8fr 2.2fr 1fr 0.75fr 0.8fr; gap: 8px; padding: 9px 10px; color: #ffe974; background: rgba(250, 214, 75, 0.06); font-size: 0.62rem; font-weight: 850; }
.event-stream-list { min-height: 0; max-height: clamp(320px, 48vh, 620px); overflow-y: auto; scrollbar-width: thin; }
.event-stream-row { display: grid; grid-template-columns: 0.9fr 0.8fr 2.2fr 1fr 0.75fr 0.8fr; gap: 8px; width: 100%; padding: 10px; border: 0; border-top: 1px solid rgba(250, 214, 75, 0.1); color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.event-stream-row:first-child { border-top: 0; }
.event-stream-row:hover, .event-stream-row[aria-selected="true"] { background: rgba(250, 214, 75, 0.08); }
.event-stream-row[aria-selected="true"] { box-shadow: inset 3px 0 #ffe974; }
.event-stream-row:focus-visible { outline: 2px solid #ffe974; outline-offset: -3px; }
.event-stream-row span { min-width: 0; overflow-wrap: anywhere; font-size: 0.68rem; line-height: 1.35; }
.event-stream-row span:nth-child(3) { color: #fff4b3; font-weight: 750; }
.event-empty-state { display: grid; place-content: center; min-height: 64px; padding: 14px; text-align: center; color: var(--muted); }
.event-empty-state strong { color: var(--amber); }
.event-empty-state p { margin: 7px 0 0; }
.selected-event-grid, .alert-evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.selected-event-grid > div, .alert-evidence-grid > div { min-width: 0; min-height: 74px; padding: 10px; border: 1px solid rgba(250, 214, 75, 0.12); border-radius: 6px; background: rgba(255, 255, 255, 0.02); }
.selected-event-grid dt, .alert-evidence-grid dt { color: #ffe974; font-size: 0.63rem; font-weight: 850; }
.selected-event-grid dd, .alert-evidence-grid dd { margin: 7px 0 0; color: var(--muted); font-size: 0.72rem; overflow-wrap: anywhere; }
.alert-severity-key { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.alert-severity-key span { padding: 6px 9px; border: 1px solid rgba(250, 214, 75, 0.25); border-radius: 999px; color: var(--muted); font-size: 0.65rem; font-weight: 850; }

.compact-empty-state {
  min-height: 0;
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid rgba(250, 214, 75, 0.12);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.72rem;
}

.selected-event-section[data-state="empty"] .selected-event-grid,
.alert-evidence-section[data-state="empty"] .alert-severity-key,
.alert-evidence-section[data-state="empty"] .alert-evidence-grid {
  display: none;
}

.column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--pcs-panel-gap);
  min-width: 0;
}

.panel {
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel) 0%, rgba(6, 15, 28, 0.92) 100%);
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 202px;
  padding: 20px;
  border-color: rgba(57, 213, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(10, 40, 72, 0.96), rgba(6, 16, 31, 0.96)),
    repeating-linear-gradient(90deg, transparent 0, transparent 28px, rgba(57, 213, 255, 0.05) 29px);
}

.compact-panel,
.telemetry-panel,
.source-panel,
.domain-values-panel,
.visitor-network-panel,
.alert-panel,
.health-panel,
.ai-panel,
.timeline-panel,
.layer-control-panel,
.pipeline-panel {
  padding: 16px;
}

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

.state-value {
  display: block;
  margin-top: 22px;
  color: var(--cyan);
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  font-weight: 850;
  line-height: 0.9;
  overflow-wrap: anywhere;
  text-shadow: 0 0 26px rgba(57, 213, 255, 0.28);
}

.metric-value {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: clamp(1.1rem, 1.6vw, 1.7rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.metric-date {
  white-space: pre-line;
  font-size: 0.98rem;
  line-height: 1.26;
}

.panel-note,
.microcopy,
.data-message,
.cesium-fallback,
.layer-control-message,
.timeline-panel p,
.alert-panel p,
.ai-panel p,
.domain-card p,
.value-card small {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.panel-note {
  margin-top: 14px;
}

.status-text {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 1.25rem;
}

.telemetry-panel {
  display: grid;
  gap: 8px;
}

.data-message {
  min-height: 0;
  padding: 0 2px;
}

.data-message:empty { display: none; }

.source-panel {
  display: grid;
  gap: 10px;
}

.source-panel strong {
  color: var(--text);
  font-size: 1rem;
}

.status-list,
.health-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li,
.health-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.owid-source-panel {
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.owid-panel-header {
  display: grid;
  gap: 4px;
}

.owid-source-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.owid-source-heading > div {
  min-width: 0;
}

.owid-source-heading h2 {
  margin-top: 2px;
  font-size: 1.08rem;
}

.owid-provider {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.owid-connection-state {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.owid-source-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(111, 177, 210, 0.2);
  border-radius: 6px;
  background: rgba(111, 177, 210, 0.16);
}

.owid-source-summary > div {
  min-width: 0;
  padding: 8px;
  background: rgba(4, 17, 30, 0.93);
}

.owid-source-summary > div:last-child {
  grid-column: 1 / -1;
}

.owid-source-summary dt {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.owid-source-summary dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.owid-scientific-boundary {
  margin: 0;
  padding: 8px 9px;
  border-left: 2px solid var(--amber);
  color: #f5cf8b;
  font-size: 0.78rem;
  line-height: 1.45;
  background: rgba(245, 158, 11, 0.07);
}

.owid-domain-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.owid-filter {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(111, 177, 210, 0.28);
  border-radius: 5px;
  color: var(--muted);
  background: rgba(4, 17, 30, 0.82);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.owid-filter:hover,
.owid-filter.is-active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.09);
}

.owid-filter:focus-visible,
.owid-dataset-card > summary:focus-visible,
.owid-source-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.owid-dataset-groups,
.owid-domain-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.owid-domain-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(111, 177, 210, 0.2);
}

.owid-domain-heading h3 {
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.owid-domain-heading span {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  border: 1px solid rgba(111, 177, 210, 0.28);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
}

.owid-dataset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.owid-dataset-item {
  min-width: 0;
}

.owid-dataset-card {
  overflow: hidden;
  border: 1px solid rgba(111, 177, 210, 0.25);
  border-radius: 6px;
  background: rgba(4, 17, 30, 0.82);
}

.owid-dataset-card[open] {
  border-color: rgba(34, 211, 238, 0.46);
}

.owid-dataset-card > summary {
  display: grid;
  gap: 8px;
  min-height: 44px;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

.owid-dataset-card > summary::-webkit-details-marker {
  display: none;
}

.owid-dataset-card > summary:hover {
  background: rgba(34, 211, 238, 0.04);
}

.owid-dataset-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.owid-dataset-identity {
  min-width: 0;
}

.owid-dataset-domain,
.owid-dataset-role {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.owid-dataset-role {
  max-width: 44%;
  text-align: right;
}

.owid-dataset-identity h4 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.25;
}

.owid-latest-observation {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.owid-latest-value {
  color: var(--text);
  font-size: 1.38rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.owid-latest-unit,
.owid-latest-time {
  color: var(--muted);
  font-size: 0.78rem;
}

.owid-latest-time {
  margin-left: auto;
}

.owid-dataset-states {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.owid-state {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.owid-state-kind {
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.owid-state-value {
  color: currentColor;
  font: inherit;
}

.owid-availability-available { color: #74e6ae; }
.owid-availability-partial,
.owid-availability-stale { color: #f8c65c; }
.owid-availability-fetch_error,
.owid-availability-unavailable { color: #ff8585; }
.owid-validation-validated { color: #8fd6ff; }
.owid-validation-pending_validation { color: #c4b5fd; }
.owid-validation-rejected { color: #ff8585; }
.owid-validation-not_applicable { color: var(--muted); }

.owid-card-facts,
.owid-detail-grid {
  display: grid;
  gap: 5px 8px;
  min-width: 0;
  margin: 0;
}

.owid-fact-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.48fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  font-size: 0.75rem;
  line-height: 1.4;
}

.owid-fact-row dt {
  color: var(--muted);
}

.owid-fact-row dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.owid-sparkline {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 0;
}

.owid-sparkline svg {
  display: block;
  width: 100%;
  height: 58px;
  overflow: visible;
}

.owid-sparkline-expanded svg {
  height: 132px;
}

.owid-sparkline-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.owid-sparkline-latest {
  fill: var(--cyan);
  stroke: #03101d;
  stroke-width: 2;
}

.owid-sparkline-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
}

.owid-sparkline-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.owid-detail-prompt {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.owid-detail-prompt::after {
  content: "＋";
  margin-left: auto;
}

.owid-dataset-card[open] .owid-detail-prompt::after {
  content: "−";
}

.owid-detail-host {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid rgba(111, 177, 210, 0.24);
  background: rgba(2, 12, 23, 0.72);
}

.owid-detail-section {
  display: grid;
  gap: 8px;
}

.owid-detail-section + .owid-detail-section {
  padding-top: 12px;
  border-top: 1px solid rgba(111, 177, 210, 0.18);
}

.owid-detail-section h4 {
  margin: 0;
  color: var(--cyan);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

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

.owid-detail-grid .owid-fact-row {
  display: block;
}

.owid-detail-grid .owid-fact-row-wide {
  grid-column: 1 / -1;
}

.owid-detail-grid dt {
  margin-bottom: 2px;
}

.owid-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owid-source-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--cyan);
  border-radius: 5px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.owid-source-link:hover {
  color: #03101d;
  background: var(--cyan);
}

.owid-analysis-boundary,
.owid-detail-loading,
.owid-detail-error {
  margin: 0;
  color: #f5cf8b;
  font-size: 0.76rem;
  font-weight: 800;
}

.owid-detail-error {
  color: #ff8585;
}

.owid-pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(111, 177, 210, 0.2);
  border-radius: 5px;
  background: rgba(111, 177, 210, 0.16);
  list-style: none;
}

.owid-pipeline li {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px;
  background: rgba(4, 17, 30, 0.96);
}

.owid-pipeline span {
  color: var(--muted);
  font-size: 0.66rem;
}

.owid-pipeline strong {
  color: var(--muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.owid-pipeline .is-complete strong { color: #74e6ae; }
.owid-pipeline .is-pending strong { color: #c4b5fd; }

.owid-panel-state {
  padding: 10px;
  border: 1px dashed rgba(111, 177, 210, 0.32);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.owid-panel-state strong,
.owid-panel-state p {
  margin: 0;
}

.owid-panel-error {
  border-color: rgba(255, 133, 133, 0.42);
  color: #ffb2b2;
}

.owid-source-health {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid rgba(111, 177, 210, 0.2);
}

.owid-health-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.owid-health-heading h3 {
  color: var(--cyan);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.owid-health-heading span {
  color: var(--muted);
  font-size: 0.68rem;
  text-align: right;
}

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

.owid-health-item {
  min-width: 0;
  padding: 6px 7px;
  border-left: 1px solid rgba(111, 177, 210, 0.3);
}

.owid-health-item span,
.owid-health-item strong {
  display: block;
  font-size: 0.7rem;
  line-height: 1.35;
}

.owid-health-item span { color: var(--muted); }
.owid-health-item strong { margin-top: 2px; color: var(--text); }

@media (max-width: 560px) {
  .owid-source-heading,
  .owid-dataset-heading,
  .owid-health-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .owid-dataset-role,
  .owid-health-heading span {
    max-width: none;
    text-align: left;
  }

  .owid-latest-time {
    width: 100%;
    margin-left: 0;
  }

  .owid-detail-grid {
    grid-template-columns: 1fr;
  }

  .owid-detail-grid .owid-fact-row-wide {
    grid-column: auto;
  }

  .owid-filter {
    min-height: 44px;
  }

  .owid-source-link {
    min-height: 44px;
  }
}

.status-list li {
  justify-content: flex-start;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 14px currentColor;
}

.dot.connected {
  background: var(--green);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.status-normal {
  color: var(--green);
  background: rgba(66, 215, 125, 0.1);
}

.status-cyan {
  color: var(--cyan);
  background: rgba(57, 213, 255, 0.1);
}

.status-notice {
  color: var(--blue);
  background: rgba(47, 125, 246, 0.1);
}

.status-attention,
.status-warning {
  color: var(--amber);
  background: rgba(255, 191, 69, 0.1);
}

.status-critical {
  color: var(--red);
  background: rgba(255, 93, 108, 0.1);
}

.status-muted {
  color: var(--muted);
  background: rgba(142, 168, 189, 0.1);
}

.globe-panel {
  position: relative;
  padding: 16px;
}

.pcs-earth-viewer-shell {
  position: relative;
  min-width: 0;
  background: #020812;
}

.pcs-earth-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.pcs-earth-toolbar button {
  border: 1px solid rgba(67, 218, 255, 0.58);
  border-radius: 5px;
  padding: 7px 10px;
  color: #dff8ff;
  background: rgba(2, 8, 18, 0.9);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.pcs-earth-toolbar button:hover,
.pcs-earth-toolbar button:focus-visible {
  border-color: #7eeaff;
  background: #082435;
  outline: 2px solid rgba(126, 234, 255, 0.42);
  outline-offset: 2px;
}

.pcs-earth-viewer-shell[data-earth-viewer-mode="pinned"] {
  position: fixed;
  top: 72px;
  right: 18px;
  z-index: 9000;
  width: min(460px, 38vw);
  height: min(420px, 50vh);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
}

.pcs-earth-viewer-shell[data-earth-viewer-mode="expanded"] {
  position: fixed;
  inset: 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.82);
}

.pcs-earth-viewer-shell[data-earth-viewer-mode="pinned"] .cesium-globe,
.pcs-earth-viewer-shell[data-earth-viewer-mode="expanded"] .cesium-globe {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.cesium-globe {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 560px;
  height: clamp(560px, 64vh, 820px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #020712;
}

.cesium-globe > .cesium-viewer,
.cesium-globe .cesium-viewer-cesiumWidgetContainer,
.cesium-globe .cesium-widget,
.cesium-globe .cesium-widget canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

@media (max-width: 768px) {
  .pcs-earth-viewer-shell[data-earth-viewer-mode="pinned"] {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 8px;
    width: auto;
    height: min(42vh, 360px);
  }

  .pcs-earth-viewer-shell[data-earth-viewer-mode="expanded"] {
    inset: 8px;
  }

  .pcs-earth-toolbar {
    left: 8px;
    right: 8px;
  }

  .pcs-earth-toolbar button {
    flex: 1 1 auto;
    min-height: 38px;
  }
}

.cesium-fallback {
  margin-top: 10px;
}

.cesium-fallback.is-error {
  color: var(--amber);
  font-weight: 800;
}

.cesium-credit-textContainer,
.cesium-credit-logoContainer,
.cesium-credit-expand-link {
  font-size: 0.66rem;
}

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

.layer-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(142, 168, 189, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.layer-entry input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--cyan);
}

.layer-entry strong,
.layer-entry small {
  display: block;
  overflow-wrap: anywhere;
}

.layer-entry strong {
  color: var(--text);
  font-size: 0.86rem;
}

.layer-entry small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.connected-layer {
  border-color: rgba(66, 215, 125, 0.28);
}

.waiting-layer {
  border-color: rgba(255, 191, 69, 0.26);
}

.planned-layer {
  border-color: rgba(142, 168, 189, 0.18);
}

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

.framework-control-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pcs-provider-layer {
  display: block;
}

.pcs-provider-layer > label {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
}

.layer-metadata,
.brief-item dl,
.system-module-list {
  margin: .65rem 0 0 1.6rem;
  overflow-wrap: anywhere;
}

.layer-metadata div,
.brief-item dl div {
  display: grid;
  grid-template-columns: minmax(7rem, .35fr) minmax(0, 1fr);
  gap: .5rem;
  padding: .2rem 0;
}

.pcs-system-accordions details {
  border-top: 1px solid rgba(98, 221, 235, .16);
  padding: .55rem 0;
}

.pcs-system-accordions summary {
  color: var(--cyan);
  cursor: pointer;
  font-weight: 700;
}

.system-module-list {
  padding-left: 1rem;
}

.system-module-list li {
  margin: .35rem 0;
  overflow-wrap: anywhere;
}

.evidence-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}

.evidence-controls label,
.evidence-controls label > span {
  display: grid;
  gap: .25rem;
}

.evidence-controls input,
.evidence-controls select {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.evidence-results {
  margin-top: .8rem;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .evidence-controls,
  .layer-metadata div,
  .brief-item dl div {
    grid-template-columns: minmax(0, 1fr);
  }

  .layer-metadata,
  .brief-item dl,
  .system-module-list {
    margin-left: 0;
  }
}

.celestial-system {
  position: relative;
  min-width: 0;
}

.celestial-system > .framework-button { width: 100%; }
.celestial-system > .framework-button[aria-expanded] small::after { content: "  ▾"; color: var(--cyan); }
.celestial-system.has-active-satellite > .framework-button {
  border-color: rgba(34, 211, 238, .52);
  background: rgba(34, 211, 238, .08);
}

.satellite-submenu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid rgba(85, 215, 255, .2);
  border-radius: 8px;
  background: rgba(2, 9, 18, .92);
}

.satellite-submenu[hidden] { display: none; }
.satellite-button {
  min-width: 0;
  border: 1px solid rgba(142, 168, 189, .16);
  border-radius: 6px;
  padding: 7px 9px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  cursor: pointer;
  text-align: left;
}
.satellite-button:hover, .satellite-button:focus-visible { color: var(--text); border-color: var(--cyan); outline: none; }
.satellite-button.is-active { color: #d7fff0; border-color: rgba(34,197,94,.58); background: rgba(34,197,94,.14); }
.satellite-button small { display: block; margin-top: 3px; font-size: .68rem; color: var(--muted); }

.visualization-scale-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0;
  padding: 8px 10px;
  border-left: 2px solid var(--cyan);
  color: var(--muted);
  background: rgba(34,211,238,.05);
  font-size: .78rem;
}
.visualization-scale-note strong { color: var(--cyan); }

.framework-button {
  min-height: 48px;
  border: 1px solid rgba(142, 168, 189, 0.2);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  text-align: left;
}

.framework-button:hover,
.framework-button:focus {
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.framework-button.is-active {
  border-color: rgba(34, 197, 94, 0.48);
  background: rgba(34, 197, 94, 0.12);
}

.framework-button:disabled,
.framework-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
}

.framework-button:focus-visible,
.locate-button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.framework-button small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.framework-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.weather-layers-section {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.weather-layers-label {
  display: block;
  margin-bottom: 8px;
}

.weather-status-block {
  margin-top: 8px;
}

.weather-layer {
  border-left: 2px solid var(--cyan);
}

.layer-entry .weather-opacity-input {
  grid-column: 1 / -1;
  width: 100%;
  height: 18px;
  margin: 4px 0 0;
  cursor: ew-resize;
}

.layer-entry .weather-opacity-input:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.weather-legends {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.weather-legend {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(80px, 1fr);
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(142, 168, 189, 0.16);
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.72rem;
}

.weather-legend[hidden] {
  display: none;
}

.weather-legend-scale {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #294f9b, #55c8d7, #f6d05f, #d64c4c);
}

.scientific-legends {
  grid-column: 1 / -1;
}

.scientific-legend-image {
  display: block;
  width: 100%;
  max-width: 320px;
  min-height: 18px;
}

.layer-provider-details {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.layer-provider-details > summary {
  cursor: pointer;
}

.weather-tile-error:not(:empty) {
  color: var(--amber);
}

.timeline-panel,
.solar-system-panel,
.observatory-mode-panel,
.location-panel,
.animation-panel,
.audio-panel,
.evidence-panel {
  padding: 16px;
}

.locate-button {
  min-height: 40px;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  cursor: pointer;
  font-weight: 800;
}

.locate-button:hover { background: rgba(34, 211, 238, 0.16); }

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

.location-coordinates[hidden], [hidden] { display: none !important; }

.location-coordinates div {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.04);
}

.location-coordinates dt { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; }
.location-coordinates dd { margin: 4px 0 0; color: var(--text); font-variant-numeric: tabular-nums; }

.timeline-panel {
  display: grid;
  gap: 12px;
}

.timeline-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.timeline-setting {
  display: grid;
  gap: 4px;
  min-height: 48px;
  padding: 8px;
  border: 1px solid rgba(142, 168, 189, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.timeline-setting span,
.timeline-window span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-setting select {
  min-height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: #07111f;
}

.timeline-window {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.055);
}

.timeline-window strong {
  color: var(--text);
}

.history-mode-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.timeline-setting input,
.history-mode-controls select,
.timeline-controls select {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: #07111f;
  padding: 4px 6px;
}

.history-time-grid {
  grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.4fr);
  gap: 6px 12px;
}

.history-time-grid strong {
  overflow-wrap: anywhere;
}

.history-reconstruction-panel[hidden] { display: none; }
body[data-pcs-system-mode="REPLAY"] [data-live-context],
body[data-pcs-system-mode="ARCHIVED"] [data-live-context] { display: none !important; }
.history-reconstruction-panel .status-list,
.history-reconstruction-panel .regional-observation-section { margin-top: 10px; }
.history-event-section { padding: 10px; border: 1px solid rgba(142, 168, 189, 0.18); border-radius: 8px; }
.history-event-after { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(142, 168, 189, 0.18); }

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  min-height: 44px;
  align-items: center;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0.5;
}

.timeline-track span {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(57, 213, 255, 0.42);
}

.value-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.value-card {
  min-height: 118px;
  padding: 12px;
  border: 1px solid rgba(142, 168, 189, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.value-card span,
.value-card strong,
.value-card small {
  display: block;
}

.value-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.value-card > span > span,
.value-card > span > b { display: inline; }

.value-card strong {
  margin-top: 8px;
  color: var(--cyan);
  font-size: 1.5rem;
  line-height: 1;
}

.value-card strong.is-missing {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.2;
}

.progress-track {
  position: relative;
  height: 7px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(142, 168, 189, 0.18);
}

.progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.progress-fill.is-missing {
  background: transparent;
}

.alert-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.health-panel {
  max-height: none;
}

.ai-panel {
  border-color: rgba(157, 124, 255, 0.3);
}

.visitor-network-panel {
  border-color: rgba(34, 211, 238, 0.36);
}

.visitor-network-panel summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
  list-style: none;
}

.visitor-network-panel summary::-webkit-details-marker {
  display: none;
}

.visitor-network-panel summary strong {
  color: var(--text);
  font-size: 1rem;
}

.visitor-network-body {
  margin-top: 14px;
}

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

.visitor-metric-grid div,
.visitor-section {
  border: 1px solid rgba(142, 168, 189, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.visitor-metric-grid div {
  padding: 10px;
}

.visitor-metric-grid dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.visitor-metric-grid dd {
  margin: 6px 0 0;
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.visitor-metric-grid small,
.visitor-legend,
.visitor-ranking small {
  color: var(--muted);
  font-size: 0.68rem;
}

.visitor-section {
  margin-top: 10px;
  padding: 10px;
}

.visitor-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.visitor-list,
.visitor-ranking {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.visitor-list li,
.visitor-ranking li {
  margin: 4px 0;
}

.visitor-legend span {
  color: var(--cyan);
}

.visitor-range-tabs,
.visitor-toggle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.visitor-range-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(7, 17, 31, 0.9);
  cursor: pointer;
}

.visitor-range-tab.is-active,
.visitor-range-tab:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.visitor-toggle-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.visitor-chart {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 132px;
  margin-top: 8px;
  border: 1px solid rgba(142, 168, 189, 0.16);
  border-radius: 8px;
  padding: 8px;
  color: var(--muted);
  background: rgba(3, 7, 18, 0.45);
}

.visitor-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  gap: var(--pcs-panel-gap);
  align-items: start;
  margin-top: var(--pcs-panel-gap);
}

.domains-panel {
  padding: 16px;
}

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

.domain-card {
  min-height: 160px;
  padding: 12px;
  border: 1px solid rgba(142, 168, 189, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.domain-card h3,
.domain-card span,
.domain-card strong {
  display: block;
}

.domain-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.domain-card strong {
  margin-top: 6px;
  color: var(--text);
  font-size: 0.86rem;
}

.domain-card.active {
  border-color: rgba(66, 215, 125, 0.35);
}

.domain-card.waiting {
  border-color: rgba(255, 191, 69, 0.3);
}

.domain-card.planned {
  border-color: rgba(142, 168, 189, 0.16);
}

.domain-card.unavailable { border-color: rgba(239, 68, 68, 0.28); }
.domain-card details { margin-top: 10px; font-size: 0.72rem; }
.domain-card summary,
.pcs-event-card summary { cursor: pointer; color: var(--cyan); font-weight: 700; }
.dataset-readiness-item { position: relative; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(117, 211, 255, 0.12); }
.dataset-readiness-item dl,
.pcs-event-card dl { display: grid; gap: 5px; margin: 8px 0 0; }
.dataset-readiness-item dl > div,
.pcs-event-card dl > div { display: grid; grid-template-columns: minmax(90px, 0.55fr) auto minmax(0, 1fr); gap: 8px; align-items: start; }
.dataset-readiness-item dt,
.pcs-event-card dt { color: var(--muted); }
.dataset-readiness-item dd,
.pcs-event-card dd { margin: 0; overflow-wrap: anywhere; }
.pcs-analysis-panel { min-width: 0; }

#pcs-daily-brief,
#pcs-mass-gatherings {
  align-self: start;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

#pcs-daily-brief,
#pcs-mass-gatherings { max-height: none; }

.pcs-scroll-feed {
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scrollbar-color: rgba(73, 202, 231, 0.78) rgba(2, 9, 18, 0.88);
  scrollbar-width: auto;
  scroll-padding-top: 178px;
}

.daily-brief-feed { max-height: clamp(360px, 52vh, 640px); }
.population-event-stream { max-height: clamp(320px, 48vh, 620px); }

.pcs-scroll-feed::-webkit-scrollbar {
  width: 9px;
}

.pcs-scroll-feed::-webkit-scrollbar-track {
  border-left: 1px solid rgba(64, 132, 169, 0.16);
  background: rgba(2, 9, 18, 0.88);
}

.pcs-scroll-feed::-webkit-scrollbar-thumb {
  border: 2px solid rgba(2, 9, 18, 0.88);
  border-radius: 999px;
  background: rgba(73, 202, 231, 0.78);
}

.pcs-scroll-feed::-webkit-scrollbar-thumb:hover {
  background: rgba(115, 226, 248, 0.96);
}

.pcs-scroll-feed:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.74);
  outline-offset: -3px;
}

.pcs-feed-sticky-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid rgba(73, 202, 231, 0.22);
  background: linear-gradient(180deg, rgba(10, 27, 45, 0.99), rgba(5, 16, 29, 0.97));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.feed-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.feed-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.045em;
}

.feed-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feed-filter-chip,
.new-events-button {
  min-height: 30px;
  border: 1px solid rgba(73, 202, 231, 0.3);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(5, 17, 31, 0.9);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  cursor: pointer;
}

.feed-filter-chip.is-active,
.feed-filter-chip[aria-pressed="true"],
.feed-filter-chip:focus-visible {
  border-color: rgba(34, 211, 238, 0.82);
  color: #dffaff;
  background: rgba(34, 211, 238, 0.12);
}

.new-events-button {
  justify-self: start;
  color: var(--cyan);
}

.daily-brief-filter-bar {
  display: grid;
  gap: 8px;
}

.feed-sort-control,
.population-filter-selects label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 850;
}

.feed-sort-control select,
.population-filter-selects select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(73, 202, 231, 0.28);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--text);
  background: #06111f;
}

.daily-brief-list,
#more-intelligence,
.population-event-list {
  margin: 0;
  padding: 14px 16px;
}

#more-intelligence {
  border-top: 1px solid rgba(73, 202, 231, 0.16);
  color: var(--muted);
}

#more-intelligence > summary {
  cursor: pointer;
  color: var(--cyan);
  font-weight: 800;
}

.population-filter-bar {
  display: grid;
  gap: 9px;
}

.population-filter-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.population-event-columns,
.population-event-row {
  display: grid;
  grid-template-columns: minmax(138px, 1.15fr) minmax(118px, 1fr) minmax(94px, 0.72fr) minmax(150px, 1.2fr) minmax(94px, 0.72fr);
  gap: 9px;
  align-items: start;
}

.population-event-row[role="button"] { cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease; }
.population-event-row[role="button"]:hover,
.population-event-row[role="button"]:focus-visible { border-color: rgba(82, 210, 235, 0.62); outline: none; }
.population-event-row.is-selected { border-color: rgba(250, 166, 55, 0.78); background: rgba(250, 166, 55, 0.08); }

.population-event-columns {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(73, 202, 231, 0.16);
  color: #8feaff;
  background: rgba(4, 14, 26, 0.98);
  font-size: 0.6rem;
  font-weight: 850;
}

.population-event-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.population-event-row {
  padding: 11px;
  border: 1px solid rgba(73, 202, 231, 0.17);
  border-radius: 8px;
  background: rgba(6, 25, 40, 0.55);
}

.population-event-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.population-event-field dt {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 850;
  letter-spacing: 0.035em;
}

.population-event-field dd {
  margin: 0;
  color: var(--text);
  font-size: 0.71rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.population-event-field dd + dd {
  color: var(--muted);
  font-size: 0.64rem;
}

.feed-empty-state {
  display: grid;
  min-height: 64px;
  margin: 0;
  place-content: center;
  color: var(--amber);
  text-align: center;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}
.scientific-analysis-context{display:grid;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(117,211,255,.18)}
.scientific-analysis-context[hidden]{display:none}
.scientific-analysis-context h3{margin:0;color:var(--cyan);font-size:.82rem}
.scientific-analysis-context dl{display:grid;grid-template-columns:minmax(92px,.55fr) minmax(0,1fr);gap:6px;margin:0;font-size:.72rem}
.scientific-analysis-context dt{color:var(--muted)}
.scientific-analysis-context dd{margin:0;overflow-wrap:anywhere}
.pcs-card-list { display: grid; gap: 9px; margin-top: 12px; }
.pcs-event-card,
.pcs-ledger-entry { border: 1px solid rgba(117, 211, 255, 0.17); border-radius: 8px; padding: 10px; background: rgba(6, 25, 40, 0.55); }
.pcs-event-card h3 { margin: 12px 0 8px; color: var(--cyan); font-size: 0.78rem; }
.pcs-event-card > p,
.pcs-ledger-entry p { color: var(--muted); margin: 6px 0 0; font-size: 0.74rem; }
.pcs-event-card a { display: inline-block; margin-top: 10px; color: var(--cyan); }
.pcs-evidence-tag { display: inline-block; margin-left: 6px; padding: 2px 6px; border: 1px solid rgba(117, 211, 255, 0.25); border-radius: 999px; color: var(--muted); font-size: 0.62rem; font-weight: 800; }
.pcs-evidence-tag.active { color: #7ee7bb; border-color: rgba(57, 210, 142, 0.4); }
.pcs-evidence-tag.waiting { color: #ffd479; border-color: rgba(255, 190, 64, 0.4); }
.pcs-evidence-tag.unavailable { color: #ff9d92; border-color: rgba(239, 68, 68, 0.35); }

.sparkline {
  position: relative;
  height: 30px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(57, 213, 255, 0.55) 19% 22%, transparent 23% 42%, rgba(57, 213, 255, 0.4) 43% 46%, transparent 47% 64%, rgba(57, 213, 255, 0.55) 65% 68%, transparent 69%),
    rgba(57, 213, 255, 0.06);
}

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

.pipeline-flow {
  display: grid;
  gap: 10px;
}

.pipeline-flow span {
  position: relative;
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid rgba(57, 213, 255, 0.24);
  border-radius: 8px;
  background: rgba(57, 213, 255, 0.06);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

.pipeline-flow span:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: 12px;
  color: var(--cyan);
}

.framework-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.framework-list span,
.evidence-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(142, 168, 189, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.84rem;
}

.framework-list strong,
.evidence-grid dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.framework-alert-levels {
  margin-bottom: 12px;
}

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

.framework-toggle-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid rgba(142, 168, 189, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.86rem;
}

.framework-toggle-row input {
  accent-color: var(--cyan);
}

.audio-panel p {
  color: var(--muted);
  font-size: 0.86rem;
}

.evidence-grid {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.evidence-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.observatory-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(9, 22, 39, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
}

.observatory-footer strong {
  color: var(--cyan);
}

.live-observation-panel { margin-top: 14px; padding: 14px; border: 1px solid rgba(85, 215, 255, 0.24); border-radius: 10px; background: rgba(3, 13, 26, 0.68); }
.live-observation-panel[hidden] { display: none !important; }
.observation-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.observation-heading h3 { margin: 3px 0 0; }
.moon-phase-graphic { width: 88px; height: 88px; flex: 0 0 auto; }
.observation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.observation-grid > div { padding: 9px; border: 1px solid rgba(142, 168, 189, 0.16); border-radius: 8px; background: rgba(255,255,255,.035); }
.observation-grid dt { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.observation-grid dd { margin: 4px 0 0; color: var(--text); overflow-wrap: anywhere; }
.observation-grid-wide { grid-column: 1 / -1; }
.satellite-information-panel { max-height: min(64vh, 720px); overflow-y: auto; scrollbar-width: thin; }
.compact-science-list { margin: 0; padding-left: 18px; }
.compact-science-list li + li { margin-top: 4px; }
.data-quality-key { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.data-quality-key span { padding: 5px 7px; border-radius: 999px; color: var(--muted); background: rgba(142,168,189,.09); font-size: .7rem; }
.data-unavailable { color: #ffb4a8; font-weight: 700; }
.data-unavailable:empty { display: none; }
.observation-subheading { margin: 16px 0 8px; color: var(--text); font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; }
.imagery-metadata-grid { margin-top: 8px; }
.planet-scientific-preview {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(142, 168, 189, .22);
  border-radius: 10px;
  background: rgba(2, 7, 18, .72);
}
.planet-scientific-preview[hidden] { display: none; }
.planet-scientific-preview img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 6px;
}
.planet-scientific-preview figcaption { display: grid; gap: 6px; }
.planet-scientific-preview figcaption strong { color: var(--cyan); }
.planet-scientific-preview figcaption span { color: var(--muted); line-height: 1.45; }
.solar-image-observation { margin-top: 12px; padding: 12px; border: 1px solid rgba(85, 215, 255, .2); border-radius: 10px; background: rgba(4, 10, 20, .72); }
.solar-image-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 10px 0; }
.solar-image-controls .framework-button { min-height: 42px; }
.solar-scientific-image { display: block; width: min(100%, 640px); aspect-ratio: 1; margin: 12px auto; object-fit: contain; border: 1px solid rgba(142, 168, 189, .22); border-radius: 10px; background: #000; }
.solar-scientific-image[hidden] { display: none; }

@media (max-width: 620px) {
  .history-mode-controls,
  .history-time-grid { grid-template-columns: 1fr; }
  .planet-scientific-preview { grid-template-columns: 1fr; }
  .planet-scientific-preview img { max-height: 240px; }
}
.threshold-notice { color: var(--muted); font-size: .78rem; }
.status-category-low { color: #8fe3ff !important; }.status-category-medium { color: #ffd166 !important; }.status-category-high { color: #ff8d7d !important; }
.alerts-disclosure, .data-sources-disclosure { margin-top: 10px; color: var(--muted); }
.alerts-disclosure summary, .data-sources-disclosure summary { cursor: pointer; color: var(--cyan); font-weight: 800; }
.alert-entry, .provenance-entry { margin-top: 8px; padding: 9px; border-left: 2px solid rgba(85,215,255,.45); background: rgba(255,255,255,.025); font-size: .8rem; white-space: pre-wrap; }

@media (max-width: 1320px) {
  .global-nav {
    grid-template-columns: 1fr;
  }

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

  .dashboard-layout,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .upper-workspace-grid { grid-template-columns: 1fr; }

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

  .hero-panel,
  .domain-values-panel,
  .regional-observation-panel,
  .history-reconstruction-panel {
    grid-column: span 2;
  }

  .visitor-network-panel {
    grid-column: span 2;
  }

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

  .framework-control-grid,
  .framework-control-grid.compact,
  .timeline-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel.model-mapping-panel {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .mapping-toolbar,
  .event-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mapping-phenomenon-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1321px) and (max-width: 1399px) {
  .dashboard-layout {
    grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
  }

  .upper-workspace-grid { grid-template-columns: minmax(250px, 1fr) minmax(0, 2fr); }
}

@media (max-width: 1100px) {
  .dashboard-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-workspace,
  .secondary-workspace,
  .upper-workspace-grid { display: contents; }

  .research-input-panel { order: 1; }
  .center-column { order: 2; }
  .event-analysis-center { order: 3; }
  .left-column { order: 4; }
  .right-column { order: 5; }
  .domains-panel { order: 6; }
  #pcs-daily-brief { order: 7; }
  #pcs-mass-gatherings { order: 8; }
  #pcs-evidence-ledger { order: 9; }
  .pipeline-panel { order: 10; }
  .animation-panel { order: 11; }
  .audio-panel { order: 12; }
  .evidence-panel { order: 13; }

  .left-column,
  .center-column,
  .right-column {
    width: 100%;
    max-width: 100%;
  }

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

  .top-bar {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
    align-items: start;
  }

  .region-control {
    grid-column: 1 / -1;
  }

  .system-strip {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .global-nav {
    padding: 10px;
  }

  .observatory-shell {
    width: calc(100% - 20px);
    margin-inline: 10px;
    padding: 10px 0;
  }

  .top-bar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .system-strip {
    justify-content: flex-start;
  }

  .region-control {
    width: 100%;
  }

  .left-column,
  .right-column {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .domain-values-panel,
  .regional-observation-panel,
  .history-reconstruction-panel {
    grid-column: auto;
  }

  .visitor-network-panel {
    grid-column: auto;
  }

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

  .cesium-globe {
    min-height: 360px;
    height: clamp(360px, 55vh, 560px);
  }

  .daily-brief-feed { max-height: clamp(360px, 58vh, 520px); }
  .population-event-stream { max-height: clamp(420px, 66vh, 560px); }
  .neutral-sphere { width: min(70cqh, 96cqw, 400px); }

  .research-lab-panel { min-height: 0; }
  .research-tab-panel { min-height: 320px; max-height: none; }

  .research-input-panel,
  .event-analysis-center { min-height: 0; }

  .mapping-toolbar,
  .event-filter-bar,
  .selected-event-grid,
  .alert-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mapping-research-profile dl, .mapping-mathematical-profile dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mapping-phenomenon-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .layer-list {
    grid-template-columns: 1fr;
  }

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

  .solar-system-panel .framework-control-grid,
  .observatory-mode-panel .framework-control-grid {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    padding-bottom: 6px;
  }

  .solar-system-panel .framework-button,
  .observatory-mode-panel .framework-button {
    flex: 0 0 auto;
    min-width: 132px;
  }

  .solar-system-panel .celestial-system { flex: 0 0 auto; min-width: 148px; }
  .solar-system-panel .celestial-system > .framework-button { min-width: 148px; height: auto; }
  .solar-system-panel .satellite-submenu { max-height: 158px; overflow-y: auto; }

  .timeline-controls,
  .timeline-controls,
  .framework-toggle-row {
    grid-template-columns: 1fr;
  }

  .location-coordinates { grid-template-columns: 1fr; }
  .observation-grid { grid-template-columns: 1fr; }
  .solar-image-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .observatory-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .nav-status,
  .nav-controls {
    grid-template-columns: 1fr;
  }

  .research-tabs,
  .analysis-capability-grid,
  .research-search-row,
  .mapping-toolbar,
  .event-filter-bar,
  .selected-event-grid,
  .alert-evidence-grid,
  .queue-actions {
    grid-template-columns: 1fr;
  }
  .mapping-workspace-header-actions { width: 100%; justify-content: flex-start; }
  .mapping-workspace-controls { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #mapping-popout { display: none; }
  .panel.model-mapping-panel.is-pinned,
  .panel.model-mapping-panel.is-maximized { inset: 0; width: 100%; max-width: 100%; padding: 10px; border-radius: 0; }
  .panel.model-mapping-panel.is-pinned .mapping-viewport,
  .panel.model-mapping-panel.is-maximized .mapping-viewport,
  .panel.model-mapping-panel.is-popout-workspace .mapping-viewport { height: 62vh; min-height: 420px; padding: 8px; }
  body.generic-model-space-popout { padding: 0; }
  body.generic-model-space-popout > .panel.model-mapping-panel { min-height: 100vh; border-radius: 0; }

  .mapping-viewport { height: clamp(360px, 55vh, 560px); min-height: 360px; }
  .mapping-research-profile dl, .mapping-mathematical-profile dl { grid-template-columns: 1fr; }
  .mapping-phenomenon-controls { grid-template-columns: 1fr; }
  .phenomenon-title { font-size: 19px; }
  .phenomenon-component-label { font-size: 11px; }
  .event-table-head { display: none; }
  .event-stream-list { max-height: clamp(300px, 48vh, 520px); }
  .event-stream-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-stream-row span:nth-child(3) { grid-column: 1 / -1; }
  .event-empty-state { min-height: 64px; }

  .feed-title-row { display: grid; }
  .population-filter-selects { grid-template-columns: 1fr; }
  .population-event-columns { display: none; }
  .population-event-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcs-feed-sticky-header { padding: 13px; }
  .daily-brief-list,
  #more-intelligence,
  .population-event-list { padding: 12px 13px; }
}
.regional-observation-panel { display: grid; gap: 0.75rem; }
.regional-layer-controls { display: grid; gap: 0.45rem; }
.regional-observation-section { border-top: 1px solid var(--border-color, rgba(150, 180, 210, 0.2)); padding-top: 0.65rem; }
.regional-observation-section h3 { font-size: 0.8rem; letter-spacing: 0.04em; margin: 0 0 0.45rem; text-transform: uppercase; }
.regional-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; margin: 0; }
.regional-data-grid > div { background: rgba(8, 22, 38, 0.42); border-radius: 0.35rem; padding: 0.45rem; min-width: 0; }
.regional-data-grid dt { color: var(--muted-color, #9fb2c4); font-size: 0.68rem; }
.regional-data-grid dd { font-size: 0.76rem; margin: 0.2rem 0 0; overflow-wrap: anywhere; }
.regional-status-line { font-size: 0.72rem; margin: 0.25rem 0; }
.regional-status-line strong { margin-right: 0.35rem; }
@media (max-width: 620px) { .regional-data-grid { grid-template-columns: 1fr; } }
