/* ============================================================
   Pólix — sistema de diseño
   SaaS moderno y amigable · azul confianza · neutros fríos
   Temas y densidad conmutables vía data-attrs (Tweaks).
   ============================================================ */

:root {
  /* Tipografía (las variables las setea Tweaks) */
  --font-ui: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Color de marca — AZUL por defecto (hue 255) */
  --brand-h: 255;
  --primary:        oklch(0.55 0.17 var(--brand-h));
  --primary-strong: oklch(0.47 0.18 var(--brand-h));
  --primary-hover:  oklch(0.50 0.18 var(--brand-h));
  --primary-soft:   oklch(0.96 0.03 var(--brand-h));
  --primary-soft-2: oklch(0.92 0.05 var(--brand-h));
  --primary-line:   oklch(0.86 0.06 var(--brand-h));
  --on-primary:     #fff;

  /* Neutros fríos (leve tinte azul) */
  --bg:        oklch(0.975 0.006 255);
  --bg-2:      oklch(0.955 0.008 255);
  --surface:   #ffffff;
  --surface-2: oklch(0.985 0.004 255);
  --border:    oklch(0.91 0.008 255);
  --border-strong: oklch(0.85 0.01 255);

  --text:      oklch(0.27 0.02 260);
  --text-soft: oklch(0.45 0.02 260);
  --text-mut:  oklch(0.60 0.015 260);

  /* Semánticos — misma familia, hues distintos */
  --ok:      oklch(0.62 0.15 150);
  --ok-bg:   oklch(0.96 0.04 150);
  --ok-line: oklch(0.86 0.07 150);

  --warn:    oklch(0.70 0.15 75);
  --warn-bg: oklch(0.96 0.05 80);
  --warn-line: oklch(0.85 0.09 80);

  --danger:  oklch(0.58 0.20 25);
  --danger-bg: oklch(0.96 0.04 25);
  --danger-line: oklch(0.86 0.08 25);

  --info:    oklch(0.60 0.13 255);
  --info-bg: oklch(0.96 0.03 255);
  --info-line: oklch(0.86 0.06 255);

  --neutral:    oklch(0.55 0.01 260);
  --neutral-bg: oklch(0.95 0.005 260);
  --neutral-line: oklch(0.88 0.008 260);

  /* celeste de acento de la marca (rima con la “ó”) */
  --sky: oklch(0.82 0.12 230);

  /* Radios y sombras */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-xs: 0 1px 2px oklch(0.5 0.03 260 / 0.06);
  --shadow-sm: 0 1px 3px oklch(0.5 0.03 260 / 0.08), 0 1px 2px oklch(0.5 0.03 260 / 0.04);
  --shadow-md: 0 4px 16px oklch(0.5 0.03 260 / 0.08), 0 2px 4px oklch(0.5 0.03 260 / 0.05);
  --shadow-lg: 0 18px 48px oklch(0.4 0.04 260 / 0.16), 0 6px 14px oklch(0.4 0.04 260 / 0.08);

  /* Densidad (la setea Tweaks) */
  --row-py: 13px;
  --card-pad: 22px;
  --gap: 18px;

  --sidebar-w: 250px;
}

/* ---- Temas de color ---- */
:root[data-theme="teal"]    { --brand-h: 195; }
:root[data-theme="violeta"] { --brand-h: 300; }
:root[data-theme="verde"]   { --brand-h: 155; }
:root[data-theme="azul"]    { --brand-h: 255; }

/* Verde necesita un poco más de saturación para no verse apagado */
:root[data-theme="verde"] {
  --primary: oklch(0.55 0.15 var(--brand-h));
  --primary-strong: oklch(0.46 0.16 var(--brand-h));
}

/* ---- Densidad ---- */
:root[data-density="compacta"] { --row-py: 9px;  --card-pad: 16px; --gap: 14px; }
:root[data-density="comoda"]   { --row-py: 17px; --card-pad: 26px; --gap: 22px; }

/* ============================================================ Reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--primary-soft-2); }
h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* scrollbars sobrias */
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 3px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--text-mut); }

