:root {
  color-scheme: dark;
  --bg: #03070a;
  --panel: #06141a;
  --panel-2: #0b2025;
  --line: rgba(132, 223, 210, 0.2);
  --line-strong: rgba(132, 223, 210, 0.38);
  --text: #eef8ff;
  --muted: #9db8b7;
  --cyan: #82e6ff;
  --blue: #20c7d8;
  --violet: #6ea4ff;
  --alert: #ff6d7a;
  --gold: #f0b84a;
  --green: #42e6b0;
  --glass: rgba(5, 17, 20, 0.8);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(32, 199, 216, 0.14), transparent 28%, rgba(240, 184, 74, 0.08) 56%, transparent 76%),
    linear-gradient(135deg, #010507 0%, #07171b 46%, #020406 100%);
  background-size: 170% 170%, 100% 100%;
  color: var(--text);
  animation: global-flow 18s ease-in-out infinite;
}

body.zoom-street,
body.zoom-block {
  background:
    linear-gradient(120deg, rgba(240, 184, 74, 0.1), transparent 26%, rgba(66, 230, 176, 0.12) 55%, transparent 76%),
    linear-gradient(135deg, #020607 0%, #0b1715 48%, #050305 100%);
}

button,
a {
  font: inherit;
}

.news-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, clamp(360px, 29vw, 430px));
  width: 100%;
  height: 100vh;
}

.map-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(54, 197, 240, 0.09), transparent 38%),
    #02070d;
  isolation: isolate;
}

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

.map-stage::before {
  background:
    linear-gradient(rgba(125, 211, 252, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 44%, black, transparent 76%);
  opacity: 0.22;
}

body.zoom-street .map-stage::before,
body.zoom-block .map-stage::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 184, 74, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.18;
}

.map-stage::after {
  background:
    radial-gradient(circle at 50% 42%, transparent, rgba(0, 0, 0, 0.18));
  opacity: 0.34;
  transition: opacity 180ms ease;
}

.map-stage.map-updating::after {
  opacity: 0.24;
}

.map-stage.has-live-alert::after {
  opacity: 0.4;
  background:
    radial-gradient(circle at 50% 46%, transparent 38%, rgba(0, 0, 0, 0.46)),
    linear-gradient(120deg, rgba(255, 59, 92, 0.08), transparent 34%, rgba(240, 184, 74, 0.07));
}

.map-stage.has-critical-alert::before {
  opacity: 0.28;
  background-size: 28px 28px;
}

.map-stage.map-busy::after {
  opacity: 0.18;
}

.map-stage.map-busy .map-attribution,
.map-stage.map-busy .satellite-strip,
.map-stage.map-busy .top-story-card,
.map-stage.map-busy .alert-strip-card {
  opacity: 0.72;
  transition: opacity 120ms ease;
}

#world-map {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: grid;
  gap: 4px;
  min-width: min(300px, calc(100% - 32px));
  padding: 14px;
  border: 1px solid rgba(114, 210, 219, 0.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(9, 22, 31, 0.9), rgba(17, 34, 43, 0.84));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36), 0 0 34px rgba(103, 232, 249, 0.1);
  color: var(--text);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.map-loader.hidden {
  display: none;
}

.map-loader b {
  font-size: 0.94rem;
}

.map-loader span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.map-topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(3, 11, 18, 0.94), rgba(8, 24, 35, 0.82)),
    linear-gradient(90deg, rgba(125, 211, 252, 0.08), transparent);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 0 34px rgba(54, 197, 240, 0.08);
  backdrop-filter: blur(16px);
}

.map-controls {
  position: absolute;
  top: 86px;
  right: 16px;
  z-index: 4;
  display: grid;
  gap: 7px;
}

.map-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(4, 14, 22, 0.95), rgba(10, 31, 43, 0.9));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 22px rgba(54, 197, 240, 0.09);
  color: var(--text);
  font-size: 1rem;
  font-weight: 1000;
  cursor: pointer;
}

.mobile-map-toggle {
  position: absolute;
  right: 16px;
  bottom: 64px;
  z-index: 4;
  display: none;
  min-height: 38px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 8px;
  padding: 0 12px;
  background: linear-gradient(135deg, rgba(3, 11, 18, 0.94), rgba(54, 197, 240, 0.14));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 24px rgba(54, 197, 240, 0.12);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 1000;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.mobile-map-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(130, 230, 255, 0.8);
  animation: focus-dot 1.8s ease-in-out infinite;
}

.satellite-strip {
  position: absolute;
  left: 16px;
  right: auto;
  top: 76px;
  bottom: auto;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  padding: 7px 9px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(2, 8, 14, 0.82), rgba(7, 24, 35, 0.68));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32), 0 0 24px rgba(54, 197, 240, 0.08);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.satellite-strip span,
.satellite-strip i {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.satellite-strip b {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.satellite-strip i {
  color: var(--green);
  font-style: normal;
}

.satellite-strip.updating {
  border-color: rgba(217, 154, 43, 0.4);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32), 0 0 30px rgba(217, 154, 43, 0.14);
}

.satellite-strip.updating i {
  color: var(--gold);
}

.satellite-strip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(56, 226, 192, 0.9);
  animation: live-pulse 1.45s ease-in-out infinite;
}

.satellite-strip.updating::before {
  background: var(--gold);
  box-shadow: 0 0 20px rgba(217, 154, 43, 0.9);
}

.map-health {
  position: absolute;
  left: 16px;
  bottom: 42px;
  z-index: 4;
  display: grid;
  gap: 2px;
  max-width: min(340px, calc(100% - 32px));
  border: 1px solid rgba(132, 223, 210, 0.22);
  border-radius: 9px;
  padding: 8px 10px;
  background:
    linear-gradient(135deg, rgba(3, 11, 18, 0.86), rgba(10, 34, 42, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(66, 230, 176, 0.14), transparent 45%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 24px rgba(66, 230, 176, 0.08);
  color: var(--text);
  pointer-events: none;
  backdrop-filter: blur(14px);
}

.map-health span {
  color: var(--green);
  font-size: 0.67rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.map-health b {
  overflow: hidden;
  color: #e9fff8;
  font-size: 0.78rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-health.updating {
  border-color: rgba(240, 184, 74, 0.34);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3), 0 0 28px rgba(240, 184, 74, 0.1);
}

.map-health.updating span {
  color: var(--gold);
}

.map-health.interacting {
  border-color: rgba(130, 230, 255, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3), 0 0 28px rgba(54, 197, 240, 0.14);
}

.map-health.interacting span {
  color: var(--cyan);
}

.top-story-card {
  position: absolute;
  left: 16px;
  top: 138px;
  z-index: 4;
  width: min(430px, calc(100% - 104px));
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid rgba(132, 223, 210, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(138deg, rgba(2, 8, 14, 0.9), rgba(8, 29, 36, 0.78)),
    linear-gradient(105deg, rgba(130, 230, 255, 0.14), rgba(66, 230, 176, 0.08), rgba(240, 184, 74, 0.11));
  background-size: 100% 100%, 180% 180%;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34), 0 0 28px rgba(66, 230, 176, 0.08);
  color: var(--text);
  backdrop-filter: blur(16px);
  animation: panel-flow 8s ease-in-out infinite;
}

.top-story-card.updating {
  border-color: rgba(240, 184, 74, 0.42);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34), 0 0 34px rgba(240, 184, 74, 0.13);
}

.top-story-card span {
  color: var(--green);
  font-size: 0.66rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.top-story-card.updating span {
  color: var(--gold);
}

.top-story-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.12;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.top-story-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 740;
  line-height: 1.28;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.top-story-card div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.top-story-card b {
  min-width: 0;
  overflow: hidden;
  color: #dff7f4;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-story-card button {
  min-height: 30px;
  border: 1px solid rgba(132, 223, 210, 0.34);
  border-radius: 7px;
  padding: 0 11px;
  background: linear-gradient(135deg, rgba(66, 230, 176, 0.2), rgba(130, 230, 255, 0.1));
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 1000;
  cursor: pointer;
}

.alert-strip-card {
  position: absolute;
  right: 78px;
  top: 86px;
  z-index: 4;
  width: min(360px, calc(100% - 560px));
  min-width: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(240, 184, 74, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(6, 13, 18, 0.9), rgba(29, 20, 14, 0.76)),
    linear-gradient(90deg, rgba(255, 59, 92, 0.12), rgba(240, 184, 74, 0.1), rgba(66, 230, 176, 0.06));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34), 0 0 28px rgba(240, 184, 74, 0.08);
  backdrop-filter: blur(16px);
}

.alert-strip-card.has-alerts {
  border-color: rgba(255, 59, 92, 0.38);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34), 0 0 32px rgba(255, 59, 92, 0.12);
}

.map-stage.has-critical-alert .alert-strip-card.has-alerts,
.map-stage.has-critical-alert .report-card-alert {
  border-color: rgba(255, 59, 92, 0.58);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36), 0 0 42px rgba(255, 59, 92, 0.18);
}

