/* Estilos de Prospector. Basados en la interfaz de Harvey (MIT, Ethan Rogers, 2026; ver NOTICE):
   sin color en la interfaz salvo el estado, estructura con líneas finas, cifras en tipografía monoespaciada. */

@font-face {
  font-family: 'Newsreader'; font-style: normal; font-weight: 400 500;
  font-display: swap; src: url('/static/fonts/newsreader.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url('/static/fonts/geist.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-weight: 400 500;
  font-display: swap; src: url('/static/fonts/geist-mono.woff2') format('woff2');
}

/* ── Tokens ──────────────────────────────────────────────────── */

:root {
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 3px;
  --r-md: 5px;
  --gut: 28px;

  /* Light — warm paper. Greys are tinted warm; nothing is neutral grey. */
  --bg:            #FBFAF8;
  --panel:         #FFFFFF;
  --panel-raised:  #F5F3EF;
  --border:        #E8E4DD;
  --border-strong: #D3CDC3;
  --rule:          #1E1B17;   /* the heavy rule under a heading */
  --text:          #1E1B17;
  --text-2:        #5E584F;
  --text-3:        #948D82;
  --ink:           #1E1B17;   /* the one "accent": ink */
  --ink-contrast:  #FBFAF8;
  --ink-soft:      #EFEBE3;

  --s-good:   #3D6046;  --s-good-bg:   #EAF0EB;  --s-good-line:   #CFDDD3;
  --s-wait:   #8A6A1F;  --s-wait-bg:   #FAF2DC;  --s-wait-line:   #EADFBE;
  --s-bad:    #96322E;  --s-bad-bg:    #FBEBE9;  --s-bad-line:    #EFD3CF;
  --s-active: #2C5F7C;  --s-active-bg: #E9F0F5;  --s-active-line: #D0DFE9;
  --s-note:   #5B4A72;  --s-note-bg:   #F1EDF6;  --s-note-line:   #E0D8E9;

  --shadow: 0 8px 24px rgba(30, 27, 23, 0.10);
  color-scheme: light;
}

/* Dark — warm charcoal. Same design, re-tokenised.
   Declared twice on purpose: once for an explicit choice, once for the
   system preference when the user hasn't chosen. A single selector list
   can't do both, because the explicit one must win over the media query. */
:root[data-theme='dark'] {
  --bg:            #131210;
  --panel:         #1A1917;
  --panel-raised:  #221F1C;
  --border:        #2B2825;
  --border-strong: #3D3934;
  --rule:          #6B655D;
  --text:          #ECE8E1;
  --text-2:        #A39C92;
  --text-3:        #6E6960;
  --ink:           #ECE8E1;
  --ink-contrast:  #131210;
  --ink-soft:      #262320;

  --s-good:   #86AE90;  --s-good-bg:   rgba(134,174,144,0.11);  --s-good-line:   rgba(134,174,144,0.26);
  --s-wait:   #CBAA63;  --s-wait-bg:   rgba(203,170,99,0.11);   --s-wait-line:   rgba(203,170,99,0.26);
  --s-bad:    #CB8279;  --s-bad-bg:    rgba(203,130,121,0.11);  --s-bad-line:    rgba(203,130,121,0.26);
  --s-active: #85A2BD;  --s-active-bg: rgba(133,162,189,0.11);  --s-active-line: rgba(133,162,189,0.26);
  --s-note:   #A091B3;  --s-note-bg:   rgba(160,145,179,0.11);  --s-note-line:   rgba(160,145,179,0.26);

  --shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg:#131210; --panel:#1A1917; --panel-raised:#221F1C;
    --border:#2B2825; --border-strong:#3D3934; --rule:#6B655D;
    --text:#ECE8E1; --text-2:#A39C92; --text-3:#6E6960;
    --ink:#ECE8E1; --ink-contrast:#131210; --ink-soft:#262320;
    --s-good:#86AE90; --s-good-bg:rgba(134,174,144,0.11); --s-good-line:rgba(134,174,144,0.26);
    --s-wait:#CBAA63; --s-wait-bg:rgba(203,170,99,0.11); --s-wait-line:rgba(203,170,99,0.26);
    --s-bad:#CB8279; --s-bad-bg:rgba(203,130,121,0.11); --s-bad-line:rgba(203,130,121,0.26);
    --s-active:#85A2BD; --s-active-bg:rgba(133,162,189,0.11); --s-active-line:rgba(133,162,189,0.26);
    --s-note:#A091B3; --s-note-bg:rgba(160,145,179,0.11); --s-note-line:rgba(160,145,179,0.26);
    --shadow:0 8px 28px rgba(0,0,0,0.55);
    color-scheme: dark;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--ink-soft); color: var(--text); }

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; text-decoration: underline; text-underline-offset: 2px;
    text-decoration-color: var(--border-strong); text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }

