@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --bg-0: #061826;
  --bg-1: #0a2233;
  --bg-2: #112d40;
  --panel: rgba(10, 34, 51, 0.88);
  --panel-border: rgba(120, 205, 255, 0.22);
  --text: #e7f6ff;
  --muted: #9bc0d2;
  --accent: #37c9ff;
  --accent-2: #00e0aa;
  --warn: #f4b942;
  --danger: #ff6a5f;
  --valid: #1cd8a5;
  --partial: #f2bc45;
  --unvalidated: #ff7864;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 420px at 88% -10%, rgba(55, 201, 255, 0.18), transparent),
    radial-gradient(700px 350px at 0% 100%, rgba(0, 224, 170, 0.15), transparent),
    linear-gradient(165deg, var(--bg-0), var(--bg-1) 45%, #0f3348 100%);
}

.app-shell {
  width: min(1500px, 96vw);
  margin: 0 auto;
  padding: 20px 0 26px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px 18px;
}

.brand-block h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.brand-block p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.status-block {
  display: flex;
  gap: 14px;
}

.status-item {
  min-width: 120px;
  border: 1px solid rgba(155, 192, 210, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(8, 27, 39, 0.5);
}

.status-item span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.controls {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  gap: 10px;
  align-items: end;
}

.control {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 9px 10px;
}

.control span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.control select,
.control input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.94rem;
  font-family: inherit;
  outline: none;
}

.control input::placeholder {
  color: rgba(155, 192, 210, 0.75);
}

.btn-primary {
  border: 1px solid rgba(0, 224, 170, 0.45);
  background: linear-gradient(135deg, rgba(0, 224, 170, 0.3), rgba(55, 201, 255, 0.25));
  color: var(--text);
  border-radius: 12px;
  height: 54px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topic-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-pill {
  border: 1px solid rgba(120, 205, 255, 0.35);
  background: rgba(8, 27, 39, 0.65);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
}

.topic-pill.active {
  border-color: rgba(0, 224, 170, 0.72);
  background: rgba(0, 224, 170, 0.16);
}

.conflict-filter-pill {
  margin-left: auto;
  border-color: rgba(244, 185, 66, 0.45);
  color: var(--warn);
}

.conflict-filter-pill.active {
  border-color: rgba(244, 185, 66, 0.8);
  background: rgba(244, 185, 66, 0.18);
  color: var(--warn);
}

.stats-grid {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 9px 11px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  font-size: 1.2rem;
  font-family: 'IBM Plex Mono', monospace;
}

.stat-good strong { color: var(--valid); }
.stat-mid strong { color: var(--partial); }
.stat-risk strong { color: var(--unvalidated); }
.stat-conflict strong { color: var(--warn); }

.briefing-grid {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1.2fr 1fr 1fr;
}

.brief-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 11px;
  min-height: 145px;
}

.brief-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.brief-head h2 {
  margin: 0;
  font-size: 0.88rem;
}

.brief-head small {
  color: var(--muted);
  font-size: 0.7rem;
}

.brief-glance-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.brief-subhead {
  margin-top: 10px;
  margin-bottom: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(120, 205, 255, 0.18);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.brief-subhead strong {
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.brief-subhead small {
  font-size: 0.68rem;
  color: var(--muted);
}

.brief-glance-list li {
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.35;
  padding-left: 12px;
  position: relative;
}

.brief-glance-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.brief-delta-list li::before {
  color: var(--warn);
}

.brief-region-list,
.brief-critical-list {
  display: grid;
  gap: 6px;
}

.brief-chip {
  border: 1px solid rgba(120, 205, 255, 0.22);
  background: rgba(7, 24, 36, 0.62);
  border-radius: 9px;
  padding: 7px 8px;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
}

.brief-chip strong {
  color: var(--text);
}

.brief-chip.alert {
  border-color: rgba(244, 185, 66, 0.45);
}

.brief-chip.conflict {
  border-color: rgba(255, 120, 100, 0.45);
}

.main-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.45fr 1fr 0.85fr;
  gap: 10px;
  min-height: 72vh;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.02rem;
}

.panel-header small {
  color: var(--muted);
  font-size: 0.75rem;
}

.legend {
  display: flex;
  gap: 10px;
  font-size: 0.74rem;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

.dot-valid { background: var(--valid); }
.dot-partial { background: var(--partial); }
.dot-unvalidated { background: var(--unvalidated); }

.world-map {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(120, 205, 255, 0.3);
  overflow: hidden;
  flex: 1;
  min-height: 420px;
}

.event-list,
.signal-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 3px;
}

.headline-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding-right: 3px;
}

.event-card {
  border: 1px solid rgba(120, 205, 255, 0.22);
  border-radius: 10px;
  background: rgba(7, 24, 36, 0.72);
  padding: 9px 10px;
  cursor: pointer;
}

.event-card:hover {
  border-color: rgba(0, 224, 170, 0.55);
}