/* ============================================================ App shell */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 20px 20px 18px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(150deg, var(--primary), var(--primary-strong));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-sm);
  flex: none;
}
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.brand-name span { color: var(--primary); }
.brand-sub { font-size: 10.5px; color: var(--text-mut); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }

.nav { padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-mut); font-weight: 700; padding: 14px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--text-soft); font-weight: 600; font-size: 14px;
  border: none; background: none; text-align: left; width: 100%;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--bg-2); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary-strong); }
.nav-item.active .ico { color: var(--primary); }
.nav-item .ico { color: var(--text-mut); flex: none; }
.nav-item .badge-count {
  margin-left: auto; background: var(--danger-bg); color: var(--danger);
  font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px;
}
.nav-foot { padding: 12px; border-top: 1px solid var(--border); }
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-sm);
}
.user-chip:hover { background: var(--bg-2); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--primary-soft-2); color: var(--primary-strong);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}

/* ---- Main ---- */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: oklch(0.99 0.004 255 / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px;
}
.topbar h1 { font-size: 20px; }
.crumbs { font-size: 12.5px; color: var(--text-mut); font-weight: 600; }
.crumbs b { color: var(--text-soft); }
.search {
  margin-left: auto;
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 99px; padding: 9px 15px; width: 320px; max-width: 36vw;
  color: var(--text-mut); transition: border-color .12s, box-shadow .12s;
}
.search:focus-within { border-color: var(--primary-line); box-shadow: 0 0 0 3px var(--primary-soft); }
.search input { border: none; outline: none; background: none; width: 100%; font-size: 14px; color: var(--text); }
.content { padding: 26px 28px 64px; max-width: 1380px; width: 100%; margin: 0 auto; }

/* ============================================================ Botones */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 9px 16px; border-radius: var(--r-sm); font-weight: 700; font-size: 13.5px;
  border: 1px solid transparent; transition: all .13s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-sm); }
.btn-ghost { background: var(--surface); color: var(--text-soft); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }
.btn-soft { background: var(--primary-soft); color: var(--primary-strong); }
.btn-soft:hover { background: var(--primary-soft-2); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-icon { padding: 8px; width: 36px; height: 36px; }
.btn-danger-soft { background: var(--danger-bg); color: var(--danger); }
.btn-danger-soft:hover { background: oklch(0.92 0.06 25); }

/* ============================================================ Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow-xs);
}
.card-pad { padding: var(--card-pad); }
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px var(--card-pad); border-bottom: 1px solid var(--border);
}
.card-head h3 { font-size: 15.5px; }
.card-head .sub { font-size: 12.5px; color: var(--text-mut); font-weight: 500; }

.grid { display: grid; gap: var(--gap); }

/* ---- KPI / stat cards ---- */
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 18px 20px; box-shadow: var(--shadow-xs); position: relative; overflow: hidden;
}
.stat .ico-wrap { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; }
.stat .label { font-size: 12.5px; color: var(--text-mut); font-weight: 600; }
.stat .value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.stat .delta { font-size: 12px; font-weight: 700; margin-top: 6px; display: inline-flex; align-items: center; gap: 3px; }
.delta.up { color: var(--ok); } .delta.down { color: var(--danger); } .delta.flat { color: var(--text-mut); }

