/* ============================================================
   WAR ROOM — Purple holographic Mercator-style plate
   ============================================================ */
.wr-body {
  background: #05020c;
  color: #d4c8e8;
  min-height: 100dvh;
}

.wr-grid-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(120, 40, 180, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 40, 180, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
}

.wr-header .header-inner {
  max-width: 1680px;
}

.wr-header .main-nav a.is-active {
  color: #e879f9;
  border-color: rgba(232, 121, 249, 0.4);
  background: rgba(168, 85, 247, 0.12);
}

.wr-badge {
  font-family: var(--mono, 'Share Tech Mono', monospace);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #e879f9;
  border: 1px solid rgba(232, 121, 249, 0.4);
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
}

.wr-main {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

/* Map-first: plate dominates the viewport */
.wr-main--map-first {
  max-width: min(1680px, 100%);
  padding: 0.55rem 0.75rem 1.5rem;
}

.wr-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.25rem;
  align-items: flex-end;
}

.wr-hero--compact {
  margin-bottom: 0.45rem;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.wr-kicker {
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #e879f9;
  margin-bottom: 0.35rem;
}

.wr-hero--compact .wr-kicker {
  font-size: 0.62rem;
  margin-bottom: 0.15rem;
}

.wr-hero h1 {
  font-family: var(--mono, monospace);
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.18em;
  color: #f5e8ff;
  margin: 0 0 0.4rem;
  text-shadow: 0 0 28px rgba(232, 121, 249, 0.35);
}

.wr-hero--compact h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0;
  letter-spacing: 0.16em;
}

.wr-lede {
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #a898bc;
  margin: 0;
}

.wr-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.wr-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #a898bc;
}

.wr-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.wr-leg-cmd .wr-dot { background: #60a5fa; color: #60a5fa; }
.wr-leg-ns .wr-dot { background: #c084fc; color: #c084fc; }
.wr-leg-both .wr-dot { background: #e879f9; color: #e879f9; }
.wr-leg-dim .wr-dot { background: #334155; color: #334155; box-shadow: none; }

/* Console */
.wr-console {
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(12, 6, 24, 0.96), rgba(5, 2, 12, 0.98));
  box-shadow:
    0 0 0 1px rgba(232, 121, 249, 0.08),
    0 20px 60px rgba(80, 20, 120, 0.25),
    inset 0 0 50px rgba(168, 85, 247, 0.04);
  overflow: hidden;
}

.wr-console--map-first {
  box-shadow:
    0 0 0 1px rgba(232, 121, 249, 0.1),
    0 24px 70px rgba(60, 10, 100, 0.35),
    inset 0 0 60px rgba(168, 85, 247, 0.05);
}

.wr-query-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.22);
  background: rgba(0, 0, 0, 0.4);
}

.wr-q-label {
  font-family: var(--mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #e879f9;
}

.wr-query-input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 42px;
  max-height: 48px;
  height: 42px;
  background: #0a0614;
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #f5e8ff;
  font-family: var(--mono, monospace);
  font-size: 0.85rem;
  line-height: 1.25;
  padding: 0.45rem 0.65rem;
  border-radius: 2px;
  box-sizing: border-box;
  /* Kill iOS/WebKit “giant search field” intrinsic sizing */
  -webkit-appearance: none;
  appearance: none;
}

.wr-query-input::-webkit-search-decoration,
.wr-query-input::-webkit-search-cancel-button,
.wr-query-input::-webkit-search-results-button,
.wr-query-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.wr-query-input:focus {
  outline: none;
  border-color: #e879f9;
  box-shadow: 0 0 0 1px rgba(232, 121, 249, 0.3);
}

.wr-coord-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.wr-coord {
  width: 5.2rem;
  min-height: 42px;
  background: #0a0614;
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #f5e8ff;
  font-family: var(--mono, monospace);
  font-size: 0.8rem;
  padding: 0.35rem 0.45rem;
  border-radius: 2px;
}

.wr-btn {
  min-height: 42px;
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.4), rgba(76, 29, 149, 0.55));
  border: 1px solid #c084fc;
  color: #f5e8ff;
  cursor: pointer;
  border-radius: 2px;
}

.wr-btn:hover {
  filter: brightness(1.12);
  color: #fff;
}

.wr-btn-ghost {
  background: transparent;
  border-color: rgba(192, 132, 252, 0.35);
  color: #d8b4fe;
}

.wr-btn-small {
  min-height: 36px;
  font-size: 0.65rem;
  width: 100%;
  margin-top: 0.5rem;
}

