/* Kristapp for Retreats — design system, 16 October 2026 port of the agreed
   "Kristapp for Retreats — Internal Portals" prototype.
   One navy Kristapp scheme (light and dark) for every internal portal and the
   attendee area; the public website keeps its own fixed ivory/maroon identity
   under .pub-portal (see the PUBLIC WEBSITE block at the end). */

:root {
  --bg:#EEF1F6; --surface:#FFFFFF; --surface-2:#F4F6F9;
  --ink:#1A2233; --ink-2:#4B5566; --muted:#8690A0;
  --line:#E2E6ED; --line-strong:#C9D0DC;
  --brand:#0A1A3C; --brand-ink:#FFFFFF; --brand-soft:#E7EEFC; --brand-deep:#132C66;
  --gold:#2E6AE0; --gold-soft:#E7EEFC;
  --marian:#2D4A6B; --marian-soft:#E4EAF2;
  --green:#1F8A4C; --green-soft:#E3F6EA;
  --amber:#B4740E; --amber-soft:#FBF0DB;
  --red:#BE3C3C; --red-soft:#FBE8E8;
  --radius:10px; --radius-lg:14px;
  --shadow:0 1px 2px rgba(10,20,40,.05);
  --shadow-lg:0 4px 24px rgba(10,20,40,.1);

  /* Admin shell tokens: the sidebar and topbar read these directly. */
  --adm-navy:#0A1A3C; --adm-navy-2:#132C66;
  --adm-page-bg:#EEF1F6; --adm-surface:#FFFFFF; --adm-surface-2:#F4F6F9;
  --adm-border:#E2E6ED; --adm-border-strong:#C9D0DC;
  --adm-ink:#1A2233; --adm-ink-2:#4B5566; --adm-muted:#8690A0;
  --adm-accent:#2E6AE0; --adm-accent-soft:#E7EEFC;
  --adm-success:#1F8A4C; --adm-success-soft:#E3F6EA;

  /* Compat tokens, kept for pages that still read the earlier names */
  --on-brand:#FFFFFF; --deep:#132C66; --focus:#2E6AE0;
  --good:var(--green); --good-soft:var(--green-soft);
  --warn:var(--amber); --warn-soft:var(--amber-soft);
  --bad:var(--red); --bad-soft:var(--red-soft);
  --info-soft:var(--marian-soft);
  --f-body:'Open Sans', system-ui, -apple-system, sans-serif;
  --f-display:'Open Sans', system-ui, -apple-system, sans-serif;
  --f-serif:'Playfair Display', Georgia, serif;
  --radius-sm:8px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#10151F; --surface:#161C27; --surface-2:#1D2432;
    --ink:#EDF0F5; --ink-2:#C3CAD6; --muted:#8A94A6;
    --line:#2A3344; --line-strong:#3A4559;
    --brand:#6C97EE; --brand-ink:#0A1A3C; --brand-soft:#1E2C4A; --brand-deep:#15296B;
    --gold:#6C97EE; --gold-soft:#1E2C4A;
    --marian:#8FB2D8; --marian-soft:#1B2634;
    --green:#5FCB8B; --green-soft:#173322;
    --amber:#E0AC55; --amber-soft:#2E2210;
    --red:#F08A8A; --red-soft:#2E1616;
    --adm-navy:#0A1A3C; --adm-navy-2:#15296B;
    --adm-page-bg:#10151F; --adm-surface:#161C27; --adm-surface-2:#1D2432;
    --adm-border:#2A3344; --adm-border-strong:#3A4559;
    --adm-ink:#EDF0F5; --adm-ink-2:#C3CAD6; --adm-muted:#8A94A6;
    --adm-accent:#6C97EE; --adm-accent-soft:#1E2C4A;
    --adm-success:#5FCB8B; --adm-success-soft:#173322;
    color-scheme:dark;
  }
}
:root[data-theme="dark"] {
  --bg:#10151F; --surface:#161C27; --surface-2:#1D2432;
  --ink:#EDF0F5; --ink-2:#C3CAD6; --muted:#8A94A6;
  --line:#2A3344; --line-strong:#3A4559;
  --brand:#6C97EE; --brand-ink:#0A1A3C; --brand-soft:#1E2C4A; --brand-deep:#15296B;
  --gold:#6C97EE; --gold-soft:#1E2C4A;
  --marian:#8FB2D8; --marian-soft:#1B2634;
  --green:#5FCB8B; --green-soft:#173322;
  --amber:#E0AC55; --amber-soft:#2E2210;
  --red:#F08A8A; --red-soft:#2E1616;
  --adm-navy:#0A1A3C; --adm-navy-2:#15296B;
  --adm-page-bg:#10151F; --adm-surface:#161C27; --adm-surface-2:#1D2432;
  --adm-border:#2A3344; --adm-border-strong:#3A4559;
  --adm-ink:#EDF0F5; --adm-ink-2:#C3CAD6; --adm-muted:#8A94A6;
  --adm-accent:#6C97EE; --adm-accent-soft:#1E2C4A;
  --adm-success:#5FCB8B; --adm-success-soft:#173322;
  color-scheme:dark;
}

* { box-sizing:border-box; }
html, body { margin:0; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .h3 { margin:0; font-weight:700; letter-spacing:-.02em; color:var(--ink); font-family:var(--f-body); }
h1 { font-size:clamp(24px,3.4vw,30px); line-height:1.15; font-weight:800; letter-spacing:-.03em; text-wrap:balance; }
h2 { font-size:22px; line-height:1.25; }
h3, .h3 { font-size:18px; line-height:1.3; }
h4 { font-size:15px; line-height:1.4; font-weight:600; color:var(--ink-2); text-transform:uppercase; letter-spacing:.06em; }
p { margin:0; }
a { color: var(--brand); text-decoration:none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
img { max-width:100%; display:block; }
[hidden] { display:none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ============ CHROME (public and admin top bar) ============ */
.chrome {
  position: sticky; top: env(safe-area-inset-top,0px); z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 10px 20px; display:flex; align-items:center; gap:16px; flex-wrap: wrap;
}
.brand-mark { display:flex; align-items:center; gap:10px; font-weight:700; font-size:17px; color:var(--ink); text-decoration:none; }
.brand-mark .cross { width:22px; height:22px; flex:0 0 auto; }
.chrome .divider { width:1px; height:28px; background:var(--line); }
.chrome-label { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; margin-right:4px; }
.chrome .spacer { flex: 1; }
.spacer { flex: 1; }
.clock { font-variant-numeric: tabular-nums; font-size:13px; color:var(--muted); font-weight:500; }

/* ============ SHELL (sidebar + main) ============ */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 60px); }
.shell.no-side { grid-template-columns: 1fr; }
.side {
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 20px 0; display:flex; flex-direction:column;
}
.side-section { padding: 0 12px 16px; }
.side-section:not(:last-child) { border-bottom:1px solid var(--line); margin-bottom:12px; }
.side-title { font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; padding:6px 12px; font-weight:600; }
.side-item {
  display:flex; align-items:center; gap:12px;
  padding:11px 12px; border-radius:8px; color:var(--ink-2);
  font-size:14px; font-weight:500; cursor:pointer; text-decoration:none;
}
.side-item:hover { background: var(--surface-2); text-decoration:none; }
.side-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side-item .ico { width:18px; height:18px; flex:0 0 auto; color: currentColor; }
.side-item .badge { margin-left:auto; background: var(--brand); color: var(--brand-ink); font-size:11px; font-weight:700; padding:2px 7px; border-radius:999px; }
.side-user { display:flex; align-items:center; gap:10px; padding:10px 12px; border-top:1px solid var(--line); margin-top:auto; }
.avatar { width:36px; height:36px; border-radius:50%; background: var(--brand-soft); color: var(--brand); display:grid; place-items:center; font-weight:700; font-size:14px; flex:0 0 auto; }
.main { padding: 24px 32px 48px; overflow-x:auto; min-width:0; display:flex; flex-direction:column; gap:20px; }
.main > .page-head { margin-bottom: 0; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 18px 16px; }
}