/* ============================================================ Tablas */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-mut); padding: 11px 16px; border-bottom: 1px solid var(--border);
  white-space: nowrap; position: sticky; top: 0; background: var(--surface-2); z-index: 1;
}
.tbl td { padding: var(--row-py) 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-soft); }
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr:hover { background: var(--bg-2); cursor: pointer; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl td.strong { color: var(--text); font-weight: 700; }
.cell-main { color: var(--text); font-weight: 700; }
.cell-sub { font-size: 12px; color: var(--text-mut); }

/* ============================================================ Badges / pills */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok      { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.pill-warn    { background: var(--warn-bg); color: oklch(0.50 0.12 65); border-color: var(--warn-line); }
.pill-danger  { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.pill-info    { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.pill-neutral { background: var(--neutral-bg); color: var(--neutral); border-color: var(--neutral-line); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 700;
  background: var(--bg-2); color: var(--text-soft); border: 1px solid var(--border);
}
.tag .swatch { width: 8px; height: 8px; border-radius: 3px; }

/* compañía chip */
.co-chip { display: inline-flex; align-items: center; gap: 8px; }
.co-logo {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 10px;
}

/* ============================================================ Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--text-soft); }
.field .hint { font-size: 11.5px; color: var(--text-mut); }
.input, .select, textarea.input {
  width: 100%; padding: 9px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 14px; color: var(--text); transition: border-color .12s, box-shadow .12s;
}
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 34px; }
.input:disabled, .select:disabled { background: var(--bg-2); color: var(--text-mut); cursor: not-allowed; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.fieldset-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-strong); margin: 4px 0 2px; display: flex; align-items: center; gap: 8px; }
.fieldset-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ============================================================ Modal / drawer */
.overlay {
  position: fixed; inset: 0; background: oklch(0.3 0.03 260 / 0.4);
  backdrop-filter: blur(3px); z-index: 100; display: flex; justify-content: flex-end;
  animation: fade .18s ease;
}
.overlay.center { align-items: center; justify-content: center; padding: 24px; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  background: var(--surface); width: min(720px, 94vw); height: 100%;
  overflow-y: auto; box-shadow: var(--shadow-lg); animation: slidein .26s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
@keyframes slidein { from { transform: translateX(40px); opacity: .4; } }
.modal {
  background: var(--surface); border-radius: var(--r-lg); width: min(560px, 94vw);
  box-shadow: var(--shadow-lg); animation: pop .2s cubic-bezier(.2,.8,.2,1); max-height: 90vh; overflow-y: auto;
}
@keyframes pop { from { transform: scale(.96) translateY(8px); opacity: 0; } }
.drawer-head { position: sticky; top: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 18px 24px; display: flex; align-items: flex-start; gap: 14px; z-index: 2; }
.drawer-body { padding: 22px 24px; }
.drawer-foot { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); padding: 14px 24px; display: flex; gap: 10px; justify-content: flex-end; margin-top: auto; flex-wrap: wrap; }

.iconbtn { background: none; border: none; padding: 6px; border-radius: 8px; color: var(--text-mut); display: grid; place-items: center; }
.iconbtn:hover { background: var(--bg-2); color: var(--text); }

/* ============================================================ Misc */
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--text-mut); }
.soft { color: var(--text-soft); }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--border); }

.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.seg button { border: none; background: none; padding: 6px 13px; border-radius: 6px; font-weight: 700; font-size: 13px; color: var(--text-soft); }
.seg button.on { background: var(--surface); color: var(--primary-strong); box-shadow: var(--shadow-xs); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 13px; border-radius: 99px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-soft);
}
.chip:hover { border-color: var(--primary-line); color: var(--text); }
.chip.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

.empty { text-align: center; padding: 60px 20px; color: var(--text-mut); }
.empty .ico { color: var(--border-strong); margin-bottom: 12px; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; font-size: 13.5px; }
.kv dt { color: var(--text-mut); font-weight: 600; }
.kv dd { margin: 0; color: var(--text); font-weight: 600; }

.progress { height: 7px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--primary); }

/* check / cross para comparador */
.yes { color: var(--ok); } .no { color: var(--neutral-line); }