/* Rumor mode toggle */
.wr-rumor-toggle.is-active,
.wr-rumor-toggle[aria-pressed='true'] {
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.45), rgba(180, 80, 20, 0.55));
  border-color: #fb923c;
  color: #fff7ed;
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.35);
}

.wr-rumor-banner {
  margin: 0.35rem 0 0.5rem;
  padding: 0.35rem 0.5rem;
  font-family: var(--mono, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #fdba74;
  border: 1px dashed rgba(251, 146, 60, 0.45);
  background: rgba(120, 50, 10, 0.25);
}

.wr-rumor-banner.hidden {
  display: none !important;
}

.wr-panel.is-rumor .wr-panel-status {
  color: #fdba74;
}

.wr-panel.is-rumor .wr-panel-blurb {
  color: #fed7aa;
  border-left: 2px solid rgba(251, 146, 60, 0.55);
  padding-left: 0.55rem;
}

body.wr-rumor-on .wr-map-chrome {
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.2);
}

.wr-query-status {
  font-family: var(--mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #e879f9;
  padding: 0.4rem 0.85rem;
  margin: 0;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  background: rgba(0, 0, 0, 0.25);
  min-height: 1.6em;
}

.wr-query-status.is-miss {
  color: #f87171;
}

.wr-stage-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
  gap: 0;
  min-height: 420px;
}

/* Map dominates — wide plate + compact intel rail */
.wr-stage-wrap--map-first {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  min-height: min(78vh, 860px);
}

.wr-map-shell {
  border-right: 1px solid rgba(168, 85, 247, 0.22);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wr-map-chrome,
.wr-map-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.4rem 0.75rem;
  font-family: var(--mono, monospace);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #d8b4fe;
  background: #0a0614;
}

.wr-map-chrome {
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.wr-map-footer {
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  color: #7c6a94;
}

.wr-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #e879f9;
  font-weight: 700;
}

.wr-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e879f9;
  box-shadow: 0 0 12px #e879f9;
  animation: wr-blink 1.1s step-end infinite;
}

@keyframes wr-blink {
  50% { opacity: 0.25; }
}

.wr-map-stage {
  position: relative;
  flex: 1;
  background: #05020c;
  min-height: 360px;
  cursor: grab;
  touch-action: none; /* pan/zoom handled in JS */
  overflow: hidden;
  user-select: none;
}

.wr-map-stage.is-panning {
  cursor: grabbing;
}

.wr-map-svg {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: min(560px, 62vh);
  display: block;
}

/* Large primary plate — lock 16:9 so plate + country SVG share one box */
.wr-stage-wrap--map-first .wr-map-stage {
  min-height: 0;
}

.wr-stage-wrap--map-first .wr-map-svg {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(72vh, 820px);
  aspect-ratio: 16 / 9;
  display: block;
}

.wr-map-svg {
  /* Keep viewBox aspect; image+countries scale together */
  overflow: hidden;
}

.wr-zoom-controls {
  position: absolute;
  right: 0.65rem;
  bottom: 1.75rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: stretch;
}

