/* ============================================================
   WarNews Live Board — Design System
   Void-dark intelligence terminal aesthetic
   ============================================================ */

/* ── TOKENS ── */
:root {
  --wn-bg:       #04050d;
  --wn-s1:       #08091a;
  --wn-s2:       #0d1220;
  --wn-s3:       #111928;
  --wn-s4:       #192035;
  --wn-b:        rgba(255,255,255,.05);
  --wn-b2:       rgba(255,255,255,.09);
  --wn-b3:       rgba(255,255,255,.14);

  --wn-accent:   #00cfff;
  --wn-accent-g: rgba(0,207,255,.14);
  --wn-accent-d: rgba(0,207,255,.06);

  --wn-critical: #ff3535;
  --wn-crit-g:   rgba(255,53,53,.14);
  --wn-alert:    #ffa500;
  --wn-alert-g:  rgba(255,165,0,.12);
  --wn-safe:     #22d35f;

  --wn-t1: #eef0f8;
  --wn-t2: #8892a6;
  --wn-t3: #4a5570;

  --wn-r:  6px;
  --wn-r2: 10px;
  --wn-gap: 14px;

  --wn-font-ui:   'Orbitron', 'Courier New', monospace;
  --wn-font-body: system-ui, -apple-system, sans-serif;
  --wn-font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* SVG gauge arc half-circle length (r=90) */
  --wn-arc-len: 282.74;
}

/* ── RESET (scoped) ── */
.wn-board *,
.wn-board *::before,
.wn-board *::after,
.wn-kbd-modal *,
.wn-kbd-modal *::before,
.wn-kbd-modal *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   BOARD ROOT
   ============================================================ */
.wn-board {
  font-family: var(--wn-font-body);
  background: var(--wn-bg);
  color: var(--wn-t1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--wn-r2);
  overflow: hidden;
  border: 1px solid var(--wn-b2);
}

/* ============================================================
   TICKER
   ============================================================ */
.wn-ticker {
  display: flex;
  align-items: center;
  background: var(--wn-s1);
  border-bottom: 1px solid var(--wn-critical);
  height: 32px;
  overflow: hidden;
  flex-shrink: 0;
}

.wn-ticker__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--wn-critical);
  color: #fff;
  font-family: var(--wn-font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 0 12px;
  height: 100%;
  flex-shrink: 0;
  white-space: nowrap;
}

.wn-ticker__mask {
  flex: 1;
  overflow: hidden;
  height: 100%;
  position: relative;
}

.wn-ticker__track {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: wn-ticker-scroll 40s linear infinite;
  will-change: transform;
}

.wn-ticker__track:hover { animation-play-state: paused; }

.wn-ticker__item {
  font-size: 12px;
  color: var(--wn-t1);
  padding: 0 32px;
  letter-spacing: .04em;
}

.wn-ticker__item::before {
  content: '●';
  color: var(--wn-critical);
  margin-right: 14px;
  font-size: 8px;
}

@keyframes wn-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.wn-masthead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--wn-gap);
  padding: 20px 24px;
  background: var(--wn-s1);
  border-bottom: 1px solid var(--wn-b2);
  flex-shrink: 0;
}

.wn-masthead__brand { flex: 1; min-width: 0; }

.wn-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wn-font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--wn-safe);
  margin-bottom: 6px;
}

.wn-masthead__title {
  font-family: var(--wn-font-ui);
  font-size: clamp(14px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--wn-t1);
  line-height: 1.2;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.wn-masthead__sub {
  font-size: 11px;
  color: var(--wn-t3);
  margin-top: 4px;
  letter-spacing: .04em;
}

.wn-masthead__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wn-google-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--wn-r);
  border: 1px solid var(--wn-b2);
  background: linear-gradient(135deg, rgba(0, 207, 255, 0.18), rgba(0, 207, 255, 0.08));
  color: var(--wn-accent);
  font-family: var(--wn-font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}

.wn-google-cta:hover,
.wn-google-cta:focus-visible {
  border-color: var(--wn-accent);
  background: linear-gradient(135deg, rgba(0, 207, 255, 0.28), rgba(0, 207, 255, 0.14));
  color: #bff3ff;
  outline: none;
}

