/* ============================================================================
   ODONTO · panel de la clínica (Manu Tiaki) — piel clínica clara + modo oscuro
   Colores de la marca: turquesa del isotipo y azul profundo del logotipo.
   ========================================================================== */
:root {
  --bg: #F4F8F8; --surface: #FFFFFF; --surface-2: #F7FBFA; --line: #DDE8E7; --line-2: #C9D9D7;
  --ink: #17283A; --ink-2: #4A5C6A; --muted: #7B8C98;
  --brand: #13877E; --brand-strong: #0E6E66; --brand-soft: #E3F4F2; --navy: #1B3A78; --navy-soft: #E8EEF8;
  --ok: #1F8A4C; --ok-soft: #E3F4EA; --warn: #A86A00; --warn-soft: #FFF3D6; --bad: #C2413A; --bad-soft: #FCE8E6;
  --info: #2D6CB5; --info-soft: #E6EFFA; --closed: #EEF2F3; --lunch: repeating-linear-gradient(135deg, #F1F5F5 0 6px, #E8EEEE 6px 12px);
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(23,40,58,.06), 0 6px 24px rgba(23,40,58,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1A1F; --surface: #15232A; --surface-2: #192A32; --line: #24373F; --line-2: #2E4650;
    --ink: #E6EEF0; --ink-2: #B3C3C9; --muted: #7F949C;
    --brand: #3BB8AC; --brand-strong: #5CCCC1; --brand-soft: #173A3A; --navy: #8EA9E6; --navy-soft: #1E2A44;
    --ok: #4CC38A; --ok-soft: #173326; --warn: #E8B44A; --warn-soft: #3A2E12; --bad: #F08A80; --bad-soft: #3D1E1C;
    --info: #79A8E8; --info-soft: #1B2B42; --closed: #12202A; --lunch: repeating-linear-gradient(135deg, #14232B 0 6px, #182A33 6px 12px);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1A1F; --surface: #15232A; --surface-2: #192A32; --line: #24373F; --line-2: #2E4650;
  --ink: #E6EEF0; --ink-2: #B3C3C9; --muted: #7F949C;
  --brand: #3BB8AC; --brand-strong: #5CCCC1; --brand-soft: #173A3A; --navy: #8EA9E6; --navy-soft: #1E2A44;
  --ok: #4CC38A; --ok-soft: #173326; --warn: #E8B44A; --warn-soft: #3A2E12; --bad: #F08A80; --bad-soft: #3D1E1C;
  --info: #79A8E8; --info-soft: #1B2B42; --closed: #12202A; --lunch: repeating-linear-gradient(135deg, #14232B 0 6px, #182A33 6px 12px);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-strong); }
.oculto { display: none !important; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ── Controles ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: var(--radius-sm); padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 13.5px; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--brand); }
.btn:focus-visible, .campo:focus-visible, .chip:focus-visible, .nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn.primario { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primario:hover { background: var(--brand-strong); }
.btn.peligro { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line-2)); }
.btn.peligro:hover { background: var(--bad-soft); }
.btn.ok { color: var(--ok); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn.fantasma { border-color: transparent; background: transparent; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.campo { width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius-sm); padding: 9px 11px; min-height: 40px; }
textarea.campo { min-height: 80px; resize: vertical; }
label.lbl { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 0 0 5px; }
.fila { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 12px; }
.ayuda { font-size: 12px; color: var(--muted); margin-top: 4px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 13px; }
.switch input { width: 36px; height: 20px; appearance: none; background: var(--line-2); border-radius: 20px; position: relative; cursor: pointer; transition: background .15s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { left: 18px; }

/* ── Login ── */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(180deg, var(--brand-soft), var(--bg) 60%); }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 30px 26px; }
.login-card img { display: block; width: 220px; max-width: 70%; margin: 0 auto 6px; }
.login-card h1 { font-size: 15px; text-align: center; color: var(--ink-2); font-weight: 600; margin: 4px 0 22px; }
.login-card .campo { margin-bottom: 12px; }
.login-card .btn { width: 100%; padding: 11px; }
.error { color: var(--bad); font-size: 13px; min-height: 20px; margin-top: 8px; text-align: center; }