.alert-strip-card span {
  grid-column: 1 / -1;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.alert-strip-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-strip-card button {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  padding: 0 9px;
  background: linear-gradient(135deg, rgba(255, 59, 92, 0.18), rgba(240, 184, 74, 0.1));
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 1000;
  cursor: pointer;
}

.map-attribution {
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 3;
  max-width: calc(100% - 24px);
  padding: 5px 7px;
  border: 1px solid rgba(10, 22, 28, 0.1);
  border-radius: 7px;
  background: rgba(255, 253, 244, 0.82);
  color: #2c3d43;
  font-size: 0.66rem;
  font-weight: 850;
}

.map-topbar a,
.map-topbar button,
.report-card a,
.report-card button,
.control-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 7px;
  padding: 0 12px;
  background: linear-gradient(135deg, rgba(54, 197, 240, 0.11), rgba(79, 141, 247, 0.09));
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.map-topbar button,
.report-card button,
.control-button {
  cursor: pointer;
}

.map-topbar a:hover,
.map-topbar button:hover,
.report-card a:hover,
.report-card button:hover,
.control-button:hover {
  border-color: rgba(125, 211, 252, 0.54);
  background: linear-gradient(135deg, rgba(54, 197, 240, 0.18), rgba(79, 141, 247, 0.13));
  transform: translateY(-1px);
}

.map-topbar span,
.panel-heading span,
.eyebrow {
  display: block;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.map-topbar strong,
.panel-heading strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#feed-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(94, 234, 212, 0.85);
  animation: live-pulse 1.4s ease-in-out infinite;
}

.report-card {
  position: absolute;
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
  z-index: 3;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 154px);
  display: grid;
  gap: 8px;
  padding: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(2, 8, 12, 0.95), rgba(7, 23, 29, 0.9)),
    linear-gradient(120deg, rgba(32, 199, 216, 0.17), transparent 36%, rgba(66, 230, 176, 0.09), rgba(240, 184, 74, 0.09));
  background-size: 100% 100%, 180% 180%;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.46), 0 0 38px rgba(54, 197, 240, 0.07);
  backdrop-filter: blur(18px);
  animation: card-rise 180ms ease both, panel-flow 8s ease-in-out infinite;
}

.map-bubble {
  position: absolute;
  z-index: 5;
  width: min(245px, calc(100% - 24px));
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(2, 8, 15, 0.96), rgba(8, 26, 37, 0.92)),
    radial-gradient(circle at 0% 0%, rgba(125, 211, 252, 0.16), transparent 46%);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.46), 0 0 36px rgba(54, 197, 240, 0.14);
  color: var(--text);
  pointer-events: auto;
  transform: translate(16px, -50%);
  backdrop-filter: blur(16px);
  animation: bubble-pop 150ms ease both;
}

.map-bubble[aria-hidden="true"] {
  display: none;
}

.map-bubble.bubble-left {
  transform: translate(calc(-100% - 16px), -50%);
}

.map-bubble::before {
  content: "";
  position: absolute;
  left: -5px;
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(125, 211, 252, 0.3);
  border-bottom: 1px solid rgba(125, 211, 252, 0.3);
  background: rgba(3, 11, 18, 0.96);
  transform: rotate(45deg);
}

.map-bubble.bubble-left::before {
  right: -5px;
  left: auto;
  transform: rotate(225deg);
}

.map-bubble span {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.map-bubble strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.12;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.map-bubble p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.map-bubble div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.map-bubble b {
  min-width: 0;
  overflow: hidden;
  color: #d7e8ec;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-bubble button {
  min-height: 31px;
  border: 1px solid rgba(217, 154, 43, 0.46);
  border-radius: 7px;
  padding: 0 10px;
  background: linear-gradient(135deg, rgba(217, 154, 43, 0.22), rgba(54, 197, 240, 0.1));
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 1000;
  cursor: pointer;
}

.bubble-country {
  border-color: rgba(79, 141, 247, 0.44);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.46), 0 0 36px rgba(79, 141, 247, 0.14);
}

.bubble-local {
  border-color: rgba(217, 154, 43, 0.46);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.46), 0 0 36px rgba(217, 154, 43, 0.14);
}

.bubble-alert {
  border-color: rgba(224, 95, 114, 0.56);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.46), 0 0 38px rgba(224, 95, 114, 0.18);
}

.report-card::before {
  content: "";
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.5);
}

.report-card-world {
  border-color: rgba(34, 211, 238, 0.36);
}

.report-card-country {
  border-color: rgba(139, 124, 246, 0.42);
}

.report-card-local {
  border-color: rgba(251, 191, 36, 0.42);
}

.report-card-alert {
  border-color: rgba(251, 113, 133, 0.52);
}

.report-card[aria-hidden="true"] {
  display: none;
}

.report-card span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.report-card h1 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  line-height: 1.08;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.report-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.report-meta b {
  min-width: 0;
  padding: 6px 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.075);
  color: #d7e8ec;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.report-actions a,
.report-actions button {
  min-width: 0;
  min-height: 36px;
  overflow: hidden;
  border-color: rgba(103, 232, 249, 0.34);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#briefing-open {
  border-color: rgba(217, 154, 43, 0.5);
  background: linear-gradient(135deg, rgba(217, 154, 43, 0.18), rgba(54, 197, 240, 0.08));
  box-shadow: 0 0 22px rgba(217, 154, 43, 0.07);
}

#story-link {
  border-color: rgba(125, 211, 252, 0.34);
  background: rgba(54, 197, 240, 0.08);
}

.briefing-peek {
  position: absolute;
  left: calc(100% + 12px);
  bottom: 0;
  z-index: 6;
  width: min(330px, calc(100vw - 468px));
  min-width: 290px;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(2, 8, 15, 0.98), rgba(8, 24, 36, 0.94)),
    radial-gradient(circle at 90% 0%, rgba(54, 197, 240, 0.12), transparent 42%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48), 0 0 46px rgba(54, 197, 240, 0.12);
  backdrop-filter: blur(18px);
  animation: peek-in 170ms ease both;
}