.event-title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.28;
}

.event-meta {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-chip {
  border-radius: 999px;
  border: 1px solid rgba(155, 192, 210, 0.34);
  padding: 3px 8px;
  font-size: 0.72rem;
  color: var(--muted);
}

.meta-chip.validated { border-color: rgba(28, 216, 165, 0.58); color: var(--valid); }
.meta-chip.partially_validated { border-color: rgba(242, 188, 69, 0.58); color: var(--partial); }
.meta-chip.unvalidated { border-color: rgba(255, 120, 100, 0.58); color: var(--unvalidated); }

.event-sources {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.75rem;
}

.conflict-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid rgba(244, 185, 66, 0.55);
  background: rgba(244, 185, 66, 0.12);
  color: var(--warn);
  font-size: 0.7rem;
  padding: 2px 8px;
  font-weight: 600;
  cursor: help;
}

.event-card.highlighted {
  border-color: rgba(55, 201, 255, 0.8);
  box-shadow: 0 0 0 2px rgba(55, 201, 255, 0.3);
  animation: highlightPulse 1.4s ease-out;
}

@keyframes highlightPulse {
  0% { box-shadow: 0 0 0 4px rgba(55, 201, 255, 0.5); }
  100% { box-shadow: 0 0 0 2px rgba(55, 201, 255, 0.3); }
}

.signal-item {
  border: 1px solid rgba(120, 205, 255, 0.22);
  border-radius: 10px;
  background: rgba(7, 24, 36, 0.72);
  padding: 8px 9px;
}

.signal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  margin-bottom: 5px;
}

.signal-symbol {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
}

.signal-dir.up { color: var(--valid); }
.signal-dir.down { color: var(--unvalidated); }
.signal-dir.volatile { color: var(--warn); }

.signal-rationale {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
}

.headline-item a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.35;
  display: block;
}

.headline-item a:hover {
  color: #8bd6ff;
  text-decoration: underline;
}

.signal-block h3 {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: rgba(231, 246, 255, 0.95);
}

.disclaimer {
  margin-top: 10px;
  border-top: 1px solid rgba(120, 205, 255, 0.25);
  padding-top: 9px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.footnote {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #0b2436;
  color: var(--text);
  border: 1px solid rgba(120, 205, 255, 0.25);
}

.popup-title {
  margin: 0 0 6px;
  font-size: 0.86rem;
}

.popup-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

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

  .main-grid {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .map-panel {
    min-height: 500px;
  }

  .feed-panel,
  .signals-panel {
    min-height: 360px;
  }

  .world-map {
    min-height: 420px;
  }
}

@media (max-width: 1180px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .app-shell {
    width: min(1500px, 98vw);
    padding-top: 10px;
  }

  .topbar {
    flex-direction: column;
  }

  .status-block {
    width: 100%;
  }

  .status-item {
    flex: 1;
  }

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

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

  .conflict-filter-pill {
    margin-left: 0;
  }
}

/* ─── Drawer ─── */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.drawer-overlay.open {
  pointer-events: all;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 22, 0.65);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.drawer-overlay.open .drawer-backdrop {
  opacity: 1;
}

.drawer {
  position: relative;
  width: min(460px, 95vw);
  background: var(--bg-1);
  border-left: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.drawer-overlay.open .drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--panel-border);
  background: var(--bg-2);
  flex-shrink: 0;
}

.drawer-header-text {
  flex: 1;
  min-width: 0;
}

.drawer-topic-label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.drawer-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text);
}

.drawer-location {
  margin: 0;
  font-size: 0.78rem;
  color: var(--accent);
}

