:root {
  color-scheme: dark;
  --bg: #05080d;
  --bg-2: #08111a;
  --panel: rgba(7, 14, 22, 0.72);
  --panel-strong: rgba(8, 16, 26, 0.9);
  --panel-soft: rgba(12, 25, 39, 0.58);
  --border: rgba(120, 183, 220, 0.2);
  --border-strong: rgba(127, 213, 255, 0.35);
  --text: #edf7ff;
  --muted: #91a6b8;
  --subtle: #5e7486;
  --cyan: #37c6ff;
  --green: #44df7e;
  --amber: #ffb342;
  --red: #ff5a4f;
  --purple: #b96cff;
  --blue: #4aa4ff;
  --orange: #ff7a36;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

button,
select,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 320px;
  background:
    radial-gradient(circle at 52% 48%, rgba(45, 154, 205, 0.16), transparent 28%),
    radial-gradient(circle at 76% 22%, rgba(255, 126, 54, 0.08), transparent 20%),
    #05080d;
  isolation: isolate;
}

#worldCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}

.scene-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2, 6, 10, 0.78) 0%, rgba(2, 6, 10, 0.18) 23%, transparent 42%, transparent 58%, rgba(2, 6, 10, 0.22) 74%, rgba(2, 6, 10, 0.78) 100%),
    linear-gradient(180deg, rgba(2, 6, 10, 0.78) 0%, transparent 18%, transparent 74%, rgba(2, 6, 10, 0.82) 100%);
}

.world-labels {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 5;
}

.world-label {
  position: absolute;
  max-width: 240px;
  min-width: 128px;
  transform: translate(-50%, -120%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(5, 13, 21, 0.78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 9px 11px;
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.world-label.is-visible {
  opacity: 1;
}

.world-label strong {
  display: block;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.world-label span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.topbar,
.left-dock,
.right-dock,
.timeline-panel,
.loading-panel,
.toast {
  position: absolute;
  z-index: 10;
}

.topbar {
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(111, 178, 213, 0.18);
  background: linear-gradient(180deg, rgba(3, 7, 12, 0.88), rgba(3, 7, 12, 0.46));
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(216, 241, 255, 0.8);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 45%, rgba(216, 241, 255, 0.45) 46%, rgba(216, 241, 255, 0.45) 54%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(216, 241, 255, 0.45) 46%, rgba(216, 241, 255, 0.45) 54%, transparent 55%),
    radial-gradient(circle, rgba(55, 198, 255, 0.22), transparent 58%);
  box-shadow: 0 0 20px rgba(55, 198, 255, 0.3);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px 3px;
  border: 1px solid rgba(216, 241, 255, 0.65);
  border-radius: 50%;
}

.brand-mark::after {
  inset: 3px 8px;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0.24em;
}

.sync-state {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 650;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(68, 223, 126, 0.75);
  animation: pulse 1.7s ease-in-out infinite;
}

.sync-delay {
  padding-left: 12px;
  border-left: 1px solid rgba(145, 166, 184, 0.25);
  color: var(--muted);
  font-weight: 520;
}

.top-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.view-select {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.view-select select {
  width: 96px;
  height: 36px;
  border: 1px solid rgba(118, 174, 210, 0.22);
  border-radius: 6px;
  background: rgba(1, 6, 12, 0.72);
  color: var(--text);
  padding: 0 30px 0 12px;
}

.icon-button,
.round-button,
.speed-button,
.ghost-button,
.full-button,
.mode-button,
.risk-button,
.tab {
  border: 0;
  cursor: pointer;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #c6d9e8;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--border-strong);
  background: rgba(54, 159, 210, 0.12);
  color: #ffffff;
  outline: none;
}

.icon-button.small {
  width: 30px;
  height: 30px;
}

.icon-button svg,
.mode-button svg,
.filter-group svg,
.full-button svg,
.date-card svg,
.round-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.left-dock {
  top: 84px;
  bottom: 124px;
  left: 16px;
  width: 236px;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-color: rgba(127, 213, 255, 0.32) transparent;
}

.right-dock {
  top: 84px;
  right: 16px;
  width: min(380px, calc(100vw - 32px));
  bottom: 16px;
  display: grid;
  grid-template-rows: minmax(380px, 1fr) auto auto auto;
  gap: 10px;
  pointer-events: none;
}

.right-dock > *,
.left-dock > *,
.timeline-panel {
  pointer-events: auto;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(118, 174, 210, 0.12);
  color: #d7e8f5;
  font-size: 13px;
  font-weight: 720;
}

.panel-title.large {
  min-height: 48px;
  font-size: 15px;
}

.ghost-button {
  border-radius: 5px;
  background: transparent;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1;
  padding: 7px 8px;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  background: rgba(89, 168, 215, 0.12);
  color: var(--text);
  outline: none;
}

.mode-panel {
  padding-bottom: 8px;
}

.mode-button {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  width: calc(100% - 16px);
  min-height: 42px;
  margin: 4px 8px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: #bed2e2;
  text-align: left;
  font-size: 14px;
}

.mode-button:hover,
.mode-button:focus-visible,
.mode-button.is-active {
  background: linear-gradient(90deg, rgba(55, 198, 255, 0.22), rgba(55, 198, 255, 0.05));
  color: #ffffff;
  outline: none;
}

.mode-button.is-active {
  box-shadow: inset 3px 0 0 var(--cyan);
}

.filter-panel {
  padding-bottom: 14px;
}

.filter-group {
  display: grid;
  gap: 7px;
  padding: 13px 14px 0;
}

.filter-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.filter-group label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 24px;
  gap: 8px;
  color: #c4d7e7;
  font-size: 12px;
}

.filter-group label span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-group input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--cyan);
}

.swatch,
.risk {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.security,
.risk.high {
  background: var(--red);
}

.climate,
.risk.low {
  background: var(--blue);
}

.economy {
  background: var(--green);
}

.society,
.risk.mid {
  background: var(--amber);
}

.tech {
  background: var(--purple);
}

.infrastructure {
  background: var(--orange);
}

.culture {
  background: #f067a6;
}

.risk-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  height: 28px;
  border: 1px solid rgba(118, 174, 210, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  padding: 0 9px;
}

.risk-button.is-active {
  border-color: rgba(127, 213, 255, 0.35);
  color: var(--text);
  background: rgba(55, 198, 255, 0.08);
}

.range-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 15px 14px 0;
  color: var(--muted);
  font-size: 12px;
}

.range-field input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--cyan);
}