/* ── Cabecera y navegación ───────────────────────────────────── */

#app > header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px var(--gut) 12px; border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .mark {
  width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--ink-contrast); border-radius: var(--r-sm);
  font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1;
}
.brand h1 { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.1; }
.brand .tagline { font-family: var(--serif); font-style: italic; font-size: 12px; color: var(--text-3); line-height: 1.2; margin-top: 1px; }
.header-controls { display: flex; align-items: center; gap: 8px; }
.quien { font-size: 12.5px; color: var(--text-2); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  background: none; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  color: var(--text-2); font-family: var(--sans); font-size: 12.5px; font-weight: 450;
  padding: 0 12px; min-height: 44px; min-width: 44px; cursor: pointer; transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-3); }

nav { display: flex; padding: 0 var(--gut); border-bottom: 1px solid var(--border); }
nav button {
  background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-3);
  font-family: var(--sans); font-size: 14px; font-weight: 450; padding: 0 2px; margin-right: 26px;
  min-height: 46px; cursor: pointer; white-space: nowrap; transition: color .15s;
}
nav button:hover { color: var(--text-2); }
nav button.active { color: var(--text); border-bottom-color: var(--ink); font-weight: 500; }
.nav-count {
  display: none; margin-left: 6px; padding: 0 5px; border-radius: 2px;
  font-family: var(--mono); font-size: 10px; font-weight: 500; background: var(--s-wait-bg); color: var(--s-wait);
}
.nav-count.on { display: inline-block; }

main { padding: 30px var(--gut) 96px; max-width: 1100px; margin: 0 auto; }
.section { display: none; }
.section.active { display: block; animation: rise .22s cubic-bezier(.16,1,.3,1); }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ── Títulos ─────────────────────────────────────────────────── */

.section-head { margin-bottom: 24px; }
.section-head h2 { font-family: var(--serif); font-size: 31px; font-weight: 400; letter-spacing: -0.018em; line-height: 1.12; }
.section-head p { font-size: 14px; color: var(--text-2); margin-top: 6px; max-width: 66ch; text-wrap: pretty; }
.subhead { font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-3); border-bottom: 1px solid var(--border); padding-bottom: 6px; margin: 30px 0 14px; }

/* ── Hoy ─────────────────────────────────────────────────────── */

.today-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 34px; align-items: start; }
.today-rail { position: sticky; top: 22px; }
.rail-block > .subhead { margin-top: 0; }
@media (max-width: 900px) { .today-grid { grid-template-columns: 1fr; gap: 26px; } .today-rail { position: static; order: -1; } }

.queue { border-top: 1px solid var(--rule); }
.subhead + .queue { border-top: none; }
.queue-item { display: flex; align-items: flex-start; gap: 16px; padding: 16px 2px 16px 0; border-bottom: 1px solid var(--border); }
.queue-item::before { content: ''; width: 2px; align-self: stretch; flex: none; background: var(--text-3); }
.queue-item.warn::before { background: var(--s-wait); }
.queue-item.good::before { background: var(--s-good); }
.queue-item .qtext { flex: 1; min-width: 0; }
.queue-item .qtitle { font-size: 15px; font-weight: 500; }
.queue-item .qdetail { font-size: 13px; color: var(--text-2); margin-top: 4px; max-width: 68ch; text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.queue-clear { display: flex; align-items: flex-start; gap: 13px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--border); padding: 22px 2px; }
.queue-clear .glyph { color: var(--s-good); font-size: 17px; line-height: 1.4; }
.queue-clear .qtitle { font-size: 15px; font-weight: 500; }
.queue-clear .qdetail { font-size: 13px; color: var(--text-2); margin-top: 3px; max-width: 60ch; }