.drawer-close {
  flex-shrink: 0;
  border: 1px solid rgba(120, 205, 255, 0.35);
  background: rgba(8, 27, 39, 0.8);
  color: var(--text);
  border-radius: 7px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-section {
  background: rgba(7, 24, 36, 0.6);
  border: 1px solid rgba(120, 205, 255, 0.15);
  border-radius: 10px;
  padding: 12px 14px;
}

.drawer-section h3 {
  margin: 0 0 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.drawer-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.drawer-status-badge {
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.drawer-status-badge.validated {
  border-color: rgba(28, 216, 165, 0.5);
  color: var(--valid);
  background: rgba(28, 216, 165, 0.1);
}

.drawer-status-badge.partially_validated {
  border-color: rgba(242, 188, 69, 0.5);
  color: var(--partial);
  background: rgba(242, 188, 69, 0.1);
}

.drawer-status-badge.unvalidated {
  border-color: rgba(255, 120, 100, 0.5);
  color: var(--unvalidated);
  background: rgba(255, 120, 100, 0.1);
}

.drawer-score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  color: var(--accent);
}

.drawer-reasons {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.drawer-reasons li {
  font-size: 0.78rem;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}

.drawer-reasons li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.drawer-kv {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 6px;
  gap: 8px;
}

.drawer-kv span:last-child {
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  text-align: right;
}

.drawer-source-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.drawer-source-table th {
  color: var(--muted);
  text-align: left;
  font-weight: 500;
  padding: 3px 8px 6px 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.drawer-source-table td {
  color: var(--text);
  padding: 4px 8px 4px 0;
  border-top: 1px solid rgba(120, 205, 255, 0.08);
  vertical-align: middle;
}

.trust-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-bar {
  display: inline-block;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.65;
  flex-shrink: 0;
}

.trust-na {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: italic;
}

.drawer-urls {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-url-link {
  color: var(--accent);
  font-size: 0.72rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.drawer-url-link:hover {
  text-decoration: underline;
}

.drawer-timestamp {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Contradiction section */

.contradiction-flag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.flag-badge {
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
}

.flag-badge.conflict {
  background: rgba(244, 185, 66, 0.16);
  border: 1px solid rgba(244, 185, 66, 0.55);
  color: var(--warn);
}

.flag-badge.clean {
  background: rgba(28, 216, 165, 0.1);
  border: 1px solid rgba(28, 216, 165, 0.4);
  color: var(--valid);
}

.contradiction-score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--muted);
}

.drawer-summary {
  margin: 6px 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}

.related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.related-chip {
  border-radius: 999px;
  border: 1px solid rgba(55, 201, 255, 0.4);
  background: rgba(55, 201, 255, 0.08);
  color: var(--accent);
  font-size: 0.7rem;
  padding: 3px 10px;
  cursor: pointer;
  font-family: inherit;
}

.related-chip:hover {
  background: rgba(55, 201, 255, 0.18);
}

/* ─── Toast notifications ─── */

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px 12px;
  max-width: 320px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text);
  pointer-events: all;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.2s ease-out;
}

.toast.toast-warn {
  border-color: rgba(244, 185, 66, 0.5);
}

.toast.toast-info {
  border-color: rgba(55, 201, 255, 0.4);
}

.toast-icon {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.toast-msg {
  flex: 1;
}

.toast-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
  line-height: 1.4;
  font-family: inherit;
}

.toast-close:hover {
  color: var(--text);
}

.toast.toast-out {
  animation: toastOut 0.2s ease-in forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ─── Feed Tabs ───────────────────────────────────────── */
.feed-tabs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.feed-tab {
  background: transparent;
  border: 1px solid rgba(120, 205, 255, 0.25);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 4px 11px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}

.feed-tab.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(55, 201, 255, 0.1);
}

.feed-tab:hover:not(.active) {
  border-color: rgba(120, 205, 255, 0.5);
  color: var(--text);
}

/* ─── News Feed ───────────────────────────────────────── */
.news-feed {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  padding-right: 3px;
  flex: 1;
  min-height: 0;
}

.topic-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.topic-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px 5px;
  border-bottom: 1px solid rgba(120, 205, 255, 0.18);
  margin-top: 8px;
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 2;
}

.topic-group:first-child .topic-group-header {
  margin-top: 0;
}

.topic-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.topic-group-count {
  background: rgba(55, 201, 255, 0.12);
  border: 1px solid rgba(55, 201, 255, 0.28);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.68rem;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
}

.news-card {
  border: 1px solid rgba(120, 205, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 24, 36, 0.62);
  padding: 7px 10px;
  transition: border-color 0.12s, background 0.12s;
}

.news-card:hover {
  border-color: rgba(55, 201, 255, 0.42);
  background: rgba(10, 30, 46, 0.88);
}

a.news-card__title {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.35;
  color: var(--text);
  text-decoration: none;
  display: block;
}

a.news-card__title:hover {
  color: #8bd6ff;
  text-decoration: underline;
}

p.news-card__title {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.35;
  color: var(--text);
}

.news-card__meta {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}

.source-badge {
  border: 1px solid rgba(0, 224, 170, 0.32);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(0, 224, 170, 0.07);
  white-space: nowrap;
}

/* ─── Region filter ───────────────────────────────────── */
.brief-chip.clickable {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.brief-chip.clickable:hover {
  border-color: rgba(55, 201, 255, 0.45);
  background: rgba(10, 30, 46, 0.88);
}

.brief-chip.region-active {
  border-color: var(--accent);
  background: rgba(55, 201, 255, 0.1);
}

.brief-chip.region-active strong {
  color: var(--accent);
}

.region-filter-bar {
  margin-top: 8px;
  background: rgba(55, 201, 255, 0.07);
  border: 1px solid rgba(55, 201, 255, 0.38);
  border-radius: 10px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.region-filter-bar strong {
  color: var(--accent);
}

.btn-clear {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(120, 205, 255, 0.3);
  border-radius: 6px;
  color: var(--muted);
  padding: 3px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.12s, color 0.12s;
}

.btn-clear:hover {
  border-color: var(--accent);
  color: var(--text);
}
