:root {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #F8F9FA;
  --surface-3: #EBECF0;
  --border: rgba(9,30,66,0.10);
  --divider: rgba(9,30,66,0.06);
  --text: #172B4D;
  --text-muted: #6B778C;
  --text-faint: #A5ADBA;
  --primary: #0052CC;
  --primary-dim: rgba(0,82,204,0.08);
  --primary-glow: rgba(0,82,204,0.04);
  --crisis-low: #36B37E;
  --crisis-medium: #FF8B00;
  --crisis-high: #DE350B;
  --crisis-critical: #BF2600;
  --sentiment-pos: #36B37E;
  --sentiment-neg: #DE350B;
  --sentiment-neu: #6B778C;
  --twitter-x: #14171A;
  --instagram: #E1306C;
  --tiktok: #00C8B4;
  --youtube: #FF0000;
  --reddit: #FF4500;
  --news: #0052CC;
  --font-data: 'Geist Mono', monospace;
  --font-ui: 'Inter', sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px;
  --shadow-card: 0 1px 3px rgba(9,30,66,0.08), 0 4px 12px rgba(9,30,66,0.06);
  --topbar-h: 64px;
  --sidebar-w: 220px;
  --sidebar-collapsed: 52px;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--text-base);
}

.app-layout {
  display: grid;
  grid-template-areas: "topbar topbar" "sidebar main";
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  height: 100vh;
}

.topbar {
  grid-area: topbar;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(9,30,66,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
  height: var(--topbar-h);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.topbar-logo svg {
  width: 32px;
  height: 32px;
}

.topbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.topbar-brand-name {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: 2px;
}

.topbar-brand-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.topbar-center {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.alert-level-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-data);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.alert-level-pill[data-level="NORMAL"] {
  background: rgba(34,197,94,0.12);
  color: var(--crisis-low);
  border-color: rgba(34,197,94,0.25);
}

.alert-level-pill[data-level="ELEVADO"] {
  background: rgba(245,158,11,0.12);
  color: var(--crisis-medium);
  border-color: rgba(245,158,11,0.25);
}

.alert-level-pill[data-level="ALERTA"] {
  background: rgba(239,68,68,0.12);
  color: var(--crisis-high);
  border-color: rgba(239,68,68,0.25);
  animation: alertBlink 1.5s ease-in-out infinite;
}

.alert-level-pill[data-level="CRÍTICO"] {
  background: rgba(220,38,38,0.15);
  color: var(--crisis-critical);
  border-color: rgba(220,38,38,0.3);
  animation: alertBlink 0.8s ease-in-out infinite;
}

@keyframes alertBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.mention-counter {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.mention-counter .count-value {
  color: var(--primary);
  font-weight: 700;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.live-clock {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--primary);
  letter-spacing: 1px;
}

.notification-bell {
  position: relative;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.notification-bell:hover { color: var(--text); }

.notification-bell .notif-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--crisis-high);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-2);
}

.sidebar {
  grid-area: sidebar;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.client-selector {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.client-dropdown {
  width: 100%;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

.client-dropdown:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-dim);
}

.client-dropdown option {
  background: var(--surface-2);
  color: var(--text);
}

.nav-items {
  list-style: none;
  padding: var(--space-2) 0;
  flex: 1;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-5);
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all 0.15s;
  border-left: 2px solid transparent;
  position: relative;
}

.nav-item a:hover {
  background: var(--primary-dim);
  color: var(--text);
}

.nav-item a.active {
  background: var(--primary-dim);
  color: var(--primary);
  border-left-color: var(--primary);
}

.nav-item a i { width: 18px; height: 18px; flex-shrink: 0; }

.nav-badge {
  background: var(--crisis-high);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  font-family: var(--font-data);
  margin-left: auto;
}

.nav-divider {
  height: 1px;
  background: var(--divider);
  margin: var(--space-2) var(--space-4);
}

.main-content {
  grid-area: main;
  margin-top: var(--topbar-h);
  margin-left: var(--sidebar-w);
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-6);
  min-width: 0;
  transition: margin-left 0.25s ease;
}

.main-content::-webkit-scrollbar { width: 6px; }
.main-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.section-header h1 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
}

.section-header .section-icon {
  color: var(--primary);
}

.page { display: none; }
.page.active { display: block; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s;
}

.kpi-card:hover { border-color: rgba(9,30,66,0.18); }

.kpi-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.kpi-value {
  font-family: var(--font-data);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary);
}

.kpi-value.positive { color: var(--sentiment-pos); }
.kpi-value.negative { color: var(--sentiment-neg); }
.kpi-value.neutral { color: var(--sentiment-neu); }

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

.chart-card.full-width { grid-column: 1 / -1; }

.chart-card h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-4);
}

.chart-card canvas { max-height: 280px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-card);
}

.card h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-4);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
}

.data-table th, .data-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--divider);
  font-size: var(--text-xs);
}

.data-table th {
  background: var(--surface-2);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.data-table td { color: var(--text); }
.data-table tbody tr:hover td { background: var(--surface-3); }

.data-table td.text-cell {
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: flex-end;
}

.input-field {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  min-width: 140px;
  flex: 1;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-dim);
}