/* KPIs */
.wn-kpis {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.wn-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.wn-kpi__val {
  font-family: var(--wn-font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--wn-accent);
  display: flex;
  align-items: center;
  gap: 5px;
}

.wn-kpi__lbl {
  font-family: var(--wn-font-ui);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--wn-t3);
}

/* Live dot */
.wn-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wn-safe);
  box-shadow: 0 0 6px var(--wn-safe);
  animation: wn-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

.wn-live-dot--sm { width: 6px; height: 6px; }

@keyframes wn-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* Icon button */
.wn-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--wn-r);
  border: 1px solid var(--wn-b2);
  background: var(--wn-s3);
  color: var(--wn-t2);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.wn-icon-btn svg { width: 16px; height: 16px; }

.wn-icon-btn:hover {
  border-color: var(--wn-accent);
  color: var(--wn-accent);
  background: var(--wn-accent-d);
}

/* Mono util */
.wn-mono { font-family: var(--wn-font-mono); font-size: 12px; }

/* ============================================================
   TOOLBAR
   ============================================================ */
.wn-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 24px;
  background: var(--wn-s2);
  border-bottom: 1px solid var(--wn-b);
  flex-shrink: 0;
}

/* Search */
.wn-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wn-s3);
  border: 1px solid var(--wn-b2);
  border-radius: var(--wn-r);
  padding: 0 10px;
  min-width: 220px;
  transition: border-color .15s;
}

.wn-search:focus-within {
  border-color: var(--wn-accent);
  box-shadow: 0 0 0 2px var(--wn-accent-d);
}

.wn-search__icon { width: 14px; height: 14px; color: var(--wn-t3); flex-shrink: 0; }

.wn-search__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--wn-t1);
  font-size: 13px;
  font-family: var(--wn-font-body);
  padding: 8px 0;
}

.wn-search__input::placeholder { color: var(--wn-t3); }

.wn-search__clear {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--wn-t3);
  cursor: pointer;
  padding: 2px;
}

.wn-search__clear svg { width: 12px; height: 12px; }
.wn-search__clear:hover { color: var(--wn-t1); }

/* Filters */
.wn-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

/* Source chips */
.wn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wn-chip {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--wn-b2);
  background: var(--wn-s3);
  color: var(--wn-t2);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.wn-chip:hover,
.wn-chip--active {
  border-color: var(--wn-accent);
  color: var(--wn-accent);
  background: var(--wn-accent-d);
}

/* Urgency filter */
.wn-urgency-filter { display: flex; gap: 4px; }

.wn-u-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--wn-b2);
  background: var(--wn-s3);
  color: var(--wn-t2);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.wn-u-btn:hover,
.wn-u-btn--active {
  border-color: var(--wn-accent);
  color: var(--wn-t1);
  background: var(--wn-s4);
}

.wn-u-btn--critical.wn-u-btn--active { border-color: var(--wn-critical); color: var(--wn-critical); }
.wn-u-btn--alert.wn-u-btn--active    { border-color: var(--wn-alert);    color: var(--wn-alert);    }

.wn-u-btn--bookmarks.wn-u-btn--active svg { fill: var(--wn-accent); }

.wn-pip {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wn-t3);
}

.wn-pip--critical { background: var(--wn-critical); box-shadow: 0 0 4px var(--wn-critical); }
.wn-pip--alert    { background: var(--wn-alert);    box-shadow: 0 0 4px var(--wn-alert); }

/* ============================================================
   BODY LAYOUT
   ============================================================ */
.wn-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.wn-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--wn-gap);
  padding: var(--wn-gap);
  background: var(--wn-s1);
  border-right: 1px solid var(--wn-b);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--wn-b3) transparent;
  min-height: 600px;
}

/* Cards */
.wn-card {
  background: var(--wn-s2);
  border: 1px solid var(--wn-b2);
  border-radius: var(--wn-r2);
  padding: 14px;
  flex-shrink: 0;
}

.wn-card--grow { flex: 1; min-height: 120px; }

.wn-card__label {
  font-family: var(--wn-font-ui);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--wn-t3);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── THREAT GAUGE ── */
.wn-gauge { text-align: center; }

.wn-gauge__svg {
  width: 100%;
  max-width: 180px;
  overflow: visible;
}

.wn-gauge__track { stroke: var(--wn-s4); }