/* ── Estructura ── */
.app { display: grid; grid-template-columns: 232px 1fr; grid-template-rows: 60px 1fr; min-height: 100%; }
.top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 18px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.top .logo { height: 34px; }
.top .logo-osc { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .top .logo-cla { display: none; } :root:not([data-theme="light"]) .top .logo-osc { display: block; } }
:root[data-theme="dark"] .top .logo-cla { display: none; } :root[data-theme="dark"] .top .logo-osc { display: block; }
.top .espacio { flex: 1; }
.top .quien { font-size: 13px; color: var(--ink-2); text-align: right; line-height: 1.2; }
.top .quien b { display: block; color: var(--ink); }
.demo-pill { background: var(--warn-soft); color: var(--warn); border-radius: 20px; font-size: 11px; font-weight: 700; padding: 3px 9px; letter-spacing: .5px; }
.nav { background: var(--surface); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 60px; height: calc(100vh - 60px); }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; }
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: var(--brand-soft); color: var(--brand-strong); }
.nav a .badge { margin-left: auto; }
.nav .pie { margin-top: auto; font-size: 11.5px; color: var(--muted); padding: 10px 12px; }
.badge { background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 7px; min-width: 20px; text-align: center; }
.main { padding: 22px 26px 60px; min-width: 0; }
.cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cab h2 { margin: 0; font-size: 22px; letter-spacing: -.2px; }
.cab p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 18px; }
.card h3 { font-size: 14px; margin: 0 0 12px; }

/* ── Tarjetas de resumen ── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; cursor: default; }
.kpi[data-ir] { cursor: pointer; }
.kpi[data-ir]:hover { border-color: var(--brand); }
.kpi .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi .v { font-size: 24px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .m { font-size: 12px; color: var(--ink-2); }
.kpi.alerta .v { color: var(--bad); }
.kpi.marca .v { color: var(--brand-strong); }

/* ── Pastillas de estado ── */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.e-pendiente { background: var(--warn-soft); color: var(--warn); }
.e-confirmada { background: var(--brand-soft); color: var(--brand-strong); }
.e-esperando_deposito { background: var(--info-soft); color: var(--info); }
.e-completada { background: var(--ok-soft); color: var(--ok); }
.e-cancelada, .e-no_asistio { background: var(--bad-soft); color: var(--bad); }
.e-bloqueo { background: var(--closed); color: var(--ink-2); }