.btn {
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-ui);
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover { background: #0065FF; }

.btn-sm {
  padding: 5px 12px;
  font-size: 0.75rem;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

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

.btn-danger {
  background: var(--crisis-high);
  color: white;
  padding: 5px 12px;
  font-size: 0.75rem;
}

.btn-danger:hover { background: var(--crisis-critical); }

.search-form { margin-bottom: var(--space-4); }

.search-info {
  margin-bottom: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.export-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-faint);
  font-size: var(--text-sm);
}

.client-context-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.client-context-banner h2 {
  margin: 0 0 4px 0;
  font-size: var(--text-base);
  color: var(--text);
}

.context-subtitle {
  font-size: var(--text-xs);
  color: var(--text-faint);
  font-family: 'Geist Mono', monospace;
}

.badge {
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-block;
  font-family: var(--font-data);
}

.badge-info { background: var(--primary-dim); color: var(--primary); }
.badge-positive { background: rgba(74,222,128,0.12); color: var(--sentiment-pos); }
.badge-negative { background: rgba(248,113,113,0.12); color: var(--sentiment-neg); }
.badge-neutral { background: rgba(148,163,184,0.12); color: var(--sentiment-neu); }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  color: var(--text);
  font-size: var(--text-xs);
  z-index: 9999;
  animation: slideIn 0.3s ease;
  box-shadow: var(--shadow-card);
}

.toast.success { border-left: 3px solid var(--crisis-low); }
.toast.error { border-left: 3px solid var(--crisis-high); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.traffic-light {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.tl-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  opacity: 0.12;
  transition: opacity 0.3s;
}

.tl-circle.active { opacity: 1; box-shadow: 0 0 14px currentColor; }
.tl-red { background: var(--crisis-high); color: var(--crisis-high); }
.tl-yellow { background: var(--crisis-medium); color: var(--crisis-medium); }
.tl-green { background: var(--crisis-low); color: var(--crisis-low); }
.tl-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }

.sencia-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-6);
}

.sencia-title {
  font-size: var(--text-lg);
  color: var(--text);
  font-weight: 600;
}

.sencia-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.entity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: border-color 0.15s;
}

.entity-card:hover { border-color: var(--primary); }
.entity-card .entity-name { font-weight: 600; color: var(--text); font-size: var(--text-xs); }
.entity-card .entity-type { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.entity-card .entity-count { font-family: var(--font-data); font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-top: 6px; }

.priority-badge { padding: 2px 8px; border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 600; font-family: var(--font-data); }
.priority-p1 { background: var(--crisis-high); color: white; }
.priority-p2 { background: var(--crisis-medium); color: white; }
.priority-p3 { background: #FFC400; color: #172B4D; opacity: 0.9; }
.priority-p4 { background: var(--text-faint); color: white; }

.taxonomy-badge { padding: 2px 8px; border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 500; }

.entity-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  margin: 1px;
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid rgba(0,82,204,0.18);
  font-family: var(--font-data);
}

.hoyos-card {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.hoyos-card h3 { color: var(--primary); }

.sencia-section {
  margin-bottom: var(--space-8);
}

.sencia-section h3 {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.sencia-entity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.entity-filter-btn {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--surface-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}

.entity-filter-btn:hover { border-color: var(--primary); color: var(--text); }

.entity-filter-btn.active {
  background: var(--primary-dim);
  color: var(--primary);
  border-color: var(--primary);
}

.sencia-quick-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.sencia-feeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.feed-category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.feed-category-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
}

.feed-item {
  padding: 4px 0;
  font-size: 0.78rem;
  color: var(--text);
  border-bottom: 1px solid var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-item .feed-priority { font-size: 0.65rem; color: var(--text-faint); }
.feed-item .feed-added { color: var(--crisis-low); font-size: 0.7rem; }

.taxonomy-ref-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.taxonomy-ref-title { font-weight: 600; font-size: var(--text-xs); margin-bottom: var(--space-2); }

.taxonomy-ref-keywords { display: flex; flex-wrap: wrap; gap: var(--space-1); }

.taxonomy-kw {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  background: var(--surface-3);
  color: var(--text-muted);
}

.crisis-feed-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  border-left: 3px solid var(--crisis-high);
}

.crisis-feed-item .crisis-meta {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.crisis-feed-item .crisis-text {
  font-size: var(--text-sm);
  color: var(--text);
}

.mention-feed-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  transition: border-color 0.15s;
}

.mention-feed-item:hover { border-color: rgba(9,30,66,0.18); }

.mention-feed-item .feed-meta {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.mention-feed-item .feed-text {
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.5;
}

.mention-feed-item .feed-entities {
  margin-top: var(--space-2);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}

.client-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.15s;
}

.client-card:hover { border-color: var(--primary); }

.client-card .client-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text);
}

.client-card .client-status {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.filter-bar {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
  align-items: center;
}

@media (max-width: 1024px) {
  .app-layout { grid-template-columns: var(--sidebar-collapsed) 1fr; }
  .sidebar { width: var(--sidebar-collapsed); }
  .sidebar .client-selector { display: none; }
  .sidebar .nav-item a span:not(.nav-badge) { display: none; }
  .sidebar .nav-item a { padding: 12px; justify-content: center; }
  .sidebar .nav-divider { margin: var(--space-2) var(--space-2); }
  .main-content { margin-left: var(--sidebar-collapsed); }
}

@media (max-width: 768px) {
  .app-layout { grid-template-columns: 1fr; }
  .sidebar {
    width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar .client-selector { display: block; }
  .sidebar .nav-item a span { display: inline; }
  .sidebar .nav-item a { justify-content: flex-start; padding: 10px var(--space-5); }
  .hamburger-btn { display: block; }
  .main-content { margin-left: 0; padding: var(--space-4); }
  .charts-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .form-row { flex-direction: column; }
  .topbar-center { display: none; }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

.sidebar-overlay.open { display: block; }