.wn-gauge__arc {
  stroke: var(--wn-safe);
  transition: stroke-dasharray .6s cubic-bezier(.25,.8,.25,1), stroke .4s;
  stroke-dasharray: 0 283;
}

.wn-gauge__score {
  font-family: var(--wn-font-ui);
  font-size: 28px;
  font-weight: 700;
  fill: var(--wn-t1);
}

.wn-gauge__label {
  font-family: var(--wn-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--wn-safe);
  margin-top: -4px;
  padding-bottom: 8px;
  transition: color .4s;
}

.wn-gauge[data-wn-threat-level="elevated"] .wn-gauge__arc   { stroke: var(--wn-alert); }
.wn-gauge[data-wn-threat-level="elevated"] .wn-gauge__label { color: var(--wn-alert); }
.wn-gauge[data-wn-threat-level="high"] .wn-gauge__arc       { stroke: var(--wn-critical); }
.wn-gauge[data-wn-threat-level="high"] .wn-gauge__label     { color: var(--wn-critical); }
.wn-gauge[data-wn-threat-level="critical"] .wn-gauge__arc   { stroke: var(--wn-critical); }
.wn-gauge[data-wn-threat-level="critical"] .wn-gauge__label {
  color: var(--wn-critical);
  animation: wn-pulse 1s ease-in-out infinite;
}

/* Threat breakdown */
.wn-gauge__breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.wn-threat-row {
  display: grid;
  grid-template-columns: 8px 54px 1fr 28px;
  align-items: center;
  gap: 6px;
}

.wn-threat-row__pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wn-t3);
}

.wn-threat-row--critical .wn-threat-row__pip { background: var(--wn-critical); }
.wn-threat-row--alert    .wn-threat-row__pip { background: var(--wn-alert); }
.wn-threat-row--normal   .wn-threat-row__pip { background: var(--wn-safe); }

.wn-threat-row__name { font-size: 11px; color: var(--wn-t2); }

.wn-threat-row__bar-wrap {
  background: var(--wn-s4);
  border-radius: 4px;
  height: 5px;
  overflow: hidden;
}

.wn-threat-row__bar {
  height: 100%;
  border-radius: 4px;
  transition: width .5s ease;
}

.wn-threat-row--critical .wn-threat-row__bar { background: var(--wn-critical); }
.wn-threat-row--alert    .wn-threat-row__bar { background: var(--wn-alert); }
.wn-threat-row--normal   .wn-threat-row__bar { background: var(--wn-safe); }

.wn-threat-row__count {
  font-size: 11px;
  color: var(--wn-t2);
  text-align: right;
}

/* ── MAP ── */
.wn-card--map { padding: 0; overflow: hidden; }

.wn-map {
  position: relative;
  background: #050d1a;
  aspect-ratio: 8 / 5;
  overflow: hidden;
}

.wn-map__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,207,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,207,255,.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

.wn-map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wn-country {
  fill: rgba(0,207,255,.07);
  stroke: rgba(0,207,255,.25);
  stroke-width: .8;
}

.wn-country--hot {
  fill: rgba(255,53,53,.14);
  stroke: rgba(255,53,53,.5);
  stroke-width: 1;
  animation: wn-hot-pulse 2.5s ease-in-out infinite alternate;
}

@keyframes wn-hot-pulse {
  from { fill: rgba(255,53,53,.1); }
  to   { fill: rgba(255,53,53,.22); }
}

.wn-map__markers { position: absolute; inset: 0; }
.wn-map__labels  { position: absolute; inset: 0; pointer-events: none; }

.wn-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--wn-accent);
  border: 2px solid #fff;
  cursor: pointer;
  animation: wn-pin-pulse 2s ease-out infinite;
}

.wn-pin--hot {
  background: var(--wn-critical);
  animation-name: wn-pin-pulse-hot;
}

.wn-pin--blue { background: #4488ff; }

.wn-pin[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 160%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.85);
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 10;
}

@keyframes wn-pin-pulse {
  0%  { box-shadow: 0 0 0 0 rgba(0,207,255,.6); }
  70% { box-shadow: 0 0 0 8px rgba(0,207,255,0); }
  to  { box-shadow: 0 0 0 0 rgba(0,207,255,0); }
}