/* WhatsApp */.wa-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: 9px; color: #25D366; background: oklch(0.95 0.08 150);
  border: 1px solid oklch(0.86 0.1 150); transition: all .12s;
}
.wa-btn:hover { background: #25D366; color: #fff; border-color: #25D366; }
.wa-btn.lg { width: 38px; height: 38px; border-radius: 10px; }

/* ============================================================ Login / Auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr; background: var(--surface); }
.auth-brand {
  background: linear-gradient(155deg, var(--primary-strong), var(--primary) 70%, oklch(0.6 0.16 var(--brand-h)));
  color: #fff; padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; gap: 30px; position: relative; overflow: hidden;
}
.auth-brand::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px;
  border-radius: 50%; background: oklch(1 0 0 / 0.08);
}
.auth-brand .a-logo { display: flex; align-items: center; gap: 12px; }
.auth-brand .a-mark { width: 42px; height: 42px; border-radius: 12px; background: oklch(1 0 0 / 0.16); display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.auth-brand h1 { color: #fff; font-size: 34px; line-height: 1.12; letter-spacing: -0.02em; margin-top: auto; max-width: 12ch; }
.auth-brand .a-sub { color: oklch(1 0 0 / 0.8); font-size: 15px; margin-top: 14px; max-width: 34ch; line-height: 1.5; }
.auth-feats { display: flex; flex-direction: column; gap: 14px; }
.auth-feats .f { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; color: oklch(1 0 0 / 0.95); }
.auth-feats .f .fi { width: 32px; height: 32px; border-radius: 9px; background: oklch(1 0 0 / 0.16); display: grid; place-items: center; flex: none; }
.auth-foot { position: absolute; left: 56px; bottom: 26px; color: oklch(1 0 0 / 0.55); font-size: 12.5px; z-index: 1; }

.auth-form-wrap { display: grid; place-items: center; padding: 32px; }
.auth-card { width: min(400px, 100%); animation: viewin .3s ease both; }
.auth-mobile-logo { display: none; }
@media (max-width: 900px) { .auth-mobile-logo { display: flex; margin-bottom: 26px; } }
.auth-card h2 { font-size: 24px; letter-spacing: -0.02em; }
.auth-card .lead { color: var(--text-mut); font-size: 14px; margin: 6px 0 26px; line-height: 1.5; }
.auth-card .field { margin-bottom: 16px; }
.auth-card .input { padding: 11px 13px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 42px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-mut); padding: 7px; border-radius: 7px; }
.pw-toggle:hover { background: var(--bg-2); color: var(--text); }
.auth-link { background: none; border: none; color: var(--primary); font-weight: 700; font-size: 13px; padding: 0; cursor: pointer; white-space: nowrap; }
.auth-link:hover { text-decoration: underline; }
.auth-error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-line); border-radius: var(--r-sm); padding: 9px 13px; font-size: 13px; font-weight: 600; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.auth-demo { margin-top: 22px; padding: 13px 15px; background: var(--primary-soft); border: 1px dashed var(--primary-line); border-radius: var(--r-sm); font-size: 12.5px; color: var(--primary-strong); line-height: 1.6; }
.auth-demo b { font-weight: 800; }
.pw-bars { display: flex; gap: 5px; margin-top: 8px; }
.pw-bars span { height: 5px; flex: 1; border-radius: 99px; background: var(--bg-2); transition: background .2s; }
.auth-steps { display: flex; align-items: center; gap: 7px; margin-bottom: 22px; }
.auth-steps .s { height: 5px; flex: 1; border-radius: 99px; background: var(--bg-2); }
.auth-steps .s.on { background: var(--primary); }

@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-brand { display: none; } }

/* fade-in helper para vistas — el estado visible es el base; la animación
   solo añade un leve desplazamiento, así nunca queda contenido invisible
   aunque la animación no llegue a ejecutarse (iframe en segundo plano). */
.view-in { animation: viewin .28s ease both; }
@keyframes viewin { from { transform: translateY(7px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .view-in { animation: none; } }

/* ============================================================ Responsive */
.menu-btn { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 200; width: 270px;
    transform: translateX(-100%); transition: transform .25s cubic-bezier(.2,.8,.2,1);
    box-shadow: var(--shadow-lg);
  }
  .app.nav-open .sidebar { transform: translateX(0); }
  .app.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: oklch(0.3 0.03 260 / 0.4); z-index: 150; }
  .menu-btn { display: grid; }
  .search { width: auto; }
  .content { padding: 18px 16px 56px; }
  .topbar { padding: 12px 16px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .search input { display: none; }
  .search { padding: 9px; }
  .topbar h1 { font-size: 17px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
}
