:root {
  --bg: #000000;
  --bg-deep: #000000;
  --panel: #050505;
  --panel-strong: #080808;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f4f4;
  --muted: #9d9d9d;
  --critical: #ffffff;
  --high: #d6d6d6;
  --elevated: #b3b3b3;
  --steady: #868686;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.68);
  --radius: 28px;
  --grid-major: rgba(255, 255, 255, 0.035);
  --grid-minor: rgba(255, 255, 255, 0.03);
  --noise-opacity: 0.08;
  --surface: #090909;
  --surface-hover: #121212;
  --surface-soft: rgba(255, 255, 255, 0.02);
  --surface-strong: rgba(5, 5, 5, 0.94);
  --timeline-panel-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%),
    rgba(2, 2, 2, 0.82);
  --settings-panel-bg: rgba(4, 4, 4, 0.98);
  --globe-shell-bg:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.07), transparent 18rem),
    radial-gradient(circle at 78% 26%, rgba(255, 255, 255, 0.05), transparent 20rem),
    #010101;
  --overlay-chip-bg: #050505;
  --overlay-chip-border: rgba(255, 255, 255, 0.1);
  --kicker: #d0d0d0;
  --danger-bg: rgba(46, 5, 5, 0.96);
  --danger-bg-hover: rgba(72, 10, 10, 0.98);
  --danger-border: rgba(174, 48, 48, 0.5);
}

html[data-theme="light"] {
  --bg: #f3ede3;
  --bg-deep: #ece3d7;
  --panel: #fffcf8;
  --panel-strong: #f7f0e6;
  --line: rgba(39, 28, 18, 0.14);
  --line-strong: rgba(39, 28, 18, 0.24);
  --text: #18120d;
  --muted: #6d6054;
  --critical: #111111;
  --high: #2b241e;
  --elevated: #554a40;
  --steady: #7d736a;
  --shadow: 0 24px 56px rgba(84, 66, 49, 0.14);
  --grid-major: rgba(46, 34, 24, 0.06);
  --grid-minor: rgba(46, 34, 24, 0.045);
  --noise-opacity: 0.03;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-hover: rgba(245, 238, 229, 0.98);
  --surface-soft: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 252, 248, 0.95);
  --timeline-panel-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), transparent 28%),
    rgba(255, 252, 248, 0.92);
  --settings-panel-bg: rgba(255, 252, 248, 0.97);
  --globe-shell-bg:
    radial-gradient(circle at 18% 18%, rgba(0, 0, 0, 0.035), transparent 18rem),
    radial-gradient(circle at 78% 24%, rgba(0, 0, 0, 0.028), transparent 20rem),
    #ffffff;
  --overlay-chip-bg: rgba(255, 255, 255, 0.9);
  --overlay-chip-border: rgba(39, 28, 18, 0.12);
  --kicker: #5f5348;
  --danger-bg: rgba(114, 28, 28, 0.92);
  --danger-bg-hover: rgba(137, 38, 38, 0.96);
  --danger-border: rgba(148, 52, 52, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Space Grotesk",
    "IBM Plex Sans KR",
    "Noto Sans KR",
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 1px;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: 18px 18px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 95%);
  pointer-events: none;
}

.screen-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 0.6rem),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08), transparent 0.5rem),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.05), transparent 0.45rem);
  background-size: 12rem 12rem;
}

.dashboard {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.hero,
.layout-grid {
  display: grid;
  gap: 18px;
}

.hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  margin-bottom: 18px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 0.6rem;
  color: var(--kicker);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 50rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

.sound-controls {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 1rem;
}

.sound-control {
  display: grid;
  gap: 0.55rem;
}

.sound-control-wide {
  min-width: 0;
}

.sound-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sound-select,
.sound-range {
  width: 100%;
}

.sound-select {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.8rem 0.9rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

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

.sound-range {
  accent-color: var(--text);
}

.sound-value {
  min-width: 3rem;
  color: var(--text);
  font-size: 0.9rem;
  text-align: right;
}

.control-button,
.track-button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.control-button:hover,
.control-button:focus-visible,
.track-button:hover,
.track-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-hover);
  outline: none;
}