/* ── Barra de herramientas de la agenda ── */
.barra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 7px 13px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--brand); color: #fff; }
.rango { font-weight: 700; font-size: 15px; min-width: 190px; }
.barra .espacio { flex: 1; }
.leyenda { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-2); margin: 8px 2px 0; }
.leyenda span { display: inline-flex; align-items: center; gap: 5px; }
.leyenda i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ── Calendario (día / semana) ── */
.cal { --hora: 72px; display: grid; grid-template-columns: 56px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cal-cab { display: grid; grid-column: 2; border-bottom: 1px solid var(--line); background: var(--surface); }
.cal-cab .dia { padding: 9px 8px; text-align: center; font-size: 12px; color: var(--ink-2); border-left: 1px solid var(--line); cursor: pointer; }
.cal-cab .dia b { display: block; font-size: 18px; color: var(--ink); line-height: 1.2; }
.cal-cab .dia.hoy b { color: #fff; background: var(--brand); border-radius: 50%; width: 30px; height: 30px; line-height: 30px; margin: 2px auto 0; font-size: 15px; }
.cal-cab .dia .prof { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ink); font-size: 12.5px; }
.cal-cab .dia .prof i { width: 8px; height: 8px; border-radius: 50%; }
.cal-horas { grid-column: 1; position: relative; }
.cal-horas div { height: var(--hora); font-size: 11px; color: var(--muted); text-align: right; padding: 0 8px; transform: translateY(-7px); }
.cal-cuerpo { grid-column: 2; display: grid; position: relative; }
.cal-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(color-mix(in srgb, var(--line) 50%, transparent) 1px, transparent 1px); background-size: 100% var(--hora), 100% calc(var(--hora) / 2); touch-action: pan-y; }
.cal-col.cerrado { background-color: var(--closed); }
.cal-col .fuera { position: absolute; left: 0; right: 0; background: var(--closed); opacity: .85; pointer-events: none; }
.cal-col .colacion { position: absolute; left: 0; right: 0; background: var(--lunch); pointer-events: none; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); font-weight: 600; }
.cal-col .ahora { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 3; pointer-events: none; }
.cal-col .ahora::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.ev { position: absolute; left: 3px; right: 3px; border-radius: 7px; padding: 4px 7px; font-size: 12px; line-height: 1.25; overflow: hidden; cursor: grab; border: 1px solid transparent; border-left: 4px solid var(--prof, var(--brand)); box-shadow: 0 1px 2px rgba(23,40,58,.08); z-index: 2; user-select: none; }
.ev b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.ev.e-pendiente { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.ev.e-confirmada { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.ev.e-esperando_deposito { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.ev.e-completada { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); opacity: .85; cursor: pointer; }
.ev.e-no_asistio { background: var(--bad-soft); opacity: .8; cursor: pointer; }
.ev.e-bloqueo { background: var(--closed); border-left-color: var(--muted); border-style: dashed; border-left-style: solid; color: var(--ink-2); }
.ev.arrastrando { opacity: .9; box-shadow: 0 8px 24px rgba(23,40,58,.25); z-index: 10; cursor: grabbing; }
.ev b .hr { display: inline; font-weight: 700; color: var(--ink); margin-right: 3px; }
.fantasma-ev { position: absolute; left: 3px; right: 3px; border: 2px dashed var(--brand); border-radius: 7px; background: color-mix(in srgb, var(--brand) 8%, transparent); pointer-events: none; z-index: 1; font-size: 11px; font-weight: 700; color: var(--brand-strong); padding: 2px 6px; }

/* ── Mes ── */
.mes { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mes .dsem { padding: 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.mes .celda { min-height: 96px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 6px 7px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.mes .celda:nth-child(7n+1) { border-left: 0; }
.mes .celda:hover { background: var(--surface-2); }
.mes .celda.otro { color: var(--muted); background: color-mix(in srgb, var(--closed) 60%, transparent); }
.mes .celda.cerrado { background: var(--closed); }
.mes .celda .n { font-weight: 700; font-size: 13px; }
.mes .celda.hoy .n { color: #fff; background: var(--brand); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; }
.mes .ocup { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: auto; }
.mes .ocup i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.mes .resumen { font-size: 11.5px; color: var(--ink-2); }

/* ── Tablas ── */
.tabla-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-size: 11.5px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.clic { cursor: pointer; }
table.t tr.clic:hover td { background: var(--surface-2); }
table.t .acciones { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.vacio { padding: 34px 16px; text-align: center; color: var(--muted); }

/* ── Avisos (escalamientos) ── */
.avisos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.aviso { padding: 15px 16px; border-left: 4px solid var(--warn); }
.aviso.critico { border-left-color: var(--bad); }
.aviso.foto { border-left-color: var(--info); }
.aviso.cerrado, .aviso.respondido { opacity: .65; }
.aviso .tit { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; }
.aviso .tit .espacio { flex: 1; }
.aviso p { margin: 4px 0; font-size: 13px; color: var(--ink-2); }
.aviso .cita { font-style: italic; color: var(--ink); }
.aviso .resp { background: var(--brand-soft); border-radius: 8px; padding: 7px 9px; font-size: 12.5px; margin-top: 8px; }
.nota { background: var(--navy-soft); color: var(--navy); border-radius: var(--radius-sm); padding: 10px 13px; font-size: 13px; margin-bottom: 14px; }

/* ── Gráficos (contabilidad) ── */
.graf { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 14px; }
.barras-v { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding: 8px 4px 0; border-bottom: 1px solid var(--line-2); }
.barras-v .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.barras-v .b i { width: 100%; max-width: 44px; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.barras-v .b i.actual { background: var(--navy); }
.barras-v .b .val { font-size: 11px; color: var(--ink-2); margin-bottom: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.barras-v-et { display: flex; gap: 10px; padding: 6px 4px 0; }
.barras-v-et span { flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); }
.barras-h { display: grid; gap: 8px; }
.barras-h .r { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.barras-h .r .et { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.barras-h .r .pista { height: 12px; }
.barras-h .r .pista i { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; min-width: 2px; }
.barras-h .r .val { font-variant-numeric: tabular-nums; font-weight: 600; }
.tip { position: fixed; pointer-events: none; background: var(--ink); color: var(--surface); font-size: 12px; padding: 6px 9px; border-radius: 6px; z-index: 100; white-space: nowrap; }

/* ── Ajustes ── */
.ajustes { display: grid; grid-template-columns: 210px 1fr; gap: 18px; align-items: start; }
.ajustes .menu { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; }
.ajustes .menu a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; cursor: pointer; font-size: 13.5px; }
.ajustes .menu a.on { background: var(--brand-soft); color: var(--brand-strong); }
.ajustes section { margin-bottom: 18px; }
.ajustes h3 { font-size: 16px; margin: 0 0 4px; }
.ajustes .sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.guardar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.horario-dia { display: grid; grid-template-columns: 120px 1fr 1fr; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.horario-dia:last-child { border-bottom: 0; }
.trat-tabla .campo { min-height: 34px; padding: 6px 8px; }
.color-punto { width: 14px; height: 14px; border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 6px; }

/* ── Panel lateral / modal ── */
.velo { position: fixed; inset: 0; background: rgba(15,26,31,.45); z-index: 60; display: flex; justify-content: flex-end; }
.velo.centro { justify-content: center; align-items: center; padding: 16px; }
.lateral { width: min(460px, 100%); height: 100%; background: var(--surface); box-shadow: var(--shadow); padding: 22px; overflow-y: auto; animation: entra .18s ease-out; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 22px; }
@keyframes entra { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.lateral h3, .modal h3 { margin: 0 0 4px; font-size: 18px; }
.lateral .cerrar, .modal .cerrar { float: right; }
.dato { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.dato span:first-child { color: var(--muted); }
.botonera { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 10px; font-size: 13.5px; z-index: 120; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.mal { background: var(--bad); color: #fff; }

/* ── Celular ── */
.tabbar { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 56px 1fr; }
  .top { padding: 0 14px; height: 56px; }
  .top .logo { height: 28px; }
  .top .quien { display: none; }
  .nav { display: none; }
  .main { padding: 16px 16px 90px; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 40; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); overflow-x: auto; }
  .tabbar a { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 6px 2px; text-decoration: none; position: relative; cursor: pointer; }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar a.on { color: var(--brand-strong); }
  .tabbar a .badge { position: absolute; top: 2px; right: 10px; font-size: 10px; padding: 0 5px; }
  .cab h2 { font-size: 19px; }
  .cal { --hora: 60px; grid-template-columns: 44px 1fr; }
  .rango { min-width: 0; font-size: 14px; width: 100%; order: -1; }
  .ajustes { grid-template-columns: 1fr; }
  .ajustes .menu { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .ajustes .menu a { white-space: nowrap; }
  .horario-dia { grid-template-columns: 90px 1fr 1fr; }
  .mes .celda { min-height: 64px; padding: 4px; }
  .mes .resumen { display: none; }
  .ocultar-cel { display: none; }
  .kpis { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .kpis .kpi { flex: 0 0 46%; scroll-snap-align: start; }
}