.wr-zoom-btn {
  min-width: 40px;
  min-height: 40px;
  font-family: var(--mono, monospace);
  font-size: 1.15rem;
  line-height: 1;
  color: #f5e8ff;
  background: rgba(12, 6, 24, 0.9);
  border: 1px solid rgba(192, 132, 252, 0.5);
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.wr-zoom-btn:hover {
  border-color: #e879f9;
  color: #e879f9;
  background: rgba(40, 12, 60, 0.95);
}

.wr-zoom-reset {
  font-size: 0.95rem;
}

.wr-zoom-level {
  font-family: var(--mono, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: #e879f9;
  padding: 0.2rem 0;
  background: rgba(12, 6, 24, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 2px;
}

.wr-zoom-hint {
  position: absolute;
  left: 0.65rem;
  bottom: 0.4rem;
  z-index: 4;
  margin: 0;
  font-family: var(--mono, monospace);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(216, 180, 254, 0.55);
  pointer-events: none;
}

/* Country theater highlights */
.wr-country {
  cursor: pointer;
  outline: none;
}

.wr-country-shape {
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  fill-opacity: 0.55;
  transition: fill-opacity 0.15s ease, stroke-width 0.15s ease;
}

/* Vector basemap — same projection as theater fills */
.wr-graticule line {
  stroke: rgba(168, 85, 247, 0.12);
  stroke-width: 0.6;
  pointer-events: none;
}

.wr-graticule-eq {
  stroke: rgba(232, 121, 249, 0.14);
  stroke-width: 0.7;
  stroke-dasharray: 4 6;
  pointer-events: none;
}

.wr-land-shape {
  fill: #6d28d9;
  fill-opacity: 0.48;
  stroke: none;
  pointer-events: none;
}

.wr-land-edge {
  fill: none;
  stroke: #e879f9;
  stroke-width: 1.1;
  stroke-linejoin: round;
  stroke-opacity: 0.7;
  /* no full-map blur filter — it turned date-line edges into bright bands */
  pointer-events: none;
}

.wr-country.is-cmd .wr-country-shape {
  fill: #3b82f6;
  stroke: #93c5fd;
}

.wr-country.is-ns .wr-country-shape {
  fill: #a855f7;
  stroke: #e9d5ff;
}

.wr-country.is-both .wr-country-shape {
  fill: #d946ef;
  stroke: #f0abfc;
}

.wr-country:hover .wr-country-shape,
.wr-country:focus .wr-country-shape {
  fill-opacity: 0.48;
  stroke-width: 1.8;
  filter: url(#wrGlow);
}

.wr-country.is-active .wr-country-shape {
  fill-opacity: 0.58;
  stroke-width: 2.4;
  filter: url(#wrNodeGlow);
}

.wr-country.is-dim {
  opacity: 0.18;
  pointer-events: none;
}

.wr-country-label-g.is-dim {
  opacity: 0.2;
}

.wr-label-lead {
  stroke: rgba(232, 121, 249, 0.45);
  stroke-width: 0.9;
  stroke-dasharray: 2 2;
  pointer-events: none;
}

.wr-country-flag {
  fill: #f5e8ff;
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 16px;
  paint-order: stroke;
  stroke: rgba(5, 2, 12, 0.85);
  stroke-width: 3px;
  user-select: none;
  pointer-events: none;
}

.wr-country-label-g.is-active .wr-country-flag {
  font-size: 18px;
}

.wr-links line {
  stroke: rgba(232, 121, 249, 0.22);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  pointer-events: none;
}

/* Cluster multi-select in detail panel */
.wr-cluster-pick {
  margin: 0 0 0.85rem;
  border: 1px solid rgba(232, 121, 249, 0.4);
  background: linear-gradient(180deg, rgba(40, 12, 60, 0.55), rgba(12, 4, 22, 0.75));
  padding: 0.55rem 0.6rem;
  border-radius: 2px;
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.08);
}

.wr-cluster-pick.hidden {
  display: none !important;
}

.wr-cluster-pick-title {
  font-family: var(--mono, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #e879f9;
  margin-bottom: 0.45rem;
}

.wr-cluster-pick-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.wr-cluster-item {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 36px;
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.55rem;
  color: #f5e8ff;
  background: rgba(12, 6, 24, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 2px;
  cursor: pointer;
}

.wr-cluster-item:hover {
  border-color: #e879f9;
  color: #fff;
  background: rgba(40, 12, 60, 0.95);
}

.wr-cluster-item.is-current {
  border-color: #e879f9;
  color: #e879f9;
  box-shadow: 0 0 0 1px rgba(232, 121, 249, 0.3);
  background: rgba(60, 20, 90, 0.55);
}

/* On-map floating cluster chooser */
.wr-map-cluster {
  position: absolute;
  z-index: 8;
  min-width: 148px;
  max-width: 220px;
  padding: 0.4rem;
  background: rgba(10, 4, 20, 0.95);
  border: 1px solid rgba(232, 121, 249, 0.5);
  border-radius: 3px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.wr-map-cluster.hidden {
  display: none !important;
}

.wr-map-cluster-title {
  font-family: var(--mono, monospace);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: #e879f9;
  padding: 0.15rem 0.35rem 0.35rem;
}

.wr-map-cluster-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wr-map-cluster-item {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 34px;
  font-family: var(--mono, monospace);
  font-size: 0.7rem;
  padding: 0.35rem 0.45rem;
  color: #f5e8ff;
  background: rgba(20, 8, 36, 0.92);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 2px;
  cursor: pointer;
}

.wr-map-cluster-item:hover {
  border-color: #e879f9;
  color: #e879f9;
}

.wr-reticle {
  pointer-events: none;
}

/* Detail panel */
.wr-panel {
  padding: 1rem 1.1rem;
  background: rgba(8, 3, 16, 0.94);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.wr-stage-wrap--map-first .wr-panel {
  min-height: min(72vh, 780px);
  max-height: min(78vh, 860px);
  overflow-y: auto;
}

.wr-panel-empty {
  margin: auto;
  text-align: center;
  max-width: 16rem;
  color: #9a88b0;
}

.wr-panel-glyph {
  font-size: 1.75rem;
  color: #e879f9;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 16px rgba(232, 121, 249, 0.55);
}

.wr-panel-empty h2,
.wr-panel-detail h2 {
  font-family: var(--mono, monospace);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: #f5e8ff;
  margin: 0 0 0.5rem;
}

.wr-panel-hint {
  font-family: var(--mono, monospace);
  font-size: 0.68rem;
  color: #e879f9;
  margin-top: 0.75rem;
}

.wr-panel-detail.hidden,
.wr-panel-empty.hidden {
  display: none !important;
}

.wr-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.wr-panel-code {
  font-family: var(--mono, monospace);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: #e879f9;
}

.wr-panel-flags {
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  line-height: 1;
}

.wr-panel-coords {
  font-family: var(--mono, monospace);
  font-size: 0.75rem;
  color: #d8b4fe;
  margin: 0 0 0.75rem;
}

.wr-panel-agents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.wr-chip {
  font-family: var(--mono, monospace);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.5rem;
  border-radius: 2px;
  border: 1px solid;
}

.wr-chip-cmd {
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(37, 99, 235, 0.15);
}

.wr-chip-ns {
  color: #e9d5ff;
  border-color: rgba(192, 132, 252, 0.5);
  background: rgba(126, 34, 206, 0.15);
}

.wr-panel-status {
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #fbbf24;
  margin: 0 0 0.5rem;
}

.wr-panel-blurb {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #94a8bc;
  margin: 0 0 1rem;
  flex: 1;
}

.wr-panel-meta {
  border: 1px solid rgba(168, 85, 247, 0.25);
  margin-bottom: 0.75rem;
  font-family: var(--mono, monospace);
  font-size: 0.7rem;
}

.wr-panel-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
  color: #9a88b0;
}

.wr-panel-meta > div:last-child { border-bottom: none; }
.wr-panel-meta span:last-child { color: #e879f9; }

.wr-panel-close {
  width: 100%;
}

/* Agent strips */
.wr-agent-strips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(168, 85, 247, 0.22);
}

.wr-agent-card {
  padding: 0.85rem 1rem;
}

.wr-agent-cmd {
  border-right: 1px solid rgba(168, 85, 247, 0.15);
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.14), transparent);
}

.wr-agent-ns {
  background: linear-gradient(180deg, rgba(88, 28, 135, 0.2), transparent);
}

.wr-agent-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.wr-agent-card h3 {
  font-family: var(--mono, monospace);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  margin: 0;
  color: #f5e8ff;
}

.wr-agent-card header span {
  font-family: var(--mono, monospace);
  font-size: 0.65rem;
  color: #64748b;
}

.wr-agent-flags {
  font-size: 1.35rem;
  letter-spacing: 0.2em;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.wr-footer {
  max-width: 1680px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  text-align: center;
  font-family: var(--mono, monospace);
  font-size: 0.7rem;
  color: #6b5a80;
  position: relative;
  z-index: 1;
}

.wr-footer a {
  color: #e879f9;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .wr-stage-wrap,
  .wr-stage-wrap--map-first {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .wr-map-shell {
    border-right: none;
    border-bottom: 1px solid rgba(168, 85, 247, 0.22);
  }

  .wr-map-svg,
  .wr-stage-wrap--map-first .wr-map-svg {
    max-height: min(58vh, 520px);
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .wr-stage-wrap--map-first .wr-map-stage {
    min-height: 0;
  }

  .wr-zoom-hint {
    display: none;
  }

  .wr-agent-strips {
    grid-template-columns: 1fr;
  }

  .wr-agent-cmd {
    border-right: none;
    border-bottom: 1px solid rgba(168, 85, 247, 0.18);
  }

  .wr-badge {
    display: none;
  }

  .wr-query-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.55rem 0.7rem 0.65rem;
  }

  .wr-q-label {
    font-size: 0.62rem;
  }

  /*
    Mobile: single-line search only. flex-grow:1 in a column was letting
    the QUERY box balloon into a huge empty field (see War room text box.jpeg).
  */
  .wr-query-input {
    flex: 0 0 auto;
    width: 100%;
    min-height: 44px;
    max-height: 44px;
    height: 44px;
    font-size: 16px; /* no iOS focus-zoom */
    line-height: 1.2;
    padding: 0.5rem 0.65rem;
  }

  .wr-btn {
    width: 100%;
    min-height: 44px;
    flex: 0 0 auto;
  }

  .wr-coord-inline {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.35rem;
    align-items: center;
  }

  .wr-coord {
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    max-height: 44px;
    height: 44px;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
  }

  .wr-coord-inline .wr-btn {
    width: auto;
    min-width: 4.25rem;
    padding: 0.4rem 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wr-live-dot {
    animation: none !important;
  }

  .wr-country-shape {
    transition: none;
  }
}
