/* =========================================================
   1. BASE / GLOBAL VARIABLES
   ========================================================= */
:root {
  --bg-0: #020407;
  --bg-1: #05080d;
  --bg-2: #09111a;
  --panel: rgba(8, 15, 24, 0.84);
  --panel-strong: rgba(5, 10, 17, 0.96);
  --panel-soft: rgba(12, 24, 36, 0.65);
  --line: rgba(118, 214, 255, 0.18);
  --line-strong: rgba(118, 214, 255, 0.38);
  --text: #edf8ff;
  --muted: #8fa8b7;
  --cyan: #56dcff;
  --cyan-strong: #00b7ff;
  --red: #ff3b45;
  --orange: #ff9838;
  --yellow: #ffe05c;
  --blue: #3d9dff;
  --green: #4dffad;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --topbar-height: 74px;
  --ticker-height: 38px;
  --mobile-tabs-height: 64px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg-0);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(31, 114, 153, 0.15), transparent 34%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

body {
  min-height: 100dvh;
  font-size: 15px;
  line-height: 1.45;
}

button,
input,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

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

button:disabled,
a[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  color: #001018;
  background: var(--cyan);
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

.noscript-note {
  position: fixed;
  inset: 1rem;
  z-index: 10000;
  padding: 2rem;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-rows: var(--topbar-height) minmax(0, 1fr) var(--ticker-height);
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  padding-top: var(--safe-top);
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: var(--topbar-height);
  padding: 9px calc(16px + var(--safe-right)) 9px calc(18px + var(--safe-left));
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 12, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.brand-lockup,
.topbar-status,
.topbar-actions,
.section-heading,
.section-heading-main,
.risk-header,
.search-row,
.quick-focus,
.legend,
.render-readout,
.modal-actions {
  display: flex;
  align-items: center;
}

.brand-lockup {
  min-width: 0;
  gap: 12px;
}

.brand-lockup h1,
.section-heading h2,
.modal-header h2 {
  margin: 0;
  letter-spacing: 0.02em;
}

.brand-lockup h1 {
  overflow: hidden;
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-pulse {
  position: relative;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 59, 69, 0.1), 0 0 22px rgba(255, 59, 69, 0.9);
}

.brand-pulse::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255, 59, 69, 0.65);
  border-radius: inherit;
  animation: pulse-ring 2s ease-out infinite;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.topbar-status {
  justify-content: flex-end;
  gap: 8px;
}

.status-chip,
.utc-clock {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.status-chip--live {
  color: var(--green);
  border-color: rgba(77, 255, 173, 0.38);
  background: rgba(77, 255, 173, 0.08);
}

.status-dot {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(77, 255, 173, 0.85);
}

.topbar-actions {
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(86, 220, 255, 0.055);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(86, 220, 255, 0.12);
}

.icon-button--small {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.command-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(300px, 360px);
  min-height: 0;
  overflow: hidden;
}

.panel {
  position: relative;
  z-index: 20;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(86, 220, 255, 0.34) transparent;
  background: var(--panel);
  backdrop-filter: blur(20px);
  transition: transform 240ms ease, opacity 240ms ease;
}

.panel--left {
  border-right: 1px solid var(--line);
}

.panel--right {
  border-left: 1px solid var(--line);
}

.panel-section {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-section:last-child {
  border-bottom: 0;
}

.panel-section--compact {
  padding-bottom: 22px;
}

.section-heading {
  justify-content: flex-start;
  gap: 11px;
  margin-bottom: 16px;
}

.section-heading--small {
  margin-bottom: 12px;
}

.section-heading--with-action {
  justify-content: space-between;
}

.section-heading-main {
  gap: 11px;
}

.section-heading h2 {
  font-size: 0.98rem;
}

.section-index {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(86, 220, 255, 0.05);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.search-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.search-row {
  align-items: stretch;
  gap: 8px;
}

.search-row input {
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
}

.search-row input::placeholder {
  color: #5f7685;
}

.primary-button,
.secondary-button,
.quick-focus button,
.filter-chip,
.incident-card,
.mobile-panel-tabs button {
  border: 0;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button {
  color: #00131d;
  background: linear-gradient(135deg, #8eeaff, var(--cyan));
  box-shadow: 0 8px 24px rgba(0, 183, 255, 0.18);
}

.secondary-button {
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  background: rgba(86, 220, 255, 0.07);
}

.helper-text,
.legal-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.5;
}

.search-results {
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.search-results button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.search-results button:last-child {
  border-bottom: 0;
}

.search-results button:hover {
  background: rgba(86, 220, 255, 0.08);
}

.quick-focus {
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.quick-focus button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.72rem;
  font-weight: 800;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: left;
}

.filter-chip.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(86, 220, 255, 0.09);
  box-shadow: inset 0 0 20px rgba(86, 220, 255, 0.035);
}

.filter-swatch,
.legend-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.filter-swatch--all {
  color: var(--cyan);
  background: conic-gradient(var(--red), var(--orange), var(--yellow), var(--blue), var(--red));
}

.filter-swatch--high,
.legend-dot--high { color: var(--red); background: var(--red); }
.filter-swatch--medium,
.legend-dot--medium { color: var(--orange); background: var(--orange); }
.filter-swatch--travel,
.legend-dot--travel { color: var(--yellow); background: var(--yellow); }
.filter-swatch--feed,
.legend-dot--feed { color: var(--blue); background: var(--blue); }

.detail-filter {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.detail-filter span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.detail-filter select {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: #07111b;
  cursor: pointer;
}

.control-stack {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.toggle-row span {
  display: grid;
  min-width: 0;
}

.toggle-row strong {
  font-size: 0.78rem;
}

.toggle-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.67rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.toggle-row input {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 23px;
  margin: 0;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.toggle-row input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.toggle-row input:checked {
  background: rgba(86, 220, 255, 0.16);
}

.toggle-row input:checked::after {
  transform: translateX(19px);
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(86, 220, 255, 0.72);
}

.shortcut-list {
  display: grid;
  gap: 7px;
  margin: 0;
}

.shortcut-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.shortcut-list dt {
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
}

.shortcut-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.globe-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(86, 220, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 220, 255, 0.024) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(0, 183, 255, 0.08), transparent 42%),
    #020509;
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.globe-stage::before,
.globe-stage::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.globe-stage::before {
  inset: 0;
  background: radial-gradient(circle at center, transparent 45%, rgba(1, 4, 8, 0.28) 75%, rgba(1, 4, 8, 0.76) 100%);
}

.globe-stage::after {
  inset: 14px;
  border: 1px solid rgba(86, 220, 255, 0.08);
  clip-path: polygon(0 0, 42px 0, 42px 1px, 1px 1px, 1px 42px, 0 42px, 0 0, 100% 0, 100% 42px, calc(100% - 1px) 42px, calc(100% - 1px) 1px, calc(100% - 42px) 1px, calc(100% - 42px) 0, 100% 0, 100% 100%, calc(100% - 42px) 100%, calc(100% - 42px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 42px), 100% calc(100% - 42px), 100% 100%, 0 100%, 0 calc(100% - 42px), 1px calc(100% - 42px), 1px calc(100% - 1px), 42px calc(100% - 1px), 42px 100%, 0 100%);
}

.globe-container,
.globe-container canvas {
  width: 100%;
  height: 100%;
}

.globe-container canvas {
  display: block;
  touch-action: none;
}

.globe-overlay {
  position: absolute;
  z-index: 6;
  pointer-events: none;
}

.globe-overlay--top {
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.globe-overlay--bottom-left {
  left: 18px;
  bottom: 18px;
}

.globe-overlay--bottom-right {
  right: 18px;
  bottom: 18px;
  pointer-events: auto;
}

.focus-readout,
.render-readout,
.legend {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(3, 8, 14, 0.66);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
}

.focus-readout {
  display: grid;
  max-width: min(440px, 58vw);
  padding: 10px 12px;
}

.focus-readout strong {
  overflow: hidden;
  font-size: 0.92rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.focus-readout span {
  margin-top: 2px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
}

.render-readout {
  gap: 12px;
  padding: 9px 11px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.render-readout strong {
  color: var(--cyan);
}

.legend {
  flex-wrap: wrap;
  gap: 9px 12px;
  padding: 8px 11px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 750;
}

.legend-dot {
  width: 7px;
  height: 7px;
  margin-right: 6px;
}

.jarvis-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid rgba(86, 220, 255, 0.42);
  border-radius: 50%;
  color: var(--cyan);
  background: radial-gradient(circle, rgba(86, 220, 255, 0.18), rgba(3, 12, 20, 0.92) 65%);
  box-shadow: inset 0 0 24px rgba(86, 220, 255, 0.1), 0 0 32px rgba(0, 183, 255, 0.16);
  cursor: pointer;
}

.jarvis-orb::before,
.jarvis-orb::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(86, 220, 255, 0.32);
  border-radius: 50%;
}

.jarvis-orb::before {
  inset: 7px;
  animation: orbit-spin 7s linear infinite;
  border-right-color: transparent;
}

.jarvis-orb::after {
  inset: -5px;
  border-left-color: transparent;
  animation: orbit-spin 11s linear reverse infinite;
}

.jarvis-orb-core {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(86, 220, 255, 0.95);
}

.jarvis-orb-label {
  position: absolute;
  bottom: 10px;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.jarvis-orb.is-speaking {
  box-shadow: inset 0 0 28px rgba(86, 220, 255, 0.25), 0 0 42px rgba(0, 183, 255, 0.38);
  animation: jarvis-speaking 780ms ease-in-out infinite alternate;
}

.loading-screen {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  background: radial-gradient(circle, rgba(7, 30, 43, 0.94), rgba(2, 5, 9, 0.98) 60%);
  transition: opacity 420ms ease, visibility 420ms ease;
}

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

.loading-ring {
  width: 68px;
  height: 68px;
  margin-bottom: 16px;
  border: 2px solid rgba(86, 220, 255, 0.15);
  border-top-color: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(0, 183, 255, 0.12);
  animation: orbit-spin 1s linear infinite;
}

.loading-screen strong {
  font-size: 1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-card {
  display: grid;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.stat-card span,
.stat-card small {
  color: var(--muted);
  font-size: 0.66rem;
}

.stat-card strong {
  margin: 2px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.25rem;
}

.stat-card--high strong { color: var(--red); }
.stat-card--medium strong { color: var(--orange); }
.stat-card--travel strong { color: var(--yellow); }
.stat-card--feed strong { color: var(--blue); }

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

.incident-card {
  position: relative;
  display: grid;
  width: 100%;
  gap: 5px;
  padding: 12px 12px 12px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.incident-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--card-color, var(--cyan));
  box-shadow: 0 0 14px var(--card-color, var(--cyan));
}

.incident-card:hover,
.incident-card.is-selected {
  transform: translateX(2px);
  border-color: var(--line-strong);
  background: rgba(86, 220, 255, 0.06);
}

.incident-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.incident-card-category {
  color: var(--card-color, var(--cyan));
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.incident-card time {
  color: var(--muted);
  font-size: 0.6rem;
}

.incident-card strong {
  font-size: 0.78rem;
  line-height: 1.35;
}

.incident-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.empty-state {
  padding: 20px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.75rem;
}

.jarvis-console {
  position: relative;
  min-height: 105px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid rgba(86, 220, 255, 0.24);
  border-radius: 13px;
  background:
    linear-gradient(rgba(86, 220, 255, 0.035) 1px, transparent 1px),
    rgba(0, 10, 17, 0.72);
  background-size: 100% 18px;
}

.jarvis-console::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -15%;
  height: 30%;
  background: linear-gradient(transparent, rgba(86, 220, 255, 0.06), transparent);
  animation: scanline 5s linear infinite;
  pointer-events: none;
}

.jarvis-state {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(86, 220, 255, 0.3);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(86, 220, 255, 0.07);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.jarvis-console p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #d7ebf5;
  font-size: 0.73rem;
  line-height: 1.55;
}

.ticker-bar {
  position: relative;
  z-index: 45;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: var(--ticker-height);
  padding: 0 calc(14px + var(--safe-right)) max(0px, var(--safe-bottom)) calc(14px + var(--safe-left));
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 12, 0.94);
  backdrop-filter: blur(18px);
}

.ticker-label,
.ticker-source {
  color: var(--cyan);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ticker-source {
  color: var(--yellow);
}

.ticker-window {
  min-width: 0;
  overflow: hidden;
  border: 0;
  outline: 0;
  cursor: pointer;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ticker-window:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(75, 226, 255, 0.72);
}

.ticker-track {
  --ticker-start: 100vw;
  --ticker-duration: 72s;
  width: max-content;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-move var(--ticker-duration) linear infinite;
}

.ticker-window:hover .ticker-track,
.ticker-window:focus-within .ticker-track,
.ticker-window.is-paused .ticker-track {
  animation-play-state: paused;
}

.ticker-window.is-paused .ticker-track {
  color: #d6f6ff;
}

.ticker-track--static {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: none;
  transform: none;
}

.mobile-panel-tabs {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: max(18px, var(--safe-top)) max(18px, var(--safe-right)) max(18px, var(--safe-bottom)) max(18px, var(--safe-left));
  background: rgba(0, 3, 7, 0.74);
  backdrop-filter: blur(12px);
}

.incident-modal {
  width: min(1020px, 100%);
  max-height: min(780px, calc(100dvh - 36px));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(5, 11, 18, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), 0 0 48px rgba(0, 183, 255, 0.08);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(86, 220, 255, 0.025);
}

.modal-header h2 {
  font-size: 1.18rem;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: 0;
  max-height: calc(min(780px, 100dvh - 36px) - 76px);
  overflow: auto;
}

.modal-media {
  position: relative;
  min-height: 440px;
  background:
    linear-gradient(rgba(86, 220, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 220, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 183, 255, 0.08), transparent 52%),
    #020509;
  background-size: 36px 36px, 36px 36px, auto, auto;
}

.modal-media iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.media-placeholder span {
  color: var(--cyan);
  font-size: 3.2rem;
  text-shadow: 0 0 22px rgba(86, 220, 255, 0.7);
}

.media-placeholder strong {
  margin-top: 10px;
}

.media-placeholder p {
  max-width: 420px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.modal-intelligence {
  min-width: 0;
  padding: 22px;
  border-left: 1px solid var(--line);
}

.risk-header {
  justify-content: space-between;
  gap: 12px;
}

.risk-badge {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(86, 220, 255, 0.07);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.risk-header time {
  color: var(--muted);
  font-size: 0.7rem;
}

.modal-summary {
  margin: 18px 0;
  color: #d9ecf6;
  font-size: 0.9rem;
  line-height: 1.65;
}

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

.detail-grid div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.detail-grid dt {
  color: var(--muted);
  font-size: 0.7rem;
}

.detail-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.73rem;
  text-align: right;
}

.modal-actions {
  align-items: stretch;
  gap: 8px;
  margin-top: 18px;
}

.modal-actions > * {
  flex: 1;
}

.legal-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

body.panel-left-collapsed .command-grid {
  grid-template-columns: 0 minmax(0, 1fr) minmax(300px, 360px);
}

body.panel-left-collapsed .panel--left {
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
}

body.panel-right-collapsed .command-grid {
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) 0;
}

body.panel-right-collapsed .panel--right {
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
}

body.panel-left-collapsed.panel-right-collapsed .command-grid {
  grid-template-columns: 0 minmax(0, 1fr) 0;
}

body.calm-mode .brand-pulse::after,
body.calm-mode .jarvis-orb::before,
body.calm-mode .jarvis-orb::after,
body.calm-mode .jarvis-console::after {
  animation: none;
}


@keyframes pulse-ring {
  from { transform: scale(0.65); opacity: 0.92; }
  to { transform: scale(1.55); opacity: 0; }
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes jarvis-speaking {
  from { transform: scale(0.98); }
  to { transform: scale(1.035); }
}

@keyframes scanline {
  to { transform: translateY(430%); }
}

@keyframes ticker-move {
  from { transform: translate3d(var(--ticker-start), 0, 0); }
  to { transform: translate3d(calc(-100% - 48px), 0, 0); }
}


/* =========================================================
   2. MOBILE VIEWPORT (< 768px)
   ========================================================= */
@media (max-width: 767px) {
  :root {
    --topbar-height: 62px;
    --ticker-height: 32px;
  }

  body {
    font-size: 14px;
  }

  .app-shell {
    grid-template-rows: var(--topbar-height) minmax(0, 1fr) var(--ticker-height);
    padding-bottom: calc(var(--mobile-tabs-height) + var(--safe-bottom));
    min-height: 0;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px calc(9px + var(--safe-right)) 7px calc(10px + var(--safe-left));
  }

  .brand-lockup {
    gap: 9px;
  }

  .brand-lockup h1 {
    font-size: 0.98rem;
  }

  .brand-pulse {
    flex-basis: 10px;
    width: 10px;
    height: 10px;
  }

  .brand-lockup .eyebrow,
  .topbar-status,
  #toggle-left-panel,
  #toggle-right-panel {
    display: none;
  }

  .topbar-actions {
    gap: 5px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .command-grid,
  body.panel-left-collapsed .command-grid,
  body.panel-right-collapsed .command-grid,
  body.panel-left-collapsed.panel-right-collapsed .command-grid {
    display: block;
    height: 100%;
  }

  .globe-stage {
    width: 100%;
    height: 100%;
  }

  .panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--mobile-tabs-height) + var(--safe-bottom));
    z-index: 70;
    width: 100%;
    max-height: min(72dvh, 620px);
    padding-top: 9px;
    border: 1px solid var(--line-strong);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    background: rgba(5, 11, 18, 0.97);
    box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.48);
    transform: translateY(108%);
    opacity: 1;
    pointer-events: none;
  }

  .panel::before {
    content: "";
    position: sticky;
    z-index: 2;
    top: 0;
    display: block;
    width: 52px;
    height: 5px;
    margin: 0 auto 3px;
    border-radius: 999px;
    background: rgba(143, 168, 183, 0.42);
  }

  .panel.mobile-open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .panel-section {
    padding: 14px;
  }

  .panel-section--compact,
  .jarvis-console-section {
    padding-bottom: 18px;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .search-row input,
  .primary-button,
  .secondary-button {
    min-height: 46px;
  }

  .filter-chip {
    min-height: 46px;
  }

  .toggle-row {
    min-height: 58px;
  }

  .globe-overlay--top {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .focus-readout {
    max-width: calc(100vw - 20px);
    width: 100%;
    padding: 8px 10px;
  }

  .focus-readout strong {
    font-size: 0.82rem;
  }

  .render-readout,
  .globe-overlay--bottom-left {
    display: none;
  }

  .globe-overlay--bottom-right {
    right: 12px;
    bottom: 12px;
  }

  .jarvis-orb {
    width: 62px;
    height: 62px;
  }

  .mobile-panel-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: calc(var(--mobile-tabs-height) + var(--safe-bottom));
    padding: 7px calc(8px + var(--safe-right)) calc(7px + var(--safe-bottom)) calc(8px + var(--safe-left));
    gap: 7px;
    border-top: 1px solid var(--line);
    background: rgba(3, 7, 12, 0.97);
    backdrop-filter: blur(18px);
  }

  .mobile-panel-tabs button {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.72rem;
    font-weight: 850;
  }

  .mobile-panel-tabs button.is-active {
    color: var(--cyan);
    border-color: var(--line-strong);
    background: rgba(86, 220, 255, 0.09);
  }

  .ticker-bar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: 0 9px;
  }

  .ticker-source {
    display: none;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .incident-modal {
    width: 100%;
    max-height: min(88dvh, 760px);
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
  }

  .modal-header {
    min-height: 68px;
    padding: 12px 14px;
  }

  .modal-header h2 {
    font-size: 1rem;
  }

  .modal-body {
    display: block;
    max-height: calc(min(88dvh, 760px) - 68px);
  }

  .modal-media,
  .modal-media iframe {
    min-height: 220px;
    height: 220px;
  }

  .modal-intelligence {
    padding: 16px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-grid div {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .modal-actions {
    display: grid;
  }

  .legal-note {
    padding-bottom: max(6px, var(--safe-bottom));
  }
}

/* Mobile landscape: preserve globe visibility despite browser bars */
@media (max-width: 932px) and (orientation: landscape) and (max-height: 540px) {
  :root {
    --topbar-height: 52px;
    --ticker-height: 28px;
    --mobile-tabs-height: 52px;
  }

  .app-shell {
    padding-bottom: calc(var(--mobile-tabs-height) + var(--safe-bottom));
  }

  .topbar {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .brand-lockup h1 {
    font-size: 0.88rem;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .focus-readout {
    width: auto;
    max-width: 55vw;
  }

  .focus-readout .eyebrow,
  .focus-readout span,
  .jarvis-orb-label {
    display: none;
  }

  .jarvis-orb {
    width: 50px;
    height: 50px;
  }

  .mobile-panel-tabs {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    min-height: calc(var(--mobile-tabs-height) + var(--safe-bottom));
    padding-top: 4px;
    padding-bottom: calc(4px + var(--safe-bottom));
  }

  .mobile-panel-tabs button {
    min-height: 40px;
  }

  .panel {
    left: auto;
    width: min(430px, 58vw);
    max-height: calc(100dvh - var(--topbar-height) - var(--ticker-height) - var(--mobile-tabs-height) - var(--safe-bottom));
    border-left: 1px solid var(--line-strong);
    border-radius: 18px 0 0 0;
  }

  .panel--left,
  .panel--right {
    right: 0;
  }

  .panel.mobile-open {
    transform: translateY(0);
  }

  .modal-backdrop {
    padding-left: 8vw;
  }

  .incident-modal {
    max-height: 96dvh;
  }

  .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: calc(96dvh - 58px);
  }

  .modal-header {
    min-height: 58px;
  }

  .modal-media,
  .modal-media iframe {
    min-height: 100%;
    height: 100%;
  }

  .modal-intelligence {
    overflow: auto;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* =========================================================
   3. TABLET VIEWPORT (768px - 1024px)
   ========================================================= */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --topbar-height: 68px;
  }

  .topbar {
    grid-template-columns: minmax(230px, 1fr) auto;
  }

  .topbar-status {
    display: none;
  }

  .command-grid {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  }

  .panel--right {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 44vw);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.4);
  }

  body:not(.panel-right-collapsed) .panel--right {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.panel-left-collapsed .command-grid,
  body.panel-left-collapsed.panel-right-collapsed .command-grid {
    grid-template-columns: 0 minmax(0, 1fr);
  }

  body.panel-right-collapsed .command-grid {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  }

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

  .globe-overlay--top {
    top: 14px;
    left: 14px;
    right: 14px;
  }

  .render-readout {
    display: none;
  }

  .globe-overlay--bottom-left {
    left: 14px;
    bottom: 14px;
  }

  .globe-overlay--bottom-right {
    right: 14px;
    bottom: 14px;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-media,
  .modal-media iframe {
    min-height: 330px;
  }

  .modal-intelligence {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* =========================================================
   4. DESKTOP VIEWPORT (> 1024px)
   ========================================================= */
@media (min-width: 1025px) {
  .panel {
    scrollbar-width: thin;
  }

  .panel:hover {
    background: rgba(8, 15, 24, 0.9);
  }

  .incident-section {
    min-height: 270px;
  }

  .incident-list {
    max-height: min(34vh, 360px);
    overflow-y: auto;
    padding-right: 2px;
  }
}

@media (min-width: 1480px) {
  .command-grid {
    grid-template-columns: 350px minmax(0, 1fr) 390px;
  }

  body.panel-left-collapsed .command-grid {
    grid-template-columns: 0 minmax(0, 1fr) 390px;
  }

  body.panel-right-collapsed .command-grid {
    grid-template-columns: 350px minmax(0, 1fr) 0;
  }

  .panel-section {
    padding: 21px;
  }
}

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

/* Boot diagnostics */
.boot-error-note {
  position: fixed;
  left: 50%;
  bottom: calc(22px + var(--safe-bottom));
  z-index: 10050;
  display: grid;
  gap: 6px;
  width: min(92vw, 620px);
  padding: 14px 16px;
  border: 1px solid rgba(255, 59, 69, 0.58);
  border-radius: 14px;
  background: rgba(16, 4, 8, 0.96);
  box-shadow: var(--shadow), 0 0 36px rgba(255, 59, 69, 0.16);
  transform: translateX(-50%);
}

.boot-error-note strong {
  color: #ff9da3;
}

.boot-error-note span {
  color: var(--muted);
  font-size: 0.86rem;
}

/* =========================================================
   5. ECHTDATEN-ZEITACHSE & QUELLENSTATUS
   ========================================================= */
.status-chip--historical {
  color: var(--cyan);
  border-color: rgba(86, 220, 255, 0.4);
  background: rgba(86, 220, 255, 0.08);
}

.status-chip--forecast {
  color: #d7a6ff;
  border-color: rgba(215, 166, 255, 0.42);
  background: rgba(155, 92, 255, 0.1);
}

.status-chip--error {
  color: #ff9da3;
  border-color: rgba(255, 59, 69, 0.55);
  background: rgba(255, 59, 69, 0.11);
}

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

.timeline-readout {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(86, 220, 255, 0.07), rgba(255, 255, 255, 0.018));
}

.timeline-readout strong {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(86, 220, 255, 0.28);
}

.timeline-readout span {
  max-width: 58%;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: right;
}

.timeline-range {
  width: 100%;
  min-height: 34px;
  margin: 0;
  accent-color: var(--cyan);
  cursor: pointer;
}

.timeline-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(86, 220, 255, 0.75), rgba(215, 166, 255, 0.68));
}

.timeline-range::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
}

.timeline-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.timeline-actions button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: rgba(86, 220, 255, 0.055);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.timeline-actions button:hover:not(:disabled),
.timeline-actions button[aria-pressed="true"] {
  border-color: rgba(86, 220, 255, 0.66);
  background: rgba(86, 220, 255, 0.13);
}

.timeline-actions button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}


.dataset-preload {
  display: grid;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid rgba(86, 220, 255, 0.2);
  border-radius: 10px;
  background: rgba(4, 15, 24, 0.58);
}

.dataset-preload.is-ready {
  border-color: rgba(77, 255, 173, 0.3);
  background: rgba(77, 255, 173, 0.045);
}

.dataset-preload.has-errors {
  border-color: rgba(255, 152, 56, 0.34);
}

.dataset-preload__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.035em;
}

.dataset-preload__row strong {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}

.dataset-preload progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  accent-color: var(--cyan);
}

.dataset-preload progress::-webkit-progress-bar {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.dataset-preload progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.dataset-preload progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.provider-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
}

.provider-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.58rem;
  font-weight: 750;
  line-height: 1.2;
}

.provider-pill.is-ok {
  color: var(--green);
  border-color: rgba(77, 255, 173, 0.32);
  background: rgba(77, 255, 173, 0.055);
}

.provider-pill.is-error,
.provider-pill.is-token_required {
  color: #ff9da3;
  border-color: rgba(255, 59, 69, 0.4);
  background: rgba(255, 59, 69, 0.065);
}

.provider-pill.is-import_required,
.provider-pill.is-empty,
.provider-pill.is-out_of_range,
.provider-pill.is-disabled {
  color: var(--yellow);
  border-color: rgba(255, 224, 92, 0.3);
  background: rgba(255, 224, 92, 0.05);
}

.incident-card.is-forecast {
  border-style: dashed;
  background: linear-gradient(135deg, rgba(155, 92, 255, 0.07), rgba(255, 255, 255, 0.02));
}

@media (max-width: 767px) {
  .timeline-readout {
    padding: 10px 11px;
  }

  .timeline-readout strong {
    font-size: 1.65rem;
  }

  .timeline-actions button {
    min-height: 44px;
  }

  .provider-pill {
    min-height: 27px;
    font-size: 0.61rem;
  }
}

/* =========================================================
   5.8 GLOBE STABILITY & VISUAL REFINEMENT · 2026-08-06
   ========================================================= */
.globe-stage {
  isolation: isolate;
}

.globe-stage::before {
  background:
    radial-gradient(circle at 50% 48%, transparent 38%, rgba(0, 183, 255, 0.035) 54%, rgba(1, 4, 8, 0.34) 76%, rgba(1, 4, 8, 0.82) 100%);
}

.globe-container {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
}

.globe-container canvas {
  outline: none;
  filter: saturate(1.08) contrast(1.04);
}

.globe-stage:has(.loading-screen.is-hidden) .focus-readout,
.globe-stage:has(.loading-screen.is-hidden) .render-readout,
.globe-stage:has(.loading-screen.is-hidden) .legend,
.globe-stage:has(.loading-screen.is-hidden) .jarvis-orb {
  animation: hud-reveal 420ms ease both;
}

@keyframes hud-reveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .globe-stage:has(.loading-screen.is-hidden) .focus-readout,
  .globe-stage:has(.loading-screen.is-hidden) .render-readout,
  .globe-stage:has(.loading-screen.is-hidden) .legend,
  .globe-stage:has(.loading-screen.is-hidden) .jarvis-orb {
    animation: none;
  }
}

/* =========================================================
   5.9 MELDUNGS- & RISIKOMONITOR · 2026-08-06
   ========================================================= */
.incident-monitor-intro {
  margin: -2px 0 13px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.monitor-refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(86, 220, 255, 0.24);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(86, 220, 255, 0.05);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.monitor-refresh-button:hover,
.monitor-refresh-button:focus-visible {
  border-color: rgba(86, 220, 255, 0.58);
  background: rgba(86, 220, 255, 0.11);
  transform: translateY(-1px);
}

.monitor-refresh-button > span:first-child {
  font-size: 1rem;
  line-height: 1;
}

.incident-monitor-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.incident-monitor-summary article {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(148, 176, 198, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(86, 220, 255, 0.035), transparent 70%),
    rgba(255, 255, 255, 0.018);
}

.incident-monitor-summary span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.57rem;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.incident-monitor-summary strong {
  overflow: hidden;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.87rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incident-monitor-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 9px;
}

.incident-monitor-toolbar label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.incident-monitor-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 35px;
  padding: 7px 28px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background-color: rgba(4, 11, 18, 0.84);
  font: inherit;
  font-size: 0.66rem;
  letter-spacing: 0;
  text-transform: none;
}

.incident-monitor-toolbar select:focus-visible {
  border-color: var(--cyan);
  outline: 2px solid rgba(86, 220, 255, 0.14);
  outline-offset: 1px;
}

.incident-monitor-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.56rem;
}

.incident-monitor-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.monitor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.monitor-dot--official { color: var(--green); background: var(--green); }
.monitor-dot--osint { color: var(--cyan); background: var(--cyan); }
.monitor-dot--historical { color: var(--yellow); background: var(--yellow); }
.monitor-dot--forecast { color: #b58cff; background: #b58cff; }

.incident-card {
  gap: 7px;
  padding: 13px 12px 12px 15px;
}

.incident-card-topline {
  align-items: flex-start;
}

.incident-card-category {
  max-width: calc(100% - 92px);
  line-height: 1.35;
}

.incident-card-risk {
  flex: 0 0 auto;
  padding: 4px 6px;
  border: 1px solid color-mix(in srgb, var(--card-color, var(--cyan)) 36%, transparent);
  border-radius: 999px;
  color: var(--card-color, var(--cyan));
  background: color-mix(in srgb, var(--card-color, var(--cyan)) 8%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.57rem;
  font-weight: 800;
  white-space: nowrap;
}

.incident-card-title {
  font-size: 0.8rem !important;
  line-height: 1.36 !important;
}

.incident-card-location {
  overflow: hidden;
  color: rgba(228, 240, 248, 0.78);
  font-size: 0.64rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incident-card p {
  line-height: 1.5;
}

.incident-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  padding-top: 7px;
  border-top: 1px solid rgba(148, 176, 198, 0.1);
}

.incident-card-source {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incident-card-trust {
  padding: 3px 5px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.incident-card-trust--official { color: var(--green); }
.incident-card-trust--osint { color: var(--cyan); }
.incident-card-trust--historical { color: var(--yellow); }
.incident-card-trust--forecast { color: #b58cff; }

.incident-card time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}

.incident-card--official {
  background: linear-gradient(135deg, rgba(77, 255, 173, 0.04), rgba(255, 255, 255, 0.02));
}

.incident-card--osint {
  background: linear-gradient(135deg, rgba(86, 220, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.incident-card--historical {
  background: linear-gradient(135deg, rgba(255, 224, 92, 0.035), rgba(255, 255, 255, 0.02));
}

.empty-state--monitor {
  display: grid;
  gap: 6px;
  text-align: left;
}

.empty-state--monitor strong {
  color: var(--text);
  font-size: 0.76rem;
}

.empty-state--monitor p {
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .incident-monitor-intro {
    font-size: 0.72rem;
  }

  .monitor-refresh-button {
    width: 42px;
    min-width: 42px;
    padding: 7px;
  }

  .monitor-refresh-button > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .incident-monitor-summary article {
    padding: 8px 7px;
  }

  .incident-monitor-summary span {
    font-size: 0.5rem;
  }

  .incident-monitor-summary strong {
    font-size: 0.78rem;
  }

  .incident-monitor-toolbar {
    grid-template-columns: 1fr;
  }

  .incident-monitor-toolbar select {
    min-height: 44px;
    font-size: 0.72rem;
  }

  .incident-card-footer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .incident-card-footer time {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (min-width: 1025px) {
  .incident-section {
    min-height: 390px;
  }

  .incident-list {
    max-height: min(41vh, 470px);
  }
}


/* Risk-column layer · 20260807-26 */
.risk-column-note {
  margin: 8px 0 0;
  max-width: 360px;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.35;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

@media (max-width: 767px) {
  .risk-column-note {
    max-width: min(78vw, 310px);
    font-size: 0.62rem;
  }
}

/* =========================================================
   5. SECURITY RISK SCALE, PROJECT NAVIGATION & INFO PAGES
   ========================================================= */
.topbar {
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
}

.project-nav,
.page-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-nav a,
.page-nav a {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 850;
  white-space: nowrap;
}

.project-nav a:hover,
.project-nav a.is-active,
.page-nav a:hover,
.page-nav a.is-active {
  color: var(--cyan);
  border-color: var(--line-strong);
  background: rgba(86, 220, 255, 0.08);
}

.legend-dot--risk-low { color: #35e68a; background: #35e68a; }
.legend-dot--risk-mid { color: #ffd84d; background: #ffd84d; }
.legend-dot--risk-high { color: #ff3b45; background: #ff3b45; }

.risk-column-note {
  max-width: 430px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.62rem;
}

.incident-section {
  min-height: 320px;
}

.incident-list {
  min-height: 118px;
}

.incident-card-risk {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 0.58rem;
  font-weight: 850;
  white-space: nowrap;
}

.incident-card-location {
  color: #c4d9e5;
  font-size: 0.66rem;
}

.incident-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 3px;
}

.incident-card-source {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.58rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.incident-card-trust {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 850;
}

/* Standalone school, presentation and status pages */
html:has(body.site-page),
body.site-page {
  min-height: 100%;
  overflow: auto;
}

body.site-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(31, 114, 153, 0.18), transparent 34%),
    linear-gradient(180deg, #07101a, var(--bg-0));
}

.page-shell {
  width: min(1440px, calc(100% - 28px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(16px, var(--safe-top)) 0 max(38px, var(--safe-bottom));
}

.page-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(3, 7, 12, 0.9);
  backdrop-filter: blur(18px);
}

.page-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.page-brand h1 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.34rem);
}

.page-main {
  display: grid;
  gap: 18px;
  padding-top: 20px;
}

.page-hero,
.info-card,
.metric-card,
.chart-card,
.status-card,
.lesson-card,
.analysis-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 15, 24, 0.82);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 22px;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(86, 220, 255, 0.08), transparent 48%),
    rgba(8, 15, 24, 0.88);
}

.page-hero h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.page-hero p {
  max-width: 850px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-facts,
.metric-grid,
.status-grid,
.lesson-grid,
.chart-grid,
.analysis-grid {
  display: grid;
  gap: 12px;
}

.hero-facts {
  align-content: start;
}

.hero-facts article,
.metric-card,
.status-card,
.lesson-card,
.chart-card,
.analysis-card,
.info-card {
  padding: 17px;
}

.hero-facts article {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}

.hero-facts span,
.metric-card span,
.status-card span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-facts strong,
.metric-card strong,
.status-card strong {
  display: block;
  margin-top: 4px;
  color: var(--cyan);
  font-size: 1.3rem;
}

.metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.status-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lesson-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.analysis-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section-title {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.chart-card canvas,
.chart-card svg {
  display: block;
  width: 100%;
  min-height: 260px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: .7rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
  text-align: left;
  vertical-align: top;
}

.data-table th { color: var(--cyan); }
.data-table td { color: #cfe2ed; }

.status-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 850;
}
.status-light::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.status-light--ok { color: var(--green); }
.status-light--ok::before { background: var(--green); box-shadow: 0 0 10px rgba(77,255,173,.8); }
.status-light--warn { color: var(--yellow); }
.status-light--warn::before { background: var(--yellow); }
.status-light--error { color: var(--red); }
.status-light--error::before { background: var(--red); }

.lesson-card h3,
.analysis-card h3,
.chart-card h3,
.info-card h3 {
  margin: 0 0 8px;
}
.lesson-card p,
.analysis-card p,
.info-card p,
.chart-card p {
  color: var(--muted);
  line-height: 1.65;
}

.risk-scale {
  display: grid;
  grid-template-columns: 40fr 30fr 30fr;
  min-height: 18px;
  overflow: hidden;
  border-radius: 999px;
}
.risk-scale span:nth-child(1) { background: #35e68a; }
.risk-scale span:nth-child(2) { background: #ffd84d; }
.risk-scale span:nth-child(3) { background: #ff3b45; }

.quiz-option {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255,255,255,.025);
  text-align: left;
  cursor: pointer;
}
.quiz-option.is-correct { border-color: rgba(77,255,173,.6); background: rgba(77,255,173,.08); }
.quiz-option.is-wrong { border-color: rgba(255,59,69,.6); background: rgba(255,59,69,.08); }

.page-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}
.page-controls label { display: grid; gap: 5px; color: var(--muted); font-size: .7rem; }
.page-controls select,
.page-controls input {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #07111b;
}

@media (max-width: 1180px) {
  .topbar { grid-template-columns: minmax(220px,1fr) auto auto; }
  .project-nav { display: none; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .page-header { position: relative; grid-template-columns: 1fr; }
  .page-nav { overflow-x: auto; padding-bottom: 2px; }
  .page-hero { grid-template-columns: 1fr; }
  .metric-grid,
  .lesson-grid,
  .chart-grid,
  .analysis-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-table { min-width: 720px; }
  .table-scroll { overflow-x: auto; }
}

@media (max-width: 520px) {
  .page-shell { width: min(100% - 16px, 1440px); }
  .status-grid { grid-template-columns: 1fr; }
  .incident-card-footer { grid-template-columns: 1fr auto; }
  .incident-card-trust { justify-self: start; }
  .incident-card time { grid-column: 2; grid-row: 1; }
}

.section-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}
.section-links a {
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(86,220,255,.045);
  text-align: center;
  text-decoration: none;
  font-size: .65rem;
  font-weight: 850;
}


/* Globe projection synchronization · 20260807-26 */
.globe-sync-note{font-size:.72rem;color:var(--muted);line-height:1.45}

/* Country orientation labels & freshness colors · 20260807-26 */
.country-label-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint style;
}

.country-label-layer.is-hidden {
  display: none;
}

.country-label {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 7px 2px 16px;
  border: 1px solid rgba(142, 238, 255, 0.2);
  border-radius: 999px;
  color: rgba(226, 248, 255, 0.94);
  background: linear-gradient(90deg, rgba(2, 11, 18, 0.86), rgba(2, 11, 18, 0.55));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.44);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
  will-change: transform, opacity;
}

.country-label::before {
  content: "";
  position: absolute;
  left: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px currentColor;
}

.country-label--level-1 {
  border-color: rgba(142, 238, 255, 0.34);
  color: #eafaff;
  font-size: 0.67rem;
}

.country-label--level-2 {
  color: rgba(220, 245, 252, 0.88);
  font-size: 0.59rem;
}

.country-label--level-3 {
  color: rgba(204, 233, 241, 0.8);
  font-size: 0.54rem;
  background: rgba(2, 11, 18, 0.68);
}


@media (max-width: 767px) {
  .country-label {
    min-height: 16px;
    padding: 2px 5px 2px 13px;
    font-size: 0.53rem;
    letter-spacing: 0.035em;
  }

  .country-label::before {
    left: 5px;
    width: 4px;
    height: 4px;
  }

  .country-label--level-1 {
    font-size: 0.56rem;
  }

  .country-label--level-2 {
    font-size: 0.49rem;
  }
}

/* Water-analysis-inspired risk column palette · 20260807-26 */
.detail-filter--column-color {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(68, 207, 193, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(25, 181, 172, 0.07), rgba(244, 211, 75, 0.035) 55%, rgba(255, 63, 69, 0.045));
}

.detail-filter--column-color small {
  color: rgba(190, 216, 224, 0.68);
  font-size: 0.61rem;
  line-height: 1.45;
}

.legend--freshness {
  background:
    linear-gradient(90deg, rgba(32, 201, 166, 0.09), rgba(242, 211, 75, 0.07) 52%, rgba(255, 63, 69, 0.08)),
    rgba(2, 10, 17, 0.78);
}

.legend--freshness span b {
  color: inherit;
  font: inherit;
}

.legend-dot--freshness-old {
  color: #20c9a6;
  background: #20c9a6;
  box-shadow: 0 0 10px rgba(32, 201, 166, 0.8);
}

.legend-dot--freshness-mid {
  color: #f2d34b;
  background: #f2d34b;
  box-shadow: 0 0 10px rgba(242, 211, 75, 0.72);
}

.legend-dot--freshness-new {
  color: #ff3f45;
  background: #ff3f45;
  box-shadow: 0 0 10px rgba(255, 63, 69, 0.78);
}

.risk-column-note {
  max-width: 430px;
  border-left-color: rgba(32, 201, 166, 0.62);
  background: linear-gradient(90deg, rgba(32, 201, 166, 0.07), rgba(242, 211, 75, 0.04), transparent);
}


/* Fixed alarm-level column mode · 20260807-26 */
.detail-filter--column-color > strong {
  display: block;
  margin-top: .32rem;
  color: var(--cyber-cyan, #68e6ff);
  font-size: .82rem;
  letter-spacing: .035em;
}


/* =========================================================
   PANEL CONTROLS · 20260807-26
   ========================================================= */
.command-grid { transition: grid-template-columns 240ms ease; }
.panel-top-toggle { display:inline-flex; width:auto; min-width:42px; padding:0 11px; gap:7px; white-space:nowrap; }
.panel-top-toggle .panel-toggle-text { color:var(--text); font-size:.73rem; font-weight:800; letter-spacing:.02em; }
.panel-top-toggle.is-collapsed { border-color:rgba(86,220,255,.5); background:rgba(86,220,255,.14); }
.panel-close-button { position:sticky; top:8px; z-index:12; display:grid; place-items:center; width:34px; height:34px; margin:8px 10px -42px auto; border:1px solid var(--line-strong); border-radius:10px; color:var(--cyan); background:rgba(3,9,15,.9); box-shadow:0 6px 20px rgba(0,0,0,.3); cursor:pointer; }
.panel-close-button--right { margin-right:auto; margin-left:10px; }
.panel-edge-toggle { position:absolute; top:50%; z-index:32; display:flex; align-items:center; gap:7px; min-height:52px; padding:8px 10px; border:1px solid var(--line-strong); color:var(--cyan); background:rgba(4,12,20,.94); box-shadow:0 12px 34px rgba(0,0,0,.42),0 0 18px rgba(86,220,255,.08); transform:translateY(-50%); cursor:pointer; backdrop-filter:blur(14px); }
.panel-edge-toggle b { color:var(--text); font-size:.7rem; letter-spacing:.04em; writing-mode:vertical-rl; text-orientation:mixed; }
.panel-edge-toggle--left { left:0; border-left:0; border-radius:0 12px 12px 0; }
.panel-edge-toggle--right { right:0; border-right:0; border-radius:12px 0 0 12px; }
.panel-edge-toggle:hover,.panel-close-button:hover { border-color:var(--cyan); background:rgba(14,39,55,.96); }
@media (max-width:1240px) and (min-width:768px) { .panel-top-toggle .panel-toggle-text{display:none}.panel-top-toggle{width:42px;padding:0;justify-content:center} }
@media (max-width:767px) { .panel-edge-toggle{display:none!important}.panel-close-button{position:sticky;top:4px;margin-top:0;margin-bottom:-38px} }

/* =========================================================
   RIGHT-PANEL HEADING OFFSET · 20260807-26
   Leaves a dedicated column for the left-side collapse arrow.
   ========================================================= */
.panel--right .section-heading--right-panel-offset {
  box-sizing: border-box;
  min-height: 34px;
  padding-inline-start: 44px;
}

@media (max-width: 767px) {
  .panel--right .section-heading--right-panel-offset {
    padding-inline-start: 42px;
  }
}