@keyframes wn-pin-pulse-hot {
  0%  { box-shadow: 0 0 0 0 rgba(255,53,53,.7); }
  70% { box-shadow: 0 0 0 10px rgba(255,53,53,0); }
  to  { box-shadow: 0 0 0 0 rgba(255,53,53,0); }
}

.wn-map__lbl {
  position: absolute;
  font-family: var(--wn-font-ui);
  font-size: 8px;
  letter-spacing: .1em;
  color: rgba(0,207,255,.6);
  pointer-events: none;
  transform: translateY(-50%);
}

.wn-map__lbl--dim { color: rgba(0,207,255,.35); }

.wn-map__sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 300deg,
    rgba(0,207,255,.06) 355deg,
    rgba(0,207,255,.14) 360deg
  );
  animation: wn-sweep 6s linear infinite;
}

@keyframes wn-sweep { to { transform: rotate(360deg); } }

.wn-map__caption {
  padding: 6px 14px;
  font-size: 10px;
  color: var(--wn-t3);
  text-align: center;
  border-top: 1px solid var(--wn-b);
  background: var(--wn-s2);
}

/* ── SOURCE LIST ── */
.wn-source-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wn-source-list__empty { font-size: 12px; color: var(--wn-t3); padding: 8px 0; }

.wn-source-item {
  display: grid;
  grid-template-columns: 8px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--wn-b);
  font-size: 12px;
}

.wn-source-item:last-child { border-bottom: none; }

.wn-source-item__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wn-source-item__name {
  color: var(--wn-t2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wn-source-item__count {
  font-family: var(--wn-font-mono);
  font-size: 11px;
  color: var(--wn-t3);
}

.wn-source-item__bar-wrap {
  width: 36px;
  height: 3px;
  background: var(--wn-s4);
  border-radius: 2px;
  overflow: hidden;
}

.wn-source-item__bar {
  height: 100%;
  border-radius: 2px;
  transition: width .5s ease;
}

/* ============================================================
   FEED
   ============================================================ */
.wn-feed {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.wn-feed__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--wn-s2);
  border-bottom: 1px solid var(--wn-b);
  flex-shrink: 0;
}

.wn-feed__title {
  font-family: var(--wn-font-ui);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--wn-t3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wn-feed__topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wn-feed__updated {
  font-size: 11px;
  color: var(--wn-t3);
  font-family: var(--wn-font-mono);
}

/* New items banner */
.wn-new-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--wn-accent-d);
  border-bottom: 1px solid var(--wn-accent);
  font-size: 12px;
  color: var(--wn-accent);
  flex-shrink: 0;
  animation: wn-banner-in .25s ease;
}

@keyframes wn-banner-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wn-new-banner strong {
  font-family: var(--wn-font-ui);
  font-size: 13px;
}

.wn-new-banner__cta {
  margin-left: auto;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid var(--wn-accent);
  background: transparent;
  color: var(--wn-accent);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.wn-new-banner__cta:hover { background: var(--wn-accent-g); }

/* Timeline scroll */
.wn-timeline {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--wn-b3) transparent;
}

/* ── NEWS ITEM ── */
.wn-item {
  background: var(--wn-s2);
  border: 1px solid var(--wn-b2);
  border-radius: var(--wn-r);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s, background .15s;
  position: relative;
  animation: wn-item-in .3s ease both;
}

@keyframes wn-item-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wn-item:hover {
  border-color: var(--wn-b3);
  background: var(--wn-s3);
}

.wn-item--focused {
  border-color: var(--wn-accent) !important;
  background: var(--wn-accent-d) !important;
  outline: none;
}

.wn-item--bookmarked::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent var(--wn-accent) transparent transparent;
}

.wn-item--new { border-left: 3px solid var(--wn-safe); }

/* Item header */
.wn-item__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Urgency badge */
.wn-item__urgency {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: var(--wn-font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  flex-shrink: 0;
  white-space: nowrap;
}

.wn-item__urgency--critical {
  background: var(--wn-crit-g);
  color: var(--wn-critical);
  border: 1px solid var(--wn-critical);
}

.wn-item__urgency--alert {
  background: var(--wn-alert-g);
  color: var(--wn-alert);
  border: 1px solid var(--wn-alert);
}

.wn-item__urgency--normal { display: none; }

/* Title */
.wn-item__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--wn-t1);
  line-height: 1.4;
  flex: 1;
}

