:root {
  --sidebar-w: 260px;
  /* church colours — overridden per church by the <style id="brand-css"> block (services/branding.py) */
  --brand: #2b3a67; --brand-rgb: 43,58,103; --brand-fg: #fff; --brand-2: #3d5299; --brand-text: #2b3a67;
  --accent: #0d6efd; --accent-rgb: 13,110,253; --accent-fg: #fff; --accent-hover: #0b5ed7; --accent-active: #0a58ca;
  --accent-subtle: #e2edff; --accent-subtle-text: #0a3d8f;
  --link: #0d6efd; --link-rgb: 13,110,253; --link-hover: #0a58ca; --link-hover-rgb: 10,88,202;
  --sb-bg: var(--brand); --sb-fg: rgba(255,255,255,.88); --sb-muted: rgba(255,255,255,.55); --sb-hover: rgba(255,255,255,.08);
  --sb-active-bg: var(--brand-2); --sb-active-fg: #fff; --sb-border: rgba(255,255,255,.12); --sb-title: #fff;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --font-heading: var(--font-body);
  /* page surfaces */
  --surface: #f5f6fa; --panel: #fff; --line: #e3e6ef; --muted-bg: #eef1f8; --soft-bg: #fafbfd; --ink-strong: #1f2329;
}
[data-bs-theme=dark] {
  --surface: #15181d; --panel: #1f232a; --line: #343a45; --muted-bg: #2a2f38; --soft-bg: #23272e; --ink-strong: #e8eaee;
  --bs-body-bg: #1f232a; --bs-body-bg-rgb: 31,35,42; --bs-tertiary-bg: #262a32;
}
/* Bootstrap "primary" follows the church's button colour */
:root, [data-bs-theme=light], [data-bs-theme=dark] {
  --bs-primary: var(--accent); --bs-primary-rgb: var(--accent-rgb);
  --bs-link-color: var(--link); --bs-link-color-rgb: var(--link-rgb);
  --bs-link-hover-color: var(--link-hover); --bs-link-hover-color-rgb: var(--link-hover-rgb);
  --bs-primary-bg-subtle: var(--accent-subtle); --bs-primary-text-emphasis: var(--accent-subtle-text);
  --bs-primary-border-subtle: rgba(var(--accent-rgb), .35);
  --bs-focus-ring-color: rgba(var(--accent-rgb), .25);
  --bs-body-font-family: var(--font-body);
}
.btn-primary { --bs-btn-color: var(--accent-fg); --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: var(--accent-fg); --bs-btn-hover-bg: var(--accent-hover); --bs-btn-hover-border-color: var(--accent-hover);
  --bs-btn-active-color: var(--accent-fg); --bs-btn-active-bg: var(--accent-active); --bs-btn-active-border-color: var(--accent-active);
  --bs-btn-disabled-color: var(--accent-fg); --bs-btn-disabled-bg: var(--accent); --bs-btn-disabled-border-color: var(--accent);
  --bs-btn-focus-shadow-rgb: var(--accent-rgb); }
.btn-outline-primary { --bs-btn-color: var(--link); --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: var(--accent-fg); --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent);
  --bs-btn-active-color: var(--accent-fg); --bs-btn-active-bg: var(--accent-active); --bs-btn-active-border-color: var(--accent-active);
  --bs-btn-disabled-color: var(--link); --bs-btn-disabled-border-color: var(--accent); --bs-btn-focus-shadow-rgb: var(--accent-rgb); }
.text-bg-primary { color: var(--accent-fg) !important; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus, .form-control:focus, .form-select:focus { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 0 0 .25rem rgba(var(--accent-rgb), .22); }
.form-range::-webkit-slider-thumb { background-color: var(--accent); }
.form-range::-moz-range-thumb { background-color: var(--accent); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--accent); --bs-nav-pills-link-active-color: var(--accent-fg); }
.pagination { --bs-pagination-active-bg: var(--accent); --bs-pagination-active-border-color: var(--accent); --bs-pagination-active-color: var(--accent-fg); --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(var(--accent-rgb), .25); }
.list-group { --bs-list-group-active-bg: var(--accent); --bs-list-group-active-border-color: var(--accent); --bs-list-group-active-color: var(--accent-fg); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--accent); --bs-dropdown-link-active-color: var(--accent-fg); }
.progress, .progress-stacked { --bs-progress-bar-bg: var(--accent); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font-heading); }

