/* ============================================================
   LAPEN Admin · Diseño minimalista profesional
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --sidebar-w:      240px;

  /* Colores de acento — rojo institucional */
  --accent:         #9d1b1f;
  --accent-hover:   #7c1518;
  --accent-light:   #fdf2f2;
  --accent-border:  #f5c6c6;

  /* Neutrales */
  --bg:             #f7f8fa;
  --surface:        #ffffff;
  --surface-2:      #f1f3f6;
  --border:         #e4e7ec;
  --border-strong:  #cdd1da;

  /* Texto */
  --text-1:         #111827;
  --text-2:         #4b5563;
  --text-3:         #9ca3af;

  /* Semáforo */
  --green:          #16a34a;
  --green-bg:       #f0fdf4;
  --green-border:   #bbf7d0;
  --amber:          #d97706;
  --amber-bg:       #fffbeb;
  --amber-border:   #fde68a;
  --red:            #dc2626;
  --red-bg:         #fef2f2;
  --red-border:     #fecaca;
  --blue:           #2563eb;
  --blue-bg:        #eff6ff;
  --blue-border:    #bfdbfe;

  /* Sombras */
  --shadow-xs:      0 1px 2px rgba(0,0,0,.06);
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:      0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);

  /* Radios */
  --r-sm:    6px;
  --r-md:    10px;
  --r-lg:    14px;

  /* Transición base */
  --t:       150ms ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ── Layout ─────────────────────────────────────────────────── */
.wrap { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: #111827;
  color: #d1d5db;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #374151 transparent;
  z-index: 50;
}

/* Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid #1f2937;
  text-decoration: none;
}
.sidebar-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.sidebar-brand-text {
  line-height: 1.2;
}
.sidebar-brand-text strong {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: #f9fafb;
  letter-spacing: -.01em;
}
.sidebar-brand-text small {
  font-size: .68rem;
  color: #6b7280;
  font-weight: 400;
}

/* Nav groups */
.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-group {
  margin-bottom: 4px;
}

.nav-group-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #4b5563;
  padding: 10px 18px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: .84rem;
  font-weight: 500;
  color: #9ca3af;
  transition: all var(--t);
  border-left: 3px solid transparent;
  cursor: pointer;
}
.nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .7;
  transition: opacity var(--t);
}
.nav-item:hover {
  background: #1f2937;
  color: #f3f4f6;
  border-left-color: #374151;
}
.nav-item:hover svg { opacity: 1; }
.nav-item.active {
  background: #1f2937;
  color: #f9fafb;
  border-left-color: var(--accent);
  font-weight: 600;
}
.nav-item.active svg { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

/* Sidebar footer */
.sidebar-foot {
  padding: 14px 18px;
  border-top: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-foot a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: #6b7280;
  padding: 7px 0;
  transition: color var(--t);
}
.sidebar-foot a:hover { color: #d1d5db; }
.sidebar-foot a svg { width: 14px; height: 14px; }

/* ── Main ──────────────────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 32px;
  height: 56px;
  box-shadow: var(--shadow-xs);
}

.topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.01em;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Botón "Ver sitio" */
.btn-visit-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  transition: all var(--t);
  text-decoration: none;
}
.btn-visit-site:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-1);
  box-shadow: var(--shadow-xs);
}
.btn-visit-site svg { width: 13px; height: 13px; }

/* Divisor vertical */
.topbar-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

/* User pill */
.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-2);
}
.topbar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ── Page content ───────────────────────────────────────────── */
.page-body {
  flex: 1;
  padding: 28px 32px;
  max-width: 1200px;
}