.wn-item__title a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}

.wn-item__title a:hover { color: var(--wn-accent); }

/* Excerpt */
.wn-item__excerpt {
  font-size: 13px;
  color: var(--wn-t2);
  line-height: 1.55;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Thumb */
.wn-item__thumb {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--wn-b);
}

/* Footer */
.wn-item__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wn-item__source-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wn-item__source {
  font-size: 11px;
  font-weight: 600;
  color: var(--wn-t2);
  white-space: nowrap;
}

.wn-item__time {
  font-family: var(--wn-font-mono);
  font-size: 11px;
  color: var(--wn-t3);
  flex: 1;
}

.wn-item__read-time { font-size: 10px; color: var(--wn-t3); }

/* Item actions */
.wn-item__actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.wn-item__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--wn-t3);
  cursor: pointer;
  transition: all .15s;
}

.wn-item__action svg { width: 13px; height: 13px; }

.wn-item__action:hover {
  border-color: var(--wn-b2);
  color: var(--wn-t1);
  background: var(--wn-s4);
}

.wn-item__action--bookmark.is-bookmarked { color: var(--wn-accent); }

/* ── SKELETONS ── */
.wn-item--skeleton { pointer-events: none; }

.wn-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@keyframes wn-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.wn-skeleton__line,
.wn-skeleton__footer {
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--wn-s3) 25%,
    var(--wn-s4) 50%,
    var(--wn-s3) 75%
  );
  background-size: 800px 100%;
  animation: wn-shimmer 1.5s infinite linear;
  height: 14px;
}

.wn-skeleton__line--title { height: 18px; width: 85%; }
.wn-skeleton__line        { width: 100%; }
.wn-skeleton__line--short { width: 60%; }
.wn-skeleton__footer      { height: 12px; width: 45%; margin-top: 4px; }

/* State messages */
.wn-state-msg {
  text-align: center;
  padding: 48px 24px;
  color: var(--wn-t3);
}

.wn-state-msg__icon { font-size: 32px; margin-bottom: 12px; opacity: .5; }

.wn-state-msg__title {
  font-family: var(--wn-font-ui);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--wn-t2);
  margin-bottom: 8px;
}

.wn-state-msg__text { font-size: 13px; }
.wn-state-msg--error .wn-state-msg__title { color: var(--wn-critical); }

/* ============================================================
   KEYBOARD SHORTCUTS MODAL
   ============================================================ */
.wn-kbd-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wn-kbd-modal[hidden] { display: none; }

.wn-kbd-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,5,13,.85);
  backdrop-filter: blur(4px);
}

.wn-kbd-modal__box {
  position: relative;
  z-index: 1;
  background: var(--wn-s2);
  border: 1px solid var(--wn-accent);
  border-radius: var(--wn-r2);
  width: min(540px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(0,207,255,.1);
  animation: wn-modal-in .2s ease;
}

@keyframes wn-modal-in {
  from { opacity: 0; transform: translateY(-20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wn-kbd-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--wn-b2);
}

.wn-kbd-modal__title {
  font-family: var(--wn-font-ui);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--wn-accent);
}

.wn-kbd-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--wn-b2);
  background: none;
  color: var(--wn-t2);
  cursor: pointer;
}

.wn-kbd-modal__close svg { width: 14px; height: 14px; }
.wn-kbd-modal__close:hover { border-color: var(--wn-critical); color: var(--wn-critical); }

.wn-kbd-modal__body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: var(--wn-b);
}

.wn-kbd-section {
  padding: 16px 20px;
  background: var(--wn-s2);
}

.wn-kbd-section__title {
  font-family: var(--wn-font-ui);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--wn-t3);
  margin-bottom: 10px;
}

.wn-kbd-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.wn-kbd-list li { display: flex; align-items: center; gap: 10px; }

.wn-kbd-list span { font-size: 12px; color: var(--wn-t2); }

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 5px;
  border-radius: 3px;
  border: 1px solid var(--wn-b3);
  background: var(--wn-s3);
  font-family: var(--wn-font-mono);
  font-size: 11px;
  color: var(--wn-accent);
  box-shadow: 0 2px 0 var(--wn-b3);
  flex-shrink: 0;
}