.event-center {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: rgba(7, 14, 22, 0.78);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(118, 174, 210, 0.12);
}

.tab {
  position: relative;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.tab.is-active {
  color: var(--text);
}

.tab.is-active::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
}

.event-list {
  min-height: 0;
  overflow: auto;
  padding: 8px 10px;
  scrollbar-color: rgba(127, 213, 255, 0.32) transparent;
}

.event-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  min-height: 84px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  padding: 11px 10px;
  color: inherit;
  text-align: left;
}

.event-item:hover,
.event-item:focus-visible,
.event-item.is-selected {
  border-color: rgba(127, 213, 255, 0.28);
  background: rgba(127, 213, 255, 0.07);
  outline: none;
}

.event-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.event-main {
  min-width: 0;
}

.event-meta,
.event-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.event-title {
  display: -webkit-box;
  margin: 4px 0 5px;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-summary {
  display: -webkit-box;
  min-height: 30px;
  margin: 0 0 7px;
  overflow: hidden;
  color: #a7bac9;
  font-size: 12px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-region {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-width: 48px;
  height: 22px;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 179, 66, 0.13);
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
}

.status-pill.high {
  background: rgba(255, 90, 79, 0.14);
  color: #ff7a70;
}

.status-pill.low {
  background: rgba(74, 164, 255, 0.13);
  color: #71baff;
}

.full-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin: 0 12px 12px;
  border: 1px solid rgba(118, 174, 210, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: #c7dae9;
  font-size: 13px;
}

.full-button:hover,
.full-button:focus-visible {
  border-color: var(--border-strong);
  background: rgba(55, 198, 255, 0.1);
  outline: none;
}

.insight-panel {
  overflow: hidden;
  background: rgba(7, 14, 22, 0.8);
}

.insight-list {
  display: grid;
  gap: 8px;
  max-height: 136px;
  overflow: auto;
  padding: 10px;
  scrollbar-color: rgba(127, 213, 255, 0.32) transparent;
}

.insight-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 74px;
  border: 1px solid rgba(118, 174, 210, 0.18);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(127, 213, 255, 0.08), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.025);
  color: inherit;
  padding: 10px;
  text-align: left;
}

.insight-item:hover,
.insight-item:focus-visible {
  background:
    linear-gradient(90deg, rgba(127, 213, 255, 0.14), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.03);
  outline: none;
}

.insight-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.insight-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.insight-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.insight-main strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-main span {
  display: -webkit-box;
  overflow: hidden;
  color: #a9bdcc;
  font-size: 12px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.insight-main small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-panel {
  padding-bottom: 10px;
}

.region-list {
  display: grid;
  gap: 1px;
  padding: 8px 12px 0;
}

.region-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 27px;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.region-row span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c9d8e3;
}

.region-row strong {
  color: var(--text);
  font-size: 12px;
}

.region-row b {
  color: #ff7066;
  font-size: 12px;
}

.metrics-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  min-height: 86px;
  background: rgba(7, 14, 22, 0.82);
}

.metrics-panel > div {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 14px;
  border-right: 1px solid rgba(118, 174, 210, 0.12);
}