/* (Public header, footer and sections live in the PUBLIC WEBSITE block at the end.) */

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, #4A1520 100%);
  color: #FBF8F3; padding: 64px 24px; text-align:center;
  position:relative; overflow:hidden;
}
.hero::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(circle at 20% 30%, rgba(155,122,43,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(45,74,107,.15) 0%, transparent 50%);
  pointer-events:none;
}
.hero-inner { position:relative; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: 36px; line-height: 1.2; color: #FBF8F3; margin-bottom: 12px; font-weight: 700; }
.hero .lede { font-size: 17px; color: rgba(251,248,243,.88); margin-bottom: 28px; }
.hero .search {
  background: var(--surface); padding: 14px; border-radius: var(--radius-lg);
  display:flex; gap:10px; box-shadow: var(--shadow-lg); align-items:center;
}
.hero .search input { flex:1; border:none; background:transparent; font:inherit; padding:10px; color:var(--ink); min-width:0; }
.hero .search input:focus { outline: none; }

/* Centre-page burgundy hero (shorter) */
.hero-centre {
  background: linear-gradient(135deg, var(--brand) 0%, #4A1520 100%);
  color: #FBF8F3; padding: 48px 24px; text-align:center;
}
.hero-centre h1 { color: #FBF8F3; font-size: 32px; }
.hero-centre .sub { color: rgba(251,248,243,.85); margin-top: 8px; }

/* ============ COMMON ============ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 32px); }

.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 12px 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px; min-height: 48px;
  cursor:pointer; border: 1px solid transparent; white-space:nowrap;
  text-decoration:none; transition: transform .1s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.btn-full { width: 100%; }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-primary:hover { box-shadow: var(--shadow-lg); text-decoration:none; color: var(--brand-ink); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); text-decoration:none; color: var(--ink); }
.btn-gold { background: var(--gold); color: #FFF; border-color: var(--gold); }
.btn-ghost { color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand-soft); text-decoration:none; }
.btn-sm, .btn.small { padding: 9px 15px; font-size: 13.5px; min-height: 40px; border-radius: 10px; }
.btn-lg { padding: 14px 28px; font-size: 16px; min-height: 52px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
/* Compat: original .btn with no modifier was primary */
.btn:not(.btn-primary):not(.btn-secondary):not(.btn-gold):not(.btn-ghost):not(.btn-outline):not(.btn-danger-outline):not(.btn-sm):not(.btn-lg):not(.ghost):not(.danger):not(.small),
.btn.small:not(.btn-secondary):not(.btn-ghost):not(.btn-outline):not(.btn-danger-outline):not(.ghost):not(.danger) {
  background: var(--brand); color: var(--brand-ink); border-color: var(--brand);
}
.btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn.danger { background: transparent; border-color: var(--red); color: var(--red); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); transition: border-color .15s; }
.card-pad-lg { padding: 28px; }
.card-pad-sm { padding: 14px; }
.card .card-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.card h3 { margin-bottom: 4px; }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
/* Compat auto-fill grid */
.grid.auto, .grid:not(.grid-2):not(.grid-3):not(.grid-4):not(.stack-lg) {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.between { justify-content: space-between; }
.stack { display:flex; flex-direction:column; gap:12px; }
.stack-lg { gap: 20px; }
.stack-sm { gap: 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.sticky { position: sticky; top: 84px; }
@media (max-width: 900px) { .sticky { position: static; } }
.narrow { max-width: 720px; margin-inline: auto; }
.narrow-left { max-width: 640px; }

.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.sep { height: 1px; background: var(--line); margin: 12px 0; }
.ink-2 { color: var(--ink-2); }
.muted { color: var(--muted); }
.text-sm { font-size: 13px; } .text-xs { font-size: 12px; } .text-lg { font-size: 17px; }
.font-bold { font-weight: 700; } .font-med { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============ CHIPS ============ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .01em;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.chip-brand  { background: var(--brand-soft);  color: var(--brand); }
.chip-gold   { background: var(--gold-soft);   color: var(--gold); }
.chip-green  { background: var(--green-soft);  color: var(--green); }
.chip-amber  { background: var(--amber-soft);  color: var(--amber); }
.chip-red    { background: var(--red-soft);    color: var(--red); }
.chip-marian { background: var(--marian-soft); color: var(--marian); }
.chip-grey   { background: var(--surface-2);   color: var(--ink-2); }
.chip-dot::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }
/* Compat for old chip variants */
.chip.good  { background: var(--green-soft);  color: var(--green); }
.chip.warn  { background: var(--amber-soft);  color: var(--amber); }
.chip.bad   { background: var(--red-soft);    color: var(--red); }
.chip.gold  { background: var(--gold-soft);   color: var(--gold); }
.chip.blue  { background: var(--marian-soft); color: var(--marian); }

/* ============ KPI ============ */
.kpi {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.kpi .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 6px; }
.kpi .value { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi .delta.up { color: var(--green); }
.kpi .delta.down { color: var(--red); }
/* Compat: old pages used `<span>label</span><b>value</b>` */
.kpi span { color: var(--muted); font-size: .86rem; }
.kpi b { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }

/* ============ TABLES ============ */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { text-align: left; padding: 16px; border-bottom: 1px solid var(--line); }
.table th { font-weight: 700; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); padding: 14px 16px; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.table-wrap .table th:first-child, .table-wrap .table td:first-child { padding-left: 20px; }
.table-wrap .table th:last-child,  .table-wrap .table td:last-child  { padding-right: 20px; }
/* Compat for bare <table> */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); font-weight: 700; }
td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }

/* ============ FORMS ============ */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0; margin: 0; }
.field > span:first-child:not(.static) { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field .hint, .field small { font-size: 12px; color: var(--muted); line-height: 1.4; font-weight: 400; }
.field ::placeholder { color: var(--muted); opacity: 1; }
/* Radio groups use <fieldset class="field">: drop the browser's frame so the legend reads as a label. */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { float: left; width: 100%; margin-bottom: 6px; }
fieldset.field > legend + * { clear: both; }
/* Blazor's InputText renders <input> with no type attribute, so match every text-like input by exclusion. */
.field input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="color"]):not([type="file"]):not([type="submit"]),
.field select, .field textarea,
.filters input, .filters select, .searchbar input, .searchbar select, .row > input {
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: inherit; min-height: 48px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus,
.filters input:focus, .filters select:focus, .searchbar input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input[type="color"] { padding: 4px; width: 80px; min-height: 44px; }
.field .locked { background: var(--surface-2); }
.field .static { color: var(--ink); font-weight: 500; min-height: 48px; display: flex; align-items: center; }
[aria-invalid=true] { border-color: var(--red) !important; }
.err { color: var(--red); font-size: .82rem; font-weight: 600; }

.checkbox, .check {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); font-size: 14px; line-height: 1.4; color: var(--ink);
  font-weight: 500;
}
.checkbox:hover, .check:hover { background: var(--surface-2); }
.check:has(input:checked), .opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.check:focus-within, .opt:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.checkbox input, .check input { margin-top: 1px; flex: 0 0 auto; accent-color: var(--brand); width: 20px; height: 20px; }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
/* `.field .opt` outranks `.field label { padding: 0 }` so the chips keep their padding inside a form field. */
.opt, .field .opt {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 6px 18px 6px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer;
}
.opt input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; flex: 0 0 auto; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.searchbar { display: flex; flex-wrap: wrap; gap: 8px; max-width: 760px; }
.searchbar input { flex: 1 1 260px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.filters label.check { flex-direction: row; align-items: center; color: var(--ink); }
.conds { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.hidden-form { display: none; }
ul.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }

/* ============ RETREAT CARD ============ */
.retreat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: box-shadow .15s;
}
.retreat-card:hover { box-shadow: var(--shadow-lg); }
.retreat-top { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); }
.retreat-top .code { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.retreat-top h3 { font-size: 18px; margin-bottom: 4px; }
.retreat-top .dates { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.retreat-body { padding: 14px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); min-width: 0; }
.retreat-body .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.retreat-body h2 a, .retreat-body h3 a { color: var(--ink); text-decoration: none; }
.retreat-body h2 a:hover, .retreat-body h3 a:hover { text-decoration: underline; }
.retreat-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; background: var(--surface-2); }
.retreat-foot .fee { font-weight: 700; color: var(--ink); font-size: 16px; }
/* Compat for pages still rendering the older three-column retreat row */
.retreat-date { text-align: center; border-radius: 12px; background: var(--surface-2); padding: 8px 4px; display: flex; flex-direction: column; }
.retreat-date span { font-size: .72rem; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.retreat-date b { font-size: 1.6rem; }
.retreat-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-wrap: wrap; padding: 14px 20px; }

/* ============ CENTRE CARD ============ */
.centre-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow);
}
.centre-card h3 a { color: var(--ink); text-decoration: none; }
.centre-card h3 a:hover { text-decoration: underline; }
.centre-emblem {
  width: 56px; height: 56px; flex: 0 0 auto;
  border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: 20px;
}
.centre-emblem.gold   { background: var(--gold-soft);   color: var(--gold); }
.centre-emblem.marian { background: var(--marian-soft); color: var(--marian); }
.centre-emblem.green  { background: var(--green-soft);  color: var(--green); }