.briefing-peek[aria-hidden="true"] {
  display: none;
}

.briefing-peek::before {
  content: "";
  position: absolute;
  left: -8px;
  bottom: 22px;
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(125, 211, 252, 0.26);
  border-bottom: 1px solid rgba(125, 211, 252, 0.26);
  background: rgba(2, 8, 15, 0.98);
  transform: rotate(45deg);
}

#briefing-peek-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 1000;
  cursor: pointer;
}

.peek-video {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 40%, rgba(54, 197, 240, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.42), rgba(8, 24, 36, 0.78));
}

.peek-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.12), transparent);
  background-size: 100% 6px, 100% 100%;
  animation: scan-drift 3.4s linear infinite;
}

.peek-video span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.peek-video i {
  position: absolute;
  right: 18px;
  top: 20px;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(54, 197, 240, 0.24);
}

.peek-video i::before {
  content: "";
  position: absolute;
  inset: 11px 9px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: var(--gold);
}

.briefing-peek > span {
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.briefing-peek h2 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.05;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.briefing-peek p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.35;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.peek-meta,
.peek-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.peek-meta b {
  min-width: 0;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.3);
  color: #dff8ff;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.peek-actions button,
.peek-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 8px;
  padding: 0 10px;
  background: linear-gradient(135deg, rgba(54, 197, 240, 0.12), rgba(79, 141, 247, 0.08));
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 1000;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.peek-actions button {
  border-color: rgba(217, 154, 43, 0.48);
  background: linear-gradient(135deg, rgba(217, 154, 43, 0.18), rgba(54, 197, 240, 0.08));
}

.peek-country {
  border-color: rgba(79, 141, 247, 0.34);
}

.peek-local {
  border-color: rgba(217, 154, 43, 0.34);
}

.peek-alert {
  border-color: rgba(224, 95, 114, 0.46);
}

.news-panel {
  display: grid;
  grid-template-rows: max-content max-content max-content;
  align-content: start;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(4, 16, 19, 0.99), rgba(1, 6, 9, 0.98)),
    radial-gradient(circle at 12% 0%, rgba(66, 230, 176, 0.1), transparent 28%);
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 232, 249, 0.5) rgba(255, 255, 255, 0.08);
}

.control-card {
  min-height: max-content;
  overflow: visible;
}

.control-section {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(132, 223, 210, 0.16);
  border-radius: 8px;
  padding: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(54, 197, 240, 0.024)),
    rgba(0, 0, 0, 0.18);
}

.control-section[open] {
  border-color: rgba(132, 223, 210, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.control-section summary {
  min-height: 34px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 7px;
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.control-section summary::-webkit-details-marker {
  display: none;
}

.control-section summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
  transition: transform 150ms ease;
}

.control-section[open] summary::before {
  transform: rotate(45deg);
}

.control-section summary span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-section summary b {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.control-section[open] summary {
  background: linear-gradient(135deg, rgba(54, 197, 240, 0.1), rgba(240, 184, 74, 0.055));
}

.hero-card,
.control-card,
.achievement-card,
.list-card {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(100%, 430px);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(145deg, rgba(5, 16, 24, 0.92), rgba(3, 10, 16, 0.94)),
    linear-gradient(120deg, rgba(66, 230, 176, 0.08), transparent 42%, rgba(240, 184, 74, 0.08));
  background-size: 100% 100%, 180% 180%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  animation: panel-settle 220ms ease both, panel-flow 10s ease-in-out infinite;
}

.hero-card {
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: center;
}

.hero-card::after,
.control-card::after,
.achievement-card::after,
.list-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  opacity: 0;
  transform: translateX(-40%);
}

.hero-card:hover::after,
.control-card:hover::after,
.achievement-card:hover::after,
.list-card:hover::after {
  animation: panel-shine 900ms ease;
}

.hero-card img {
  display: block;
  width: 100%;
  height: 104px;
  aspect-ratio: auto;
  border-radius: 7px;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.06);
}

.hero-card h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.35;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}

.toggle-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(54, 197, 240, 0.03));
  color: #d7e8ec;
  font-weight: 900;
}

.toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--cyan);
}

.control-button {
  width: 100%;
  border-color: rgba(217, 154, 43, 0.36);
  background: linear-gradient(135deg, rgba(217, 154, 43, 0.16), rgba(54, 197, 240, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.layer-tabs,
.timeline-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: 6px;
}

.layer-tabs button,
.timeline-filter button {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.042), rgba(54, 197, 240, 0.03));
  color: #d7e8ec;
  font-size: 0.78rem;
  font-weight: 1000;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.timeline-filter {
  padding: 5px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.timeline-filter button {
  min-height: 32px;
  border-color: rgba(125, 211, 252, 0.18);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.72rem;
}

.layer-tabs button.active,
.timeline-filter button.active {
  border-color: rgba(125, 211, 252, 0.52);
  background: linear-gradient(135deg, rgba(54, 197, 240, 0.16), rgba(79, 141, 247, 0.13));
  box-shadow: 0 0 24px rgba(54, 197, 240, 0.08);
  color: var(--text);
  transform: translateY(-1px);
  animation: active-signal 2.8s ease-in-out infinite;
}

.world-regions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 6px;
}

.world-regions button {
  min-width: 0;
  min-height: 34px;
  padding: 0 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.22), rgba(54, 197, 240, 0.022));
  color: #d7e8ec;
  font-size: 0.7rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.world-regions button:hover,
.world-regions button.active {
  border-color: rgba(217, 154, 43, 0.42);
  background: linear-gradient(135deg, rgba(217, 154, 43, 0.15), rgba(54, 197, 240, 0.06));
  transform: translateY(-1px);
}

.zoom-handoff {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.zoom-handoff span {
  min-width: 0;
  padding: 6px 4px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.zoom-handoff span.active {
  background: linear-gradient(135deg, rgba(217, 154, 43, 0.2), rgba(54, 197, 240, 0.07));
  color: var(--text);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.1);
}

.zoom-context {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.zoom-meter {
  position: relative;
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(132, 223, 210, 0.18);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(54, 197, 240, 0.08), rgba(240, 184, 74, 0.08), rgba(66, 230, 176, 0.08));
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.34);
}

.zoom-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--green));
  box-shadow: 0 0 18px rgba(130, 230, 255, 0.34);
  transition: width 140ms ease;
}

.zoom-live {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -2px 0 0;
  color: #d7e8ec;
  font-size: 0.72rem;
  font-weight: 950;
}

.zoom-live::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(66, 230, 176, 0.62);
}

.zoom-live[data-status="queued"]::before,
.zoom-live[data-status="syncing"]::before {
  background: var(--gold);
  box-shadow: 0 0 18px rgba(240, 184, 74, 0.72);
  animation: zoom-status-pulse 900ms ease-in-out infinite;
}

.zoom-live[data-status="syncing"] {
  color: #fff2bf;
}

.zoom-intel {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(132, 223, 210, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 22, 28, 0.82), rgba(3, 10, 15, 0.9)),
    linear-gradient(100deg, rgba(54, 197, 240, 0.1), transparent 48%, rgba(240, 184, 74, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 0 24px rgba(54, 197, 240, 0.055);
}

.zoom-intel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  opacity: 0.5;
  transform: translateX(-78%);
  animation: intel-scan 5.2s ease-in-out infinite;
  pointer-events: none;
}

.zoom-intel span,
.zoom-intel strong,
.zoom-intel p {
  position: relative;
  z-index: 1;
}

