/* =====================================================================
   Quantum Psicología Internacional — estilos
   Paleta tomada del logo, con bloques de color firmes (no pastel):
   azul marino profundo, turquesa, turquesa oscuro y dorado.
   Arial muy legible, foco amarillo visible, alineación a la izquierda.
   ===================================================================== */
:root {
  --navy: #0c2f4f;          /* azul marino del logo: héroe, títulos, pie */
  --navy-2: #163f66;        /* azul marino claro: paneles sobre marino */
  --teal: #127a80;          /* turquesa: botones y enlaces (contraste AA con blanco) */
  --teal-dark: #0b4f55;     /* turquesa profundo: banda "Cómo funciona" */
  --teal-light: #2fa3a6;    /* turquesa vivo del logo: detalles */
  --gold: #e3a43a;          /* dorado del logo: llamadas a la acción y números */
  --gold-dark: #b8801f;
  --sand: #f6f3ee;          /* neutro cálido para secciones alternadas */
  --grey-bg: #f2f5f6;
  --line: #d4dde0;
  --ink: #1c2730;
  --muted: #475d6b;
  --focus: #ffd60a;
  --urgent: #c8102e;
  --wa: #128c4a;            /* verde WhatsApp oscuro (contraste AA) */
  --ok-bg: #e2f2e7;  --ok-ink: #155a31;
  --err-bg: #fbe6e8; --err-ink: #a10e26;
  --surface: #ffffff;
  --radius: 8px;
  /* alias usados en páginas internas */
  --blue: var(--teal); --blue-dark: var(--navy); --blue-soft: #e3f1f1;
  --brand: var(--teal); --brand-soft: #e3f1f1; --bg: var(--grey-bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 17px/1.55 Arial, "Helvetica Neue", Helvetica, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
@media (min-width: 760px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); text-decoration-thickness: 3px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.18; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0 0 18px; letter-spacing: -.015em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); margin: 0 0 14px; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
p { margin: 0 0 16px; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 4px solid transparent; background-color: var(--focus) !important; color: #0b0c0c !important;
  box-shadow: 0 -2px var(--focus), 0 4px #0b0c0c; text-decoration: none;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 2px #0b0c0c;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; padding: 10px 14px; background: var(--focus); color: #0b0c0c; z-index: 10; }
.skip:focus { left: 8px; }
.inner { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---- Barra superior ---- */
.utility { background: var(--navy); font-size: .86rem; }
.utility .inner { display: flex; gap: 6px 22px; align-items: center; justify-content: flex-end; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; color: #fff; }
.utility .urgent { background: var(--urgent); padding: 4px 12px; border-radius: 4px; font-weight: 700; margin-right: auto; }
.utility .urgent:hover { background: #a50d26; text-decoration: none; }
.utility .staff-link { opacity: .85; }
.lang { border: 1px solid rgba(255,255,255,.45); border-radius: 4px; padding: 2px 6px; background: transparent; color: #fff; font: inherit; margin: 0; width: auto; display: inline-block; }
.lang option { color: var(--ink); }

/* ---- Encabezado ---- */
.top { background: #fff; border-bottom: 5px solid var(--teal-light); }
.top .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); text-decoration: none; }
.brand:hover { color: var(--navy); }
.logo-mark { width: 81px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 2rem; letter-spacing: .05em; color: var(--navy); }
.brand-text span { font-size: 1.05rem; color: var(--navy); }
.portal-tag { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--gold-dark); margin-top: 4px; }
.top nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.top nav a { color: var(--navy); text-decoration: none; font-weight: 700; font-size: .95rem; }
.top nav a:hover { text-decoration: underline; color: var(--teal); }
.top nav .btn { color: #fff; }
.top nav .btn:hover { color: #fff; text-decoration: none; }
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .logo-mark { width: 58px; }
  .brand-text strong { font-size: 1.45rem; }
  .brand-text span { font-size: .88rem; }
}

/* ---- Contenido ---- */
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 34px 22px 60px; flex: 1; }
main.full { flex: 1; }

/* ---- Portada: héroe ---- */
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center; padding-top: 60px; padding-bottom: 64px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; padding-top: 38px; padding-bottom: 44px; gap: 32px; } }
.lead { font-size: 1.22rem; max-width: 40ch; margin-bottom: 28px; color: #e8eef4; }
.hero-photo { margin: 0 -56px 0 0; position: relative; }
@media (max-width: 1100px) { .hero-photo { margin-right: 0; } }
.hero-photo img { width: 100%; height: auto; display: block; border-radius: 10px; }
.hero-photo figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--teal); color: #fff; font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 4px; }
.clock { margin-top: 30px; background: var(--navy-2); border-left: 6px solid var(--gold); padding: 16px 20px; max-width: 460px; }
.clock h2 { font-size: 1rem; margin: 0 0 4px; color: #cfe0ee; font-weight: 700; }
.clock-range { display: flex; align-items: center; gap: 14px; font-size: clamp(2rem, 4.2vw, 2.7rem); font-weight: 700; color: #fff; line-height: 1.1; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.clock-range .dash { display: inline-block; width: 26px; height: 4px; background: var(--gold); }
.clock-where { font-weight: 700; color: var(--gold); margin: 0; }
.clock-note { font-size: .86rem; color: #cfe0ee; margin: 4px 0 0; }

.video-strip { background: var(--teal); color: #fff; }
.video-strip .inner { display: flex; gap: 16px; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.video-strip svg { width: 34px; height: 34px; flex: none; }
.video-strip p { margin: 0; font-weight: 700; font-size: 1.02rem; }

/* ---- Bandas ---- */
.band { padding: 64px 0; }
.band.alt { background: var(--sand); }
.band.deep { background: var(--teal-dark); color: #fff; }
.band.deep h2, .band.deep h3 { color: #fff; }
.section-lead { max-width: 60ch; color: var(--muted); margin-bottom: 30px; font-size: 1.05rem; }
.narrow-inner { max-width: 860px; }

.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.tile { position: relative; display: block; height: 100%; padding: 22px 54px 22px 24px; background: var(--surface); border: 1px solid var(--line);
        border-top: 6px solid var(--teal); text-decoration: none; color: var(--ink); }
.tiles li:nth-child(3n+2) .tile { border-top-color: var(--gold); }
.tiles li:nth-child(3n) .tile { border-top-color: var(--navy); }
.tile:hover { background: #f7fbfb; color: var(--ink); box-shadow: 0 6px 0 var(--line); }
.tile-title { display: block; font-weight: 700; font-size: 1.15rem; color: var(--navy); margin-bottom: 6px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--teal-light); }
.tile:hover .tile-title { text-decoration-thickness: 3px; }
.tile-text { display: block; font-size: .95rem; color: var(--muted); }
.chev { position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; color: var(--teal); }

.how-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 52px; align-items: center; }
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; gap: 28px; } }
.how-photo { margin: 0; }
.how-photo img { width: 100%; border-radius: 10px; box-shadow: -14px 14px 0 var(--gold); }
.steps-row { list-style: none; counter-reset: s; padding: 0; margin: 0 0 30px; display: grid; gap: 22px; }
.steps-row li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
.steps-row li::before { content: counter(s); grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--navy);
                        font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps-row h3 { margin: 4px 0 4px; }
.steps-row p { color: #d7e9ea; margin: 0; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.split p { max-width: 62ch; }
.facts-list { margin: 0; display: grid; gap: 18px; }
.facts-list div { border-left: 5px solid var(--gold); padding-left: 16px; }
.facts-list dt { font-weight: 700; color: var(--navy); }
.facts-list dd { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

.team-head { display: flex; align-items: center; gap: 14px; margin: 54px 0 20px; flex-wrap: wrap; }
.team-title { font-size: 1.5rem; margin: 0; }
.sample-flag { background: #fff3cd; color: #6b4a00; border: 1px solid #e8c770; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 4px; }
.team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.person { display: grid; grid-template-columns: 110px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.person img { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; border: 4px solid var(--teal-light); }
.person h4 { margin: 2px 0 2px; font-size: 1.05rem; }
.person .area { color: var(--teal); font-weight: 700; font-size: .9rem; margin: 0; }
.person .years { color: var(--muted); font-size: .85rem; margin: 0 0 8px; }
.person blockquote { margin: 0; padding: 0; border: 0; background: none; font-size: .92rem; color: var(--ink); }

.photo-band { background: var(--navy); color: #fff; }
.photo-band h2 { color: #fff; }
.photo-band p { color: #e3ecf3; max-width: 52ch; }
.photo-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .photo-band-grid { grid-template-columns: 1fr; gap: 26px; } }
.photo-band img { border-radius: 10px; width: 100%; box-shadow: 14px 14px 0 var(--teal-light); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--teal); margin-bottom: 10px; border-radius: 6px; }
.faq summary { cursor: pointer; padding: 18px 46px 18px 18px; font-weight: 700; color: var(--navy); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
                      border-right: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 18px 18px; margin: 0; max-width: 64ch; }

.urgent-band { background: #fff; border-top: 8px solid var(--urgent); padding: 46px 0; }
.urgent-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 900px) { .urgent-grid { grid-template-columns: 1fr; } }
.urgent-band h2 { color: var(--urgent); }
.urgent-band p { max-width: 68ch; }

/* ---- Pie ---- */
.foot { background: var(--navy); color: #fff; padding: 40px 0 30px; font-size: .9rem; margin-top: auto; border-top: 6px solid var(--gold); }
.foot .inner { display: grid; gap: 20px; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-logo { background: #fff; border-radius: 50%; padding: 7px; display: inline-flex; flex: none; }
.foot-logo .logo-mark { width: 48px; }
.foot-brand p { margin: 2px 0 0; opacity: .9; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: #fff; }
.foot a:hover { color: var(--gold); }
.copy { opacity: .8; margin: 0; }

/* ---- Ingreso y registro de clientes ---- */
.auth { display: grid; grid-template-columns: 1fr 1.1fr; max-width: 1080px; margin: 0 auto; border-radius: 12px; overflow: hidden;
        box-shadow: 0 10px 0 var(--line); border: 1px solid var(--line); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } }
.auth-side { background: var(--navy); color: #fff; display: flex; flex-direction: column; }
.auth-side img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.auth-side-text { padding: 26px 28px 30px; border-top: 6px solid var(--gold); flex: 1; }
.auth-side h2 { color: #fff; font-size: 1.5rem; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.auth-side li { padding-left: 30px; position: relative; color: #e3ecf3; }
.auth-side li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 9px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.card.auth-card { margin: 0; border: 0; border-radius: 0; padding: 34px 34px 30px; border-top: 6px solid var(--teal); }
@media (max-width: 860px) { .auth-side img { aspect-ratio: 16 / 7; } .card.auth-card { padding: 24px 20px; } }

/* ---- Componentes ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.card.narrow { max-width: 600px; margin-left: auto; margin-right: auto; }
.card.emergency { border-color: var(--urgent); border-left-width: 6px; background: var(--err-bg); }
.staff-login { border-top: 6px solid var(--navy); }
@media (max-width: 560px) { .card { padding: 18px; } }

form label { display: block; margin-bottom: 16px; font-weight: 700; font-size: .95rem; color: var(--ink); }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  font: inherit; font-weight: 400; color: var(--ink);
  background: #fff; border: 2px solid #4c6272; border-radius: 4px;
}
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 10px; }
label.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--teal); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
legend { font-weight: 700; padding: 0 6px; color: var(--navy); }
.reasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 16px; margin-bottom: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; align-items: end; }
.row3 .btn { margin-bottom: 16px; }
@media (max-width: 720px) { .row2, .row3 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--teal); color: #fff; border: 0; border-radius: 6px;
  padding: 12px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--teal-dark); margin-bottom: 4px;
}
.btn:hover { background: #0e6469; color: #fff; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--teal-dark); }
.btn.big { font-size: 1.1rem; padding: 15px 28px; }
.btn.small { padding: 7px 14px; font-size: .9rem; box-shadow: none; margin: 0; }
.btn.gold { background: var(--gold); color: var(--navy); box-shadow: 0 4px 0 var(--gold-dark); }
.btn.gold:hover { background: #f0b552; color: var(--navy); }
.btn.outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn.outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn.ghost { background: #fff; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal), 0 4px 0 var(--line); }
.btn.ghost:hover { background: #e3f1f1; color: var(--navy); }
.btn.whatsapp { background: var(--wa); box-shadow: 0 4px 0 #0b5e31; justify-self: start; }
.btn.whatsapp:hover { background: #0f7a40; }
.btn.whatsapp svg { width: 26px; height: 26px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.alert { border-radius: 4px; padding: 14px 16px; margin-bottom: 18px; border-left: 6px solid; }
.alert.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-ink); }
.alert.error { background: var(--err-bg); color: var(--err-ink); border-color: var(--err-ink); }
.notice { background: #e3f1f1; border-left: 6px solid var(--teal); padding: 12px 14px; font-size: .95rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.big { font-size: 1.3rem; font-weight: 700; }
.role { font-size: .85rem; color: var(--teal); font-weight: 700; margin: 0 0 4px; }
.plist { padding-left: 1.2em; }
.plist li { margin-bottom: 6px; }
.center-text { text-align: center; }

/* ---- Portal del equipo (administración, gerencia, psicólogos) ---- */
.is-staff { background: #e9eef2; }
.is-staff .top { background: var(--navy); border-bottom: 5px solid var(--gold); }
.is-staff .brand, .is-staff .brand-text strong, .is-staff .brand-text span { color: #fff; }
.is-staff .logo-mark { width: 64px; background: #fff; border-radius: 50%; padding: 5px; }
.is-staff .brand-text strong { font-size: 1.6rem; }
.is-staff .portal-tag { color: var(--gold); }
.is-staff .top nav a { color: #fff; }
.is-staff .top nav a:hover { color: var(--gold); }
.is-staff .wrap { max-width: 1180px; }
.is-staff .card { border-color: #c9d4da; }
.is-staff h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 24px; background: #fff; padding: 6px; border-radius: 8px; border: 1px solid #c9d4da; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: .9rem; border-radius: 6px; }
.tabs a:hover { background: #e3f1f1; color: var(--navy); }
.tabs a.on { background: var(--navy); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid #c9d4da; border-top: 6px solid var(--teal); padding: 16px 18px; border-radius: 8px; }
.stat:nth-child(2) { border-top-color: var(--gold); }
.stat:nth-child(3) { border-top-color: var(--navy); }
.stat:nth-child(4) { border-top-color: var(--teal-light); }
.stat .n { display: block; font-size: 2.2rem; font-weight: 700; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: .88rem; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.grid { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.grid th { text-align: left; font-size: .82rem; color: #fff; background: var(--navy); padding: 9px 10px; white-space: nowrap; }
table.grid td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid tbody tr:nth-child(even) td { background: #f6f9fa; }
table.grid.edit td { vertical-align: middle; }
table.grid.edit input { margin: 0; padding: 6px 8px; border-width: 1px; }
table.grid.money { max-width: 460px; margin: 12px 0; }
table.grid.money td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
input.num { text-align: right; font-variant-numeric: tabular-nums; min-width: 90px; }
input.short { width: 70px; min-width: 0; }
td.center { text-align: center; }
td.center input[type=checkbox] { width: 20px; height: 20px; margin: 0; display: inline-block; }
tr.warn-row td { background: #fff4cf !important; }
tr.off-row td { color: var(--muted); }
tr.off-row input:not([type=checkbox]) { color: var(--muted); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; vertical-align: middle; }
.tag.ok { background: var(--ok-bg); color: var(--ok-ink); }
.tag.warn { background: #ffe7a6; color: #5c3f00; }
.head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; font-size: .92rem; }
.filters a { color: var(--muted); }
.filters a.on { color: var(--navy); font-weight: 700; }
.settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 20px; }
.help { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 4px; }
p.label { font-weight: 700; font-size: .95rem; margin: 6px 0 8px; }
.sticky-save { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 2px; }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; cursor: pointer; text-decoration: underline; }
button.link.danger { color: var(--err-ink); }
code.pass { background: #e3f1f1; padding: 2px 8px; border-radius: 4px; font-size: 1.05rem; user-select: all; }
ul.todo { padding-left: 1.2em; margin: 0; }
ul.todo li { margin-bottom: 6px; }

/* ---- Agenda y reservas ---- */
.week { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.day { border: 1px solid var(--line); border-top: 5px solid var(--teal); padding: 10px 12px; background: #fff; border-radius: 6px; }
.day h3 { margin: 0 0 6px; font-size: .95rem; }
.slot-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; margin: 0 0 4px; }
.daypick { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.days { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
details.dayslots { border: 1px solid var(--line); border-left: 5px solid var(--teal); padding: 0 14px; border-radius: 6px; }
details.dayslots summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--navy); }
.times { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; }
label.time { display: inline-block; margin: 0; font-weight: 700; }
label.time input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.time span { display: inline-block; padding: 9px 16px; border: 2px solid var(--teal); border-radius: 6px; color: var(--teal); cursor: pointer; font-variant-numeric: tabular-nums; }
label.time input:checked + span { background: var(--teal); color: #fff; }
label.time input:focus-visible + span { background: var(--focus); color: #0b0c0c; border-color: #0b0c0c; }
.appt { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-left: 5px solid var(--gold); padding: 12px 14px; margin-bottom: 10px; border-radius: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
ul.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
ul.chips li { background: #e3f1f1; border-radius: 4px; padding: 4px 12px; font-size: .92rem; }
ul.chips li.warn { background: var(--err-bg); color: var(--err-ink); font-weight: 700; }
blockquote { margin: 0; padding: 10px 14px; border-left: 4px solid var(--teal); background: var(--grey-bg); }

/* Etapa 4: asignación, cancelación, calendario */
.card.highlight { border-left: 6px solid var(--gold); }
.copy-field { width: 100%; font-family: monospace; font-size: .85rem; padding: 10px; background: #f4f7f9; border: 1px solid var(--line); border-radius: 6px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form label { flex: 1 1 320px; margin: 0; }
.tiny-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.tiny-form select, .tiny-form input { width: auto; padding: 6px 8px; font-size: .9rem; margin: 0; }
.plist .btn.small { margin-left: 8px; }
details.cancel-box, details.cal-sub { border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; margin: 16px 0; }
details.cancel-box summary, details.cal-sub summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--navy); }
details.cal-sub { background: var(--surface); }

/* Ficha de una persona del equipo: resumen, accesos rápidos y secciones desplegables */
.person-head { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-end; justify-content: space-between; border-top: 6px solid var(--navy); }
.person-head h1 { margin: 2px 0 4px; }
.person-head p { margin: 0; }
.status-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.status-chips li { font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; }
.status-chips li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: currentColor; }
.status-chips .ok { background: var(--ok-bg); color: var(--ok-ink); }
.status-chips .warn { background: #fff1c9; color: #6b4a00; }
.status-chips .bad { background: var(--err-bg); color: var(--urgent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.tile h2 { margin: 0; font-size: 1.2rem; }
.tile p { margin: 0; flex: 1; }
.tile form, .tile .btn { margin: 0; align-self: flex-start; }
.tile .alert { margin: 0; }
details.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
details.panel > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 24px; font-size: 1.2rem; font-weight: 700; color: var(--navy); }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(45deg); margin-left: 8px; transition: transform .15s; }
details.panel[open] > summary::after { transform: rotate(-135deg); }
details.panel > summary:hover { background: #f4f8fa; }
details.panel[open] > summary { border-bottom: 1px solid var(--line); }
details.panel > summary > span:first-child { flex: 1; }
.sum-note { font-size: .85rem; font-weight: 400; color: var(--muted, #5a6b7b); }
.sum-note.warn { color: #6b4a00; font-weight: 700; }
.panel-body { padding: 20px 24px 24px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.is-staff .card.person-head, .card.person-head { border-top: 6px solid var(--gold); }
@media (max-width: 560px) {
  details.panel > summary { flex-wrap: wrap; padding: 16px 18px; font-size: 1.1rem; }
  details.panel > summary > span:first-child { flex: 1 1 70%; }
  .sum-note { order: 3; flex-basis: 100%; }
  .panel-body { padding: 16px 18px 20px; }
}
a.stat { display: block; text-decoration: none; color: inherit; }
a.stat:hover { border-top-color: var(--gold); box-shadow: 0 2px 8px rgba(12,47,79,.12); }
a.stat .l { text-decoration: underline; text-underline-offset: 3px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters label { margin: 0; flex: 0 1 220px; }
.filters label:first-child { flex: 1 1 280px; }
.filters .btn { margin: 0; }

/* Asignación con disponibilidad */
details.assign-box { border: 1px solid var(--line); border-radius: 6px; padding: 0 16px; margin: 14px 0; }
details.assign-box > summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--navy); }
.cand-list { display: grid; gap: 10px; margin-bottom: 14px; }
.cand { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; margin: 0; font-weight: 400; }
.cand:hover { border-color: var(--teal); }
.cand:has(input:checked) { border-color: var(--teal); box-shadow: inset 4px 0 0 var(--teal); background: #f2f9f9; }
.cand input { margin-top: 4px; width: auto; }
.cand-body { display: flex; flex-direction: column; gap: 4px; }
.cand-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.cand-stats .ok { color: var(--ok-ink); font-weight: 700; }
.cand-stats .warn { color: #6b4a00; font-weight: 700; }
.book-for { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.book-for h3 { margin: 0 0 8px; color: var(--navy); }
.time small { font-weight: 400; }

/* Agenda del equipo */
.week-nav { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 16px 0 6px; }
.week-nav .btn { margin: 0; }
.legend .slot { margin-right: 6px; }
.team-week .tw-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-start; }
.team-week h2 { margin: 0; }
.tw-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.tw-day { background: #f6f9fa; border: 1px solid var(--line); border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tw-day.today { border-color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
.tw-date { font-weight: 700; color: var(--navy); font-size: .88rem; margin-bottom: 2px; }
.tw-none { color: var(--muted); font-size: .85rem; }
.slot { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 6px; border-radius: 4px; border: 1px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot small { font-weight: 400; }
.slot.free { background: #fff; border-color: var(--teal); color: var(--teal-dark); }
.slot.busy { background: var(--navy); color: #fff; }
.slot.held { background: #fff1c9; color: #6b4a00; border-color: #e3a43a; }
.slot.blocked { background: #e7ebee; color: #6a7883; text-decoration: line-through; }
.slot.past { background: transparent; color: #9aa7b0; border-color: #dde3e7; }
@media (max-width: 900px) { .tw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tw-grid { grid-template-columns: 1fr; } }

/* Cobros */
.money-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.money-stats .n { font-size: 1.6rem; }
.money-stats .company { border-top-color: var(--gold); background: #fffaf0; }
.money-table td.num, .money-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.money-table tfoot th { background: #eef3f5; color: var(--navy); }
.money-table tr.is-pending td { color: #5a6b7b; font-style: italic; }

/* Textos legales */
.legal-wrap { max-width: 860px; margin: 0 auto; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.legal-nav a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--navy); font-weight: 700; text-decoration: none; font-size: .92rem; }
.legal-nav a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.card.legal { padding: 34px 40px; line-height: 1.65; }
.card.legal h1 { font-size: 1.6rem; line-height: 1.25; margin-top: 0; }
.card.legal h2 { font-size: 1.15rem; margin: 28px 0 8px; color: var(--teal-dark); }
.card.legal li { margin-bottom: 6px; }
.legal-important { background: var(--err-bg); border-left: 5px solid var(--urgent); padding: 12px 16px; border-radius: 4px; }
mark.ph { background: #ffe58a; color: #4a3500; padding: 0 4px; border-radius: 3px; font-weight: 700; }
.legal-version { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 30px; }
fieldset.consents { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px 6px; margin: 16px 0; }
fieldset.consents legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
fieldset.consents .check { align-items: flex-start; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: .88rem; }
.foot-legal a { color: #cfe0ee; }
@media (max-width: 560px) { .card.legal { padding: 22px 18px; } }

/* Notas clínicas, alta, mis datos, encuesta, liquidaciones */
.notes { display: grid; gap: 12px; margin-top: 18px; }
.note { border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 6px; padding: 12px 16px; background: #fbfdfd; }
.note header { margin-bottom: 6px; font-size: .92rem; color: var(--navy); }
.radio-row { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 10px; }
.tile h3 { margin: 0; color: var(--navy); }
.danger-tile { border-top-color: var(--urgent); }
.danger-tile details > summary { list-style: none; display: inline-block; }
.danger-tile details > summary::-webkit-details-marker { display: none; }
.bye-form { margin-top: 12px; }
.btn.danger { background: var(--urgent); border-color: var(--urgent); color: #fff; box-shadow: 0 3px 0 #8d0b20; }
.rating-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 20px; }
.rate { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border: 2px solid var(--teal); border-radius: 8px;
  font-size: 1.6rem; font-weight: 700; color: var(--teal-dark); text-decoration: none; }
.rate small { font-size: .75rem; font-weight: 700; }
.rate.on, .rate:hover { background: var(--teal); color: #fff; }
.stars { color: #c98a12; letter-spacing: 1px; }
tr.low-rating td { background: #fff4f4; }
ol.steps { padding-left: 1.3em; color: var(--muted); }
.actions-cell { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.actions-cell form { margin: 0; }
.pay-box > summary { list-style: none; display: inline-block; }
.pay-box > summary::-webkit-details-marker { display: none; }
.pay-box form { margin-top: 10px; min-width: 240px; }
.receipt { max-width: 900px; margin: 0 auto; }
.receipt-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.receipt-head h1 { margin: 0; }
.receipt-head .tag { margin-left: auto; }
.receipt-logo { width: 64px; height: auto; }
@media print {
  .utility, header.top, footer.foot, .no-print, .skip { display: none !important; }
  body { background: #fff; }
  .card { border: 0; box-shadow: none; padding: 0; }
}
.owners-form input, .owners-form select { margin: 0; }
.owners-form .pct { max-width: 110px; text-align: right; }
.owners-card .head-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* Zona de baja de cuenta: llamativa pero sobria */
.tile.danger-tile { background: #fff6f7; border: 1px solid #efb8c0; border-top: 4px solid var(--urgent); }
.tile.danger-tile h3 { color: #8d0b20; }
.tile.danger-tile h3::before { content: "⚠ "; }
.tile.danger-tile > p { color: #6b2a33; }
.tile.danger-tile details > summary.btn.ghost { color: var(--urgent); background: #fff; box-shadow: inset 0 0 0 2px var(--urgent), 0 4px 0 #f1c4cb; }
.tile.danger-tile details > summary.btn.ghost:hover, .tile.danger-tile details[open] > summary.btn.ghost { background: #fde8eb; color: #8d0b20; }
.danger-tile .bye-form { border-top: 1px dashed #efb8c0; padding-top: 12px; }

/* Perfil completo del profesional */
.person-more { margin-top: 10px; }
.pro-back { margin: 0 0 12px; }
.pro-head { display: flex; gap: 30px; align-items: flex-start; border-top: 6px solid var(--teal); }
.pro-photo { width: 220px; height: 220px; object-fit: cover; border-radius: 12px; flex: none; background: #eef3f5; }
.pro-id h1 { margin: 2px 0 6px; }
.pro-area { font-size: 1.15rem; color: var(--teal-dark); font-weight: 700; margin: 0 0 10px; }
.pro-facts { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .95rem; }
.pro-facts li::before { content: "•"; color: var(--gold); margin-right: 6px; }
.pro-quote { margin: 14px 0 0; border-left: 4px solid var(--gold); padding: 4px 0 4px 14px; font-style: italic; color: var(--ink); }
.pro-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 20px; }
.pro-body .card { margin-bottom: 20px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid #cfe3e4; }
.timeline li { position: relative; padding: 0 0 14px 20px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; }
.inst { padding-left: 1.1em; margin: 0; }
.inst li { margin-bottom: 6px; }
.pro-cta { background: var(--navy); color: #fff; border-color: var(--navy); }
.pro-cta h2 { color: #fff; }
.pro-cta .btn { background: var(--gold); color: var(--navy); box-shadow: 0 4px 0 var(--gold-dark); }
.pro-gallery h3 { margin: 22px 0 10px; color: var(--teal-dark); font-size: 1.05rem; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gallery li p { margin: 8px 0 0; font-size: .9rem; }
.gal-item { display: block; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f6f9fa; padding: 0; cursor: zoom-in; }
.gal-item img, .gallery.edit img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery.edit img { aspect-ratio: 4 / 3; border-radius: 8px; border: 1px solid var(--line); }
.gal-placeholder { cursor: default; display: grid; place-items: center; font-size: 2.4rem; background: repeating-linear-gradient(45deg, #f3f7f8, #f3f7f8 10px, #eaf1f2 10px, #eaf1f2 20px); }
.lightbox { border: 0; border-radius: 10px; padding: 14px; max-width: min(92vw, 1000px); }
.lightbox::backdrop { background: rgba(12, 47, 79, .8); }
.lightbox img { max-width: 100%; max-height: 78vh; display: block; margin: 0 auto; }
.lightbox p { text-align: center; margin: 10px 0 0; }
.lb-close { position: absolute; right: 8px; top: 4px; border: 0; background: none; font-size: 2rem; cursor: pointer; color: var(--navy); }
.mini-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; }
.gal-upload { align-items: end; }
@media (max-width: 760px) {
  .pro-head { flex-direction: column; }
  .pro-photo { width: 160px; height: 160px; }
  .pro-body { grid-template-columns: 1fr; }
}
.appt.appt-warn { border-left: 5px solid var(--gold); background: #fffaf0; }
.sample-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6a7883; border: 1px solid #c9d4da; border-radius: 4px; padding: 1px 5px; vertical-align: middle; }
.price-table td.calc, .price-table th.calc { background: #f4f8fa; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--navy); }
.price-table td.calc.neg { color: var(--urgent); font-weight: 700; }
/* Tabla de precios compacta: entran las 13 columnas sin cortar (scroll horizontal solo en pantallas chicas) */
.is-staff .wrap:has(.price-table) { max-width: 1320px; }
.price-table { font-size: .88rem; }
.price-table th { font-size: .78rem; line-height: 1.2; vertical-align: bottom; white-space: nowrap; }
.price-table th .small { font-weight: 400; }
.price-table th, .price-table td { padding: 5px 5px; }
.price-table input.num { width: 64px; min-width: 0; padding: 5px 6px; }
.price-table input.phone { width: 84px; padding: 5px 6px; }
.price-table input.note { width: 96px; padding: 5px 6px; }
.price-table td.calc.pct, .price-table th.calc.pct { background: #eaf2f6; font-weight: 600; }
.price-table td.calc.pct.neg { color: var(--urgent); }
.price-table .c-hab { width: 34px; text-align: center; }
.price-table .c-pais { min-width: 120px; max-width: 150px; white-space: normal; line-height: 1.25; }
.price-table td.c-pais, .price-table th.c-pais { position: sticky; left: 0; background: var(--surface); z-index: 1; box-shadow: 1px 0 0 var(--line); }
.price-table tr.warn-row td.c-pais { background: #fff4cf !important; }
.price-table th.c-pais { background: var(--navy); z-index: 2; }
.sticky-save { z-index: 3; }
.price-table td.night { white-space: nowrap; }
.price-table td.night .js-night-usd { display: block; font-size: .72rem; text-align: right; margin-top: 2px; }
.price-table td.night .js-night-usd.neg { color: var(--urgent); white-space: normal; max-width: 90px; text-align: left; }
.price-table input.num.pct { width: 52px; }
.night-band { background: #f4f8fa; border-left: 4px solid var(--gold); padding: 10px 12px; margin: 6px 0 14px; }
.night-band input.hour { width: 52px; min-width: 0; padding: 4px 6px; text-align: center; display: inline-block; margin: 0 2px; }
.night-band .small { display: block; margin-top: 4px; }
.phone-table input.phone { width: 160px; }
.phone-table input.note { width: 100%; min-width: 220px; }
#telefonos summary { cursor: pointer; }
.price-table .del { background: none; border: 0; padding: 4px 6px; color: var(--urgent); font-size: 1.15rem; line-height: 1; cursor: pointer; border-radius: 4px; }
.price-table .del:hover, .price-table .del:focus-visible { background: var(--err-bg); }

/* Testimonios */
.testimonials { background: var(--sand); }
.testimonials h2 { text-align: center; }
.tm-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.tm { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tm.off { opacity: .5; }
.tm-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--teal-light); }
.tm-initials { display: grid; place-items: center; background: var(--teal); color: #fff; font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; }
.tm blockquote { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--ink); font-style: italic; }
.tm-who { margin: 0; color: var(--muted); font-size: .9rem; }
.tm-list.admin .tm { text-align: left; align-items: flex-start; }
.tm blockquote { border: 0; background: none; padding: 0; }

/* Inicio: las tarjetas de temas no toman el estilo de las tarjetas de administración */
#especialidades .tiles { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-bottom: 0; }
#especialidades .tile { display: block; padding: 22px 50px 22px 22px; border-radius: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Mis honorarios por país (panel del psicólogo) */
.fees-table th.num, .fees-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fees-table td.up strong { color: var(--teal, #127a80); }
.fees-table td.up .small:last-child { display: block; color: var(--teal, #127a80); }

/* Gastos */
.money-table td.num.neg, .money-table td.neg { color: var(--urgent); }
.money-table td.nowrap, td.nowrap { white-space: nowrap; }
.expense-form label { display: block; }

/* Tablero del día y reportes de agenda */
.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: #eef2f4; color: var(--muted); }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill.warn { background: #fff1c9; color: #6b4a00; }
.pill.bad { background: var(--err-bg); color: var(--urgent); }
.pill.live { background: var(--teal, #127a80); color: #fff; }
.stat.warn { border-top-color: #e3a43a; }
.stat.bad { border-top-color: var(--urgent); }
.day-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.day-stats .stat .n { font-size: 1.9rem; }
.day-board td { vertical-align: top; }
tr.is-cancelled td { opacity: .55; }
table.report td.num.neg { color: var(--urgent); font-weight: 700; }
.dup-group { border: 1px solid #c9d4da; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.dup-group .why { margin: 0 0 10px; }
.dup-accounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.dup-accounts .acc { background: var(--surface); border: 1px solid #dde5e9; border-radius: 6px; padding: 10px 12px; }
.refeps-box { display: grid; gap: 6px; }
.refeps-box code { font-size: 1rem; user-select: all; }
.pro-facts li.verified { color: var(--ok-ink); font-weight: 700; }
table.report th.num, table.report td.num { text-align: right; }
table.report th .small { font-weight: 400; opacity: .85; }
.dup-accounts .acc { display: block; font-weight: 400; cursor: pointer; }
.dup-accounts .acc input[type=radio] { width: auto; display: inline-block; margin: 0 6px 6px 0; vertical-align: middle; }
.dup-accounts .acc:has(input:checked) { border-color: var(--teal, #127a80); box-shadow: 0 0 0 2px rgba(18,122,128,.25); }
