@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:            #2a2a2a;
  --surface:       #353535;
  --surface-1:     #3a3a3a;
  --surface-2:     #424242;
  --surface-3:     #4a4a4a;
  --text:          #f0f0f0;
  --text-1:        #f0f0f0;
  --text-2:        #d0d0d0;
  --text-3:        #999999;
  --accent:        #d4af37;
  --accent-2:      #c9a961;
  --pos:           #ff6b6b;
  --neg:           #51cf66;
  --warn:          #ffc107;
  --border:        #4a4a4a;
  --border-strong: #5a5a5a;
  --radius:        4px;
  --radius-lg:     8px;
  --shadow:        0 2px 8px rgba(0,0,0,0.4), 0 6px 16px rgba(0,0,0,0.3);
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.3);
  --font:          'DM Sans', -apple-system, system-ui, sans-serif;
  --font-display:  'Fraunces', Georgia, serif;
}

[data-theme="dark"] {
  --bg:            #2a2a2a;
  --surface:       #353535;
  --surface-1:     #3a3a3a;
  --surface-2:     #424242;
  --surface-3:     #4a4a4a;
  --text:          #f0f0f0;
  --text-1:        #f0f0f0;
  --text-2:        #d0d0d0;
  --text-3:        #999999;
  --accent:        #d4af37;
  --accent-2:      #c9a961;
  --pos:           #ff6b6b;
  --neg:           #51cf66;
  --warn:          #ffc107;
  --border:        #4a4a4a;
  --border-strong: #5a5a5a;
  --shadow:        0 2px 8px rgba(0,0,0,0.4), 0 6px 16px rgba(0,0,0,0.3);
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.3);
}

/* Explicit light override — wins over system dark media query */
[data-theme="light"] {
  --bg:            #2a2a2a;
  --surface:       #353535;
  --surface-1:     #3a3a3a;
  --surface-2:     #424242;
  --surface-3:     #4a4a4a;
  --text:          #f0f0f0;
  --text-1:        #f0f0f0;
  --text-2:        #d0d0d0;
  --text-3:        #999999;
  --accent:        #d4af37;
  --accent-2:      #c9a961;
  --pos:           #ff6b6b;
  --neg:           #51cf66;
  --warn:          #ffc107;
  --border:        #4a4a4a;
  --border-strong: #5a5a5a;
  --shadow:        0 2px 8px rgba(0,0,0,0.4), 0 6px 16px rgba(0,0,0,0.3);
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #2a2a2a;
    --surface:       #353535;
    --surface-1:     #3a3a3a;
    --surface-2:     #424242;
    --surface-3:     #4a4a4a;
    --text:          #f0f0f0;
    --text-1:        #f0f0f0;
    --text-2:        #d0d0d0;
    --text-3:        #999999;
    --accent:        #d4af37;
    --accent-2:      #c9a961;
    --pos:           #ff6b6b;
    --neg:           #51cf66;
    --warn:          #ffc107;
    --border:        #4a4a4a;
    --border-strong: #5a5a5a;
    --shadow:        0 2px 8px rgba(0,0,0,0.4), 0 6px 16px rgba(0,0,0,0.3);
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.3);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(10,110,120,0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(10,110,120,0.04) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s, color 0.2s;
}

[data-theme="dark"] body, [data-theme="dark"] html {
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(34,197,212,0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(34,197,212,0.03) 0%, transparent 50%);
}

.app {
  padding: 0 28px 80px;
  border-top: 4px solid var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER  — editorial, not a card
═══════════════════════════════════════════════════════════════════════════ */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 22px 28px 18px;
  margin: 0 -28px 0;
  background: #0d1e20;
  border-bottom: 3px solid var(--accent);
  flex-wrap: wrap;
  gap: 12px;
}

.site-header > div:first-child {
  display: flex;
  flex-direction: column;
}

.site-header h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -1.5px;
  color: #fff;
  line-height: 0.95;
}

.site-header h1::before { display: none; }

.home-btn {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: inherit;
  transition: color 0.15s;
}

.home-btn:hover { color: var(--accent); }

.site-header .sub {
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  margin-top: 7px;
  max-width: 560px;
  line-height: 1.5;
  padding-left: 0;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}

.year-badge {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.07);
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

