:root {
  /* Centro Lingüístico: azul marino #002A53 (marca y botones) y turquesa #01BBCE (detalles) */
  --brand-navy: #002a53;
  --brand-turquoise: #01bbce;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #edf1f6;
  --text: #14202e;
  --muted: #5a6676;
  --border: #dbe2ea;
  --accent: #002a53;
  --accent-contrast: #ffffff;
  --accent-soft: #e2f5f8;
  --highlight: #01bbce;
  --good: #23784f;
  --good-soft: #dcf1e5;
  --warn: #9a6400;
  --warn-soft: #fbefd6;
  --bad: #b3261e;
  --bad-soft: #fbe2df;
  --info: #3d5a99;
  --info-soft: #e3e9f7;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 42, 83, 0.06), 0 2px 8px rgba(0, 42, 83, 0.05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1522;
    --surface: #132033;
    --surface-2: #1a2a40;
    --text: #e6edf5;
    --muted: #9aa8b8;
    --border: #26364c;
    --accent: #01bbce;
    --accent-contrast: #002a53;
    --accent-soft: #0f3346;
    --highlight: #01bbce;
    --good: #6fd19c;
    --good-soft: #1d3a2a;
    --warn: #e8b64f;
    --warn-soft: #3a2f17;
    --bad: #f08a80;
    --bad-soft: #43201d;
    --info: #9db4ea;
    --info-soft: #232c45;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }
h3 { font-size: 0.95rem; margin: 1.25rem 0 0.5rem; }
code { background: var(--surface-2); padding: 0.05em 0.35em; border-radius: 4px; font-size: 0.9em; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.good { color: var(--good); }

/* layout */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 650; color: var(--text); text-decoration: none; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 0.25rem; flex: 1; flex-wrap: wrap; }
nav a, nav .link { padding: 0.4rem 0.65rem; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 0.92rem; }
nav a:hover, nav .link:hover { background: var(--surface-2); color: var(--text); }
nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-sep { flex: 1; }
.menu-btn { display: none; margin-left: auto; }
main { max-width: 1040px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
main.wide { max-width: 1280px; }
.page-head { margin: 0.5rem 0 1.25rem; }
.page-head p { margin: 0.25rem 0 0; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.page-head.split { align-items: flex-end; }
.head-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.25rem !important; }
.crumbs a { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-2.wide-left { grid-template-columns: 3fr 2fr; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 { margin-bottom: 1rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card.narrow { max-width: 440px; margin-left: auto; margin-right: auto; }
.card.highlight { border-color: var(--accent); background: linear-gradient(var(--accent-soft), var(--surface) 70%); }
.card.warn-card { border-left: 4px solid var(--warn); }
.danger-zone { border-color: var(--bad-soft); }

.login { min-height: 80vh; display: grid; place-items: center; }
.login .card { width: 100%; }
.login-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }
/* corporate logo: light/dark variants swap with the colour scheme */
.logo.logo-light { display: block; }
.logo.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo.logo-light { display: none; } .logo.logo-dark { display: block; } }
.brand .logo { height: 34px; width: auto; }
.login-logo { display: flex; justify-content: center; padding: 0.25rem 0 0.75rem; }
.login-logo .logo { width: min(300px, 80%); height: auto; }
.login-logo + h1, .login-logo + p { text-align: center; }
.topbar { border-bottom: 3px solid var(--highlight); }
.card.highlight { border-color: var(--highlight); }
.login-brand h1 { font-size: 1.3rem; margin: 0; }

/* forms */
label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.88rem; color: var(--muted); font-weight: 500; }
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type='checkbox']):not([type='file']), select, textarea {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  min-width: 0;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
select[multiple] { padding: 0.25rem; }
label.check { flex-direction: row; align-items: center; gap: 0.5rem; color: var(--text); }
.stack { display: flex; flex-direction: column; gap: 0.85rem; }
.row-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.row-form > label { flex: 1 1 160px; }
.row-form.compact { gap: 0.25rem; }
.row-form.compact input { width: 100%; }
form.inline { display: inline; }
fieldset.days { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
fieldset.days legend { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.3rem; font-weight: 500; }
label.day { flex-direction: row; }
label.day input { position: absolute; opacity: 0; }
label.day span { padding: 0.35rem 0.7rem; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; color: var(--text); }
label.day input:checked + span { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
label.day input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); border-color: var(--bad); background: transparent; }
.btn.danger:not(.ghost):hover { background: var(--bad-soft); }
.btn.small { padding: 0.3rem 0.65rem; font-size: 0.85rem; }
.btn.big { padding: 0.75rem 1rem; font-size: 1rem; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
button.link.danger { color: var(--bad); }
nav button.link { text-decoration: none; }

.flash { padding: 0.7rem 0.9rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }
.flash.ok { background: var(--good-soft); border-color: var(--good); }
.flash.error { background: var(--bad-soft); border-color: var(--bad); }
.flash.warn { background: var(--warn-soft); border-color: var(--warn); }
.pwd { font-size: 1.05rem; user-select: all; }

.badge { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.good { background: var(--good-soft); color: var(--good); }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.82rem; text-decoration: none; background: var(--surface-2); color: var(--text); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }

ul.plain { list-style: none; margin: 0 0 0.75rem; padding: 0; }
ul.plain li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
ul.plain li:last-child { border-bottom: 0; }
ul.sessions li.current { font-weight: 650; }
ul.members li { gap: 0.5rem; }
ul.members li a { flex: 1; }
.inactive { opacity: 0.55; }

/* home slots */
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.6rem; }
.slot {
  display: grid; gap: 0.1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.slot:hover { border-color: var(--accent); }
.slot.mine { border-left: 4px solid var(--accent); }
.slot-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.85rem; }
.slot-name { font-weight: 650; }
.slot-meta { color: var(--muted); font-size: 0.85rem; }
.slot.big { padding: 1rem 1.1rem; border-color: var(--accent); }
.slot.big .slot-name { font-size: 1.15rem; }
.slot-cta { margin-top: 0.4rem; font-weight: 650; color: var(--accent); }

/* roll call */
.roll-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.counters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.count { padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--surface-2); font-size: 0.85rem; color: var(--muted); }
.count b { color: var(--text); font-variant-numeric: tabular-nums; }
.count.P { background: var(--good-soft); }
.count.R { background: var(--warn-soft); }
.count.A { background: var(--bad-soft); }
.count.J { background: var(--info-soft); }
.hint { margin: 0.6rem 0 0.4rem; }
.roster { list-style: none; margin: 0; padding: 0; }
.student {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--border);
  border-left: 4px solid transparent;
}
.student:last-child { border-bottom: 0; }
.student.st-P { border-left-color: var(--good); }
.student.st-R { border-left-color: var(--warn); }
.student.st-A { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad-soft) 45%, transparent); }
.student.st-J { border-left-color: var(--info); }
.student .name { color: var(--text); text-decoration: none; font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.seg { display: flex; gap: 0.3rem; flex-shrink: 0; }
.seg button {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 42px; padding: 0.35rem 0.7rem;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--muted);
  cursor: pointer; font-size: 0.88rem; font-weight: 550;
  touch-action: manipulation;
}
.seg button .ic { font-weight: 700; }
.seg button:hover { border-color: var(--muted); }
.seg .s-P[aria-checked='true'] { background: var(--good); border-color: var(--good); color: var(--surface); }
.seg .s-R[aria-checked='true'] { background: var(--warn); border-color: var(--warn); color: var(--surface); }
.seg .s-A[aria-checked='true'] { background: var(--bad); border-color: var(--bad); color: var(--surface); }
.seg .s-J[aria-checked='true'] { background: var(--info); border-color: var(--info); color: var(--surface); }
.save-state { min-height: 1.2em; margin: 0.5rem 0 0; }
.save-state.bad { color: var(--bad); font-weight: 600; }