/* ============ STEPS ============ */
.steps { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.step { padding: 14px 4px; margin-right: 28px; color: var(--muted); font-weight: 500; font-size: 14px; position: relative; display: flex; align-items: center; gap: 8px; }
.step.active { color: var(--brand); border-bottom: 2px solid var(--brand); margin-bottom: -1px; font-weight: 600; }
.step.done { color: var(--green); }
.step .num { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.step.active .num { background: var(--brand); color: var(--brand-ink); }
.step.done .num { background: var(--green); color: #FFF; }

/* ============ ALERTS ============ */
.alert {
  padding: 14px 16px; border-radius: 10px;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; line-height: 1.5; border: 1px solid;
  background: var(--surface);
}
.alert-info    { background: var(--marian-soft); border-color: var(--marian); color: var(--marian); }
.alert-success { background: var(--green-soft);  border-color: var(--green);  color: var(--green); }
.alert-warn    { background: var(--amber-soft);  border-color: var(--amber);  color: var(--amber); }
.alert-error   { background: var(--red-soft);    border-color: var(--red);    color: var(--red); }
/* Compat variants */
.alert.info { background: var(--marian-soft); border-color: var(--marian); color: var(--marian); }
.alert.good { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.alert.warn { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.alert.bad  { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.alert b { color: inherit; }

.source { border: 1px dashed var(--gold); background: var(--gold-soft); border-radius: 12px; padding: 10px 14px; font-size: .92rem; color: var(--ink-2); }

/* ============ RECEIPT ============ */
.receipt {
  background: var(--surface); border: 1px solid var(--gold);
  border-radius: var(--radius-lg); padding: 28px;
  position: relative; overflow: hidden;
}
.receipt::before {
  content: ""; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
  pointer-events: none;
}
.receipt .seal { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.receipt-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.receipt-row:last-child { border-bottom: none; padding-top: 14px; font-weight: 700; font-size: 16px; color: var(--ink); }
.receipt-row .l { color: var(--muted); }

/* ============ VERSE STRIP ============ */
.verse {
  text-align: center; padding: 28px 24px;
  background: var(--gold-soft); color: var(--ink-2);
  font-style: italic; font-size: 16px;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
}
.verse .ref { display: block; margin-top: 6px; font-style: normal; font-weight: 600; font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; }

/* ============ PAGE HEAD / BREADCRUMBS ============ */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.page-head .crumbs a { color: var(--muted); }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ============ TABS ============ */
.tab-nav { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab-nav button, .tab-nav a { padding: 12px 18px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.tab-nav button.active, .tab-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-nav button:hover:not(.active), .tab-nav a:hover:not(.active) { color: var(--ink-2); text-decoration: none; }

.pill-tabs { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 2px; border: 1px solid var(--line); }
.pill-tabs button, .pill-tabs a { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.pill-tabs button.active, .pill-tabs a.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.05); }

/* ============ ROLE INTRO STRIP ============ */
.role-intro {
  background: linear-gradient(90deg, var(--brand-soft) 0%, var(--surface) 100%);
  border: 1px solid var(--line); border-left: 4px solid var(--brand);
  padding: 14px 18px; border-radius: 0 10px 10px 0;
  margin-bottom: 20px; font-size: 14px; color: var(--ink-2);
}
.role-intro strong { color: var(--brand); }

/* ============ FACTS LIST ============ */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 20px; margin: 0; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ============ LIST / ITEM ============ */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; text-decoration: none; color: var(--ink); }
.item .meta { display: flex; flex-direction: column; min-width: 0; flex: 1 1 240px; }
.item .meta span { color: var(--muted); font-size: .9rem; }

.bar { height: 10px; border-radius: 4px; background: var(--surface-2); overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--brand); }

/* ============ FORM HEAD (sign-in style) ============ */
.formhead { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.formhead q { font-style: italic; color: var(--muted); font-size: .9rem; }

/* ============ COMPAT SHIM: old topbar / sidebar / admin shell ============ */
/* Pages that still use the old wrappers get the new chrome treatment. */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line); color: var(--ink);
}
.topbar-row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding-block: 12px; }
.site .topbar { background: var(--surface); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.mark { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.brand-text b { display: block; font-weight: 700; font-size: 1.1rem; color: var(--ink); line-height: 1.1; }
.brand-text small { color: var(--muted); font-size: .78rem; }
.topnav { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.topnav a, .topnav .linkish { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .93rem; padding: 8px 12px; border-radius: 8px; }
.topnav a:hover { background: var(--surface-2); text-decoration: none; }
.topnav .btn { background: var(--brand); color: var(--brand-ink); }
.page { padding-block: 28px 64px; display: flex; flex-direction: column; gap: 24px; }
.footer { border-top: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: .85rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 18px; }
form.inline { display: inline; margin: 0; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-decoration: none; }

.admin { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .admin { grid-template-columns: 1fr; } .admin .sidebar { display: none; } }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--line);
  color: var(--ink-2); padding: 22px 14px; display: flex; flex-direction: column; gap: 2px;
}
.admin .sidebar, .platform .sidebar, .group .sidebar, .volunteer .sidebar { background: var(--surface); color: var(--ink-2); }
.sidebar .brand { padding: 0 8px 18px; color: var(--ink); }
.sidebar > a, .sidebar .linkish, .sidebar form.inline button {
  padding: 10px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .94rem; text-align: left; display: block;
}
.sidebar > a:hover { background: var(--surface-2); }
.sidebar > a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.sidebar-gap { flex: 1 1 auto; min-height: 16px; }
.admin-main { min-width: 0; padding: 28px clamp(16px, 3vw, 36px) 64px; display: flex; flex-direction: column; gap: 20px; }
.admin-head { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; }
.eyebrow { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; color: var(--gold); }

/* Small compat utilities */
.timing { font-size: 13px; color: var(--muted); }
.prose { white-space: pre-line; max-width: 70ch; }
.prose-block { white-space: pre-line; }
.reg { font-family: 'Open Sans', monospace; letter-spacing: .02em; }
.known { background: var(--green-soft); color: var(--green); padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }

/* Blazor focuses the page heading after navigation for screen readers; it should not draw a box. */
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible { outline: none; }

/* Staff and volunteer pages */
.admin-head > div > p { margin: 6px 0 0; max-width: 72ch; }
.title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head p { margin: 2px 0 0; font-size: 13px; }
.add-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: end; }
.person { display: flex; align-items: center; gap: 12px; }
.person b { display: block; font-weight: 600; }
.person small { color: var(--muted); }
.table td { vertical-align: middle; }
.table .actions { text-align: right; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.role-cards > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; }
.role-cards p { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }

/* Sub-menu under a sidebar item, list toolbars and pager */
.side-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px 16px; padding-left: 8px; border-left: 2px solid var(--line); }
.side-sub .side-item { min-height: 38px; font-size: 14px; }
.card-head .searchbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.card-head .searchbar input[type="search"] { min-width: 260px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }
details.card > summary { list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: "+"; display: inline-block; width: 22px; font-weight: 700; color: var(--brand); }
details.card[open] > summary::before { content: "\2212"; }

/* Check-in desk (Volunteer/CheckIn.razor) */
.checkin-desk-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin-top:12px; }

/* Communications (Admin/Communications.razor, CommunicationDetail.razor) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tab-link { padding: 10px 16px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-link:hover { color: var(--ink); text-decoration: none; }
.tab-link.active { color: var(--brand); border-bottom-color: var(--brand); }
.comms-retreat-group { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.comms-retreat-group:first-of-type { margin-top: 14px; }
.comms-participant-list { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 0 28px; max-height: 260px; overflow-y: auto; }
.comms-participant-list .check { padding: 6px 10px; }

/* Printable A4 registration confirmation (Public/RegistrationView.razor) */
.a4-confirm { display: none; }
@media print {
    body * { visibility: hidden; }
    .a4-confirm, .a4-confirm * { visibility: visible; }
    .a4-confirm {
        display: block; position: absolute; inset: 0; width: 210mm; min-height: 297mm; margin: 0 auto; padding: 18mm;
        background: #FFF; color: #1a1a1a; font-family: var(--f-body);
    }
}
.a4-confirm-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #1a1a1a; padding-bottom: 12px; margin-bottom: 18px; }
.a4-confirm-head h2 { font-size: 20px; margin: 0 0 4px; }
.a4-confirm-qr { text-align: center; }
.a4-confirm-qr p { font-size: 10px; color: #666; max-width: 220px; margin: 8px 0 0; }
.a4-confirm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; font-size: 13px; margin-bottom: 18px; }
.a4-confirm-grid .k { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #666; font-weight: 700; }
.a4-confirm-grid .v { font-weight: 600; }
.a4-confirm-foot { margin-top: 24px; font-size: 11px; color: #666; border-top: 1px dashed #999; padding-top: 10px; }

/* ======================================================================
   ADMIN DESIGN SYSTEM — the navy sidebar shell shared by Volunteer, Centre
   Admin, Group Admin and Eloit Super Admin (Layout/AdminShell.razor).
====================================================================== */
.adm-shell { display: flex; align-items: stretch; min-height: 100vh; background: var(--adm-page-bg); }
.adm-sidebar {
  width: 252px; flex: 0 0 252px; color: #fff;
  background: linear-gradient(180deg, var(--adm-navy) 0%, var(--adm-navy-2) 100%);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  transition: width .15s, flex-basis .15s; z-index: 30;
}
html.adm-collapsed .adm-sidebar { width: 72px; flex-basis: 72px; }
.adm-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 16px 14px; }
.adm-wordmark { font-weight: 800; font-size: 17px; letter-spacing: .01em; color: #fff; white-space: nowrap; overflow: hidden; text-decoration: none; }
.adm-wordmark:hover { text-decoration: none; color: #fff; }
.adm-hamburger { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.14); display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.adm-hamburger:hover { background: rgba(255,255,255,.22); }
.adm-search { margin: 0 14px 14px; position: relative; }
.adm-search input { width: 100%; padding: 9px 12px 9px 32px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 13px; }
.adm-search input::placeholder { color: rgba(255,255,255,.5); }
.adm-search input:focus { outline: none; border-color: rgba(255,255,255,.4); }
.adm-search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.55); pointer-events: none; }
.adm-nav { flex: 1; padding: 2px 10px 16px; display: flex; flex-direction: column; gap: 2px; }
.adm-nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 11px; border-radius: 9px;
  color: rgba(255,255,255,.8); font-size: 13.5px; font-weight: 600; white-space: nowrap; text-decoration: none; text-align: left;
}
.adm-nav-item svg { flex: 0 0 auto; }
.adm-nav-item:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.adm-nav-item.active { background: #fff; color: var(--adm-navy); }
.adm-nav-item .lbl { overflow: hidden; text-overflow: ellipsis; }
.adm-nav-item .chev { margin-left: auto; transition: transform .15s; opacity: .7; display: flex; }
.adm-nav-item.expanded .chev { transform: rotate(90deg); }
.nav-badge { margin-left: auto; background: #e0a233; color: #2a1d00; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; line-height: 1.5; }
.adm-submenu { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 8px 34px; }
.adm-submenu a { width: 100%; padding: 8px 10px; font-size: 12.8px; color: rgba(255,255,255,.68); border-radius: 7px; white-space: nowrap; text-decoration: none; }
.adm-submenu a:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.adm-submenu a.active { color: #fff; font-weight: 700; background: rgba(255,255,255,.14); }
.adm-side-foot { padding: 10px 14px 16px; border-top: 1px solid rgba(255,255,255,.12); }
.adm-side-foot a { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.72); font-size: 12.8px; font-weight: 600; padding: 8px 6px; border-radius: 8px; text-decoration: none; white-space: nowrap; }
.adm-side-foot a:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
html.adm-collapsed .adm-sidebar .lbl,
html.adm-collapsed .adm-sidebar .adm-search,
html.adm-collapsed .adm-sidebar .adm-submenu,
html.adm-collapsed .adm-sidebar .chev,
html.adm-collapsed .adm-sidebar .nav-badge,
html.adm-collapsed .adm-sidebar .adm-wordmark { display: none; }
html.adm-collapsed .adm-sidebar .adm-side-head { justify-content: center; }
html.adm-collapsed .adm-sidebar .adm-nav-item,
html.adm-collapsed .adm-sidebar .adm-side-foot a { justify-content: center; }

.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-topbar {
  background: var(--adm-surface); border-bottom: 1px solid var(--adm-border); padding: 13px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 20;
}
.adm-org { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-org .logo { width: 36px; height: 36px; border-radius: 50%; background: var(--adm-navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; flex: 0 0 auto; }
.adm-org b { font-size: 15px; color: var(--adm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-top-icons { display: flex; align-items: center; gap: 18px; color: var(--adm-ink-2); flex: 0 0 auto; }
.adm-top-icons > a, .adm-top-icons summary { display: grid; place-items: center; color: var(--adm-ink-2); cursor: pointer; }
.adm-top-icons > a:hover, .adm-top-icons summary:hover { color: var(--adm-ink); text-decoration: none; }
.adm-mobile-nav { display: none; color: var(--adm-ink-2); }
.adm-user { position: relative; }
.adm-user summary { list-style: none; }
.adm-user summary::-webkit-details-marker { display: none; }
.adm-user-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; z-index: 40;
  background: var(--adm-surface); border: 1px solid var(--adm-border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.adm-user-menu .who b { display: block; font-size: 14px; color: var(--adm-ink); }
.adm-user-menu .who span { font-size: 12.5px; color: var(--adm-muted); }
.adm-user-menu a, .adm-user-menu button { font-size: 13.5px; font-weight: 600; color: var(--adm-ink-2); text-align: left; padding: 6px 0; }
.adm-user-menu a:hover, .adm-user-menu button:hover { color: var(--adm-ink); text-decoration: none; }
.adm-content { padding: 26px 28px 60px; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.adm-content > .page-head, .adm-content > .admin-head { margin-bottom: 0; }
.adm-backdrop { display: none; }
@media (max-width: 860px) {
  .adm-sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s; }
  html.adm-nav-open .adm-sidebar { box-shadow: 16px 0 48px rgba(10,20,40,.25); }
  html.adm-collapsed .adm-sidebar { width: 252px; flex-basis: 252px; }
  html.adm-collapsed .adm-sidebar .lbl, html.adm-collapsed .adm-sidebar .adm-search, html.adm-collapsed .adm-sidebar .adm-wordmark { display: initial; }
  html.adm-nav-open .adm-sidebar { transform: none; }
  html.adm-nav-open .adm-backdrop { display: block; position: fixed; inset: 0; background: rgba(10,20,40,.38); z-index: 25; }
  .adm-mobile-nav { display: grid; place-items: center; }
  .adm-content { padding: 18px 16px 48px; }
  .adm-topbar { padding: 12px 16px; }
}

/* Section header, stat tiles and record cards */
.sec-head { margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { font-size: 20px; }
.sec-head p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat-tile .n { font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; line-height: 1; }
.stat-tile .l { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }
.stat-tile.green .n { color: var(--green); } .stat-tile.amber .n { color: var(--amber); } .stat-tile.gold .n { color: var(--gold); }
.card-list { display: flex; flex-direction: column; gap: 12px; }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; transition: border-color .15s; }
.rcard:hover { border-color: var(--line-strong); }
.rcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rcard h3 { font-size: 17px; }
.rcard .where { color: var(--brand); font-weight: 600; font-size: 13px; margin-top: 2px; }
.rcard .meta { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.rcard .ref { color: var(--muted); font-size: 12px; margin-top: 8px; font-family: monospace; }
.rcard .right { text-align: right; flex: 0 0 auto; }
.rcard .amt { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.rcard .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.rcard.row-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.type-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; vertical-align: -5px; margin-right: 6px; color: var(--muted); background: var(--surface-2); }
.type-ico svg { width: 13px; height: 13px; }
.active-retreat-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--adm-surface-2); border: 1px solid var(--adm-border); border-radius: 10px; padding: 12px 16px;
}
.active-retreat-bar .l { color: var(--adm-ink-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-right: 6px; }
.active-retreat-bar select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.queue-search { display: flex; gap: 8px; max-width: 560px; flex-wrap: wrap; }
.queue-search input { flex: 1 1 260px; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; min-height: 52px; }
.queue-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Vertical tabs (attendee area and record details) */
.adm-tabs-v { background: var(--adm-surface-2); padding: 10px; border-radius: 12px; display: flex; flex-direction: column; gap: 2px; }
.adm-tab-v { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px; font-size: 12.8px; font-weight: 700; color: var(--adm-ink-2); text-align: left; text-decoration: none; white-space: nowrap; }
.adm-tab-v svg { flex: 0 0 auto; }
.adm-tab-v.active { background: var(--adm-navy); color: #fff; }
.adm-tab-v:hover:not(.active) { background: var(--adm-surface); text-decoration: none; }
.adm-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 26px; }
.adm-kv .k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--adm-muted); margin-bottom: 3px; }
.adm-kv .v { font-size: 14px; color: var(--adm-ink); font-weight: 700; }
@media (max-width: 520px) { .adm-kv { grid-template-columns: 1fr; } }

/* Attendee area ("My Retreats") */
.att-shell { min-height: 100vh; background: var(--bg); }
.portal-top { background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 0; }
.portal-top .inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.portal-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.portal-id .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; font-weight: 700; font-size: 15px; }
.portal-id h1 { font-size: 21px; }
.portal-id .sub { color: var(--muted); font-size: 13px; margin-top: 1px; }
.portal-top .actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.att-layout { max-width: 1180px; margin: 0 auto; padding: 28px 24px 64px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.att-layout > .adm-tabs-v { position: sticky; top: 20px; }
.att-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 780px) {
  .portal-top .inner { padding: 0 16px; }
  .att-layout { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 48px; }
  .att-layout > .adm-tabs-v { position: static; flex-direction: row; overflow-x: auto; }
}

/* Inner admin pages (Centre Admin, Group Admin, Eloit Super Admin) */
.sec-head h3 { font-size: 16px; }
.sec-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sec-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.sec-back:hover { color: var(--ink); text-decoration: none; }
.stat-tile .sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.stat-tile.marian .n { color: var(--marian); } .stat-tile.red .n { color: var(--red); }
.stats.cols-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.rcard.flush { padding: 0; overflow: hidden; }
.rcard .rcard-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rcard .rcard-title h3 { font-size: 15.5px; }
.rcard .rcard-title p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.rcard > .table-wrap { margin-top: 4px; }
.rcard.flush > .table-wrap { border: 0; border-radius: 0; margin: 0; }
.rcard .filters { margin-bottom: 0; }
.active-retreat-bar.filters { justify-content: flex-start; align-items: flex-end; }
.active-retreat-bar.filters select { min-height: 42px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.table tr.clickable { cursor: pointer; }
.table td .ref, .table td .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.table td .ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.table tr.dim td { opacity: .55; }
.table .actions form.inline, .table .actions form { display: inline-flex; margin: 0; }
.table .actions .btn + .btn, .table .actions .btn + form, .table .actions form + form, .table .actions form + .btn { margin-left: 6px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-danger-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-danger-outline:hover { background: var(--red-soft); color: var(--red); text-decoration: none; }
.tag-minor { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--amber-soft); color: var(--amber); text-transform: uppercase; letter-spacing: .04em; }
.bar-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; }
.bar-row .lbl { flex: 1 1 0; min-width: 0; }
.bar-row .track { flex: 2 1 0; height: 10px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.bar-row .val { min-width: 48px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.form-card { display: flex; flex-direction: column; gap: 16px; }
.form-card > .form-section + .form-section { border-top: 1px solid var(--line); padding-top: 18px; }
.form-section h3 { font-size: 15px; margin-bottom: 4px; }
.form-section > p { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.toggle-list { display: flex; flex-direction: column; gap: 8px; }

/* Status pills (Listed / Registration / Check-in: On or Off) */
.status-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.status-toggle .dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: currentColor; }
.status-toggle.on { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.status-toggle.off { background: var(--red-soft); color: var(--red); border-color: color-mix(in srgb, var(--red) 28%, transparent); }
.toggles { display: flex; gap: 6px; flex-wrap: wrap; }

/* Segmented toggle (prototype .adm-toggle-row) */
.adm-toggle-row { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.adm-toggle-pill { text-align: center; padding: 8px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 700; background: var(--adm-surface-2); color: var(--adm-ink-2); text-decoration: none; border: 1px solid var(--adm-border); }
.adm-toggle-pill:hover { text-decoration: none; color: var(--adm-ink); }
.adm-toggle-pill.active { background: var(--adm-navy); color: #fff; border-color: var(--adm-navy); }

details.rcard > summary { list-style: none; }
details.rcard > summary::-webkit-details-marker { display: none; }
details.rcard > summary::before { content: "+"; display: inline-block; width: 22px; font-weight: 700; color: var(--brand); }
details.rcard[open] > summary::before { content: "\2212"; }

/* Record detail (platform user) */
.adm-detail { background: var(--adm-surface); border: 1px solid var(--adm-border); border-radius: 12px; overflow: hidden; }
.adm-detail-head { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--adm-border); flex-wrap: wrap; }
.adm-detail-head .av { width: 52px; height: 52px; border-radius: 50%; background: var(--adm-surface-2); display: grid; place-items: center; font-weight: 800; color: var(--brand); flex: 0 0 auto; }
.adm-detail-head h2 { font-size: 19px; }
.adm-detail-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.adm-detail-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }

/* Communications: three-column compose (retreats / recipients / message) */
.comms-layout { display: grid; grid-template-columns: 240px 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.comms-layout > form { display: contents; }
@media (max-width: 1180px) {
  .comms-layout { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "retreats compose" "recipients compose"; }
  .comms-layout .comms-panel.retreats { grid-area: retreats; }
  .comms-layout .comms-panel.recipients { grid-area: recipients; }
  .comms-layout .comms-panel.compose { grid-area: compose; }
}
@media (max-width: 860px) { .comms-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "retreats" "recipients" "compose"; } }
.comms-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; }
.comms-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.comms-panel-head b { font-size: 13.5px; }
.comms-panel-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.comms-scope-form { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.comms-scope-form .field select { min-height: 42px; padding: 8px 10px; font-size: 13.5px; }
.comms-selectall { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.comms-selectall input { width: 16px; height: 16px; accent-color: var(--brand); flex: 0 0 auto; }
.comms-recipients { max-height: 520px; overflow-y: auto; padding: 4px; }
.comms-group { border-bottom: 1px solid var(--line); }
.comms-group:last-child { border-bottom: none; }
.comms-group > summary { list-style: none; }
.comms-group > summary::-webkit-details-marker { display: none; }
.comms-group-head { display: flex; align-items: center; gap: 9px; padding: 11px 12px; cursor: pointer; }
.comms-group-head label { display: flex; align-items: center; flex: 1; min-width: 0; gap: 9px; cursor: pointer; }
.comms-group-head input, .comms-member-row input, .comms-indiv-row input { width: 16px; height: 16px; accent-color: var(--brand); flex: 0 0 auto; margin: 0; }
.comms-group-head .nm { font-size: 13.5px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comms-group-head .ct { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }
.comms-group-head .chev { flex: 0 0 auto; color: var(--muted); display: flex; transition: transform .15s; }
.comms-group[open] > .comms-group-head .chev { transform: rotate(90deg); }
.comms-members { display: flex; flex-direction: column; gap: 4px; padding: 0 12px 10px 36px; }
.comms-member-row, .comms-indiv-row { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 5px 0; cursor: pointer; }
.comms-indiv-row { padding: 11px 12px; }
.comms-member-row .nm, .comms-indiv-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comms-member-row .ph, .comms-indiv-row .ph { color: var(--muted); font-size: 11.5px; flex: 0 0 auto; }
.comms-retreat-row { display: block; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; margin: 0 6px 4px; text-decoration: none; }
.comms-retreat-row:hover { background: var(--surface-2); text-decoration: none; }
.comms-retreat-row.active { border-color: var(--brand); background: var(--brand-soft); }
.comms-retreat-row b { display: block; font-size: 13px; color: var(--ink); }
.comms-retreat-row .sub { font-size: 11.3px; color: var(--muted); margin-top: 2px; }
.comms-sect-label { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.comms-channels { display: flex; flex-wrap: wrap; gap: 8px; }
.comms-channel-chip, .field .comms-channel-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; user-select: none; color: var(--ink); background: var(--surface); }
.comms-channel-chip input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.comms-channel-chip:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); }
.comms-channel-chip:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.comms-file { display: flex; flex-direction: column; gap: 6px; }
.comms-file input[type="file"] { font: inherit; font-size: 13px; color: var(--ink-2); }
.comms-file input[type="file"]::file-selector-button { font: inherit; font-size: 13px; font-weight: 700; padding: 8px 14px; margin-right: 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.comms-footbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.comms-recipcount { font-size: 13px; color: var(--muted); font-weight: 600; }
.comms-recipcount b { color: var(--ink); }
.comms-empty-retreat { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }
.comms-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 13px; background: var(--surface-2); color: var(--ink); }
.comms-body { white-space: pre-wrap; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }

/* Message rows (Sent Messages, Delivery Log) */
.comm-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.comm-row:last-child { border-bottom: none; }
a.comm-row:hover { background: var(--surface-2); text-decoration: none; }
.comm-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; background: var(--brand-soft); color: var(--brand); }
.comm-info { flex: 1; min-width: 0; }
.comm-info b { font-size: 14.5px; }
.comm-info .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* Registration form ("Your Details", group members) */
.reg-form { display: flex; flex-direction: column; gap: 16px; }
.phone-cc { display: flex; gap: 8px; align-items: stretch; }
.phone-cc select { flex: 0 0 auto; width: auto; min-width: 96px; padding: 10px 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14px; min-height: 48px; }
.phone-cc input { flex: 1 1 auto; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; min-height: 48px; }
.phone-cc input:focus, .phone-cc select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.phone-cc input.locked { background: var(--surface-2); }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.field .check-line { font-weight: 600; }
.check-line input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--brand); }
.member-block { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--surface-2); }
.member-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.member-head b { font-size: 15px; }
.member-head .btn-ghost { color: var(--brand); }
.conditions { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.conditions summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--brand); }
.conditions .conds { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.reg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .reg-layout { grid-template-columns: minmax(0, 1fr); } }
.pub-stepper { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pub-stepper .st { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pub-stepper .st .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.pub-stepper .st.active { color: var(--brand); }
.pub-stepper .st.active .dot { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.pub-stepper .st.done { color: var(--green); }
.pub-stepper .st.done .dot { background: var(--green); color: #fff; border-color: var(--green); }
.pub-stepper .ln { flex: 0 0 28px; height: 2px; background: var(--line); }
.pub-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.pub-hold-note { background: var(--amber-soft); color: var(--amber); border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.pub-pay-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; }
.pub-pay-option .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pub-pay-option .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: 0 0 auto; position: relative; }
.pub-pay-option.sel { border-color: var(--brand); background: var(--brand-soft); }
.pub-pay-option.sel .radio { border-color: var(--brand); background: var(--brand); }
.pub-pay-option.sel .radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.pub-pay-option.off { opacity: .55; }
.member-list { display: flex; flex-direction: column; }
.member-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: none; }
.member-row .av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 12.5px; flex: 0 0 auto; }
.member-row .mi { flex: 1; min-width: 0; }
.member-row .mi b { font-size: 14px; }
.member-row .mi .sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.tag-nophone { color: var(--muted); font-size: 12px; font-style: italic; }

/* My Bookings cards (booking + resources side panel) */
.booking-card { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
@media (max-width: 860px) { .booking-card { grid-template-columns: minmax(0, 1fr); } }
.booking-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.booking-card .kicker { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-top: 8px; }
.booking-card .meta { display: flex; align-items: center; gap: 6px; }
.booking-card .actions { margin-top: 2px; }
.plan-arrival { background: var(--surface-2); border-left: 3px solid var(--gold); border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--ink-2); }
.plan-arrival b { display: block; color: var(--ink); margin-bottom: 2px; }
.grp-members > summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--brand); padding: 4px 0; }
.booking-side { border-left: 1px solid var(--line); padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 860px) { .booking-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; } }
.booking-side .k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.booking-side > b { font-size: 15px; }
.booking-side > p { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.resource-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.resource-row:hover { background: var(--surface-2); text-decoration: none; }
.resource-row .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.resource-row .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.resource-row .meta .d { color: var(--muted); font-size: 11.5px; }
.resource-row .fmt { font-size: 10.5px; font-weight: 700; color: var(--muted); }

/* Theme toggle (internal portals only) */
.theme-btn { position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); cursor: pointer; z-index: 60; box-shadow: var(--shadow); }
.theme-btn:hover { color: var(--ink); }

@media print { .adm-sidebar, .adm-topbar, .theme-btn, .portal-top, .att-layout > .adm-tabs-v { display: none !important; } }

/* ======================================================================
   PUBLIC WEBSITE (retreat.kristapp.in) — a deliberately separate visual
   identity from the navy internal shell: warm ivory/maroon with serif
   display type. Everything is scoped under .pub-portal and it does not
   follow the dark/light theme: one fixed, printed-programme look. The
   generic tokens are remapped here too, so .btn, .card, .field and chips on
   the booking pages pick up the maroon palette without extra classes.
====================================================================== */
.pub-portal {
  --pbg:#FBF7F2; --pbg-tint:#F4EDE3; --pcard:#FFFFFF;
  --pink:#241A12; --pink-2:#5B5042; --pmuted:#8C7F6E;
  --pline:#EAE0D2; --pline-2:#E3D5C0;
  --pmaroon:#641A26; --pmaroon-dark:#4A121C; --pmaroon-soft:#F3E1E4;
  --pgold:#9B7A2B; --pgold-soft:#F1E3C8;
  --prust:#A0532E; --prust-soft:#FAF0E8;
  --pgreen:#3F6B4A; --pgreen-soft:#E7EFE4;

  --bg:#FBF7F2; --surface:#FFFFFF; --surface-2:#F4EDE3;
  --ink:#241A12; --ink-2:#5B5042; --muted:#8C7F6E;
  --line:#EAE0D2; --line-strong:#E3D5C0;
  --brand:#641A26; --brand-ink:#FFFFFF; --brand-soft:#F3E1E4; --brand-deep:#4A121C;
  --gold:#9B7A2B; --gold-soft:#F1E3C8;
  --marian:#2D4A6B; --marian-soft:#E4EAF2;
  --green:#3F6B4A; --green-soft:#E7EFE4;
  --amber:#8A5A14; --amber-soft:#F7E8CC;
  --red:#8B1E24; --red-soft:#F5DADC;
  --shadow:0 1px 2px rgba(50,20,15,.04), 0 2px 8px rgba(50,20,15,.04);
  --shadow-lg:0 10px 26px rgba(50,20,15,.08);
  color-scheme: light;
  font-family: 'Open Sans', system-ui, sans-serif;
  background: var(--pbg); color: var(--pink);
  min-height: 100vh; display: flex; flex-direction: column;
}
.pub-portal > .pub-main { flex: 1 0 auto; }
.pub-portal .pub-serif { font-family: var(--f-serif); }
.pub-portal h1, .pub-portal h2, .pub-portal h3 { font-family: var(--f-serif); font-weight: 600; color: var(--pink); letter-spacing: -.01em; text-wrap: balance; }
.pub-portal .field label, .pub-portal .field legend, .pub-portal .field > span:first-child { font-family: 'Open Sans', sans-serif; }
.pub-portal .btn { border-radius: 9px; }
.pub-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 700px) { .pub-wrap { padding: 0 16px; } }

.pub-header { position: sticky; top: 0; z-index: 40; background: var(--pbg); border-bottom: 1px solid var(--pline); }
.pub-header-inner { max-width: 1180px; margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
@media (max-width: 760px) { .pub-header-inner { padding: 14px 16px; flex-wrap: wrap; row-gap: 10px; } }
.pub-logo { display: flex; align-items: center; gap: 8px; font-family: var(--f-serif); font-weight: 700; font-size: 21px; letter-spacing: .01em; color: var(--pink); text-decoration: none; white-space: nowrap; }
.pub-logo:hover { text-decoration: none; color: var(--pink); }
.pub-logo .x { color: var(--pgold); }
.pub-logo small { font-family: 'Open Sans', sans-serif; font-size: 12px; font-weight: 600; color: var(--pmuted); letter-spacing: 0; }
.pub-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.pub-navlink { font-size: 14px; font-weight: 600; color: var(--pink-2); padding: 4px 0; border-bottom: 2px solid transparent; text-decoration: none; }
.pub-navlink.active, .pub-navlink:hover { color: var(--pmaroon); border-bottom-color: var(--pmaroon); text-decoration: none; }
.pub-auth { display: flex; align-items: center; gap: 10px; }
.pub-auth form.inline { display: flex; }
@media (max-width: 760px) { .pub-nav { gap: 16px; order: 3; width: 100%; } }

.pub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; padding: 11px 20px; font-size: 13.5px; font-weight: 700; cursor: pointer; border: 1px solid transparent; font-family: 'Open Sans', sans-serif; white-space: nowrap; text-decoration: none; }
.pub-btn:hover { text-decoration: none; }
.pub-btn-primary { background: var(--pmaroon); color: #fff; }
.pub-btn-primary:hover { background: var(--pmaroon-dark); color: #fff; }
.pub-btn-outline { background: #fff; color: var(--pmaroon); border-color: var(--pmaroon); }
.pub-btn-outline:hover { background: var(--pmaroon-soft); color: var(--pmaroon); }
.pub-btn-ghost { background: none; color: var(--pink-2); border-color: var(--pline-2); }
.pub-btn-full { width: 100%; }
.pub-btn-sm { padding: 8px 14px; font-size: 12.5px; }
.pub-btn[disabled] { opacity: .5; cursor: default; }

.pub-hero { position: relative; overflow: hidden; color: #fff; padding: 80px 0 56px; }
.pub-hero.small { padding: 64px 0 48px; text-align: center; }
.pub-hero.detail { text-align: left; padding: 36px 0; }
.pub-hero-bg { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(ellipse 60% 90% at 20% 10%, rgba(255,214,150,.18), transparent 60%),
  linear-gradient(135deg, #3C0E18 0%, #5E1726 48%, #7A2334 100%); }
.pub-hero-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; }
.pub-hero-inner { position: relative; z-index: 1; }
.pub-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pgold); }
.pub-hero .pub-eyebrow { color: #F2D9A8; }
.pub-portal .pub-h1-display { font-family: var(--f-serif); font-size: 50px; line-height: 1.08; margin: 10px 0 4px; font-weight: 600; color: #fff; }
.pub-h1-display em { font-style: italic; font-weight: 500; color: #F2D9A8; }
.pub-portal .pub-hero.small .pub-h1-display, .pub-portal .pub-hero.detail .pub-h1-display { font-size: 36px; }
@media (max-width: 700px) { .pub-portal .pub-h1-display { font-size: 34px; } .pub-portal .pub-hero.small .pub-h1-display, .pub-portal .pub-hero.detail .pub-h1-display { font-size: 28px; } }
.pub-hero-sub { max-width: 480px; color: #EADFD2; font-size: 14.5px; line-height: 1.6; margin-bottom: 22px; }
.pub-hero.small .pub-hero-sub { max-width: 560px; margin-left: auto; margin-right: auto; }
.pub-hero.detail .pub-hero-sub { max-width: 640px; margin: 8px 0 6px; }
.pub-search { display: flex; gap: 10px; background: #fff; border-radius: 11px; padding: 7px; max-width: 560px; box-shadow: 0 10px 30px rgba(20,5,10,.25); }
.pub-hero.small .pub-search { margin: 0 auto; }
.pub-search input, .pub-search select { flex: 1; border: none; outline: none; padding: 10px 12px; font-size: 13.5px; font-family: inherit; color: var(--pink); background: transparent; min-width: 0; }
.pub-search select { flex: 0 0 auto; border-left: 1px solid var(--pline); }
.pub-hero-stats { display: flex; gap: 36px; margin-top: 26px; flex-wrap: wrap; }
.pub-hero-stats .n { font-family: var(--f-serif); font-size: 26px; font-weight: 700; }
.pub-hero-stats .l { font-size: 12px; color: #E2D4C6; }
.pub-quote-bar { background: var(--pmaroon-dark); color: #F2D9A8; text-align: center; padding: 12px 16px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.pub-breadcrumb { display: inline-flex; align-items: center; gap: 6px; color: #F0DCC9; font-size: 13px; font-weight: 600; margin-bottom: 14px; text-decoration: none; }
.pub-breadcrumb:hover { color: #fff; text-decoration: underline; }
.pub-chip-light { display: inline-flex; padding: 4px 11px; border-radius: 999px; background: rgba(242,217,168,.18); color: #F2D9A8; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; margin-bottom: 10px; }

/* .pub-block: a full-width band with a .pub-wrap inside (prototype "pub-section").
   .pub-section: a centred content column, used by the booking pages. */
.pub-block { padding: 56px 0; }
.pub-block.tint { background: var(--pbg-tint); }
.pub-block.tight { padding: 40px 0 64px; }
.pub-section { max-width: 1180px; margin: 0 auto; padding: 44px 28px 64px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 700px) { .pub-section { padding: 28px 16px 48px; } }
.pub-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.pub-sec-head h2 { font-size: 28px; margin: 6px 0 0; }
.pub-sec-head p { color: var(--pmuted); font-size: 13.5px; max-width: 360px; margin: 0; }
.pub-link { color: var(--pmaroon); font-weight: 700; font-size: 13px; text-decoration: none; }
.pub-link:hover { text-decoration: underline; color: var(--pmaroon); }
.pub-more { text-align: right; margin-top: 16px; }
.pub-grid { display: grid; gap: 22px; }
.pub-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pub-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .pub-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pub-grid-3, .pub-grid-2 { grid-template-columns: minmax(0, 1fr); } }

.pub-card { background: var(--pcard); border: 1px solid var(--pline); border-radius: 14px; padding: 20px; min-width: 0; }
.pub-card-retreat { display: flex; flex-direction: column; }
.pub-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 10px; }
.pub-datebox { background: var(--pbg-tint); border-radius: 9px; padding: 7px 12px; text-align: center; min-width: 52px; }
.pub-datebox .d { font-family: var(--f-serif); font-size: 19px; font-weight: 700; color: var(--pmaroon); line-height: 1.1; }
.pub-datebox .m { font-size: 9.5px; letter-spacing: .08em; color: var(--pgold); font-weight: 700; }
.pub-badge { background: var(--prust-soft); color: var(--prust); font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pub-badge.full { background: var(--red-soft); color: var(--red); }
.pub-badge.live { background: var(--pgold-soft); color: var(--pgold); }
.pub-kicker { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--pgold); font-weight: 700; margin-bottom: 4px; }
.pub-card-retreat h3 { font-size: 18px; margin: 0 0 4px; }
.pub-card-retreat h3 a { color: var(--pink); text-decoration: none; }
.pub-card-retreat h3 a:hover { color: var(--pmaroon); text-decoration: none; }
.pub-card-centre-name { color: var(--pmaroon); font-weight: 700; font-size: 12.5px; margin-bottom: 8px; }
.pub-meta-row { display: flex; align-items: center; gap: 6px; color: var(--pmuted); font-size: 12.5px; margin-bottom: 4px; }
.pub-meta-row svg { flex: 0 0 auto; opacity: .75; }
.pub-hero .pub-meta-row { color: #EADFD2; }
.pub-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--pline); margin-top: auto; padding-top: 14px; }
.pub-card-retreat .pub-card-foot { margin-top: 14px; }
.pub-price { font-family: var(--f-serif); font-weight: 700; font-size: 16px; color: var(--pink); }
.pub-price .sub { display: block; font-family: 'Open Sans', sans-serif; font-weight: 400; font-size: 10.5px; color: var(--pmuted); }
.pub-card-centre { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pub-centre-art { height: 140px; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #EFE4D2, #DCE7D4); }
.pub-card-centre .body { padding: 18px 20px; }
.pub-card-centre h3 { font-size: 17px; margin: 0 0 4px; }
.pub-card-centre h3 a { color: var(--pink); text-decoration: none; }
.pub-card-foot.in-card { padding: 14px 20px 18px; margin-top: auto; }
.pub-empty-pub { background: var(--pcard); border: 1px dashed var(--pline-2); border-radius: 14px; padding: 34px; text-align: center; color: var(--pmuted); font-size: 13.5px; }

.pub-band { background: linear-gradient(135deg, #3C0E18, #7A2334); min-height: 220px; display: flex; align-items: center; justify-content: center; color: #F2D9A8; font-family: var(--f-serif); font-size: 20px; font-style: italic; text-align: center; padding: 40px 24px; }
.pub-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; text-align: left; }
@media (max-width: 700px) { .pub-steps { grid-template-columns: minmax(0, 1fr); } }
.pub-step { background: var(--pcard); border: 1px solid var(--pline); border-radius: 14px; padding: 22px; }
.pub-step-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pub-step-n { font-family: var(--f-serif); font-size: 26px; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--pgold); opacity: .6; flex: 0 0 auto; }
.pub-step-line { flex: 1 1 auto; height: 1px; background: var(--pline-2); }
.pub-step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--pmaroon); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pub-step h3 { font-size: 16px; margin: 0 0 6px; }
.pub-step p { font-size: 12.5px; color: var(--pmuted); margin: 0; line-height: 1.55; }

.pub-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 820px) { .pub-layout { grid-template-columns: minmax(0, 1fr); } }
.pub-filter-box { background: var(--pcard); border: 1px solid var(--pline); border-radius: 14px; padding: 20px; position: sticky; top: 90px; }
@media (max-width: 820px) { .pub-filter-box { position: static; } }
.pub-filter-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.pub-filter-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--pmuted); font-weight: 700; margin: 16px 0 8px; }
.pub-pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pub-pill { border: 1px solid var(--pline-2); background: #fff; border-radius: 99px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--pink-2); text-decoration: none; }
.pub-pill:hover { text-decoration: none; border-color: var(--pmaroon); color: var(--pmaroon); }
.pub-pill.active { background: var(--pmaroon); color: #fff; border-color: var(--pmaroon); }
.pub-select { width: 100%; padding: 9px 10px; border: 1px solid var(--pline-2); border-radius: 8px; font-size: 13px; background: #fff; font-family: inherit; color: var(--pink); }
.pub-help-box { background: var(--pbg-tint); border-radius: 10px; padding: 14px; margin-top: 18px; font-size: 12px; color: var(--pink-2); line-height: 1.5; }
.pub-help-box b { display: block; margin-bottom: 3px; color: var(--pink); }
.pub-results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.pub-results-head b { font-family: var(--f-serif); font-size: 17px; }

.pub-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding: 44px 0 64px; }
@media (max-width: 860px) { .pub-detail-layout { grid-template-columns: minmax(0, 1fr); } }
.pub-detail-main h2 { font-size: 21px; margin: 0 0 12px; }
.pub-detail-main > div { margin-bottom: 34px; }
.pub-prose p { font-size: 14px; line-height: 1.75; color: var(--pink-2); margin: 0 0 12px; white-space: pre-line; }
.pub-leader-card { display: flex; gap: 16px; background: var(--pcard); border: 1px solid var(--pline); border-radius: 12px; padding: 16px; align-items: center; }
.pub-avatar-circle { flex: 0 0 auto; width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, var(--pmaroon), #9A4255); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-serif); font-weight: 700; font-size: 20px; }
.pub-leader-card h3 { font-size: 15px; margin: 0; }
.pub-leader-card .role { color: var(--pmaroon); font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.pub-daily-row { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--pline); }
.pub-daily-row .t { font-weight: 700; color: var(--pmaroon); min-width: 84px; font-size: 13px; }
.pub-daily-row .e { font-size: 13.5px; color: var(--pink-2); }
.pub-side-card { background: var(--pcard); border: 1px solid var(--pline); border-radius: 14px; padding: 22px; position: sticky; top: 90px; }
@media (max-width: 860px) { .pub-side-card { position: static; } }
.pub-side-price { font-family: var(--f-serif); font-size: 26px; font-weight: 700; }
.pub-side-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--pline); color: var(--pink-2); }
.pub-side-kv:last-of-type { border-bottom: none; }
.pub-side-kv b { color: var(--pink); font-weight: 700; text-align: right; }

/* Booking pages (register, pay, receipt, sign-in, about) sit in a narrow column */
.pub-page { max-width: 760px; margin: 0 auto; padding: 44px 28px 70px; display: flex; flex-direction: column; gap: 20px; }
.pub-page.wide { max-width: 1180px; }
@media (max-width: 700px) { .pub-page { padding: 28px 16px 48px; } }
.pub-portal .card { border-color: var(--pline); border-radius: 14px; }
.pub-main > .narrow { margin-block: 44px; }
.pub-main > .narrow + .narrow { margin-top: -24px; }
@media (max-width: 760px) { .pub-main > .narrow { margin: 24px 16px; } }
/* Attendee pages are written as .pub-section columns; inside "My Retreats" the layout already pads them. */
.att-main > .pub-section { max-width: none; padding: 0; margin: 0; }
.pub-portal .verse { background: var(--pbg-tint); border-color: var(--pline-2); }

.pub-footer { background: var(--pmaroon-dark); color: #E9D9CB; padding: 48px 0 0; }
.pub-footer .pub-wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 30px; }
@media (max-width: 760px) { .pub-footer .pub-wrap { grid-template-columns: 1fr 1fr; } }
.pub-footer .pub-logo { color: #fff; }
.pub-footer p { font-size: 12.5px; line-height: 1.6; color: #D9C4B4; max-width: 260px; margin-top: 14px; }
.pub-footer h4 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #E7B96A; margin: 0 0 12px; }
.pub-footer a { display: block; color: #E9D9CB; text-decoration: none; font-size: 13px; margin-bottom: 10px; }
.pub-footer a:hover { color: #fff; }
.pub-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 11.5px; color: #C7AE9C; max-width: 1180px; margin: 0 auto; }
@media print { .pub-header, .pub-footer { display: none !important; } }


/* ===== Volunteer desk and check-in (phase 2) ===== */
.desk-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.desk-row h3 { font-size: 15.5px; }
.desk-row .acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.desk-row .acts form { display: inline; margin: 0; }
.desk-card { max-width: 640px; }
.desk-card.sub { background: var(--surface-2); margin-bottom: 10px; }
.desk-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.desk-foot .end { margin-left: auto; }
.btn-danger-ghost { color: var(--red) !important; }
.desk-seg { display: flex; gap: 8px; }
.desk-seg > * { flex: 1; }
.match-note { color: var(--green); display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin: -6px 0 10px; }
.yn { display: flex; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.yn label { position: relative; cursor: pointer; }
.yn input { position: absolute; opacity: 0; pointer-events: none; }
.yn span { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line-strong); font-weight: 700; font-size: 13px; color: var(--ink); background: var(--surface); }
.yn input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.yn input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-soft); }
.badge-card { max-width: 420px; text-align: center; margin: 0 auto; }
.badge-card .seal { justify-content: center; }
.badge-card h3 { font-size: 20px; }
.badge-card .badge-sub { margin-top: 4px; font-size: 13px; color: var(--muted); }
.badge-serial { font-size: 42px; font-weight: 800; letter-spacing: .04em; color: var(--brand); margin: 10px 0; }
.badge-qr { display: flex; justify-content: center; margin: 6px 0 14px; min-height: 110px; }
.badge-qr img, .badge-qr canvas { width: 110px; height: 110px; }
.badge-tile { text-align: left; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.badge-tile > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.badge-tile .l { color: var(--muted); }
.task-check { display: flex; align-items: center; gap: 14px; }
.task-check form { margin: 0; }
.task-box { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--line-strong); background: transparent; color: #fff; display: grid; place-items: center; flex: 0 0 auto; cursor: pointer; padding: 0; }
.task-box.on { border-color: var(--green); background: var(--green); }
.task-check .t { flex: 1; font-weight: 700; font-size: 14.5px; }
.task-check.done .t { text-decoration: line-through; color: var(--muted); }
.pd-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.pd-layout .adm-tab-v { position: relative; cursor: pointer; white-space: normal; flex-direction: column; align-items: flex-start; gap: 2px; }
.pd-layout .adm-tab-v input { position: absolute; opacity: 0; pointer-events: none; }
.pd-layout .adm-tab-v span { font-weight: 500; font-size: 11.5px; opacity: .8; }
.pd-layout .adm-tab-v:has(input:checked) { background: var(--adm-navy); color: #fff; }
.pd-panel { min-width: 0; }
.pd-panel h3 { font-size: 15px; margin: 0 0 12px; }
@media (max-width: 780px) {
  .pd-layout { grid-template-columns: minmax(0, 1fr); }
  .pd-layout > .adm-tabs-v { flex-direction: row; overflow-x: auto; }
}
@media print {
  .desk-noprint { display: none !important; }
  .badge-card { border: 1px solid #999; box-shadow: none; }
}
/* end phase 2 */

/* ===== Retreat series, batches, calendar, resources (phase 3) ===== */
.rt-view-toggle { width: 200px; flex-wrap: nowrap; }
.rt-view-toggle .adm-toggle-pill { flex: 1; }
.rt-series { margin-bottom: 14px; }
.rt-series-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.rt-series-head h3 { font-size: 15.5px; }
.rt-series-head h3 .meta { margin-left: 8px; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.rt-list-opts { display: flex; justify-content: flex-end; font-size: 12.5px; margin-bottom: 10px; }
.rt-pill-form { display: inline; margin: 0; }
button.status-toggle { cursor: pointer; font-family: inherit; line-height: inherit; }
button.status-toggle:hover { filter: brightness(.96); }
.rt-switches { margin-bottom: 14px; }
.rt-switches .toggles { gap: 10px; margin-bottom: 6px; }
.rt-switches .meta { color: var(--muted); font-size: 12.5px; }
.rt-resources { margin-top: 18px; }
.rt-cal-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.cal-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-top: 18px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-head h3 { font-size: 15px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: 10.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; text-align: center; padding: 4px 0; }
.cal-cell { min-height: 62px; border: 1px solid var(--line); border-radius: 8px; padding: 5px; font-size: 11px; min-width: 0; }
.cal-cell.empty { border: none; }
.cal-cell.today { border-color: var(--brand); }
.cal-date { font-weight: 700; margin-bottom: 3px; color: var(--ink-2); font-size: 11.5px; }
.cal-pill { display: block; background: var(--brand-soft); color: var(--brand); border-radius: 6px; padding: 2px 5px; margin-bottom: 3px; font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
a.cal-pill:hover { text-decoration: underline; }
.cal-pill.dim { opacity: .55; }
@media (max-width: 640px) {
  .cal-wrap { padding: 10px; }
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 48px; padding: 3px; }
  .cal-pill { font-size: 9px; padding: 1px 3px; }
}
/* end phase 3 */

/* ===== Public site: preachers, centre profile, directory (phase 4) ===== */
.pub-hero-plain { background: var(--pmaroon-dark); color: #fff; padding: 40px 0; }
.pub-portal .pub-hero-plain .pub-h1-display { color: #fff; font-size: 34px; margin: 6px 0 0; }
.pub-hero-plain .pub-eyebrow { color: #F2D9A8; }
.pub-hero-plain .pub-meta-row, .pub-hero-plain-sub { color: #EADFD2; margin-top: 6px; }
.pub-check-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 13px; cursor: pointer; }
.pub-check-row span.n { color: var(--pmuted); font-size: 12px; }
.pub-pager .pager { justify-content: center; margin-top: 30px; color: var(--pmuted); font-size: 13px; }
.pub-pager .pager .btn { border-radius: 8px; border: 1px solid var(--pline-2); background: #fff; color: var(--pink-2); font-weight: 700; }
.pub-pager .pager .btn:hover { border-color: var(--pmaroon); color: var(--pmaroon); }
.pub-preacher-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 44px; padding-bottom: 64px; }
.pub-preacher-card { text-align: center; padding: 24px 20px; }
.pub-preacher-photo { display: flex; justify-content: center; margin-bottom: 14px; }
.pub-preacher-val { display: block; text-align: left; margin: -6px 0 8px; color: var(--pink); }
.pub-avatar-circle { overflow: hidden; }
.pub-avatar-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-avatar-circle.lg { width: 96px; height: 96px; font-size: 30px; }
.pub-avatar-circle.sm { width: 40px; height: 40px; font-size: 13px; }
.pub-leader-card { align-items: flex-start; }
.pub-leader-card .sub { color: var(--pmuted); font-size: 11.5px; margin-top: 1px; }
.pub-leader-card .bio { font-size: 12.5px; color: var(--pink-2); margin-top: 8px; line-height: 1.55; }
.pub-leader-more { display: inline-block; margin-top: 8px; }
.pub-bring-list { list-style: none; margin: 0; padding: 0; }
.pub-bring-list li { padding: 10px 0; border-bottom: 1px solid var(--pline); font-size: 13.5px; color: var(--pink-2); display: flex; align-items: center; gap: 10px; }
.pub-bring-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pgold); flex: 0 0 auto; }
.pub-stat-row { display: flex; gap: 16px; margin: 18px 0; flex-wrap: wrap; }
.pub-stat-tile { background: var(--pcard); border: 1px solid var(--pline); border-radius: 12px; padding: 16px 20px; flex: 1; min-width: 140px; }
.pub-stat-tile .l { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--pgold); font-weight: 700; }
.pub-stat-tile .n { font-family: var(--f-serif); font-size: 22px; font-weight: 700; margin-top: 4px; color: var(--pink); }
.pub-auth-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.pub-auth-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; max-width: 110px; color: var(--pink); font-size: 12px; font-weight: 700; text-decoration: none; }
.pub-auth-item:hover { color: var(--pmaroon); text-decoration: none; }
.pub-snap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pub-snap-tile { aspect-ratio: 1 / 1; border-radius: 10px; background: linear-gradient(160deg, #EFE4D2, #DCE7D4); display: flex; align-items: center; justify-content: center; color: var(--pmaroon); opacity: .8; overflow: hidden; }
.pub-snap-tile.photo { opacity: 1; }
.pub-snap-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-side-title { font-weight: 700; margin-bottom: 12px; color: var(--pink); }
.pub-address { font-size: 12.5px; color: var(--pink-2); margin-top: -6px; line-height: 1.6; }
.pub-about-facts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px !important; color: var(--pmuted) !important; }
@media (max-width: 860px) { .pub-preacher-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pub-snap-grid { grid-template-columns: 1fr 1fr; } .pub-portal .pub-hero-plain .pub-h1-display { font-size: 28px; } }
/* Centre settings: Authority and Snap Shots */
.member-row .grow { flex: 1; min-width: 0; }
.member-row .grow .sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.member-row .btn-row form { display: inline; margin: 0; }
.inline-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.adm-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.adm-photo { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.adm-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.adm-photo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px; font-size: 12px; color: var(--muted); }
.adm-photo figcaption form { margin: 0; }
/* end phase 4 */

/* ===== HR module: staff, roles, modules (phase 5) ===== */
button.status-toggle { cursor: pointer; font-family: inherit; line-height: inherit; }
button.status-toggle:hover { filter: brightness(.97); }
button.status-toggle:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.staff-table .staff-mods { color: var(--muted); max-width: 220px; }
.staff-modules { border: 0; padding: 0; margin: 0; }
.staff-modules legend { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.staff-modules .opt { min-height: 38px; font-size: 13px; padding: 4px 14px 4px 10px; }
.staff-hint { font-size: 12.5px; margin-top: 6px; }
.staff-verified { color: var(--green); font-weight: 700; }
.staff-otp { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.staff-summary .meta, .staff-summary .ref { color: var(--muted); font-size: 13px; margin-top: 2px; }
.staff-summary .ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.staff-finish { margin-top: 16px; }
.staff-finish form { display: inline-flex; margin: 0; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--red) 88%, #000); color: #fff; text-decoration: none; }
/* end phase 5 */

/* ===== Accounts and communications (phase 6) ===== */
.acc-offline-form { max-width: 560px; margin-bottom: 18px; }
.acc-close-head { margin-top: 28px; }
.acc-close-head form { margin: 0; }
.comms-tabs { margin-bottom: 18px; }
.comms-tree-foot { padding: 10px 12px; border-top: 1px solid var(--line); }
.comms-tree-foot[hidden] { display: none; }
.comms-group-empty { cursor: default; }
.comms-section { padding-left: 24px; }
.comms-section .comms-sect-label { padding-left: 0; }
.comms-section .comms-group { border-bottom: none; }
.comms-section .comms-group-head { padding: 8px 0; }
.comms-section .comms-members { padding-left: 25px; }
.comms-section .comms-indiv-row { padding: 6px 0; }
.comms-audio-toggle { display: flex; gap: 18px; font-size: 13px; font-weight: 600; }
.comms-audio-toggle label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.comms-audio-toggle input { accent-color: var(--brand); margin: 0; }
.comms-audio-toggle[hidden], [data-comms-voice] [hidden] { display: none; }
.comms-rec-btn { display: inline-flex; align-items: center; gap: 9px; font: inherit; font-size: 13.5px; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.comms-rec-btn:hover { background: var(--surface-2); }
.comms-rec-btn.active { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.comms-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }
.comms-rec-btn.active .comms-rec-dot { animation: comms-rec-pulse 1s ease-in-out infinite; }
@keyframes comms-rec-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .comms-rec-btn.active .comms-rec-dot { animation: none; } }
.comms-attach-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comms-attach-row audio { height: 34px; max-width: 100%; }
.comms-chip-x { border: none; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 2px; cursor: pointer; }
.comms-chip-x:hover { color: var(--red); }
.comm-ico.comms-ch-sms { background: var(--gold-soft); color: var(--gold); }
.comm-ico.comms-ch-whatsapp { background: var(--green-soft); color: var(--green); }
.comm-ico.comms-ch-email { background: var(--marian-soft); color: var(--marian); }
.comm-ico.comms-ch-app { background: var(--brand-soft); color: var(--brand); }
.comms-providers { display: flex; flex-wrap: wrap; gap: 8px; }
.comms-providers-note { margin: 8px 0 14px; }
/* end phase 6 */

/* ===== SMS DLT templates ===== */
.sms-dlt { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; background: var(--surface-2, var(--surface)); }
.sms-dlt[hidden], .sms-dlt-tpl[hidden] { display: none; }
.sms-dlt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sms-dlt-tpl { display: grid; gap: 8px; }
.sms-dlt-preview { white-space: pre-wrap; font-size: 14px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: var(--gold-soft); color: var(--ink); }
.sms-dlt-preview mark { background: transparent; color: var(--brand); font-weight: 600; }
.sms-dlt-blank { color: var(--muted); font-family: ui-monospace, monospace; font-size: 12px; }
.sms-tpl-body { white-space: pre-wrap; font-size: 13px; min-width: 260px; max-width: 520px; }
.text-danger { color: var(--red); }
/* end SMS DLT templates */

/* ===== Platform: tenants, onboarding, billing, health, CSM (phase 7a) ===== */
.ob-card { max-width: 620px; }
.ob-actions { flex-direction: row-reverse; justify-content: flex-end; }
.billing-edit td { vertical-align: top; }
.billing-edit input, .billing-edit select { width: 100%; min-width: 90px; }
/* end phase 7a */

/* ===== Platform users CRM, languages, centre requests, group portal (phase 7b) ===== */
.ud-tabs { flex-wrap: wrap; }
.ud-gap { margin-bottom: 4px; }
.ud-card { max-width: 520px; }
.ud-card-head { margin-bottom: 0; }
.ud-card-head h3 { font-size: 15px; }
.ud-ok { color: var(--green); margin: 0; }
.ud-inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ud-inline-form input { min-width: 160px; flex: 1 1 160px; }
.ud-list { margin: 0 0 4px 18px; padding: 0; }
.cr-note { margin-top: 14px; }
.cr-confirm { background: var(--surface-2); margin-top: 14px; }
.cr-confirm p { margin: 0 0 10px; }
.cr-actions { margin-top: 16px; justify-content: flex-end; }
.lang-native { font-size: 12px; }
.lang-code { text-transform: uppercase; }
.lang-batches { padding: 10px 14px; }
.lang-batches > div { padding: 4px 0; font-size: 13px; }
.lang-remove { margin-top: 16px; }
.grp-subhead { margin-top: 22px; }
@media (max-width: 640px) { .ud-card { max-width: none; } }
/* end phase 7b */