.control-button:disabled,
.track-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.control-button.quiet {
  color: var(--muted);
}

.control-button.is-off {
  border-color: var(--line);
  color: var(--muted);
}

.control-button.danger {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: #fff0f0;
}

.control-button.danger:hover,
.control-button.danger:focus-visible {
  border-color: rgba(214, 92, 92, 0.72);
  background: var(--danger-bg-hover);
}

.icon-action-button {
  width: 100%;
  min-height: 74px;
  padding: 0.9rem 0.72rem 0.78rem;
  border-radius: 22px;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  text-align: center;
}

.icon-action-button svg {
  width: 22px;
  height: 22px;
}

.icon-action-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.track-button {
  padding: 0.52rem 0.8rem;
  font-size: 0.82rem;
  color: #f0f0f0;
}

.hero-status {
  background: var(--panel-strong);
}

.hero-status-top {
  display: grid;
  gap: 0.85rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--text);
}

.status-pill.tone-critical {
  background: #f0f0f0;
  color: #000000;
}

.status-pill.tone-high {
  background: #d7d7d7;
  color: #050505;
}

.status-pill.tone-elevated {
  background: #bdbdbd;
  color: #050505;
}

.status-pill.tone-stale {
  background: #141414;
  color: #c6c6c6;
}

.status-line {
  font-size: 1.1rem;
  line-height: 1.45;
}

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

.score-card {
  padding: 14px;
  border-radius: 22px;
  background: #090909;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-value {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  letter-spacing: -0.05em;
}

.hero-meta {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.meta-line,
.panel-head,
.focus-top,
.focus-links,
.stage-divider {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.meta-line span,
.panel-note {
  color: var(--muted);
}

.panel-head {
  align-items: flex-start;
  margin-bottom: 1rem;
}

.globe-stage {
  margin-bottom: 18px;
}

.globe-stage-wide {
  width: min(1520px, calc(100vw - 24px));
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 20px 20px 24px;
}

.globe-stage-wide .panel-head {
  margin-bottom: 18px;
}

.globe-stage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.globe-frame {
  position: relative;
  min-height: 480px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000000;
}

.globe-frame-wide {
  min-height: clamp(480px, 72vh, 860px);
}

.globe-frame::before,
.globe-frame::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  pointer-events: none;
}

.globe-frame::before {
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.globe-frame::after {
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
}

.globe-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.globe-canvas.is-dragging {
  cursor: grabbing;
}

.globe-marker-bubble {
  position: absolute;
  z-index: 2;
  min-width: min(220px, calc(100% - 36px));
  max-width: min(320px, calc(100% - 36px));
  padding: 0.8rem 0.95rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
  color: #f7f7f7;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 18px));
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.globe-marker-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.96);
  transform: translateX(-50%) rotate(45deg);
}

.globe-marker-bubble.is-hidden {
  opacity: 0;
  transform: translate(-50%, calc(-100% - 8px));
}

.globe-marker-bubble.is-below {
  transform: translate(-50%, 18px);
}

.globe-marker-bubble.is-below::after {
  top: -8px;
  bottom: auto;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.globe-bubble-line {
  display: block;
  line-height: 1.15;
}

.globe-bubble-kicker {
  display: block;
  margin-bottom: 0.35rem;
  color: #9d9d9d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.globe-bubble-title {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.globe-bubble-meta {
  margin-top: 0.45rem;
  color: #e0e0e0;
  font-size: 0.8rem;
}

.globe-bubble-place {
  margin-top: 0.32rem;
  color: #d0d0d0;
  font-size: 0.88rem;
  line-height: 1.25;
}

.globe-overlay-label {
  --globe-overlay-transform: none;
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.8rem;
  transform: var(--globe-overlay-transform);
  transition: opacity 220ms ease;
}

.globe-overlay-label.is-hidden {
  opacity: 0;
  transform: var(--globe-overlay-transform);
  pointer-events: none;
}

.globe-legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: min(720px, calc(100% - 96px));
  pointer-events: none;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.8rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.critical {
  background: #ff4c4c;
  box-shadow: 0 0 10px rgba(255, 112, 112, 0.72);
}

.legend-dot.high {
  background: #ff9e42;
  box-shadow: 0 0 10px rgba(255, 181, 102, 0.62);
}

.legend-dot.elevated {
  background: #6a6a6a;
  box-shadow: 0 0 10px rgba(190, 190, 190, 0.5);
}

.legend-dot.low {
  background: #8d8d8d;
  box-shadow: 0 0 10px rgba(180, 180, 180, 0.45);
}

.legend-dot.home {
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.legend-chip-note {
  justify-content: center;
}

.globe-focus-card {
  min-height: 0;
  display: grid;
}

.globe-focus-shell {
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #060606;
}

.focus-top {
  align-items: flex-start;
}

.focus-title {
  font-size: 1.24rem;
}

.focus-lead,
.globe-hint {
  color: var(--muted);
  line-height: 1.7;
}

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

.focus-stat {
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
}

.focus-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.focus-stat strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.focus-links {
  flex-wrap: wrap;
}

.focus-links a {
  color: #f2f2f2;
}

.stage-divider {
  align-items: end;
  margin: 20px 0 12px;
}

.stage-mini-title {
  font-size: 1.1rem;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  min-height: 158px;
}

.pulse-bar {
  display: grid;
  align-items: end;
  min-height: 126px;
  padding: 0.75rem 0.6rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #080808;
}

.pulse-bar-fill {
  width: 100%;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(125, 125, 125, 0.82));
}

.pulse-bar.critical .pulse-bar-fill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(150, 150, 150, 0.92));
}