.figures { border-top: 1px solid var(--rule); }
.figure { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.figure .k { font-size: 13px; color: var(--text-2); }
.figure .v { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.figure .v.zero { color: var(--text-3); }
.figure-note { font-size: 12px; color: var(--text-3); margin-top: 8px; }
progress.progreso { display: block; width: 100%; height: 4px; margin-bottom: 12px; appearance: none; border: none; background: var(--border); border-radius: 99px; overflow: hidden; }
progress.progreso::-webkit-progress-bar { background: var(--border); }
progress.progreso::-webkit-progress-value { background: var(--s-good); }
progress.progreso::-moz-progress-bar { background: var(--s-good); }

/* ── Paneles, formularios y botones ──────────────────────────── */

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px 24px; margin-bottom: 16px; }
.card h2 { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.card .lede { font-size: 13.5px; color: var(--text-2); margin: -4px 0 16px; max-width: 66ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 0 18px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(0.5px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: var(--ink-contrast); }
.btn-primary:hover:not(:disabled) { opacity: .86; }
.btn-secondary { background: none; border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover:not(:disabled) { border-color: var(--text-3); }
.btn-danger { background: none; border-color: var(--s-bad); color: var(--s-bad); }
.btn-danger:hover:not(:disabled) { background: var(--s-bad-bg); }
.btn-sm { padding: 0 14px; font-size: 13px; }
.btn-ancho { width: 100%; }
.btn-group { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.form-input {
  width: 100%; min-height: 44px; padding: 10px 12px; font-family: var(--sans); font-size: 16px; line-height: 1.45;
  background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--r-sm); transition: border-color .15s;
}
textarea.form-input { resize: vertical; }
.form-input:focus { outline: none; border-color: var(--text-3); }
.form-input::placeholder { color: var(--text-3); }
.form-input.corto { max-width: 140px; }
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 150px; }
fieldset.form-group { border: 0; padding: 0; min-width: 0; }
.paises { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; }
.pais { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; cursor: pointer; }
.pais input { width: 18px; height: 18px; accent-color: var(--ink); }
.nota { font-size: 12.5px; color: var(--text-3); margin-top: 6px; max-width: 66ch; }
.test-result { font-size: 13.5px; margin-top: 12px; padding: 10px 13px; border-radius: var(--r-sm); border: 1px solid transparent; }
#c-estado-gmail { margin: 0 0 16px; }
.test-result.success { background: var(--s-good-bg); color: var(--s-good); border-color: var(--s-good-line); }
.test-result.error { background: var(--s-bad-bg); color: var(--s-bad); border-color: var(--s-bad-line); }
.test-result.pending { background: var(--panel-raised); color: var(--text-2); border-color: var(--border); }

/* ── Estado: lo único con color ──────────────────────────────── */

.badge { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 3px 7px; border-radius: 2px; border: 1px solid transparent; white-space: nowrap; flex: none; }
.badge.t-waiting { background: var(--s-wait-bg); color: var(--s-wait); border-color: var(--s-wait-line); }
.badge.t-active { background: var(--s-active-bg); color: var(--s-active); border-color: var(--s-active-line); }
.badge.t-good { background: var(--s-good-bg); color: var(--s-good); border-color: var(--s-good-line); }
.badge.t-bad { background: var(--s-bad-bg); color: var(--s-bad); border-color: var(--s-bad-line); }
.badge.t-idle { background: var(--panel-raised); color: var(--text-3); border-color: var(--border); }
.badge.t-note { background: var(--s-note-bg); color: var(--s-note); border-color: var(--s-note-line); }

/* ── Prospectos ──────────────────────────────────────────────── */

.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filtro {
  min-height: 44px; padding: 0 14px; background: none; border: 1px solid var(--border-strong); border-radius: 99px;
  color: var(--text-2); font-family: var(--sans); font-size: 13.5px; cursor: pointer;
}
.filtro[aria-pressed='true'] { background: var(--ink); color: var(--ink-contrast); border-color: var(--ink); }

.prospecto { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 16px; scroll-margin-top: 12px; }
.prospecto.foco { border-color: var(--text-3); box-shadow: var(--shadow); }
.p-cabeza { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.p-cabeza h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.014em; line-height: 1.2; }
.p-sub { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.hallazgos { list-style: none; border-top: 1px solid var(--rule); margin-bottom: 16px; }
.hallazgos li { padding: 11px 0; border-bottom: 1px solid var(--border); }
.h-texto { font-size: 14.5px; }
.h-dato { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.h-dato b { color: var(--text-2); font-weight: 500; }
textarea.mensaje { min-height: 120px; line-height: 1.6; overflow: hidden; resize: none; }
textarea.mensaje.alto { min-height: 170px; }
.mail-auto { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 4px; }
.mail-auto summary { min-height: 44px; display: flex; align-items: center; font-size: 13.5px; color: var(--text-2); }
.mail-auto .form-label { margin-top: 10px; }
.descarte { margin-top: 14px; padding: 14px; background: var(--panel-raised); border-radius: var(--r-sm); }
.descarte .form-input + .form-input { margin-top: 10px; }
.p-motivo, .p-biblioteca { font-size: 13px; margin-top: 12px; }
.p-biblioteca a { color: var(--text-2); }

/* ── Emails ──────────────────────────────────────────────────── */

.interruptor { display: flex; align-items: center; gap: 14px; min-height: 44px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--panel); cursor: pointer; font-size: 14px; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor .pista { flex: none; width: 46px; height: 26px; border-radius: 99px; background: var(--border-strong); position: relative; transition: background .15s; }
.interruptor .pista::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--panel); transition: transform .15s; }
.interruptor input:checked + .pista { background: var(--s-bad); }
.interruptor input:checked + .pista::after { transform: translateX(20px); }
.interruptor input:focus-visible + .pista { outline: 2px solid var(--ink); outline-offset: 2px; }
.interruptor .texto { font-size: 14px; line-height: 1.4; }
.interruptor .texto .muted { font-size: 12.5px; }
.mail-item { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 12px; }
.mail-cabeza { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mail-para { font-size: 13px; font-family: var(--mono); color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mail-asunto { font-size: 15px; font-weight: 500; margin: 8px 0 4px; }
.mail-cuerpo { font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; line-height: 1.65; }
.mail-fecha { font-size: 12px; margin-top: 8px; }
.burbuja { margin-top: 10px; padding: 11px 14px; border-radius: var(--r-md); font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; max-width: 92%; }
.burbuja.recibido { background: var(--bg); border: 1px solid var(--border); }
.burbuja.enviado { background: var(--panel-raised); border: 1px solid var(--border); margin-left: auto; }
.burbuja.aparte { background: var(--s-wait-bg); border: 1px solid var(--s-wait-line); }
.quien-habla { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-bottom: 4px; }

/* ── Ayuda, tablas y vacíos ──────────────────────────────────── */

.help-section { margin-bottom: 28px; }
.help-section h2 { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -0.014em; margin-bottom: 9px; }
.help-section p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 9px; max-width: 70ch; }
ol.pasos { list-style: none; counter-reset: paso; border-top: 1px solid var(--rule); margin: 12px 0; max-width: 70ch; }
ol.pasos li { counter-increment: paso; position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-2); line-height: 1.6; }
ol.pasos li::before { content: counter(paso); position: absolute; left: 0; top: 14px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--text); }
ol.pasos b { color: var(--text); font-weight: 500; }
.table-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--text-3); padding: 10px 15px; border-bottom: 1px solid var(--border-strong); }
td { padding: 11px 15px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: none; }
th.num, td.num { font-family: var(--mono); text-align: right; }
.empty { text-align: center; padding: 42px 22px; border: 1px dashed var(--border-strong); border-radius: var(--r-md); }
.empty .glyph { font-size: 20px; color: var(--text-3); margin-bottom: 12px; }
.empty .title { font-family: var(--serif); font-size: 19px; margin-bottom: 6px; }
.empty .copy { font-size: 13.5px; color: var(--text-3); line-height: 1.65; max-width: 46ch; margin: 0 auto; text-wrap: pretty; }
.empty .copy b { color: var(--text-2); font-weight: 500; }