.zoom-intel span {
  color: var(--green);
  font-size: 0.66rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.zoom-intel strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.12;
}

.zoom-intel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 790;
  line-height: 1.28;
}

.zoom-intel[data-zoom-band="street"],
.zoom-intel[data-zoom-band="block"] {
  border-color: rgba(240, 184, 74, 0.36);
  background:
    linear-gradient(135deg, rgba(20, 17, 12, 0.84), rgba(5, 14, 15, 0.9)),
    linear-gradient(100deg, rgba(240, 184, 74, 0.14), transparent 46%, rgba(66, 230, 176, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 0 26px rgba(240, 184, 74, 0.08);
}

.zoom-intel[data-zoom-band="street"] span,
.zoom-intel[data-zoom-band="block"] span {
  color: var(--gold);
}

body.zoom-refresh-queued .zoom-intel,
body.zoom-refresh-syncing .zoom-intel {
  border-color: rgba(240, 184, 74, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 0 34px rgba(240, 184, 74, 0.11);
}

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

.status-strip span {
  min-width: 0;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
  color: #d7e8ec;
  font-size: 0.72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accuracy-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid rgba(66, 230, 176, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(66, 230, 176, 0.1), rgba(32, 199, 216, 0.045)),
    rgba(0, 0, 0, 0.18);
}

.accuracy-strip span {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
  white-space: nowrap;
}

.accuracy-strip strong {
  min-width: 0;
  overflow: hidden;
  color: #eef8ff;
  font-size: 0.78rem;
  font-weight: 950;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.map-legend span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
  color: #d7e8ec;
  font-size: 0.7rem;
  font-weight: 1000;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-legend i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  box-shadow: 0 0 16px currentColor;
}

.legend-critical {
  color: #ff3b5c;
  background: #ff3b5c;
}

.legend-watch {
  color: #f0b84a;
  background: #f0b84a;
}

.legend-standard {
  color: #42e6b0;
  background: #42e6b0;
}

.legend-alert {
  color: #ff7a3d;
  background: #ff7a3d;
}

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

.alert-board button {
  min-width: 0;
  min-height: 52px;
  display: grid;
  gap: 3px;
  justify-items: start;
  border: 1px solid rgba(132, 223, 210, 0.18);
  border-radius: 8px;
  padding: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(132, 223, 210, 0.12), transparent 44%),
    rgba(0, 0, 0, 0.28);
  color: var(--text);
  cursor: pointer;
}

.alert-board button:hover {
  border-color: rgba(240, 184, 74, 0.42);
  background:
    radial-gradient(circle at 100% 0%, rgba(240, 184, 74, 0.14), transparent 44%),
    rgba(0, 0, 0, 0.34);
}

.alert-board button.active {
  border-color: rgba(255, 255, 255, 0.38);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.14), transparent 46%),
    linear-gradient(135deg, rgba(54, 197, 240, 0.12), rgba(240, 184, 74, 0.1));
  box-shadow: 0 0 24px rgba(240, 184, 74, 0.1);
}

.alert-board button.empty {
  opacity: 0.58;
}

.alert-board span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 1000;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.alert-board strong {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 1000;
}

.alert-board [data-severity-focus="critical"] strong {
  color: #ff6f86;
}

.alert-board [data-severity-focus="alert"] strong {
  color: #ff9a5f;
}

.alert-board [data-severity-focus="watch"] strong {
  color: #f0d26f;
}

.alert-board [data-severity-focus="normal"] strong {
  color: #7cf2c9;
}

.control-button.secondary {
  border-color: rgba(125, 211, 252, 0.3);
  background: linear-gradient(135deg, rgba(54, 197, 240, 0.11), rgba(56, 226, 192, 0.055));
}

.zoom-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.048), rgba(217, 154, 43, 0.04));
}

.zoom-slider span,
.zoom-slider b {
  color: #d7e8ec;
  font-size: 0.74rem;
  font-weight: 1000;
  white-space: nowrap;
}

.zoom-slider input {
  width: 100%;
  min-width: 0;
  accent-color: var(--gold);
}

.list-card {
  min-height: 0;
}

.achievement-card {
  min-height: 0;
}

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

.achievement-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(132, 223, 210, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(54, 197, 240, 0.018)),
    rgba(0, 0, 0, 0.16);
  opacity: 0.72;
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.achievement-item.unlocked {
  border-color: rgba(66, 230, 176, 0.44);
  background:
    radial-gradient(circle at 20% 20%, rgba(66, 230, 176, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(66, 230, 176, 0.12), rgba(240, 184, 74, 0.07));
  box-shadow: 0 0 26px rgba(66, 230, 176, 0.08);
  opacity: 1;
}

.achievement-item i {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(210, 244, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(32, 199, 216, 0.16), rgba(240, 184, 74, 0.09));
  color: var(--gold);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0;
}

.achievement-item.unlocked i {
  border-color: rgba(66, 230, 176, 0.42);
  color: #d9fff2;
  box-shadow: 0 0 18px rgba(66, 230, 176, 0.14);
}

.achievement-item div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.achievement-item b,
.achievement-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement-item b {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 1000;
}

.achievement-item span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.achievement-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  min-width: min(320px, calc(100vw - 28px));
  max-width: 360px;
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(66, 230, 176, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(3, 12, 16, 0.98), rgba(9, 32, 32, 0.94)),
    radial-gradient(circle at 0% 0%, rgba(66, 230, 176, 0.18), transparent 44%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.46), 0 0 38px rgba(66, 230, 176, 0.12);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.achievement-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.achievement-toast[aria-hidden="true"] {
  visibility: hidden;
}

.achievement-toast span {
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.achievement-toast strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 1000;
}

.report-list {
  display: grid;
  gap: 7px;
  min-height: 0;
  max-height: min(46vh, 520px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 232, 249, 0.58) rgba(255, 255, 255, 0.08);
}

.report-empty {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.report-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 3px;
  min-width: 0;
  min-height: 76px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.048), rgba(54, 197, 240, 0.022));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  animation: item-in 170ms ease both;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.report-item:hover,
.report-item.active {
  border-color: rgba(125, 211, 252, 0.5);
  background: linear-gradient(135deg, rgba(54, 197, 240, 0.12), rgba(79, 141, 247, 0.08));
  box-shadow: 0 0 26px rgba(54, 197, 240, 0.07);
  transform: translateX(2px);
}

.report-world {
  border-color: rgba(54, 197, 240, 0.22);
}

.report-country {
  border-color: rgba(79, 141, 247, 0.26);
}

.report-local {
  border-color: rgba(217, 154, 43, 0.28);
}

.report-alert {
  border-color: rgba(224, 95, 114, 0.38);
  background: linear-gradient(145deg, rgba(224, 95, 114, 0.1), rgba(255, 255, 255, 0.045));
}

.report-item.severity-critical {
  border-color: rgba(255, 59, 92, 0.5);
  background:
    linear-gradient(90deg, rgba(255, 59, 92, 0.24) 0 4px, transparent 4px),
    linear-gradient(145deg, rgba(255, 59, 92, 0.12), rgba(255, 255, 255, 0.045));
}

.report-item.severity-alert {
  border-color: rgba(255, 122, 61, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 122, 61, 0.2) 0 4px, transparent 4px),
    linear-gradient(145deg, rgba(255, 122, 61, 0.09), rgba(255, 255, 255, 0.045));
}

.report-item.severity-watch {
  border-color: rgba(240, 184, 74, 0.38);
}