.pulse-bar-footer {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.18rem;
}

.pulse-mag {
  font-size: 1rem;
  font-weight: 700;
}

.pulse-place {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

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

.span-7 {
  grid-column: span 7;
}

.span-6 {
  grid-column: span 6;
}

.span-5 {
  grid-column: span 5;
}

.alert-list,
.event-list,
.region-list,
.significant-list,
.collector-list {
  display: grid;
  gap: 12px;
}

.alert-card,
.event-card,
.region-card,
.collector-card,
.significant-card,
.home-watch-inner {
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #060606;
}

.alert-card.critical {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.alert-card.high {
  border-color: rgba(255, 255, 255, 0.16);
}

.alert-top,
.event-top,
.collector-top,
.significant-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.magnitude-pill,
.severity-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.magnitude-pill {
  background: #131313;
  color: #f1f1f1;
}

.magnitude-pill.critical,
.severity-pill.critical {
  background: #f1f1f1;
  color: #000000;
}

.magnitude-pill.high,
.severity-pill.high {
  background: #d7d7d7;
  color: #040404;
}

.magnitude-pill.elevated,
.severity-pill.elevated {
  background: #b9b9b9;
  color: #060606;
}

.magnitude-pill.steady,
.severity-pill.steady {
  background: #151515;
  color: #d2d2d2;
}

.item-title {
  font-size: 1.06rem;
  line-height: 1.4;
}

.item-copy,
.region-meta,
.collector-copy,
.feed-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reason-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.34rem 0.58rem;
  background: #111111;
  color: var(--text);
  font-size: 0.78rem;
}

.home-watch-card {
  min-height: 172px;
}

.home-watch-inner {
  display: grid;
  gap: 0.8rem;
}

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

.home-watch-stat {
  padding: 12px;
  border-radius: 18px;
  background: #0a0a0a;
}

.home-watch-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.home-watch-stat strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.25rem;
}

.region-card {
  display: grid;
  gap: 0.7rem;
}

.region-meter {
  height: 8px;
  border-radius: 999px;
  background: #121212;
  overflow: hidden;
}

.region-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(245, 245, 245, 0.82), rgba(108, 108, 108, 0.88));
}