/* ── Ingreso ─────────────────────────────────────────────────── */

.ingreso { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px var(--gut); }
.ingreso-card { width: 100%; max-width: 440px; padding: 28px; }
.ingreso-card .brand { margin-bottom: 26px; }
.ingreso-paso h2 { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -0.015em; margin-bottom: 8px; }
.ingreso-paso .btn + .btn { margin-top: 10px; }
.codigo-input { font-family: var(--mono); font-size: 26px; letter-spacing: 0.35em; text-align: center; min-height: 56px; }

/* ── Avisos ──────────────────────────────────────────────────── */

.avisos { position: fixed; bottom: 22px; right: 22px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; font-weight: 450; box-shadow: var(--shadow); animation: toast-in .25s cubic-bezier(.16,1,.3,1); max-width: 380px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast.success { background: var(--ink); color: var(--ink-contrast); }
.toast.error { background: var(--s-bad); color: #fff; }

details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: '+ '; font-family: var(--mono); color: var(--text-3); margin-right: 6px; }
details[open] summary::before { content: '– '; }

/* ── Celular (380 px): una columna, nada se corta ────────────── */

@media (max-width: 700px) {
  :root { --gut: 16px; }
  #app > header { padding-top: 12px; padding-bottom: 10px; }
  .brand .tagline, .quien { display: none; }
  nav { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; }
  nav button { border-bottom: 1px solid var(--border); }
  nav button { margin: 0; padding: 0 4px; font-size: 13.5px; }
  nav button.active { background: var(--panel-raised); }
  main { padding-top: 22px; }
  .section-head h2 { font-size: 27px; }
  .card, .prospecto { padding: 16px; }
  .btn-group > .btn, .btn-group > a.btn { flex: 1 1 calc(50% - 5px); padding: 0 8px; }
  .queue-item { flex-wrap: wrap; }
  .queue-item .btn { width: 100%; margin-left: 20px; }
  .avisos { left: 16px; right: 16px; bottom: 16px; align-items: stretch; }
  .toast { max-width: none; }
  .burbuja { max-width: 100%; }
  .form-input.corto { max-width: none; }
  th, td { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