.report-item b {
  grid-column: 2;
  color: var(--gold);
  font-size: 0.73rem;
  text-transform: uppercase;
}

.report-item strong {
  grid-column: 2;
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.12;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.report-item span {
  grid-column: 2;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-icon {
  grid-row: 1 / span 3;
  align-self: center;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(210, 244, 255, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(54, 197, 240, 0.2), rgba(240, 184, 74, 0.12));
  box-shadow: 0 0 22px rgba(54, 197, 240, 0.1);
  color: #fff7d6;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 1000;
}

.report-item.severity-critical .report-icon,
.report-item.severity-alert .report-icon {
  border-color: rgba(255, 180, 190, 0.5);
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(255, 59, 92, 0.42), rgba(240, 184, 74, 0.18));
  box-shadow: 0 0 28px rgba(255, 59, 92, 0.18);
  animation: alert-icon-shift 2.2s ease-in-out infinite;
}

.report-item.severity-watch .report-icon {
  border-color: rgba(240, 210, 111, 0.4);
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(240, 184, 74, 0.34), rgba(66, 230, 176, 0.1));
}

@media (min-width: 901px) {
  .news-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, clamp(390px, 30vw, 460px));
  }

  .map-stage {
    background:
      radial-gradient(circle at 50% 36%, rgba(66, 230, 176, 0.1), transparent 32%),
      radial-gradient(circle at 14% 78%, rgba(240, 184, 74, 0.08), transparent 28%),
      radial-gradient(circle at 84% 20%, rgba(110, 164, 255, 0.1), transparent 34%),
      #02070d;
  }

  .map-topbar {
    top: 18px;
    left: 18px;
    right: 18px;
    padding: 10px;
    border-radius: 10px;
    background:
      linear-gradient(135deg, rgba(4, 14, 22, 0.94), rgba(7, 26, 33, 0.84)),
      linear-gradient(90deg, rgba(130, 230, 255, 0.13), transparent 44%, rgba(240, 184, 74, 0.08));
  }

  .map-topbar a,
  .map-topbar button,
  .report-card a,
  .report-card button,
  .control-button {
    min-height: 42px;
    border-radius: 8px;
  }

  .map-controls {
    top: 96px;
    right: 18px;
    gap: 9px;
  }

  .map-controls button {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background:
      radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.18), transparent 32%),
      linear-gradient(145deg, rgba(5, 18, 27, 0.96), rgba(7, 35, 45, 0.92));
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  }

  .map-controls button:hover {
    border-color: rgba(210, 244, 255, 0.58);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34), 0 0 30px rgba(54, 197, 240, 0.18);
    transform: translateY(-1px);
  }

  .satellite-strip,
  .top-story-card,
  .alert-strip-card,
  .report-card,
  .hero-card,
  .control-card,
  .achievement-card,
  .list-card {
    border-radius: 10px;
  }

  .satellite-strip {
    top: 82px;
    padding: 8px 10px;
  }

  .top-story-card {
    top: 146px;
    width: min(470px, calc(100% - 112px));
    padding: 13px;
  }

  .alert-strip-card {
    top: 96px;
    right: 84px;
    width: min(390px, calc(100% - 590px));
  }

  .alert-strip-card::before {
    content: "!";
    width: 28px;
    height: 28px;
    display: inline-grid;
    grid-row: 1 / span 2;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 59, 92, 0.28), rgba(240, 184, 74, 0.18));
    color: #fff7d6;
    font-weight: 1000;
    box-shadow: 0 0 24px rgba(255, 59, 92, 0.14);
    animation: alert-icon-shift 2.4s ease-in-out infinite;
  }

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

  .alert-strip-card span {
    grid-column: 2 / -1;
  }

  .alert-strip-card strong {
    grid-column: 2;
  }

  .report-card {
    width: min(520px, calc(100% - 52px));
    padding: 12px;
    gap: 7px;
    border-color: rgba(210, 244, 255, 0.26);
    background:
      linear-gradient(145deg, rgba(2, 8, 13, 0.96), rgba(7, 24, 31, 0.92)),
      linear-gradient(120deg, rgba(54, 197, 240, 0.18), transparent 34%, rgba(66, 230, 176, 0.1), rgba(240, 184, 74, 0.11));
  }

  .report-card::before {
    width: 34px;
  }

  .report-card h1 {
    font-size: clamp(1rem, 1.45vw, 1.28rem);
  }

  .report-card p#report-summary {
    -webkit-line-clamp: 2;
  }

  .news-panel {
    gap: 12px;
    padding: 14px;
    background:
      linear-gradient(180deg, rgba(4, 16, 19, 0.99), rgba(1, 6, 9, 0.98)),
      radial-gradient(circle at 12% 0%, rgba(66, 230, 176, 0.11), transparent 28%),
      radial-gradient(circle at 100% 18%, rgba(110, 164, 255, 0.09), transparent 34%);
  }

  .hero-card,
  .control-card,
  .achievement-card,
  .list-card {
    width: min(100%, 450px);
    padding: 12px;
    border-color: rgba(132, 223, 210, 0.22);
    background:
      linear-gradient(145deg, rgba(5, 16, 24, 0.94), rgba(3, 10, 16, 0.96)),
      linear-gradient(120deg, rgba(66, 230, 176, 0.09), transparent 38%, rgba(240, 184, 74, 0.09));
  }

  .hero-card img {
    height: 112px;
  }

  .layer-tabs button,
  .timeline-filter button,
  .world-regions button,
  .toggle-row,
  .control-button,
  .zoom-slider {
    border-radius: 8px;
  }

  .alert-board button {
    min-height: 58px;
    border-radius: 10px;
  }

  .report-list {
    gap: 8px;
  }

  .report-item {
    min-height: 86px;
    padding: 11px;
    border-radius: 10px;
  }
}

@media (min-width: 1800px) {
  .news-shell {
    grid-template-columns: minmax(0, 1fr) minmax(470px, 520px);
  }

  .hero-card,
  .control-card,
  .achievement-card,
  .list-card {
    width: min(100%, 500px);
  }

  .report-card {
    width: min(660px, calc(100% - 72px));
    padding: 16px;
  }

  .report-card h1 {
    font-size: 1.42rem;
  }

  .top-story-card {
    width: min(560px, calc(100% - 160px));
  }

  .report-list {
    max-height: min(52vh, 680px);
  }
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
}

.news-modal[aria-hidden="true"] {
  display: none;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(54, 197, 240, 0.14), transparent 34%),
    rgba(0, 3, 7, 0.82);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.news-modal-card {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(92vh, 840px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(210, 244, 255, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(1, 6, 9, 0.99), rgba(5, 20, 25, 0.97)),
    linear-gradient(120deg, rgba(32, 199, 216, 0.1), transparent 44%, rgba(66, 230, 176, 0.08));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), 0 0 70px rgba(66, 230, 176, 0.1);
  pointer-events: auto;
  animation: modal-pop 210ms ease both;
}

.modal-world .news-modal-card {
  border-color: rgba(54, 197, 240, 0.34);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), 0 0 70px rgba(54, 197, 240, 0.13);
}

.modal-country .news-modal-card {
  border-color: rgba(79, 141, 247, 0.38);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), 0 0 70px rgba(79, 141, 247, 0.13);
}

.modal-local .news-modal-card {
  border-color: rgba(217, 154, 43, 0.4);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), 0 0 70px rgba(217, 154, 43, 0.12);
}

.modal-alert .news-modal-card {
  border-color: rgba(224, 95, 114, 0.52);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), 0 0 78px rgba(224, 95, 114, 0.15);
}

.modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(54, 197, 240, 0.035)),
    linear-gradient(90deg, rgba(125, 211, 252, 0.07), transparent);
}

.modal-header span,
.modal-sources-head span {
  display: block;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.modal-header h2 {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(1.28rem, 3vw, 2.6rem);
  line-height: 1;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(210, 244, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 1000;
  cursor: pointer;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  min-height: 0;
}

.modal-video {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  border-right: 1px solid var(--line);
}

.modal-video-frame {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 73% 36%, rgba(66, 230, 176, 0.14), transparent 28%),
    #02070d;
}

.modal-video-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(54, 197, 240, 0.06);
}

#modal-briefing-canvas,
.modal-embed,
.modal-embed iframe,
.modal-embed video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

#modal-briefing-canvas {
  position: relative;
  z-index: 0;
  background:
    radial-gradient(circle at 72% 34%, rgba(66, 230, 176, 0.2), transparent 30%),
    radial-gradient(circle at 24% 70%, rgba(217, 154, 43, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(6, 25, 35, 0.98), rgba(3, 8, 12, 0.98));
}

.modal-embed {
  position: relative;
  z-index: 4;
}

.modal-embed video {
  background: #010407;
  object-fit: contain;
}

.modal-generated-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 380px;
  padding: clamp(22px, 5vw, 64px);
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(45, 212, 191, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 74% 28%, rgba(45, 212, 191, 0.2), transparent 28%),
    radial-gradient(circle at 35% 76%, rgba(240, 184, 74, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(4, 13, 22, 0.88), rgba(2, 8, 12, 0.98));
  background-size: 76px 76px, 76px 76px, auto, auto, auto;
}

.modal-generated-visual[hidden] {
  display: none;
}

.modal-generated-visual::before {
  content: "";
  position: absolute;
  right: clamp(24px, 9vw, 130px);
  top: 50%;
  width: clamp(120px, 22vw, 260px);
  aspect-ratio: 1;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 50%;
  transform: translateY(-50%);
  background:
    conic-gradient(from 0deg, rgba(125, 211, 252, 0), rgba(125, 211, 252, 0.58), rgba(240, 184, 74, 0.22), rgba(125, 211, 252, 0)),
    radial-gradient(circle, transparent 0 48%, rgba(125, 211, 252, 0.16) 49% 50%, transparent 51%);
  opacity: 0.7;
  animation: generated-orbit 8s linear infinite;
}

.modal-generated-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(125, 211, 252, 0.18) 48%, transparent 100%);
  opacity: 0.42;
  animation: generated-scan 4.4s linear infinite;
}

.modal-generated-visual span,
.modal-generated-visual strong,
.modal-generated-visual p {
  position: relative;
  z-index: 2;
  max-width: min(660px, 68%);
}

.modal-generated-visual span {
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-generated-visual strong {
  display: block;
  color: #fffdf2;
  font-size: clamp(1.8rem, 4.7vw, 4.4rem);
  line-height: 0.92;
  text-wrap: balance;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.72);
}

.modal-generated-visual p {
  margin: 0;
  color: rgba(224, 244, 248, 0.8);
  font-size: clamp(0.94rem, 1.4vw, 1.2rem);
  font-weight: 850;
  line-height: 1.35;
}

.modal-generated-visual i {
  position: absolute;
  left: clamp(26px, 7vw, 92px);
  bottom: clamp(22px, 7vw, 76px);
  width: 12px;
  height: clamp(72px, 13vw, 152px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.08), rgba(103, 232, 249, 0.72), rgba(240, 184, 74, 0.28));
  transform-origin: bottom;
  animation: generated-wave 1.6s ease-in-out infinite alternate;
}

.modal-generated-visual i:nth-of-type(2) {
  left: clamp(48px, 9vw, 126px);
  height: clamp(46px, 10vw, 118px);
  animation-delay: -0.6s;
}

.modal-generated-visual b {
  position: absolute;
  right: clamp(78px, 16vw, 214px);
  top: 50%;
  z-index: 2;
  width: 13px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f8c85a;
  box-shadow: 0 0 42px rgba(240, 184, 74, 0.7);
  animation: generated-beacon 1.9s ease-in-out infinite;
}

.modal-generated-visual[data-severity="critical"],
.modal-generated-visual[data-severity="alert"] {
  background:
    linear-gradient(90deg, rgba(251, 113, 133, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(240, 184, 74, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 74% 28%, rgba(251, 113, 133, 0.22), transparent 27%),
    radial-gradient(circle at 35% 76%, rgba(240, 184, 74, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(18, 6, 14, 0.91), rgba(2, 8, 12, 0.98));
  background-size: 76px 76px, 76px 76px, auto, auto, auto;
}

.modal-video-scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, transparent, rgba(0, 0, 0, 0.28));
  background-size: 100% 5px, 100% 100%;
  mix-blend-mode: screen;
  opacity: 0.26;
  animation: scan-drift 4.2s linear infinite;
}

.modal-video-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
}

.modal-video-controls button,
.modal-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 8px;
  padding: 0 12px;
  background: linear-gradient(135deg, rgba(54, 197, 240, 0.12), rgba(79, 141, 247, 0.08));
  color: var(--text);
  font-weight: 1000;
  text-decoration: none;
  cursor: pointer;
}

.modal-video-controls button {
  border-color: rgba(217, 154, 43, 0.46);
  background: linear-gradient(135deg, rgba(217, 154, 43, 0.18), rgba(54, 197, 240, 0.08));
}

.modal-video-controls span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-visual-rail {
  display: grid;
  grid-auto-columns: minmax(160px, 0.72fr);
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  border-top: 1px solid rgba(132, 223, 210, 0.16);
  background: rgba(1, 6, 10, 0.34);
  scrollbar-width: thin;
}

.modal-visual-card {
  min-height: 106px;
  display: grid;
  align-content: end;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(132, 223, 210, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 25% 20%, rgba(130, 230, 255, 0.24), transparent 42%),
    linear-gradient(135deg, rgba(5, 18, 25, 0.96), rgba(16, 42, 48, 0.9));
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.28);
}