.collector-card a,
.event-card a,
.alert-card a,
.significant-card a,
.feed-note a {
  color: #f2f2f2;
}

.collector-card ul,
.significant-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.empty-state {
  padding: 1.1rem;
  border-radius: 22px;
  background: #050505;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.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: 1080px) {
  .globe-stage-layout {
    grid-template-columns: 1fr;
  }

  .globe-frame,
  .globe-focus-card {
    min-height: 420px;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .sound-controls {
    grid-template-columns: 1fr 1fr;
  }

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

  .span-7,
  .span-6,
  .span-5 {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .dashboard {
    width: min(100vw - 16px, 100%);
    padding-top: 16px;
  }

  .globe-stage-wide {
    width: calc(100vw - 12px);
    padding: 14px 14px 18px;
  }

  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.1rem, 12vw, 3.5rem);
  }

  .scoreboard,
  .home-watch-stats,
  .focus-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sound-controls {
    grid-template-columns: 1fr;
  }

  .meta-line,
  .panel-head,
  .alert-top,
  .event-top,
  .collector-top,
  .significant-top,
  .focus-top,
  .focus-links,
  .stage-divider {
    flex-direction: column;
  }

  .globe-frame {
    min-height: 360px;
  }

  .globe-legend {
    right: 16px;
  }
}

.dashboard-solo {
  --desktop-header-clearance: 136px;
  --globe-legend-clearance: 112px;
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  border: 0;
  outline: 0;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
}

.dashboard-solo::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(112, 10, 10, 0.34), transparent 56%),
    linear-gradient(180deg, rgba(54, 4, 4, 0.12), rgba(20, 0, 0, 0.34));
  transition: opacity 180ms ease;
}

.dashboard-solo.is-incident-alert::after {
  opacity: 1;
  animation: incident-alert-pulse 1.16s ease-in-out infinite;
}

@keyframes incident-alert-pulse {
  0%,
  100% {
    opacity: 0.16;
  }

  46% {
    opacity: 0.48;
  }

  68% {
    opacity: 0.24;
  }
}

.app-header {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  z-index: 9;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}

.app-brand {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: min(48vw, 560px);
}

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

.app-site-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.app-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  pointer-events: auto;
}

.header-clock {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  min-width: 0;
}