/* dark mode: Bootstrap's light utility classes used across the templates */
[data-bs-theme=dark] .bg-white { background-color: var(--panel) !important; }
[data-bs-theme=dark] .bg-light { background-color: var(--muted-bg) !important; }
[data-bs-theme=dark] .table-light { --bs-table-color: var(--bs-body-color); --bs-table-bg: var(--muted-bg); --bs-table-border-color: var(--line);
  --bs-table-striped-bg: var(--soft-bg); --bs-table-hover-bg: var(--soft-bg); color: var(--bs-body-color); }
[data-bs-theme=dark] .text-bg-light { background-color: var(--muted-bg) !important; color: var(--bs-body-color) !important; }
[data-bs-theme=dark] .btn-light { --bs-btn-bg: var(--muted-bg); --bs-btn-border-color: var(--muted-bg); --bs-btn-color: var(--bs-body-color);
  --bs-btn-hover-bg: var(--line); --bs-btn-hover-border-color: var(--line); --bs-btn-hover-color: var(--bs-body-color); }
[data-bs-theme=dark] .text-dark { color: var(--bs-body-color) !important; }
[data-bs-theme=dark] .report-chart .ink { fill: #e8eaee; }
[data-bs-theme=dark] .report-chart .ink2 { fill: #aab1bd; }
[data-bs-theme=dark] .report-chart .grid { stroke: #3a404b; }
[data-bs-theme=dark] .report-chart .halo { stroke: var(--panel); }

body { background: var(--surface); }
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); background: var(--sb-bg); color: var(--sb-fg);
  flex-shrink: 0; border-right: 1px solid var(--sb-border);
}
@media (min-width: 992px) {
  .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
.sidebar-brand { display: flex; gap: .75rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--sb-border); color: var(--sb-title); }
.sidebar-brand > i { font-size: 1.6rem; }
.sidebar-brand > div { min-width: 0; }
.sidebar-brand .sb-muted { color: var(--sb-muted); }
.sidebar-brand.with-logo { flex-direction: column; align-items: flex-start; gap: .5rem; position: relative; }
.sidebar-brand.with-logo > div { width: 100%; }
.sidebar-brand.with-logo .brand-logo { height: auto; width: auto; max-width: calc(100% - 2.5rem); max-height: 56px; }
.sidebar-brand.logo-only .brand-logo { max-height: 72px; }
.sidebar-brand.with-logo .btn-close { position: absolute; top: 1rem; right: 1rem; }
.brand-logo { display: block; object-fit: contain; flex-shrink: 0; }
.brand-logo.tile { background: #fff; border-radius: var(--bs-border-radius); padding: 4px; }
.sidebar-brand .brand-logo { height: 44px; width: auto; max-width: 96px; }
.brand-mark { width: 40px; height: 40px; border-radius: var(--bs-border-radius); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: .02em; background: var(--sb-active-bg); color: var(--sb-active-fg); flex-shrink: 0; }
.sidebar .nav { padding: .5rem; }
.sidebar .nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sb-muted); padding: .9rem .75rem .3rem; }
.sidebar .nav-link { color: var(--sb-fg); display: flex; align-items: center; gap: .6rem; border-radius: var(--bs-border-radius); padding: .45rem .75rem; }
.sidebar .nav-link:hover { background: var(--sb-hover); color: var(--sb-fg); }
.sidebar .nav-link.active { background: var(--sb-active-bg); color: var(--sb-active-fg); }
.sidebar .nav-link.disabled { color: var(--sb-muted); }
.topbar-brand { display: flex; align-items: center; gap: .5rem; min-width: 0; font-weight: 600; color: var(--bs-body-color); text-decoration: none; }
.topbar-brand img { height: 30px; width: auto; max-width: 110px; }
.ui-prefs .btn { padding: .2rem .5rem; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: .5rem; padding: .6rem 1.25rem; background: var(--panel); border-bottom: 1px solid var(--line); }
.content { padding: 1.25rem; max-width: 1400px; width: 100%; }
@media (max-width: 576px) { .content { padding: 1rem; } }
.page-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.page-head h1 { font-size: 1.4rem; margin: 0; }
.card { border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.stat .label { color: var(--bs-secondary-color); font-size: .85rem; }
.stat .value { font-size: 1.45rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table-heading td { background: var(--muted-bg) !important; font-weight: 600; }
.auth-wrap { max-width: 720px; margin: 0 auto; padding: 3rem 1rem; }
.auth-card { max-width: 420px; margin: 0 auto; }
.auth-card.auth-card-wide { max-width: 560px; }
.badge-class { font-weight: 500; }
.journal-lines select { min-width: 220px; }
.form-text { font-size: .8rem; }
.sidebar.offcanvas-lg, .sidebar.offcanvas { background-color: var(--sb-bg) !important; color: var(--sb-fg); }
.table a, .sidebar a, .card-header a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
.avatar { border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar-initials { background: var(--accent-subtle); color: var(--accent-subtle-text); font-weight: 600; }
.member-picker { position: relative; }
.picker-results { position: absolute; z-index: 20; left: 0; right: 0; max-height: 280px; overflow-y: auto; }
.dl-grid { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: .35rem .75rem; margin: 0; }
.dl-grid dt { font-weight: 500; color: var(--bs-secondary-color); }
.dl-grid dd { margin: 0; overflow-wrap: anywhere; }
.profile-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.list-group a { text-decoration: none; }

/* ---- attendance: kiosk, public check-in, printables ---- */
body.kiosk { background: var(--muted-bg); }
.kiosk-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.kiosk-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.5rem; background: var(--brand); color: var(--brand-fg); }
.kiosk-head .brand-logo { height: 40px; width: auto; max-width: 140px; }
.kiosk-screen { flex: 1; padding: 2rem 1.5rem; }
.kiosk-card { border-radius: 1rem; }
.kiosk-card .btn-lg { padding: .9rem 1.2rem; }
.kiosk-video { position: relative; aspect-ratio: 4 / 3; background: #1d2433; border-radius: .75rem; overflow: hidden; }
.kiosk-video video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.kiosk-cam-off { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.kiosk-done-icon { font-size: 7rem; color: #198754; line-height: 1; margin: 2rem 0 1rem; }
#k-results { max-height: 45vh; overflow-y: auto; }
body.standalone { background: var(--surface); }
.public-wrap { max-width: 520px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.public-brand { text-align: center; margin-bottom: 1.25rem; }
.public-brand .bi { font-size: 2rem; color: var(--brand-text); }
.public-brand .brand-logo { height: 64px; width: auto; max-width: 220px; margin: 0 auto .5rem; }
.public-brand .tagline { font-size: .9rem; color: var(--bs-secondary-color); }
.qr-poster { text-align: center; }
.qr-poster svg { width: min(420px, 80vw); height: auto; }
.qr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.qr-card { border: 1px solid #cfd6e6; border-radius: 10px; padding: 12px; display: flex; gap: 12px; align-items: center; background: #fff; color: #1f2329; break-inside: avoid; page-break-inside: avoid; }
.qr-card svg { width: 110px; height: 110px; flex-shrink: 0; }
.qr-card .church { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-text); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.qr-card .church img { height: 16px; width: auto; }
.bar { height: .55rem; background: var(--muted-bg); border-radius: 1rem; overflow: hidden; min-width: 60px; }
.bar > span { display: block; height: 100%; background: var(--brand-2); }
@media print {
  .sidebar, .topbar, .no-print, .alert { display: none !important; }
  .content { padding: 0 !important; max-width: none; }
  body, body.standalone { background: #fff; }
  .card { border: none; box-shadow: none; }
  .qr-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ---- member app: bottom tabs on phones ---- */
.app-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; background: var(--panel);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.app-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .45rem 0 .4rem;
  font-size: .7rem; color: var(--bs-secondary-color); text-decoration: none; }
.app-tabs a .bi { font-size: 1.25rem; }
.app-tabs a.active { color: var(--link); font-weight: 600; }
@media (max-width: 991.98px) { body:has(.app-tabs) .content { padding-bottom: 5rem; } }
.qr-poster .qr-fit svg, .qr-fit svg { width: 100%; height: auto; }
.app-tabs .tab-dot { position: absolute; top: 2px; left: 55%; background: #dc3545; color: #fff; border-radius: 1rem; font-size: .6rem; padding: 0 .35rem; line-height: 1.3; }

/* ---- news & calendar ---- */
.news-card .news-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: .5rem .5rem 0 0; }
.news-body p:last-child { margin-bottom: 0; }
.news-body ul { padding-left: 1.2rem; }
.cal { table-layout: fixed; }
.cal th { text-align: center; font-weight: 500; font-size: .8rem; color: var(--bs-secondary-color); }
.cal td { height: 110px; vertical-align: top !important; padding: .25rem !important; }
.cal td.other { background: var(--soft-bg); color: var(--bs-tertiary-color); }
.cal td.today .day-no { background: var(--accent); color: var(--accent-fg); border-radius: 50%; }
.cal .day-no { display: inline-block; min-width: 1.6em; text-align: center; font-size: .8rem; }
.cal .chip { display: block; font-size: .72rem; line-height: 1.25; padding: .1rem .3rem; margin-top: 2px; border-radius: .25rem;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.cal .chip.service { background: var(--muted-bg) !important; color: var(--brand-text); }
.cal .chip.cancelled { text-decoration: line-through; opacity: .6; }
@media (max-width: 767.98px) { .cal td { height: 64px; } .cal .chip { font-size: 0; height: 6px; padding: 0; } }
.date-tile { width: 3.4rem; flex-shrink: 0; text-align: center; border-radius: var(--bs-border-radius-lg); background: var(--muted-bg); padding: .25rem 0; line-height: 1.1; }
.date-tile .mo { font-size: .7rem; text-transform: uppercase; color: var(--brand-text); font-weight: 600; }
.date-tile .dd { font-size: 1.35rem; font-weight: 600; }
.date-tile .wd { font-size: .7rem; color: var(--bs-secondary-color); }
.cat-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .25rem; }
.cal .chip.draft { opacity: .55; outline: 1px dashed #fff; }

/* ---- reports ---- */
.report-chart { width: 100%; height: auto; display: block; }
.report-chart .mark:hover path, .report-chart .mark:hover circle:last-child { opacity: .8; }
.report-table td, .report-table th { white-space: nowrap; }
.report-table td:first-child, .report-table td:nth-child(2) { white-space: normal; }
.report-table tr.row-heading td { background: var(--muted-bg) !important; font-weight: 600; }
.report-table tr.row-subtotal td { font-weight: 600; border-top: 1px solid #8a90a0; }
.report-table tr.row-total td, .report-table tfoot td { font-weight: 700; border-top: 2px solid var(--ink-strong); }
.print-only { display: none; }
@media print { .print-only { display: block; } .report .card { break-inside: avoid; } }

/* ---- branding: letterheads on receipts, posters, printed reports ---- */
.letterhead { display: flex; align-items: center; gap: .9rem; }
.letterhead.center { flex-direction: column; text-align: center; gap: .4rem; }
.letterhead .brand-logo { height: 56px; width: auto; max-width: 180px; }
.letterhead .lh-name { font-weight: 600; color: var(--brand-text); line-height: 1.2; }
.letterhead .lh-tag { font-size: .85rem; color: var(--bs-secondary-color); font-style: italic; }
.letterhead .lh-addr { font-size: .8rem; color: var(--bs-secondary-color); white-space: pre-line; }
.report-head .brand-logo { height: 44px; }
.welcome-card { border-left: 4px solid var(--brand) !important; }
/* branding settings page */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; }
.swatch { position: relative; border: 2px solid var(--line); border-radius: var(--bs-border-radius); padding: .4rem; cursor: pointer; background: var(--panel); font-size: .78rem; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch .chips { display: flex; height: 26px; border-radius: calc(var(--bs-border-radius) - 2px); overflow: hidden; margin-bottom: .3rem; }
.swatch .chips span { flex: 1; }
.swatch .chips span:first-child { flex: 2; }
.swatch:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(var(--accent-rgb), .2); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.color-pair { display: flex; gap: .5rem; align-items: center; }
.color-pair input[type=color] { width: 3rem; height: 2.4rem; padding: .15rem; flex-shrink: 0; }
.logo-box { display: flex; align-items: center; justify-content: center; min-height: 110px; border: 1px dashed var(--line); border-radius: var(--bs-border-radius); background: repeating-conic-gradient(#f1f3f7 0 25%, #fff 0 50%) 0 0 / 16px 16px; padding: 1rem; }
.logo-box img { max-height: 90px; max-width: 100%; }
.choice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.choice-card { border: 2px solid var(--line); border-radius: var(--bs-border-radius); padding: .5rem; cursor: pointer; text-align: center; font-size: .8rem; background: var(--panel); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(var(--accent-rgb), .2); }
.mini-ui { display: flex; height: 56px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); margin-bottom: .35rem; }
.mini-ui .mini-side { width: 34%; }
.mini-ui .mini-main { flex: 1; background: #f5f6fa; padding: 6px; }
.mini-ui .mini-main span { display: block; height: 6px; border-radius: 3px; background: #dfe3ea; margin-bottom: 4px; }
.mini-ui .mini-main span.btnish { width: 40%; height: 10px; background: var(--accent); }
.app-icon-preview { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.app-icon-preview figure { margin: 0; text-align: center; font-size: .72rem; color: var(--bs-secondary-color); }
.app-icon-preview img { display: block; margin: 0 auto .25rem; }
.login-logo { height: 88px; width: auto; max-width: 260px; }
.poster-logo { height: 96px; width: auto; max-width: 280px; }
.card-logo { height: 56px; width: auto; max-width: 200px; }

/* ---- access control ---- */
.perm-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .75rem 1.5rem; }
.perm-group { border: 1px solid var(--line); border-radius: var(--bs-border-radius-lg); padding: .5rem .85rem .35rem; background: var(--panel); }
.perm-group legend { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); float: none; width: auto; padding: 0 .3rem; margin: 0 0 .3rem -.3rem; display: flex; }
.perm-group legend .perm-all { font-size: .75rem; text-transform: none; letter-spacing: 0; margin-left: .75rem; }
.perm-item { margin-bottom: .45rem; }
.perm-item .form-check-label { line-height: 1.3; }
.perm-crit { font-size: .62rem; font-weight: 600; vertical-align: .1em; }
.perm-list { columns: 2 260px; column-gap: 1.5rem; }
.perm-list li { break-inside: avoid; }
.temp-banner { background: var(--accent-subtle); color: var(--accent-subtle-text); border-bottom: 1px solid var(--line); font-size: .85rem; padding: .35rem 1.25rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.temp-banner a { color: inherit; font-weight: 600; }
.role-card .perm-count { font-variant-numeric: tabular-nums; }

/* HQ staff working inside a branch */
.acting-banner { background: #fff3cd; color: #664d03; border-bottom: 1px solid #ffe69c; font-size: .85rem; padding: .35rem 1.25rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
[data-bs-theme="dark"] .acting-banner { background: #332701; color: #ffda6a; border-color: #664d03; }
.net-tree .depth-1 { padding-left: 1.5rem; } .net-tree .depth-2 { padding-left: 3rem; } .net-tree .depth-3 { padding-left: 4.5rem; }
.join-code { font-family: var(--bs-font-monospace); font-size: 1.6rem; letter-spacing: .1em; }

/* subscription notices */
.sub-banner { font-size: .85rem; padding: .35rem 1.25rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.sub-banner a { color: inherit; font-weight: 600; }
.sub-info { background: #cff4fc; color: #055160; } .sub-warning { background: #fff3cd; color: #664d03; } .sub-danger { background: #f8d7da; color: #58151c; }
[data-bs-theme="dark"] .sub-info { background: #032830; color: #6edff6; } [data-bs-theme="dark"] .sub-warning { background: #332701; color: #ffda6a; } [data-bs-theme="dark"] .sub-danger { background: #2c0b0e; color: #ea868f; }
.health-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; }
.health-ok { background: #198754; } .health-warn { background: #ffc107; } .health-fail { background: #dc3545; }
.signup-qr svg { width: 132px; height: 132px; display: block; }
.signup-facts dd { margin-bottom: .2rem; }
.online-pulse { animation: online-pulse 2s ease-in-out infinite; vertical-align: middle; }
@keyframes online-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .online-pulse { animation: none; } }
.terms-wrap { max-width: 760px; margin: 0 auto; }
.terms-body { max-height: 46vh; overflow-y: auto; font-size: .92rem; line-height: 1.55; }
.terms-body-full { max-height: none; }
.terms-body h2 { font-size: 1.15rem; margin-top: .25rem; } .terms-body h3 { font-size: 1rem; margin-top: 1rem; }
.terms-body h4 { font-size: .95rem; }
.staging-banner { background: #fff3cd; color: #664d03; }