/* ── Flash messages ─────────────────────────────────────────── */
.flash-wrap { padding: 16px 32px 0; }
.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 12px;
  border: 1px solid;
}
.flash svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.flash.success { background: var(--green-bg); color: #166534; border-color: var(--green-border); }
.flash.error   { background: var(--red-bg);   color: #991b1b; border-color: var(--red-border);   }
.flash.warning { background: var(--amber-bg); color: #92400e; border-color: var(--amber-border); }
.flash.info    { background: var(--blue-bg);  color: #1e40af; border-color: var(--blue-border);  }

/* ── Stat grid ──────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t);
}
.stat-card:hover { box-shadow: var(--shadow-sm); }

.stat-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
}
.stat-card-icon svg { width: 16px; height: 16px; }
.stat-card-icon.blue   { background: var(--blue-bg);  color: var(--blue);  }
.stat-card-icon.green  { background: var(--green-bg); color: var(--green); }
.stat-card-icon.amber  { background: var(--amber-bg); color: var(--amber); }
.stat-card-icon.red    { background: var(--red-bg);   color: var(--red);   }
.stat-card-icon.accent { background: var(--accent-light); color: var(--accent); }

.stat-card-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
  letter-spacing: -.03em;
}
.stat-card-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.stat-card-sub {
  font-size: .75rem;
  color: var(--amber);
  font-weight: 600;
}

/* ── Panel ──────────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.panel-head h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.01em;
}

.panel-head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.panel-body {
  padding: 22px;
}

.panel-body-sm { padding: 16px 22px; }

/* ── Tabla ──────────────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.table thead tr {
  border-bottom: 1px solid var(--border);
}

.table th {
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-3);
  padding: 11px 14px;
  white-space: nowrap;
}

.table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-1);
}

.table tbody tr:last-child td { border-bottom: none; }

.table tbody tr:hover td { background: var(--bg); }

.table .cell-title {
  font-weight: 600;
  color: var(--text-1);
}

.table .cell-muted {
  color: var(--text-3);
  font-size: .82rem;
}

.table .cell-date {
  color: var(--text-3);
  font-size: .8rem;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Thumbnails en tabla */
.thumb {
  width: 52px;
  height: 38px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  display: block;
}
.thumb-placeholder {
  width: 52px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: .7rem;
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

.badge.published  { background: var(--green-bg);  color: #166534; border: 1px solid var(--green-border); }
.badge.published::before  { background: var(--green); }
.badge.draft      { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.badge.draft::before      { background: var(--text-3); }
.badge.pending    { background: var(--amber-bg);  color: #92400e; border: 1px solid var(--amber-border); }
.badge.pending::before    { background: var(--amber); }
.badge.cancelled  { background: var(--red-bg);    color: #991b1b; border: 1px solid var(--red-border); }
.badge.cancelled::before  { background: var(--red); }
.badge.confirmed  { background: var(--green-bg);  color: #166534; border: 1px solid var(--green-border); }
.badge.confirmed::before  { background: var(--green); }
.badge.paid       { background: var(--blue-bg);   color: #1e40af; border: 1px solid var(--blue-border); }
.badge.paid::before       { background: var(--blue); }

/* ── Botones ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

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

.btn-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-green:hover { background: #15803d; border-color: #15803d; }

.btn-blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-blue:hover { background: #1d4ed8; border-color: #1d4ed8; }

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

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

.btn-danger {
  background: var(--surface);
  color: var(--red);
  border-color: var(--red-border);
}
.btn-danger:hover {
  background: var(--red-bg);
  border-color: var(--red);
}

.btn-sm {
  padding: 5px 10px;
  font-size: .78rem;
  border-radius: var(--r-sm);
}
.btn-lg {
  padding: 11px 22px;
  font-size: .95rem;
}
.btn-block { width: 100%; justify-content: center; }

/* ── Formularios ─────────────────────────────────────────────── */
.form-shell {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) {
  .form-shell { grid-template-columns: 1fr; }
  .form-preview-col { order: -1; }
}

.form-card { max-width: 760px; }

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: -.005em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: var(--text-1);
  transition: border-color var(--t), box-shadow var(--t);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover { border-color: var(--border-strong); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(157,27,31,.12);
}

.form-group textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-group select { 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='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.hint {
  font-size: .77rem;
  color: var(--text-3);
  margin-top: 5px;
  line-height: 1.5;
}

.form-section-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── Preview panel ──────────────────────────────────────────── */
.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: 76px;
  box-shadow: var(--shadow-xs);
}

.preview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.preview-card-head span {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-3);
}

.preview-card-head a {
  font-size: .78rem;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.preview-card-head a:hover { text-decoration: underline; }
.preview-card-head a svg { width: 12px; height: 12px; }

.preview-thumb {
  aspect-ratio: 16/9;
  background: var(--surface-2);
  overflow: hidden;
}
.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-3);
}
.preview-thumb-placeholder svg { width: 40px; height: 40px; }

.preview-body { padding: 16px 18px; }
.preview-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
  line-height: 1.3;
}
.preview-excerpt {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.preview-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ── Inputs de imagen con preview inline ─────────────────────── */
.image-input-wrap { position: relative; }
.image-input-preview {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  border: 1px solid var(--border);
  display: none;
}
.image-input-preview.visible { display: block; }

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  overflow-x: auto;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 18px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab-btn svg { width: 14px; height: 14px; }
.tab-btn:hover { color: var(--text-1); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-3);
}
.empty-state-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--text-3);
}
.empty-state-icon svg { width: 24px; height: 24px; }
.empty-state h4 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.empty-state p { font-size: .85rem; }

/* Alias legacy */
.empty { text-align: center; padding: 50px 20px; color: var(--text-3); }
.empty .big { font-size: 2.5rem; margin-bottom: 10px; opacity: .4; }

/* ── Misc ────────────────────────────────────────────────────── */
.muted { color: var(--text-3); }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.thumb-upload {
  width: 180px;
  height: 112px;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  display: block;
}
.thumb-lg { width: 80px; height: 56px; object-fit: cover; border-radius: var(--r-sm); display: block; }

/* Keyword chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-2);
}

/* Infobox */
.info-box {
  background: var(--blue-bg);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 12px 16px;
  font-size: .85rem;
  color: #1e40af;
  margin-bottom: 18px;
}

/* Inline stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-row .stat-mini {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  text-align: center;
}
.stat-mini .n { font-size: 1.5rem; font-weight: 800; color: var(--text-1); line-height: 1; }
.stat-mini .l { font-size: .72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; font-weight: 600; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar { padding: 0 18px; }
  .page-body { padding: 20px 18px; }
  .form-shell { grid-template-columns: 1fr; }
}

@media (min-width: 861px) {
  .sidebar-toggle { display: none; }
}

/* ── Sidebar toggle btn (mobile) ─────────────────────────────── */
.sidebar-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-2);
  flex-shrink: 0;
}
.sidebar-toggle svg { width: 18px; height: 18px; }
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 49;
}
.sidebar-overlay.visible { display: block; }
