/* JB GROUP — PERFORMANCE INTELLIGENCE · tokens de diseño (fuente única)
   Editorial contemporáneo, tecnología discreta, Mediterráneo sobrio. Cifras tabulares, sin gradientes ni saturación. */
:root {
  --bg: #f7f6f2; --surface: #ffffff; --surface-2: #f0eee8; --raise: #ffffff;
  --ink: #202420; --ink-2: #5c625c; --ink-3: #8b908a; --line: #e7e4dc; --line-2: #d6d2c8;
  --accent: #667568; --accent-ink: #ffffff; --accent-soft: #e6ebe5;
  --ok: #667568; --ok-soft: #e6ebe5; --no: #b95e54; --no-soft: #f5e4e1;
  --warn: #c48d59; --warn-soft: #f6ebdf; --info: #6c7a86; --info-soft: #e8ecef;
  --idle: #8b908a; --idle-soft: #efede7;
  --radius: 14px; --radius-s: 9px;
  --shadow: 0 1px 2px rgba(32,36,32,.04);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --side: 236px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121412; --surface: #1a1d1a; --surface-2: #212521; --raise: #1f231f;
    --ink: #ecebe6; --ink-2: #a9aea7; --ink-3: #737872; --line: #2a2e2a; --line-2: #363b36;
    --accent: #9aab9c; --accent-ink: #121412; --accent-soft: #232b24;
    --ok: #9aab9c; --ok-soft: #232b24; --no: #db8a80; --no-soft: #3a2421;
    --warn: #d9a574; --warn-soft: #362a1d; --info: #9fb0be; --info-soft: #232a30;
    --idle: #737872; --idle-soft: #232623;
    --shadow: 0 1px 0 rgba(255,255,255,.02);
    color-scheme: dark;
  }
}
:root[data-theme="dark"], body.present {
  --bg: #121412; --surface: #1a1d1a; --surface-2: #212521; --raise: #1f231f;
  --ink: #ecebe6; --ink-2: #a9aea7; --ink-3: #737872; --line: #2a2e2a; --line-2: #363b36;
  --accent: #9aab9c; --accent-ink: #121412; --accent-soft: #232b24;
  --ok: #9aab9c; --ok-soft: #232b24; --no: #db8a80; --no-soft: #3a2421;
  --warn: #d9a574; --warn-soft: #362a1d; --info: #9fb0be; --info-soft: #232a30;
  --idle: #737872; --idle-soft: #232623;
  --shadow: 0 1px 0 rgba(255,255,255,.02);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased; letter-spacing: -.003em; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5rem; font-weight: 650; letter-spacing: -.02em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.12rem; letter-spacing: -.01em; } h3 { font-size: .98rem; }
p { margin: .25rem 0 .75rem; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); } .small { font-size: .84rem; }
.num { font-variant-numeric: tabular-nums; }
.demo-banner { background: var(--warn-soft); color: var(--warn); text-align: center; font-weight: 600; padding: 6px 16px; font-size: .82rem; }

/* ───── estructura: barra lateral + contenido ───── */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px;
  padding: 18px 12px; border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px; font-weight: 700; letter-spacing: -.01em; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: var(--bg); display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.brand small { display: block; font-weight: 500; color: var(--ink-3); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
#nav { display: flex; flex-direction: column; gap: 2px; }
#nav a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-2); padding: 7px 10px;
  border-radius: 8px; font-weight: 550; font-size: .92rem; }
#nav a svg { width: 16px; height: 16px; flex: none; opacity: .85; }
#nav a:hover { background: var(--surface-2); color: var(--ink); }
#nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.week-picker { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px; border: 1px solid var(--line);
  border-radius: 10px; font-variant-numeric: tabular-nums; font-size: .88rem; font-weight: 600; }
.icon-btn { border: 0; background: var(--surface-2); color: var(--ink); border-radius: 7px; width: 28px; height: 28px; cursor: pointer; font-size: 1rem; }
.side-foot { margin-top: auto; display: grid; gap: 8px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.me b { display: block; font-size: .88rem; } .me span { font-size: .76rem; color: var(--ink-3); }
.side-links { display: flex; gap: 12px; padding: 0 8px; }
.link { background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 0; font-size: .82rem; }
.link:hover { color: var(--ink); text-decoration: underline; }
main { min-width: 0; padding: 28px 36px 90px; max-width: 1280px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); max-width: 70ch; }
.eyebrow { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }
.lead { color: var(--ink-2); max-width: 72ch; }