/* ============================================================
   SCROLLBARS (Chrome/Edge)
   ============================================================ */
.wn-sidebar::-webkit-scrollbar,
.wn-timeline::-webkit-scrollbar,
.wn-kbd-modal__box::-webkit-scrollbar { width: 4px; }

.wn-sidebar::-webkit-scrollbar-track,
.wn-timeline::-webkit-scrollbar-track,
.wn-kbd-modal__box::-webkit-scrollbar-track { background: transparent; }

.wn-sidebar::-webkit-scrollbar-thumb,
.wn-timeline::-webkit-scrollbar-thumb,
.wn-kbd-modal__box::-webkit-scrollbar-thumb {
  background: var(--wn-b3);
  border-radius: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .wn-board {
    border-radius: 0;
    min-height: 100dvh;
  }

  .wn-body { grid-template-columns: 1fr; }

  .wn-masthead {
    padding: 14px;
    gap: 10px;
  }

  .wn-masthead__brand {
    flex-basis: 100%;
  }

  .wn-kpis {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .wn-kpi {
    align-items: flex-start;
    padding: 8px 10px;
    border: 1px solid var(--wn-b2);
    border-radius: var(--wn-r);
    background: var(--wn-s2);
  }

  .wn-masthead__actions {
    width: 100%;
    justify-content: space-between;
  }

  .wn-google-cta {
    flex: 1;
    min-width: 0;
    height: 34px;
    font-size: 9px;
    letter-spacing: .06em;
  }

  .wn-toolbar {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .wn-search {
    width: 100%;
    min-width: 0;
  }

  .wn-filters {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .wn-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .wn-chips::-webkit-scrollbar {
    display: none;
  }

  .wn-urgency-filter {
    flex-wrap: wrap;
  }

  .wn-u-btn {
    min-height: 30px;
  }

  .wn-feed__topbar {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .wn-feed__topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .wn-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--wn-b);
    min-height: unset;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: hidden;
    overflow-y: auto;
    gap: 10px;
    padding: 12px;
  }

  .wn-card,
  .wn-card--map,
  .wn-card--sources,
  .wn-card--grow {
    flex: 0 0 auto;
    min-width: 0;
  }

  .wn-map {
    max-height: 300px;
  }

  .wn-source-list__item,
  .wn-source-item {
    grid-template-columns: 8px 1fr auto;
  }
}

@media (max-width: 560px) {
  .wn-ticker { height: 28px; }

  .wn-ticker__badge {
    padding: 0 8px;
    font-size: 9px;
  }

  .wn-ticker__item {
    font-size: 11px;
    padding: 0 20px;
  }

  .wn-masthead__title {
    font-size: 13px;
    line-height: 1.3;
  }

  .wn-masthead__sub {
    font-size: 10px;
    line-height: 1.45;
  }

  .wn-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .wn-kpi__val {
    font-size: 12px;
  }

  .wn-google-cta {
    height: 32px;
    padding: 0 10px;
    font-size: 8px;
  }

  .wn-toolbar  { padding: 8px 10px; }

  .wn-search__input {
    font-size: 12px;
  }

  .wn-chip,
  .wn-u-btn {
    min-height: 30px;
    font-size: 10px;
  }

  .wn-sidebar {
    padding: 10px;
    gap: 8px;
  }

  .wn-card {
    padding: 10px;
  }

  .wn-card--map {
    display: none;
  }

  .wn-feed__topbar {
    padding: 8px 10px;
  }

  .wn-timeline { padding: 8px; gap: 7px; }
  .wn-item     { padding: 11px; gap: 7px; }

  .wn-item__title {
    font-size: 13px;
    line-height: 1.35;
  }

  .wn-item__excerpt {
    font-size: 12px;
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }

  .wn-item__footer {
    gap: 8px;
  }

  .wn-item__time {
    width: 100%;
    order: 3;
    flex: 0 0 100%;
  }

  .wn-item__actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .wn-ticker,
  .wn-toolbar,
  .wn-masthead__actions,
  .wn-item__actions,
  .wn-new-banner,
  .wn-kbd-modal { display: none !important; }
  .wn-body    { display: block; }
  .wn-sidebar { display: none; }
}