/* dashboard */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem 1rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.kpi-label { color: var(--muted); font-size: 0.82rem; font-weight: 550; }
.kpi-value { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.kpi-value.muted { color: var(--muted); }
.kpi-note { font-size: 0.78rem; color: var(--muted); }
.kpi-note.bad { color: var(--bad); font-weight: 600; }
.kpi-note.warn { color: var(--warn); font-weight: 600; }
.range { display: flex; gap: 0.5rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head .range { margin-bottom: 0; }
.range label { font-size: 0.8rem; }
.range input { padding: 0.3rem 0.5rem !important; }
input.filter { width: 260px; max-width: 100%; }
.exports { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.75rem 0 0; }

.table-wrap { overflow-x: auto; margin: 0 -0.25rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 0.5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.actions { white-space: nowrap; display: flex; gap: 0.3rem; }
th.sort { cursor: pointer; user-select: none; }
th.sort:hover { color: var(--text); }
th[data-dir='asc']::after { content: ' ▲'; font-size: 0.7em; }
th[data-dir='desc']::after { content: ' ▼'; font-size: 0.7em; }

.pct { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 130px; }
.pct-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; min-width: 60px; }
.pct-bar > span { display: block; height: 100%; background: var(--muted); border-radius: 3px; }
.pct.good .pct-bar > span { background: var(--good); }
.pct.warn .pct-bar > span { background: var(--warn); }
.pct.bad .pct-bar > span { background: var(--bad); }
.pct-num { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 4.2em; text-align: right; font-size: 0.88rem; }
.pct.bad .pct-num { color: var(--bad); }
.pct.muted .pct-num { color: var(--muted); font-weight: 400; }

.trend { margin: 0; overflow-x: auto; }
.trend svg { display: block; max-width: 100%; min-width: 240px; }
.trend figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }
.trend .grid { stroke: var(--border); stroke-width: 1; }
.trend .threshold { stroke: var(--bad); stroke-width: 1.5; stroke-dasharray: 5 4; }
.trend .bar { fill: var(--muted); }
.trend .bar.good { fill: var(--good); }
.trend .bar.warn { fill: var(--warn); }
.trend .bar.bad { fill: var(--bad); }
.trend text { font-size: 11px; text-anchor: middle; fill: var(--muted); font-family: inherit; }
.trend text.val { fill: var(--text); font-weight: 600; }

/* attendance matrix */
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; color: var(--muted); }
.legend .cell { margin-left: 0.4rem; }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.matrix { border-collapse: separate; border-spacing: 0; font-size: 0.8rem; }
.matrix th, .matrix td { padding: 0.25rem; text-align: center; border-bottom: 1px solid var(--border); }
.matrix thead th { font-weight: 600; color: var(--muted); white-space: nowrap; }
.matrix thead th a { color: inherit; text-decoration: none; }
.matrix thead th.cancelled { text-decoration: line-through; opacity: 0.6; }
.matrix .sticky { position: sticky; left: 0; background: var(--surface); text-align: left; padding: 0.3rem 0.6rem; white-space: nowrap; font-weight: 500; z-index: 1; border-right: 1px solid var(--border); }
.matrix .sticky a { color: var(--text); text-decoration: none; }
.matrix tr.totals td, .matrix tr.totals th { font-weight: 600; color: var(--muted); border-bottom: 0; }
.cell { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 5px; font-weight: 700; font-size: 0.78rem; text-decoration: none; color: var(--muted); }
td.cell { display: table-cell; border-radius: 0; }
.cell.P { background: var(--good-soft); color: var(--good); }
.cell.R { background: var(--warn-soft); color: var(--warn); }
.cell.A { background: var(--bad-soft); color: var(--bad); }
.cell.J { background: var(--info-soft); color: var(--info); }
.cell.none { color: var(--border); }
td.cell.cancelled { background: repeating-linear-gradient(45deg, transparent 0 4px, var(--surface-2) 4px 8px); color: var(--muted); }
.timeline { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 0.25rem; }
.badge.info { background: var(--info-soft); color: var(--info); }
.hist-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.5rem 0 0.75rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tabs button { font: inherit; font-size: 0.85rem; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.tabs button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.tabs button b { font-variant-numeric: tabular-nums; }
.hist-table td:first-child { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
details summary { cursor: pointer; color: var(--accent); margin: 0.5rem 0; }
.log li { padding: 0.25rem 0; }

@media (max-width: 860px) {
  .grid-2, .grid-2.wide-left { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .menu-btn { display: inline-flex; padding: 0.35rem 0.75rem; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); cursor: pointer; }
  .topbar { flex-wrap: wrap; }
  nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; }
  .nav-open nav { display: flex; }
  .nav-sep { display: none; }
  main { padding: 1rem 1rem 3rem; }
  h1 { font-size: 1.35rem; }
  .card { padding: 0.9rem; }
  .student { flex-direction: column; align-items: stretch; gap: 0.4rem; }
  .seg { display: grid; grid-template-columns: repeat(4, 1fr); }
  .seg button { flex-direction: column; gap: 0; justify-content: center; padding: 0.3rem 0.2rem; min-height: 48px; }
  .seg button .lb { font-size: 0.7rem; }
  .seg button .ic { font-size: 1.05rem; line-height: 1.1; }
  .roll-actions, .roll-actions .btn { width: 100%; }
  .roll-actions .btn { padding: 0.75rem; font-size: 1rem; }
}

.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* student access, QR check-in and justifications */
.grow { flex: 2 1 260px !important; }
.row-form.grow { flex: 2 1 320px; }
.name-wrap { display: inline-flex; align-items: center; gap: 0.4rem; min-width: 0; flex-wrap: wrap; }
.roll-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.badge.info { background: var(--info-soft); color: var(--info); }
.qr-screen { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; text-align: center; }
.qr-screen .split { text-align: left; }
.qr-screen p, .qr-screen h1 { margin: 0; }
.qr-box { background: #ffffff; border-radius: 12px; padding: 16px; width: min(340px, 80vw); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-alt { font-size: 1.05rem; }
.qr-alt strong { font-size: 1.7rem; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
.qr-progress { font-size: 1.05rem; }
.just { border: 1px solid var(--border); border-radius: 9px; padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.just.pending { border-left: 4px solid var(--warn); }
.just p { margin: 0; }
.just-head { align-items: flex-start; }
details.justify > summary { list-style: none; display: inline-flex; }
details.justify > summary::-webkit-details-marker { display: none; }
details.justify[open] > summary { margin-bottom: 0.6rem; }
details.justify form { min-width: min(320px, 70vw); }

/* student history as stacked rows on phones */
@media (max-width: 600px) {
  .hist-table thead { display: none; }
  .hist-table, .hist-table tbody { display: block; width: 100%; }
  .hist-table tr { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 0.5rem; padding: 0.6rem 0.25rem; border-bottom: 1px solid var(--border); }
  .hist-table td { display: block; border: 0 !important; padding: 0 !important; }
  .hist-table td:nth-child(1) { font-weight: 600; }
  .hist-table td:nth-child(2) { text-align: right; color: var(--muted); }
  .hist-table td:nth-child(3) { grid-column: 1 / -1; color: var(--muted); font-size: 0.85rem; }
  .hist-table td:nth-child(4) { grid-column: 1 / -1; }
  .hist-table td:nth-child(5):not(:empty) { grid-column: 1 / -1; }
  .table-wrap:has(.hist-table) { overflow-x: visible; }
}
.student-bar { flex-wrap: nowrap !important; }
.student-bar .who-name { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .student-bar .brand .logo { height: 28px; } }

/* student PIN */
.pin-card { display: flex; flex-direction: column; gap: 0.75rem; }
.pin-card p, .pin-card h1 { margin: 0; }
.pin-input { font-size: 1.6rem !important; letter-spacing: 0.5em; text-align: center; font-variant-numeric: tabular-nums; }
.manual-access { margin-top: 0.75rem; }
.manual-access textarea { font: 0.85rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; width: 100%; }
.manual-access .btn { align-self: flex-start; }

/* calendar */
.strike { text-decoration: line-through; }
.stack-tight { display: flex; flex-direction: column; gap: 0.2rem; }
.upcoming li { gap: 0.5rem; flex-wrap: wrap; }
.actions-inline { display: inline-flex; gap: 0.3rem; }

/* roles and billing */
.role-help { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.role-ticks { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.15rem; min-width: 10.5rem; }
.role-ticks.new { flex-direction: row; flex-wrap: wrap; gap: 0.3rem 1rem; flex-basis: 100%; }
.role-ticks legend { font-size: 0.88rem; color: var(--muted); font-weight: 500; padding: 0; margin-bottom: 0.3rem; }
.role-ticks label.check { font-weight: 400; }
.bill-total { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.month-nav { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
@media print {
  .topbar, .no-print, .flash { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; padding: 0; }
  main { max-width: none; padding: 0; }
}
