:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --card: #17171a;
  --border: #2a2a2e;
  --text: #e8e6e3;
  --text-dim: #9a9a9f;
  --accent: #ef4444;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(11, 11, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar h1 {
  font-size: 17px;
  margin: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.updated {
  font-size: 12px;
  color: var(--text-dim);
}

#refreshBtn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
}

#refreshBtn:disabled { opacity: 0.6; }

#map {
  height: 380px;
  width: 100%;
  background: #0b0b0d;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.scene-tooltip {
  background: var(--card) !important;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px !important;
  font-family: inherit !important;
}

.globe-tip {
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
}

.flag-pin {
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
  transform: translate(-50%, -100%);
  pointer-events: auto;
}

.feed {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status {
  color: var(--text-dim);
  text-align: center;
  padding: 40px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 14px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.urgency {
  font-weight: 600;
  color: var(--text-dim);
}

.urgency.breaking {
  color: var(--accent);
}

.title {
  font-size: 16px;
  margin: 0 0 6px;
  line-height: 1.4;
}

.summary {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  white-space: pre-line;
  margin: 0 0 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag {
  font-size: 11px;
  color: var(--text-dim);
  background: #222225;
  border-radius: 999px;
  padding: 3px 8px;
}

.link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}