.header-clock strong {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.app-brand-logo {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-header-title {
  max-width: none;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 0.94;
  white-space: normal;
  word-break: keep-all;
  line-break: strict;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.monitor-layout {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.timeline-panel,
.globe-stage-solo,
.globe-shell,
.globe-frame-solo {
  height: 100%;
  min-height: 0;
}

.timeline-panel.panel,
.globe-shell.panel {
  padding: 0;
}

.globe-shell.panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.timeline-panel::after,
.globe-shell::after {
  display: none;
}

.timeline-panel {
  position: absolute;
  top: var(--desktop-header-clearance);
  left: 18px;
  z-index: 7;
  width: min(356px, calc(100vw - 36px));
  min-height: 300px;
  max-height: calc(100% - var(--desktop-header-clearance) - var(--globe-legend-clearance));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--timeline-panel-bg);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.timeline-head {
  display: block;
  min-width: 0;
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--line);
}

.timeline-head-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
}

.timeline-content {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.timeline-body {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 0 18px 16px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}

.timeline-status-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.status-line-compact {
  font-size: 0.98rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.timeline-copy {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.timeline-tools {
  display: grid;
  gap: 8px;
}

.timeline-search,
.timeline-filter {
  display: grid;
  gap: 8px;
}

.timeline-filter-label {
  color: var(--kicker);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline-filter-select {
  width: 100%;
  min-width: 0;
}

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

.timeline-meta-item {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.timeline-meta-item span {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-meta-item strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.timeline-meta-item-single {
  grid-column: 1 / -1;
}

.timeline-note {
  color: var(--kicker);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.timeline-list {
  min-height: 0;
  overflow: auto;
  padding: 14px 14px 16px 18px;
  display: grid;
  gap: 10px;
}

.timeline-list::-webkit-scrollbar {
  width: 10px;
}

.timeline-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.timeline-entry {
  display: grid;
  gap: 10px;
  padding: 14px 14px 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.timeline-entry:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.timeline-entry:focus-visible {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.timeline-entry.is-active {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  transform: translateX(4px);
  box-shadow: inset 0 0 0 1px var(--line);
}

.timeline-ad-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
}

.timeline-ad-top {
  align-items: center;
}

.timeline-ad-disclosure {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
  word-break: keep-all;
}

.timeline-mag-ad {
  background: rgba(255, 255, 255, 0.14);
  color: #f5f5f5;
}

.timeline-ad-slot-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.timeline-ad-slot {
  width: min(286px, 100%);
  min-height: 100px;
}

.timeline-ad-slot iframe {
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.timeline-entry-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.timeline-entry-time {
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 600;
}

.timeline-entry-place {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.28;
}

.timeline-entry-region {
  color: var(--muted);
  font-size: 0.84rem;
}

.timeline-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.timeline-mag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: #f4f4f4;
  color: #050505;
  font-size: 0.82rem;
  font-weight: 700;
}

.globe-stage-solo {
  position: relative;
  min-width: 0;
  min-height: 100%;
}

.globe-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: var(--globe-shell-bg);
}

.globe-hud {
  position: absolute;
  top: 28px;
  left: 50%;
  right: auto;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  width: min(560px, calc(100vw - 560px));
  min-width: min(280px, calc(100vw - 220px));
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.globe-frame-solo {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: 100%;
}

.globe-frame-solo::before {
  display: none;
}

.globe-location-fab {
  position: absolute;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 4;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.42);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.globe-location-fab:hover,
.globe-location-fab:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-hover);
  outline: none;
}

.globe-location-fab.is-active {
  border-color: var(--line-strong);
}

.globe-location-fab.is-locating {
  opacity: 0.84;
}

.globe-location-fab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.globe-location-fab svg {
  width: 24px;
  height: 24px;
}

.incident-alert {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(720px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid rgba(174, 48, 48, 0.44);
  border-radius: 24px;
  background: rgba(14, 3, 3, 0.96);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.54);
  transform: translateX(-50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.incident-alert.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

.timeline-footer {
  padding: 8px 4px 2px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.timeline-footer p {
  margin: 0;
  line-height: 1.5;
}

.incident-alert-copy {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
  flex: 1 1 auto;
}

.incident-alert-kicker {
  color: #ffb2b2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.incident-alert-title,
#incidentAlertTitle {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

#incidentAlertMeta {
  color: #d6b5b5;
  font-size: 0.86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.settings-fab,
.settings-close {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
}

.settings-fab {
  position: relative;
  top: auto;
  right: auto;
  z-index: 9;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.42);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.settings-fab:hover,
.settings-fab:focus-visible,
.settings-close:hover,
.settings-close:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-hover);
  outline: none;
}

.settings-fab svg {
  width: 24px;
  height: 24px;
}

.settings-panel {
  position: absolute;
  top: 86px;
  right: 20px;
  z-index: 6;
  width: min(360px, calc(100% - 40px));
  max-height: min(calc(100% - 108px), calc(100dvh - 120px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--settings-panel-bg);
  box-shadow: var(--shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.settings-panel::-webkit-scrollbar {
  width: 10px;
}

.settings-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.settings-panel.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
}

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

.settings-language {
  margin-bottom: 14px;
}

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

.settings-preferences .settings-language {
  margin-bottom: 0;
}

.settings-title {
  font-size: 1.15rem;
}

.settings-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
}

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

.settings-stat {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.settings-stat-wide {
  grid-column: 1 / -1;
}

.settings-stat span {
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.settings-stat strong {
  font-size: 1.32rem;
  letter-spacing: -0.05em;
}

.settings-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.settings-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.8rem;
}

.settings-actions {
  margin-top: 14px;
}

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

.settings-sound {
  margin-top: 14px;
  grid-template-columns: 1fr;
}

.globe-overlay-label {
  --globe-overlay-transform: translateX(-50%);
  top: auto;
  bottom: 18px;
  left: 50%;
  right: auto;
  transform: var(--globe-overlay-transform);
  padding: 0.65rem 0.95rem;
  background: var(--overlay-chip-bg);
  border: 1px solid var(--overlay-chip-border);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.1;
}

@media (max-width: 1180px) {
  .dashboard-solo {
    --desktop-header-clearance: 128px;
    --globe-legend-clearance: 128px;
  }

  .timeline-panel {
    width: min(320px, calc(100vw - 32px));
  }

  .globe-hud {
    width: min(460px, calc(100vw - 440px));
  }
}

@media (max-width: 960px) {
  .dashboard-solo {
    display: grid;
    grid-template-rows: auto auto;
    width: 100%;
    height: auto;
    min-height: auto;
    gap: 10px;
    padding-top: 0;
    padding-bottom: 10px;
    overflow: visible;
  }

  .app-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    align-items: center;
    padding: 10px 10px 2px;
    pointer-events: auto;
  }

  .app-brand {
    max-width: min(72vw, 440px);
  }

  .header-clock {
    display: none;
  }

  .monitor-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    height: auto;
    min-height: auto;
    position: relative;
  }

  .globe-stage-solo {
    order: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .timeline-panel {
    position: relative;
    top: auto;
    left: auto;
    z-index: auto;
    width: auto;
    min-height: auto;
    max-height: none;
    order: 2;
    border-radius: var(--radius);
    backdrop-filter: none;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
      #020202;
    box-shadow: var(--shadow);
  }

  .globe-shell.panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .globe-shell {
    height: 100%;
    min-height: 0;
    overflow: visible;
  }

  .globe-frame-solo {
    height: 100%;
    min-height: 0;
  }

  .timeline-list {
    max-height: 42vh;
  }
  .settings-panel {
    max-height: min(560px, calc(100svh - 104px));
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }

  .incident-alert {
    width: calc(100vw - 24px);
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 12px 13px;
    gap: 12px;
  }

  .globe-hud {
    top: 22px;
    bottom: auto;
    left: 22px;
    right: 86px;
    width: auto;
    min-width: 0;
    transform: none;
    text-align: left;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .app-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    align-items: flex-start;
    padding: 0;
  }

  .app-brand {
    gap: 12px;
    max-width: min(78vw, 360px);
  }

  .app-site-title {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
  }

  .app-header-actions {
    gap: 10px;
  }

  .header-clock strong {
    font-size: 0.95rem;
  }

  .app-brand-logo {
    width: 50px;
    height: 50px;
  }

  .app-header-title {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .timeline-panel {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    max-height: none;
    border-radius: 24px;
  }

  .timeline-head {
    padding: 16px 14px 14px;
  }

  .timeline-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .timeline-list {
    padding-left: 14px;
    padding-right: 14px;
  }

  .timeline-meta-grid,
  .settings-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .settings-preferences,
  .settings-action-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-entry-top {
    flex-direction: column;
  }

  .globe-hud {
    top: 16px;
    bottom: auto;
    left: 16px;
    right: 76px;
    width: auto;
  }

  .globe-overlay-label {
    bottom: 14px;
    max-width: calc(100vw - 24px);
    padding: 0.52rem 0.8rem;
    font-size: 0.62rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .settings-fab {
    width: 50px;
    height: 50px;
  }

  .globe-location-fab {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }

  .settings-panel {
    top: 72px;
    right: 14px;
    width: calc(100% - 28px);
    max-height: min(560px, calc(100svh - 86px));
  }

  .incident-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .icon-action-button {
    min-height: 68px;
  }

  .incident-alert .control-button {
    width: 100%;
    justify-content: center;
  }

  .globe-stage-solo {
    aspect-ratio: 1 / 1;
  }
}