.metrics-panel > div:last-child {
  border-right: 0;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
}

.metrics-panel strong {
  color: var(--text);
  font-size: 27px;
  line-height: 1;
}

.metrics-panel small {
  color: #ff7a70;
  font-size: 12px;
}

.timeline-panel {
  left: 16px;
  right: 420px;
  bottom: 16px;
  min-height: 98px;
  display: grid;
  grid-template-columns: 220px 172px minmax(260px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(7, 14, 22, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.date-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 60px;
  padding: 8px 10px;
  border: 1px solid rgba(118, 174, 210, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.date-card strong,
.date-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-card strong {
  font-size: 15px;
  line-height: 1.3;
}

.date-card span {
  color: var(--muted);
  font-size: 12px;
}

.transport {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.round-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(118, 174, 210, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.round-button:hover,
.round-button:focus-visible,
.round-button.is-primary {
  border-color: var(--border-strong);
  background: rgba(55, 198, 255, 0.12);
  outline: none;
}

.speed-button {
  min-width: 44px;
  height: 36px;
  border: 1px solid rgba(118, 174, 210, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: #c8d8e5;
}

.timeline-track {
  position: relative;
  height: 62px;
  min-width: 0;
  padding-top: 15px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(164, 211, 240, 0.74), transparent);
}

.timeline-events {
  position: absolute;
  left: 0;
  right: 0;
  top: 23px;
  height: 12px;
}

.timeline-dot {
  position: absolute;
  top: 2px;
  width: 5px;
  height: 9px;
  border-radius: 3px;
  transform: translateX(-50%);
  background: var(--cyan);
  box-shadow: 0 0 10px currentColor;
}

.timeline-now {
  position: absolute;
  top: 0;
  bottom: 15px;
  width: 1px;
  transform: translateX(-50%);
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(55, 198, 255, 0.8);
}

.timeline-now span {
  position: absolute;
  top: -4px;
  left: 50%;
  min-width: 72px;
  transform: translate(-50%, -100%);
  border: 1px solid rgba(127, 213, 255, 0.45);
  border-radius: 5px;
  background: rgba(14, 45, 70, 0.92);
  color: #dff6ff;
  padding: 3px 7px;
  font-size: 12px;
  text-align: center;
}

.time-labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.loading-panel {
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(5, 13, 21, 0.82);
  color: #dcefff;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(127, 213, 255, 0.25);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.toast {
  left: 50%;
  bottom: 132px;
  max-width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(16px);
  border: 1px solid rgba(127, 213, 255, 0.3);
  border-radius: 7px;
  background: rgba(6, 15, 24, 0.88);
  color: #dff6ff;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(16px);
  font-size: 13px;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.35;
  }
}

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

@media (max-width: 1220px) {
  .right-dock {
    width: 340px;
  }

  .timeline-panel {
    right: 376px;
    grid-template-columns: 190px 156px minmax(220px, 1fr);
  }

  .left-dock {
    width: 214px;
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .app-shell {
    min-height: 100vh;
    height: 100svh;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    height: 58px;
    padding: 0 12px;
  }

  .brand-text {
    font-size: 15px;
    letter-spacing: 0.16em;
  }

  .sync-state,
  .view-select span,
  #helpButton,
  #soundButton {
    display: none;
  }

  .left-dock {
    top: 70px;
    bottom: auto;
    left: 10px;
    width: 186px;
    overflow: visible;
  }

  .filter-panel {
    display: none;
  }

  .right-dock {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 112px;
    width: auto;
    grid-template-rows: minmax(180px, 31vh);
  }

  .insight-panel,
  .region-panel,
  .metrics-panel {
    display: none;
  }

  .event-item {
    min-height: 76px;
  }

  .timeline-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: minmax(178px, 1fr) auto;
    gap: 12px;
    min-height: 88px;
    padding: 10px;
  }

  .timeline-track {
    grid-column: 1 / -1;
    height: 38px;
    padding-top: 7px;
  }

  .timeline-now span,
  .time-labels span:nth-child(even) {
    display: none;
  }
}

@media (max-width: 620px) {
  .world-label {
    display: none;
  }

  .top-actions {
    gap: 4px;
  }

  .left-dock {
    display: none;
  }

  .right-dock {
    bottom: 146px;
  }

  .event-center {
    min-height: 0;
  }

  .event-list {
    padding: 6px;
  }

  .event-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .event-region {
    display: none;
  }

  .date-card {
    grid-template-columns: 20px minmax(0, 1fr);
    min-height: 50px;
  }

  .date-card .ghost-button {
    display: none;
  }

  .date-card strong {
    font-size: 13px;
  }

  .transport {
    gap: 6px;
  }

  .round-button {
    width: 34px;
    height: 34px;
  }
}

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