/* ───── avatar ───── */
.av { --s: 36px; position: relative; width: var(--s); height: var(--s); border-radius: 50%; flex: none; overflow: hidden;
  background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 650;
  font-size: calc(var(--s) * .36); letter-spacing: .01em; box-shadow: inset 0 0 0 1px var(--line); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av.ring-ok { box-shadow: 0 0 0 2px var(--ok); } .av.ring-warn { box-shadow: 0 0 0 2px var(--warn); }
.av.ring-idle { box-shadow: 0 0 0 2px var(--line-2); filter: grayscale(.6); }
.av.s24 { --s: 24px; } .av.s28 { --s: 28px; } .av.s44 { --s: 44px; } .av.s56 { --s: 56px; } .av.s96 { --s: 96px; } .av.s140 { --s: 140px; }

/* ───── tiles tipo panel ───── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; box-shadow: var(--shadow); min-width: 0; }
.tile .k { font-size: .76rem; color: var(--ink-2); font-weight: 600; }
.tile .v { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin-top: 6px;
  font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 1rem; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.tile .d { font-size: .78rem; color: var(--ink-3); margin-top: 4px; }
.tile.ok .v { color: var(--ok); } .tile.no .v { color: var(--no); } .tile.warn .v { color: var(--warn); } .tile.info .v { color: var(--info); }
.tile.wide { grid-column: span 2; }
.delta.up { color: var(--ok); } .delta.down { color: var(--no); }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); display: flex; overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; }
.meter .ok { background: var(--ok); } .meter .no { background: var(--no); } .meter .warn { background: var(--warn); }
.meter .info { background: var(--info); } .meter .idle { background: var(--line-2); }

/* ───── estados (una pastilla, un color) ───── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; font-size: .78rem; font-weight: 650;
  white-space: nowrap; background: var(--idle-soft); color: var(--ink-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.no { background: var(--no-soft); color: var(--no); }
.pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.info { background: var(--info-soft); color: var(--info); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.pill.plain::before { display: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: .74rem; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.no { background: var(--no-soft); color: var(--no); }
.badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.info { background: var(--info-soft); color: var(--info); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.dots { display: flex; gap: 5px; }
.dot { width: 22px; height: 6px; border-radius: 99px; background: var(--line); }
.dot.ok { background: var(--ok); } .dot.no { background: var(--no); } .dot.warn { background: var(--warn); }
.dot.info { background: var(--info); } .dot.idle { background: var(--line-2); } .dot.accent { background: var(--accent); }

/* ───── personas: barra de filtros + rejilla ───── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 12px; font-size: .84rem; font-weight: 600;
  color: var(--ink-2); cursor: pointer; text-decoration: none; }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 14px; min-width: 200px; font-size: .88rem; }
.team-head { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 10px; }
.team-head h2 { margin: 0; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.pcard { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s; }
.pcard:hover { border-color: var(--line-2); transform: translateY(-1px); }
.pcard .nm { font-weight: 650; font-size: .98rem; letter-spacing: -.01em; }
.pcard .fn { font-size: .8rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard .sum { font-size: .78rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pcard.off { opacity: .62; }

/* ───── ficha de persona ───── */
.hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }
.hero h1 { font-size: 2rem; margin: 0; }
.hero .sub { color: var(--ink-2); margin-top: 4px; }
.hero .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.stepper { display: flex; gap: 6px; }
.lines { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.line { border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; }
.line > summary { list-style: none; display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; cursor: pointer; }
.line > summary::-webkit-details-marker { display: none; }
.line > summary:hover { background: var(--surface-2); }
.line .n { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-weight: 700;
  font-size: .85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.line .t { font-weight: 620; font-size: 1.02rem; letter-spacing: -.01em; }
.line .m { font-size: .8rem; color: var(--ink-2); margin-top: 3px; }
.line .body { padding: 0 18px 18px 66px; }
.line.empty > summary { color: var(--ink-3); cursor: default; }
.line.empty > summary:hover { background: transparent; }
.line.hist .t { text-decoration: line-through; color: var(--ink-3); }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.panel h3 { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; height: 92px; }
.wk { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; }
.wk i { display: block; width: 26px; align-self: center; border-radius: 4px; min-height: 0; }
.wk i.ok { background: var(--ok); } .wk i.no { background: var(--no); } .wk i.idle { background: var(--line-2); }
.wk span { font-size: .7rem; color: var(--ink-3); text-align: center; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ───── tarjetas y detalle (motor) ───── */
.grid { display: grid; gap: 14px; align-items: start; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; border: 0; padding: 0; background: transparent; }
.card.hist { opacity: .78; }
.card header { display: none; }
.slot { color: var(--ink-3); font-weight: 600; font-size: .8rem; }
.result { font-weight: 620; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 10px 0; font-size: .88rem; }
dl.kv dt { color: var(--ink-3); } dl.kv dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 9px; padding: 7px 13px; cursor: pointer;
  font-weight: 600; min-height: 36px; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { opacity: .9; }
.btn.danger { color: var(--no); border-color: color-mix(in srgb, var(--no) 40%, transparent); background: transparent; }
.btn.small { padding: 4px 10px; min-height: 30px; font-size: .84rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 16px; }
.note { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin-top: 8px; }
.note.warn { background: var(--warn-soft); color: var(--warn); } .note.no { background: var(--no-soft); color: var(--no); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-3); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table tr:last-child td { border-bottom: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { color: var(--ink-2); font-size: .8rem; }
.section { margin-top: 30px; }
h2.section { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
h2.section .eyebrow { min-width: 1.2em; }
.panel svg { display: block; max-width: 680px; max-height: 220px; }
form.stack { display: grid; gap: 12px; }
label.f { display: grid; gap: 5px; font-weight: 600; font-size: .86rem; }
label.f small { font-weight: 400; color: var(--ink-2); }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
input[type=text], input[type=password], input[type=datetime-local], input[type=number], select, textarea {
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 9px; padding: 8px 11px; width: 100%; min-height: 40px; }
textarea { min-height: 70px; resize: vertical; }
.err { color: var(--no); font-size: .84rem; font-weight: 500; }
.preview { border-left: 3px solid var(--accent); padding: 8px 12px; background: var(--surface-2); border-radius: 0 9px 9px 0; font-style: italic; }
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 0; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(8,9,12,.5); backdrop-filter: blur(2px); }
dialog form { padding: 20px 22px; display: grid; gap: 12px; }
dialog .dlg-actions { display: flex; justify-content: flex-end; gap: 8px; position: sticky; bottom: 0; background: var(--surface); padding-top: 8px; }
#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px;
  border-radius: 12px; max-width: calc(100vw - 32px); opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 30; font-weight: 550; }
#toast.show { opacity: 1; } #toast.error { background: var(--no); color: #fff; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { width: min(380px, 100%); }
.login .brand-mark { width: 40px; height: 40px; border-radius: 11px; font-size: .95rem; margin-bottom: 14px; }
.bar { fill: var(--ok); } .bar.no { fill: var(--no); } .bar.pend { fill: var(--line-2); }
details > summary { cursor: pointer; }
.chain { border-left: 2px solid var(--line); padding-left: 12px; margin-left: 4px; }

/* ───── modo reunión (pantalla grande, siempre oscuro) ───── */
body.present .side, body.present .demo-banner { display: none; }
body.present .shell { grid-template-columns: 1fr; }
body.present main { max-width: none; padding: 26px 48px; }
.meet-nav { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; }
.meet-progress { display: flex; gap: 4px; flex: 1; max-width: 520px; }
.meet-progress i { flex: 1; height: 4px; border-radius: 99px; background: var(--line-2); }
.meet-progress i.done { background: var(--ink-2); } .meet-progress i.now { background: var(--accent); }
.meet-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-bottom: 26px; }
.meet-hero h1 { font-size: 3rem; margin: 0; }
.meet-hero .sub { font-size: 1.15rem; color: var(--ink-2); }
.meet-score { display: flex; gap: 10px; }
.meet-score .tile { min-width: 120px; text-align: center; }
.meet-item { display: grid; grid-template-columns: 3rem 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 16px; margin-bottom: 10px; }
.meet-item .n { font-size: 1.5rem; color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.meet-item .result { font-size: 1.35rem; font-weight: 620; letter-spacing: -.01em; }
.meet-item .answer { font-size: 1.4rem; font-weight: 800; padding: 6px 16px; border-radius: 12px; white-space: nowrap; }
.answer.si { background: var(--ok-soft); color: var(--ok); } .answer.no { background: var(--no-soft); color: var(--no); }
.answer.pend { background: var(--idle-soft); color: var(--ink-2); font-size: 1rem; font-weight: 650; }
.answer.info { background: var(--info-soft); color: var(--info); font-size: 1rem; font-weight: 650; }
.timer { font-variant-numeric: tabular-nums; font-size: 1.6rem; font-weight: 700; }
.timer.over { color: var(--no); }
body.present .meet-person { font-size: 1.1rem; }

/* ───── móvil ───── */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px;
    padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand small { display: none; }
  #nav { order: 3; flex-direction: row; width: 100%; overflow-x: auto; gap: 2px; scrollbar-width: none; }
  #nav a { white-space: nowrap; padding: 6px 10px; }
  #nav a svg { display: none; }
  .week-picker { margin-left: auto; border: 0; padding: 0; }
  .side-foot { margin: 0; order: 2; }
  .side-foot .me span, .side-foot .me b { display: none; }
  .side-links { display: none; }
  main { padding: 18px 16px 80px; }
  .hero { grid-template-columns: auto 1fr; padding: 16px; gap: 14px; }
  .hero .av { --s: 72px; } .hero h1 { font-size: 1.45rem; }
  .hero .stepper { grid-column: 1 / -1; }
  .cols { grid-template-columns: 1fr; }
  .line > summary { grid-template-columns: 28px 1fr; gap: 10px; padding: 14px; }
  .line > summary .pill { grid-column: 2; justify-self: start; }
  .line .body { padding: 0 14px 14px; }
  .tile.wide { grid-column: span 1; }
  .tile .v { font-size: 1.9rem; }
  dl.kv { grid-template-columns: 1fr; } dl.kv dt { margin-top: 4px; }
  body.present main { padding: 16px; }
  .meet-hero { grid-template-columns: auto 1fr; } .meet-hero h1 { font-size: 1.8rem; } .meet-hero .av { --s: 72px; }
  .meet-score { grid-column: 1 / -1; }
  .meet-item { grid-template-columns: 1.8rem 1fr; padding: 14px; } .meet-item .answer { grid-column: 2; justify-self: start; }
  .meet-item .result { font-size: 1.08rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .side, .actions, .toolbar, .demo-banner { display: none; } body { background: #fff; } .shell { display: block; } }

.mt { margin-top: 10px; } .minw { min-width: 0; } .crit { color: var(--no); }
.toolbar.flush { margin: 0; }
.prevrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0; }
.prevrow .pill { flex: none; }

.pill.big { font-size: 1.05rem; padding: 7px 16px 7px 13px; }
.pill.big::before { width: 9px; height: 9px; }

/* ───── componentes del panel ejecutivo ───── */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 14px; display: flex; flex-direction: column;
  gap: 4px; text-decoration: none; color: inherit; min-width: 0; }
.kpi:hover { border-color: var(--line-2); }
.kpi .k { font-size: .78rem; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; gap: 6px; }
.kpi .v { font-family: var(--font-display); font-size: 2.9rem; font-weight: 650; letter-spacing: -.035em; line-height: 1; margin-top: 8px;
  font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 1.05rem; color: var(--ink-3); font-weight: 550; letter-spacing: 0; }
.kpi .d { font-size: .76rem; color: var(--ink-3); min-height: 1.2em; }
.kpi .spark { height: 34px; margin-top: 6px; }
.kpi.alert-no { border-color: color-mix(in srgb, var(--no) 45%, var(--line)); } .kpi.alert-no .v { color: var(--no); }
.kpi.alert-warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); } .kpi.alert-warn .v { color: var(--warn); }
.kpi.good .v { color: var(--ok); }
.thr { font-size: .7rem; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.spark path.l { fill: none; stroke: var(--ink-2); stroke-width: 1.6; }
.spark path.a { fill: var(--surface-2); stroke: none; }
.spark circle { fill: var(--ink); }
.board { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.board .panel { margin-bottom: 0; }
.board > div { display: grid; gap: 14px; min-width: 0; }
.panel .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.panel .ph h3 { margin: 0; }
.panel .def { font-size: .74rem; color: var(--ink-3); }
.chart text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.chart .grid line { stroke: var(--line); }
.chart .s1 { fill: none; stroke: var(--ink); stroke-width: 2; }
.chart .s2 { fill: none; stroke: var(--warn); stroke-width: 2; stroke-dasharray: 4 4; }
.chart .thr-line { stroke: var(--no); stroke-width: 1; stroke-dasharray: 2 4; opacity: .7; }
.chart circle.p1 { fill: var(--ink); } .chart circle.p2 { fill: var(--warn); }
.legend { display: flex; gap: 14px; font-size: .76rem; color: var(--ink-2); margin-top: 6px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; background: var(--ink); }
.legend i.s2 { background: var(--warn); } .legend i.thr { background: var(--no); opacity: .7; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 180px) 1fr 64px; gap: 12px; align-items: center; font-size: .86rem; text-decoration: none; color: inherit; }
.hbar .track { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; display: flex; }
.hbar .track i { display: block; height: 100%; }
.hbar .track .ok { background: var(--ok); } .hbar .track .no { background: var(--no); } .hbar .track .warn { background: var(--warn); }
.hbar .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.hbar .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; }
.matrix td, .matrix th { border-bottom: 1px solid var(--line); padding: 8px 10px; }
.matrix th { text-align: center; } .matrix th:first-child { text-align: left; }
.matrix .who { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.matrix .who a { text-decoration: none; font-weight: 600; }
.cell { width: 30px; height: 22px; border-radius: 6px; margin: 0 auto; background: var(--surface-2); position: relative; }
.cell.cumplido { background: var(--ok); } .cell.incumplido { background: var(--no); } .cell.bloqueado_doc { background: var(--no); opacity: .55; }
.cell.pendiente { background: var(--warn); } .cell.en_plazo { background: var(--line-2); }
.cell.crit::after { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); border: 2px solid var(--surface); }
.flag { font-size: .72rem; font-weight: 650; color: var(--warn); white-space: nowrap; }
.flag.no { color: var(--no); }
.risk { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.risk:last-child { border-bottom: 0; }
.risk .tag { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px;
  background: var(--warn-soft); color: var(--warn); height: fit-content; white-space: nowrap; }
.risk .tag.no { background: var(--no-soft); color: var(--no); }
.risk .tag.idle { background: var(--surface-2); color: var(--ink-2); }
.risk b { font-weight: 600; } .risk .sub { color: var(--ink-3); font-size: .78rem; }
.legend-cells { display: flex; gap: 14px; flex-wrap: wrap; font-size: .76rem; color: var(--ink-2); margin-top: 10px; }
.legend-cells span { display: inline-flex; align-items: center; gap: 6px; }
.legend-cells .cell { width: 16px; height: 12px; margin: 0; }
.dept { display: grid; gap: 10px; }
.heat td.h { text-align: center; font-variant-numeric: tabular-nums; font-size: .8rem; border-radius: 0; }
.heat td.h.g { background: var(--ok-soft); color: var(--ok); } .heat td.h.a { background: var(--warn-soft); color: var(--warn); }
.heat td.h.r { background: var(--no-soft); color: var(--no); } .heat td.h.n { color: var(--ink-3); }
.mode-switch { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.mode-switch a { padding: 5px 12px; border-radius: 8px; font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.mode-switch a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .board { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi .v { font-size: 2.2rem; }
  .hbar { grid-template-columns: 96px 1fr 52px; } .matrix .who { min-width: 130px; } }

.panel { min-width: 0; overflow: hidden; }
.panel .ph { flex-wrap: wrap; }
.panel svg.chart { max-width: none; max-height: none; }
.heat .who, .table-wrap .who { display: flex; align-items: center; gap: 8px; }
.heat td:first-child { white-space: nowrap; }
.table-wrap.flat { border-radius: 10px; }
.heat a, .matrix a { color: inherit; text-decoration: none; font-weight: 600; }

[hidden] { display: none !important; }