.modal-visual-card.generated-visual:nth-child(2) {
  background:
    radial-gradient(circle at 58% 42%, rgba(240, 184, 74, 0.26), transparent 30%),
    linear-gradient(90deg, rgba(125, 211, 252, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(125, 211, 252, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(5, 18, 25, 0.96), rgba(16, 42, 48, 0.9));
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.modal-visual-card.has-image {
  border-color: rgba(255, 255, 255, 0.24);
}

.modal-visual-card span {
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.modal-visual-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff9ec;
  font-size: 0.82rem;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.modal-info {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(54, 197, 240, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.026);
}

.modal-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.modal-meta b {
  min-width: 0;
  padding: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #dff8ff;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#modal-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

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

.modal-actions a {
  min-width: 0;
  white-space: nowrap;
}

.modal-sources-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}

.modal-sources-head strong {
  color: var(--text);
  font-size: 0.88rem;
}

.modal-source-list {
  display: grid;
  gap: 7px;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 232, 249, 0.58) rgba(255, 255, 255, 0.08);
}

.modal-source-item,
.modal-source-empty {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(54, 197, 240, 0.022));
  color: var(--text);
  text-decoration: none;
}

.modal-source-item:hover {
  border-color: rgba(125, 211, 252, 0.46);
  background: linear-gradient(135deg, rgba(54, 197, 240, 0.12), rgba(79, 141, 247, 0.08));
}

.modal-source-item b {
  color: var(--gold);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.modal-source-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.14;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.modal-source-item span,
.modal-source-empty {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.modal-source-video b::after {
  content: " video";
  color: var(--cyan);
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes touch-sheet-in {
  from {
    opacity: 0.88;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scan-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 36px, 0 0;
  }
}

@keyframes generated-orbit {
  to {
    transform: translateY(-50%) rotate(1turn);
  }
}

@keyframes generated-wave {
  from {
    transform: scaleY(0.72);
    opacity: 0.28;
  }
  to {
    transform: scaleY(1.08);
    opacity: 0.52;
  }
}

@keyframes generated-beacon {
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 72px rgba(240, 184, 74, 0.82);
  }
}

@keyframes generated-scan {
  from {
    transform: translateY(-180px);
  }
  to {
    transform: translateY(180px);
  }
}

@keyframes peek-in {
  from {
    opacity: 0;
    transform: translateX(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes item-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-shine {
  from {
    opacity: 0;
    transform: translateX(-65%);
  }
  45% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(65%);
  }
}

@keyframes panel-settle {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes active-signal {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(54, 197, 240, 0.08);
  }
  50% {
    box-shadow: 0 0 28px rgba(56, 226, 192, 0.16);
  }
}

@keyframes alert-icon-shift {
  0%,
  100% {
    filter: saturate(1);
    transform: scale(1);
  }
  45% {
    filter: saturate(1.22);
    transform: scale(1.06);
  }
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes bubble-pop {
  from {
    opacity: 0;
    filter: blur(2px);
    transform: translate(10px, -50%) scale(0.96);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes global-flow {
  0%,
  100% {
    background-position: 0% 45%, 0 0;
  }
  50% {
    background-position: 100% 55%, 0 0;
  }
}

@keyframes panel-flow {
  0%,
  100% {
    background-position: 0 0, 0% 50%;
  }
  50% {
    background-position: 0 0, 100% 50%;
  }
}

@keyframes intel-scan {
  0%,
  58% {
    transform: translateX(-78%);
  }
  100% {
    transform: translateX(78%);
  }
}

@keyframes zoom-status-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@keyframes focus-dot {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes focus-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes mobile-map-breathe {
  0%,
  100% {
    opacity: 0.16;
    transform: scale(1);
  }
  50% {
    opacity: 0.24;
    transform: scale(1.025);
  }
}

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

@media (min-width: 901px) and (max-height: 760px) {
  .news-panel {
    gap: 8px;
    padding: 10px;
  }

  .hero-card {
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
  }

  .hero-card img {
    height: 82px;
    aspect-ratio: auto;
  }

  .hero-card h2 {
    font-size: 1.32rem;
  }

  .hero-card p {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .control-card {
    gap: 7px;
  }

  .toggle-row,
  .zoom-slider {
    min-height: 36px;
    padding: 7px;
  }

  .report-list {
    max-height: 42vh;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
    overflow-x: hidden;
  }

  .news-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(650px, 78svh) auto;
    width: 100%;
    height: auto;
    min-height: 100vh;
    transition: grid-template-rows 220ms ease;
  }

  .map-stage {
    min-height: min(760px, 78svh);
    background:
      radial-gradient(circle at 50% 32%, rgba(66, 230, 176, 0.12), transparent 34%),
      radial-gradient(circle at 12% 82%, rgba(240, 184, 74, 0.08), transparent 34%),
      radial-gradient(circle at 82% 74%, rgba(54, 197, 240, 0.1), transparent 32%),
      #02070d;
    transition: min-height 220ms ease;
  }

  .map-stage::before {
    opacity: 0.14;
    animation: mobile-map-breathe 5.5s ease-in-out infinite;
  }

  .map-stage::after {
    background: radial-gradient(circle at 50% 42%, transparent 38%, rgba(0, 0, 0, 0.3));
    opacity: 0.24;
  }

  .news-panel {
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-card {
    display: none;
  }

  .control-card,
  .achievement-card,
  .list-card {
    width: min(100%, 720px);
  }

  .map-topbar {
    top: 10px;
    left: 10px;
    right: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
  }

  .map-topbar button {
    grid-column: auto;
    min-width: 78px;
  }

  .report-card {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    translate: 0 0;
    width: auto;
    max-height: min(350px, 43svh);
    padding: 14px;
    gap: 9px;
    overflow: auto;
    border-radius: 14px 14px 10px 10px;
    border-color: rgba(210, 244, 255, 0.34);
    background:
      linear-gradient(145deg, rgba(2, 8, 15, 0.98), rgba(8, 25, 34, 0.96)),
      linear-gradient(105deg, rgba(54, 197, 240, 0.12), transparent 44%, rgba(240, 184, 74, 0.11));
    box-shadow: 0 -18px 54px rgba(0, 0, 0, 0.48), 0 0 46px rgba(54, 197, 240, 0.14);
    scrollbar-width: thin;
    overscroll-behavior: contain;
  }

  .report-card.touch-confirm {
    animation: touch-sheet-in 180ms ease both, panel-flow 8s ease-in-out infinite;
  }

  .report-card::before {
    justify-self: center;
    width: 54px;
    height: 4px;
    background: rgba(210, 244, 255, 0.82);
    box-shadow: 0 0 18px rgba(125, 211, 252, 0.46);
  }

  .report-card::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 70px;
    height: 42px;
    border-radius: 8px;
    background:
      radial-gradient(circle at 18% 28%, rgba(66, 230, 176, 0.92) 0 4px, transparent 5px),
      radial-gradient(circle at 48% 68%, rgba(54, 197, 240, 0.82) 0 5px, transparent 6px),
      radial-gradient(circle at 76% 34%, rgba(240, 184, 74, 0.88) 0 4px, transparent 5px),
      linear-gradient(135deg, rgba(125, 211, 252, 0.12), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.18), 0 0 24px rgba(54, 197, 240, 0.12);
    opacity: 0.78;
    pointer-events: none;
  }

  .report-card h1,
  .report-card p,
  .report-card .report-meta,
  .report-card .report-actions,
  .report-card > span,
  .report-card::before {
    position: relative;
    z-index: 1;
  }

  .map-bubble,
  .map-bubble.bubble-left {
    display: none;
  }

  .map-bubble::before {
    display: none;
  }

  .briefing-peek {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.36), 0 0 34px rgba(54, 197, 240, 0.1);
  }

  .briefing-peek::before {
    display: none;
  }

  .peek-video {
    min-height: 82px;
  }

  .map-controls {
    top: 136px;
    right: 12px;
    bottom: auto;
    grid-auto-flow: row;
    grid-template-columns: 52px;
    gap: 8px;
  }

  .map-controls button {
    width: 52px;
    height: 52px;
    border-color: rgba(130, 230, 255, 0.4);
    border-radius: 999px;
    background:
      radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
      linear-gradient(145deg, rgba(4, 14, 22, 0.95), rgba(8, 35, 48, 0.9));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 0 22px rgba(54, 197, 240, 0.13);
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  }

  .map-controls button:active {
    transform: scale(0.94);
  }

  .mobile-map-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    left: 10px;
    right: auto;
    top: 76px;
    bottom: auto;
    min-height: 44px;
    padding: 0 14px;
    border-color: rgba(130, 230, 255, 0.46);
    background:
      linear-gradient(135deg, rgba(5, 18, 25, 0.96), rgba(54, 197, 240, 0.18)),
      radial-gradient(circle at 100% 0%, rgba(66, 230, 176, 0.18), transparent 48%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34), 0 0 28px rgba(54, 197, 240, 0.16);
    animation: focus-float 3.4s ease-in-out infinite;
  }

  .mobile-map-toggle::before {
    margin-right: 0;
  }

  .satellite-strip {
    display: none;
  }

  .map-health {
    left: 10px;
    right: 10px;
    bottom: auto;
    top: 122px;
    max-width: none;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 6px 8px;
    border-radius: 999px;
    background:
      linear-gradient(135deg, rgba(3, 11, 18, 0.88), rgba(10, 34, 42, 0.7)),
      radial-gradient(circle at 100% 0%, rgba(66, 230, 176, 0.13), transparent 45%);
  }

  .map-health span {
    font-size: 0.58rem;
    white-space: nowrap;
  }

  .map-health b {
    font-size: 0.7rem;
  }

  .map-health.interacting {
    border-color: rgba(130, 230, 255, 0.5);
  }

  .top-story-card {
    left: 10px;
    right: 10px;
    top: 156px;
    width: auto;
    max-height: 118px;
    overflow: hidden;
  }

  .alert-strip-card {
    left: 112px;
    right: 10px;
    top: 82px;
    width: auto;
    min-width: 0;
    min-height: 38px;
    padding: 7px 9px;
  }

  .top-story-card {
    display: none;
  }

  body.map-expanded {
    overflow: hidden;
  }

  body.map-expanded .news-shell {
    grid-template-rows: 100dvh 0;
    min-height: 100dvh;
  }

  body.map-expanded .map-stage {
    min-height: 100dvh;
  }

  body.map-expanded .map-stage::before {
    opacity: 0.2;
  }

  body.map-expanded .map-stage::after {
    opacity: 0.12;
  }

  body.map-expanded .news-panel {
    display: none;
  }

  body.map-expanded .report-card,
  body.map-expanded .map-bubble {
    display: none;
  }

  body.map-expanded .top-story-card {
    top: 136px;
  }

  body.map-expanded .alert-strip-card {
    display: none;
  }

  body.map-expanded .map-health {
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 110px);
    right: 74px;
  }

  body.map-expanded .map-controls {
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 112px);
    right: 12px;
    grid-auto-flow: row;
    grid-template-columns: 52px;
  }

  body.map-expanded .mobile-map-toggle {
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 50px);
    border-color: rgba(240, 184, 74, 0.5);
    background:
      linear-gradient(135deg, rgba(27, 19, 9, 0.96), rgba(240, 184, 74, 0.18)),
      radial-gradient(circle at 100% 0%, rgba(54, 197, 240, 0.12), transparent 48%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36), 0 0 28px rgba(240, 184, 74, 0.14);
  }

  body.map-expanded .mobile-map-toggle::before {
    background: var(--gold);
    box-shadow: 0 0 16px rgba(240, 184, 74, 0.85);
  }

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

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

  .layer-tabs button,
  .timeline-filter button,
  .world-regions button,
  .toggle-row,
  .control-button {
    min-height: 44px;
  }

  .report-list {
    max-height: none;
  }

  .report-item {
    min-height: 88px;
    padding: 12px;
  }

  .map-attribution {
    bottom: 4px;
    left: 8px;
    right: auto;
  }

  .news-modal {
    align-items: end;
    padding: 10px;
  }

  .news-modal-card {
    max-height: 92vh;
    border-radius: 10px;
  }

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

  .modal-video {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .modal-video-frame,
  #modal-briefing-canvas,
  .modal-generated-visual,
  .modal-embed,
  .modal-embed iframe {
    min-height: 300px;
  }

  .modal-info {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .news-shell {
    grid-template-rows: minmax(680px, 84svh) auto;
  }

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

  .achievement-toast {
    right: 8px;
    bottom: 8px;
    min-width: calc(100vw - 16px);
  }

  .map-stage {
    min-height: min(760px, 84svh);
  }

  .map-topbar {
    top: 8px;
    left: 8px;
    right: 8px;
    gap: 6px;
    padding: 6px;
    grid-template-columns: minmax(102px, 0.82fr) minmax(0, 1fr) minmax(68px, auto);
  }

  .map-topbar a,
  .map-topbar button {
    min-height: 36px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .map-topbar span {
    font-size: 0.58rem;
  }

  .map-topbar strong {
    font-size: 0.78rem;
  }

  #feed-status::before {
    width: 6px;
    height: 6px;
    margin-right: 5px;
  }

  .report-card {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    translate: 0 0;
    width: calc(100% - 16px);
    max-height: min(370px, 46svh);
    padding: 13px;
    gap: 8px;
  }

  .report-card::before {
    width: 34px;
    height: 3px;
  }

  .report-card span {
    font-size: 0.62rem;
  }

  .report-card p#report-place {
    font-size: 0.78rem;
    -webkit-line-clamp: 1;
  }

  .report-meta {
    gap: 5px;
  }

  .report-meta b {
    padding: 6px;
    font-size: 0.7rem;
  }

  .mobile-map-toggle {
    left: 8px;
    right: auto;
    top: 76px;
    bottom: auto;
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .map-health {
    top: 122px;
    left: 8px;
    right: 76px;
  }

  body.map-expanded .mobile-map-toggle {
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 48px);
  }

  .map-bubble,
  .map-bubble.bubble-left {
    display: none;
  }

  .alert-strip-card {
    display: none;
  }

  .alert-strip-card strong {
    font-size: 0.72rem;
  }

  .satellite-strip {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    font-size: 0.58rem;
  }

  .satellite-strip::before {
    width: 7px;
    height: 7px;
  }

  .map-stage.has-selected-report .top-story-card {
    display: none;
  }

  .report-card h1 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.18rem;
    line-height: 1.08;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .report-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.26;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .report-card p#report-summary {
    display: none;
  }

  .hero-card {
    display: none;
  }

  .map-controls {
    top: 130px;
    right: 10px;
    grid-template-columns: 54px;
    gap: 9px;
  }

  .map-controls button {
    width: 54px;
    height: 54px;
    font-size: 1.08rem;
  }

  .report-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .report-actions:has(#report-link[style*="display: none"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-actions a,
  .report-actions button {
    min-height: 46px;
    padding: 0 6px;
    font-size: 0.82rem;
  }

  .report-card.touch-confirm .report-actions {
    outline: 1px solid rgba(130, 230, 255, 0.22);
    outline-offset: 4px;
    border-radius: 8px;
  }

  .briefing-peek {
    padding: 10px;
  }

  #briefing-peek-close {
    width: 34px;
    height: 34px;
  }

  .peek-meta,
  .peek-actions {
    grid-template-columns: 1fr;
  }

  .peek-actions button,
  .peek-actions a {
    min-height: 42px;
  }

  .modal-header {
    padding: 10px;
  }

  .modal-header h2 {
    -webkit-line-clamp: 3;
  }

  .modal-video-frame,
  #modal-briefing-canvas,
  .modal-generated-visual,
  .modal-embed,
  .modal-embed iframe {
    min-height: 238px;
  }

  .modal-generated-visual {
    padding: 20px;
  }

  .modal-generated-visual span,
  .modal-generated-visual strong,
  .modal-generated-visual p {
    max-width: 82%;
  }

  .modal-video-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal-info {
    padding: 10px;
  }

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

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

  .layer-tabs button {
    font-size: 0.72rem;
  }

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

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

  .zoom-slider {
    grid-template-columns: 1fr auto;
  }

  .zoom-slider input {
    grid-column: 1 / -1;
  }
}