.btn-icon {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-icon:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIVE INDICATORS
═══════════════════════════════════════════════════════════════════════════ */

.live-indicators {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -28px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  margin-bottom: 0;
}

.live-indicators::-webkit-scrollbar { display: none; }

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px 8px 0;
  margin-right: 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-indicator:first-child { padding-left: 0; }

.live-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.live-indicator .label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
}
.live-indicator .value {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: -0.2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUMMARY STATS  — seamless grid of numbers, no card bubbles
═══════════════════════════════════════════════════════════════════════════ */

.summary {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.summary.summary-visible { display: grid; }

.stat {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  transition: background 0.12s;
}

.stat:last-child { border-right: none; }
.stat:hover      { background: var(--surface-2); }

.stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-num {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  line-height: 1.05;
}

.stat-delta {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

.stat-delta.pos  { color: var(--pos); }
.stat-delta.neg  { color: var(--neg); }
.stat-delta.warn { color: var(--warn); }

.stat.alert {
  border-top: 2px solid var(--pos);
  padding-top: 18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TWO-TIER NAV
═══════════════════════════════════════════════════════════════════════════ */

/* Primary nav */
.site-nav { margin-bottom: 0; }
.nav-primary {
  display: flex;
  gap: 0;
  padding: 0;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  margin-top: 0;
}
.nav-primary::-webkit-scrollbar { display: none; }
.nav-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.2px;
}
.nav-btn:hover { color: var(--text); }
.nav-btn.active {
  color: var(--text);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

/* Secondary sub-tabs */
.nav-secondary {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: transparent;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  padding: 0;
  min-height: 0;
}
.nav-secondary:empty { display: none; margin-bottom: 28px; }
.nav-secondary::-webkit-scrollbar { display: none; }
.sub-tab {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color 0.12s, border-color 0.12s;
}
.sub-tab:hover { color: var(--text); }
.sub-tab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 700; }
.sub-tab-back { color: var(--text-2); font-size: 11px; letter-spacing: .2px; }

/* "Alle ▾" overflow dropdown */
.nav-alle-wrap { position: relative; display: flex; align-items: center; margin-left: 2px; margin-bottom: -1px; }
.nav-alle-btn {
  font-family: var(--font); font-size: 12px; font-weight: 500;
  padding: 7px 12px; background: transparent; border: none;
  border-bottom: 2px solid transparent; color: var(--text-3);
  cursor: pointer; white-space: nowrap; margin-bottom: 0;
  transition: color .12s; border-radius: 0;
}
.nav-alle-btn:hover { color: var(--text); }
.nav-alle-btn.nav-alle-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.nav-alle-drop {
  display: none; position: fixed;
  z-index: 1000; background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0,0,0,.13);
  padding: 6px; min-width: 260px;
}
.nav-alle-drop.open { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-alle-item {
  background: none; border: none; cursor: pointer; padding: 7px 10px;
  text-align: left; font-family: var(--font); font-size: 12px;
  color: var(--text); border-radius: 4px; white-space: nowrap;
  transition: background .1s, color .1s;
}
.nav-alle-item:hover { background: var(--surface-2); color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════════════
   PANELS
═══════════════════════════════════════════════════════════════════════════ */

.panel { display: none; animation: fade 0.2s ease; }
.panel.active { display: block; }

@keyframes fade {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════════════════════ */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card + .card { margin-top: 14px; }

.card h2 {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.card p.intro {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 18px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUDGET ROWS
═══════════════════════════════════════════════════════════════════════════ */

.row {
  display: grid;
  grid-template-columns: 1.6fr 2fr 100px 60px;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.row:last-child { border-bottom: none; }
.row-name { font-size: 13px; font-weight: 500; }
.row-info { font-size: 11px; color: var(--text-3); margin-top: 2px; line-height: 1.4; }
.row-source { font-size: 10px; color: var(--text-3); margin-top: 2px; font-style: italic; }
.row-val { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.row-delta { font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-3); }
.row-delta.pos { color: var(--pos); }
.row-delta.neg { color: var(--neg); }

/* ═══════════════════════════════════════════════════════════════════════════
   RANGE SLIDERS
═══════════════════════════════════════════════════════════════════════════ */

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 1.5px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--surface);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BAR CHARTS
═══════════════════════════════════════════════════════════════════════════ */

.bar-container { margin-bottom: 8px; font-size: 12px; }
.bar-row { display: flex; justify-content: space-between; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.bar-row .bar-name { color: var(--text); }
.bar-row .bar-val  { color: var(--text-2); }
.bar-track { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 2px; transition: width 0.3s ease; }
.bar-fill.exp { background: var(--pos); }
.bar-fill.rev { background: var(--neg); }

/* ═══════════════════════════════════════════════════════════════════════════
   POLICY CARDS
═══════════════════════════════════════════════════════════════════════════ */

.policy-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 15px 18px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}

.policy-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.policy-name { font-size: 13px; font-weight: 600; }
.policy-val  { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; }
.policy-desc { font-size: 12px; color: var(--text-2); margin-bottom: 10px; line-height: 1.5; }
.policy-row  { display: grid; grid-template-columns: 1fr 220px; gap: 14px; align-items: center; }
.policy-impact { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.policy-impact.pos { color: var(--pos); font-weight: 600; }
.policy-impact.neg { color: var(--neg); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════════
   ACTION BAR
═══════════════════════════════════════════════════════════════════════════ */

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════════════════ */

.btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.12s;
  letter-spacing: 0.1px;
}

.btn:hover {
  background: var(--surface-2);
  border-color: var(--text-3);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.btn.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCENARIOS
═══════════════════════════════════════════════════════════════════════════ */

.scenarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }

.scenario {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.scenario:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.scenario-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.scenario-desc  { font-size: 12px; color: var(--text-2); line-height: 1.4; }

/* ═══════════════════════════════════════════════════════════════════════════
   PILLS / BADGES
═══════════════════════════════════════════════════════════════════════════ */

.eu-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

.pill { font-size: 11px; padding: 3px 9px; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 5px; font-weight: 600; letter-spacing: 0.2px; }
.pill.ok   { background: rgba(10,96,69,0.1);   color: var(--neg); }
.pill.fail { background: rgba(158,32,32,0.1);  color: var(--pos); }

/* ═══════════════════════════════════════════════════════════════════════════
   CANVAS / CHARTS
═══════════════════════════════════════════════════════════════════════════ */

canvas { display: block; max-width: 100%; }

.year-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }

.year-stat {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
  border: 1px solid var(--border);
}

.year-stat-y { font-size: 10px; color: var(--text-3); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.year-stat-v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════════════════════
   VOTE CARDS (Folketing)
═══════════════════════════════════════════════════════════════════════════ */

.vote-card {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 6px;
}

.vote-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.vote-title { font-size: 13px; font-weight: 600; flex: 1; }

.vote-status { font-size: 10px; padding: 3px 8px; border-radius: var(--radius); font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.3px; }
.vote-status.passed { background: rgba(10,96,69,0.1);  color: var(--neg); }
.vote-status.failed { background: rgba(158,32,32,0.1); color: var(--pos); }

.vote-meta { font-size: 11px; color: var(--text-3); }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  margin-top: 60px;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}

.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.footer-grid h3 {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.footer-grid p { font-size: 12px; line-height: 1.6; }
.footer-grid a { color: var(--accent); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════════════════════ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.show { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px 32px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.modal h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.3px; }
.modal-body { font-size: 14px; line-height: 1.6; }
.modal-body p  { margin-bottom: 12px; }
.modal-body ul { padding-left: 20px; margin-bottom: 12px; }
.modal-body li { margin-bottom: 6px; }
.modal-close { float: right; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-3); font-family: inherit; line-height: 1; }
.modal-close:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════════════════
   SHARE / TOAST
═══════════════════════════════════════════════════════════════════════════ */

.share-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  margin-top: 8px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.25s;
  z-index: 200;
  pointer-events: none;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════════════════════════════════════ */

.loading {
  color: var(--text-3);
  font-size: 13px;
  padding: 24px;
  text-align: center;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   OVERVIEW — balance bar + historical table
═══════════════════════════════════════════════════════════════════════════ */

.overview-balance-bar {
  margin-top: 14px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-2);
}

.hist-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.hist-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}
.hist-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.hist-table tr:last-child td { border-bottom: none; }
.hist-table td.pos { color: var(--pos); font-weight: 600; }
.hist-table td.neg { color: var(--neg); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════════
   DEMOGRAPHICS
═══════════════════════════════════════════════════════════════════════════ */

.demo-hero {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.demo-hero-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  text-align: center;
}

.demo-hero-num {
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.demo-hero-label { font-size: 11px; color: var(--text-2); margin-top: 3px; line-height: 1.3; }

.demo-struct-bar { display: flex; height: 24px; border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.demo-struct-seg { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: white; transition: width 0.3s; }
.seg-children  { background: #4a8fc0; }
.seg-working   { background: #1a9e75; }
.seg-elderly   { background: #d07030; }

.demo-struct-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--text-2); margin-top: 6px; }
.demo-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.seg-children-dot    { background: #4a8fc0; }
.seg-working-dot     { background: #1a9e75; }
.seg-elderly-dot     { background: #d07030; }
.seg-very-elderly-dot{ background: #8a4020; }

.demo-dep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.demo-dep-card { background: var(--surface-2); border-radius: var(--radius); padding: 12px 14px; text-align: center; border: 1px solid var(--border); }
.demo-dep-val { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.demo-dep-label { font-size: 11px; font-weight: 600; color: var(--text-2); margin: 3px 0 2px; }
.demo-dep-desc { font-size: 10px; color: var(--text-3); }

.demo-chart-wrap h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); margin-bottom: 4px; }
.demo-pyramid-labels { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; margin-bottom: 4px; }

.demo-vitals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.demo-vital-card { background: var(--surface-2); border-radius: var(--radius); padding: 12px 14px; text-align: center; border: 1px solid var(--border); }
.demo-vital-val { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); margin-bottom: 3px; }
.demo-vital-label { font-size: 11px; color: var(--text-2); font-weight: 500; }
.demo-vital-sub { font-size: 10px; color: var(--text-3); margin-top: 2px; }

.demo-region-row,
.demo-sector-row,
.demo-urban-row,
.demo-origin-row,
.demo-ed-row,
.demo-hh-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.demo-region-row { grid-template-columns: 180px 1fr 50px 65px 70px; }
.demo-sector-row { grid-template-columns: 180px 1fr 80px; }
.demo-ed-row     { grid-template-columns: 1fr 1fr 36px; }

.demo-region-row:last-child,
.demo-sector-row:last-child,
.demo-urban-row:last-child,
.demo-origin-row:last-child,
.demo-ed-row:last-child,
.demo-hh-row:last-child { border-bottom: none; }

.demo-region-name, .demo-sector-name, .demo-urban-label,
.demo-origin-label, .demo-ed-label, .demo-hh-label { font-size: 12px; color: var(--text); }

.demo-region-bar-wrap { background: var(--surface-2); height: 6px; border-radius: 3px; overflow: hidden; }
.demo-region-bar  { height: 100%; background: var(--accent);  border-radius: 3px; }
.demo-urban-bar   { height: 100%; background: #4a8fc0;        border-radius: 3px; }
.demo-origin-bar  { height: 100%; background: #1a9e75;        border-radius: 3px; }
.demo-sector-bar  { height: 100%; background: #d07030;        border-radius: 3px; }
.demo-ed-bar      { height: 100%; background: var(--accent);  border-radius: 3px; }
.demo-hh-bar      { height: 100%; background: #7a5fc0;        border-radius: 3px; }

.demo-region-num, .demo-sector-num, .demo-urban-num,
.demo-origin-num, .demo-ed-pct, .demo-hh-num { font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.demo-region-density { font-size: 10px; color: var(--text-3); text-align: right; }
.demo-region-growth  { font-size: 11px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.demo-country-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.demo-country-row:last-child { border-bottom: none; }
.demo-country-rank { color: var(--text-3); font-size: 11px; min-width: 16px; }
.demo-country-count { margin-left: auto; color: var(--text-2); font-variant-numeric: tabular-nums; }

.demo-emp-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }

.demo-fiscal-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.demo-fiscal-box h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); margin-bottom: 4px; }
.demo-fiscal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.demo-fiscal-item { background: var(--surface-2); border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--border); }
.demo-fiscal-item strong { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 700; }
.demo-fiscal-val { font-size: 16px; font-weight: 700; color: var(--text); margin: 4px 0; font-variant-numeric: tabular-nums; }
.demo-fiscal-sub { font-size: 11px; color: var(--text-3); }

.demo-source-note { font-size: 11px; color: var(--text-3); text-align: center; padding: 12px; border-top: 1px solid var(--border); margin-top: 8px; }
.demo-source-note a { color: var(--accent); text-decoration: none; }

/* FAM122N — Adults by household type */
.fam-legend { display: flex; gap: 14px; font-size: 11px; color: var(--text-3); margin: 8px 0 16px; flex-wrap: wrap; }
.fam-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.fam-dot-main   { background: var(--accent); }
.fam-dot-men    { background: #5B9BD5; }
.fam-dot-women  { background: #D46E82; }

.fam-grid { display: flex; flex-direction: column; gap: 14px; }

.fam-row { padding: 14px; border-radius: 8px; background: var(--surface-1); border: 1px solid var(--border); }
[data-theme="dark"] .fam-row { background: #182030; }

.fam-row-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.fam-row-name   { font-size: 13px; font-weight: 700; color: var(--text); }
.fam-row-count  { font-size: 12px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fam-row-desc   { font-size: 11px; color: var(--text-3); margin-bottom: 8px; }

.fam-bar-wrap { height: 8px; background: var(--surface-2); border-radius: 4px; margin-bottom: 8px; overflow: hidden; }
.fam-bar      { height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s ease; }

.fam-row-detail { display: flex; flex-direction: column; gap: 5px; }

.fam-gender { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text-3); }
.fam-men    { display: inline-block; height: 5px; background: #5B9BD5; border-radius: 2px; }
.fam-women  { display: inline-block; height: 5px; background: #D46E82; border-radius: 2px; }
.fam-gender-label { font-size: 10px; color: var(--text-3); white-space: nowrap; }

.fam-age-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.fam-age-pill  {
  font-size: 10px; color: var(--text-3);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 6px;
}

.fam-highlights {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.fam-highlight-item { text-align: center; }
.fam-hl-num   { font-size: 22px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.fam-hl-label { font-size: 11px; color: var(--text-3); line-height: 1.3; margin-top: 2px; }

@media (max-width: 768px) {
  .fam-highlights { grid-template-columns: repeat(2, 1fr); }
  .fam-gender { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MIT PARTI (Party builder)
═══════════════════════════════════════════════════════════════════════════ */

.party-hero {
  background: var(--text);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.party-hero-text h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--bg);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.party-hero-text p { font-size: 13px; color: rgba(255,255,255,0.6); max-width: 480px; line-height: 1.5; }

.party-stats { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }

.party-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-width: 90px;
  text-align: center;
}

.party-stat-num { font-size: 20px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.party-stat-num.impact-pos { color: #f87171; }
.party-stat-num.impact-neg { color: #4ade80; }
.party-stat-num.party-stat-time { font-size: 14px; }
.party-stat-label { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 3px; }

.party-platform-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 11px 16px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 22px;
}

.party-platform-banner strong { color: var(--text); }

.party-category { margin-bottom: 26px; }

.party-category-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.party-proposals { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }

.proposal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 17px;
  transition: border-color 0.15s;
}

.proposal-card.proposal-adopted { border-color: rgba(10,96,69,0.35); background: rgba(10,96,69,0.03); }
.proposal-card.proposal-rejected { border-color: rgba(158,32,32,0.25); background: rgba(158,32,32,0.02); }

.proposal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 7px; }
.proposal-title { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; }
.proposal-badge { font-size: 10px; padding: 3px 8px; border-radius: var(--radius); font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.3px; }
.proposal-badge.badge-ja  { background: rgba(10,96,69,0.1);  color: var(--neg); }
.proposal-badge.badge-nej { background: rgba(158,32,32,0.1); color: var(--pos); }
.proposal-desc   { font-size: 12px; color: var(--text-2); line-height: 1.5; margin-bottom: 8px; }
.proposal-impact { font-size: 11px; font-weight: 600; margin-bottom: 12px; font-variant-numeric: tabular-nums; }

.vote-bar-wrap { margin-bottom: 10px; }
.vote-bar-track { height: 6px; background: rgba(158,32,32,0.1); border-radius: 3px; overflow: hidden; margin-bottom: 5px; }
.vote-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.vote-bar-fill.vote-bar-ja { background: var(--neg); }
.vote-bar-labels { display: flex; justify-content: space-between; font-size: 11px; font-variant-numeric: tabular-nums; }
.vote-bar-label-ja    { color: var(--neg); font-weight: 600; }
.vote-bar-label-count { color: var(--text-3); }
.vote-bar-label-nej   { color: var(--pos); font-weight: 600; }

.vote-buttons { display: flex; gap: 6px; }
.vote-btn {
  flex: 1;
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.12s;
  font-weight: 600;
}
.vote-btn-ja:hover  { background: rgba(10,96,69,0.1);  border-color: var(--neg); color: var(--neg); }
.vote-btn-nej:hover { background: rgba(158,32,32,0.1); border-color: var(--pos); color: var(--pos); }

.voted-indicator { font-size: 12px; color: var(--text-3); padding: 6px 0; text-align: center; }
.party-disclaimer { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 24px; padding: 12px; border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════════════════════
   ONBOARDING
═══════════════════════════════════════════════════════════════════════════ */

/* Overview welcome card */
.overview-welcome {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  margin-bottom: 16px;
}

.ov-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-3);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.ov-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 700px) { .ov-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .ov-features { grid-template-columns: 1fr; } }

.ov-feature {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: border-color 0.12s, background 0.12s;
}

.ov-feature:hover { border-color: var(--accent); background: var(--surface-3); }

.ov-icon { font-size: 20px; margin-bottom: 2px; }
.ov-feature strong { font-size: 13px; font-weight: 700; color: var(--text); display: block; }
.ov-feature span { font-size: 12px; color: var(--text-2); line-height: 1.45; }

/* Misc panel utilities */
.panel-loading { padding: 40px 0; text-align: center; color: var(--text-3); font-size: 14px; }
.data-note { font-size: 11px; color: var(--text-3); margin-top: 10px; line-height: 1.5; }
.section-header { margin-bottom: 24px; }
.section-header h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 8px; line-height: 1.2; }
.section-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.text-muted { color: var(--text-3); font-size: 14px; padding: 20px 0; }

.step-num {
  width: 24px;
  height: 24px;
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAKRO dynamic effects
═══════════════════════════════════════════════════════════════════════════ */

.makro-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 11px 15px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.makro-banner-icon { font-size: 18px; flex-shrink: 0; }
.makro-banner a { color: var(--accent); text-decoration: underline; }

.makro-impact {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 12px;
  border: 1px solid var(--border);
}

.makro-header { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--accent); margin-bottom: 8px; }

.makro-rows { display: flex; flex-direction: column; gap: 0; margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.makro-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--border); color: var(--text-2); background: var(--surface); font-size: 12px; }
.makro-row:last-child { border-bottom: none; }
.makro-num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }
.makro-positive .makro-num { color: var(--neg); }
.makro-negative .makro-num { color: var(--pos); }
.makro-net { background: var(--surface-2) !important; font-weight: 600; }
.makro-net .makro-num { font-size: 13px; }
.makro-note { font-size: 11px; color: var(--text-2); line-height: 1.5; margin-bottom: 5px; }
.makro-source { font-size: 10px; color: var(--text-3); line-height: 1.4; }
.makro-source a { color: var(--accent); text-decoration: none; }
.makro-source a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   SMILE distribution badges
═══════════════════════════════════════════════════════════════════════════ */

.smile-badge { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: var(--radius); font-size: 11px; margin-top: 8px; line-height: 1.45; border: 1px solid transparent; }
.smile-progressive { background: rgba(10,96,69,0.06);   border-color: rgba(10,96,69,0.18); }
.smile-regressive  { background: rgba(158,32,32,0.06);  border-color: rgba(158,32,32,0.18); }
.smile-neutral     { background: var(--surface-2);       border-color: var(--border); }
.smile-icon        { font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.smile-progressive .smile-icon { color: var(--neg); }
.smile-regressive  .smile-icon { color: var(--pos); }
.smile-neutral     .smile-icon { color: var(--text-3); }
.smile-note { color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════════════════════
   DREAM holdbarhed
═══════════════════════════════════════════════════════════════════════════ */

.holdbarhed-box { margin-top: 18px; border-radius: var(--radius); border: 1px solid var(--border); padding: 15px 17px; background: var(--surface-2); }
.hold-ok   { border-color: rgba(10,96,69,0.3);   background: rgba(10,96,69,0.04);  }
.hold-warn { border-color: rgba(160,88,16,0.3);  background: rgba(160,88,16,0.04); }
.hold-fail { border-color: rgba(158,32,32,0.3);  background: rgba(158,32,32,0.04); }
.holdbarhed-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.holdbarhed-icon { font-size: 20px; line-height: 1; }
.hold-ok   .holdbarhed-icon { color: var(--neg);  }
.hold-warn .holdbarhed-icon { color: var(--warn); }
.hold-fail .holdbarhed-icon { color: var(--pos);  }
.holdbarhed-desc { font-size: 12px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.holdbarhed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.holdbarhed-item { background: var(--surface); border-radius: var(--radius); padding: 9px 12px; border: 1px solid var(--border); font-size: 11px; }
.holdbarhed-item span { display: block; color: var(--text-3); margin-bottom: 2px; text-transform: uppercase; font-size: 9px; letter-spacing: 0.5px; font-weight: 700; }
.holdbarhed-item strong { font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 700; }
.holdbarhed-source { font-size: 10px; color: var(--text-3); line-height: 1.4; }
.holdbarhed-source a { color: var(--accent); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   MIT PARTI (Platform builder)
═══════════════════════════════════════════════════════════════════════════ */

.platform-header-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px 26px;
  margin-bottom: 18px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
  border-top: 3px solid var(--accent);
}

.platform-header-left { flex: 1; min-width: 240px; }
.platform-header-right { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 220px; }

.platform-party-identity { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.platform-party-name {
  font-size: 19px;
  font-weight: 700;
  border: none;
  border-left: 3px solid var(--accent);
  background: transparent;
  color: var(--text);
  padding: 4px 10px;
  border-radius: 0;
  outline: none;
  font-family: var(--font);
  flex: 1;
  transition: background 0.12s;
  letter-spacing: -0.3px;
}

.platform-party-name:focus { background: var(--surface-2); }

.platform-party-colorpicker input[type="color"] { width: 32px; height: 32px; border: none; border-radius: var(--radius); cursor: pointer; padding: 0; overflow: hidden; background: none; }

.platform-header-sub { font-size: 13px; color: var(--text-2); line-height: 1.5; margin-bottom: 14px; }

.platform-progress-row { display: flex; align-items: center; gap: 10px; }
.platform-progress-bar-wrap { flex: 1; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.platform-progress-bar { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.4s ease; }
.platform-progress-label { font-size: 11px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

.platform-compass-mini { width: 240px; height: 240px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }

.platform-score-labels { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.platform-score-label { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius); letter-spacing: 0.3px; text-transform: uppercase; }
.label-left   { background: rgba(178,34,34,0.1); color: #b22222; }
.label-right  { background: rgba(0,63,135,0.1);  color: #003f87; }
.label-free   { background: rgba(0,150,80,0.1);  color: #008040; }
.label-auth   { background: rgba(80,80,180,0.1); color: #3030a0; }
.label-center { background: var(--surface-2);    color: var(--text-3); }

[data-theme="dark"] .label-left  { color: #f09090; }
[data-theme="dark"] .label-right { color: #90b8f0; }
[data-theme="dark"] .label-free  { color: #57c4a0; }
[data-theme="dark"] .label-auth  { color: #a090f0; }

.platform-areas { display: flex; flex-direction: column; gap: 10px; }

.platform-area { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.platform-area-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.platform-area-icon  { font-size: 16px; }
.platform-area-title { font-size: 13px; font-weight: 700; color: var(--text); flex: 1; }

.platform-area-progress {
  font-size: 10px;
  color: var(--text-3);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.platform-positions { padding: 4px 0; }

.platform-pos {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.platform-pos:last-child { border-bottom: none; }
.platform-pos:hover { background: var(--surface-2); }
.platform-pos--ja  { background: rgba(10,96,69,0.03); }
.platform-pos--nej { background: rgba(158,32,32,0.03); }
.platform-pos--ja:hover  { background: rgba(10,96,69,0.06); }
.platform-pos--nej:hover { background: rgba(158,32,32,0.06); }

.platform-pos-text    { flex: 1; min-width: 0; }
.platform-pos-title   { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; line-height: 1.4; }
.platform-pos-desc    { font-size: 12px; color: var(--text-2); line-height: 1.45; }
.platform-pos-btns    { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }

.stance-btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}

.stance-ja:hover, .stance-ja.active  { background: rgba(10,96,69,0.12);  border-color: var(--neg); color: var(--neg); }
.stance-ja.active                    { background: rgba(10,96,69,0.18); }
.stance-nej:hover, .stance-nej.active{ background: rgba(158,32,32,0.12); border-color: var(--pos); color: var(--pos); }
.stance-nej.active                   { background: rgba(158,32,32,0.18); }

.stance-clear {
  font-size: 12px;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius);
  transition: all 0.1s;
  line-height: 1;
}
.stance-clear:hover { color: var(--text); background: var(--surface-2); }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 760px) {
  .app { padding: 0 16px 60px; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(2n) { border-right: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .policy-row { grid-template-columns: 1fr; }
  .policy-impact { text-align: left; }
  .site-header h1 { font-size: 20px; }
  .stat-num { font-size: 19px; }
  .party-hero { flex-direction: column; padding: 20px; }
  .party-stats { gap: 8px; }
  .party-proposals { grid-template-columns: 1fr; }
  .demo-hero { grid-template-columns: repeat(3, 1fr); }
  .demo-vitals-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-dep-grid { grid-template-columns: 1fr; }
  .demo-fiscal-grid { grid-template-columns: 1fr; }
  .demo-emp-summary { grid-template-columns: repeat(2, 1fr); }
  .demo-region-row { grid-template-columns: 1fr 1fr; }
  .demo-region-density, .demo-region-growth { display: none; }
  .platform-header-card { flex-direction: column; padding: 16px; }
  .platform-compass-mini { width: 100%; height: 220px; }
  .platform-pos { flex-direction: column; align-items: flex-start; gap: 8px; }
  .platform-pos-btns { width: 100%; }
  .stance-btn { flex: 1; text-align: center; }
  .onboarding-steps { grid-template-columns: 1fr; }
  .holdbarhed-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PARLIAMENT HEMICYCLE
═══════════════════════════════════════════════════════════════════════════ */

.hemicycle-wrap { text-align: center; margin: 16px 0; }
.hemicycle-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: center; }
.hemicycle-leg-item { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.hemicycle-leg-dot { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   GOVERNMENT
═══════════════════════════════════════════════════════════════════════════ */

.coalition-bar { display: flex; height: 18px; border-radius: var(--radius); overflow: hidden; margin: 10px 0; }
.coalition-seg { height: 100%; transition: width 0.3s; }
.minister-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; margin-top: 10px; }
.minister-card { background: var(--surface-2); border-radius: var(--radius); padding: 10px 12px; border: 1px solid var(--border); border-left: 3px solid var(--border-strong); }
.minister-name { font-weight: 700; font-size: 12px; }
.minister-title { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.minister-ministry { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.agreement-points { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.agreement-point { display: flex; gap: 10px; background: var(--surface-2); padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--border); }
.agreement-icon { font-size: 16px; flex-shrink: 0; }
.agreement-text strong { font-size: 13px; font-weight: 700; }
.agreement-text p { font-size: 12px; color: var(--text-2); margin: 2px 0 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   PARTY COMPARISON
═══════════════════════════════════════════════════════════════════════════ */

.party-match-list { display: flex; flex-direction: column; gap: 8px; }
.party-match-card { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--border-strong); }
.party-match-card.top-match { border-left-color: var(--accent); background: rgba(200,16,46,0.02); }
.party-match-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.party-abbr-badge { width: 28px; height: 28px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; color: #fff; flex-shrink: 0; }
.party-match-name { font-weight: 700; font-size: 13px; }
.party-match-leader { font-size: 11px; color: var(--text-3); }
.match-bar-wrap { display: flex; align-items: center; gap: 8px; }
.match-bar-track { flex: 1; height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.match-bar-fill { height: 100%; border-radius: 2px; background: var(--accent); }
.match-pct { font-size: 12px; font-weight: 700; min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.issue-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.issue-pill { font-size: 10px; padding: 2px 7px; border-radius: var(--radius); background: var(--surface-3); color: var(--text-3); font-weight: 600; }
.issue-pill.left  { background: rgba(200,16,46,0.1);  color: #900018; }
.issue-pill.right { background: rgba(0,63,135,0.1);   color: #003f87; }
.issue-pill.green { background: rgba(10,158,80,0.1);  color: #007840; }

/* ═══════════════════════════════════════════════════════════════════════════
   CIVIC GUIDE
═══════════════════════════════════════════════════════════════════════════ */

.civic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 12px; }
.civic-card { background: var(--surface-2); border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--border); }
.civic-icon { font-size: 22px; margin-bottom: 7px; }
.civic-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.civic-text { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.civic-link { display: inline-block; margin-top: 7px; font-size: 12px; color: var(--accent); text-decoration: none; font-weight: 600; }
.civic-link:hover { text-decoration: underline; }

.election-banner {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 14px;
}

.election-banner h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.election-banner p  { margin: 0; font-size: 13px; opacity: 0.7; }

.steps-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 7px; }
.steps-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }

.step-num-sm {
  background: var(--accent);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TAX CALCULATOR
═══════════════════════════════════════════════════════════════════════════ */

/* ── Tax calculator 2026 ───────────────────────────────────── */
.tax-calc-wrap { margin-top: 14px; }

/* Input grid */
.tax-inputs-grid { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; padding: 16px; background: var(--surface-2); border-radius: var(--radius); border: 1px solid var(--border); }
.tax-input-group { display: flex; flex-direction: column; gap: 6px; }
.tax-input-label { font-size: 12px; font-weight: 700; color: var(--text-2); }
.tax-slider-row { display: flex; align-items: center; gap: 12px; }
.tax-slider-row input[type=range] { flex: 1; }
.tax-salary-val { font-size: 18px; font-weight: 800; color: var(--accent); min-width: 120px; font-variant-numeric: tabular-nums; }
.tax-input-row-extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .tax-input-row-extra { grid-template-columns: 1fr; } }
.tax-extra-field { display: flex; flex-direction: column; gap: 5px; }
.tax-num-input { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font-family: var(--font); font-size: 13px; width: 100%; }
.tax-num-input:focus { outline: none; border-color: var(--accent); }
.tax-check-field { justify-content: flex-end; }
.tax-toggle { display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.tax-toggle input { accent-color: var(--accent); }

/* Summary hero */
.tax-summary-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 600px) { .tax-summary-hero { grid-template-columns: repeat(2, 1fr); } }
.tax-hero-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; text-align: center; }
.tax-hero-item.tax-hero-warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--surface-2)); }
.tax-hero-val { font-size: 20px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tax-hero-unit { font-size: 12px; font-weight: 500; margin-left: 2px; }
.tax-hero-label { font-size: 10px; color: var(--text-3); margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; line-height: 1.3; }

/* Deduction summary */
.tax-deduct-summary { font-size: 12px; color: var(--text-2); margin-bottom: 14px; padding: 8px 12px; background: var(--surface-2); border-radius: var(--radius); border-left: 3px solid var(--accent); }

/* Tax breakdown bars */
.tax-breakdown { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.tax-row { display: flex; align-items: center; gap: 10px; }
.tax-name { font-size: 12px; flex: 1; color: var(--text-2); min-width: 150px; }
.tax-bar-track { flex: 1; height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.tax-bar-fill { height: 100%; background: var(--pos); border-radius: 3px; transition: width 0.3s; }
.tax-bar-fill.tax-bar-credit { background: var(--neg); }
.tax-amount { font-size: 12px; font-weight: 700; min-width: 90px; text-align: right; font-variant-numeric: tabular-nums; }
.tax-credit { color: var(--neg); }

/* Marginal note */
.tax-marginal-note { font-size: 12px; color: var(--text-2); background: var(--surface-2); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 14px; border-left: 3px solid var(--border-strong); }
.tax-marginal-note.tax-marginal-top { border-left-color: var(--warn); }

/* Where taxes go */
.tax-where-heading { font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.5px; margin: 16px 0 8px; }
.tax-where-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.tax-where-item { background: var(--surface-2); border-radius: var(--radius); padding: 8px; text-align: center; border: 1px solid var(--border); }
.tax-where-icon { font-size: 16px; margin-bottom: 2px; }
.tax-where-num { font-size: 14px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.tax-where-label { font-size: 10px; color: var(--text-3); margin-top: 2px; line-height: 1.3; }
.tax-where-amt { font-size: 10px; color: var(--text-2); font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* International comparison */
.tax-intl { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.tax-intl-row { display: grid; grid-template-columns: 80px 1fr 44px; gap: 8px; align-items: center; }
.tax-intl-country { font-size: 12px; color: var(--text-2); }
.tax-intl-track { height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.tax-intl-fill { height: 100%; background: var(--accent); border-radius: 3px; opacity: 0.5; transition: width 0.4s; }
.tax-intl-user .tax-intl-fill { opacity: 1; background: var(--accent); }
.tax-intl-user .tax-intl-country { font-weight: 700; color: var(--text); }
.tax-intl-pct { font-size: 12px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════════════════════
   LIVE ECONOMIC GRID
═══════════════════════════════════════════════════════════════════════════ */

.eco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 8px; margin-top: 12px; }

.eco-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
}

.eco-card:nth-child(1) { border-top-color: var(--accent); }
.eco-card:nth-child(2) { border-top-color: #4a8fc0; }
.eco-card:nth-child(3) { border-top-color: #1a9e75; }
.eco-card:nth-child(4) { border-top-color: #d07030; }

.eco-icon  { font-size: 18px; margin-bottom: 6px; }
.eco-value { font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.eco-value.eco-red    { color: var(--pos); }
.eco-value.eco-yellow { color: var(--warn); }
.eco-value.eco-green  { color: var(--neg); }
.eco-label { font-size: 11px; font-weight: 700; margin-top: 4px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.4px; }
.eco-sub   { font-size: 10px; color: var(--text-3); margin-top: 3px; }
.eco-gini-note { font-size: 12px; color: var(--text-2); margin-top: 12px; padding: 10px 14px; background: var(--surface-2); border-radius: var(--radius); border-left: 3px solid var(--accent); border: 1px solid var(--border); border-left-width: 3px; }

/* ═══════════════════════════════════════════════════════════════════════════
   CLIMATE STATUS
═══════════════════════════════════════════════════════════════════════════ */

.climate-status-box { display: flex; gap: 0; margin: 12px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.climate-col { flex: 1; padding: 12px 10px; text-align: center; background: var(--surface-2); }
.climate-col + .climate-col { border-left: 1px solid var(--border); }
.climate-col--current { background: color-mix(in srgb, #f59e0b 6%, var(--surface-2)); }
.climate-col--target  { background: color-mix(in srgb, #22c55e 6%, var(--surface-2)); }
.climate-year { font-size: 10px; color: var(--text-3); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.climate-mt   { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.climate-lbl  { font-size: 11px; color: var(--text-2); margin-top: 3px; }
.climate-progress-wrap { margin-top: 12px; }
.climate-progress-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-bottom: 4px; font-weight: 600; }
.climate-progress-track { height: 10px; background: var(--surface-3); border-radius: 5px; overflow: hidden; }
.climate-progress-done  { height: 100%; background: linear-gradient(90deg, #22c55e, #f59e0b); border-radius: 5px; }
.climate-gap-note { font-size: 12px; color: var(--text-2); margin-top: 8px; padding: 8px 12px; background: rgba(245,158,11,0.06); border-radius: var(--radius); border-left: 3px solid #f59e0b; }

/* ═══════════════════════════════════════════════════════════════════════════
   ACTIVE BILLS
═══════════════════════════════════════════════════════════════════════════ */

.bills-list  { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; margin-bottom: 18px; }

.bill-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 9px 12px;
  border: 1px solid var(--border);
}

.bill-status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--text-3); }
.bill-status-dot.status-active { background: #f59e0b; }
.bill-status-dot.status-new    { background: var(--accent); }
.bill-body { flex: 1; min-width: 0; }
.bill-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bill-meta  { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.bill-link  { font-size: 13px; color: var(--accent); text-decoration: none; flex-shrink: 0; padding: 2px 6px; font-weight: 700; }
.bill-link:hover { opacity: 0.7; }

/* ═══════════════════════════════════════════════════════════════════════════
   BORGERFORSLAG monitor
═══════════════════════════════════════════════════════════════════════════ */

.bf-list { display: flex; flex-direction: column; gap: 6px; }

.bf-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
}

.bf-card.bf-urgent {
  border-left: 3px solid #f59e0b;
  background: color-mix(in srgb, #f59e0b 4%, var(--surface-2));
}

.bf-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 7px;
}

.bf-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}

.bf-sigs {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.bf-sigs span { font-weight: 400; color: var(--text-3); font-size: 11px; }

.bf-bar-track {
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.bf-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.bf-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.bf-pct    { color: var(--text-3); font-weight: 600; }

.bf-days   { color: var(--text-3); }
.bf-days--urgent { color: #b45309; font-weight: 600; }

.bf-link {
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 12px;
}

.bf-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   GOVERNMENT FORMATION tracker
═══════════════════════════════════════════════════════════════════════════ */

.formation-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 14px;
}

.formation-banner h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); margin-bottom: 8px; }
.formation-title { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; color: var(--text); margin-bottom: 4px; }
.formation-sub   { font-size: 13px; color: var(--text-2); line-height: 1.5; }

.formation-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.formation-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.formation-step:last-child { border-bottom: none; }
.formation-step.step-done    { background: var(--surface-2); }
.formation-step.step-active  { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }

.formation-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  background: var(--border-strong);
}

.step-done   .formation-step-dot { background: var(--neg); }
.step-active .formation-step-dot { background: var(--accent); animation: pulse 2s ease-in-out infinite; }

.formation-step-text { flex: 1; }
.formation-step-label { font-weight: 600; color: var(--text); }
.formation-step-date  { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.formation-parties {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.formation-party-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   EU comparison grid
═══════════════════════════════════════════════════════════════════════════ */

.eu-comp-grid { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.eu-comp-row  { display: grid; grid-template-columns: 1fr 52px 80px 120px; gap: 8px; align-items: center; font-size: 12px; }
.eu-comp-label { color: var(--text-2); }
.eu-comp-dk   { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.eu-comp-eu   { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.eu-comp-bar  { height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.eu-comp-fill { height: 100%; background: var(--accent); border-radius: 2px; }

/* ═══════════════════════════════════════════════════════════════════════════
   Poll chart
═══════════════════════════════════════════════════════════════════════════ */

.poll-list { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.poll-row  { display: grid; grid-template-columns: 28px 1fr 40px; gap: 8px; align-items: center; }
.poll-abbr { font-size: 11px; font-weight: 800; text-align: center; }
.poll-bar-wrap { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; position: relative; }
.poll-bar-fill { height: 100%; border-radius: 3px; }
.poll-pct  { font-size: 12px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ── Onboarding overlay ────────────────────────────── */
.onboarding-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.72);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.onboarding-overlay.show { opacity: 1; pointer-events: auto; }
.onboarding-overlay .onboarding-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 36px;
  max-width: 500px; width: calc(100% - 32px); position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  max-height: 90dvh; overflow-y: auto;
}
.onboarding-skip {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-3); font-size: 13px;
  cursor: pointer; padding: 4px 8px;
}
.onboarding-skip:hover { color: var(--text); }
.onboarding-logo { font-size: 40px; margin-bottom: 12px; }
.onboarding-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.onboarding-sub { color: var(--text-2); font-size: 14px; margin-bottom: 24px; line-height: 1.5; }
.onboarding-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.ob-feature { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--text-2); }
.ob-feature span:first-child { font-size: 18px; flex-shrink: 0; }
.onboarding-next { width: 100%; justify-content: center; }
/* News-driven onboarding */
.ob-section-lbl { font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .07em; margin: 20px 0 10px; }
.ob-news-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.ob-news-item {
  display: flex; flex-direction: column; gap: 5px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 15px; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  width: 100%;
}
.ob-news-item:hover { border-color: var(--accent); background: var(--surface-3); transform: translateX(2px); }
.ob-news-meta { display: flex; align-items: center; gap: 8px; }
.ob-news-src {
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px; background: var(--accent); color: #fff;
}
.ob-src-tv2 { background: #e4282e; }
.ob-src-dr  { background: #003d7a; }
.ob-news-age { font-size: 11px; color: var(--text-2); }
.ob-news-headline { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); }
.ob-news-cta { font-size: 11px; color: var(--accent); font-weight: 600; }
.ob-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 4px; color: var(--text-2); font-size: 12px;
}
.ob-divider::before, .ob-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
/* Skeleton loading state */
.ob-news-skeleton {
  height: 72px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: ob-shimmer 1.4s infinite;
}
@keyframes ob-shimmer { to { background-position: -200% 0; } }
.onboarding-choices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.ob-choice {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; cursor: pointer;
  text-align: left; transition: border-color 0.15s, background 0.15s;
}
.ob-choice:hover { border-color: var(--accent); background: var(--surface-3); }
.ob-choice-icon { font-size: 22px; flex-shrink: 0; }
.ob-choice-text { display: flex; flex-direction: column; gap: 3px; }
.ob-choice-text strong { font-size: 14px; font-weight: 700; }
.ob-choice-text span { font-size: 12px; color: var(--text-2); line-height: 1.4; }

/* ── Mandatberegner ────────────────────────────────── */
.mandater-sliders { display: flex; flex-direction: column; gap: 6px; }
.mandater-row { display: grid; grid-template-columns: 10px 26px 1fr 44px 28px; gap: 8px; align-items: center; }
.mandater-party-dot { width: 10px; height: 10px; border-radius: 50%; }
.mandater-party-abbr { font-size: 11px; font-weight: 700; color: var(--text-2); }
.mandater-pct { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text-2); text-align: right; }
.mandater-seats { font-size: 13px; text-align: right; min-width: 22px; }
.coal-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.coal-chip {
  border: 1.5px solid var(--border); border-radius: 20px;
  padding: 4px 10px; font-size: 12px; font-weight: 700; cursor: pointer;
  background: var(--surface-2); transition: all 0.12s;
}
.coal-chip span { font-weight: 400; margin-left: 3px; }
.coal-chip.active { color: #fff; }
.coal-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 10px; }
.coal-bar-seg { height: 100%; }

/* ── Valgkort ──────────────────────────────────────── */
.valgkort-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; align-items: start; }
@media (max-width: 640px) { .valgkort-layout { grid-template-columns: 1fr; } }
.valgkort-svg-wrap { max-width: 320px; }
.valgkort-svg { width: 100%; height: auto; }
.vk-region { transition: fill-opacity 0.15s; }
.vk-region.active { filter: drop-shadow(0 0 4px rgba(0,0,0,0.3)); }
.valgkort-detail { min-height: 120px; }
.vk-bars { display: flex; flex-direction: column; gap: 5px; }
.vk-bar-row { display: grid; grid-template-columns: 20px 1fr 38px; gap: 8px; align-items: center; }
.vk-bar-abbr { font-size: 11px; font-weight: 800; }
.vk-bar-wrap { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.vk-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.vk-bar-pct { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text-2); text-align: right; }
.valgkort-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.vk-leg-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2); }
.vk-leg-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ── Historisk ─────────────────────────────────────── */
.hist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 640px) { .hist-grid { grid-template-columns: 1fr; } }
.hist-chart-block { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.hist-chart-label { font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 8px; }
.hist-canvas { width: 100%; height: 90px; display: block; }
.hist-chart-note { font-size: 10px; color: var(--text-3); margin-top: 5px; }
.hist-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 640px) { .hist-highlights { grid-template-columns: 1fr; } }
.hist-hl-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; }
.hist-hl-num { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.hist-hl-label { font-size: 11px; color: var(--text-2); margin-top: 4px; line-height: 1.4; }

/* ── Afstemningsaffinnitet ─────────────────────────── */
.aff-grid { display: grid; gap: 2px; margin-top: 8px; }
.aff-cell { padding: 4px 3px; text-align: center; font-size: 11px; font-weight: 600; border-radius: 2px; min-width: 0; }
.aff-header { font-weight: 800; font-size: 11px; }

/* ── Energi panel ──────────────────────────────────── */
.e-hero-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 760px) { .e-hero-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .e-hero-grid { grid-template-columns: 1fr 1fr; } }
.e-hero-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 14px; text-align: center; }
.e-hero-card.accent-card { background: var(--accent); color: #fff; border-color: transparent; }
.e-hero-card.accent-card .e-hero-label,
.e-hero-card.accent-card .e-hero-sub { color: rgba(255,255,255,0.85); }
.e-hero-num { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.e-hero-label { font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 4px; }
.e-hero-sub { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.e-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.e-bar-row { display: grid; grid-template-columns: 140px 1fr 90px; gap: 10px; align-items: center; }
@media (max-width: 540px) { .e-bar-row { grid-template-columns: 100px 1fr 60px; gap: 6px; } }
.e-bar-label { font-size: 13px; color: var(--text-2); }
.e-bar-track { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.e-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s; }
.e-bar-val { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }

.spot-chart { display: flex; align-items: flex-end; gap: 2px; height: 80px; margin-top: 8px; }
.spot-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; }
.spot-bar { width: 100%; border-radius: 2px 2px 0 0; min-height: 4px; transition: height 0.3s; }
.spot-label { font-size: 9px; color: var(--text-3); }

.e-targets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 640px) { .e-targets-grid { grid-template-columns: 1fr; } }
.e-target { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.e-target-num { font-size: 28px; font-weight: 800; color: var(--accent); }
.e-target-label { font-size: 12px; font-weight: 700; color: var(--text); margin: 4px 0 8px; }
.e-target-prog { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.e-target-bar { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.5s; }
.e-target-sub { font-size: 11px; color: var(--text-2); }

/* ── Kommuner panel ────────────────────────────────── */
.komm-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.komm-search { flex: 1; min-width: 160px; max-width: 280px; padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--text); font-size: 13px; }
.komm-search:focus { outline: none; border-color: var(--accent); }
.komm-sort-hint { font-size: 11px; color: var(--text-3); }
.table-wrap { overflow-x: auto; }
.komm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.komm-table th { padding: 8px 10px; text-align: left; font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 2px solid var(--border); white-space: nowrap; cursor: default; }
.komm-table th.sortable { cursor: pointer; }
.komm-table th.sortable:hover { color: var(--accent); }
.komm-table th.sort-active { color: var(--accent); }
.komm-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.komm-table tr:last-child td { border-bottom: none; }
.komm-table tr:hover td { background: var(--surface-2); }
.region-tag { display: inline-block; padding: 2px 7px; border-radius: 10px; font-size: 10px; font-weight: 700; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.skat-cell, .pop-cell { display: flex; align-items: center; gap: 8px; }
.skat-bar, .pop-bar { height: 6px; border-radius: 3px; min-width: 4px; flex-shrink: 0; }
.skat-bar { background: var(--accent); }
.pop-bar { background: #22c5d4; }
.komm-region-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

/* ── Sundhed & Forbrug ─────────────────────────────── */
.sundhed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 640px) { .sundhed-grid { grid-template-columns: 1fr; } }
.hist-timeline { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0; }
.hist-point { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hist-point span { font-size: 10px; color: var(--text-3); }
.hist-point strong { font-size: 13px; font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════════════════════
   HVERDAG GROUP — shared helpers
═══════════════════════════════════════════════════════════════════════════ */

.panel-loading {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}

/* ── Rygter panel ──────────────────────────────────── */
.rygte-toolbar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: flex-start; margin-bottom: 16px; }
.rygte-filters { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 200px; }
.rygte-sort-wrap { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.rygte-sort-label { font-size: 12px; color: var(--text-3); }
.rygte-btn {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.rygte-btn:hover { background: var(--surface-3); color: var(--text); }
.rygte-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
[data-theme="dark"] .rygte-btn.active { color: #111; }

.rygte-list { display: flex; flex-direction: column; gap: 14px; }
.rygte-empty { padding: 24px; text-align: center; color: var(--text-3); font-size: 14px; }
.rygte-global-disclaimer { font-size: 11px; color: var(--text-3); margin-top: 16px; font-style: italic; }

.rygte-card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  background: var(--surface);
  transition: box-shadow 0.15s;
}
.rygte-card:hover { box-shadow: var(--shadow); }

.rygte-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.rygte-source-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.source-dr           { background: var(--surface-3); }
.source-tv2          { background: var(--surface-2); font-style: italic; }
.source-jp           { background: rgba(30,60,120,0.12); color: #4a7cc7; border-color: rgba(30,60,120,0.2); }
.source-berlingske   { background: rgba(10,80,40,0.12); color: #2e8b57; border-color: rgba(10,80,40,0.2); }
.source-politiken    { background: rgba(80,40,10,0.12); color: #a0622a; border-color: rgba(80,40,10,0.2); }
.source-weekendavisen{ background: rgba(60,20,80,0.12);  color: #8b5ca0; border-color: rgba(60,20,80,0.2); }
.source-altinget     { background: rgba(10,60,100,0.12); color: #2070b4; border-color: rgba(10,60,100,0.2); }
.source-information  { background: rgba(100,20,20,0.12); color: #b43020; border-color: rgba(100,20,20,0.2); }
.source-børsen       { background: rgba(0,80,40,0.12);   color: #007040; border-color: rgba(0,80,40,0.2); }
[data-theme="dark"] .source-jp            { background: rgba(60,100,200,0.15);  color: #7aaaf0;  border-color: rgba(60,100,200,0.25); }
[data-theme="dark"] .source-berlingske    { background: rgba(20,120,60,0.15);   color: #5dd490;  border-color: rgba(20,120,60,0.25); }
[data-theme="dark"] .source-politiken     { background: rgba(160,80,20,0.15);   color: #f0a060;  border-color: rgba(160,80,20,0.25); }
[data-theme="dark"] .source-weekendavisen { background: rgba(120,60,160,0.15);  color: #c090e0;  border-color: rgba(120,60,160,0.25); }
[data-theme="dark"] .source-altinget      { background: rgba(20,100,180,0.15);  color: #70b4f0;  border-color: rgba(20,100,180,0.25); }
[data-theme="dark"] .source-information   { background: rgba(180,60,40,0.15);   color: #f08070;  border-color: rgba(180,60,40,0.25); }
[data-theme="dark"] .source-børsen        { background: rgba(0,140,70,0.15);    color: #40d090;  border-color: rgba(0,140,70,0.25); }

.rygte-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex: 1;
  min-width: 160px;
  line-height: 1.4;
}
.rygte-title:hover { color: var(--accent); text-decoration: underline; }
.rygte-date { font-size: 11px; color: var(--text-3); flex-shrink: 0; margin-top: 2px; }
.rygte-desc { font-size: 13px; color: var(--text-2); margin: 4px 0 10px; line-height: 1.5; }

.rygte-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rygte-cat-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}
.rygte-confidence {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}
.conf-rygte      { background: var(--warn)22; color: var(--warn); border-color: var(--warn)55; }
.conf-forhandling { background: var(--text-3)22; color: var(--text-2); border-color: var(--border); }
.conf-forslag    { background: var(--accent)22; color: var(--accent); border-color: var(--accent)55; }
.conf-vedtaget   { background: var(--neg)22; color: var(--neg); border-color: var(--neg)55; }


/* DREAM analysis box — always visible, prominent */
.dream-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
}
.dream-box-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dream-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 520px) { .dream-stats { grid-template-columns: 1fr; } }
.dream-stat-label { font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.dream-stat-val { font-size: 13px; font-weight: 600; color: var(--text); }
.dream-na { color: var(--text-3); font-style: italic; font-weight: 400; }

.dream-gdp, .dream-emp { font-size: 14px; font-weight: 700; }
.dream-gdp.pos, .dream-emp.pos { color: var(--neg); }
.dream-gdp.neg, .dream-emp.neg { color: var(--pos); }

.dream-gini { font-size: 13px; font-weight: 600; }
.dream-gini.eq   { color: var(--neg); }
.dream-gini.uneq { color: var(--warn); }

.dream-compass-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dream-compass-label-txt { font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.dream-compass-wrap { flex: 1; min-width: 100px; }
.dream-compass { width: 100%; }
.dream-compass-labels { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-3); margin-bottom: 3px; }
.dream-compass-track { position: relative; height: 8px; background: linear-gradient(to right, var(--neg), var(--surface-3) 50%, var(--pos)); border-radius: 4px; }
.dream-compass-marker { position: absolute; top: -3px; width: 14px; height: 14px; background: var(--text); border-radius: 50%; border: 2px solid var(--surface); transform: translateX(-50%); }

.dream-bar-wrap { display: flex; flex-direction: column; gap: 4px; }
.dream-bar-track { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.dream-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s; min-width: 4px; }
.dream-bar-label { font-size: 11px; font-weight: 600; }

.dream-explanation { font-size: 12px; color: var(--text-2); line-height: 1.6; margin-bottom: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.dream-disclaimer { font-size: 10px; color: var(--text-3); font-style: italic; }

/* ── Rygter scenario section ───────────────────────────────────────────── */
.rygter-scenarios { margin-bottom: 8px; }
.rygter-sc-intro { font-size: 14px; color: var(--text-2); margin: 8px 0 16px; line-height: 1.5; }
.rygter-sc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 10px;
}
@media (max-width: 900px) { .rygter-sc-grid { grid-template-columns: 1fr; } }
.rygter-sc-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rygter-sc-head { display: flex; align-items: center; gap: 10px; }
.rygter-sc-emoji { font-size: 26px; line-height: 1; flex-shrink: 0; }
.rygter-sc-name { font-size: 15px; font-weight: 700; line-height: 1.2; }
.rygter-sc-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.rygter-sc-desc { font-size: 12px; color: var(--text-2); line-height: 1.5; margin: 0; }
.rygter-sc-impacts {
  background: var(--surface-2);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rygter-sc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rygter-sc-rlabel { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.rygter-sc-rval { font-size: 12px; font-weight: 700; text-align: right; }
.rygter-sc-details { font-size: 12px; }
.rygter-sc-details summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 2px 0; list-style: none; }
.rygter-sc-details summary::-webkit-details-marker { display: none; }
.rygter-sc-details summary::before { content: '▸ '; font-size: 10px; }
.rygter-sc-details[open] summary::before { content: '▾ '; }
.rygter-sc-details-body { padding: 8px 0 4px; }
.rygter-sc-details-head { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 8px 0 3px; }
.rygter-sc-list { margin: 0; padding-left: 16px; color: var(--text-2); line-height: 1.7; }
.sc-related { margin-top: 2px; }
.sc-related-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 4px; }
.sc-related-item { display: block; font-size: 11px; color: var(--text-2); text-decoration: none; padding: 3px 0; border-top: 1px solid var(--border); line-height: 1.4; }
.sc-related-item:hover { color: var(--accent); }
.sc-related-src { font-weight: 700; font-size: 10px; text-transform: uppercase; color: var(--text-3); margin-right: 4px; }
.rygter-sc-disclaimer { font-size: 11px; color: var(--text-3); font-style: italic; }

/* ── Bolig panel ───────────────────────────────────── */
.bolig-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.bolig-input-group { display: flex; flex-direction: column; gap: 6px; }
.bolig-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.bolig-value-display { font-size: 13px; font-weight: 700; color: var(--accent); }
.slider-range-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); margin-top: 2px; }
.bolig-city-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  width: 100%;
  max-width: 280px;
  cursor: pointer;
}
.bolig-city-select:focus { outline: none; border-color: var(--accent); }

.bolig-results { margin-bottom: 24px; }
.bolig-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .bolig-results-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .bolig-results-grid { grid-template-columns: 1fr; } }

.bolig-result-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.bolig-result-card.result-ok { border-color: var(--neg); background: var(--neg)11; }
.bolig-result-card.result-warn { border-color: var(--warn); background: var(--warn)11; }
.bolig-result-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
.bolig-result-value { font-size: 20px; font-weight: 800; color: var(--accent); line-height: 1.2; margin-bottom: 4px; }
.bolig-result-sub { font-size: 11px; color: var(--text-2); line-height: 1.4; }

.bolig-comparison { margin-bottom: 20px; }
.bolig-comparison h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.bolig-compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bolig-compare-table th { text-align: left; padding: 8px 10px; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; border-bottom: 2px solid var(--border); }
.bolig-compare-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); }
.bolig-compare-table tr:last-child td { border-bottom: none; }
.bolig-compare-note { font-size: 12px; margin-top: 10px; font-weight: 600; }
.bolig-disclaimer { font-size: 11px; color: var(--text-3); margin-top: 16px; line-height: 1.6; }

/* ── Pension panel ─────────────────────────────────── */
.pension-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.pension-input-group { display: flex; flex-direction: column; gap: 6px; }
.pension-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.pension-value-display { font-size: 13px; font-weight: 700; color: var(--accent); }

.pension-results { margin-bottom: 24px; }
.pension-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 700px) { .pension-results-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .pension-results-grid { grid-template-columns: 1fr; } }

.pension-result-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.pension-result-card.accent-card { border-color: var(--accent); background: var(--accent)11; }
.pension-result-card.result-ok { border-color: var(--neg); background: var(--neg)11; }
.pension-result-card.result-warn { border-color: var(--warn); background: var(--warn)11; }
.pension-result-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
.pension-result-value { font-size: 18px; font-weight: 800; color: var(--accent); line-height: 1.2; margin-bottom: 4px; }
.pension-result-sub { font-size: 11px; color: var(--text-2); line-height: 1.4; }

.pension-extra-years { margin-top: 4px; }
.pension-extra-years h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.pension-extra-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pension-extra-table th { text-align: left; padding: 7px 10px; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; border-bottom: 2px solid var(--border); }
.pension-extra-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); }
.pension-extra-table tr:last-child td { border-bottom: none; }

.pension-timeline { margin: 20px 0; }
.pension-timeline-wrap { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.pension-timeline-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.pension-timeline-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; }
.pension-timeline-done { background: var(--accent); }
.pension-timeline-remaining { background: var(--surface-3); }
.pension-timeline-desc { display: flex; justify-content: space-between; font-size: 11px; margin-top: 6px; }
.pension-disclaimer { font-size: 11px; color: var(--text-3); margin-top: 16px; line-height: 1.6; }

/* ── Ventetider / DSB / Ældrepleje ─────────────────── */

/* ── Meningsmålinger ───────────────────────────────────────────────────── */
.poll-bloc-row { display: flex; align-items: center; gap: 16px; margin: 16px 0 24px; justify-content: center; flex-wrap: wrap; }
.poll-bloc { background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 10px; padding: 16px 24px; text-align: center; min-width: 160px; }
.poll-bloc-label { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.poll-bloc-pct { font-size: 28px; font-weight: 800; color: var(--accent); }
.poll-bloc-seats { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.poll-bloc-note { font-size: 12px; color: var(--neg); font-weight: 600; margin-top: 2px; }
.poll-bloc-vs { font-size: 18px; color: var(--text-3); font-weight: 700; }
.poll-list { display: flex; flex-direction: column; gap: 8px; }
.poll-row { display: grid; grid-template-columns: 32px 1fr 200px 48px 60px 1fr; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; background: var(--surface-2); }
@media (max-width: 700px) { .poll-row { grid-template-columns: 28px 1fr 80px 40px; } .poll-trend-badge, .poll-seats-col { display: none; } }
.poll-below { opacity: 0.5; }
.poll-letter { font-size: 14px; font-weight: 800; text-align: center; }
.poll-name { font-size: 13px; font-weight: 500; }
.poll-bar-wrap { position: relative; }
.poll-bar-track { height: 10px; background: var(--surface-3); border-radius: 5px; overflow: hidden; }
.poll-bar-fill { height: 100%; border-radius: 5px; transition: width 0.5s; }
.poll-pct { font-size: 14px; font-weight: 700; text-align: right; }
.poll-trend-badge { font-size: 11px; font-weight: 600; text-align: center; }
.poll-trend-up { color: var(--neg); }
.poll-trend-down { color: var(--pos); }
.poll-trend-flat { color: var(--text-3); }
.poll-seats-col { font-size: 12px; color: var(--text-2); }
.poll-below-thresh { font-size: 11px; color: var(--text-3); font-style: italic; }
.poll-sparklines { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.poll-sparkline-item { display: flex; flex-direction: column; gap: 4px; }
.poll-spark-label { font-size: 11px; font-weight: 600; }
.poll-month-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); max-width: 120px; margin-bottom: 4px; }

/* ── Ledighed panel ────────────────────────────────────────────────────── */
.led-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.led-hero-stat { background: var(--surface-2); border-radius: 8px; padding: 14px 16px; }
.led-bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 100px; padding: 8px 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.led-bar-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.led-bar-fill { background: var(--accent); border-radius: 2px 2px 0 0; width: 100%; min-height: 4px; transition: height 0.4s; }
.led-bar-month { font-size: 9px; color: var(--text-3); }
.led-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
@media (max-width: 640px) { .led-two-col { grid-template-columns: 1fr; } }
.led-regions, .led-sectors { display: flex; flex-direction: column; gap: 8px; }
.led-region-row { display: grid; grid-template-columns: 1fr 120px 48px; align-items: center; gap: 8px; font-size: 13px; }
.led-region-name { font-size: 12px; color: var(--text-2); }
.led-region-bar-track { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.led-region-bar { height: 100%; background: var(--accent); border-radius: 4px; }
.led-region-pct { font-size: 13px; font-weight: 600; text-align: right; }
.led-sector-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 10px; background: var(--surface-2); border-radius: 6px; }

/* ── El-priser panel ───────────────────────────────────────────────────── */
.elpris-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.elpris-hero-stat { background: var(--surface-2); border-radius: 8px; padding: 14px 16px; }
.elpris-comps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.elpris-comp-row { display: grid; grid-template-columns: 1fr 160px 180px; align-items: center; gap: 10px; font-size: 13px; }
@media (max-width: 640px) { .elpris-comp-row { grid-template-columns: 1fr; } }
.elpris-comp-name { font-size: 13px; color: var(--text-2); }
.elpris-comp-track { height: 10px; background: var(--surface-3); border-radius: 5px; overflow: hidden; }
.elpris-comp-fill { height: 100%; background: var(--accent); border-radius: 5px; }
.elpris-comp-val { font-size: 12px; font-weight: 600; color: var(--text-2); }
.elpris-eu { display: flex; flex-direction: column; gap: 8px; }
.elpris-eu-row { display: grid; grid-template-columns: 100px 1fr 120px; align-items: center; gap: 10px; font-size: 13px; }
.elpris-eu-highlight { font-weight: 700; }
.elpris-eu-country { font-size: 12px; color: var(--text-2); }
.elpris-eu-highlight .elpris-eu-country { color: var(--text); }
.elpris-eu-track { height: 10px; background: var(--surface-3); border-radius: 5px; overflow: hidden; }
.elpris-eu-fill { height: 100%; background: var(--accent); border-radius: 5px; }
.elpris-eu-highlight .elpris-eu-fill { background: var(--warn); }

/* ── Boligmarked panel ────────────────────────────────────────────────── */
.bm-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.bm-hero-stat { background:var(--surface-2); border-radius:8px; padding:14px 16px; }
.bm-bar-chart { display:flex; align-items:flex-end; gap:3px; height:100px; padding:8px 0; border-bottom:1px solid var(--border); margin-bottom:20px; }
.bm-bar-col { display:flex; flex-direction:column; align-items:center; gap:4px; flex:1; }
.bm-bar-fill { width:100%; min-height:4px; border-radius:2px 2px 0 0; transition:height .4s; }
.bm-bar-year { font-size:9px; color:var(--text-3); }
.bm-two-col { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:20px; }
@media (max-width:640px) { .bm-two-col { grid-template-columns:1fr; } }
.bm-regions, .bm-types { display:flex; flex-direction:column; gap:7px; }
.bm-region-row { display:grid; grid-template-columns:1fr 90px 55px; align-items:center; gap:8px; font-size:12px; }
.bm-region-name { font-size:12px; color:var(--text-2); }
.bm-region-price { font-weight:600; text-align:right; }
.bm-region-chg { font-weight:700; text-align:right; font-size:12px; }
.bm-type-row { display:grid; grid-template-columns:1fr 80px 55px; font-size:12px; padding:5px 8px; background:var(--surface-2); border-radius:5px; gap:8px; }
.bm-rental-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; margin-top:20px; }
.bm-rental-stat { background:var(--surface-2); padding:10px 14px; border-radius:6px; display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--text-2); }
.bm-rental-stat strong { font-size:14px; font-weight:700; color:var(--text); }

/* ── Indkomst panel ───────────────────────────────────────────────────── */
.inc-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.inc-hero-stat { background:var(--surface-2); border-radius:8px; padding:14px 16px; }
.inc-deciles { display:flex; flex-direction:column; gap:6px; margin-bottom:24px; }
.inc-decile-row { display:grid; grid-template-columns:130px 1fr 60px 80px; align-items:center; gap:8px; font-size:12px; }
@media (max-width:640px) { .inc-decile-row { grid-template-columns:100px 1fr 55px; } .inc-decile-net { display:none; } }
.inc-decile-label { font-size:11px; color:var(--text-2); }
.inc-decile-track { height:10px; background:var(--surface-3); border-radius:5px; overflow:hidden; }
.inc-decile-bar { height:100%; background:var(--accent); border-radius:5px; }
.inc-decile-val { font-weight:700; text-align:right; }
.inc-decile-net { font-size:11px; color:var(--text-3); }
.inc-nordic { display:flex; flex-direction:column; gap:7px; margin-bottom:20px; }
.inc-nordic-row { display:grid; grid-template-columns:80px 1fr 50px; align-items:center; gap:8px; font-size:12px; }
.inc-nordic-country { font-size:12px; color:var(--text-2); }
.inc-nordic-track { height:10px; background:var(--surface-3); border-radius:5px; overflow:hidden; }
.inc-nordic-bar { height:100%; border-radius:5px; }
.inc-nordic-val { font-weight:700; text-align:right; }
.inc-transfers-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px; margin-top:20px; }
.inc-transfer-card { background:var(--surface-2); padding:12px 14px; border-radius:6px; }

/* ── CO2 panel ────────────────────────────────────────────────────────── */
.co2-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.co2-hero-stat { background:var(--surface-2); border-radius:8px; padding:14px 16px; }
.co2-progress-wrap { margin:16px 0 20px; }
.co2-progress-label { font-size:12px; color:var(--text-2); margin-bottom:6px; }
.co2-progress-track { height:14px; background:var(--surface-3); border-radius:7px; overflow:hidden; position:relative; }
.co2-progress-fill { height:100%; background:var(--accent); border-radius:7px; transition:width .6s; }
.co2-bar-chart { display:flex; align-items:flex-end; gap:3px; height:100px; padding:8px 0; border-bottom:1px solid var(--border); margin-bottom:20px; }
.co2-bar-col { display:flex; flex-direction:column; align-items:center; gap:4px; flex:1; }
.co2-bar-fill { width:100%; min-height:4px; border-radius:2px 2px 0 0; }
.co2-bar-year { font-size:9px; color:var(--text-3); }
.co2-sectors { display:flex; flex-direction:column; gap:8px; margin-bottom:24px; }
.co2-sector-row { display:grid; grid-template-columns:130px 1fr 60px 24px; align-items:center; gap:8px; font-size:12px; }
.co2-sector-name { font-size:12px; color:var(--text-2); }
.co2-sector-track { height:10px; background:var(--surface-3); border-radius:5px; overflow:hidden; }
.co2-sector-fill { height:100%; background:var(--accent); border-radius:5px; }
.co2-sector-mt { font-weight:700; text-align:right; }
.co2-sector-trend { font-size:14px; font-weight:700; text-align:center; }
.co2-nordic { display:flex; flex-direction:column; gap:7px; }
.co2-nordic-row { display:grid; grid-template-columns:80px 1fr 55px; align-items:center; gap:8px; font-size:12px; }
.co2-nordic-country { font-size:12px; color:var(--text-2); }
.co2-nordic-track { height:10px; background:var(--surface-3); border-radius:5px; overflow:hidden; }
.co2-nordic-bar { height:100%; border-radius:5px; }
.co2-nordic-val { font-weight:700; text-align:right; }

/* ── Kriminalitet panel ───────────────────────────────────────────────── */
.krim-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.krim-hero-stat { background:var(--surface-2); border-radius:8px; padding:14px 16px; }
.krim-bar-chart { display:flex; align-items:flex-end; gap:5px; height:90px; padding:8px 0; border-bottom:1px solid var(--border); margin-bottom:20px; }
.krim-bar-col { display:flex; flex-direction:column; align-items:center; gap:4px; flex:1; }
.krim-bar-fill { width:100%; min-height:4px; border-radius:2px 2px 0 0; background:var(--accent); }
.krim-bar-year { font-size:10px; color:var(--text-3); }
.krim-types { display:flex; flex-direction:column; gap:6px; margin-bottom:24px; }
.krim-type-row { display:grid; grid-template-columns:28px 1fr 110px 60px; align-items:center; gap:8px; padding:7px 10px; background:var(--surface-2); border-radius:6px; font-size:12px; }
.krim-type-icon { font-size:16px; text-align:center; }
.krim-type-name { font-size:12px; }
.krim-type-val { font-weight:600; text-align:right; }
.krim-type-trend { font-weight:700; text-align:right; }
.krim-regions { display:flex; flex-direction:column; gap:7px; }
.krim-region-row { display:grid; grid-template-columns:160px 1fr 70px 100px; align-items:center; gap:8px; font-size:12px; }
@media (max-width:640px) { .krim-region-row { grid-template-columns:1fr 55px; } .krim-region-track, .krim-region-clear { display:none; } }
.krim-region-name { font-size:11px; color:var(--text-2); }
.krim-region-track { height:8px; background:var(--surface-3); border-radius:4px; overflow:hidden; }
.krim-region-bar { height:100%; background:var(--warn); border-radius:4px; }
.krim-region-val { font-weight:700; text-align:right; }
.krim-region-clear { font-size:11px; color:var(--text-3); }

/* ── Uddannelse panel ─────────────────────────────────────────────────── */
.udd-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.udd-hero-stat { background:var(--surface-2); border-radius:8px; padding:14px 16px; }
.udd-levels { display:flex; flex-direction:column; gap:7px; margin-bottom:24px; }
.udd-level-row { display:grid; grid-template-columns:200px 1fr 45px; align-items:center; gap:8px; font-size:12px; }
@media (max-width:500px) { .udd-level-row { grid-template-columns:1fr 40px; } }
.udd-level-name { font-size:12px; color:var(--text-2); }
.udd-level-track { height:10px; background:var(--surface-3); border-radius:5px; overflow:hidden; }
.udd-level-bar { height:100%; background:var(--accent); border-radius:5px; }
.udd-level-pct { font-weight:700; text-align:right; }
.udd-two-col { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin:20px 0; }
@media (max-width:640px) { .udd-two-col { grid-template-columns:1fr; } }
.udd-nordic { display:flex; flex-direction:column; gap:8px; }
.udd-nordic-row { display:flex; flex-direction:column; gap:3px; }
.udd-nordic-country { font-size:12px; font-weight:600; }
.udd-nordic-bars { display:grid; grid-template-columns:1fr 130px 70px; align-items:center; gap:8px; }
.udd-nordic-bar-wrap { height:8px; background:var(--surface-3); border-radius:4px; overflow:hidden; }
.udd-nordic-bar { height:100%; border-radius:4px; }
.udd-nordic-val { font-size:11px; color:var(--text-2); }
.udd-nordic-pisa { font-size:11px; font-weight:600; text-align:right; }
.udd-fields { display:flex; flex-direction:column; gap:6px; }
.udd-field-row { display:grid; grid-template-columns:1fr 100px 40px; align-items:center; gap:8px; font-size:12px; }
.udd-field-track { height:8px; background:var(--surface-3); border-radius:4px; overflow:hidden; }
.udd-field-bar { height:100%; background:var(--accent); border-radius:4px; }
.udd-extra-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; margin-top:20px; }
.udd-extra-stat { background:var(--surface-2); padding:12px 14px; border-radius:6px; }
.elpris-eu-val { font-size: 12px; font-weight: 600; }

/* ── Inflation panel ─────────────────────────────────────────────────── */
.infl-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.infl-hero-stat { background:var(--surface-2); border-radius:8px; padding:14px 16px; }
.infl-bar-chart { display:flex; align-items:flex-end; gap:2px; height:100px; padding:8px 0; border-bottom:1px solid var(--border); margin-bottom:20px; }
.infl-bar-col { display:flex; flex-direction:column; align-items:center; gap:4px; flex:1; }
.infl-bar-fill { width:100%; min-height:4px; border-radius:2px 2px 0 0; }
.infl-bar-label { font-size:8px; color:var(--text-3); writing-mode:vertical-lr; transform:rotate(180deg); height:28px; }
.infl-cats { display:flex; flex-direction:column; gap:7px; margin-bottom:24px; }
.infl-cat-row { display:grid; grid-template-columns:160px 1fr 50px 44px; align-items:center; gap:8px; font-size:12px; }
@media (max-width:640px) { .infl-cat-row { grid-template-columns:120px 1fr 44px; } .infl-cat-weight { display:none; } }
.infl-cat-name { font-size:11px; color:var(--text-2); }
.infl-cat-track { height:10px; background:var(--surface-3); border-radius:5px; overflow:hidden; }
.infl-cat-bar { height:100%; border-radius:5px; }
.infl-cat-val { font-weight:700; text-align:right; }
.infl-cat-weight { font-size:10px; color:var(--text-3); text-align:right; }
.infl-two-col { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:20px; }
@media (max-width:640px) { .infl-two-col { grid-template-columns:1fr; } }
.infl-nordic { display:flex; flex-direction:column; gap:7px; }
.infl-nordic-row { display:grid; grid-template-columns:110px 1fr 44px; align-items:center; gap:8px; font-size:12px; padding:4px 8px; border-radius:5px; }
.infl-nordic-row.highlight { background:var(--surface-2); }
.infl-nordic-track { height:10px; background:var(--surface-3); border-radius:5px; overflow:hidden; }
.infl-nordic-bar { height:100%; border-radius:5px; }
.infl-impact-grid { display:flex; flex-direction:column; gap:8px; }
.infl-impact-card { background:var(--surface-2); padding:10px 14px; border-radius:6px; }
.infl-impact-label { font-size:11px; color:var(--text-3); margin-bottom:4px; }
.infl-impact-val { font-size:14px; font-weight:700; color:var(--pos); }
.infl-impact-pct { font-size:11px; color:var(--text-3); margin-top:2px; }

/* ── Udenrigshandel panel ─────────────────────────────────────────────── */
.uh-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.uh-hero-stat { background:var(--surface-2); border-radius:8px; padding:14px 16px; }
.uh-trend { margin-bottom:24px; }
.uh-trend-legend { display:flex; gap:16px; font-size:11px; margin-bottom:6px; }
.uh-leg-exp { color:var(--accent); font-weight:600; }
.uh-leg-imp { color:var(--text-3); font-weight:600; }
.uh-trend-bars { display:flex; align-items:flex-end; gap:4px; height:100px; padding:8px 0; border-bottom:1px solid var(--border); }
.uh-year-col { display:flex; flex-direction:column; align-items:center; gap:4px; flex:1; }
.uh-year-bars { display:flex; align-items:flex-end; gap:1px; height:80px; }
.uh-year-bar { min-height:4px; width:12px; border-radius:2px 2px 0 0; }
.uh-year-bar.exp { background:var(--accent); }
.uh-year-bar.imp { background:var(--text-3); opacity:0.6; }
.uh-year-label { font-size:10px; color:var(--text-3); }
.uh-two-col { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:20px; }
@media (max-width:640px) { .uh-two-col { grid-template-columns:1fr; } }
.uh-partner-header { display:grid; grid-template-columns:24px 90px 55px 55px 65px; font-size:10px; color:var(--text-3); gap:8px; padding:0 4px; margin-bottom:4px; }
.uh-partners { display:flex; flex-direction:column; gap:5px; }
.uh-partner-row { display:grid; grid-template-columns:24px 90px 55px 55px 65px; align-items:center; gap:8px; font-size:12px; padding:5px 4px; background:var(--surface-2); border-radius:5px; }
.uh-partner-flag { font-size:16px; text-align:center; }
.uh-partner-name { font-size:11px; }
.uh-partner-exp,.uh-partner-imp { font-weight:600; text-align:right; font-size:11px; }
.uh-partner-bal { font-weight:700; text-align:right; font-size:11px; }
.uh-cats { display:flex; flex-direction:column; gap:7px; }
.uh-cat-row { display:grid; grid-template-columns:130px 1fr 55px 38px; align-items:center; gap:8px; font-size:11px; }
.uh-cat-name { color:var(--text-2); }
.uh-cat-track { height:10px; background:var(--surface-3); border-radius:5px; overflow:hidden; }
.uh-cat-bar { height:100%; background:var(--accent); border-radius:5px; }
.uh-cat-val { font-weight:600; text-align:right; }
.uh-cat-pct { color:var(--text-3); text-align:right; }

/* ── Landbrug panel ───────────────────────────────────────────────────── */
.la-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.la-hero-stat { background:var(--surface-2); border-radius:8px; padding:14px 16px; }
.la-two-col { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin:20px 0; }
@media (max-width:640px) { .la-two-col { grid-template-columns:1fr; } }
.la-sectors { display:flex; flex-direction:column; gap:7px; }
.la-sector-row { display:grid; grid-template-columns:140px 1fr 60px 52px; align-items:center; gap:8px; font-size:12px; }
.la-sector-name { font-size:11px; color:var(--text-2); }
.la-sector-track { height:10px; background:var(--surface-3); border-radius:5px; overflow:hidden; }
.la-sector-bar { height:100%; background:var(--accent); border-radius:5px; }
.la-sector-val { font-weight:600; text-align:right; }
.la-sector-trend { font-weight:700; text-align:right; }
.la-bar-chart { display:flex; align-items:flex-end; gap:4px; height:90px; padding:8px 0; border-bottom:1px solid var(--border); margin-bottom:12px; }
.la-bar-col { display:flex; flex-direction:column; align-items:center; gap:4px; flex:1; }
.la-bar-fill { width:100%; min-height:4px; border-radius:2px 2px 0 0; background:var(--accent); opacity:0.8; }
.la-bar-year { font-size:10px; color:var(--text-3); }
.la-sub-stats { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.la-sub-stat { background:var(--surface-2); padding:8px 12px; border-radius:5px; display:flex; flex-direction:column; gap:2px; font-size:11px; color:var(--text-3); }
.la-sub-stat strong { font-size:13px; font-weight:700; color:var(--text); }
.la-water { margin-top:16px; }
.la-water-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; margin-top:8px; }
.la-water-stat { background:var(--surface-2); padding:10px 14px; border-radius:6px; display:flex; flex-direction:column; gap:3px; font-size:11px; color:var(--text-3); }
.la-water-stat strong { font-size:13px; font-weight:700; color:var(--text); }

/* ── Statsgæld panel ─────────────────────────────────────────────────── */
.sg-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.sg-hero-stat { background:var(--surface-2); border-radius:8px; padding:14px 16px; }
.sg-legend { display:flex; gap:16px; font-size:11px; margin-bottom:6px; }
.sg-leg-gross { color:var(--accent); font-weight:600; }
.sg-leg-net { color:var(--warn); font-weight:600; }
.sg-bar-chart { display:flex; align-items:flex-end; gap:3px; height:100px; padding:8px 0; border-bottom:1px solid var(--border); margin-bottom:20px; }
.sg-bar-col { display:flex; flex-direction:column; align-items:center; gap:4px; flex:1; }
.sg-bar-pair { display:flex; align-items:flex-end; gap:2px; height:80px; }
.sg-bar-gross { min-height:4px; width:14px; border-radius:2px 2px 0 0; background:var(--accent); }
.sg-bar-net { min-height:4px; width:8px; border-radius:2px 2px 0 0; background:var(--warn); }
.sg-bar-year { font-size:9px; color:var(--text-3); }
.sg-two-col { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:20px; }
@media (max-width:640px) { .sg-two-col { grid-template-columns:1fr; } }
.sg-eu { display:flex; flex-direction:column; gap:6px; }
.sg-eu-row { display:grid; grid-template-columns:110px 1fr 50px; align-items:center; gap:8px; font-size:12px; padding:4px 8px; border-radius:5px; }
.sg-eu-row.highlight { background:var(--surface-2); }
.sg-eu-track { height:10px; background:var(--surface-3); border-radius:5px; overflow:hidden; }
.sg-eu-bar { height:100%; border-radius:5px; }
.sg-mat { display:flex; flex-direction:column; gap:7px; margin-bottom:16px; }
.sg-mat-row { display:grid; grid-template-columns:80px 1fr 40px; align-items:center; gap:8px; font-size:12px; }
.sg-mat-track { height:10px; background:var(--surface-3); border-radius:5px; overflow:hidden; }
.sg-mat-bar { height:100%; border-radius:5px; }
.sg-extra-stat { background:var(--surface-2); padding:10px 14px; border-radius:6px; display:flex; justify-content:space-between; align-items:center; font-size:12px; }
.sg-extra-stat strong { font-weight:700; }

/* ── Erhverv panel ────────────────────────────────────────────────────── */
.erh-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.erh-hero-stat { background:var(--surface-2); border-radius:8px; padding:14px 16px; }
.erh-sector-header { display:grid; grid-template-columns:150px 1fr 50px 60px 52px; font-size:10px; color:var(--text-3); gap:8px; padding:0 4px; margin-bottom:4px; }
.erh-sectors { display:flex; flex-direction:column; gap:6px; margin-bottom:24px; }
.erh-sector-row { display:grid; grid-template-columns:150px 1fr 50px 60px 52px; align-items:center; gap:8px; font-size:12px; padding:5px 4px; }
.erh-sector-name { font-size:11px; color:var(--text-2); }
.erh-sector-track { height:10px; background:var(--surface-3); border-radius:5px; overflow:hidden; }
.erh-sector-bar { height:100%; background:var(--accent); border-radius:5px; }
.erh-sector-emp,.erh-sector-gdp { font-weight:600; text-align:right; font-size:11px; }
.erh-sector-growth { font-weight:700; text-align:right; font-size:11px; }
.erh-two-col { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:640px) { .erh-two-col { grid-template-columns:1fr; } }
.erh-employers { display:flex; flex-direction:column; gap:6px; }
.erh-emp-row { display:flex; justify-content:space-between; align-items:center; padding:7px 10px; background:var(--surface-2); border-radius:5px; font-size:12px; gap:8px; }
.erh-emp-name { font-weight:600; flex:1; }
.erh-emp-sector { color:var(--text-3); font-size:11px; }
.erh-emp-count { font-size:11px; font-weight:600; }
.erh-sme-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.erh-sme-stat { background:var(--surface-2); padding:10px 12px; border-radius:6px; display:flex; flex-direction:column; gap:2px; font-size:11px; color:var(--text-3); }
.erh-sme-stat strong { font-size:14px; font-weight:700; color:var(--text); }

/* ── Innovation panel ────────────────────────────────────────────────── */
.inn-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.inn-hero-stat { background:var(--surface-2); border-radius:8px; padding:14px 16px; }
.inn-trend-chart { display:flex; align-items:flex-end; gap:4px; height:90px; padding:8px 0; border-bottom:1px solid var(--border); margin-bottom:8px; }
.inn-trend-col { display:flex; flex-direction:column; align-items:center; gap:4px; flex:1; }
.inn-trend-bar { width:100%; min-height:4px; border-radius:2px 2px 0 0; background:var(--accent); }
.inn-trend-year { font-size:9px; color:var(--text-3); }
.inn-target { font-size:11px; color:var(--neg); font-weight:600; margin-bottom:20px; }
.inn-two-col { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:20px; }
@media (max-width:640px) { .inn-two-col { grid-template-columns:1fr; } }
.inn-rd-sectors { display:flex; flex-direction:column; gap:7px; }
.inn-rd-row { display:grid; grid-template-columns:150px 1fr 55px 38px; align-items:center; gap:8px; font-size:11px; }
.inn-rd-name { color:var(--text-2); }
.inn-rd-track { height:10px; background:var(--surface-3); border-radius:5px; overflow:hidden; }
.inn-rd-bar { height:100%; background:var(--accent); border-radius:5px; }
.inn-rd-bn { font-weight:600; text-align:right; }
.inn-rd-pct { color:var(--text-3); text-align:right; }
.inn-unis { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.inn-uni-row { display:grid; grid-template-columns:60px 80px 1fr; align-items:center; gap:8px; font-size:12px; padding:6px 10px; background:var(--surface-2); border-radius:5px; }
.inn-uni-name { font-weight:700; }
.inn-uni-rank { font-size:11px; color:var(--text-3); }
.inn-uni-rd { font-size:11px; }
.inn-green { background:color-mix(in srgb, var(--accent) 8%, var(--surface-2)); border:1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius:6px; padding:10px 14px; }
.inn-green-label { font-size:12px; font-weight:700; margin-bottom:4px; }
.inn-green-val { font-size:11px; color:var(--text-2); margin-top:2px; }

/* ── folkesundhed ──────────────────────────────────────────────────────────── */
.fs-hero-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:16px; }
@media(max-width:600px){.fs-hero-grid{grid-template-columns:repeat(2,1fr);}}
.fs-hero-stat { background:var(--surface-2); border-radius:8px; padding:12px 10px; text-align:center; }
.fs-hero-num { font-size:1.6rem; font-weight:700; line-height:1; }
.fs-hero-label { font-size:11px; color:var(--text-2); margin-top:4px; }
.fs-kram-container,.fs-sector-container { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.fs-kram-row,.fs-sector-row { display:grid; grid-template-columns:200px 1fr 60px; align-items:center; gap:8px; font-size:12px; }
.fs-kram-label,.fs-sector-name { font-size:12px; color:var(--text-2); }
.fs-kram-bar-bg,.fs-bar-bg { background:var(--border); border-radius:4px; height:10px; overflow:hidden; }
.fs-kram-bar-fill,.fs-bar-fill { height:100%; border-radius:4px; transition:width .4s; }
.fs-kram-pct,.fs-sector-val { font-size:12px; font-weight:600; text-align:right; }
.fs-trend-container { display:flex; flex-direction:column; gap:4px; margin-bottom:16px; }
.fs-trend-row { display:grid; grid-template-columns:60px 1fr 1fr; gap:8px; font-size:12px; padding:6px 10px; background:var(--surface-2); border-radius:5px; }
.fs-trend-yr { font-weight:700; }
.fs-source { font-size:11px; color:var(--text-3); margin-top:16px; border-top:1px solid var(--border); padding-top:8px; }

/* ── ligestilling ──────────────────────────────────────────────────────────── */
.ls-hero-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:16px; }
@media(max-width:600px){.ls-hero-grid{grid-template-columns:repeat(2,1fr);}}
.ls-hero-stat { background:var(--surface-2); border-radius:8px; padding:12px 10px; text-align:center; }
.ls-hero-num { font-size:1.6rem; font-weight:700; line-height:1; }
.ls-hero-label { font-size:11px; color:var(--text-2); margin-top:4px; }
.ls-gap-visual { display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.ls-gap-bar-row { display:grid; grid-template-columns:100px 1fr 50px; align-items:center; gap:8px; font-size:13px; }
.ls-gap-label { font-size:12px; color:var(--text-2); }
.ls-gap-bg { background:var(--border); border-radius:4px; height:14px; overflow:hidden; }
.ls-gap-fill { height:100%; border-radius:4px; transition:width .4s; }
.ls-gap-val { font-size:13px; font-weight:700; text-align:right; }
.ls-gap-note { font-size:11px; color:var(--text-3); margin:4px 0 0; }
.ls-parental-bar { display:flex; height:32px; border-radius:8px; overflow:hidden; margin-bottom:16px; font-size:12px; font-weight:600; }
.ls-parental-mothers,.ls-parental-fathers { display:flex; align-items:center; justify-content:center; color:#fff; }
.ls-nordic-table { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:16px; }
.ls-nordic-table th { text-align:left; padding:6px 8px; border-bottom:2px solid var(--border); font-size:12px; color:var(--text-2); }
.ls-nordic-table td { padding:6px 8px; border-bottom:1px solid var(--border); }
.ls-dk { color:var(--accent); font-weight:700; }
.ls-source { font-size:11px; color:var(--text-3); margin-top:16px; border-top:1px solid var(--border); padding-top:8px; }

/* ── velfærdsstat ─────────────────────────────────────────────────────────── */
.vw-hero-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:16px; }
@media(max-width:600px){.vw-hero-grid{grid-template-columns:repeat(2,1fr);}}
.vw-hero-stat { background:var(--surface-2); border-radius:8px; padding:12px 10px; text-align:center; }
.vw-hero-num { font-size:1.6rem; font-weight:700; line-height:1; }
.vw-hero-label { font-size:11px; color:var(--text-2); margin-top:4px; }
.vw-dims { display:flex; flex-direction:column; gap:16px; margin-bottom:16px; }
.vw-dim-block { background:var(--surface-2); border-radius:8px; padding:10px 14px; }
.vw-dim-label { font-size:12px; font-weight:700; color:var(--text-2); margin-bottom:8px; text-transform:uppercase; letter-spacing:.04em; }
.vw-country-bar { display:grid; grid-template-columns:90px 1fr 50px; align-items:center; gap:6px; margin-bottom:4px; font-size:12px; }
.vw-country-name { font-size:12px; color:var(--text-2); }
.vw-country-name.vw-dk { font-weight:700; color:var(--accent); }
.vw-bar-bg { background:var(--border); border-radius:3px; height:8px; overflow:hidden; }
.vw-bar-fill { height:100%; border-radius:3px; transition:width .4s; }
.vw-bar-val { font-size:11px; text-align:right; font-weight:600; }
.vw-gini-table { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:16px; }
.vw-gini-table th { text-align:left; padding:6px 8px; border-bottom:2px solid var(--border); font-size:12px; color:var(--text-2); }
.vw-gini-table td { padding:6px 8px; border-bottom:1px solid var(--border); }
.vw-source { font-size:11px; color:var(--text-3); margin-top:16px; border-top:1px solid var(--border); padding-top:8px; }

/* ── generationsregnskab ──────────────────────────────────────────────────── */
.gr-hero { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:16px; }
.gr-hero-stat { background:var(--surface-2); border-radius:8px; padding:14px; text-align:center; }
.gr-hero-num { font-size:1.6rem; font-weight:700; }
.gr-hero-label { font-size:11px; color:var(--text-2); margin-top:4px; }
.gr-legend { font-size:12px; color:var(--text-2); margin-bottom:8px; }
.gr-cohorts { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.gr-cohort-row { display:grid; grid-template-columns:60px 1fr 90px 1fr; align-items:center; gap:6px; font-size:12px; }
.gr-cohort-age { font-weight:700; font-size:12px; }
.gr-cohort-bar-wrap { display:flex; align-items:center; height:16px; background:var(--border); border-radius:4px; overflow:hidden; }
.gr-cohort-center { width:2px; background:var(--text-3); height:100%; flex-shrink:0; }
.gr-bar-pos,.gr-bar-neg { height:100%; }
.gr-cohort-val { font-weight:700; font-size:12px; text-align:right; }
.gr-cohort-note { font-size:11px; color:var(--text-3); }
.gr-chart-wrap { background:var(--surface-2); border-radius:8px; padding:10px; margin-bottom:8px; }
.gr-chart { width:100%; height:80px; }
.gr-chart-labels { display:flex; justify-content:space-between; font-size:10px; color:var(--text-3); margin-top:4px; }
.gr-note { font-size:12px; color:var(--text-3); margin-bottom:8px; }
.gr-source { font-size:11px; color:var(--text-3); margin-top:16px; border-top:1px solid var(--border); padding-top:8px; }

/* ── arbejdsmiljø ─────────────────────────────────────────────────────────── */
.am-hero-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:16px; }
@media(max-width:600px){.am-hero-grid{grid-template-columns:repeat(2,1fr);}}
.am-hero-stat { background:var(--surface-2); border-radius:8px; padding:12px 10px; text-align:center; }
.am-hero-num { font-size:1.6rem; font-weight:700; line-height:1; }
.am-hero-label { font-size:11px; color:var(--text-2); margin-top:4px; }
.am-sector-container { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.am-sector-row { display:grid; grid-template-columns:220px 1fr 70px; align-items:center; gap:8px; font-size:12px; }
@media(max-width:600px){.am-sector-row{grid-template-columns:1fr 80px 60px;}}
.am-sector-name { font-size:12px; color:var(--text-2); }
.am-bar-bg { background:var(--border); border-radius:4px; height:10px; overflow:hidden; }
.am-bar-fill { height:100%; border-radius:4px; transition:width .4s; }
.am-sector-val { font-size:12px; font-weight:600; text-align:right; }
.am-trend-container { display:flex; flex-direction:column; gap:4px; margin-bottom:16px; }
.am-trend-row { display:grid; grid-template-columns:60px 1fr 1fr; gap:8px; font-size:12px; padding:6px 10px; background:var(--surface-2); border-radius:5px; }
.am-trend-yr { font-weight:700; }
.am-eu-table { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:16px; }
.am-eu-table th { text-align:left; padding:6px 8px; border-bottom:2px solid var(--border); font-size:12px; color:var(--text-2); }
.am-eu-table td { padding:6px 8px; border-bottom:1px solid var(--border); }
.am-rank { background:var(--accent); color:#fff; border-radius:4px; padding:2px 6px; font-size:11px; font-weight:700; }
.am-source { font-size:11px; color:var(--text-3); margin-top:16px; border-top:1px solid var(--border); padding-top:8px; }

/* ── medietillid ─────────────────────────────────────────────────────────── */
.mt-hero-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:16px; }
@media(max-width:600px){.mt-hero-grid{grid-template-columns:repeat(2,1fr);}}
.mt-hero-stat { background:var(--surface-2); border-radius:8px; padding:12px 10px; text-align:center; }
.mt-hero-num { font-size:1.6rem; font-weight:700; line-height:1; }
.mt-hero-label { font-size:11px; color:var(--text-2); margin-top:4px; }
.mt-trust-container,.mt-news-container { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.mt-trust-row,.mt-news-row { display:grid; grid-template-columns:170px 1fr 45px; align-items:center; gap:8px; font-size:12px; }
.mt-trust-name,.mt-news-name { font-size:12px; color:var(--text-2); }
.mt-bar-bg { background:var(--border); border-radius:4px; height:10px; overflow:hidden; }
.mt-bar-fill { height:100%; border-radius:4px; transition:width .4s; }
.mt-trust-pct,.mt-news-pct { font-size:12px; font-weight:600; text-align:right; }
.mt-pf-table { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:16px; }
.mt-pf-table th { text-align:left; padding:6px 8px; border-bottom:2px solid var(--border); font-size:12px; color:var(--text-2); }
.mt-pf-table td { padding:6px 8px; border-bottom:1px solid var(--border); }
.mt-source { font-size:11px; color:var(--text-3); margin-top:16px; border-top:1px solid var(--border); padding-top:8px; }

/* ── grøn omstilling ──────────────────────────────────────────────────────── */
.go-hero-progress { background:var(--surface-2); border-radius:8px; padding:14px; margin-bottom:16px; }
.go-progress-label { font-size:14px; font-weight:700; margin-bottom:8px; }
.go-progress-bg { background:var(--border); border-radius:6px; height:20px; overflow:hidden; position:relative; }
.go-progress-fill { height:100%; border-radius:6px; transition:width .5s; }
.go-progress-target { position:absolute; top:0; bottom:0; width:3px; background:var(--warn); }
.go-progress-meta { display:flex; justify-content:space-between; font-size:11px; color:var(--text-2); margin-top:6px; }
.go-hero-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:16px; }
@media(max-width:600px){.go-hero-grid{grid-template-columns:repeat(2,1fr);}}
.go-hero-stat { background:var(--surface-2); border-radius:8px; padding:12px 10px; text-align:center; }
.go-hero-num { font-size:1.5rem; font-weight:700; line-height:1; }
.go-hero-label { font-size:11px; color:var(--text-2); margin-top:4px; }
.go-sector-container,.go-inv-container { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.go-sector-row,.go-inv-row { display:grid; grid-template-columns:150px 1fr 110px 80px; align-items:center; gap:6px; font-size:12px; }
@media(max-width:600px){.go-sector-row,.go-inv-row{grid-template-columns:1fr 80px 80px;}}
.go-inv-row { grid-template-columns:150px 1fr 90px; }
.go-sector-name,.go-inv-name { font-size:12px; color:var(--text-2); }
.go-bar-bg { background:var(--border); border-radius:4px; height:10px; overflow:hidden; }
.go-bar-fill { height:100%; border-radius:4px; transition:width .4s; }
.go-sector-val,.go-inv-val { font-size:11px; font-weight:600; }
.go-badge { font-size:10px; font-weight:700; padding:2px 6px; border-radius:4px; }
.go-badge.go-ok { background:color-mix(in srgb,var(--neg) 20%,transparent); color:var(--neg); }
.go-badge.go-off { background:color-mix(in srgb,var(--pos) 20%,transparent); color:var(--pos); }
.go-adopt-container { display:flex; flex-direction:column; gap:4px; margin-bottom:16px; }
.go-adopt-row { display:grid; grid-template-columns:50px 1fr 1fr 1fr; gap:6px; font-size:12px; padding:6px 10px; background:var(--surface-2); border-radius:5px; }
.go-adopt-yr { font-weight:700; }
.go-source { font-size:11px; color:var(--text-3); margin-top:16px; border-top:1px solid var(--border); padding-top:8px; }

/* ── boligkrise ───────────────────────────────────────────────────────────── */
.bk-hero-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:16px; }
@media(max-width:600px){.bk-hero-grid{grid-template-columns:repeat(2,1fr);}}
.bk-hero-stat { background:var(--surface-2); border-radius:8px; padding:12px 10px; text-align:center; }
.bk-hero-num { font-size:1.5rem; font-weight:700; line-height:1; }
.bk-hero-label { font-size:11px; color:var(--text-2); margin-top:4px; }
.bk-rent-container { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.bk-rent-row { display:grid; grid-template-columns:130px 1fr 150px; align-items:center; gap:8px; font-size:12px; }
.bk-rent-label { font-size:12px; color:var(--text-2); }
.bk-bar-bg { background:var(--border); border-radius:4px; height:12px; overflow:hidden; }
.bk-bar-fill { height:100%; border-radius:4px; transition:width .4s; }
.bk-rent-val { font-size:12px; font-weight:600; }
.bk-const-container { display:flex; flex-direction:column; gap:4px; margin-bottom:8px; }
.bk-const-row { display:grid; grid-template-columns:40px 1fr 120px; align-items:center; gap:6px; font-size:12px; }
.bk-const-yr { font-weight:700; font-size:11px; }
.bk-const-bars { display:flex; height:10px; border-radius:4px; overflow:hidden; background:var(--border); }
.bk-bar-built { height:100%; }
.bk-bar-needed { height:100%; }
.bk-const-val { font-size:11px; font-weight:600; }
.bk-legend { font-size:11px; color:var(--text-3); margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.bk-legend-box { display:inline-block; width:12px; height:10px; border-radius:2px; }
.bk-city-table { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:16px; }
.bk-city-table th { text-align:left; padding:6px 8px; border-bottom:2px solid var(--border); font-size:12px; color:var(--text-2); }
.bk-city-table td { padding:6px 8px; border-bottom:1px solid var(--border); }
.bk-source { font-size:11px; color:var(--text-3); margin-top:16px; border-top:1px solid var(--border); padding-top:8px; }

/* ── Psykiatri ─────────────────────────────────────────────────────────── */
.psy-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.psy-callout { background:color-mix(in srgb, var(--pos) 12%, var(--surface-2)); border-left:4px solid var(--pos); border-radius:var(--radius); padding:10px 14px; font-size:13px; font-weight:600; margin-bottom:10px; }
.psy-callout.psy-callout-info { background:color-mix(in srgb, var(--accent) 12%, var(--surface-2)); border-left-color:var(--accent); font-weight:400; }
.psy-bars { display:flex; flex-direction:column; gap:6px; margin-bottom:20px; }
.psy-bar-row { display:grid; grid-template-columns:130px 1fr 90px; align-items:center; gap:8px; font-size:12px; }
.psy-bar-label { font-size:12px; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.psy-bar-bg { background:var(--border); border-radius:4px; height:12px; overflow:hidden; }
.psy-bar-fill { height:100%; border-radius:4px; transition:width .4s; }
.psy-bar-val { font-size:12px; font-weight:600; text-align:right; }

/* ── Folkeskolen ───────────────────────────────────────────────────────── */
.fs-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.fs-callout { background:color-mix(in srgb, var(--warn) 14%, var(--surface-2)); border-left:4px solid var(--warn); border-radius:var(--radius); padding:10px 14px; font-size:13px; margin-bottom:16px; }
.fs-bars { display:flex; flex-direction:column; gap:6px; margin-bottom:20px; }
.fs-bar-row { display:grid; grid-template-columns:150px 1fr 110px; align-items:center; gap:8px; font-size:12px; }
.fs-bar-label { font-size:12px; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fs-bar-bg { background:var(--border); border-radius:4px; height:12px; overflow:hidden; }
.fs-bar-fill { height:100%; border-radius:4px; transition:width .4s; }
.fs-bar-val { font-size:12px; font-weight:600; text-align:right; }

/* ── Natur & Drikkevand ────────────────────────────────────────────────── */
.nv-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.nv-callout { background:color-mix(in srgb, var(--warn) 14%, var(--surface-2)); border-left:4px solid var(--warn); border-radius:var(--radius); padding:10px 14px; font-size:13px; margin-bottom:16px; }
.nv-bars { display:flex; flex-direction:column; gap:6px; margin-bottom:20px; }
.nv-bar-row { display:grid; grid-template-columns:130px 1fr 120px; align-items:center; gap:8px; font-size:12px; }
.nv-bar-label { font-size:12px; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nv-bar-bg { background:var(--border); border-radius:4px; height:12px; overflow:hidden; }
.nv-bar-fill { height:100%; border-radius:4px; transition:width .4s; }
.nv-bar-val { font-size:12px; font-weight:600; text-align:right; }
.nv-nature-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0; }
.nv-nature-stat { background:var(--surface-2); border-radius:var(--radius); padding:12px 14px; }
.nv-nature-num { font-size:1.6rem; font-weight:800; letter-spacing:-0.5px; }
.nv-nature-label { font-size:11px; color:var(--text-2); margin-top:4px; }
.nv-nature-label small { color:var(--text-3); }

/* ── Integration ───────────────────────────────────────────────────────── */
.int-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.int-bars { display:flex; flex-direction:column; gap:6px; margin-bottom:20px; }
.int-bar-row { display:grid; grid-template-columns:175px 1fr 60px; align-items:center; gap:8px; font-size:12px; }
.int-bar-label { font-size:12px; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.int-bar-bg { background:var(--border); border-radius:4px; height:12px; overflow:hidden; }
.int-bar-fill { height:100%; border-radius:4px; transition:width .4s; }
.int-bar-val { font-size:12px; font-weight:600; text-align:right; }
.int-edu-callout { background:color-mix(in srgb, var(--accent) 12%, var(--surface-2)); border-left:4px solid var(--accent); border-radius:var(--radius); padding:10px 14px; font-size:13px; margin:12px 0; }
.int-crime-callout { background:color-mix(in srgb, var(--warn) 12%, var(--surface-2)); border-left:4px solid var(--warn); border-radius:var(--radius); padding:10px 14px; font-size:13px; margin:12px 0; }

/* ── Forsvar & Sikkerhed ───────────────────────────────────────────────── */
.for-hero-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:16px 0 24px; }
.for-callout { background:color-mix(in srgb, var(--pos) 12%, var(--surface-2)); border-left:4px solid var(--pos); border-radius:var(--radius); padding:10px 14px; font-size:13px; font-weight:600; margin-bottom:16px; }
.for-bars { display:flex; flex-direction:column; gap:6px; margin-bottom:20px; }
.for-bar-row { display:grid; grid-template-columns:150px 1fr 80px; align-items:center; gap:8px; font-size:12px; }
.for-bar-label { font-size:12px; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.for-bar-bg { background:var(--border); border-radius:4px; height:12px; overflow:hidden; }
.for-bar-fill { height:100%; border-radius:4px; transition:width .4s; }
.for-bar-val { font-size:12px; font-weight:600; text-align:right; }
.for-greenland-box { background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius); padding:14px 16px; font-size:13px; margin-top:16px; line-height:1.5; }

/* ── Connection strip ─────────────────────────────────────────────────── */
.mk-conn-strip { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:20px; padding-top:14px; border-top:1px solid var(--border); }
.mk-conn-lbl { font-size:11px; color:var(--text-2); font-weight:600; margin-right:4px; white-space:nowrap; }
.mk-chip { background:var(--surface-2); border:1px solid var(--border); border-radius:20px; padding:5px 13px; font-size:12px; cursor:pointer; color:var(--text); transition:background .15s,border-color .15s,color .15s; }
.mk-chip:hover { background:var(--accent); border-color:var(--accent); color:#fff; }

/* ── Home button ──────────────────────────────────────────────────────── */

/* ── Panel entrance animation ─────────────────────────────────────────── */
@keyframes panel-in { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.panel.active { animation:panel-in .22s ease; }

/* ── Danmark i dag (news dashboard on Overview) ───────────────────────── */
.today-section { margin-bottom: 8px; margin-top: 28px; }
.today-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
}
.today-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  margin: 0;
  letter-spacing: -1px;
  line-height: 1;
}
.today-sub { font-size: 12px; color: var(--text-3); margin: 0; padding-bottom: 2px; }
.today-ts { font-size:11px; color:var(--text-3); white-space:nowrap; padding-top:4px; }
.today-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px; }

.today-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-top-color .15s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.today-card:hover {
  border-top-color: var(--accent);
  box-shadow: var(--shadow);
}
.today-card-news { margin-bottom:12px; }
.today-card-meta { display:flex; align-items:center; gap:8px; margin-bottom:9px; }
.today-src { font-size:10px; font-weight:700; padding:2px 7px; border-radius:10px; color:#fff; letter-spacing:.3px; text-transform:uppercase; }
.today-src-dr  { background:#003d7a; }
.today-src-tv2 { background:#e4282e; }
.today-age { font-size:11px; color:var(--text-3); }
.today-headline { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4; letter-spacing: -0.1px; }
.today-card-data { border-top:1px solid var(--border); padding-top:10px; margin-top:auto; }
.today-topic { font-size:11px; font-weight:700; color:var(--accent); margin-bottom:3px; text-transform:uppercase; letter-spacing:.5px; }
.today-stat { font-size:11px; color:var(--text-2); margin-bottom:6px; line-height:1.4; }
.today-cta { font-size:11px; color:var(--accent); font-weight:600; }
.today-card:hover .today-cta::after { content:' →'; }
.today-empty { font-size:13px; color:var(--text-2); padding:16px; text-align:center; grid-column:1/-1; }
@keyframes today-shimmer {
  0% { background-position:200% 0; }
  100% { background-position:-200% 0; }
}
.today-skeleton {
  border-radius:var(--radius); height:160px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size:200% 100%;
  animation:today-shimmer 1.6s infinite;
}
.today-card-static { opacity:.88; }
.today-card-static .today-src { opacity:.7; }

/* ── Samfund hub category grid ────────────────────────────────────────── */
.hub-section { margin: 30px 0 20px; }
.hub-section-title {
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.hub-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-top-color .15s, box-shadow .15s;
}
.hub-cat:hover { border-top-color: var(--accent); box-shadow: var(--shadow); }
.hub-cat-hd {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.1px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.hub-item {
  display: flex; justify-content: space-between; align-items: baseline;
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 5px 0; text-align: left; gap: 8px;
  color: var(--text); font-family: var(--font);
  transition: color .12s;
}
.hub-item:hover { color: var(--accent); }
.hub-item-label { font-size: 13px; }
.hub-item-stat { font-size: 10px; color: var(--text-3); white-space: nowrap; flex-shrink: 0; }
.hub-item:hover .hub-item-stat { color: color-mix(in srgb, var(--accent) 70%, var(--text-3)); }
@media (max-width: 600px) {
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .hub-item-stat { display: none; }
}

/* ── Politisk Laboratorium ────────────────────────────────────────────── */
.lab-intro-card { margin-bottom: 16px; }
.lab-context {
  margin-top: 10px; padding: 8px 12px; background: var(--surface-2);
  border-radius: var(--radius); font-size: 12px; color: var(--text-2);
}

/* Summary bar */
.lab-summary-bar {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 8px;
}
.lab-sum-item { flex: 1; min-width: 100px; text-align: center; padding: 0 12px; }
.lab-sum-label { font-size: 11px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.lab-sum-val { font-size: 18px; font-weight: 700; }
.lab-sum-sep { font-size: 20px; color: var(--text-3); padding: 0 4px; }
.lab-deficit .lab-sum-val { color: var(--pos); }
.lab-balanced .lab-sum-val { color: var(--neg); }

/* Progress bar */
.lab-progress-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.lab-progress { flex: 1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.lab-progress-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s ease; }
.lab-progress-label { font-size: 11px; color: var(--text-2); white-space: nowrap; min-width: 90px; }

/* Section titles */
.lab-section { margin-bottom: 28px; }
.lab-sec-title { font-size: 14px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.lab-sec-sub { font-size: 12px; color: var(--text-2); margin: 0 0 14px; }

/* Cards grid */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.lab-card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.lab-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.lab-card.lab-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-1));
  box-shadow: 0 0 0 1px var(--accent);
}
.lab-card-top { display: flex; align-items: center; justify-content: space-between; }
.lab-icon { font-size: 22px; line-height: 1; }
.lab-tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 2px 7px; border-radius: 10px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.lab-card.lab-active .lab-tag { background: var(--accent); color: #fff; border-color: var(--accent); }
.lab-card-label { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.lab-card-desc { font-size: 12px; color: var(--text-2); line-height: 1.4; }
.lab-card-cost { font-size: 16px; font-weight: 700; }
.lab-cost-expense { color: var(--pos); }
.lab-cost-saving  { color: var(--neg); }
.lab-card-note { font-size: 10px; color: var(--text-3); line-height: 1.35; margin-top: 2px; flex: 1; }
.lab-card-btns { display: flex; gap: 6px; margin-top: 4px; }
.lab-btn-sm { font-size: 11px; padding: 5px 10px; }

/* Financing card slight visual difference */
.lab-fin-card { background: color-mix(in srgb, var(--neg) 3%, var(--surface-1)); }
.lab-fin-card.lab-active { border-color: var(--neg); background: color-mix(in srgb, var(--neg) 7%, var(--surface-1)); box-shadow: 0 0 0 1px var(--neg); }
.lab-fin-card.lab-active .lab-tag { background: var(--neg); color: #fff; border-color: var(--neg); }

/* Apply / reset actions */
.lab-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.lab-disclaimer { font-size: 11px; color: var(--text-3); margin-top: 12px; line-height: 1.5; }

@media (max-width: 600px) {
  .lab-grid { grid-template-columns: 1fr; }
  .lab-summary-bar { gap: 8px; }
  .lab-sum-item { min-width: 80px; }
  .lab-sum-val { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EDITORIAL ENHANCEMENTS
═══════════════════════════════════════════════════════════════════════════ */

/* Policy cards editorial upgrade */
.policy-card {
  border-radius: var(--radius);
  border-top: 2px solid var(--border);
  transition: border-top-color .15s;
}
.policy-card:hover { border-top-color: var(--accent); }

/* Party hero refined */
.party-hero {
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

/* Vote cards */
.vote-card {
  border-top: 2px solid var(--border);
  border-radius: var(--radius);
  transition: border-top-color .15s;
}
.vote-card:hover { border-top-color: var(--accent); }

/* Lab cards more substantial */
.lab-card {
  border-radius: var(--radius);
  border-top: 2px solid var(--border);
  transition: border-top-color .15s, box-shadow .15s;
}
.lab-card:hover { border-top-color: var(--accent); }
.lab-card.lab-active { border-top-color: var(--accent); }
.lab-fin-card.lab-active { border-top-color: var(--neg); }

/* Scenario cards */
.scenario {
  border-top: 2px solid var(--border);
  transition: border-top-color .15s, box-shadow .15s;
}
.scenario:hover { border-top-color: var(--accent); box-shadow: var(--shadow-sm); }

/* Footer refinement */
.site-footer {
  border-top: 2px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   X DECK
═══════════════════════════════════════════════════════════════════════════ */

.xd-layout {
  display: flex; gap: 0; align-items: flex-start;
  min-height: 600px;
}

/* Sidebar */
.xd-sidebar {
  width: 230px; flex-shrink: 0;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-right: 16px;
  position: sticky; top: 80px;
}
.xd-sidebar-hd {
  padding: 12px 14px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-3);
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.xd-sidebar-scroll {
  max-height: calc(100vh - 200px); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}

.xd-cat { padding: 8px 0; border-bottom: 1px solid var(--border); }
.xd-cat:last-child { border-bottom: none; }
.xd-cat-lbl {
  padding: 6px 14px 4px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent);
}

.xd-acct {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 14px; transition: background .1s;
}
.xd-acct:hover { background: var(--surface-2); }
.xd-acct.on { background: color-mix(in srgb, var(--accent) 8%, transparent); }

.xd-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-3); color: var(--text-2);
  font-size: 12px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.xd-acct.on .xd-avatar { background: var(--accent); color: #fff; }

.xd-acct-info { flex: 1; min-width: 0; }
.xd-acct-name { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xd-acct-role { font-size: 10px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.xd-follow {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-3); border: 1px solid var(--border);
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); transition: all .12s;
}
.xd-follow:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.xd-follow.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Deck columns */
.xd-deck {
  flex: 1; display: flex; gap: 12px;
  overflow-x: auto; align-items: flex-start;
  padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}

.xd-col {
  flex-shrink: 0; width: 320px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}

.xd-col-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}
.xd-col-name   { font-size: 13px; font-weight: 700; color: var(--text); }
.xd-col-handle { font-size: 11px; color: var(--accent); text-decoration: none; }
.xd-col-handle:hover { text-decoration: underline; }
.xd-col-close {
  background: none; border: none; font-size: 18px; line-height: 1;
  color: var(--text-3); cursor: pointer; padding: 0 2px;
  border-radius: 4px; transition: color .1s;
}
.xd-col-close:hover { color: var(--pos); }

.xd-embed-wrap {
  padding: 0;
  min-height: 400px;
  display: flex; align-items: stretch;
}
.xd-embed-wrap > * { width: 100%; }

.xd-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 60px 20px; text-align: center;
  color: var(--text-3);
}
.xd-empty-icon { font-size: 40px; }
.xd-empty p    { font-size: 14px; max-width: 280px; line-height: 1.6; }

@media (max-width: 700px) {
  .xd-layout    { flex-direction: column; }
  .xd-sidebar   { width: 100%; position: static; margin-right: 0; margin-bottom: 16px; }
  .xd-sidebar-scroll { max-height: 260px; }
  .xd-col       { width: 280px; }
}

/* ════════════════════════════════════════════════════════════════════
   SAAS SHELL — sidebar + topbar layout (appended, overrides old shell)
════════════════════════════════════════════════════════════════════ */

/* Suppress old shell elements — they're replaced by sidebar/topbar */
.site-header   { display: none !important; }
.site-nav      { display: none !important; }
.site-footer   { display: none !important; }
.actions       { display: none !important; }

/* Body becomes a flex row: sidebar | main */
body {
  display: flex !important;
  height: 100dvh;
  overflow: hidden;
  padding: 0;
  margin: 0;
  background: #f1f5f9;
}
[data-theme="dark"] body { background: #0f172a; }
@media (prefers-color-scheme: dark) { body { background: #0f172a; } }

/* ── Sidebar ─────────────────────────────────────────────────────── */
.sidebar {
  width: 240px;
  min-width: 240px;
  height: 100dvh;
  background: #1f1f1f;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.2s ease, min-width 0.2s ease;
  z-index: 100;
  border-right: 1px solid rgba(212,175,55,0.15);
}
.sidebar.collapsed {
  width: 60px;
  min-width: 60px;
}
.sidebar.collapsed .sb-logo-name,
.sidebar.collapsed .sb-search-wrap,
.sidebar.collapsed .sb-item-label,
.sidebar.collapsed .sb-group-name,
.sidebar.collapsed .sb-group-chevron,
.sidebar.collapsed .sb-group-items,
.sidebar.collapsed .sb-section-label,
.sidebar.collapsed .sb-status-text,
.sidebar.collapsed .sb-theme-label { display: none; }

/* Brand */
.sb-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.sb-brand { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; transition: opacity .15s; }
.sb-brand:hover { opacity: 0.8; }
.sb-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: -0.5px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sb-logo-name {
  font-size: 14px; font-weight: 700; color: #f1f5f9;
  letter-spacing: -0.3px; white-space: nowrap;
}
.sb-collapse {
  background: none; border: none; color: #999999; cursor: pointer;
  font-size: 16px; padding: 4px 6px; border-radius: 4px;
  transition: color .1s; flex-shrink: 0;
}
.sb-collapse:hover { color: var(--accent); }

/* Search */
.sb-search-wrap {
  padding: 10px 12px; border-bottom: 1px solid rgba(212,175,55,0.1); flex-shrink: 0;
}
.sb-search {
  width: 100%; box-sizing: border-box;
  background: rgba(212,175,55,0.08); border: 1px solid rgba(212,175,55,0.2);
  border-radius: 6px; color: #f0f0f0; font-family: var(--font);
  font-size: 12px; padding: 7px 10px; outline: none;
  transition: border-color .15s, background .15s;
}
.sb-search::placeholder { color: #666666; }
.sb-search:focus { background: rgba(212,175,55,0.15); border-color: var(--accent); }

/* Nav container */
.sb-nav {
  flex: 1; overflow-y: auto; padding: 8px 0;
  scrollbar-width: thin; scrollbar-color: rgba(212,175,55,0.2) transparent;
}
.sb-nav::-webkit-scrollbar { width: 4px; }
.sb-nav::-webkit-scrollbar-track { background: transparent; }
.sb-nav::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 2px; }

/* Section label */
.sb-section-label {
  padding: 14px 16px 4px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: #d4af37;
  opacity: 0.7;
}

/* Top-level nav items (Dashboard, Feed) */
.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; cursor: pointer; border-radius: 0;
  color: #94a3b8; text-decoration: none; transition: color .1s, background .1s;
  font-size: 13px; font-weight: 500;
}
.sb-item:hover { color: #f1f5f9; background: rgba(255,255,255,0.05); }
.sb-item.active { color: #f1f5f9; background: rgba(255,255,255,0.08); }
.sb-item.active .sb-item-icon { color: var(--accent); }
.sb-item-icon { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.sb-item-label { flex: 1; }
.sb-item-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.sb-item-icon i, .sb-group-icon i { font-size: 15px; line-height: 1; }
.feed-cat-icon i { font-size: 12px; vertical-align: middle; }

/* Group sections (Samfund, Politik, Økonomi, Personligt) */
.sb-group { }
.sb-group-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 16px;
  background: none; border: none; cursor: pointer;
  color: #94a3b8; font-family: var(--font); font-size: 13px; font-weight: 500;
  text-align: left; transition: color .1s, background .1s;
}
.sb-group-btn:hover { color: #f1f5f9; background: rgba(255,255,255,0.04); }
.sb-group.open > .sb-group-btn { color: #e2e8f0; }
.sb-group-icon  { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.sb-group-name  { flex: 1; }
.sb-group-chevron {
  font-size: 10px; color: #64748b; transition: transform .2s;
}
.sb-group.open .sb-group-chevron { transform: rotate(180deg); color: #64748b; }

/* Group sub-items */
.sb-group-items {
  display: none; padding: 2px 0 6px;
  border-left: 1px solid rgba(255,255,255,0.06);
  margin-left: 26px;
}
.sb-group.open .sb-group-items { display: block; }
.sb-sub-item {
  display: flex; align-items: center; gap: 7px; padding: 6px 16px 6px 12px;
  color: #94a3b8; text-decoration: none; font-size: 12.5px;
  transition: color .1s, background .1s; cursor: pointer;
  border-radius: 0 4px 4px 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-sub-item:hover { color: #cbd5e1; background: rgba(255,255,255,0.04); }
.sb-sub-item.active {
  color: #f1f5f9; background: rgba(255,255,255,0.08);
  border-left: 2px solid var(--accent); padding-left: 10px;
}
.sb-sub-icon { width: 14px; text-align: center; flex-shrink: 0; opacity: 0.7; }
.sb-sub-icon i { font-size: 12px; }

/* ── Sidebar bottom ──────────────────────────────────────────────── */
.sb-bottom {
  padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.sb-status-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sb-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34,197,94,0.4);
}
.sb-live-dot.loading { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.4); }
.sb-status-text { font-size: 11px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-theme-btn {
  background: none; border: none; color: #475569; cursor: pointer;
  font-size: 15px; padding: 4px 6px; border-radius: 4px;
  transition: color .1s;
}
.sb-theme-btn:hover { color: #94a3b8; }

/* Mobile sidebar overlay */
.sb-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 99;
}
.sb-overlay.active { display: block; }

/* ── Main area ───────────────────────────────────────────────────── */
.app {
  flex: 1 !important;
  min-width: 0;
  max-width: none !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
  border-top: none !important;
  background: #f1f5f9;
}
[data-theme="dark"] .app { background: #000000; }
[data-theme="dark"] .feed-card { background: #1e293b; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .card { background: #1e293b; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .xd-sidebar { background: #1e293b; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .xd-sidebar-hd { background: #131c2e; border-bottom-color: rgba(255,255,255,0.08); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app { background: #000000; }
}

/* ── Topbar ─────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 20px;
  background: #ffffff; border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0; z-index: 50;
}
[data-theme="dark"] .topbar { background: #0d0d0d; border-bottom-color: rgba(212,175,55,0.12); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .topbar { background: #0d0d0d; border-bottom-color: rgba(212,175,55,0.12); }
}

.topbar-hamburger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 6px;
  border-radius: 4px;
}
.hamburger-line { width: 18px; height: 2px; background: var(--text-2); border-radius: 1px; display: block; }
@media (max-width: 768px) { .topbar-hamburger { display: flex; } }

.topbar-breadcrumb {
  display: flex; align-items: center; gap: 6px; font-size: 14px; min-width: 0;
}
.topbar-bc-section { color: var(--text-3); font-weight: 500; white-space: nowrap; }
.topbar-bc-sep { color: var(--text-3); font-size: 12px; }
.topbar-bc-page  { color: var(--text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar-ticker {
  flex: 1; display: flex; gap: 0; overflow: hidden;
  padding: 0 8px; align-items: center;
}
/* Live-indicator items inside topbar */
.topbar-ticker .live-indicator {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; background: transparent;
  border: none; border-right: 1px solid rgba(212,175,55,0.15);
  font-size: 11px; white-space: nowrap; flex-shrink: 0;
  cursor: pointer; transition: background .12s; border-radius: 0;
  font-family: inherit; color: inherit;
}
.topbar-ticker .live-indicator:hover { background: rgba(212,175,55,0.06); }
.topbar-ticker .live-indicator:last-of-type { border-right: none; }
.topbar-ticker .live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: ticker-pulse 2.5s ease-in-out infinite;
}
@keyframes ticker-pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 4px var(--accent); }
  50%      { opacity: 0.4; box-shadow: none; }
}
.topbar-ticker .label { color: var(--text-3); font-size: 10.5px; letter-spacing: .04em; }
.topbar-ticker .value { font-weight: 700; color: var(--accent); letter-spacing: .02em; }

/* Ticker config button */
.ticker-cfg-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); font-size: 13px; padding: 4px 6px;
  border-radius: 4px; flex-shrink: 0; transition: color .12s, background .12s;
  margin-left: 4px;
}
.ticker-cfg-btn:hover { color: var(--accent); background: rgba(212,175,55,0.08); }

/* Ticker config modal list */
.ticker-cfg-list { display: flex; flex-direction: column; gap: 8px; }
.ticker-cfg-row {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 13px; color: var(--text); padding: 6px 8px;
  border-radius: 6px; transition: background .1s;
}
.ticker-cfg-row:hover { background: var(--surface-2); }
.ticker-cfg-row input { accent-color: var(--accent); width: 14px; height: 14px; }

.topbar-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.topbar-btn {
  padding: 6px 14px; font-size: 12px; font-weight: 600; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: all .12s; white-space: nowrap;
}
.topbar-btn:hover { background: var(--surface-2); color: var(--text); }
.topbar-btn.primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.topbar-btn.primary:hover { opacity: 0.9; }

/* ── Summary (budget KPI bar) — only visible in Økonomi ─────────── */
.summary {
  display: none; /* overridden by .summary-visible */
  align-items: center; gap: 0;
  background: var(--surface); border-bottom: 2px solid var(--accent);
  padding: 0; flex-shrink: 0;
  flex-wrap: wrap;
}
.summary-visible { display: flex !important; }
.summary .stat {
  flex: 1; min-width: 120px;
  padding: 10px 16px;
  border-right: 1px solid var(--border);
}
.summary .stat:last-child { border-right: none; }
.summary-actions {
  display: flex; align-items: center; gap: 6px;
  padding: 0 16px; border-left: 1px solid var(--border);
}
.btn-sm {
  padding: 5px 10px; font-size: 11px; font-weight: 600;
  border-radius: 5px; white-space: nowrap;
}

/* ── Panels main ─────────────────────────────────────────────────── */
.panels-main {
  flex: 1; overflow-y: auto; padding: 20px 24px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.panels-main::-webkit-scrollbar { width: 6px; }
.panels-main::-webkit-scrollbar-track { background: transparent; }
.panels-main::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Mobile bottom navigation ────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  height: 60px;
  background: var(--surface); border-top: 1px solid var(--border);
  align-items: stretch;
  box-shadow: 0 -2px 12px rgba(0,0,0,.12);
  /* Safe area for iPhone home indicator */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px;
  border: none; background: none; cursor: pointer;
  color: var(--text-3); font-size: 10px; font-weight: 500;
  padding: 4px 4px 6px; transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.mnav-item i { font-size: 20px; line-height: 1; }
.mnav-item span { line-height: 1; }
.mnav-item.active { color: var(--accent); }
.mnav-item:hover { color: var(--text-2); }
[data-theme="dark"] .mobile-nav { box-shadow: 0 -2px 12px rgba(0,0,0,.35); }

/* ── Mobile responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  body { display: block !important; }
  .sidebar {
    position: fixed; top: 0; left: 0; height: 100dvh;
    transform: translateX(-100%); transition: transform 0.25s ease;
    z-index: 200; width: 280px; min-width: 280px;
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .app { height: 100dvh; overflow: hidden; }
  /* Bottom nav + safe area inset */
  .panels-main { padding: 10px 8px calc(60px + env(safe-area-inset-bottom, 0px) + 8px); }
  /* Show the mobile bottom nav */
  .mobile-nav { display: flex; }
  /* Hide topbar ticker on mobile — space is tight */
  .topbar-ticker { display: none; }
  /* Hide expand button on mobile */
  .sb-expand-btn { display: none !important; }
  /* Topbar compact */
  .topbar { padding: 0 10px; gap: 8px; }
  .topbar-btn { padding: 5px 10px; font-size: 11px; }
}

@media (max-width: 380px) {
  #btn-share { display: none; }
  .mnav-item span { display: none; }
  .mnav-item { justify-content: center; }
  .mnav-item i { font-size: 22px; }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .sidebar { width: 60px; min-width: 60px; }
  .panels-main { padding: 16px 20px; }
}

@media (min-width: 1101px) and (max-width: 1400px) {
  .sidebar { width: 200px; min-width: 200px; }
}

@media (min-width: 1401px) {
  .panels-main { padding: 24px 32px; }
}

/* Sidebar expand button */
.sb-expand-btn {
  display: none; align-items: center; justify-content: center;
  position: absolute; top: 56px; right: -14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #0f172a; border: 1px solid rgba(255,255,255,0.12);
  color: #64748b; cursor: pointer; font-size: 13px;
  transition: color .1s, background .1s, border-color .1s;
  z-index: 101;
}
.sb-expand-btn:hover { color: #f1f5f9; background: var(--accent, #0a6e78); border-color: var(--accent, #0a6e78); }
.sidebar { position: relative; }
@media (min-width: 769px) { .sb-expand-btn { display: flex; } }
.sidebar.sb-expanded { width: 240px; min-width: 240px; }
.sidebar.sb-expanded .sb-logo-name,
.sidebar.sb-expanded .sb-search-wrap,
.sidebar.sb-expanded .sb-item-label,
.sidebar.sb-expanded .sb-group-name,
.sidebar.sb-expanded .sb-group-chevron,
.sidebar.sb-expanded .sb-group-items,
.sidebar.sb-expanded .sb-section-label,
.sidebar.sb-expanded .sb-status-text { display: block; }
.sidebar.sb-expanded .sb-item { gap: 10px; padding: 8px 16px; }
.sidebar.sb-expanded .sb-group-btn { gap: 10px; padding: 8px 16px; }

/* ════════════════════════════════════════════════════════════════════
   FEED PANEL
════════════════════════════════════════════════════════════════════ */

.feed-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.feed-page-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.3px; }
.feed-page-sub   { font-size: 13px; color: var(--text-2); margin: 0; }
.feed-sentiment-wrap { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.feed-filters {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px;
}
.feed-filter-btn {
  padding: 5px 12px; font-size: 12px; font-weight: 500; border-radius: 20px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: all .12s;
}
.feed-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.feed-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.feed-list { display: flex; flex-direction: column; gap: 14px; }

.feed-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  transition: box-shadow .15s;
}
.feed-card:hover { box-shadow: var(--shadow); }

.feed-card-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.feed-cat-label { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }
.feed-tag {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.ft-ok    { background: color-mix(in srgb, var(--neg) 15%, transparent); color: var(--neg); }
.ft-warn  { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.ft-alert { background: color-mix(in srgb, var(--pos) 15%, transparent); color: var(--pos); }
.ft-info  { background: var(--surface-2); color: var(--text-2); }

.feed-time    { font-size: 11px; color: var(--text-3); margin-left: auto; }
.feed-ai-pill {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); letter-spacing: 0.3px;
}

.feed-card-headline {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin: 0 0 8px; line-height: 1.35; letter-spacing: -0.2px;
}
.feed-card-body {
  font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 0 0 14px;
}

.feed-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.feed-explore {
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: opacity .1s; flex-shrink: 0;
}
.feed-explore:hover { opacity: 0.7; }
.feed-empty { color: var(--text-3); font-size: 14px; padding: 24px 0; }

/* ════════════════════════════════════════════════════════════════════
   VOTE BARS — shown on feed cards, news items, tweets
════════════════════════════════════════════════════════════════════ */

.vbar {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0;
}
.vbar-btn {
  display: flex; align-items: center; gap: 4px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 10px; cursor: pointer; font-size: 12px;
  color: var(--text-2); transition: all .12s; white-space: nowrap; flex-shrink: 0;
}
.vbar-btn:hover { border-color: var(--text-3); color: var(--text); }
.vbar-btn.vbar-pos.on { background: color-mix(in srgb, var(--neg) 15%, var(--surface)); border-color: var(--neg); color: var(--neg); }
.vbar-btn.vbar-neg.on { background: color-mix(in srgb, var(--pos) 15%, var(--surface)); border-color: var(--pos); color: var(--pos); }
.vbar-n { font-weight: 600; font-variant-numeric: tabular-nums; }

.vbar-track {
  flex: 1; height: 4px; border-radius: 2px;
  background: color-mix(in srgb, var(--pos) 20%, var(--surface-2));
  overflow: hidden; min-width: 40px;
}
.vbar-fill {
  height: 100%; border-radius: 2px;
  background: var(--neg); transition: width .3s ease;
}

.vbar-total { font-size: 11px; color: var(--text-3); white-space: nowrap; flex-shrink: 0; }

/* ── Sentiment badge (topbar / dashboard) ──────────────────────── */
.sentiment-badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
}
.sent-pos { background: color-mix(in srgb, var(--neg) 15%, transparent); color: var(--neg); }
.sent-neg { background: color-mix(in srgb, var(--pos) 15%, transparent); color: var(--pos); }
.sent-mid { background: var(--surface-2); color: var(--text-2); }

/* ════════════════════════════════════════════════════════════════════
   X DECK — feed layout (replaces column layout)
════════════════════════════════════════════════════════════════════ */
.xdf-wrap { display: flex; flex-direction: column; gap: 16px; }
.xdf-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.xdf-toolbar-count { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.xdf-curator-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; font-size: 12px; font-weight: 600; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: all .12s;
}
.xdf-curator-btn:hover, .xdf-curator-btn.active { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }

.xdf-login-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  text-decoration: none; transition: all .12s;
}
.xdf-login-btn:hover { border-color: #1d9bf0; color: #1d9bf0; background: color-mix(in srgb, #1d9bf0 8%, var(--surface)); }

.xdf-notice {
  font-size: 11px; color: var(--text-3);
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 6px; padding: 7px 11px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.xdf-notice a { color: var(--accent); text-decoration: none; }
.xdf-notice a:hover { text-decoration: underline; }

.xdf-curator {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; overflow: hidden;
}
.xdf-curator-inner { display: flex; flex-wrap: wrap; gap: 20px; }
.xdc-cat { min-width: 160px; flex: 1; }
.xdc-cat-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-3); margin-bottom: 8px; }
.xdc-cat-list { display: flex; flex-direction: column; gap: 4px; }
.xdc-acct {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 6px; cursor: pointer;
  border: 1px solid transparent; background: none; text-align: left;
  transition: background .1s, border-color .1s; width: 100%;
}
.xdc-acct:hover { background: var(--surface-2); border-color: var(--border); }
.xdc-acct.on { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: var(--accent); }
.xdc-av { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.xdc-acct-name { font-size: 12px; font-weight: 500; color: var(--text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xdc-check { color: var(--text-3); flex-shrink: 0; }
.xdc-acct.on .xdc-check { color: var(--accent); }

.xdf-feed { display: flex; flex-direction: column; gap: 20px; }
.xdf-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.xdf-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}
.xdf-av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.xdf-meta { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.xdf-name { font-size: 13px; font-weight: 700; color: var(--text); }
.xdf-handle { font-size: 12px; color: var(--text-3); text-decoration: none; }
.xdf-handle:hover { color: var(--accent); }
.xdf-role { font-size: 11px; color: var(--text-3); }
.xdf-remove {
  background: none; border: none; cursor: pointer; padding: 4px 6px; border-radius: 4px;
  color: var(--text-3); transition: color .1s, background .1s; flex-shrink: 0;
}
.xdf-remove:hover { color: var(--pos); background: var(--surface-2); }
.xdf-embed { padding: 0; min-height: 200px; }
.xdf-embed .twitter-timeline { display: block; }
.xdf-empty { padding: 40px 20px; text-align: center; color: var(--text-3); }
.xdf-empty-icon { font-size: 36px; margin-bottom: 12px; display: block; color: var(--text-3); }

/* ════════════════════════════════════════════════════════════════════
   GRIDSTACK DASHBOARD — piqsuite-style drag/resize grid
════════════════════════════════════════════════════════════════════ */

/* Override GridStack defaults */
.grid-stack { background: transparent; }
.grid-stack-item-content { overflow: hidden; border-radius: 10px; }
.grid-stack-placeholder > .placeholder-content {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 2px dashed var(--accent);
  border-radius: 10px;
}

/* Card inner — the actual visual card */
.dw-card-inner {
  display: flex; flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .15s;
}
[data-theme="dark"] .dw-card-inner { background: #1e293b; border-color: rgba(255,255,255,0.08); }

/* Card header — drag handle */
.dw-card-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 2px solid var(--accent);
  background: var(--surface-1);
  flex-shrink: 0;
  cursor: grab; user-select: none;
}
.dw-card-header:active { cursor: grabbing; }
[data-theme="dark"] .dw-card-header { background: #141c2e; border-bottom-color: var(--accent); }
.dw-static .dw-card-header { border-bottom-color: var(--border); cursor: default; }

/* Static (non-edit) mode — no grab cursor */
.dw-static .dw-card-header { cursor: default; }

.dw-card-icon { font-size: 14px; color: var(--accent); flex-shrink: 0; opacity: 0.9; }
.dw-card-title { font-size: 12px; font-weight: 700; color: var(--text-1); text-transform: uppercase; letter-spacing: 0.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-card-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.dw-card-goto, .dw-card-remove {
  background: none; border: none; cursor: pointer; padding: 3px 5px;
  border-radius: 4px; color: var(--text-3); font-size: 13px;
  transition: color .15s, background .15s;
}
.dw-card-goto:hover  { color: var(--accent); background: var(--surface-2); }
.dw-card-remove:hover { color: var(--pos); background: color-mix(in srgb, var(--pos) 12%, var(--surface)); }
/* Edit mode: highlight delete button red */
.grid-stack-item:not(.dw-static) .dw-card-remove {
  color: var(--pos); opacity: 0.7;
}
.grid-stack-item:not(.dw-static) .dw-card-remove:hover {
  opacity: 1; background: color-mix(in srgb, var(--pos) 20%, var(--surface));
}

/* Card body */
.dw-card-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 12px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}

/* KPI widgets */
.dw-kpi-big {
  font-size: 28px; font-weight: 800; letter-spacing: -1px;
  color: var(--text); font-variant-numeric: tabular-nums;
  line-height: 1.1; margin-bottom: 6px;
}
.dw-kpi-sub { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.dw-kpi-big.dw-ok   { color: var(--neg); }
.dw-kpi-big.dw-warn { color: var(--warn); }
.dw-kpi-big.dw-bad  { color: var(--pos); }
.dw-kpi-trend {
  font-size: 11px; font-weight: 600; margin-top: 6px;
  color: var(--text-3);
}
.dw-kpi-trend.dw-ok   { color: var(--neg); }
.dw-kpi-trend.dw-warn { color: var(--warn); }
.dw-kpi-trend.dw-bad  { color: var(--pos); }
.dw-kpi-detail {
  font-size: 10px; color: var(--text-3); margin-top: 6px;
  border-top: 1px solid var(--border); padding-top: 5px;
  line-height: 1.5;
}

/* Sparkline chart */
.dw-spark-wrap { margin: 8px 0 2px; opacity: 0.85; }
.dw-spark { width: 100%; height: 28px; display: block; overflow: visible; }

/* Mini progress gauge */
.dw-gauge-wrap { margin: 6px 0 2px; }
.dw-gauge-track {
  height: 5px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.dw-gauge-fill { height: 100%; border-radius: 3px; transition: width .6s cubic-bezier(.4,0,.2,1); }
.dw-gauge-lbl { font-size: 10px; color: var(--text-3); margin-top: 3px; display: block; line-height: 1.4; }

/* Card status color bands */
.dw-card-inner.dw-ok   { border-top: 3px solid var(--neg); background: linear-gradient(160deg, var(--surface) 75%, color-mix(in srgb, var(--neg) 6%, var(--surface)) 100%); }
.dw-card-inner.dw-warn { border-top: 3px solid var(--warn); background: linear-gradient(160deg, var(--surface) 75%, color-mix(in srgb, var(--warn) 6%, var(--surface)) 100%); }
.dw-card-inner.dw-bad  { border-top: 3px solid var(--pos); background: linear-gradient(160deg, var(--surface) 75%, color-mix(in srgb, var(--pos) 6%, var(--surface)) 100%); }
[data-theme="dark"] .dw-card-inner.dw-ok   { background: linear-gradient(160deg, #1e293b 75%, color-mix(in srgb, var(--neg) 10%, #1e293b) 100%); }
[data-theme="dark"] .dw-card-inner.dw-warn { background: linear-gradient(160deg, #1e293b 75%, color-mix(in srgb, var(--warn) 10%, #1e293b) 100%); }
[data-theme="dark"] .dw-card-inner.dw-bad  { background: linear-gradient(160deg, #1e293b 75%, color-mix(in srgb, var(--pos) 10%, #1e293b) 100%); }

/* No-analysis dream box */
.dream-box-na { opacity: 0.7; }
.dream-na-msg { font-size: 12px; color: var(--text-3); line-height: 1.5; font-style: italic; margin: 6px 0 0; }

/* Clickable KPI cards */
.dw-static .dw-card-clickable { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.dw-static .dw-card-clickable:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}
.dw-static .dw-card-clickable .dw-card-goto { opacity: 0.55; }
.dw-static .dw-card-clickable:hover .dw-card-goto { opacity: 1; color: var(--accent); }

/* News widget */
.dw-news-body { display: flex; flex-direction: column; gap: 8px; }
.dw-news-item {
  padding: 8px; border-radius: 6px; cursor: pointer;
  border: 1px solid transparent; transition: background .1s, border-color .1s;
}
.dw-news-item:hover { background: var(--surface-2); border-color: var(--border); }
.dw-news-item--modal:hover { border-color: var(--accent); }
.dw-news-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.dw-news-age  { font-size: 10px; color: var(--text-3); }
.dw-news-cat  { font-size: 10px; color: var(--text-3); background: var(--surface-2); border-radius: 3px; padding: 1px 4px; }
.dw-news-hl   { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 3px; }
.dw-news-topic { font-size: 11px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; display: flex; align-items: center; gap: 6px; }
.dw-news-dream-hint { font-size: 10px; color: var(--text-3); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* News article detail modal */
.vg-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.vg-modal--open { opacity: 1; pointer-events: all; }
.vg-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
}
.vg-modal-inner {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
  width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  overflow-y: auto; padding: 24px;
  transform: translateY(12px); transition: transform .2s;
}
.vg-modal--open .vg-modal-inner { transform: translateY(0); }
.vg-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--surface-2); border: none; border-radius: 50%;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-2); font-size: 14px; transition: background .15s, color .15s;
}
.vg-modal-close:hover { background: var(--border); color: var(--text); }
.vg-modal-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.vg-modal-age { font-size: 11px; color: var(--text-3); }
.vg-modal-headline { font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--text); margin: 0 0 10px; }
.vg-modal-headline a { color: inherit; text-decoration: none; }
.vg-modal-headline a:hover { color: var(--accent); text-decoration: underline; }
.vg-modal-desc { font-size: 13px; color: var(--text-2); line-height: 1.55; margin: 0 0 16px; }
.vg-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.vg-modal-src-btn, .vg-modal-topic-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; border: none; transition: background .15s, color .15s;
}
.vg-modal-src-btn { background: var(--surface-2); color: var(--text-2); }
.vg-modal-src-btn:hover { background: var(--border); color: var(--text); }
.vg-modal-topic-btn { background: var(--accent); color: #fff; }
.vg-modal-topic-btn:hover { opacity: .88; }

/* Insights widget */
.dw-insights-body { display: flex; flex-direction: column; gap: 10px; }
.dw-insight-item { padding: 8px; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; transition: background .1s; }
.dw-insight-item:hover { background: var(--surface-2); }
.dw-insight-hl { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 6px; }

/* Reddit widget */
.dw-reddit-body { display: flex; flex-direction: column; gap: 2px; }
.dw-reddit-item {
  display: block; padding: 8px; border-radius: 6px; text-decoration: none;
  transition: background .1s; border: 1px solid transparent;
}
.dw-reddit-item:hover { background: var(--surface-2); border-color: var(--border); }
.dw-reddit-hl { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 3px; }
.dw-reddit-meta { font-size: 11px; color: var(--text-3); }

/* Skeletons */
.dw-skeleton {
  height: 60px; border-radius: 6px; background: var(--surface-2);
  margin-bottom: 8px; animation: dw-shimmer 1.5s ease-in-out infinite;
}
@keyframes dw-shimmer { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.dw-loading, .dw-empty { font-size: 12px; color: var(--text-3); padding: 8px 0; }

/* Toolbar */
.dw-toolbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.dw-toolbar-title { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 2px; }
.dw-toolbar-sub   { font-size: 12px; color: var(--text-3); margin: 0; }
.dw-edit-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px; font-size: 12px; font-weight: 600; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: all .12s; white-space: nowrap; flex-shrink: 0;
}
.dw-edit-btn:hover, .dw-edit-btn.active { border-color: var(--accent); color: var(--accent); }
.dw-edit-btn.active { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }

/* Catalog */
.dw-catalog-section { margin-bottom: 16px; padding: 16px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; }
.dw-catalog-hd { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-3); margin-bottom: 12px; }
.dw-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.dw-catalog-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; transition: border-color .12s, background .12s; text-align: left;
}
.dw-catalog-item:hover { border-color: var(--accent); background: var(--surface-1); }
.dw-cat-icon { font-size: 16px; color: var(--accent); }
.dw-cat-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dw-cat-name { flex: 1; font-size: 12px; font-weight: 500; color: var(--text); }
.dw-cat-plus { font-size: 16px; color: var(--accent); font-weight: 700; }
.dw-catalog-empty { font-size: 13px; color: var(--text-3); }

/* Resize handle visibility in edit mode */
.grid-stack-item > .ui-resizable-se {
  width: 16px; height: 16px;
  background: var(--accent); border-radius: 3px 0 6px 0;
  opacity: 0.7; transition: opacity .15s;
}
.grid-stack-item:hover > .ui-resizable-se { opacity: 1; }

/* ════════════════════════════════════════════════════════════════════
   X FEED — native tweet cards (API mode)
════════════════════════════════════════════════════════════════════ */
@keyframes xf-spin { to { transform: rotate(360deg); } }

.xdf-loading {
  padding: 32px 16px; text-align: center; color: var(--text-3); font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

.xf-tweets { display: flex; flex-direction: column; gap: 0; }

.xf-tweet {
  display: block; padding: 10px 14px; text-decoration: none;
  border-top: 1px solid var(--border);
  transition: background .1s;
}
.xf-tweet:hover { background: var(--surface-2); }
.xf-tweet:first-child { border-top: none; }

.xf-tweet-text {
  font-size: 13px; color: var(--text); line-height: 1.45; margin: 0 0 6px;
  white-space: pre-wrap; word-break: break-word;
}

.xf-tweet-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.xf-tweet-age  { font-size: 11px; color: var(--text-3); }
.xf-tweet-stat { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 3px; }
.xf-tweet-stat i { font-size: 12px; }

.xf-no-tweets { padding: 10px 14px; font-size: 12px; color: var(--text-3); margin: 0; }

/* Setup prompt when no API token */
.xf-setup {
  margin: 12px 0; padding: 14px 16px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: var(--radius); font-size: 12px; color: var(--text-2); line-height: 1.5;
}
.xf-setup code {
  display: block; margin-top: 6px; padding: 4px 8px;
  background: var(--surface-2); border-radius: 4px;
  font-family: monospace; font-size: 11px; color: var(--text);
}

/* ── Dashboard poll bar widget ─────────────────────────────────── */
.dw-poll-row {
  display: flex; align-items: center; gap: 8px; padding: 4px 0;
}
.dw-poll-name {
  font-size: 11px; font-weight: 600; color: var(--text-2);
  width: 28px; flex-shrink: 0; text-align: right;
}
.dw-poll-bar-wrap {
  flex: 1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden;
}
.dw-poll-bar {
  height: 100%; background: var(--accent); border-radius: 4px;
  transition: width .4s ease;
}
.dw-poll-pct {
  font-size: 11px; color: var(--text-3); width: 42px; text-align: right; flex-shrink: 0;
}

/* "Seneste data" age badge in news widget */
.dw-news-age[style] { font-style: normal; }

/* ════════════════════════════════════════════════════════════════════
   MOBILE  (≤ 768px)
════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Shell ─────────────────────────────────────────────── */
  .panels-main { padding: 12px 12px 80px; }

  /* ── Topbar ─────────────────────────────────────────────── */
  .topbar { height: 52px; padding: 0 12px; gap: 8px; }
  .topbar-bc-section { display: none; }
  .topbar-bc-sep     { display: none; }
  .topbar-bc-page    { font-size: 15px; }
  .topbar-actions    { gap: 6px; }
  .topbar-actions .btn, .topbar-actions button { padding: 6px 10px; font-size: 12px; }
  /* Hide share/analyze on very small screens */
  @media (max-width: 400px) {
    #btn-changes, #btn-share { display: none; }
  }

  /* ── GridStack dashboard ─────────────────────────────────── */
  .dw-toolbar { padding: 0 0 12px; }
  .dw-toolbar-title { font-size: 18px; }
  .dw-toolbar-sub   { font-size: 11px; }
  .dw-edit-btn      { padding: 6px 12px; font-size: 12px; }

  /* KPI cards: larger numbers, comfortable touch height */
  .dw-kpi-big { font-size: 26px; }
  .dw-card-header { padding: 9px 10px; }
  .dw-card-title  { font-size: 10px; }
  .dw-card-body   { padding: 10px; }

  /* GridStack single-col override — belt-and-suspenders */
  .grid-stack-item { min-height: 140px; }
  .dw-card-inner   { min-height: 130px; }

  /* Catalog responsive */
  .dw-catalog-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Feed panel ──────────────────────────────────────────── */
  .feed-page-header { gap: 10px; margin-bottom: 14px; }
  .feed-page-title  { font-size: 18px; }
  .feed-filters     { gap: 6px; flex-wrap: wrap; }
  .feed-filter-btn  { padding: 5px 10px; font-size: 12px; }
  .feed-card        { padding: 12px; }
  .feed-card-headline { font-size: 14px; }
  .feed-card-meta   { flex-wrap: wrap; gap: 4px; }

  /* ── News/rygter ─────────────────────────────────────────── */
  .rygte-grid { grid-template-columns: 1fr !important; }
  .rygte-card { padding: 12px; }
  .rygte-title { font-size: 13px; }

  /* ── Dashboard news widget ───────────────────────────────── */
  .dw-news-hl   { font-size: 12px; }
  .dw-news-meta { gap: 4px; }

  /* ── Charts / tables: horizontal scroll ─────────────────── */
  .chart-wrap, .table-wrap, .proj-chart-area,
  .lab-chart, .statsgaeld-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ── Sliders panel ───────────────────────────────────────── */
  .slider-section { padding: 12px; }
  .slider-group-title { font-size: 13px; }

  /* ── Summary bar ─────────────────────────────────────────── */
  .summary { flex-wrap: wrap; gap: 6px; padding: 8px 12px; font-size: 11px; }
  .summary-item { min-width: auto; }

  /* ── Polling table ───────────────────────────────────────── */
  .poll-seats-col, .poll-trend-badge { display: none !important; }
  .poll-row { grid-template-columns: 28px 1fr 70px !important; }

  /* ── Tab filter buttons (various panels) ─────────────────── */
  .tab-btn, .feed-filter-btn { min-height: 36px; padding: 6px 12px; }

  /* ── Touch target floors ─────────────────────────────────── */
  button, .sb-item, .sb-sub-item, .xdc-acct,
  .dw-catalog-item, .feed-explore { min-height: 40px; }
  .dw-card-goto, .dw-card-remove  { padding: 6px 8px; }

  /* ── X deck ─────────────────────────────────────────────── */
  .xdf-curator-inner { flex-direction: column; }
  .xdc-cat           { min-width: 100%; }
  .xdf-item          { border-radius: 8px; }

  /* ── Reddit ──────────────────────────────────────────────── */
  .feed-card-body { font-size: 13px; }

  /* ── Two-col layouts → single col on mobile ─────────────── */
  .hub-grid { grid-template-columns: 1fr !important; }
  .dash-today-grid  { grid-template-columns: 1fr !important; }
  .dash-insights-strip { grid-template-columns: 1fr !important; }

  /* ── Vote bars ───────────────────────────────────────────── */
  .vote-bar-wrap { gap: 4px; }
  .vote-label    { font-size: 11px; }
}

/* ── Tablet (769–1024px) ─────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .panels-main { padding: 16px 20px; }
  .dw-kpi-big  { font-size: 24px; }
  .dw-catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Bottom nav for mobile (optional future slot) ─────────────────── */
@media (max-width: 768px) {
  /* Prevent horizontal overflow on any panel */
  .panel { overflow-x: hidden; }
  .panel > * { max-width: 100%; }

  /* Make demographic / stats tables scroll horizontally */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Range input larger touch area */
  input[type=range] { height: 28px; }
}

/* ── Danmarksmaskinen (deck.gl map panel) ────────────────────────── */
#panel-danmarkskort {
  padding: 0; overflow: hidden;
  height: calc(100vh - 54px);
  display: flex; flex-direction: column;
}
.dk-wrap {
  position: relative; flex: 1; width: 100%; height: 100%; min-height: 500px;
  background: #000; overflow: hidden;
}
.dk-canvas { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; }
.dk-cesium { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.dk-cesium .cesium-widget, .dk-cesium .cesium-widget canvas { width: 100%; height: 100%; }
.dk-cesium .cesium-viewer-bottom, .dk-cesium .cesium-widget-credits { display: none !important; }
.dk-cesium .cesium-viewer, .dk-cesium .cesium-viewer-cesiumWidgetContainer { width: 100%; height: 100%; }
.dk-hud {
  position: absolute; top: 16px; left: 16px; z-index: 10;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.dk-hud > * { pointer-events: auto; }
.dk-hud-title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  color: var(--accent); opacity: 0.85;
  text-shadow: 0 0 12px rgba(212,175,55,0.5);
}
.dk-view-btns, .dk-metric-btns {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.dk-vbtn, .dk-mbtn {
  padding: 4px 10px; font-size: 10.5px; font-weight: 600;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: .06em;
  background: rgba(0,0,0,0.7); border: 1px solid rgba(212,175,55,0.3);
  color: var(--text-3); border-radius: 3px; cursor: pointer;
  transition: all .15s; backdrop-filter: blur(6px);
}
.dk-vbtn:hover, .dk-mbtn:hover { border-color: var(--accent); color: var(--accent); }
.dk-vbtn.active, .dk-mbtn.active {
  background: rgba(212,175,55,0.15); border-color: var(--accent); color: var(--accent);
}
.dk-legend {
  background: rgba(0,0,0,0.7); border: 1px solid rgba(212,175,55,0.2);
  border-radius: 4px; padding: 6px 8px; backdrop-filter: blur(6px);
}
.dk-leg-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dk-leg-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dk-leg-swatch { width: 14px; height: 14px; border-radius: 2px; }
.dk-leg-label { font-size: 9px; color: var(--text-3); white-space: nowrap; font-family: 'Courier New', Courier, monospace; }
.dk-stats {
  font-size: 10px; color: var(--text-3);
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: .04em;
}
.dk-stats span { color: var(--accent); font-weight: 700; }
.dk-source { font-size: 9px; color: rgba(212,175,55,0.35); font-family: 'Courier New', Courier, monospace; }
.dk-tooltip {
  position: absolute; display: none; z-index: 20; pointer-events: none;
  background: rgba(0,0,0,0.88); border: 1px solid rgba(212,175,55,0.4);
  border-radius: 6px; padding: 10px 14px; min-width: 160px;
  backdrop-filter: blur(8px);
}
.dk-tooltip.dkt-pinned {
  pointer-events: all;
  border-color: rgba(212,175,55,0.8);
  box-shadow: 0 0 16px rgba(212,175,55,0.25);
}
.dkt-pin-close {
  position: absolute; top: 6px; right: 8px;
  background: none; border: none; color: rgba(212,175,55,0.7);
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0 3px;
  transition: color 0.15s;
}
.dkt-pin-close:hover { color: #d4af37; }
.dk-tt-name { font-weight: 700; color: var(--accent); font-size: 13px; margin-bottom: 4px; font-family: 'Courier New', Courier, monospace; }
.dk-tt-val  { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.2; }
.dk-tt-unit { font-size: 10px; color: var(--text-3); margin-bottom: 6px; }
.dk-tt-extra { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--text-3); }
.dk-tt-extra strong { color: var(--text-2); }
.dk-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  background: #000; z-index: 30;
}
.dk-loading-ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(212,175,55,0.15);
  border-top-color: var(--accent);
  animation: dk-spin 0.9s linear infinite;
}
@keyframes dk-spin { to { transform: rotate(360deg); } }
.dk-loading-txt { font-size: 12px; color: var(--text-3); font-family: 'Courier New', Courier, monospace; letter-spacing: .08em; }
.dk-aircraft-badge {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  background: rgba(0,0,0,0.75); border: 1px solid rgba(0,255,200,0.3);
  border-radius: 4px; padding: 6px 12px; font-size: 10px;
  font-family: 'Courier New', Courier, monospace; color: #00ffc8;
  letter-spacing: .06em; backdrop-filter: blur(6px);
}
@media (max-width: 768px) { .dk-hud { top: 8px; left: 8px; } .dk-hud-title { font-size: 10px; } }

/* ── Immersive fullscreen map mode ──────────────────────────────── */
/* Reveal handle — subtle gold tab on the left edge, hidden by default */
.dk-reveal-handle { display: none; }
body.dk-immersive .dk-reveal-handle {
  display: flex; align-items: center; justify-content: center;
  position: fixed; top: 50%; left: 0; transform: translateY(-50%);
  width: 16px; height: 72px; z-index: 250;
  background: rgba(212,175,55,0.12); color: var(--accent);
  border: 1px solid rgba(212,175,55,0.3); border-left: none;
  border-radius: 0 10px 10px 0; cursor: pointer; font-size: 13px;
  opacity: 0.45; transition: opacity .18s, background .18s, width .18s;
  backdrop-filter: blur(4px);
}
body.dk-immersive .dk-reveal-handle:hover { opacity: 1; background: rgba(212,175,55,0.28); width: 20px; }
/* Hide handle while the menu is peeked open */
body.dk-immersive.dk-peek .dk-reveal-handle { opacity: 0; pointer-events: none; }

/* Sidebar slides off-screen in immersive mode, overlays when peeked */
body.dk-immersive .sidebar {
  position: fixed; top: 0; left: 0; height: 100dvh;
  transform: translateX(-101%);
  transition: transform .25s ease, width .2s ease, min-width .2s ease;
  z-index: 240; box-shadow: none;
}
body.dk-immersive.dk-peek .sidebar {
  transform: translateX(0);
  box-shadow: 6px 0 30px rgba(0,0,0,0.65);
}
/* App fills the whole width once the sidebar is out of flow */
body.dk-immersive .app { width: 100%; min-width: 0; }
/* Remove the topbar (white band) — the map has its own HUD */
body.dk-immersive .topbar { display: none; }
body.dk-immersive .summary { display: none; }
body.dk-immersive .panels-main { padding: 0; overflow: hidden; }
body.dk-immersive #panel-danmarkskort { height: 100dvh; }
/* Dim backdrop behind the peeked menu */
body.dk-immersive .dk-peek-backdrop { display: none; }
body.dk-immersive.dk-peek .dk-peek-backdrop {
  display: block; position: fixed; inset: 0; z-index: 235;
  background: rgba(0,0,0,0.4);
}
@media (max-width: 768px) { body.dk-immersive .dk-reveal-handle { height: 56px; } }

/* ── Map split mode: globe left 55%, data panel right 45% ────────────── */
@media (min-width: 769px) {
  .panels-main.map-split-active {
    display: grid !important;
    grid-template-columns: 55% 45%;
    grid-template-rows: 1fr;
    overflow: hidden !important;
    padding: 0 !important;
  }
  .panels-main.map-split-active #panel-danmarkskort {
    display: flex !important;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
    min-height: 0;
  }
  .panels-main.map-split-active .panel.active {
    grid-column: 2;
    grid-row: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: block !important;
    border-left: 1px solid rgba(212,175,55,0.12);
  }
}

/* Danmarkskort aliases — danmarkskort.js uses these exact class names */
.dk-btn {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 9px; border: 1px solid rgba(212,175,55,0.4);
  background: rgba(0,0,0,0.7); color: rgba(212,175,55,0.7);
  cursor: pointer; border-radius: 2px; text-transform: uppercase;
  transition: all 0.15s;
}
.dk-btn:hover { border-color: #d4af37; color: #d4af37; }
.dk-btn.active { background: rgba(212,175,55,0.18); border-color: #d4af37; color: #d4af37; }
.dk-btn-intel { border-color: rgba(255,80,20,0.45); color: rgba(255,120,40,0.8); }
.dk-btn-intel:hover { border-color: #ff5014; color: #ff6030; }
.dk-btn-intel.active { background: rgba(255,80,20,0.18); border-color: #ff5014; color: #ff6030; }
.dk-btn-infra { border-color: rgba(60,210,100,0.45); color: rgba(80,220,120,0.8); }
.dk-btn-infra:hover { border-color: #30dc78; color: #40f090; }
.dk-btn-infra.active { background: rgba(60,210,100,0.18); border-color: #30dc78; color: #40f090; }
.dk-btn-vejr { border-color: rgba(96,200,255,0.45); color: rgba(120,210,255,0.8); }
.dk-btn-vejr:hover { border-color: #60c8ff; color: #80d8ff; }
.dk-btn-vejr.active { background: rgba(96,200,255,0.18); border-color: #60c8ff; color: #80d8ff; }
.dk-btn-beredskab { border-color: rgba(255,80,40,0.45); color: rgba(255,110,80,0.8); }
.dk-btn-beredskab:hover { border-color: #ff5028; color: #ff7060; }
.dk-btn-beredskab.active { background: rgba(255,80,40,0.18); border-color: #ff5028; color: #ff7060; }
.dk-legend-inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; }
.dk-leg-step { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dk-leg-swatch { width: 22px; height: 12px; border-radius: 2px; }
.dk-leg-lbl { font-family: 'Courier New', Courier, monospace; font-size: 8px; color: rgba(212,175,55,0.7); }
.dk-stat { font-family: 'Courier New', Courier, monospace; font-size: 10px; color: rgba(212,175,55,0.8); display: flex; align-items: center; gap: 5px; }
.dkt-title { font-size: 13px; font-weight: 700; color: #d4af37; margin-bottom: 7px; letter-spacing: 1px; font-family: 'Courier New', Courier, monospace; }
.dkt-highlight { font-size: 11px; color: #aaa; margin-bottom: 7px; font-family: 'Courier New', Courier, monospace; }
.dkt-highlight strong { color: #fff; }
.dkt-row { display: flex; align-items: center; gap: 6px; font-size: 10px; padding: 3px 0; border-bottom: 1px solid rgba(212,175,55,0.1); }
.dkt-row-active { color: #d4af37; }
.dkt-k { color: rgba(255,255,255,0.55); min-width: 72px; }
.dkt-v { color: rgba(255,255,255,0.9); flex: 1; text-align: right; }
.dkt-bar { height: 3px; border-radius: 2px; opacity: 0.7; min-width: 2px; transition: width 0.3s; }
.dk-loading-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px; color: #d4af37; letter-spacing: 3px;
  animation: dkBlink 1s ease-in-out infinite;
}
.dk-loading-sub { font-family: 'Courier New', Courier, monospace; font-size: 10px; color: rgba(212,175,55,0.5); letter-spacing: 1px; }
@keyframes dkBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Map navigation controls (bottom-right) */
.dk-nav {
  position: absolute; right: 16px; bottom: 22px; z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.dk-nav-btn {
  width: 34px; height: 34px; border-radius: 4px;
  border: 1px solid rgba(212,175,55,0.4);
  background: rgba(0,0,0,0.72); color: rgba(212,175,55,0.85);
  font-size: 17px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; backdrop-filter: blur(4px);
}
.dk-nav-btn:hover { border-color: #d4af37; color: #d4af37; background: rgba(212,175,55,0.12); }
.dk-compass {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.4); background: rgba(0,0,0,0.72);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s; backdrop-filter: blur(4px);
}
.dk-compass:hover { border-color: #d4af37; }
.dk-compass-needle {
  color: #d4af37; font-size: 16px; line-height: 1;
  transition: transform 0.2s ease-out; transform-origin: center;
}
.dk-compass-n {
  position: absolute; top: 1px; left: 50%; transform: translateX(-50%);
  font-family: 'Courier New', monospace; font-size: 7px; color: rgba(212,175,55,0.6);
}
.dk-pitch {
  font-family: 'Courier New', monospace; font-size: 9px; color: rgba(212,175,55,0.7);
  background: rgba(0,0,0,0.6); padding: 2px 5px; border-radius: 3px;
  border: 1px solid rgba(212,175,55,0.2); white-space: nowrap;
}
.dk-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 18; font-family: 'Courier New', monospace; font-size: 10px;
  color: rgba(212,175,55,0.75); background: rgba(0,0,0,0.6);
  padding: 6px 14px; border-radius: 20px; border: 1px solid rgba(212,175,55,0.18);
  backdrop-filter: blur(4px); pointer-events: none;
  transition: opacity 0.8s; max-width: 88vw; text-align: center;
}
.dk-hint-fade { opacity: 0; }

/* Dataportal discovery widget */
.dk-portal {
  margin-top: 10px;
  border-top: 1px solid rgba(212,175,55,0.2);
  padding-top: 8px;
}
.dk-portal-hdr {
  font-family: 'Courier New', Courier, monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(212,175,55,0.5);
  margin-bottom: 6px;
}
.dk-portal-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dk-portal-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  color: rgba(212,175,55,0.75);
  text-align: left;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  width: 100%;
}
.dk-portal-item:hover {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.5);
  color: #d4af37;
}
.dk-portal-icon { font-size: 11px; opacity: 0.85; }
.dk-portal-label { flex: 1; }
.dk-portal-stat { color: rgba(255,255,255,0.7); font-size: 9px; }
.dk-portal-arrow { color: rgba(212,175,55,0.5); font-size: 11px; transition: transform 0.15s; }
.dk-portal-item:hover .dk-portal-arrow { transform: translateX(3px); color: #d4af37; }

/* Tooltip clickable metric rows */
.dkt-row[style*="cursor"] { transition: background 0.1s; border-radius: 3px; }
.dkt-row[style*="cursor"]:hover { background: rgba(212,175,55,0.12); }
.dkt-link-arrow { color: rgba(212,175,55,0.4); font-size: 11px; margin-left: auto; transition: transform 0.15s; }
.dkt-row[style*="cursor"]:hover .dkt-link-arrow { transform: translateX(2px); color: #d4af37; }
.dkt-footer { margin-top: 8px; border-top: 1px solid rgba(212,175,55,0.15); padding-top: 6px; }
.dkt-goto {
  width: 100%;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 4px;
  padding: 5px 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  color: rgba(212,175,55,0.8);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dkt-goto:hover { background: rgba(212,175,55,0.2); color: #d4af37; }

/* From-map panel transition */
.dk-portal-transition .panel.active {
  animation: panelFromMap 0.5s ease;
}
@keyframes panelFromMap {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Topbar "back to map" chip */
.topbar-bc-kort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  padding: 2px 9px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  color: rgba(212,175,55,0.8);
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.15s, color 0.15s;
  vertical-align: middle;
}
.topbar-bc-kort:hover { background: rgba(212,175,55,0.2); color: #d4af37; }

