/* GMG Portal styles. Plain CSS, no build step. */
:root {
  --page-gutter: clamp(16px, 2vw, 32px);
  --brand: #276955;
  --brand-dark: #1c4d3e;
  --brand-tint: #e8f2ee;
  --brand-text: var(--brand);
  --ink: #1d2523;
  --muted: #5b6763;
  --line: #d9e0dd;
  --bg: #f5f7f6;
  --card: #ffffff;
  --warn-bg: #fff5d6; --warn-ink: #7a5600;
  --ok-bg: #dff3e7;   --ok-ink: #1d6b3d;
  --bad-bg: #fbe4e2;  --bad-ink: #9b2c22;
  --grey-bg: #eceff0; --grey-ink: #4c5659;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--brand-text); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6rem; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; margin-top: 1.6rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Header */
.site-header { background: var(--brand); color: #fff; }
.site-header.staff { background: #213a33; }
/* Every page uses the full width of the screen, with a small margin. */
.header-inner { margin: 0 auto; padding: .7rem var(--page-gutter); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; white-space: nowrap; color: #fff; text-decoration: none; font-weight: 600; }
.brand img { height: 40px; width: auto; }
.brand .tag { font-size: .75rem; background: rgba(255,255,255,.18); padding: .1rem .5rem; border-radius: 99px; }
.nav { display: flex; gap: .2rem; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a, .nav button { color: #fff; text-decoration: none; padding: .4rem .55rem; border-radius: 6px; font: inherit; font-size: .92rem; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button:hover, .nav a.active { background: rgba(255,255,255,.15); }
.nav form { margin: 0; }
.count { display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: .25em; border-radius: 99px; background: #f2c94c; color: #3a2d00; font-size: .78rem; font-weight: 700; text-align: center; }

/* Layout */
main { margin: 0 auto; padding: 1.5rem var(--page-gutter) 3rem; }
/* Every page uses the full width. Short forms lay their fields out in columns on wide screens, one per row on
   phones; anything that isn't a plain field (headings, notes, checkboxes, buttons) spans the full row. */
.narrow, .medium { width: 100%; }
.narrow form, .medium form:not(.assess-form) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr)); gap: 0 1.2rem; align-items: start; }
.narrow form > *, .medium form:not(.assess-form) > * { grid-column: 1 / -1; }
.narrow form > .field:not(.checkbox):not(.wide), .medium form:not(.assess-form) > .field:not(.checkbox):not(.wide) { grid-column: auto; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.two-col { display: grid; gap: 1.5rem; grid-template-columns: 2fr 1fr; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.crumbs { font-size: .9rem; margin-bottom: .4rem; }
.crumbs a { text-decoration: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.card + .card { margin-top: 1rem; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.course-card { display: flex; flex-direction: column; }
.course-card.has-cover { flex-direction: row; gap: 1rem; align-items: stretch; }
.course-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.course-card-body h3 { margin-top: 0; }
.course-cover { flex: none; width: 5.5rem; align-self: flex-start; }
.course-cover img, .course-cover-large { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.course-cover-large { max-width: 16rem; margin: 0 auto 1rem; }
.course-head-title { display: flex; gap: 1rem; align-items: flex-start; }
.course-thumb { flex: none; width: 4rem; height: auto; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
.course-card .meta { margin-top: auto; padding-top: .8rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.hero { background: var(--brand-tint); border-radius: var(--radius); padding: 2rem 1.5rem; margin-bottom: 1.5rem; }
.hero h1 { font-size: 2rem; }
.locked { background: var(--grey-bg); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--grey-ink); }

/* Buttons */
.btn { display: inline-block; white-space: nowrap; background: var(--brand); color: #fff; border: 1px solid var(--brand); padding: .55rem 1rem; border-radius: 8px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.3; }
.btn:hover { background: var(--brand-dark); }
.btn.secondary { background: #fff; color: var(--brand-text); }
.btn.secondary:hover { background: var(--brand-tint); }
.btn.danger { background: #fff; color: var(--bad-ink); border-color: #e3b3ae; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.small { padding: .3rem .65rem; font-size: .875rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.actions form, .row-actions form { margin: 0; }
.row-actions { display: inline-flex; gap: .4rem; justify-content: flex-end; }
.card.notice { background: var(--warn-bg); color: var(--warn-ink); border-color: #ecd48a; }
.remove-paperwork { display: inline-block; text-align: left; }
.remove-paperwork > summary { list-style: none; cursor: pointer; }
.remove-paperwork > summary::-webkit-details-marker { display: none; }
.remove-paperwork[open] form { margin-top: .5rem; min-width: 16rem; }
.ref { white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ref-tag { display: inline-block; font-size: .9rem; padding: .15rem .55rem; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.card.notice a { color: inherit; }
.card.barred-banner { background: var(--bad-bg); color: var(--bad-ink); border-color: #e3b3ae; margin-bottom: 1rem; }
.card.barred-banner a { color: inherit; }
details.suite.archived > summary { background: var(--bg); }
.reason-form { display: grid; gap: .6rem; max-width: 40rem; }
.reason-form textarea { min-height: 4.5rem; }
.reason-form .actions { margin: 0; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.history li { border-left: 3px solid var(--line); padding: .1rem 0 .1rem .8rem; }

/* Badges */
.badge { display: inline-block; padding: .1rem .6rem; border-radius: 99px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge.pending { background: var(--warn-bg); color: var(--warn-ink); }
.badge.approved, .badge.open { background: var(--ok-bg); color: var(--ok-ink); }
.badge.declined, .badge.cancelled, .badge.full { background: var(--bad-bg); color: var(--bad-ink); }
.badge.grey { background: var(--grey-bg); color: var(--grey-ink); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #fafbfb; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
.empty { padding: 1.5rem; text-align: center; color: var(--muted); }

dl.details { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; }
dl.details dt { color: var(--muted); }
dl.details dd { margin: 0; }
/* Small fact tiles, the same everywhere: tinted box, green left edge, small green capital label above the value. */
dl.details.tiles { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .55rem; }
.tiles > div, .tile { background: var(--bg); border-left: 3px solid var(--brand); border-radius: 6px; padding: .45rem .75rem; min-width: 0; }
.tiles dt, .tile-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-text); margin: 0; }
.tiles dd, .tile-value { margin: .15rem 0 0; overflow-wrap: anywhere; }
.tile + .tile, .tile + .lock-note, .lock-note + .tile, form + .tile { margin-top: .55rem; }
/* Every box that opens with a heading (or a heading row) gets the green heading bar, edge to edge, as on the
   planner pages. */
.card > h2:first-child, .card > h3:first-child, .card > .section-title:first-child {
  margin: -1.2rem -1.2rem 1rem; padding: .65rem 1.2rem; background: var(--brand); color: #fff; font-size: 1rem;
  font-weight: 700; line-height: 1.3; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.card > .section-title:first-child { align-items: center; }
.card > .section-title:first-child h2 { margin: 0; font-size: 1rem; font-weight: 700; color: #fff; }
.card > :is(h2, h3, .section-title):first-child a { color: #fff; }
.card > :is(h2, h3, .section-title):first-child :is(.muted, small, .small) { color: rgba(255,255,255,.85); }
/* Boxes with no inner padding (customer cards) start the bar at their own edge. */
.contact-tile > h2:first-child { margin: 0; padding: .75rem 1.1rem; border-bottom: 0; }
/* Admin page: the heading bar is the portal green; the dot shows the check's status in a bright colour. */
.health > h2:first-child .light { width: 1rem; height: 1rem; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.health.green > h2:first-child .light { background: #2ecc71; }
.health.amber > h2:first-child .light { background: #ffb300; }
.health.red > h2:first-child .light { background: #ff3b30; }
.health.grey > h2:first-child .light, .health:not(.green):not(.amber):not(.red) > h2:first-child .light { background: #b0b8b5; }

/* Tabs */
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { padding: .4rem .8rem; border-radius: 99px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); font-size: .9rem; }
.tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Forms */
form .field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search],
input[type=datetime-local], input[type=date], input[type=time], input[type=url], input[type=file], select, textarea {
  width: 100%; padding: .55rem .7rem; border: 1px solid #b9c4c0; border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field.checkbox { display: flex; gap: .6rem; align-items: flex-start; }
.field.checkbox label { font-weight: 400; order: 2; margin: 0; }
.field.checkbox input { margin-top: .3rem; }
.helptext, .field .help { display: block; font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.errorlist { list-style: none; padding: 0; margin: .3rem 0 0; color: var(--bad-ink); font-size: .9rem; }
.searchbar { display: flex; gap: .5rem; margin-bottom: 1rem; }
.searchbar input { max-width: 360px; }

/* Messages */
.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.messages li { padding: .75rem 1rem; border-radius: 8px; margin-bottom: .5rem; background: var(--brand-tint); }
.messages li.success { background: var(--ok-bg); color: var(--ok-ink); }
.messages li.error { background: var(--bad-bg); color: var(--bad-ink); }
.messages li.warning { background: var(--warn-bg); color: var(--warn-ink); }

.site-footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 16px; }
.pre { white-space: pre-line; }

/* Trainer area */
.site-header.trainer { background: #2f4f6b; }

/* Stat tiles on dashboards */
.stats { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1.5rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; color: var(--ink); display: grid; gap: .1rem; }
.stat:hover { border-color: var(--brand); }
.stat .n { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .l { font-size: .85rem; color: var(--muted); }
.stat.attention .n { color: var(--warn-ink); }

/* People rows on the booking form */
.person { border: 1px solid var(--line); border-radius: 8px; padding: .9rem; margin-bottom: .8rem; background: #fafbfb; }
.person-grid { display: grid; gap: 0 .8rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .person-grid { grid-template-columns: 1fr; } }
.person-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.linklike { background: none; border: 0; color: var(--bad-ink); cursor: pointer; font: inherit; font-size: .875rem; padding: 0; }

/* Register */
.register select, .register input[type=text] { padding: .35rem .5rem; font-size: .9rem; }
.register td { vertical-align: middle; }

/* Radio ratings */
.field ul { list-style: none; padding: 0; margin: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.field ul li label { font-weight: 400; display: inline-flex; gap: .35rem; align-items: center; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; margin: 0; }
.badge.paid { background: var(--ok-bg); color: var(--ok-ink); }
.badge.invoice_sent { background: var(--warn-bg); color: var(--warn-ink); }
.badge.not_invoiced, .badge.no_charge { background: var(--grey-bg); color: var(--grey-ink); }
.badge.pass { background: var(--ok-bg); color: var(--ok-ink); }
.badge.fail { background: var(--bad-bg); color: var(--bad-ink); }

@media print {
  .site-header, .site-footer, .no-print, .messages { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .card, .table-wrap { border: 0; }
}

/* Grouped forms */
fieldset.section { border: 0; padding: 0; margin: 0 0 1.4rem; }
/* Form section labels use the green heading bar too. */
fieldset.section legend { display: block; width: 100%; font-weight: 700; font-size: 1rem; margin-bottom: .8rem; padding: .55rem .9rem; background: var(--brand); color: #fff; border-radius: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); gap: 0 1.2rem; }
.form-grid .field.wide { grid-column: 1 / -1; }
.req { color: var(--bad-ink); }
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: .6rem 0 1rem; }
.steps-row div { border-top: 4px solid var(--line); padding-top: .4rem; font-size: .82rem; color: var(--muted); }
.steps-row div.done { border-color: var(--brand); color: var(--ink); }
@media (max-width: 600px) { .steps-row { grid-template-columns: 1fr 1fr; } }
.money { font-variant-numeric: tabular-nums; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.badge.pay-awaiting, .badge.pay-no_charge { background: var(--grey-bg); color: var(--grey-ink); }
.badge.pay-deposit_sent, .badge.pay-balance_sent { background: var(--warn-bg); color: var(--warn-ink); }
.badge.pay-deposit_paid { background: #e3eefb; color: #23507e; }
.badge.pay-paid { background: var(--ok-bg); color: var(--ok-ink); }
.badge.pay-overdue { background: var(--bad-bg); color: var(--bad-ink); }
[hidden] { display: none !important; }

/* Invoice */
.doc { max-width: 820px; margin: 0 auto; padding: 2rem; }
.doc-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.doc-logo { height: 56px; width: auto; }
.doc-from { text-align: right; }
.doc-meta { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.doc-meta .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tfoot td, tfoot th { background: #fafbfb; }

/* Certificate */
.certificate { max-width: 860px; margin: 0 auto; background: #fff; border: 10px double var(--brand); padding: 3rem 2rem; text-align: center; }
.certificate p { margin: 0 0 .6rem; }
.cert-logo { height: 70px; width: auto; margin-bottom: 1rem; }
.cert-kicker { text-transform: uppercase; letter-spacing: .18em; color: var(--brand-text); font-weight: 700; }
.cert-small { color: var(--muted); }
.cert-name { font-size: 2.2rem; font-family: Georgia, "Times New Roman", serif; margin: .4rem 0 .8rem !important; }
.cert-course { font-size: 1.5rem; font-weight: 700; }
.cert-meta { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 2rem 0 1.5rem; }
.cert-meta dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cert-meta dd { margin: 0; font-weight: 600; }
@media print { .certificate { border-width: 8px; } }

/* Second row of staff links for the section you're in */
.subnav { background: #2c4a41; }
.subnav .header-inner { padding-top: .25rem; padding-bottom: .25rem; gap: .2rem; }
.subnav a { color: #e6efeb; text-decoration: none; padding: .3rem .6rem; border-radius: 6px; font-size: .88rem; }
.subnav a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Event statuses */
.badge.submitted { background: var(--warn-bg); color: var(--warn-ink); }
.badge.quoted { background: #e3eefb; color: #23507e; }
.badge.accepted { background: var(--ok-bg); color: var(--ok-ink); }
.badge.quote_declined, .badge.refused { background: var(--bad-bg); color: var(--bad-ink); }

/* Tick-box groups on the event form */
.field .ticks ul, .field ul.ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .4rem .8rem; }
.field ul li label { border-radius: 8px; }
.field.ticks ul li label { width: 100%; height: 100%; align-items: flex-start; }
.field.ticks ul li label input { margin-top: .25rem; }
.rows-table { width: 100%; }
.rows-table td, .rows-table th { padding: .35rem .4rem; }
.rows-table input, .rows-table select { padding: .35rem .45rem; font-size: .9rem; }
.form-section { border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: .4rem; }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section h2 { margin: 0 0 .9rem; font-size: 1rem; display: flex; align-items: center; gap: .6rem; padding: .5rem .9rem; background: var(--brand); color: #fff; border-radius: 8px; }
.form-section h2 .num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; color: var(--brand-text); font-size: .85rem; }
.intro { background: var(--brand-tint); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.intro p:last-child { margin-bottom: 0; }
.month { margin-top: 1.4rem; }
.cal-row { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1rem; align-items: start; }
.cal-date { text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: .3rem; background: #fafbfb; }
.cal-date .d { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.cal-date .m { font-size: .75rem; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) { .cal-row { grid-template-columns: 4rem 1fr; } .cal-row > :last-child { grid-column: 2; } }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip { font-size: .8rem; padding: .1rem .55rem; border-radius: 99px; background: var(--grey-bg); color: var(--grey-ink); }
.field.ticks > div[id] { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .35rem 1rem; }
.field.ticks > div[id] label { font-weight: 400; display: flex; gap: .45rem; align-items: flex-start; margin: 0; }
.field.ticks > div[id] label input { margin-top: .3rem; }
.rows-table { min-width: 640px; }
.grid > .card + .card { margin-top: 0; }

/* Home page service cards */
.services-head { margin-bottom: 1rem; }
.services-head h2 { margin-bottom: .2rem; }
.services-head p { margin: 0; }
.service-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.service-card:hover { box-shadow: 0 8px 24px rgba(23, 60, 48, .12); transform: translateY(-2px); }
.service-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--brand-tint); }
.service-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.service-card p { margin: 0 0 .6rem; }
.service-card .meta { margin-top: auto; padding-top: .6rem; }
.ticks-list { list-style: none; padding: 0; margin: 0 0 .4rem; display: grid; gap: .3rem; font-size: .9rem; }
.ticks-list li { padding-left: 1.5rem; position: relative; }
.ticks-list li::before { content: ""; position: absolute; left: .2rem; top: .45em; width: .7rem; height: .38rem; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .service-card, .service-card:hover { transition: none; transform: none; } }

/* Back button, shown at the top of every page except the start pages */
.back-bar { margin: -.4rem 0 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--brand-text); font-size: .9rem; font-weight: 600; text-decoration: none; }
.back-link:hover { border-color: var(--brand); background: var(--brand-tint); }

/* Upcoming course dates list */
.filter-chips { margin: 0 0 1rem; }
.suite-toggle { display: flex; gap: .5rem; margin: 0 0 .8rem; }
details.suite { margin: 0 0 .7rem; }
details.suite > summary { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; cursor: pointer; list-style: none;
  padding: .75rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
details.suite > summary::-webkit-details-marker { display: none; }
details.suite > summary::before { content: ""; width: .5rem; height: .5rem; align-self: center; flex: none;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); transition: transform .15s; }
details.suite[open] > summary::before { transform: rotate(45deg); }
details.suite > summary .suite-name { font-weight: 600; font-size: 1.05rem; }
details.suite[open] > summary { margin-bottom: .7rem; }
.filter-chips .chip { text-decoration: none; color: var(--ink); }
.filter-chips .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.date-list { display: grid; gap: .6rem; }
.date-row { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) 12rem auto; gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.date-row.is-full { opacity: .7; }
.date-tile { display: grid; justify-items: center; background: var(--brand); color: #fff; border-radius: 8px; padding: .35rem 0; line-height: 1.1; }
.date-tile .dow, .date-tile .mon { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.date-tile .day { font-size: 1.5rem; font-weight: 700; }
.date-info h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.date-info h3 a { text-decoration: none; color: var(--ink); }
.date-info p { margin: 0; }
.date-places { display: grid; gap: .3rem; font-variant-numeric: tabular-nums; }
.places { font-size: .9rem; }
.places.low { color: var(--warn-ink); }
.places-bar { display: block; height: 6px; border-radius: 99px; background: var(--brand-tint); overflow: hidden; }
.places-bar span { display: block; height: 100%; background: var(--brand); }
.places.low + .places-bar span { background: #e0a800; }
@media (max-width: 760px) {
  .date-row { grid-template-columns: 3.6rem minmax(0, 1fr); }
  .date-places, .date-action { grid-column: 2; }
}

/* Terms and privacy pages */
.legal h2 { font-size: 1.1rem; }
.legal h3 { font-size: 1rem; margin: 1.2rem 0 .3rem; }
.legal li { margin-bottom: .3rem; }
.legal address { font-style: normal; margin: .5rem 0 1rem; }
.site-footer a { color: inherit; }

/* Falls response waiting list */
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.falls-intro { display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; align-items: center; margin: 0 0 1.5rem; }
.falls-intro img { width: 100%; max-width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.falls-intro h1 { margin: .4rem 0 .3rem; }
.falls-intro p { margin: 0 0 .5rem; }
@media (max-width: 600px) { .falls-intro { grid-template-columns: 1fr; } .falls-intro img { max-width: 14rem; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#id_for_whom { display: grid; gap: .35rem; margin-top: .2rem; }
#id_for_whom label { font-weight: 400; display: flex; gap: .5rem; align-items: center; margin: 0; }
#id_for_whom input { width: auto; }
.radio-list > div { display: grid; gap: .5rem; }
.radio-list label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.radio-list input { margin-top: .3rem; }
.notes-log { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.notes-log li { border-left: 3px solid var(--brand); background: var(--grey-bg); padding: .6rem .8rem; border-radius: 0 6px 6px 0; }
.note-meta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .25rem; font-size: .9rem; }
.note-meta form { margin-left: auto; }
.feedback-fab { position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 50;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2f6b4a, #4a8c3f); box-shadow: 0 6px 18px rgba(0,0,0,.22); transition: transform .15s; }
.feedback-fab:hover { transform: scale(1.06); color: #fff; }
.feedback-fab:focus-visible { outline: 3px solid #f5c542; outline-offset: 3px; }
.site-footer { padding-bottom: 5.5rem; }
@media print { .feedback-fab { display: none; } }
.manage-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.manage-tile { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.manage-tile:hover { box-shadow: 0 8px 24px rgba(23, 60, 48, .12); transform: translateY(-2px); }
.manage-tile strong { font-size: 1.05rem; }
.manage-tile span { color: var(--muted); font-size: .9rem; }
.manage-tile em.count { align-self: flex-start; font-style: normal; margin: .3rem 0 0; }
.other-services { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.other-services h2 { margin-top: 0; }
.other-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.other-card { display: flex; gap: .8rem; align-items: center; padding: .6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.other-card:hover { box-shadow: 0 8px 24px rgba(23, 60, 48, .12); transform: translateY(-2px); }
.other-card img { width: 72px; height: 72px; flex: none; object-fit: cover; border-radius: 8px; }
.other-card span { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.other-card em { font-style: normal; color: var(--muted); font-size: .88rem; }
/* Customer top bar: green = signed up, red = tap to sign up */
.nav .svc-btn { border-radius: 99px; padding: .38rem .85rem; font-weight: 600; font-size: .9rem; border: 2px solid transparent; line-height: 1.2; }
.nav .svc-btn.on { background: #3f9b4f; color: #fff; }
.nav .svc-btn.on:hover, .nav .svc-btn.on.active { background: #4caf5c; border-color: #fff; }
.nav .svc-btn.off { background: #c8402f; color: #fff; }
.nav .svc-btn.off:hover { background: #d9503e; border-color: #fff; }
.nav .svc-btn.manage { background: rgba(255,255,255,.14); color: #fff; }
.nav .svc-btn.manage:hover, .nav .svc-btn.manage.active { background: rgba(255,255,255,.26); border-color: #fff; }
.nav { gap: .4rem; }
.svc-list { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.svc-row { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; background: var(--card); border: 1px solid var(--line); border-left: 6px solid #3f9b4f; border-radius: var(--radius); }
.svc-row.off { border-left-color: #c8402f; }
.svc-row form { margin: 0 0 0 auto; }
.svc-row .badge { margin-left: auto; }
.svc-dot { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: #3f9b4f; }
.svc-row.off .svc-dot { background: #c8402f; }
.svc-text { display: flex; flex-direction: column; min-width: 0; }
.svc-text em { font-style: normal; color: var(--muted); font-size: .88rem; }
.btn.danger-solid { background: #c8402f; border-color: #c8402f; color: #fff; }
.btn.danger-solid:hover { background: #b23525; }
.manage-tile-form { margin: 0; display: flex; }
.manage-tile-form .manage-tile { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.other-cta { color: #c8402f; font-size: .85rem; margin-top: .15rem; }
@media (max-width: 560px) { .nav .svc-btn { padding: .32rem .65rem; font-size: .85rem; } }
.service-picks > div { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.service-picks label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); cursor: pointer; }
.service-picks label:has(input:checked) { border-color: #3f9b4f; background: #eef7ee; }
.service-picks input { margin-top: .25rem; }
.nav .svc-btn.wait { background: #e3a21a; color: #2d1f00; }
.nav .svc-btn.wait:hover { background: #f0b232; border-color: #fff; }
.svc-row.wait { border-left-color: #e3a21a; }
.svc-row.wait .svc-dot { background: #e3a21a; }
.svc-row > .btn { margin-left: auto; }
.sr-card { margin-bottom: .75rem; }
.sr-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.sr-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: .8rem; }
.sr-actions form { margin: 0; }
.sr-decline { display: flex; gap: .5rem; flex: 1; min-width: 260px; }
.sr-decline input { flex: 1; min-width: 0; }
.svc-leave { margin: 0 0 0 .5rem !important; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.svc-staff { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.svc-staff li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .5rem; border-radius: 6px; border-left: 4px solid #3f9b4f; background: var(--grey-bg); font-size: .9rem; }
.svc-staff li.off { border-left-color: #c8402f; }
.svc-staff form { margin: 0; }

/* Admin page: one traffic-light card per check */
.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.health-grid .card + .card { margin-top: 0; }
.health { border-left: 1px solid var(--line); }  /* the heading bar shows the colour */
.health h2 { margin-top: 0; display: flex; align-items: center; gap: .5rem; }
.health .light { width: .85rem; height: .85rem; border-radius: 50%; background: var(--grey-ink); flex: none; }
.health.green .light { background: var(--ok-ink); }
.health.amber .light { background: #c58a00; }
.health.red   { background: var(--bad-bg); } .health.red .light { background: var(--bad-ink); }
.health details { margin: 0 0 1rem; }
.health details ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.maintenance-bar { background: var(--warn-bg); color: var(--warn-ink); text-align: center; padding: .55rem 1rem; font-weight: 600; }
.maintenance-bar a { color: inherit; }
/* Free event assessment: a guided, step-by-step tool for potential customers. */
.assess { width: 100%; }
.assess-hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: 16px; padding: 1.8rem 1.8rem 1.6rem; margin-bottom: 1.2rem; box-shadow: 0 10px 28px rgba(28,77,62,.25); }
.assess-hero h1 { color: #fff; margin: .2rem 0 .5rem; font-size: 2rem; }
.assess-kicker { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.assess-lead { margin: 0 0 1.1rem; font-size: 1.08rem; max-width: 42rem; opacity: .95; }
.assess-gets { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-weight: 600; }
.assess-gets li { display: flex; align-items: center; gap: .5rem; }
.assess-gets span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; color: var(--brand-dark); font-size: .85rem; }
.assess-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: 0 0 1rem; padding: 0; counter-reset: s; }
.assess-steps li { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--muted); padding-top: .5rem; border-top: 4px solid var(--line); }
.assess-steps li span { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--line); color: var(--ink); font-size: .78rem; font-weight: 700; flex: none; }
.assess-steps li.active { color: var(--brand-dark); font-weight: 700; border-top-color: var(--brand); }
.assess-steps li.active span, .assess-steps li.done span { background: var(--brand); color: #fff; }
.assess-steps li.done { border-top-color: var(--brand); color: var(--brand-dark); }
.assess-steps li > a { display: flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; }
.assess-steps li > a:hover { text-decoration: underline; }
.assess-steps button, .assess-step-end { all: unset; display: flex; flex-wrap: nowrap; align-items: center; gap: .45rem; cursor: pointer; font: inherit; color: inherit; }
.assess-steps button:disabled, .assess-step-end { cursor: default; }
.assess-steps button:not(:disabled):hover { text-decoration: underline; }
.assess-steps button:focus-visible { outline: 3px solid rgba(39,105,85,.35); outline-offset: 2px; border-radius: 4px; }
.assess-editing { margin: 0 0 1rem; padding: .7rem 1rem; background: var(--brand-tint); border-left: 4px solid var(--brand); border-radius: 8px; }
@media (max-width: 600px) { .assess-steps li { font-size: 0; gap: 0; } .assess-steps li span { font-size: .78rem; } .assess-hero { padding: 1.3rem; } .assess-hero h1 { font-size: 1.6rem; } }
.assess-step .form-grid { margin-bottom: .4rem; }
.assess-step input[type=date] { width: 100%; }
.assess-q { padding: 1rem 0; border-top: 1px solid var(--line); }
.assess-label { margin: 0 0 .5rem; font-weight: 700; font-size: 1.02rem; }
.assess-q .help { margin: -.3rem 0 .6rem; }
.assess-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .5rem; }
.assess-option { position: relative; display: flex; gap: .65rem; align-items: center; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font-weight: 500; margin: 0; line-height: 1.35; transition: border-color .15s, background .15s, box-shadow .15s; }
.assess-option:hover { border-color: var(--brand); }
.assess-option input { position: absolute; opacity: 0; pointer-events: none; }
.assess-tick { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid #b9c7c2; background: #fff; display: grid; place-items: center; }
.assess-options.multi .assess-tick { border-radius: 5px; }
.assess-option:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 1px var(--brand) inset; }
.assess-option:has(input:checked) .assess-tick { background: var(--brand); border-color: var(--brand); }
.assess-option:has(input:checked) .assess-tick::after { content: ""; width: .35rem; height: .65rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.assess-option:has(input:focus-visible) { outline: 3px solid rgba(39,105,85,.35); outline-offset: 2px; }
.assess-need { display: none; margin: .5rem 0 0; color: var(--bad-ink); font-weight: 600; font-size: .9rem; }
.assess-q.unanswered .assess-need { display: block; }
.assess-q.unanswered .assess-option { border-color: #e7a3a3; }
.assess-nav { display: flex; justify-content: space-between; gap: .6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); margin-top: .4rem; }
.assess-nav .btn { min-width: 9rem; }
.assess-foot { text-align: center; margin: 1rem auto 0; }
/* Result */
.assess-result { border-radius: 16px; overflow: hidden; color: #fff; margin-bottom: 1.2rem; box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.assess-result.tier-1 { background: #12873f; } .assess-result.tier-2 { background: #c98a00; }
.assess-result.tier-3 { background: #d9480f; } .assess-result.tier-4 { background: #c62828; }
.assess-result-head { padding: 1.5rem 1.6rem 1.2rem; }
.assess-result h1 { color: #fff; margin: .2rem 0 .4rem; font-size: 2.1rem; }
.assess-result-head > p:not(.assess-kicker) { margin: 0; font-size: 1.08rem; max-width: 44rem; }
.assess-reasons { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .9rem; font-size: .9rem; }
.assess-reasons b { background: rgba(255,255,255,.2); border-radius: 99px; padding: .2rem .7rem; font-weight: 600; }
.assess-meter { display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(0,0,0,.18); }
.assess-meter .seg { padding: .55rem .5rem; text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.65); border-top: 5px solid transparent; }
.assess-meter .seg.t1 { border-top-color: #2ecc71; } .assess-meter .seg.t2 { border-top-color: #ffc53d; }
.assess-meter .seg.t3 { border-top-color: #ff8a3d; } .assess-meter .seg.t4 { border-top-color: #ff5252; }
.assess-meter .seg.on { background: rgba(255,255,255,.22); color: #fff; }
.assess-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .7rem; }
.assess-stats div { background: var(--bg); border-radius: 12px; padding: .9rem 1rem; border-top: 4px solid var(--brand); display: grid; gap: .15rem; }
.assess-stats strong { font-size: 2.2rem; line-height: 1; color: var(--brand-dark); }
.assess-stats span { font-size: .92rem; color: var(--ink); }
.assess-note { margin: .8rem 0 0; padding: .6rem .8rem; background: var(--brand-tint); border-radius: 8px; }
.assess-sub { font-size: 1rem; margin: 1.2rem 0 .5rem; color: var(--brand-dark); }
.assess-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.assess-ticks li { position: relative; padding-left: 1.6rem; }
.assess-ticks li::before { content: ""; position: absolute; left: .25rem; top: .25rem; width: .45rem; height: .8rem; border: solid var(--brand); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.assess-cta { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: 16px; padding: 1.4rem 1.6rem; margin: 1.2rem 0; }
.assess-cta h2 { color: #fff; margin: 0 0 .3rem; font-size: 1.3rem; }
.assess-cta p { margin: 0; max-width: 34rem; opacity: .95; }
.assess-cta-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.assess-cta .btn.assess-cta-main { background: #fff; color: var(--brand-dark); border-color: #fff; font-weight: 700; font-size: 1.05rem; padding: .75rem 1.3rem; }
.assess-cta .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.tier-pill { display: inline-block; padding: .2rem .7rem; border-radius: 99px; color: #fff; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.tier-pill.big { font-size: 1rem; padding: .45rem 1rem; }
.tier-pill.t1 { background: #12873f; } .tier-pill.t2 { background: #c98a00; } .tier-pill.t3 { background: #d9480f; } .tier-pill.t4 { background: #c62828; }
.card > .section-title:first-child .assess-tools .btn { background: #fff; color: var(--brand-dark); border-color: #fff; font-weight: 700; }
@media print { .assess-cta, .assess-steps, .assess-tools, .feedback-fab, .environment-bar { display: none !important; }
  .assess-result, .card { box-shadow: none; break-inside: avoid; } .assess-result { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* Event Management Plan writer */
.emp-sub { padding: .9rem 0; border-top: 1px solid var(--line); }
.emp-sub:first-of-type { border-top: 0; padding-top: 0; }
.emp-label { display: block; font-weight: 700; margin-bottom: .2rem; }
.emp-guide { margin: 0 0 .45rem; font-size: .9rem; }
.emp-guide summary { cursor: pointer; color: var(--brand-text); font-weight: 600; }
.emp-guide p { margin: .3rem 0 0; padding: .5rem .7rem; background: var(--brand-tint); border-radius: 6px; }
#emp-form textarea { resize: vertical; overflow: hidden; }
.emp-table input { min-width: 9rem; }
.emp-table + .btn { margin-top: .5rem; }
.emp-finish { margin-top: 1rem; }
.planner-live-frame.pdf { height: calc(100vh - 6rem); }
/* Event Risk Assessment builder */
.risk-card { padding: 1rem 0; border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.risk-card:first-of-type { border-top: 0; padding-top: 0; }
.risk-scores { margin-top: .3rem; }
.risk-remove { font-size: .88rem; color: var(--bad-ink); font-weight: 400; display: flex; gap: .4rem; align-items: center; }
.risk-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; font-size: .92rem; }
.risk-guide ol { margin: .3rem 0 0; padding-left: 1.3rem; }
.risk-guide p { margin: .3rem 0; line-height: 2; }
/* Event plans */
.plan-preview { padding: 0; overflow: hidden; margin-bottom: 1rem; }
.plan-preview summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; padding: .7rem 1.2rem; background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; }
.plan-preview summary .muted { color: rgba(255,255,255,.85); font-weight: 400; }
.plan-preview-frame { height: min(80vh, 60rem); background: #d9dedc; }
.plan-preview-frame iframe { width: 100%; height: 100%; border: 0; }
.plan-brand-row { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }
.plan-logo { flex: none; width: 11rem; height: 5.5rem; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; background: #fff; padding: .4rem; overflow: hidden; }
.plan-logo img { display: block; width: auto; height: auto; max-width: 10.2rem; max-height: 4.7rem; object-fit: contain; }  /* any shape of logo fits */
.plan-brand-text { flex: 1; min-width: 16rem; }
.plan-logo-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.plan-logo-form input[type=file] { width: auto; max-width: 100%; }
.plan-brand-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
tr.row-overdue td { background: var(--bad-bg); }
.plan-hero { display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.plan-hero > div:first-child { flex: 1; min-width: 16rem; }
.plan-progress { height: .7rem; background: rgba(255,255,255,.25); border-radius: 99px; overflow: hidden; max-width: 34rem; }
.plan-progress div { height: 100%; background: #fff; border-radius: 99px; }
.plan-progress-text { margin: .4rem 0 0; font-weight: 600; }
.plan-countdown { text-align: center; background: rgba(255,255,255,.14); border-radius: 14px; padding: .9rem 1.4rem; min-width: 9rem; }
.plan-countdown strong { display: block; font-size: 2.6rem; line-height: 1; }
.plan-countdown span { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.plan-next-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .5rem; }
.plan-next-list li { display: grid; padding: .6rem .8rem; border-radius: 8px; background: var(--bg); border-left: 4px solid var(--brand); }
.plan-next-list li.soon { border-left-color: #f2a900; } .plan-next-list li.overdue { border-left-color: var(--bad-ink); background: var(--bad-bg); }
.plan-next-list a { color: var(--ink); text-decoration: none; }
.plan-next-list span { font-size: .88rem; color: var(--muted); }
.plan-remind { display: flex; gap: .5rem; align-items: center; margin: 0 0 0 auto; }
.plan-tools { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; margin: 0 0 1rem; }
.plan-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.plan-task { display: flex; gap: .8rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); scroll-margin-top: 6rem; }
.plan-task.gmg { background: var(--brand-tint); border-color: var(--brand); }
.plan-task.overdue { border-color: var(--bad-ink); }
.plan-task.done .plan-task-head strong { text-decoration: line-through; color: var(--muted); }
.plan-check { margin: 0; }
.plan-box { all: unset; cursor: pointer; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 2px solid #9fb3ac; border-radius: 6px; background: #fff; margin-top: .1rem; }
.plan-box:hover { border-color: var(--brand); }
.plan-box:focus-visible { outline: 3px solid rgba(39,105,85,.35); outline-offset: 2px; }
.plan-task.done .plan-box { background: var(--brand); border-color: var(--brand); }
.plan-task.done .plan-box::after { content: ""; width: .4rem; height: .8rem; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -2px); }
.plan-task-body { flex: 1; min-width: 0; }
.plan-task-head { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; }
.plan-due { margin-left: auto; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.plan-task.overdue .plan-due { color: var(--bad-ink); font-weight: 700; }
.plan-why { margin: .25rem 0 0; color: var(--muted); font-size: .92rem; }
.plan-gmg { margin: .4rem 0 0; font-size: .9rem; font-weight: 600; color: var(--brand-dark); }
.plan-files { margin: .5rem 0 0; padding: 0; list-style: none; display: grid; gap: .2rem; font-size: .92rem; }
.plan-files li { display: flex; gap: .6rem; align-items: center; } .plan-files form { margin: 0; }
.plan-notes { margin: .4rem 0 0; font-size: .92rem; padding: .4rem .6rem; background: var(--bg); border-radius: 6px; }
.plan-edit { margin-top: .5rem; } .plan-edit summary { cursor: pointer; color: var(--brand-text); font-size: .9rem; font-weight: 600; }
.plan-edit form { margin-top: .6rem; }
.assess-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.assess-checklist li { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .85rem; background: var(--bg); border-radius: 10px; border: 1px solid var(--line); }
.assess-checklist li p { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); }
.assess-checklist li.gmg { background: var(--brand-tint); border-color: var(--brand); }
.assess-box { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .15rem; border: 2px solid #9fb3ac; border-radius: 4px; background: #fff; }
.assess-checklist li.gmg .assess-box { background: var(--brand); border-color: var(--brand); position: relative; }
.assess-checklist li.gmg .assess-box::after { content: ""; position: absolute; left: .32rem; top: .1rem; width: .3rem; height: .6rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* Checking a document from its code (public page): the result is a bold block of colour. */
.verify-page h1 { margin-bottom: .3rem; }
.verify-result { display: flex; gap: 1rem; align-items: center; border-radius: 12px; padding: 1.3rem 1.4rem; margin: 1.2rem 0 1rem; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.verify-result.valid { background: #12873f; }
.verify-result.replaced, .verify-result.draft { background: #f2a900; color: #1f1600; }
.verify-result.unknown, .verify-result.withdrawn { background: #c62828; }
.verify-icon { flex: none; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 2rem; font-weight: 700; }
.verify-result.replaced .verify-icon, .verify-result.draft .verify-icon { background: rgba(0,0,0,.12); }
.verify-state { font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin: 0 0 .3rem; }
.verify-why { margin: 0; font-size: 1.02rem; }
.verify-details { margin-bottom: 1rem; }
.verify-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .5rem; margin: 0; }
.verify-facts > div { background: var(--bg); border-left: 3px solid var(--brand); border-radius: 6px; padding: .4rem .7rem; }
.verify-facts dt { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-text); }
.verify-facts dd { margin: .1rem 0 0; }
.verify-form { margin-top: 1rem; }
.verify-form label { font-weight: 700; }
.verify-row { display: flex; gap: .5rem; margin-top: .3rem; }
.verify-row input { flex: 1; font-size: 1.2rem; letter-spacing: .12em; text-transform: uppercase; }
.verify-row input::placeholder { text-transform: none; letter-spacing: normal; }
.environment-bar { background: #1f5fa8; color: #fff; text-align: center; padding: .4rem 1rem; font-weight: 700; font-size: .9rem; }
.health .actions-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.pre-scroll { white-space: pre; overflow-x: auto; max-height: 24rem; font-size: .8rem; background: var(--bg); padding: .8rem; border-radius: 6px; }

/* Customer page (Manage > Customers > a customer): FreeAgent-style summary */
.customer-head { align-items: center; }
.page-tabs { display: flex; gap: 1.4rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 1.2rem; }
.page-tabs a { padding: .55rem .1rem; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.page-tabs a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }
.page-tabs a:hover { color: var(--ink); }
.count-pill { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: .75rem; text-align: center; color: var(--muted); font-weight: 400; }
.customer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.2rem; align-items: start; }
.customer-main { display: grid; gap: 1.2rem; }
.customer-main > h2 { margin: 1rem 0 0; }
.card-title { font-size: 1rem; margin: 0 0 .8rem; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; }
.stat-row { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat-label { color: var(--muted); font-size: .85rem; margin: .8rem 0 .15rem; }
.card-title + .stat-label, .stat-row .stat-label { margin-top: 0; }
.stat-value { font-size: 1.5rem; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.plain-list { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .2rem; }
.activity-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.contact-card p { margin-top: 0; }
.contact-card .stat-label { margin: .9rem 0 .2rem; }
/* 12-month bar chart: thin bars in the brand colour, 4px rounded tops on the baseline, recessive grid */
.bar-chart { position: relative; height: 11rem; padding-left: 3.2rem; }
.bar-chart-grid { position: absolute; inset: 0 0 1.4rem 0; display: flex; flex-direction: column; justify-content: space-between; }
.bar-chart-grid span { border-top: 1px dashed var(--line); font-size: .7rem; color: var(--muted); line-height: 0; padding-top: 0; }
.bar-chart-bars { position: absolute; inset: 0 0 0 3.2rem; display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; }
.bar-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 1.4rem; outline: none; }
.bar { width: min(1.4rem, 60%); background: var(--brand); border-radius: 4px 4px 0 0; min-height: 0; }
.bar-label { position: absolute; bottom: 0; font-size: .72rem; color: var(--muted); }
.bar-col:hover .bar, .bar-col:focus .bar { opacity: .8; }
.bar-col:hover::after, .bar-col:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% - 1rem); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: .75rem; padding: .25rem .5rem; border-radius: 6px; z-index: 2; pointer-events: none; }
@media (max-width: 900px) {
  .customer-layout { grid-template-columns: 1fr; }
  .bar-chart { padding-left: 2.6rem; }
  .bar-chart-bars { left: 2.6rem; }
  .bar-label { font-size: .62rem; }
}
.customer-main .card, .stat-cards .card { margin: 0; }
@media (max-width: 600px) { .page-tabs { gap: .2rem 1rem; } }

/* Customers list (Manage > Customers): FreeAgent-style contact cards */
.contacts-tools { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: 0 0 .9rem; }
.contacts-tools select { width: auto; min-width: 14rem; }
.contacts-tools input[type=search] { flex: 1 1 16rem; width: auto; }
.view-switch { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.view-switch a { padding: .45rem .9rem; text-decoration: none; color: var(--brand-text); background: var(--card); }
.view-switch a.active { background: var(--bg); color: var(--ink); font-weight: 600; }
.letter-bar { display: flex; flex-wrap: wrap; gap: .15rem; margin: 0 0 .8rem; }
.letter-bar a, .letter-bar span { min-width: 2.2rem; text-align: center; padding: .4rem .5rem; border-radius: 6px; text-decoration: none; font-weight: 600; }
.letter-bar a { color: var(--brand-text); }
.letter-bar a.active { background: var(--brand); color: #fff; padding-left: 1rem; padding-right: 1rem; }
.letter-bar span { color: var(--line); font-weight: 400; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.contact-grid .card { margin: 0; }
.contact-tile { display: flex; flex-direction: column; padding: 0; }
.contact-tile h2 { font-size: 1.02rem; margin: 0; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-tile h2 a { text-decoration: none; }
.contact-tile-body { padding: .9rem 1.1rem 0; display: grid; gap: .15rem; flex: 1; overflow-wrap: anywhere; }
.contact-tile .actions { padding: .9rem 1.1rem 1rem; }
.add-new { position: relative; }
.add-new > summary { list-style: none; cursor: pointer; }
.add-new > summary::-webkit-details-marker { display: none; }
.add-new > summary::after { content: " \25BE"; }
.add-new-menu { position: absolute; z-index: 5; top: calc(100% + .3rem); left: 0; min-width: 15rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.08); display: grid; padding: .3rem 0; }
.add-new-menu a { padding: .5rem .9rem; text-decoration: none; color: var(--ink); }
.add-new-menu a:hover { background: var(--bg); }
@media (max-width: 600px) { .view-switch { margin-left: 0; } .letter-bar a, .letter-bar span { min-width: 1.8rem; padding: .35rem .3rem; } }

/* Staff page: cards with roles, sign-in status, and log out / lock */
.session-monitor { display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--brand-tint); border-color: transparent; }
.session-monitor h2 { margin: 0 0 .2rem; font-size: 1.05rem; }
.session-monitor p { margin: 0; max-width: 36rem; }
.session-stats { display: flex; gap: 1.6rem; margin: 0; }
.session-stats dt { font-size: .8rem; color: var(--muted); }
.session-stats dd { margin: 0; font-size: 1.6rem; font-weight: 700; color: var(--brand-dark); }
.session-stats dd a { color: inherit; text-decoration: none; }
.session-stats { flex-wrap: wrap; }
.session-details { flex-basis: 100%; }
.session-details > summary { cursor: pointer; font-weight: 600; color: var(--brand-dark); }
.session-person { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-top: .6rem; }
.session-person > summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; align-items: center; padding: .6rem .9rem; cursor: pointer; }
.session-person[open] > summary { border-bottom: 1px solid var(--line); }
.session-person > .actions, .session-person > p { padding: 0 .9rem .8rem; margin: 0; }
.session-sign-in { padding: .7rem .9rem; }
.session-sign-in + .session-sign-in { border-top: 1px dashed var(--line); }
/* In the Signed in now panel the lock form opens in place, below the buttons, instead of over them. */
.session-person .actions { flex-wrap: wrap; }
.session-person .lock-menu[open] { flex-basis: 100%; }
.session-person .lock-menu .add-new-menu { position: static; margin-top: .5rem; box-shadow: none; background: var(--bg); }
.session-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .5rem; margin: 0; font-size: .9rem; }
.session-facts > div { background: var(--bg); border-left: 3px solid var(--brand); border-radius: 6px; padding: .35rem .6rem; }
.session-facts dt { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-text); }
.session-facts dd { margin: .1rem 0 0; overflow-wrap: anywhere; }
.session-h { font-size: .85rem; margin: .8rem 0 .3rem; }
.session-activity { margin: 0; padding-left: 1.2rem; font-size: .9rem; line-height: 1.6; }
.session-activity time { font-variant-numeric: tabular-nums; font-weight: 600; }
.staff-grid { grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }
.staff-tile { display: flex; flex-direction: column; padding: 0; }
.staff-tile.locked { border-color: #e3b3ae; }
.staff-tile header { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem .8rem; border-bottom: 1px solid var(--line); }
.staff-tile .avatar { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; }
.staff-tile.locked .avatar { background: var(--bad-bg); color: var(--bad-ink); }
.staff-name { flex: 1; min-width: 0; }
.staff-name h2 { font-size: 1.05rem; margin: 0 0 .25rem; overflow-wrap: anywhere; }
.staff-name h2 a { text-decoration: none; }
.staff-roles .badge { font-size: .72rem; }
.last-in { text-align: right; line-height: 1.25; flex: none; }
.staff-facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin: 0; padding: .9rem 1.1rem 0; flex: 1; align-content: start; }
.staff-facts dt { color: var(--muted); font-size: .875rem; }
.staff-facts dd { margin: 0; overflow-wrap: anywhere; font-size: .925rem; }
.live-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ok-ink); margin-right: .4rem; vertical-align: .05rem; }
.lock-note { margin: .8rem 1.1rem 0; padding: .5rem .7rem; border-radius: 8px; background: var(--bad-bg); color: var(--bad-ink); }
.staff-tile .actions { padding: .9rem 1.1rem 1rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.staff-tile .actions form { margin: 0; }
.staff-tile { position: relative; }
.lock-menu { position: static; }
.lock-menu .add-new-menu { left: .6rem; right: .6rem; top: calc(100% - .6rem); min-width: 0; padding: .9rem; }
.staff-grid + p { margin-top: 1.2rem; }
.staff-tile .lock-menu .actions { padding: 0; }
@media (max-width: 600px) { .staff-grid { grid-template-columns: 1fr; } .session-stats { gap: 1.2rem; } }

/* Register interest on a course page */
.card.interest h3 { margin-top: 0; }
details.card.interest > summary { cursor: pointer; }
details.card.interest[open] > summary { margin-bottom: 1rem; }
.interest-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1rem; }
.interest-fields .field.wide { grid-column: 1 / -1; }
.interest-note { background: var(--brand-tint); border-color: transparent; }
.waiting-notice { display: flex; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1.2rem; }
.waiting-notice form { margin: 0; }
.interest-group { padding: 0; margin-bottom: 1.2rem; }
.interest-group-head { display: flex; gap: .6rem 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.interest-group-head h2 { font-size: 1.05rem; margin: 0 0 .2rem; }
.interest-group-head h2 a { text-decoration: none; }
.interest-group .table-wrap { border: 0; margin: 0; }
.interest-status { display: grid; gap: .35rem; min-width: 12rem; margin: 0 0 .3rem; }
.interest-status textarea { min-height: 2.4rem; }
.interest-status .btn { justify-self: start; }
.interest-their-note { margin: .4rem 0 0; color: var(--muted); }

/* Event planner */
.planner-sub { margin: .2rem 0 0; }
.planner-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .planner-layout { grid-template-columns: 1fr; } }
.planner-gap { margin-bottom: 1rem; }
.planner-panel { padding: 0; overflow: hidden; }
.planner-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--brand); color: #fff; padding: .6rem 1.2rem; }
.planner-panel-head h2 { margin: 0; font-size: 1rem; font-weight: 700; color: #fff; }
.planner-head-note { font-size: .82rem; opacity: .85; }
.btn.planner-head-btn { background: #fff; color: var(--brand-text); border-color: #fff; }
.btn.planner-head-btn:hover { background: var(--brand-tint); }
.planner-panel-body { padding: 1rem 1.2rem; }
.planner-strip { margin-bottom: 1rem; }
.planner-strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 0; font-size: .92rem; line-height: 1.35; }
.planner-strip-grid > div { background: var(--bg); border-left: 3px solid var(--brand); border-radius: 6px; padding: .45rem .7rem; }
.planner-strip-grid .wide { grid-column: span 2; }
.planner-strip-grid .full { grid-column: 1 / -1; }
.planner-strip-grid dt { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-text); }
.planner-strip-grid dd { margin: .1rem 0 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .planner-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .planner-strip-grid .wide { grid-column: 1 / -1; } }
.planner-withdraw { margin-top: .6rem; }
.planner-withdraw .add-new-menu { position: static; margin-top: .5rem; box-shadow: none; background: var(--bad-bg); }
.planner-withdrawn { margin: 0 0 .6rem; padding: .6rem .8rem; background: var(--bad-bg); color: var(--bad-ink); border-radius: 8px; }
.planner-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1000px) { .planner-split { grid-template-columns: 1fr; } }
.planner-para { margin-bottom: .8rem; }
.planner-subsection + .planner-subsection { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.planner-subhead { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .6rem; font-size: .95rem; font-weight: 700; color: var(--brand-dark); }
.planner-subhead span { min-width: 2.2rem; color: var(--brand-text); }
.planner-from { margin: 0 0 .8rem; }
.planner-from > span { display: inline-block; margin: 0 .4rem .4rem 0; padding: .25rem .6rem; background: var(--bg); border-left: 3px solid var(--brand); border-radius: 6px; font-size: .9rem; }
.planner-from p { margin: .2rem 0 0; }
.planner-para label { font-size: .85rem; font-weight: 700; margin-bottom: .2rem; }
.planner-editor textarea { width: 100%; font: inherit; font-size: .93rem; line-height: 1.45; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 6px; resize: none; overflow: hidden; background: #fbfcfc; }
.planner-editor textarea:focus { background: #fff; }
.planner-help { margin: 0 0 .9rem; font-size: .88rem; }
.planner-help summary { cursor: pointer; color: var(--brand-text); font-weight: 600; }
.planner-help ul { margin: .5rem 0; padding-left: 1.1rem; }
.planner-help p { margin: 0; color: var(--muted); }
.planner-live { position: sticky; top: calc(var(--top-h, 0px) + 1rem); }
.planner-live-frame { height: calc(100vh - 6rem); overflow-y: auto; background: #d9dedc; }
.planner-live-inner { position: relative; overflow: hidden; }
.planner-live-frame iframe { position: absolute; top: 0; left: 0; width: 794px; height: 1123px; border: 0; transform-origin: 0 0; }
.tok { background: var(--brand-tint); color: var(--brand-dark); border-radius: 4px; padding: 0 .25rem; font-weight: 600; }
mark.missing { background: var(--warn-bg); color: var(--warn-ink); border-radius: 4px; padding: 0 .25rem; font-weight: 700; }
.planner-side .card + .card { margin-top: 1rem; }
.planner-h { font-size: 1.05rem; font-weight: 700; margin: 0 0 .75rem; }
.planner-dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem .9rem; margin: 0 0 1rem; font-size: .92rem; }
.planner-dl dt { color: var(--muted); }
.planner-dl dd { margin: 0; overflow-wrap: anywhere; }
.planner-docs { list-style: none; margin: 0; padding: 0; }
.planner-docs li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .85rem 0; border-top: 1px solid var(--line); }
.planner-docs li:first-child { border-top: 0; }
.planner-docs.planner-panel-body { padding: .3rem 1.2rem; }
.planner-form .planner-panel-body.form-grid { padding-bottom: 0; }
.planner-res { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.planner-res li { display: flex; justify-content: space-between; padding: .35rem 0; border-top: 1px solid var(--line); }
.planner-res li:first-child { border-top: 0; }
.planner-form input[type=date], .planner-form input[type=time] { width: 100%; padding: .55rem .7rem; border: 1px solid #b9c4c0; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.planner-form .card { margin-bottom: 1rem; }
.planner-form .card + .card { margin-top: 0; }
.planner-form .form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) { .planner-form .form-grid.three { grid-template-columns: 1fr; } }
.planner-jump { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1rem; }
.planner-jump a { font-size: .88rem; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 99px; background: #fff; text-decoration: none; }
.planner-jump a:hover { border-color: var(--brand); }
.planner-res-table td { vertical-align: middle; }
.planner-res-table td:nth-child(2) { width: 9rem; }
.planner-res-table td:last-child { width: 5rem; text-align: center; }
.planner-formbar { display: flex; justify-content: flex-end; gap: .5rem; align-items: center; background: #fff; border: 1px solid var(--line); padding: .7rem 1rem; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.planner-cards { display: grid; gap: .8rem; }
.planner-split > .card + .card { margin-top: 0; }
.planner-split .planner-editor + .planner-editor { margin-top: 1rem; }
.planner-editor input[type=text] { font-size: .93rem; padding: .4rem .6rem; border-radius: 6px; }
.planner-signoff { margin-top: 1rem; }
.planner-steps { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .85rem; }
.planner-steps li { padding: .25rem .7rem; border-radius: 99px; background: var(--grey-bg); color: var(--grey-ink); }
.planner-steps li.done { background: var(--ok-bg); color: var(--ok-ink); }
.planner-steps li.now { background: var(--brand); color: #fff; font-weight: 700; }
.planner-signers { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
@media (max-width: 700px) { .planner-signers { grid-template-columns: 1fr; } }
.planner-signer { background: var(--bg); border-left: 3px solid var(--line); border-radius: 6px; padding: .55rem .8rem; font-size: .92rem; }
.planner-signer.done { border-left-color: var(--ok-ink); background: var(--ok-bg); }
.planner-signer-kind { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-text); }
.planner-signer-state { margin-top: .35rem; font-size: .85rem; }
.planner-signer-state form { margin: 0; }
.planner-problems { background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; padding: .5rem .8rem; margin-bottom: .8rem; font-size: .9rem; }
.planner-problems p { margin: 0; }
.planner-return, .planner-history { margin-top: .8rem; font-size: .9rem; }
.planner-return summary, .planner-history summary { cursor: pointer; color: var(--brand-text); font-weight: 600; }
.planner-return textarea { width: 100%; margin: .5rem 0; font: inherit; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 6px; }
.planner-history ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.planner-history li { padding: .35rem 0; border-top: 1px solid var(--line); }
.planner-sign-preview { background: var(--bg); border-radius: 8px; padding: .5rem; margin-bottom: .5rem; max-width: 18rem; }
.planner-sign-preview img { max-width: 100%; display: block; }
.planner-signer select { width: 100%; margin-top: .3rem; padding: .4rem .6rem; border: 1px solid #b9c4c0; border-radius: 6px; font: inherit; background: #fff; }
.planner-signers-note { grid-column: 1 / -1; margin: 0; }
.planner-card { display: block; padding: 0; overflow: hidden; text-decoration: none; color: inherit; }
.planner-card:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.planner-card + .planner-card { margin-top: 0; }
.planner-card-head { display: flex; align-items: center; gap: 1rem; background: var(--brand); color: #fff; padding: .7rem 1.1rem; }
.planner-card-date { flex: 0 0 3.6rem; text-align: center; background: #fff; color: var(--brand-dark); border-radius: 8px; padding: .3rem .2rem; line-height: 1.1; }
.planner-card-date strong { display: block; font-size: 1.4rem; }
.planner-card-date span { font-size: .72rem; font-weight: 600; text-transform: uppercase; }
.planner-card-title { flex: 0 1 auto; min-width: 0; }
.planner-card-title h2 { margin: 0; font-size: 1.15rem; font-weight: 700; color: #fff; }
.planner-card-title span { font-size: .85rem; opacity: .85; }
.planner-card-docs { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.planner-card-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: .9rem 1.1rem 1rem; font-size: .9rem; line-height: 1.3; }
.planner-card-tiles > div { background: var(--bg); border-left: 3px solid var(--brand); border-radius: 6px; padding: .4rem .65rem; }
.planner-card-tiles .wide { grid-column: span 2; }
.planner-card-tiles dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-text); }
.planner-card-tiles dd { margin: .1rem 0 0; overflow-wrap: anywhere; }
@media (max-width: 800px) { .planner-card-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .planner-card-tiles .wide { grid-column: 1 / -1; } .planner-card-head { flex-wrap: wrap; } .planner-card-docs { justify-content: flex-start; } }
.planner-card.plain { display: flex; gap: 1.1rem; align-items: center; padding: 1rem 1.2rem; }
.planner-card-body { min-width: 0; }
.planner-card-body h2 { font-size: 1.1rem; margin: 0 0 .15rem; }
.planner-card-body p { margin: 0; }
.planner-card-sign { flex: 0 0 9rem; height: 3.6rem; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 8px; padding: .3rem; }
.planner-card-sign img { max-width: 100%; max-height: 100%; }
/* Planner pages use the full width of wide screens. */
.planner-reveal summary { cursor: pointer; color: var(--brand-text); font-weight: 600; }
.planner-reveal form { margin-top: .4rem; }
.planner-password { display: inline-block; margin-top: .35rem; font-size: 1.05rem; letter-spacing: .06em; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .2rem .55rem; }
.planner-mypassword { margin: 0 0 .6rem; }
.planner-mypassword code { display: inline-block; font-size: 1.5rem; font-weight: 700; letter-spacing: .1em; color: var(--brand-dark); background: var(--brand-tint); border-radius: 8px; padding: .35rem .9rem; }
.planner-live-frame.pdf .planner-live-inner { height: 100%; }
.planner-live-frame.pdf iframe { position: static; width: 100%; height: 100%; transform: none; }
.planner-savebar-static { margin-top: 1rem; }
.planner-risk { background: var(--bg); border-left: 3px solid var(--brand); border-radius: 6px; padding: .8rem 1rem .4rem; }
.planner-risk + .planner-risk { margin-top: .8rem; }
.planner-risk-head { display: flex; gap: 1rem; align-items: flex-start; }
.planner-risk-head .grow { flex: 1; }
.planner-remove { font-size: .85rem; font-weight: 600; color: var(--bad-ink); white-space: nowrap; margin-top: 1.4rem; display: flex; gap: .3rem; align-items: center; }
.planner-risk-grid { display: grid; grid-template-columns: 1fr; gap: 0 .8rem; }
@media (max-width: 700px) { .planner-risk-grid { grid-template-columns: 1fr; } }
.planner-scores { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 0 0 .8rem; font-size: .88rem; }
.planner-scores-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-text); min-width: 7.5rem; }
.planner-scores label { display: flex; gap: .3rem; align-items: center; font-weight: 600; margin: 0; }
.planner-scores select { width: auto; padding: .25rem .4rem; border: 1px solid #b9c4c0; border-radius: 6px; font: inherit; }
.planner-score { font-weight: 700; padding: .15rem .6rem; border-radius: 99px; border: 1px solid rgba(0,0,0,.15); }
.planner-score.low { background: #00ff00; } .planner-score.moderate { background: #ffff00; }
.planner-score.high { background: #ff9900; } .planner-score.very-high { background: #ff0000; color: #fff; }
.planner-library { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.planner-library h3 { margin: 0 0 .3rem; font-size: 1rem; }
.planner-library ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.planner-library li { padding: .35rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.planner-library li:first-child { border-top: 0; }
.planner-library label { display: inline-flex; gap: .45rem; align-items: center; font-weight: 400; margin: 0; }
.planner-editor input[type=text] { width: 100%; }
[data-add-risk] { margin-top: .8rem; }
.planner-remove-new { background: none; border: 0; font: inherit; font-size: .85rem; font-weight: 600; color: var(--bad-ink); cursor: pointer; margin-top: 1.4rem; }
.planner-remove-btn { background: #b42318; color: #fff; border: 0; border-radius: 6px; padding: .35rem .8rem; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; margin-top: 1.35rem; }
.planner-remove-btn:hover { background: #8f1b12; }
.planner-who > div { display: flex; flex-wrap: wrap; gap: .35rem; }
.planner-who > div > div label { display: inline-flex; gap: .35rem; align-items: center; margin: 0; padding: .25rem .65rem; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: .85rem; font-weight: 400; cursor: pointer; }
.planner-who > div > div label:has(input:checked) { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-dark); font-weight: 600; }
.planner-risk-grid .planner-who { grid-column: 1 / -1; }
.planner-light { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .7rem .2rem .45rem; border-radius: 99px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.planner-light i { width: .7rem; height: .7rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.planner-light.red { background: #fde4e2; color: #b42318; }
.planner-light.amber { background: #fff1d6; color: #a15c00; }
.planner-light.green { background: #dcf5e4; color: #157a3c; }
/* Event cards: the four document lights sit to the right of the event name, wrapping if needed. */
.planner-cards .planner-card-docs { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; align-items: center; }
@media (max-width: 800px) { .planner-cards .planner-card-docs { flex-basis: 100%; justify-content: flex-start; } }
.planner-help-card { padding: .8rem 1.2rem; margin-bottom: 1rem; }
.planner-split .planner-editor + .planner-editor, .planner-gap-top { margin-top: 1rem; }
table.planner-rows { width: 100%; border-collapse: collapse; }
table.planner-rows th { text-align: left; font-size: .78rem; color: var(--muted); padding: 0 .4rem .3rem 0; }
table.planner-rows td { padding: 0 .4rem .5rem 0; vertical-align: top; }
table.planner-rows input[type=text], table.planner-rows select { width: 100%; padding: .4rem .55rem; border: 1px solid #b9c4c0; border-radius: 6px; font: inherit; font-size: .92rem; }
.planner-remove-tick { font-size: .82rem; font-weight: 600; color: var(--bad-ink); white-space: nowrap; display: flex; gap: .3rem; align-items: center; margin-top: .45rem; }
.planner-plans { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.planner-plans li { display: flex; gap: .8rem; align-items: center; background: var(--bg); border-radius: 6px; padding: .5rem; }
.planner-plans img { width: 7rem; height: 5rem; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.planner-plans span { flex: 1; font-size: .9rem; }
.planner-plans form { margin: 0; }
.planner-plans .planner-remove-btn { margin-top: 0; }
.planner-upload input[type=file] { width: 100%; }
.hosp-sign-ui { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 3.6rem; height: 2.4rem; padding: 0 .5rem; border-radius: 8px; color: #fff; font-weight: 800; letter-spacing: .03em; border: 2px solid #fff; }
.hosp-sign-ui.ae { background: #c00000; }
.hosp-sign-ui.miu { background: #1f5fa8; }
.hosp-signs { display: inline-flex; gap: .35rem; flex: 0 0 auto; }
.hosp-sign-ui.small { min-width: 2.9rem; height: 1.7rem; font-size: .8rem; border-width: 0; border-radius: 6px; }
.hosp-units { list-style: none; margin: 0; padding: 0 1.1rem 1rem; display: grid; gap: .45rem; }
.hosp-units li { display: flex; align-items: center; gap: .75rem; padding: .5rem .65rem; border: 1px solid var(--border, #dde3e1); border-radius: 8px; }
.hosp-unit-text { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: baseline; }
.hosp-unit-text span { color: var(--muted, #5f6b68); font-size: .9rem; }

/* A PDF opened in its own portal page, with Download and Print */
.doc-view { padding: 0; overflow: hidden; }
.doc-view .planner-panel-head { flex-wrap: wrap; }
.doc-view-tools { display: flex; gap: .5rem; }
.doc-view-tools .btn { background: #fff; color: var(--brand-dark); }
.doc-view-frame { height: calc(100vh - 12rem); min-height: 28rem; background: #d9dedc; }
.doc-view-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.doc-view-alt { margin: 0; padding: .5rem 1.2rem; }
.planner-risk-grid.two { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

/* Dark mode switch, at the right of the top bar on every page: labelled, red when off, green when on. */
.theme-switch { flex: none; display: inline-flex; align-items: center; gap: .5rem; margin-left: .4rem; padding: .25rem .3rem .25rem .7rem;
  border-radius: 99px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font: inherit;
  font-size: .85rem; font-weight: 600; cursor: pointer; }
.theme-switch:hover { background: rgba(255,255,255,.18); }
.theme-switch:focus-visible { outline: 3px solid #ffc53d; outline-offset: 2px; }
.theme-switch-track { position: relative; width: 4.1rem; height: 1.9rem; border-radius: 99px; background: #e5383b;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.25); transition: background .25s; }
.theme-switch-knob { position: absolute; top: .2rem; left: .2rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .25s; }
.theme-switch-knob svg { width: 1.05rem; height: 1.05rem; }
.theme-switch .sun { fill: #f5a800; stroke: #f5a800; }
.theme-switch .moon { display: none; fill: #15803d; }
.theme-switch-state { position: absolute; top: 50%; transform: translateY(-42%); font-size: .68rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; line-height: 1; }
.theme-switch-state.off { right: .45rem; color: #fff; }
.theme-switch-state.on { left: .5rem; color: #fff; display: none; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
html[data-theme="dark"] .theme-switch-track { background: #22c55e; }
html[data-theme="dark"] .theme-switch-knob { transform: translateX(2.2rem); }
html[data-theme="dark"] .theme-switch .sun, html[data-theme="dark"] .theme-switch-state.off { display: none; }
html[data-theme="dark"] .theme-switch .moon, html[data-theme="dark"] .theme-switch-state.on { display: block; }
/* Phones: the switch sits small at the top right beside the logo; the menu goes on the row below. */
@media (max-width: 760px) {
  .theme-switch { order: 2; margin-left: auto; padding: 0; border: 0; background: none; }
  .theme-switch:hover { background: none; }
  .theme-switch-label { display: none; }
  .theme-switch-track { width: 3.3rem; height: 1.6rem; }
  .theme-switch-knob { width: 1.2rem; height: 1.2rem; }
  .theme-switch-knob svg { width: .85rem; height: .85rem; }
  html[data-theme="dark"] .theme-switch-knob { transform: translateX(1.7rem); }
  .theme-switch-state { font-size: .6rem; }
  .theme-switch-state.off { right: .4rem; } .theme-switch-state.on { left: .4rem; }
  .header-inner > .brand { order: 1; min-width: 0; }
  .header-inner > .nav { order: 3; flex-basis: 100%; justify-content: flex-end; }
}
@media (max-width: 420px) { .brand img { height: 32px; } .brand { gap: .45rem; font-size: .92rem; white-space: normal; line-height: 1.15; flex: 1 1 0; } .brand .tag { white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { .theme-switch-track, .theme-switch-knob { transition: none; } }

/* Row cards: the tidy list style for staff lists. One compact card per item, brand stripe on the left,
   an optional date block, the main text, then status and buttons on the right (below it on phones). */
.row-cards { display: grid; gap: .55rem; margin-bottom: 1rem; }
.row-cards > .card.row-card { margin: 0; }
.row-card { display: flex; align-items: center; gap: 1rem; margin: 0; padding: .75rem 1rem; border-left: 4px solid var(--brand); }
.row-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.07); }
.row-card.amber { border-left-color: #e0a526; }
.row-card.grey { border-left-color: #a3ada9; }
.row-card.red { border-left-color: #d9534f; }
.row-card-date { flex: 0 0 3.4rem; text-align: center; background: var(--brand); color: #fff; border-radius: 8px; padding: .3rem .2rem; line-height: 1.1; }
.row-card-date strong { display: block; font-size: 1.3rem; }
.row-card-date span { font-size: .66rem; font-weight: 600; text-transform: uppercase; }
.row-card-date.none span { font-size: .7rem; }
.row-card-main { flex: 1 1 auto; min-width: 0; }
.row-card-main h2 { font-size: 1.02rem; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.row-card-main h2 a { text-decoration: none; font-weight: 700; color: var(--brand-dark); }
.row-card-main h2 a:hover { text-decoration: underline; }
.row-card-sub { margin: .1rem 0 0; font-size: .9rem; color: var(--muted); }
.row-card-facts { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: .4rem 0 0; font-size: .86rem; line-height: 1.35; }
.row-card-facts > div { min-width: 0; overflow-wrap: anywhere; }
.row-card-facts dt { display: inline; margin-right: .3rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-text); }
.row-card-facts dd { display: inline; margin: 0; }
.row-card-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; text-align: right; max-width: 45%; }
.row-card-badges { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.row-card-actions { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.row-card-actions form { margin: 0; }
.row-card-note { margin: .4rem 0 0; font-size: .86rem; color: var(--muted); }
.row-cards.inset { gap: 0; margin: 0; }
.row-cards.inset .row-card { border-width: 0 0 1px; border-radius: 0; border-color: var(--line); box-shadow: none; padding: .8rem 1.1rem; }
.row-cards.inset .row-card:last-child { border-bottom: 0; }
.row-card .interest-status { min-width: 15rem; text-align: left; }
.row-count { margin: 0 0 .6rem; }
@media (max-width: 640px) {
  .row-card { flex-wrap: wrap; align-items: flex-start; gap: .6rem .8rem; }
  .row-card-main { flex: 1 1 calc(100% - 4.4rem); }
  .row-card-side { flex: 1 1 100%; max-width: none; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; }
  .row-card-badges, .row-card-actions { justify-content: flex-start; }
  .row-card .interest-status { min-width: 0; width: 100%; }
}


/* Dark mode: screen only, so printing always comes out on white paper. Bars and buttons keep the deep
   GMG green (white text stays readable); green text turns lighter so it shows on dark boxes. */
@media screen {
  html[data-theme="dark"] {
    color-scheme: dark;
    --brand: #2a7a61;
    --brand-dark: #a3dcc7;
    --brand-tint: #1f3b33;
    --brand-text: #74d1af;
    --ink: #e4ebe8;
    --muted: #9fb0aa;
    --line: #34423e;
    --bg: #121816;
    --card: #1b2320;
    --field: #141b19;
    --warn-bg: #3d3110; --warn-ink: #f3d27a;
    --ok-bg: #173a27;   --ok-ink: #8fe0ad;
    --bad-bg: #44201d;  --bad-ink: #f4a69d;
    --grey-bg: #2a3331; --grey-ink: #c3cdca;
  }
  html[data-theme="dark"] .site-header { background: #1d4a3d; }
  html[data-theme="dark"] .site-header.staff { background: #18241f; }
  html[data-theme="dark"] .btn:hover { background: #1f5a48; }
  html[data-theme="dark"] .assess-hero, html[data-theme="dark"] .assess-cta { background: linear-gradient(135deg, #1c4d3e, #2a7a61); }
  /* White chips on green bars keep dark green text. */
  html[data-theme="dark"] .assess-cta .btn.assess-cta-main, html[data-theme="dark"] .card > .section-title:first-child .assess-tools .btn,
  html[data-theme="dark"] .planner-card-date, html[data-theme="dark"] .doc-view-tools .btn, html[data-theme="dark"] .assess-gets span,
  html[data-theme="dark"] .form-section h2 .num, html[data-theme="dark"] .btn.planner-head-btn { background: #fff; color: #1c4d3e; }
  /* Boxes and fields that were plain white. */
  html[data-theme="dark"] .btn.secondary, html[data-theme="dark"] .btn.danger, html[data-theme="dark"] .tabs a:not(.active),
  html[data-theme="dark"] .planner-jump a, html[data-theme="dark"] .planner-formbar, html[data-theme="dark"] .session-person,
  html[data-theme="dark"] .planner-password, html[data-theme="dark"] .course-thumb, html[data-theme="dark"] .plan-logo { background: var(--card); }
  html[data-theme="dark"] .btn.secondary:hover { background: var(--brand-tint); }
  html[data-theme="dark"] .btn.danger { border-color: #7a3b35; }
  html[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]),
  html[data-theme="dark"] select, html[data-theme="dark"] textarea,
  html[data-theme="dark"] .planner-editor textarea:focus { background: var(--field); color: var(--ink); border-color: #3e4d49; }
  html[data-theme="dark"] th, html[data-theme="dark"] tfoot td, html[data-theme="dark"] tfoot th,
  html[data-theme="dark"] .person, html[data-theme="dark"] .cal-date { background: #202a27; }
  html[data-theme="dark"] .assess-tick, html[data-theme="dark"] .assess-box, html[data-theme="dark"] .plan-box { background: var(--field); }
  html[data-theme="dark"] .badge.quoted, html[data-theme="dark"] .badge.pay-deposit_paid { background: #1e3350; color: #a9cbf2; }
  html[data-theme="dark"] .service-picks label:has(input:checked) { background: #1f3b26; }
  html[data-theme="dark"] .planner-light.red { background: #44201d; color: #f4a69d; }
  html[data-theme="dark"] .planner-light.amber { background: #3d3110; color: #f3d27a; }
  html[data-theme="dark"] .planner-light.green { background: #173a27; color: #8fe0ad; }
  /* Certificates stay black on white like paper. */
  html[data-theme="dark"] .certificate { color: #1d2523; --ink: #1d2523; --muted: #5b6763; --brand: #276955; --brand-text: #276955; --line: #d9e0dd; }
}

/* Public course list: open suites with green bars and wide cards (cover left, green head right). */
.course-suite { margin: 0 0 1.6rem; }
.course-suite-bar { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; flex-wrap: wrap;
  background: var(--brand); color: #fff; border-radius: var(--radius); padding: .6rem 1rem; margin: 0 0 .9rem; font-size: 1.05rem; }
.course-suite-bar .small { font-weight: 500; opacity: .85; }
.course-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
/* The cover column never grows past 240px, so a card alone on a row doesn't get a giant photo and an empty gap. */
.course-wide { display: grid; grid-template-columns: clamp(120px, 38%, 240px) 1fr; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; }
.course-wide.no-cover { grid-template-columns: 1fr; }
/* The whole cover always shows at its own shape (A4 portrait); never cropped. */
.course-wide-cover { display: flex; align-items: flex-end; justify-content: center; background: #fff; }  /* spare height goes above: the cover top is white */
.course-wide-cover img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 1131; object-fit: contain; }
.course-wide-main { display: flex; flex-direction: column; min-width: 0; }
.course-wide-head { margin: 0; background: var(--brand); padding: .6rem .9rem; font-size: 1rem; line-height: 1.3; text-wrap: balance; }
.course-wide-head a { color: #fff; text-decoration: none; }
.course-wide-head a:hover { text-decoration: underline; }
.course-wide-body { display: flex; flex-direction: column; gap: .7rem; padding: .8rem .9rem .9rem; flex: 1; }
.course-wide-body > p { margin: 0; font-size: .9rem; flex: 1; }
.course-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: 0; }
.course-tiles > div { background: var(--brand-tint); border-left: 3px solid var(--brand); border-radius: 6px; padding: .3rem .5rem; min-width: 0; }
.course-tiles dt { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); }
.course-tiles dd { margin: 0; font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.course-tiles dd s, .course-tiles dd .now { white-space: nowrap; }
.course-wide-btns { display: flex; gap: .5rem; }
.course-wide-btns .btn { flex: 1; justify-content: center; text-align: center; }
/* Phones: the cover stays beside the name and summary; the facts and buttons run full width underneath. */
@media (max-width: 520px) {
  .course-wide { grid-template-columns: 112px 1fr; }
  .course-wide-main { display: contents; }
  .course-wide-cover { grid-row: 1 / span 2; align-items: flex-start; }
  .course-wide-head { grid-column: 2; font-size: .92rem; }
  .course-wide-body { display: contents; }
  .course-wide-body > p { grid-column: 2; padding: .6rem .8rem 0; font-size: .85rem; }
  .course-wide-main > .offer-strip { grid-column: 2; }
  .course-wide.on-offer .course-wide-cover { grid-row: 1 / span 3; }
  .course-wide.no-cover .course-wide-head, .course-wide.no-cover .course-wide-body > p,
  .course-wide.no-cover .course-wide-main > .offer-strip { grid-column: 1 / -1; }
  .course-tiles, .course-wide-btns { grid-column: 1 / -1; margin: .6rem .8rem 0; }
  .course-wide-btns { margin-bottom: .8rem; }
}


/* Course page (option C): reading on the left, a booking panel on the right that stays in view. */
.course-page-main { display: grid; gap: 1.2rem; min-width: 0; }
.course-page-title h1 { margin: 0; }
.course-page-title p { margin: .3rem 0 0; }
.course-about p { margin: 0 0 .8rem; }
.course-about-sub { margin: 1rem 0 .55rem; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-text); }
.course-ticks { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .45rem 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.course-ticks li { position: relative; padding-left: 1.6rem; }
.course-ticks li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--brand); }
.course-ticks li::after { content: ""; position: absolute; left: .36rem; top: .38rem; width: .3rem; height: .55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.course-side { position: sticky; top: calc(var(--top-h, 0px) + 1rem); padding: 0; overflow: hidden; }
.course-side-cover { display: block; width: 100%; height: auto; aspect-ratio: 800 / 1131; background: #fff; }
.course-side-body { display: grid; gap: .8rem; padding: 1rem 1.1rem 1.2rem; }
.course-side-body p { margin: 0; }
.course-side-price { font-size: 1.9rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.course-side-price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.course-side-facts { display: grid; gap: .7rem; }
.course-fact { display: grid; grid-template-columns: 2.2rem 1fr; gap: .7rem; align-items: start; }
.course-fact svg { width: 2.1rem; height: 2.1rem; fill: none; stroke: var(--brand-text); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.course-fact strong { display: block; }
.course-fact span { font-size: .88rem; color: var(--muted); }
.course-side-btn { justify-content: center; text-align: center; }
@media (max-width: 800px) { .course-side { position: static; } .course-side-cover { max-width: 16rem; margin: 1rem auto 0; border: 1px solid var(--line); border-radius: 6px; } }

/* Home page services (option A): the service name in a green bar above each photo. */
.service-card .service-bar { margin: 0; background: var(--brand); color: #fff; font-size: 1.08rem; padding: .7rem 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.service-card .soon-badge { background: #e3a21a; color: #2d1f00; font-size: .75rem; font-weight: 700; white-space: nowrap; }

/* Course page sizing: a readable page width and a fixed-width booking panel, so the cover never grows huge. */
.two-col.course-page { grid-template-columns: minmax(0, 1fr) 360px; gap: 1.6rem; }  /* full page width, as on every page; the panel stays a fixed size */
.course-page-title h1 { font-size: 1.7rem; line-height: 1.25; text-wrap: balance; }
.course-page .course-about { font-size: .97rem; }
.course-side-price { font-size: 1.6rem; }
@media (max-width: 800px) { .two-col.course-page { grid-template-columns: 1fr; } }


/* Course page key facts (option B): slim tiles, then the full "Who can attend" card. */
.course-key-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.course-key { display: grid; grid-template-columns: 2.1rem 1fr; gap: .7rem; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: 8px; padding: .7rem .9rem; min-width: 0; }
.course-key svg { width: 2rem; height: 2rem; fill: none; stroke: var(--brand-text); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.course-key span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); }
.course-key strong { font-size: 1.05rem; }
.course-who > h2 { display: flex; align-items: center; gap: .6rem; }
.course-who .card-h-icon { width: 1.3rem; height: 1.3rem; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.course-who p { margin: 0; }
@media (max-width: 700px) { .course-key-facts { grid-template-columns: 1fr; } }

/* Filter buttons with counts above the customer and staff lists */
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .9rem; }
.filter-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .45rem 1rem; border: 1px solid var(--line, #d9e0dd);
  border-radius: 999px; background: var(--card, #fff); color: var(--ink, #1d2523); font-weight: 600; text-decoration: none; }
.filter-pill span { font-weight: 500; color: var(--muted, #5b6763); }
.filter-pill:hover { border-color: var(--brand, #276955); }
.filter-pill.active { background: var(--brand, #276955); border-color: var(--brand, #276955); color: #fff; }
.filter-pill.active span { color: #fff; }

/* References page: folding years > months > days */
.ref-year, .ref-month, .ref-day { margin: 0 0 .6rem; }
.ref-year > summary, .ref-month > summary, .ref-day > summary { display: flex; align-items: center; gap: .6rem; cursor: pointer;
  list-style: none; border-radius: 8px; font-weight: 700; }
.ref-year > summary::-webkit-details-marker, .ref-month > summary::-webkit-details-marker, .ref-day > summary::-webkit-details-marker { display: none; }
.ref-year > summary::before, .ref-month > summary::before, .ref-day > summary::before { content: "\25B8"; transition: transform .15s; }
.ref-year[open] > summary::before, .ref-month[open] > summary::before, .ref-day[open] > summary::before { transform: rotate(90deg); }
.ref-year > summary { background: var(--brand); color: #fff; padding: .7rem 1rem; font-size: 1.2rem; }
.ref-month { margin-left: .75rem; }
.ref-year > .ref-month:first-of-type { margin-top: .6rem; }
.ref-month > summary { background: var(--brand-tint); color: var(--brand-text); padding: .55rem 1rem; border: 1px solid var(--line); }
.ref-day { margin-left: .75rem; }
.ref-day > summary { padding: .45rem .5rem; color: var(--ink); font-weight: 600; }
.ref-count { margin-left: auto; font-size: .85rem; font-weight: 600; padding: .1rem .6rem; border-radius: 999px;
  background: rgba(0,0,0,.08); }
.ref-year > summary .ref-count { background: rgba(255,255,255,.2); }
.ref-day > .row-cards { margin-left: .5rem; }

/* Message bar (Admin > Message bar): pinned to the top of every page. Colours come from the settings. */
.message-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: .75rem;
  padding: .55rem var(--page-gutter); font-weight: 600; line-height: 1.35; overflow: hidden; min-width: 0; }
.message-bar a { color: inherit; text-decoration: underline; white-space: nowrap; }
.message-bar .mb-text { min-width: 0; }
.message-bar.mb-plain { text-align: center; }
.message-bar.mb-label, .message-bar.mb-ticker, .message-bar.mb-slim { justify-content: flex-start; }
.message-bar .mb-label { flex: none; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .6rem;
  border-radius: 999px; background: color-mix(in srgb, currentColor 18%, transparent); }
.message-bar .mb-icon { flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .8rem; font-family: Georgia, serif; background: color-mix(in srgb, currentColor 22%, transparent); }
.message-bar.mb-slim { padding-block: .3rem; font-weight: 500; }
.message-bar.mb-size-small { font-size: .85rem; }
.message-bar.mb-size-normal { font-size: 1rem; }
.message-bar.mb-size-large { font-size: 1.2rem; }
.message-bar.mb-font-serif { font-family: Georgia, "Times New Roman", serif; }
.message-bar.mb-font-rounded { font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif; }
.message-bar.mb-font-condensed { font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif; font-stretch: condensed;
  font-weight: 800; letter-spacing: .01em; }
/* Scrolling: the message runs right to left; still for anyone who has asked their device for less motion. */
.message-bar.mb-scroll .mb-text { flex: 1; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); }
.message-bar.mb-scroll .mb-run { display: inline-block; white-space: nowrap; padding-left: 100%; animation: mb-run 24s linear infinite; }
.message-bar.mb-scroll.mb-speed-slow .mb-run { animation-duration: 36s; }
.message-bar.mb-scroll.mb-speed-fast .mb-run { animation-duration: 14s; }
.message-bar.mb-scroll:hover .mb-run, .message-bar.mb-scroll:focus-within .mb-run { animation-play-state: paused; }
@keyframes mb-run { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .message-bar.mb-scroll .mb-run { animation: none; padding-left: 0; white-space: normal; }
  .message-bar.mb-scroll .mb-text { mask-image: none; }
}
/* Panels that stick while scrolling sit just below the bar. */
.has-message-bar .course-side, .has-message-bar .planner-live { top: calc(1rem + var(--message-bar-height, 2.6rem)); }
@media print { .message-bar { display: none !important; } }
/* Admin page for the bar */
.mb-admin .mb-preview { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mb-admin .mb-preview .message-bar { position: static; }
.mb-admin .mb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 1rem; }
.mb-admin .mb-styles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .5rem; margin: 0; padding: 0; border: 0; }
.mb-admin .mb-styles label { display: flex; gap: .5rem; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; cursor: pointer; font-weight: 600; }
.mb-admin .mb-styles label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.mb-admin .mb-swatches { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.mb-admin .mb-swatch { width: 2rem; height: 2rem; border-radius: 6px; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.mb-admin input[type=color] { width: 3rem; height: 2.2rem; padding: .1rem; }
.mb-admin .mb-state { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.mb-admin .mb-state::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--muted); }
.mb-admin .mb-state.showing::before { background: #2e9d5b; }
.mb-admin .mb-state.waiting::before { background: #e0a100; }
.mb-admin .field > .label { display: block; font-weight: 600; margin-bottom: .35rem; }
.mb-admin { display: grid; gap: 1rem; }
.mb-admin .checkbox { display: flex; gap: .6rem; align-items: center; min-height: 2.6rem; }
.mb-admin .checkbox label { font-weight: 400; margin: 0; }
.mb-admin .checkbox input { width: auto; }

/* Course discounts: red strip under the course name, old price crossed out, new price in red */
:root { --offer: #c62828; --offer-text: #b71c1c; --offer-tint: #fdecec; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --offer: #d32f2f; --offer-text: #ff8a80; --offer-tint: #3a1d1d; } }
:root[data-theme="dark"] { --offer: #d32f2f; --offer-text: #ff8a80; --offer-tint: #3a1d1d; }
.offer-strip { margin: 0; background: var(--offer); color: #fff; font-size: .9rem; padding: .4rem 1rem;
  display: flex; justify-content: space-between; align-items: baseline; gap: .25rem .75rem; flex-wrap: wrap; }
.offer-strip strong { font-weight: 700; }
.offer-strip span { opacity: .95; }
.offer-strip.long { padding: .55rem 1rem; }
.now { color: var(--offer-text); font-weight: 700; }
s { color: var(--muted); font-weight: 400; }
.course-tiles .offer-price { background: var(--offer-tint); border-left-color: var(--offer); }
.course-tiles .offer-price dt { color: var(--offer-text); }
.course-tiles .offer-price s { font-size: .85em; }
.course-side-price s { font-size: .65em; }
.badge.offer { background: var(--offer); color: #fff; }
.offer-notice { border-left: 5px solid var(--offer); }
/* Staff discount page */
.discount-form { display: grid; gap: 1rem; }
.discount-form .field > .label { display: block; font-weight: 600; margin-bottom: .35rem; }
.discount-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 1rem; }
.seg-radio { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg-radio label { display: flex; align-items: center; cursor: pointer; margin: 0; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio span { padding: .5rem 1.1rem; font-weight: 600; }
.seg-radio input:checked + span { background: var(--brand); color: #fff; }
.seg-radio input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: -3px; }
.discount-result { margin: 0; font-size: 1.05rem; background: var(--brand-tint); padding: .6rem .8rem; border-radius: 8px; }
.discount-courses { border: 0; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: .4rem 1rem; }
.discount-courses legend { font-weight: 700; color: var(--brand-text); margin-bottom: .4rem; }
.discount-courses label { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; margin: 0; }
.discount-courses input { margin-top: .3rem; width: auto; }

/* Admin tool pages (message bar, course discounts): settings on the left, preview and save on the right */
.tool-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.25rem; align-items: start; }
.tool-main { display: grid; gap: 1rem; min-width: 0; }
.tool-side { position: sticky; top: calc(1rem + var(--top-h, 0px)); display: grid; gap: 1rem; min-width: 0; }
@media (max-width: 960px) { .tool-page { grid-template-columns: 1fr; } .tool-side { position: static; } }
.tool-card { display: grid; gap: .9rem; margin: 0; }
.tool-card > h2 { margin-bottom: 0; }
.tool-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .9rem 1rem; align-items: start; }
.tool-field { display: grid; gap: .3rem; min-width: 0; margin: 0; }
.tool-field > label { font-weight: 600; margin: 0; }
.tool-field select, .tool-field input:not([type=checkbox]):not([type=radio]):not([type=color]), .tool-field textarea { width: 100%; min-width: 0; }
.tool-field .help { margin: 0; }
.tool-other { display: grid; gap: .3rem; }
.tool-other input[type=color], .tool-field input[type=color] { width: 100%; height: 2.5rem; padding: .15rem; border-radius: 8px; }
.tool-wrap[hidden] { display: none; }
.tool-switch { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.tool-switch input { width: 1.2rem; height: 1.2rem; accent-color: var(--brand); margin: 0; }
.tool-switch label { margin: 0; }
.tool-status { margin: 0; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.tool-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.tool-actions .btn { flex: 1; justify-content: center; }
.tool-summary { margin: 0; background: var(--brand-tint); border-radius: 8px; padding: .75rem .9rem; font-size: 1rem; line-height: 1.45; }
/* Course discounts: the course picker */
.pick-count { margin-left: auto; font-size: .85rem; font-weight: 600; background: rgba(255,255,255,.2); border-radius: 999px; padding: .1rem .6rem; }
.tool-card > h2 { display: flex; align-items: center; gap: .5rem; }
.pick-tools { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.pick-tools input[type=search] { flex: 1 1 240px; min-width: 0; }
.pick-suite { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pick-suite[hidden] { display: none; }
.pick-suite > summary { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; background: var(--brand-tint);
  color: var(--brand-text); font-weight: 700; cursor: pointer; list-style: none; }
.pick-suite > summary::-webkit-details-marker { display: none; }
.pick-suite > summary::after { content: "\25BE"; margin-left: .2rem; transition: transform .15s; }
.pick-suite:not([open]) > summary::after { transform: rotate(-90deg); }
.pick-suite > summary .muted { margin-left: auto; }
.pick-suite-all { display: flex; margin: 0; }
.pick-list { list-style: none; margin: 0; padding: 0; }
.pick-list li[hidden] { display: none; }
.pick-list li + li { border-top: 1px solid var(--line); }
.pick-list label { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; margin: 0; font-weight: 400; cursor: pointer; }
.pick-list label:hover { background: var(--bg); }
.pick-list label:has(input:checked) { background: var(--brand-tint); }
.pick-list input, .pick-suite-all input { width: 1.15rem; height: 1.15rem; accent-color: var(--brand); margin: 0; flex: none; }
.pick-title { flex: 1; min-width: 0; }
.pick-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.pick-price { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 4.5rem; text-align: right; }
.discount-page .tool-side .discount-row { grid-template-columns: 1fr 1fr; }
.tool-field[hidden] { display: none; }
/* Message bar page: everything in one column, the preview full width at the bottom */
.tool-page.tool-page-stacked { grid-template-columns: minmax(0, 1fr); }
.tool-bottom { display: grid; gap: 1rem; min-width: 0; }
.tool-bottom .tool-actions { max-width: 420px; }
/* Course discounts: each ticked course's price now and with the discount */
.price-preview { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.price-preview-head, .price-preview li { display: grid; grid-template-columns: minmax(0, 1fr) 4.6rem 6.2rem; gap: .5rem; align-items: baseline; padding: .45rem .7rem; }
.price-preview-head { background: var(--brand-tint); color: var(--brand-text); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.price-preview-head span:not(:first-child), .pp-was, .pp-now { text-align: right; font-variant-numeric: tabular-nums; }
.price-preview ul { list-style: none; margin: 0; padding: 0; max-height: 22rem; overflow-y: auto; }
.price-preview li + li { border-top: 1px solid var(--line); }
.pp-title { font-size: .88rem; min-width: 0; overflow-wrap: anywhere; }
.pp-was { color: var(--muted); text-decoration: line-through; font-size: .88rem; }
.pp-now { color: var(--offer-text); font-weight: 700; }
.pp-now.pp-bad { color: var(--offer-text); font-weight: 600; font-size: .8rem; }
.price-preview > p { margin: 0; padding: .6rem .7rem; }
.tool-page.discount-page { grid-template-columns: minmax(0, 1fr) 460px; } @media (max-width: 1100px) { .tool-page.discount-page { grid-template-columns: 1fr; } .discount-page .tool-side { position: static; } }
/* Request a place: discount code and gift card boxes */
.code-boxes { border: 1px dashed var(--line); border-radius: 10px; padding: .8rem 1rem; margin: 0 0 1rem; }
.code-boxes legend { font-weight: 700; padding: 0 .3rem; }
.code-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 1rem; }
.code-row input { text-transform: uppercase; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.code-boxes .help { margin: 0; }
/* Courses page: email sign-up and gift card cards */
.promo-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1rem; margin-top: 2.2rem; }
.promo-card { display: grid; gap: .5rem; align-content: start; margin: 0; }
.promo-card p { margin: 0; }
.promo-card > .btn { justify-self: start; }
.promo-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.promo-form input[type=email] { flex: 1 1 220px; min-width: 0; }
/* Offers, codes and gift cards (staff) */
.promo-tabs { margin-bottom: 1rem; }
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .03em; }
.codes-table td { vertical-align: top; }
.code-courses { max-height: 16rem; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; display: grid; gap: .25rem; }
.code-courses label { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; margin: 0; font-size: .9rem; }
.code-courses input { width: auto; margin-top: .25rem; }
.code-courses-head { margin: .4rem 0 0; font-weight: 700; color: var(--brand-text); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.code-courses-head:first-child { margin-top: 0; }
.gift-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .75rem 0; border-top: 1px solid var(--line); }
.gift-row:first-of-type { border-top: 0; padding-top: 0; }
.gift-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.gift-actions form { display: flex; gap: .4rem; flex-wrap: wrap; }
.tool-page.codes-page, .tool-page.gifts-page { grid-template-columns: minmax(0, 1fr) 440px; }
@media (max-width: 1100px) { .tool-page.codes-page, .tool-page.gifts-page { grid-template-columns: 1fr; } .codes-page .tool-side, .gifts-page .tool-side { position: static; } }
.tool-other-label { font-size: .85rem; font-weight: 600; color: var(--muted); margin: 0; }
.promo-band > .card { margin: 0; }
.code-form .discount-row { grid-template-columns: 1fr 1fr; }
.tool-page.signups-page { grid-template-columns: minmax(0, 1fr) 400px; }
@media (max-width: 1100px) { .tool-page.signups-page { grid-template-columns: 1fr; } .signups-page .tool-side { position: static; } }
.signup-stats { margin: 0; }
.signup-send-all { margin: 0; }
.row-buttons { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.signups-page .discount-row { grid-template-columns: 1fr 1fr; }

/* Customer view switch (staff only), beside Dark mode and built the same way: off = staff view, on = customer view. */
.view-switch { text-decoration: none; }
.view-switch:hover { text-decoration: none; }
.view-track { position: relative; width: 4.1rem; height: 1.9rem; border-radius: 99px; background: #e5383b;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }
.view-knob { position: absolute; top: .2rem; left: .2rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.view-knob svg { width: 1rem; height: 1rem; fill: #5b6763; }
.view-state { position: absolute; top: 50%; transform: translateY(-42%); font-size: .68rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; line-height: 1; color: #fff; }
.view-state.off { right: .45rem; }
.view-state.on { left: .5rem; display: none; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
.view-switch.is-on .view-track { background: #22c55e; }
.view-switch.is-on .view-knob { transform: translateX(2.2rem); }
.view-switch.is-on .view-knob svg { fill: #15803d; }
.view-switch.is-on .view-state.off { display: none; }
.view-switch.is-on .view-state.on { display: block; }
@media (max-width: 760px) {
  .view-switch { margin-left: auto; }
  .view-switch + .theme-switch { margin-left: .3rem; }
  .view-track { width: 3.3rem; height: 1.6rem; }
  .view-knob { width: 1.2rem; height: 1.2rem; }
  .view-knob svg { width: .8rem; height: .8rem; }
  .view-switch.is-on .view-knob { transform: translateX(1.7rem); }
  .view-state { font-size: .6rem; }
  .view-state.off { right: .4rem; } .view-state.on { left: .4rem; }
}
/* Courses page: each suite folds away from its green bar (all open to start) */
summary.course-suite-bar { cursor: pointer; list-style: none; }
summary.course-suite-bar::-webkit-details-marker { display: none; }
summary.course-suite-bar > span:first-child::before { content: "\25BE"; display: inline-block; margin-right: .5rem; transition: transform .15s; }
details.course-suite:not([open]) > summary.course-suite-bar > span:first-child::before { transform: rotate(-90deg); }
details.course-suite:not([open]) > summary.course-suite-bar { margin-bottom: 0; }

/* Staff Overview (option G): three solid red/amber/green counters, then a green bar card per service with striped rows. */
:root { --rag-red: #dc3b3b; --rag-amber: #f2a900; --rag-green: #1fa463; }
.ov-counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 0 0 1.25rem; }
@media (max-width: 760px) { .ov-counters { grid-template-columns: 1fr; } }
.ov-counter { border-radius: var(--radius); padding: .95rem 1.15rem; color: #fff; display: flex; align-items: center; gap: 1rem; }
.ov-counter b { font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ov-counter span { font-weight: 700; line-height: 1.25; font-size: 1.02rem; }
.ov-counter small { display: block; font-weight: 400; opacity: .92; font-size: .86rem; }
.ov-counter.r { background: var(--rag-red); }
.ov-counter.a { background: var(--rag-amber); color: #2b1d00; }
.ov-counter.g { background: var(--rag-green); }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.ov-card { padding: 0; overflow: hidden; margin: 0; }
.card.ov-card > h2 { display: flex; align-items: center; gap: .6rem; margin: 0; }
.ov-card > h2 a { color: inherit; text-decoration: none; }
.ov-card > h2 a:hover { text-decoration: underline; }
.ov-lights { margin-left: auto; display: inline-flex; gap: .35rem; }
.ov-lite { font-size: .78rem; font-weight: 800; line-height: 1; padding: .3rem .55rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.ov-lite.r { background: var(--rag-red); color: #fff; }
.ov-lite.a { background: var(--rag-amber); color: #2b1d00; }
.ov-lite.g { background: var(--rag-green); color: #fff; }
.ov-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 5.5rem; gap: .9rem; align-items: center; padding: .7rem 1rem;
  border-top: 1px solid var(--line); border-left: 6px solid transparent; color: var(--ink); text-decoration: none; }
.ov-row:first-child { border-top: 0; }
.ov-row:hover { background: var(--bg); }
.ov-row.r { border-left-color: var(--rag-red); }
.ov-row.a { border-left-color: var(--rag-amber); }
.ov-row.g { border-left-color: var(--rag-green); }
.ov-what { min-width: 0; }
.ov-what small { display: block; color: var(--muted); font-size: .84rem; }
.ov-row strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.ov-go { justify-self: end; font-size: .84rem; font-weight: 700; color: #fff; background: var(--brand); border-radius: 8px; padding: .32rem .8rem; white-space: nowrap; }
.ov-go.quiet { background: transparent; color: var(--brand-text); border: 1px solid var(--line); font-weight: 600; }
/* Small red counts inside the staff menu items */
.nav-count { display: inline-block; margin-left: .35rem; font-size: .72rem; font-weight: 800; line-height: 1; padding: .22rem .42rem;
  border-radius: 6px; background: var(--rag-red); color: #fff; vertical-align: .08em; font-variant-numeric: tabular-nums; }
.ov-head { align-items: flex-end; }
.ov-when { margin: 0 0 0 auto; display: flex; align-items: baseline; gap: .7rem; color: var(--muted); }
.ov-clock { font-size: 1.5rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Top bar switches (Dark mode, Customer view): plain on/off, no red or green. Off: see-through track, knob left.
   On: white track, knob right in the portal green. */
.theme-switch-track, .view-track { background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
html[data-theme="dark"] .theme-switch-track, .view-switch.is-on .view-track { background: #fff; box-shadow: none; }
html[data-theme="dark"] .theme-switch-knob, .view-switch.is-on .view-knob { background: var(--brand, #276955); }
.theme-switch .sun, .theme-switch .moon { fill: #5b6763; stroke: #5b6763; }
html[data-theme="dark"] .theme-switch .moon { fill: #fff; stroke: #fff; }
.view-knob svg { fill: #5b6763; }
.view-switch.is-on .view-knob svg { fill: #fff; }
html[data-theme="dark"] .theme-switch-state.on, .view-switch.is-on .view-state.on { color: var(--brand, #276955); text-shadow: none; }
.ov-grid > .card + .card { margin-top: 0; }
/* Customer "Payments due" box: pale amber in light mode, dark amber in dark mode, always readable */
.card.payments-due { background: var(--warn-bg); border-color: #e9cf7a; color: var(--warn-ink); }
.card.payments-due li { color: var(--warn-ink); }
.card.payments-due a { color: inherit; font-weight: 600; }
html[data-theme="dark"] .card.payments-due { background: #33290f; border-color: #6b5520; color: #ffe2a0; }
html[data-theme="dark"] .card.payments-due li { color: #ffe2a0; }

/* Header: "Self Service Portal" in a rounded geometric face to match the GMG logo (Quicksand, SIL Open Font
   Licence, hosted here so no visitor details go to a font service). Staff badge in bright yellow. */
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/quicksand-latin-600-normal.af47dc24d34a.woff2") format("woff2"); }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/quicksand-latin-700-normal.1527e8240c1f.woff2") format("woff2"); }
.brand > span:not(.tag) { font-family: "Quicksand", "Nunito", "Segoe UI", system-ui, sans-serif; font-weight: 700;
  letter-spacing: .04em; font-size: 1.08rem; }
.brand .tag { font-family: "Quicksand", "Nunito", "Segoe UI", system-ui, sans-serif; font-weight: 700; letter-spacing: .04em; }
.site-header.staff .brand .tag { background: #ffd60a; color: #1d2523; }
/* Brand text sized to the logo: the capitals stand as tall as one line of "GMG / LTD" (logo 40px high), and the
   badge sits on the same line at a matching size. Smaller on phones. */
.brand { gap: .75rem; }
.brand > span:not(.tag) { font-size: 1.5rem; line-height: 1; letter-spacing: .05em; }
.brand .tag { font-size: 1rem; line-height: 1; padding: .3rem .75rem; border-radius: 999px; }
@media (max-width: 900px) { .brand > span:not(.tag) { font-size: 1.15rem; } .brand .tag { font-size: .8rem; padding: .2rem .55rem; } }
@media (max-width: 420px) { .brand > span:not(.tag) { font-size: .98rem; } }

/* Admin: audit trail (timeline by day) and alerts */
.audit-card { padding: 0; overflow: hidden; }
.card.audit-card > h2 { display: flex; align-items: center; gap: .6rem; margin: 0; }
.audit-download { margin-left: auto; color: #fff; font-size: .85rem; font-weight: 500; }
.audit-filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; padding: 1rem; align-items: end; }
@media (max-width: 860px) { .audit-filters { grid-template-columns: 1fr; } }
.audit-quick, .audit-kinds { grid-column: 1 / -1; display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; border: 0; margin: 0; padding: 0; }
.qb { border: 1px solid var(--line); border-radius: 8px; padding: .4rem .85rem; font-size: .88rem; font-weight: 600; background: var(--card); color: var(--ink); text-decoration: none; }
.qb.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.qb.clear { color: var(--muted); }
.audit-kind { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; font-size: .84rem; font-weight: 600; margin: 0; cursor: pointer; }
.audit-kind input { width: auto; margin: 0; accent-color: var(--brand); }
.audit-kind:has(input:checked) { background: var(--brand-tint); border-color: transparent; color: var(--brand-text); }
.audit-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 0 1rem 1rem; }
@media (max-width: 700px) { .audit-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.audit-summary div { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; }
.audit-summary dt { font-size: .8rem; color: var(--muted); }
.audit-summary dd { margin: 0; font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.audit-day { margin: 0; padding: .6rem 1rem .3rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); background: var(--bg); border-top: 1px solid var(--line); }
.audit-ev { display: grid; grid-template-columns: 3.6rem 7.6rem minmax(0, 1fr) auto; gap: .8rem; align-items: start; padding: .55rem 1rem; border-top: 1px solid var(--line); font-size: .93rem; }
@media (max-width: 700px) { .audit-ev { grid-template-columns: 3.4rem minmax(0, 1fr); } .audit-ev .audit-kind-tag { grid-column: 2; justify-self: start; } .audit-dev { grid-column: 2; text-align: left !important; } }
.audit-ev time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.audit-what small { display: block; color: var(--muted); }
.audit-dev { font-size: .8rem; color: var(--muted); text-align: right; white-space: nowrap; }
.audit-kind-tag { justify-self: start; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px; white-space: nowrap; }
.k-sign_in.audit-kind-tag { background: #e6effc; color: #1f56b3; }
.k-change.audit-kind-tag { background: var(--brand-tint); color: var(--brand-text); }
.k-money.audit-kind-tag { background: #fff5d9; color: #8a5d00; }
.k-warning.audit-kind-tag { background: #fdeaea; color: #b42323; }
.k-view.audit-kind-tag { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
html[data-theme="dark"] .k-sign_in.audit-kind-tag { background: #17263d; color: #9cc0ff; }
html[data-theme="dark"] .k-money.audit-kind-tag { background: #382c12; color: #ffd27a; }
html[data-theme="dark"] .k-warning.audit-kind-tag { background: #3a1c1c; color: #ff9b9b; }
.tool-page.alerts-page { grid-template-columns: minmax(0, 1fr) 460px; }
@media (max-width: 1100px) { .tool-page.alerts-page { grid-template-columns: 1fr; } .alerts-page .tool-side { position: static; } }
.alert-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .65rem .8rem; border-left: 6px solid var(--line); border-radius: 6px; background: var(--bg); }
.alert-row.r { border-left-color: var(--rag-red, #dc3b3b); }
.alert-row.a { border-left-color: var(--rag-amber, #f2a900); }
.alert-row.g { border-left-color: var(--rag-green, #1fa463); }
.alert-what small { display: block; color: var(--muted); }
.alert-rule { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem; gap: .6rem; align-items: center; padding: .45rem 0; border-top: 1px solid var(--line); }
.alert-rule:first-of-type { border-top: 0; }
.alert-rule .tool-switch { align-items: flex-start; font-weight: 400; }
.alert-rule .tool-switch input { margin-top: .2rem; }
.alert-rule small { display: block; color: var(--muted); font-size: .82rem; }
.alert-rule .tool-switch input { width: 1.15rem; height: 1.15rem; flex: none; }
.alerts-page .tool-field input { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; }

/* Account button (top right, everyone signed in): initials, name and role; click for My details and Sign out */
.account-menu { position: relative; flex: none; margin-left: .4rem; }
.account-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  padding: .2rem .75rem .2rem .2rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover { background: rgba(255,255,255,.18); }
.account-menu > summary:focus-visible { outline: 3px solid #ffc53d; outline-offset: 2px; }
.account-av { width: 2rem; height: 2rem; border-radius: 50%; background: #fff; color: #1c4d3e; display: grid; place-items: center;
  font-family: "Quicksand", "Nunito", system-ui, sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.account-name b { display: block; font-size: .86rem; line-height: 1.15; font-weight: 600; white-space: nowrap; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
.account-name small { display: block; font-size: .72rem; opacity: .85; line-height: 1.15; white-space: nowrap; }
.account-pop { position: absolute; right: 0; top: calc(100% + .45rem); z-index: 70; min-width: 240px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.18); overflow: hidden; }
.account-who { padding: .65rem .9rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.account-who b { display: block; }
.account-who small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.account-pop a, .account-pop button { display: block; width: 100%; text-align: left; padding: .6rem .9rem; color: var(--ink); text-decoration: none;
  background: none; border: 0; border-top: 1px solid var(--line); font: inherit; cursor: pointer; }
.account-pop a:first-of-type { border-top: 0; }
.account-pop a:hover, .account-pop button:hover { background: var(--brand-tint); }
.account-pop form { margin: 0; }
@media (max-width: 900px) { .account-name { display: none; } .account-menu > summary { padding: .2rem; } }

/* Signed-in home: greeting band with the next booking, then the person's own to-dos */
.greet-band { background: linear-gradient(135deg, #1c4d3e, var(--brand)); color: #fff; border-radius: 14px; padding: 1.4rem 1.5rem;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 1.2rem; align-items: center; margin-bottom: 1rem; }
@media (max-width: 820px) { .greet-band { grid-template-columns: 1fr; } }
.greet-band h1 { margin: 0; color: #fff; font-family: "Quicksand", "Nunito", system-ui, sans-serif; font-weight: 700; letter-spacing: .02em; font-size: 1.9rem; }
.greet-band p { margin: .35rem 0 0; opacity: .93; }
.greet-band .actions { margin-top: .9rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.greet-band .btn.light { background: #fff; color: #1c4d3e; }
.greet-band .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.greet-next { background: var(--card); color: var(--ink); border-radius: 12px; padding: .95rem 1.05rem; display: grid; gap: .35rem; text-decoration: none; }
.greet-next:hover { box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.greet-label { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-text); font-weight: 800; display: block; }
.greet-next strong { font-size: 1.08rem; }
.greet-meta { color: var(--muted); font-size: .88rem; }
.greet-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.greet-days { margin-left: auto; font-weight: 800; color: var(--brand-text); font-size: .92rem; }
.my-todos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
.my-todo { background: var(--card); border: 1px solid var(--line); border-left: 6px solid; border-radius: 10px; padding: .8rem .95rem; display: grid; gap: .3rem; align-content: start; }
.my-todo.r { border-left-color: var(--rag-red, #dc3b3b); }
.my-todo.a { border-left-color: var(--rag-amber, #f2a900); }
.my-todo.g { border-left-color: var(--rag-green, #1fa463); }
.my-todo span { color: var(--muted); font-size: .88rem; }
.my-todo .btn { justify-self: start; margin-top: .25rem; }
/* Staff: the trainer's next course to teach */
.my-teaching { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line);
  border-left: 6px solid var(--brand); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; }
.my-teaching .btn { margin-left: auto; }
.ov-head .muted { display: block; }

/* Pre-launch: coming-soon page (photo hero with the sign-up card), the early sign-up's home, the launch card */
.prelaunch-bar { background: #fff1c2; color: #6b4a00; text-align: center; padding: .35rem 1rem; font-size: .86rem; font-weight: 600; }
.prelaunch-bar a { color: inherit; }
html[data-theme="dark"] .prelaunch-bar { background: #3a2f12; color: #ffd27a; }
.cs-hero { position: relative; border-radius: 16px; overflow: hidden; min-height: 460px; display: grid; align-items: center; background: #0f2a22; margin-bottom: 1.2rem; }
.cs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,40,32,.95) 0%, rgba(18,56,45,.84) 48%, rgba(18,56,45,.3) 100%); }
.cs-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 1.8rem; align-items: center; padding: 2.4rem 2.2rem; color: #fff; }
@media (max-width: 860px) { .cs-in { grid-template-columns: 1fr; padding: 1.8rem 1.3rem; } .cs-hero::after { background: rgba(12,40,32,.88); } }
.cs-pill { display: inline-block; background: #ffd60a; color: #1d2523; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: .25rem .75rem; }
.cs-copy h1 { margin: .75rem 0 .55rem; color: #fff; font-family: "Quicksand", "Nunito", system-ui, sans-serif; font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: .01em; text-wrap: balance; }
.cs-copy p { margin: 0; font-size: 1.06rem; opacity: .95; max-width: 52ch; }
.cs-count { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.cs-count > span { background: rgba(255,255,255,.15); border-radius: 10px; padding: .55rem .85rem; text-align: center; min-width: 4.6rem; }
.cs-count b { display: block; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cs-count small { font-size: .72rem; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }
.cs-count .cs-when { text-align: left; min-width: auto; }
.cs-count .cs-when b { font-size: 1.02rem; margin-top: .15rem; }
.cs-trust { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; gap: .4rem 1.1rem; flex-wrap: wrap; font-size: .9rem; opacity: .93; }
.cs-trust li::before { content: "✓ "; color: #ffd60a; font-weight: 800; }
.cs-card { background: var(--card); color: var(--ink); border-radius: 14px; padding: 1.3rem 1.35rem; display: grid; gap: .65rem; box-shadow: 0 12px 36px rgba(0,0,0,.25); }
.cs-card h2 { margin: 0; font-size: 1.25rem; }
.cs-card p { margin: 0; }
.cs-big { justify-content: center; padding: .8rem 1rem; font-size: 1.05rem; }
.cs-small { font-size: .88rem; color: var(--muted); }
.cs-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
@media (max-width: 860px) { .cs-features { grid-template-columns: 1fr; } }
.cs-feat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: clamp(120px, 11vw, 210px) minmax(0, 1fr); align-content: start; }
/* Photos are square originals: show them whole, beside the list, so nothing is cropped. */
.cs-ph { display: contents; }
.cs-ph img { grid-column: 1; grid-row: 2; aspect-ratio: 1 / 1; height: auto !important; }
.cs-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-ph h3 { grid-column: 1 / -1; grid-row: 1; margin: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; font-size: 1.02rem; }
.cs-feat ul { grid-column: 2; grid-row: 2; align-self: center; margin: 0; padding: .8rem 1rem .8rem 2rem; display: grid; gap: .3rem; }
.cs-band { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.cs-band .btn { margin-left: auto; }
.pl-ready { gap: .45rem; }
.pl-check { display: flex; gap: .55rem; align-items: center; font-size: .94rem; }
.pl-check i { width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .75rem; font-weight: 800; background: var(--line); color: var(--muted); flex: none; }
.pl-check.done i { background: #1fa463; color: #fff; }
.pl-ready .btn { justify-self: start; margin-top: .3rem; }
.tool-page.launch-page { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 1000px) { .tool-page.launch-page { grid-template-columns: 1fr; } .launch-page .tool-side { position: static; } }
.launch-stats { margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.launch-when { font-size: 1.05rem !important; }
.launch-btn { background: #dc3b3b !important; border-color: #dc3b3b !important; color: #fff !important; }
.launch-confirm > summary { list-style: none; display: inline-flex; cursor: pointer; }
.launch-confirm > summary::-webkit-details-marker { display: none; }
.launch-box { margin-top: .8rem; border: 2px solid #dc3b3b; border-radius: 12px; padding: 1rem; display: grid; gap: .5rem; }
.launch-box p { margin: 0; }
.cs-big { display: flex; justify-content: center; text-align: center; font-weight: 700; }
.pl-tick { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #1fa463; color: #fff; font-size: .95rem; margin-right: .35rem; vertical-align: -.15rem; }
.cs-card form { display: contents; }
.billing-same label { display: flex; align-items: center; gap: .55rem; font-weight: 600; cursor: pointer; margin: -.2rem 0 0; }
.billing-same input { width: 1.15rem; height: 1.15rem; margin: 0; flex: none; accent-color: var(--brand); }
/* Phones: the account button sits at the left, so open its menu to the right and keep it on screen. */
@media (max-width: 900px) { .account-pop { right: auto; left: 0; min-width: 0; width: min(280px, calc(100vw - 32px)); } }

/* ---- Header option C: slim settings strip on top, logo left and menu right below ---- */
.util-bar { background: #1c4d3e; color: #d6ece3; font-size: .82rem; }
.util-bar.staff { background: #172e28; }
.util-bar.trainer { background: #26425a; }
.util-inner { margin: 0 auto; padding: .22rem var(--page-gutter); display: flex; justify-content: flex-end; align-items: center; gap: .9rem; min-height: 2.1rem; }
.util-bar .theme-switch { margin: 0; padding: .1rem .15rem .1rem .2rem; border: 0; background: none; gap: .45rem; color: #d6ece3; font-size: .8rem; order: 0; }
.util-bar .theme-switch:hover { background: rgba(255,255,255,.08); }
.util-bar .theme-switch-label { display: inline; font-weight: 500; }
.util-bar .theme-switch-track, .util-bar .view-track { width: 2.6rem; height: 1.3rem; }
.util-bar .theme-switch-knob, .util-bar .view-knob { top: .15rem; left: .15rem; width: 1rem; height: 1rem; }
.util-bar .theme-switch-knob svg, .util-bar .view-knob svg { width: .7rem; height: .7rem; }
html[data-theme="dark"] .util-bar .theme-switch-knob, .util-bar .view-switch.is-on .view-knob { transform: translateX(1.3rem); }
.util-bar .theme-switch-state, .util-bar .view-state { display: none !important; }
.util-bar .account-menu { margin: 0; }
.util-bar .account-menu > summary { padding: .1rem .55rem .1rem .15rem; gap: .45rem; background: rgba(255,255,255,.08); border: 0; }
.util-bar .account-av { width: 1.55rem; height: 1.55rem; font-size: .66rem; }
.util-bar .account-name { display: flex !important; flex-direction: row; gap: .35rem; align-items: baseline; }
.util-bar .account-name b { font-size: .8rem; font-weight: 600; }
.util-bar .account-name small { font-size: .74rem; opacity: .8; }
.util-bar .account-name small::before { content: "· "; }
.util-bar .account-menu > summary::after { content: ""; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .75; margin-left: .1rem; }
.util-bar .account-pop { right: 0; left: auto; width: auto; min-width: 240px; color: var(--ink); font-size: .92rem; }
.site-header .header-inner { padding-top: .6rem; padding-bottom: .6rem; }
.site-header .nav { margin-left: auto; }
/* Staff and trainer menus: flat text, yellow line under the page you're on. */
.site-header.staff .nav > a, .site-header.trainer .nav > a { border-radius: 0; padding: .45rem .7rem; font-weight: 600; color: #e4f1ec; box-shadow: inset 0 -3px 0 transparent; }
.site-header.staff .nav > a:hover, .site-header.trainer .nav > a:hover { background: rgba(255,255,255,.08); }
.site-header.staff .nav > a.active, .site-header.trainer .nav > a.active { background: transparent; color: #fff; box-shadow: inset 0 -3px 0 #ffd31a; }
/* Basket button */
.nav .nav-basket { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid rgba(255,255,255,.4); border-radius: 99px; padding: .32rem .8rem .32rem .65rem; font-weight: 600; margin-left: .35rem; }
.nav .nav-basket svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav .nav-basket i { font-style: normal; background: #ffd31a; color: #13261f; border-radius: 99px; padding: .02rem .42rem; font-size: .74rem; font-weight: 800; }
.nav .nav-basket.active, .nav .nav-basket:hover { background: rgba(255,255,255,.16); }
@media (max-width: 760px) {
  .util-inner { gap: .5rem; justify-content: space-between; }
  .util-bar .theme-switch-label { font-size: .74rem; }
  .util-bar .account-name { display: none !important; }
  .util-bar .account-menu { margin-left: auto; }
  .site-header .nav { justify-content: flex-start; margin-left: 0; }
}
@media (max-width: 420px) { .util-bar .theme-switch-label { display: none; } }

/* ---- Basket pages ---- */
.inline-form { display: inline; margin: 0; }
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
@media (max-width: 860px) { .bk-layout { grid-template-columns: 1fr; } }
.bk-items { padding: .4rem 1.1rem; }
.bk-item { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 1rem; padding: 1rem 0; align-items: start; }
.bk-item + .bk-item { border-top: 1px solid var(--line); }
.bk-item.has-problem { background: linear-gradient(90deg, var(--bad-bg), transparent 40%); margin: 0 -1.1rem; padding-left: 1.1rem; padding-right: 1.1rem; }
.bk-photo { display: block; }
.bk-photo img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.bk-noimg { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; background: var(--brand); color: #fff; font-weight: 700; font-size: .78rem; text-align: center; padding: .3rem; }
.bk-info { display: grid; gap: .3rem; min-width: 0; }
.bk-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.bk-title:hover { text-decoration: underline; }
.bk-who { display: flex; flex-wrap: wrap; gap: .35rem; }
.bk-who span { background: var(--brand-tint); color: var(--brand-text); border-radius: 99px; padding: .05rem .6rem; font-size: .8rem; font-weight: 600; }
.bk-who span.none { background: var(--warn-bg); color: var(--warn-ink); }
.bk-links { display: flex; gap: 1rem; align-items: center; font-size: .88rem; }
.bk-links a { font-weight: 600; }
.bk-remove { color: var(--bad-ink); font-size: .88rem; }
.bk-problem { margin: 0; font-size: .88rem; }
.bk-price { text-align: right; display: grid; gap: .1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-price strong { font-size: 1.05rem; }
.bk-more { padding: .9rem 0 .6rem; border-top: 1px solid var(--line); }
.bk-sum { position: sticky; top: 1rem; display: grid; gap: .9rem; }
.bk-sum h2 { margin: 0; font-size: 1.15rem; }
.bk-sum dl { display: grid; grid-template-columns: 1fr auto; gap: .4rem .8rem; margin: 0; font-variant-numeric: tabular-nums; }
.bk-sum dt { color: var(--muted); } .bk-sum dd { margin: 0; text-align: right; }
.bk-sum dd.save { color: var(--ok-ink); }
.bk-sum .tot { border-top: 1px solid var(--line); padding-top: .55rem; font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.bk-code { display: grid; gap: .3rem; margin: 0; }
.bk-code label { font-weight: 600; font-size: .9rem; }
.bk-code-row { display: flex; gap: .5rem; } .bk-code-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.bk-ok { color: var(--ok-ink); font-size: .86rem; font-weight: 600; }
.btn.big { width: 100%; justify-content: center; padding: .75rem 1rem; font-size: 1.02rem; text-align: center; }
.bk-empty { text-align: center; display: grid; gap: .7rem; justify-items: center; padding: 2.2rem 1rem; }
.bk-steps { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 1rem; flex-wrap: wrap; }
.bk-steps li { padding: .25rem .85rem; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .85rem; font-weight: 600; }
.bk-steps li.done { background: var(--brand-tint); color: var(--brand-text); border-color: transparent; }
.bk-steps li.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.bk-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.bk-mini li { display: grid; grid-template-columns: 1fr auto; gap: 0 .6rem; }
.bk-mini li .muted { grid-column: 1; } .bk-mini-p { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-sent { text-align: center; display: grid; justify-items: center; gap: .6rem; padding: 2.4rem 1rem; }
.bk-sent-p { max-width: 48ch; }
.bk-tick { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: #1fa463; color: #fff; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; }
.in-basket { white-space: nowrap; }
/* Office order page */
.ord-styles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .7rem; margin: .4rem 0 1rem; }
.ord-style { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem; cursor: pointer; }
.ord-style:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.ord-style > span { display: grid; gap: .1rem; }
.ord-style input { margin-top: .25rem; accent-color: var(--brand); }
.ord-pay-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ord-remind { display: flex; gap: .5rem; align-items: center; margin: 0; }
/* "I've paid this" */
.paid-note { margin-top: .8rem; padding: .7rem .9rem; border-radius: 10px; background: var(--ok-bg); color: var(--ok-ink); font-size: .92rem; display: grid; gap: .15rem; }
.paid-note.staff { background: var(--warn-bg); color: var(--warn-ink); margin: 0 0 1rem; display: block; }
.paid-note.staff a, .paid-note.staff .linklike { color: inherit; font-weight: 700; }
.paid-form { margin-top: .8rem; }
.paid-form > summary { list-style: none; display: inline-flex; cursor: pointer; }
.paid-form > summary::-webkit-details-marker { display: none; }
.paid-form[open] > summary { display: none; }
.paid-form form { border: 1px solid var(--line); border-radius: 10px; padding: .9rem; display: grid; gap: .7rem; background: var(--card); }
.paid-form p { margin: 0; }
.paid-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }

/* Sign-in and account pages: photo hero (like the coming-soon page and website) with the form card on the right. */
.auth-hero { min-height: min(640px, calc(100vh - 230px)); margin-top: .2rem; }
.auth-in { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 2.4rem; }
.card.auth { margin: 0; padding: 0 1.5rem 1.5rem; overflow: hidden; color: var(--ink); border: 0; border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.card.auth > h1 { position: relative; margin: 0 -1.5rem 1.4rem; background: var(--brand); color: #fff; padding: .95rem 1.5rem; font-family: "Quicksand", "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 1.35rem; }
.card.auth > h1::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: repeating-conic-gradient(#b8d54c 0 25%, #002b18 0 50%) 0 0 / 12px 12px; }
.card.auth form { display: block; }
.card.auth .field input, .card.auth input[type=email], .card.auth input[type=password], .card.auth input[type=text] { width: 100%; }
.card.auth .actions { display: flex; flex-direction: column; align-items: stretch; gap: .85rem; text-align: center; margin-top: .4rem; }
.card.auth .btn { display: block; width: 100%; text-align: center; padding: .72rem 1rem; font-size: 1.02rem; }
.card.auth form .btn { margin-top: .4rem; }
.card.auth p { line-height: 1.55; }
.card.auth .auth-rule { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0 1rem; }
.card.auth .auth-new { margin: 0 0 .6rem; text-align: center; color: var(--muted); }
@media (max-width: 860px) {
  .auth-hero { min-height: 0; }
  .auth-in { grid-template-columns: 1fr; gap: 1.2rem; }
  .auth-hero .cs-copy h1 { font-size: 1.7rem; margin-top: 0; }
  .auth-hero .cs-copy p, .auth-hero .cs-trust { display: none; }
}

/* Event booking form laid out like GMG's paper Standard Event Booking Form: white A4 sheets, green section
   bars, grey label boxes. The sheets stay white in dark mode, like paper, and print one sheet per page. */
.bf-drafts { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; margin: 0 auto 1rem; max-width: 900px; }
.bf-drafts ul { margin: .5rem 0; padding-left: 1.1rem; }
.bf-errors { max-width: 900px; margin: 0 auto 1rem; }
.bf-paper { max-width: 900px; margin: 0 auto; display: grid; gap: 1.4rem;
  --card: #fff; --ink: #1d2523; --muted: #5b6763; --line: #9aa5a1; --brand-text: #276955; color: #1d2523; color-scheme: light; }
.bf-page { position: relative; overflow: hidden; border-top: 6px solid #276955; background: #fff; color: #1d2523; box-shadow: 0 4px 24px rgba(0,0,0,.14); padding: 2.2rem 2.3rem 1.2rem; border-radius: 4px; display: flex; flex-direction: column; }
.bf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .8rem; }
.bf-head h1 { margin: .3rem 0 0; color: #276955; font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 2.2rem); letter-spacing: .01em; line-height: 1.1; }
.bf-head h2 { margin: 0 0 .3rem; font-size: 1rem; font-weight: 800; }
.bf-logo { height: 54px; width: auto; flex: none; }
.bf-intro { font-size: .84rem; line-height: 1.45; margin-bottom: 1rem; }
.bf-intro p { margin: 0 0 .45rem; }
.bf-bar { background: #276955; color: #fff; border-left: 6px solid #ffd60a; text-align: right; font-weight: 800; font-size: .86rem; letter-spacing: .02em; padding: .32rem .7rem; margin-top: .9rem; }
.bf-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .9rem; }
.bf-table th, .bf-table td { border: 1px solid #9aa5a1; padding: .35rem .55rem; vertical-align: top; text-align: left; }
.bf-table th { background: #efefef; font-weight: 400; width: 31%; }
.bf-table th.bf-inner { width: 22%; }
.bf-table td.bf-narrow { width: 12%; }
.bf-table th small { display: block; font-style: italic; font-size: .72rem; color: #444; margin-top: .2rem; line-height: 1.35; }
.bf-table td > input:not([type=checkbox]):not([type=radio]), .bf-table td > textarea, .bf-table td > select,
.bf-paper .rows-table input, .bf-paper .rows-table select {
  width: 100%; border: 0 !important; background: transparent !important; color: #1d2523 !important; box-shadow: none !important;
  padding: .25rem .1rem; font: inherit; border-radius: 0; min-height: 1.9rem; }
.bf-table td > textarea { resize: vertical; min-height: 4.2rem; }
.bf-paper :is(input, textarea, select):focus { outline: 2px solid #ffd60a; outline-offset: -2px; background: #fbfdf4 !important; }
.bf-paper input[type=checkbox], .bf-paper input[type=radio] { width: 1.15rem; height: 1.15rem; accent-color: #276955; flex: none; margin: .1rem 0 0; }
.bf-ticks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .1rem 1rem; }
.bf-ticks.bf-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bf-ticks ul, .bf-ticks li { list-style: none; margin: 0; padding: 0; }
.bf-tick { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; margin: .2rem 0; cursor: pointer; }
.bf-noted { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: start; }
.bf-note { margin: 0; padding: .55rem .7rem; font-size: .74rem; font-style: italic; text-align: center; border: 1px solid #9aa5a1; border-left: 0; align-self: stretch; }
.bf-rows .table-wrap { border: 0; }
.bf-paper .rows-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.bf-paper .rows-table th { background: #efefef; font-size: .74rem; text-transform: uppercase; font-weight: 700; letter-spacing: .02em; }
.bf-paper .rows-table th, .bf-paper .rows-table td { border: 1px solid #9aa5a1; padding: .2rem .35rem; }
.bf-paper .add-row { margin: .5rem 0 .2rem; }
.bf-thanks { display: flex; gap: .7rem; align-items: center; margin-top: 1.2rem; font-size: .9rem; }
.bf-thanks span { flex: none; width: 1.6rem; height: 1.6rem; border: 2px solid #1d2523; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.bf-thanks p { margin: 0; }
.bf-warn { margin: 0; color: #d0021b; font-size: .82rem; line-height: 1.4; }
.bf-knows { margin: .4rem 0 0; font-weight: 600; }
.bf-foot { margin: auto 0 0; padding-top: 1.4rem; text-align: center; color: #9aa5a1; font-size: .74rem; }
.bf-err th { background: #fde8e8 !important; }
.bf-err, .bf-err td { border-color: #c62828 !important; }
.bf-paper .errorlist { color: #c62828; margin: .2rem 0 0; font-size: .82rem; }
.bf-send { position: sticky; bottom: 0; z-index: 5; max-width: 900px; margin: 1.2rem auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px 12px 0 0; padding: .8rem 1rem; box-shadow: 0 -6px 20px rgba(0,0,0,.12); display: grid; gap: .7rem; }
.bf-confirm { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; font-size: .9rem; margin: 0; }
.bf-confirm.bf-err { color: #c62828; }
.bf-buttons { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.bf-buttons .bf-delete { margin-right: auto; color: #c62828; }
@media (max-width: 700px) {
  .bf-page { padding: 1.2rem .9rem 1rem; }
  .bf-table, .bf-table tbody, .bf-table tr, .bf-table th, .bf-table td { display: block; width: 100% !important; }
  .bf-table tr { border: 1px solid #9aa5a1; border-top: 0; }
  .bf-table th, .bf-table td { border: 0; }
  .bf-ticks, .bf-ticks.bf-cols-2 { grid-template-columns: 1fr; }
  .bf-noted { grid-template-columns: 1fr; }
  .bf-note { border: 1px solid #9aa5a1; border-top: 0; }
  .bf-logo { height: 38px; }
  .bf-buttons .btn { flex: 1 1 auto; }
}
@media print {
  .bf-drafts, .bf-send, .bf-errors, .add-row, .remove-row, .back-bar, .feedback-fab { display: none !important; }
  .bf-paper { max-width: none; gap: 0; }
  .bf-page { box-shadow: none; padding: 0; border-radius: 0; min-height: 270mm; break-after: page; }
  .bf-page:last-child { break-after: auto; }
  .bf-paper .rows-table th:last-child, .bf-paper .rows-table td:last-child { display: none; }
  .bf-table td > textarea { resize: none; overflow: hidden; }
  .bf-bar, .bf-table th, .bf-paper .rows-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #appendix-fields[hidden] { display: block !important; }
  @page { size: A4; margin: 12mm; }
}

/* GMG check strip along the bottom of each sheet, as on the printed forms. */
.bf-page::after { content: ""; display: block; height: 10px; margin: .8rem -2.3rem -1.2rem; background: repeating-conic-gradient(#b8d54c 0 25%, #002b18 0 50%) 0 0 / 20px 20px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bf-head h1 { border-bottom: 4px solid #ffd60a; padding-bottom: .25rem; display: inline-block; }
.bf-tick input:checked + span { font-weight: 700; color: #276955; }
@media (max-width: 700px) { .bf-page::after { margin: .8rem -.9rem -1rem; } }
@media print { .bf-page::after { margin: auto 0 0; } }
.wording-section { margin-bottom: .8rem; }
.wording-section summary { cursor: pointer; list-style: none; }
.wording-section summary h2 { display: inline; font-size: 1.1rem; }
.wording-item input, .wording-item textarea { width: 100%; }
.wording-item.edited input, .wording-item.edited textarea { border-color: #ffd60a; }
.wording-save { position: sticky; bottom: 0; background: var(--bg); padding: .8rem 0; }
.bf-table th, .bf-table th label { text-transform: none; letter-spacing: normal; font-size: .88rem; color: #1d2523; font-weight: 400; }
.bf-table th small { text-transform: none; letter-spacing: normal; }
.bf-paper .rows-table { min-width: 560px; }
.bf-rows .table-wrap { overflow-x: auto; }

/* The booking form is a white paper form in light AND dark mode: beat the dark-mode table and input colours. */
html .bf-paper .bf-table th, html .bf-paper .rows-table th { background: #efefef !important; color: #1d2523 !important; text-transform: none !important; letter-spacing: normal !important; }
html .bf-paper .bf-table th label, html .bf-paper .bf-table th small { color: #1d2523 !important; text-transform: none !important; }
html .bf-paper .bf-table th small { color: #444 !important; }
html .bf-paper .bf-table td, html .bf-paper .rows-table td { background: #fff !important; color: #1d2523 !important; border-color: #9aa5a1 !important; }
html .bf-paper .bf-table th { border-color: #9aa5a1 !important; }
html .bf-paper :is(input, textarea, select) { color: #1d2523 !important; background: transparent !important; color-scheme: light; }
html .bf-paper :is(input, textarea)::placeholder { color: #8a9490 !important; }
html .bf-paper select option { color: #1d2523; background: #fff; }
html .bf-paper .bf-tick, html .bf-paper .bf-tick span { color: #1d2523 !important; }
html .bf-paper .bf-tick input:checked + span { color: #276955 !important; }
html .bf-paper a { color: #276955; }
html .bf-paper .btn.secondary { background: #fff !important; color: #276955 !important; border-color: #276955 !important; }
html .bf-paper .bf-err th { background: #fde8e8 !important; }
/* Send bar: at the end of the form, not following the page. */
.bf-send { position: static; border-radius: 12px; box-shadow: none; }
html .bf-paper .req { color: #c62828 !important; }
.bf-top { max-width: 900px; margin: 0 auto .8rem; display: flex; gap: .6rem 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.bf-top .bf-buttons { margin-left: auto; }
@media print { .bf-top { display: none !important; } }
.bf-start { max-width: 900px; margin: 0 auto 1rem; padding: .75rem 1rem; border-radius: 8px; background: var(--brand-tint); }

/* Filter rows (course types, request statuses): plain tabs, not rounded pills. */
.filter-chips { gap: .2rem 1.4rem; border-bottom: 1px solid var(--line); }
.filter-chips .chip { background: none !important; border: 0 !important; border-radius: 0; padding: .45rem 0; font-size: .95rem; color: var(--muted) !important; }
.filter-chips .chip:hover { color: var(--ink) !important; box-shadow: inset 0 -3px 0 var(--line); }
.filter-chips .chip.active { color: var(--ink) !important; font-weight: 600; box-shadow: inset 0 -3px 0 #ffd60a; }

/* ── One GMG look: the portal matches the website (gmgltd.co.uk) ─────────────────────────────────────────
   Very dark green header, Quicksand headings with a short yellow rule, yellow main buttons, green section bars
   with a yellow edge, and the lime/dark-green check strip used sparingly (under the customer header). */
:root { --deep: #10241d; --gmg-yellow: #ffd31a; --gmg-yellow-dark: #f0c000; --heading: #13261f; }
html[data-theme="dark"] { --heading: #e9f1ed; }
.site-header, html[data-theme="dark"] .site-header { background: var(--deep); }
.site-header.staff, html[data-theme="dark"] .site-header.staff { background: #0b1a15; }
/* The GMG checker band under the header, as on the service photos: two rows of 2:1 blocks, dark first on the top row.
   Same on customer, staff and trainer views. */
.site-header::after { content: ""; display: block; height: 18px; background: repeating-conic-gradient(#b8d54c 0 25%, #002b18 0 50%) 0 0 / 40px 18px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media (max-width: 640px) { .site-header::after { height: 14px; background-size: 32px 14px; } }
.subnav { background: #173a2f; }
.nav a.active { background: none; box-shadow: inset 0 -3px 0 var(--gmg-yellow); border-radius: 0; }
.nav a:hover { background: rgba(255,255,255,.1); }

h1, h2, h3 { font-family: "Quicksand", "Nunito", "Segoe UI", system-ui, sans-serif; font-weight: 700; letter-spacing: .005em; }
h1, h2:not([class]), h3:not([class]) { color: var(--heading); }
/* Page titles get the website's short yellow rule underneath. */
.page-head h1, .hero h1, main > h1, .card > h1:first-child {
  background-image: linear-gradient(var(--gmg-yellow), var(--gmg-yellow)); background-repeat: no-repeat;
  background-size: 3rem 4px; background-position: 0 100%; padding-bottom: .45rem; }
.card.auth > h1, .cs-copy h1 { background-image: none; padding-bottom: .95rem; }
.cs-copy h1 { padding-bottom: 0; }

/* Green section bars get a yellow edge, like the booking form and the website. */
.card > h2:first-child, .card > h3:first-child, .card > .section-title:first-child, .form-section h2,
fieldset.section legend, .course-suite-bar, .service-card .service-bar, .cs-ph h3, .planner-card-head,
.planner-panel-head, .ref-year > summary { border-left: 5px solid var(--gmg-yellow); }
.card > h2:first-child, .card > h3:first-child, .card > .section-title:first-child, .form-section h2,
fieldset.section legend, .course-suite-bar, .service-card .service-bar, .cs-ph h3 { color: #fff; }

/* Main buttons are yellow with dark text, as on the website; secondary buttons stay white with green text. */
.btn:not(.secondary):not(.danger):not(.danger-solid):not(.planner-head-btn):not(.linkish) {
  background: var(--gmg-yellow); border-color: var(--gmg-yellow); color: #13261f; }
.btn:not(.secondary):not(.danger):not(.danger-solid):not(.planner-head-btn):not(.linkish):hover,
html[data-theme="dark"] .btn:not(.secondary):not(.danger):not(.danger-solid):not(.planner-head-btn):not(.linkish):hover {
  background: var(--gmg-yellow-dark); border-color: var(--gmg-yellow-dark); color: #13261f; }
.btn.secondary { border-color: var(--brand); }

/* Page heroes: the website's dark green panel. */
.hero { background: var(--deep); color: #e6f2ec; border-radius: var(--radius); }
.hero h1 { color: #fff; }
.hero p, .hero .muted { color: #cfe3da; }
.hero a:not(.btn) { color: #b8e6d2; }
.hero .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn.secondary:hover { background: rgba(255,255,255,.1); }

/* Customer menu: white links with a yellow underline on the current page, like the website's menu,
   instead of red / amber / green pills. A small amber dot still shows a service waiting for approval. */
.nav .svc-btn, .nav .svc-btn.on, .nav .svc-btn.off, .nav .svc-btn.wait, .nav .svc-btn.manage {
  background: none !important; color: #fff !important; border: 0 !important; border-radius: 0; padding: .45rem .7rem; font-weight: 600; }
.nav .svc-btn:hover { box-shadow: inset 0 -3px 0 rgba(255,255,255,.35); }
.nav .svc-btn.active { box-shadow: inset 0 -3px 0 var(--gmg-yellow) !important; }
.nav .svc-btn.wait::after { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-left: .35rem; border-radius: 50%; background: #e3a21a; vertical-align: .15rem; }
.other-cta { color: var(--brand-text) !important; }

/* Course cards: the Quicksand titles made cards taller than their (uncropped) covers, leaving white above the
   cover. A slightly wider cover column and a more compact title bring the cover back to the card's height. */
.course-wide { grid-template-columns: clamp(130px, 42%, 260px) 1fr; }
.course-wide-head { font-size: .95rem; line-height: 1.25; letter-spacing: 0; }
.course-wide-body { gap: .6rem; padding: .7rem .9rem .85rem; }
.course-wide-cover { align-items: center; }
@media (max-width: 520px) { .course-wide { grid-template-columns: 112px 1fr; } }
.course-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.course-tiles dd { white-space: nowrap; }

/* Admin health cards: a mini traffic light (red / amber / green) at the end of each title bar. Only the light
   that applies is lit; all three dim when a check isn't set up or can't run (grey). */
.health > h2:first-child { display: flex; align-items: center; gap: .6rem; padding-top: .45rem; padding-bottom: .45rem; }
.tlight { margin-left: auto; flex: none; display: inline-flex; flex-direction: column; gap: 3px; padding: 4px 5px;
  background: #0b1612; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.tlight i { display: block; width: 10px; height: 10px; border-radius: 50%; opacity: .22; }
.tlight .r { background: #ff3b30; } .tlight .a { background: #ffb300; } .tlight .g { background: #2ecc71; }
.health.red .tlight .r, .health.amber .tlight .a, .health.green .tlight .g { opacity: 1; box-shadow: 0 0 6px 1px currentColor; }
.health.red .tlight .r { color: #ff3b30; } .health.amber .tlight .a { color: #ffb300; } .health.green .tlight .g { color: #2ecc71; }

/* Messages: customer and office talking inside the portal. */
/* Messages: chat layout. Customer page = one chat; staff page = chat list + open chat side by side. */
.chat { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: min(78vh, 760px); }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: var(--deep); color: #fff; }
.chat-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-head > div span { font-size: .82rem; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .btn { flex: none; }
.chat-back { display: none; color: #fff; text-decoration: none; font-size: 1.3rem; padding: 0 .2rem; }
.chat-avatar { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--brand); display: grid; place-items: center; overflow: hidden; }
.chat-avatar img { width: 72%; height: auto; }
.chat-avatar.initials { color: #fff; font-weight: 700; font-size: .9rem; }
.thread { flex: 1; display: flex; flex-direction: column; gap: .35rem; padding: 1rem; overflow-y: auto; background: var(--bg); }
.chat-day { text-align: center; margin: .6rem 0; }
.chat-day span { display: inline-block; font-size: .78rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .7rem; }
.msg { display: flex; max-width: min(78%, 620px); }
.msg.mine { align-self: flex-end; }
.msg-body { padding: .45rem .7rem .3rem; border-radius: 12px; line-height: 1.45; overflow-wrap: anywhere; background: var(--card); border: 1px solid var(--line); }
.msg.mine .msg-body { background: var(--brand-tint); border-color: transparent; border-bottom-right-radius: 4px; }
.msg.theirs .msg-body { border-bottom-left-radius: 4px; }
.msg-who { display: block; font-size: .78rem; font-weight: 700; color: var(--brand-text); }
.msg-about { display: block; font-size: .8rem; font-weight: 700; margin: .1rem 0 .2rem; }
.msg-time { float: right; margin: .35rem 0 0 .6rem; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.ticks { font-style: normal; letter-spacing: -.3em; margin-left: .3rem; color: var(--muted); }
.ticks.read { color: var(--ok-ink); }
.chat-compose { border-top: 1px solid var(--line); padding: .6rem .8rem .5rem; background: var(--card); }
.chat-about { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; font-size: .85rem; }
.chat-about select { flex: 1; min-width: 0; }
.chat-bar { display: flex; align-items: flex-end; gap: .5rem; }
.chat-bar textarea { flex: 1; resize: none; min-height: 2.6rem; max-height: 160px; border-radius: 1.3rem; padding: .55rem .9rem; line-height: 1.4; }
.chat-send { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: var(--gmg-yellow); color: var(--deep); display: grid; place-items: center; cursor: pointer; }
.chat-send:hover { background: var(--gmg-yellow-dark); }
.chat-note { margin: .35rem 0 0; font-size: .75rem; color: var(--muted); }
.chat-app { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: min(80vh, 780px); background: var(--card); }
.chat-app .chat { border: 0; border-radius: 0; height: auto; min-height: 0; }
.chat-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.chat-list-head { padding: .8rem .8rem .5rem; border-bottom: 1px solid var(--line); }
.chat-list-head h1 { font-size: 1.3rem; margin: 0 0 .5rem; }
.chat-list-head input { width: 100%; }
.chat-tabs { display: flex; gap: .4rem; margin-top: .5rem; }
.chat-tabs button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: .2rem .8rem; font: inherit; font-size: .85rem; cursor: pointer; }
.chat-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chat-tabs b { font-weight: 700; }
.chat-rows { flex: 1; overflow-y: auto; }
.chat-row { display: flex; gap: .7rem; align-items: center; padding: .65rem .8rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.chat-row:hover { background: var(--bg); }
.chat-row.active { background: var(--brand-tint); }
.chat-row[hidden] { display: none; }
.chat-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-row-top, .chat-row-bottom { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.chat-row-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row-top time { font-size: .75rem; color: var(--muted); flex: none; }
.chat-row.unread .chat-row-top time { color: var(--brand-text); font-weight: 700; }
.chat-preview { font-size: .87rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-unread { flex: none; min-width: 1.3rem; height: 1.3rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; display: grid; place-items: center; padding: 0 .35rem; }
.chat-none { color: var(--muted); padding: 1rem; margin: 0; }
.chat-welcome { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center; padding: 2rem; color: var(--muted); background: var(--bg); }
.chat-welcome strong { color: var(--ink); font-size: 1.1rem; }
@media (max-width: 760px) {
  .chat-app { grid-template-columns: 1fr; height: calc(100vh - 9rem); }
  .chat-app .chat-pane { display: none; }
  .chat-app.has-open .chat-list { display: none; }
  .chat-app.has-open .chat-pane { display: flex; }
  .chat-list { border-right: 0; }
  .chat-back { display: block; }
  .chat-head .btn { display: none; }
  .chat { height: calc(100vh - 9rem); }
  .msg { max-width: 88%; }
}
.feedback-fab { position: fixed; }
.feedback-fab .fab-count { position: absolute; top: -4px; right: -4px; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 99px; background: #ffd31a; color: #13261f; font: 700 .78rem/1.35rem system-ui, sans-serif; font-style: normal; text-align: center; }

/* Patient transport booking form: "where did you hear about us" in four columns, as on paper. */
.bf-ticks.bf-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .bf-ticks.bf-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bf-table td > textarea { width: 100%; }
#booking-form #id_additional_info, #booking-form #id_transport_reason { min-height: 9rem; }
.bf-table [hidden] { display: none !important; }
.bf-table td { overflow-wrap: anywhere; }


.fr-link { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.2rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--brand-tint); border-left: 5px solid var(--gmg-yellow); color: var(--ink); text-decoration: none; }
.fr-link:hover { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.fr-link b { display: block; color: var(--brand-text); font-size: 1.05rem; }
.fr-link-go { margin-left: auto; font-size: 1.5rem; color: var(--brand-text); }

/* Routes into FREC: the guide page (includes/_frec_routes_page.html) and the short link (includes/_frec_routes_link.html).
   Colours match the PDF learner checklist: grey = 2-day FREC 3, green = straight to FREC 4, red = important notes. */
.fr { --fr-grey: #eceeed; --fr-grey-line: #d6dbd8; --fr-green: #e3f1e9; --fr-green-line: #c3e0cf; --fr-red: #c62828;
      --fr-red-bg: #fdecec; --fr-deep: #10241d; --fr-brand: #276955; --fr-yellow: #ffd31a; --fr-ink: #13261f; --fr-text: #2f4740; --fr-muted: #56695f; --fr-card: #fff;
      display: grid; gap: 28px; max-width: 1000px; margin: 0 auto; color: var(--fr-text); font-size: 1.02rem; line-height: 1.6; }
.fr h2 { margin: 0; color: var(--fr-ink); }
.fr h3 { margin: 0 0 10px; color: var(--fr-ink); font-size: 1.1rem; }
.fr-num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--fr-deep); color: #fff; display: grid; place-items: center; font-weight: 700; }
.fr-jump { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fr-jump-card { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 16px 18px; border-radius: 14px; text-decoration: none; color: var(--fr-text); border: 1px solid transparent; }
.fr-jump-card .fr-num { grid-row: span 2; }
.fr-jump-card b { color: var(--fr-ink); font-size: 1.08rem; }
.fr-jump-card span:last-child { font-size: .9rem; color: var(--fr-muted); line-height: 1.4; }
.fr-jump-card.grey { background: var(--fr-grey); } .fr-jump-card.green { background: var(--fr-green); } .fr-jump-card.plain { background: var(--fr-card); border-color: var(--fr-grey-line); }
.fr-jump-card:hover { border-color: var(--fr-brand); }
.fr-alert { display: flex; gap: 14px; align-items: baseline; background: var(--fr-red-bg); border-left: 6px solid var(--fr-red); border-radius: 0 12px 12px 0; padding: 14px 18px; }
.fr-alert b { color: var(--fr-red); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; flex: none; }
.fr-alert p { margin: 0; color: var(--fr-ink); }
.fr-flow { background: var(--fr-card); border: 1px solid var(--fr-grey-line); border-radius: 18px; padding: 26px 20px; }
.fr-flow h2 { text-align: center; margin-bottom: 16px; }
.fr-chart { display: block; width: 100%; max-width: 860px; height: auto; margin: 0 auto; }
.fr-chart text { font-family: inherit; }
.fr-lines path { stroke: var(--fr-ink); } .fr-ah { fill: var(--fr-ink); }
.fr-stack { display: none; }
.fr-node-h { background: var(--fr-deep); color: #fff; font-weight: 600; text-align: center; padding: 12px 14px; border-radius: 8px; }
.fr-node-h.head { background: var(--fr-brand); }
.fr-node-h.end { background: #1c4d3e; box-shadow: inset 0 0 0 3px var(--fr-yellow); }
.fr-pill-h { align-self: center; color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .06em; padding: 3px 16px; border-radius: 999px; }
.fr-pill-h.yes { background: #1d8a4e; } .fr-pill-h.no { background: var(--fr-red); }
.fr-branch { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--fr-grey-line); }
.fr-arrow { width: 2px; height: 18px; background: var(--fr-ink); margin: 0 auto; }
.fr-group { display: grid; gap: 14px; scroll-margin-top: 90px; }
.fr-group-head { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 14px; }
.fr-group-head.grey { background: var(--fr-grey); } .fr-group-head.green { background: var(--fr-green); } .fr-group-head.plain { padding: 0 0 4px; }
.fr-group-head p { margin: 2px 0 0; color: var(--fr-muted); }
.fr-group-head h2 { font-size: 1.45rem; }
.fr-panel { border-radius: 14px; padding: 18px 20px 8px; }
.fr-panel.grey { background: var(--fr-grey); } .fr-panel.green { background: var(--fr-green); }
.fr-list { list-style: none; margin: 0; padding: 0; columns: 2 380px; column-gap: 28px; }
.fr-list li { break-inside: avoid; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--fr-grey-line); color: var(--fr-ink); line-height: 1.45; }
.fr-panel.green .fr-list li { border-bottom-color: var(--fr-green-line); }
.fr-list li span { padding-left: 18px; position: relative; }
.fr-list li span::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--fr-brand); }
.fr-list small { flex: none; font-size: .78rem; color: var(--fr-muted); background: var(--fr-card); border-radius: 6px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.fr-note { border-left: 6px solid var(--fr-red); background: var(--fr-red-bg); border-radius: 0 12px 12px 0; padding: 12px 18px; color: var(--fr-ink); }
.fr-note b { color: var(--fr-red); }
.fr-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fr-who-card { background: var(--fr-card); border: 1px solid var(--fr-grey-line); border-top: 5px solid var(--fr-red); border-radius: 12px; padding: 14px 16px; }
.fr-who-card b { color: var(--fr-red); }
.fr-who-card p { margin: 4px 0 0; color: var(--fr-ink); line-height: 1.5; }
.fr-how { background: var(--fr-green); border-radius: 18px; padding: 24px; display: grid; gap: 16px; scroll-margin-top: 90px; }
.fr-steps { list-style: none; counter-reset: fr; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fr-steps li { counter-increment: fr; background: var(--fr-card); border-radius: 12px; padding: 14px 16px 14px 56px; position: relative; display: grid; gap: 2px; }
.fr-steps li::before { content: counter(fr); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--fr-yellow); color: var(--fr-deep); font-weight: 800; display: grid; place-items: center; }
.fr-steps b { color: var(--fr-ink); } .fr-steps span { color: var(--fr-text); line-height: 1.45; }
.fr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fr-courses { margin: 0; }
@media (max-width: 800px) {
  .fr-jump, .fr-who, .fr-steps { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .fr-chart { display: none; } .fr-stack { display: flex; flex-direction: column; }
  .fr-list { columns: 1; } .fr-list li { flex-direction: column; gap: 2px; } .fr-list small { margin-left: 18px; }
  .fr-panel { padding: 16px 16px 6px; }
  .fr-alert { flex-direction: column; gap: 4px; }
}

/* Portal dark mode (only when the Dark mode switch is on, like the rest of the portal) */
:root[data-theme="dark"] .fr { --fr-grey: #23302b; --fr-grey-line: #3a4a43; --fr-green: #1c3a2e; --fr-green-line: #2f5a47; --fr-red: #ff8a80; --fr-red-bg: #3a1d1d; --fr-ink: #e8efec; --fr-text: #cfdad5; --fr-muted: #a5b5ae; --fr-card: #17211d; --fr-brand: #6cc3a0; }
:root[data-theme="dark"] .fr-flow { background: #2b3b35; border-color: #3a4a43; }
:root[data-theme="dark"] .fr-num { background: #276955; }

/* Recruitment (recruitment app): jobs, the application form, staff lists */
.rec-jobs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-bottom: 1.5rem; }
.rec-jobs.closed { opacity: .75; }
.rec-jobs > .card { margin: 0; }
.rec-job { display: grid; gap: .45rem; color: var(--ink); text-decoration: none; border-top: 4px solid var(--brand); }
.rec-job:hover { box-shadow: 0 0 0 2px var(--brand); }
.rec-job-top { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.rec-job-top strong { font-size: 1.1rem; }
.rec-facts { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .87rem; color: var(--muted); }
.rec-general { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; border-left: 5px solid var(--gmg-yellow); margin-bottom: 1.5rem; }
.rec-mine { margin-bottom: 1.5rem; } .rec-mine h2 { margin-top: 0; }
.rec-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rec-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.2rem; align-items: start; }
.rec-side { position: sticky; top: calc(var(--top-h, 0px) + 1rem); display: grid; gap: .8rem; }
.rec-side dl, .rec-check dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; }
.rec-side dt, .rec-check dt { color: var(--muted); font-size: .9rem; }
.rec-side dd, .rec-check dd { margin: 0; overflow-wrap: anywhere; }
.rec-apply { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.rec-progress { position: sticky; top: 1rem; }
.rec-progress ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: rp; }
.rec-progress li { counter-increment: rp; }
.rec-progress li > * { display: flex; gap: .55rem; align-items: center; padding: .4rem .6rem; border-radius: 8px; font-size: .92rem; color: var(--muted); text-decoration: none; }
.rec-progress li > *::before { content: counter(rp); flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--grey-bg); color: var(--grey-ink); }
.rec-progress li.done > * { color: var(--ink); }
.rec-progress li.done > *::before { content: "\2713"; background: var(--ok-bg); color: var(--ok-ink); }
.rec-progress li.here > * { background: var(--brand-tint); color: var(--ink); font-weight: 700; }
.rec-progress li.here > *::before { background: var(--brand); color: #fff; }
.rec-progress li:last-child { margin-top: .4rem; }
.rec-step h2 { margin-top: 0; }
.rec-step .field textarea { width: 100%; }
.rec-text { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1rem; max-height: 50vh; overflow-y: auto; }
.rec-text p { margin: 0 0 .7rem; } .rec-text p:last-child { margin: 0; }
.rec-question { font-weight: 700; font-size: 1.05rem; }
.rec-uploaded { background: var(--ok-bg); color: var(--ok-ink); padding: .5rem .8rem; border-radius: 8px; }
.rec-ref { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem 1rem; margin: 0 0 1rem; }
.rec-ref legend { font-weight: 700; padding: 0 .3rem; }
.rec-nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sig-pad { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 10 / 3; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); touch-action: none; margin-bottom: .5rem; }
.rec-check { margin-bottom: 1rem; } .rec-check h2 { margin: 0 0 .6rem; font-size: 1.1rem; }
.rec-check-head { display: flex; justify-content: space-between; align-items: baseline; }
.rec-send { margin: 1rem 0 .6rem; }
.rec-sig { display: block; max-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-top: .6rem; }
.rec-filter { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: 0 0 1rem; }
.rec-filter input[type=search] { flex: 1; min-width: 220px; }
.rec-tabs { display: flex; gap: .4rem; }
.rec-tabs a { padding: .3rem .8rem; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; }
.rec-tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.rec-app-row { display: grid; grid-template-columns: minmax(12rem, 1.2fr) 1.5fr auto auto; gap: .4rem 1rem; align-items: center; padding: .8rem .3rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rec-app-row:last-child { border-bottom: 0; } .rec-app-row:hover { background: var(--brand-tint); }
.rec-flag { border-left: 5px solid var(--bad-ink); background: var(--bad-bg); color: var(--bad-ink); padding: .7rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1rem; }
.rec-staff-nav { margin-bottom: 1rem; }
@media (max-width: 860px) {
  .rec-detail, .rec-apply { grid-template-columns: 1fr; }
  .rec-progress { position: static; } .rec-progress ol { display: flex; flex-wrap: wrap; gap: .3rem; }
  .rec-progress li > * { padding: .25rem .5rem; font-size: .82rem; }
  .rec-side { position: static; }
  .rec-app-row { grid-template-columns: 1fr auto; }
}
.rec-actions h2, .rec-side .card h2 { margin: 0 0 .6rem; font-size: 1.05rem; }
.rec-side .card { margin: 0; }
.rec-check-line { display: flex; gap: .5rem; align-items: center; font-weight: 400; margin: 0 0 .6rem; }
.rec-archive { margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.rec-archive summary { cursor: pointer; font-weight: 600; color: var(--bad-ink); }
.rec-archive form { display: grid; gap: .45rem; margin-top: .6rem; }
.rec-archive select, .rec-archive textarea, .rec-side textarea { width: 100%; }
.rec-inline { display: flex; gap: .5rem; } .rec-inline select { flex: 1; min-width: 0; }
.rec-history { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .6rem; }
.rec-history li { display: grid; gap: .1rem; border-left: 3px solid var(--line); padding-left: .6rem; }
.rec-opened { margin-top: .8rem; font-size: .9rem; } .rec-opened summary { cursor: pointer; color: var(--muted); }
.rec-opened ul { margin: .4rem 0 0; padding-left: 1rem; }
.rec-mine-toggle { display: flex; gap: .4rem; align-items: center; font-weight: 400; margin: 0; }
.rec-bar { height: .7rem; border-radius: 99px; background: var(--grey-bg); overflow: hidden; margin: .4rem 0 .8rem; }
.rec-bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.rec-mini-bar { display: inline-block; width: 70px; height: .45rem; border-radius: 99px; background: var(--grey-bg); overflow: hidden; vertical-align: middle; }
.rec-mini-bar span { display: block; height: 100%; background: var(--brand); }
.rec-checklist { margin-bottom: 1rem; } .rec-checklist h2 { margin: 0; }
.rec-items { list-style: none; margin: 0; padding: 0; }
.rec-item { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); }
.rec-item-main { display: grid; gap: .15rem; min-width: 0; }
.rec-item-icon { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--line); }
.rec-item.done .rec-item-icon { background: var(--ok-ink); border-color: var(--ok-ink); box-shadow: inset 0 0 0 4px var(--card); }
.rec-item.waiting .rec-item-icon { border-color: var(--warn-ink); background: var(--warn-bg); }
.rec-item.not_needed { opacity: .55; } .rec-item.not_needed .rec-item-icon { border-style: dashed; }
.rec-item-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.rec-item-actions form { margin: 0; display: flex; gap: .3rem; }
.rec-item-actions details summary { list-style: none; } .rec-item-actions details[open] form { margin-top: .4rem; }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
.small-sig { max-width: 160px; margin-top: .3rem; }
.rec-sub { border-top: 0; padding-top: 0; margin-top: .6rem; }
.rec-sub summary { color: var(--brand-text); }
.rec-docs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.rec-docs .card { margin: 0; } .rec-docs h2 { margin-top: 0; font-size: 1.1rem; }
@media (max-width: 700px) { .rec-item { grid-template-columns: auto 1fr; } .rec-item-actions { grid-column: 1 / -1; justify-content: flex-start; } }
/* Recruitment dashboard: map, charts and table */
.rec-view-btns { display: flex; gap: .5rem; }
.rec-pill { border: 2px solid var(--brand); background: var(--card); color: var(--brand-text); border-radius: 99px; padding: .3rem 1rem; font: inherit; font-weight: 700; cursor: pointer; }
.rec-pill.on { background: var(--brand); color: #fff; }
.rec-map-card { padding: 0; overflow: hidden; margin-bottom: 1rem; }
.rec-map-canvas { height: 260px; background: #aad3df; }
.rec-map-note { margin: 0; padding: .4rem .9rem; }
.rec-pin { background: #e5484d; border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.rec-pin.many { background: var(--brand); border-radius: 50%; transform: none; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(39,105,85,.3); }
.rec-pin.many span { color: #fff; font-weight: 700; font-size: .85rem; }
.rec-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.rec-charts > .card.rec-chart { margin: 0; } .rec-chart h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.rec-chart-body { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; align-items: center; }
.rec-donut { width: 130px; height: 130px; }
.rec-donut-n { font-size: 7px; font-weight: 700; fill: var(--ink); }
.rec-key { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .85rem; }
.rec-key i { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; margin-right: .4rem; vertical-align: -1px; }
.rec-key b { color: var(--muted); font-weight: 600; margin-left: .2rem; }
.rec-table-card { padding-top: 0; }
.rec-bigtabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-bottom: 1px solid var(--line); margin: 0 -1.25rem 1rem; }
.rec-bigtabs a { display: grid; justify-items: center; padding: .8rem .4rem .7rem; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; }
.rec-bigtabs a b { font-size: 1.5rem; color: var(--ink); line-height: 1.2; } .rec-bigtabs a span { font-size: .85rem; }
.rec-bigtabs a.on { border-bottom-color: var(--brand); color: var(--brand-text); } .rec-bigtabs a.on b { color: var(--brand-text); }
.rec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rec-table th { text-align: left; font-size: .82rem; color: var(--muted); padding: .5rem .6rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
.rec-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rec-table tbody tr { cursor: pointer; } .rec-table tbody tr:hover td { background: var(--brand-tint); }
.rec-table a { color: var(--ink); text-decoration: none; }
.rec-table .nowrap { white-space: nowrap; }
tr.act-active td { background: color-mix(in srgb, var(--ok-bg) 55%, transparent); }
tr.act-quiet td { background: color-mix(in srgb, var(--warn-bg) 70%, transparent); }
tr.act-stalled td { background: color-mix(in srgb, var(--bad-bg) 60%, transparent); }
.rec-prog { position: relative; display: block; width: 90px; height: 1.25rem; background: var(--grey-bg); border-radius: 4px; overflow: hidden; }
.rec-prog span { display: block; height: 100%; }
.rec-prog.low span { background: #e5484d; } .rec-prog.mid span { background: #f5a524; } .rec-prog.high span { background: #2f7de1; }
.rec-prog em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ink); }
.rec-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin: .8rem 0 0; }
.rec-legend span { padding: .1rem .6rem; border-radius: 4px; }
.rec-legend .act-active { background: var(--ok-bg); } .rec-legend .act-quiet { background: var(--warn-bg); } .rec-legend .act-stalled { background: var(--bad-bg); }
@media (max-width: 960px) { .rec-charts { grid-template-columns: 1fr; } .rec-bigtabs { grid-template-columns: repeat(3, 1fr); } }
.rec-pop-name { font-weight: 700; font-size: 1rem; }
.rec-pop-stage { color: #555; font-size: .85rem; }
.rec-pop-hr { margin: .4rem 0; border: 0; border-top: 1px solid #ddd; }
/* Applicants -> Candidates -> Employees switcher */
.rec-areas { display: flex; align-items: stretch; gap: .5rem; margin: 0 0 1rem; }
.rec-areas a { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: .6rem; padding: .7rem 1rem; border: 2px solid var(--line); border-radius: 10px; background: var(--card); text-decoration: none; color: var(--muted); font-weight: 700; }
.rec-areas a b { font-size: 1.5rem; color: var(--ink); }
.rec-areas a:hover { border-color: var(--brand); }
.rec-areas a.on { border-color: var(--brand); background: var(--brand); color: #fff; } .rec-areas a.on b { color: #fff; }
.rec-areas-arrow { align-self: center; color: var(--muted); font-size: 1.2rem; }
@media (max-width: 640px) { .rec-areas { gap: .25rem; } .rec-areas a { flex-direction: column; align-items: center; gap: 0; padding: .5rem .25rem; font-size: .85rem; } .rec-areas-arrow { display: none; } }
/* Bar chart (taken on by month) */
.rec-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: .3rem; height: 140px; align-items: end; }
.rec-bar-col { display: grid; grid-template-rows: 1rem 1fr 1rem; height: 100%; align-items: end; text-align: center; }
.rec-bar-fill { display: block; background: #2f7de1; border-radius: 3px 3px 0 0; min-height: 2px; align-self: end; }
.rec-bar-n { font-size: .75rem; color: var(--muted); align-self: end; }
.rec-bar-label { font-size: .7rem; color: var(--muted); }
.rec-hire { margin-top: .75rem; }
/* Recruitment side menu (as the old system: Inbox, Applicants, Candidates, Employees...) */
.rec-shell { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.rec-menu { position: sticky; top: calc(var(--top-h, 0px) + 1rem); display: grid; gap: .25rem; padding: .5rem 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.rec-menu a { position: relative; display: grid; justify-items: center; gap: .25rem; padding: .65rem .25rem; text-decoration: none; color: var(--ink); font-size: .8rem; font-weight: 600; border-left: 3px solid transparent; }
.rec-menu a:hover { background: var(--brand-tint); }
.rec-menu a.on { color: var(--brand-text); border-left-color: var(--brand); background: var(--brand-tint); }
.rec-menu svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rec-menu .nav-count { position: absolute; top: .3rem; right: .9rem; margin: 0; }
.rec-inbox-kind { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .5rem; background: #2f7de1; }
.rec-inbox-kind.interview { background: #f5a524; } .rec-inbox-kind.check { background: #1fbf8f; }
@media (max-width: 760px) {
  .rec-shell { grid-template-columns: 1fr; gap: .75rem; }
  .rec-menu { position: static; grid-auto-flow: column; grid-auto-columns: minmax(72px, 1fr); overflow-x: auto; padding: 0; }
  .rec-menu a { border-left: 0; border-bottom: 3px solid transparent; font-size: .72rem; }
  .rec-menu a.on { border-bottom-color: var(--brand); }
  .rec-menu .nav-count { right: .4rem; }
}
.rec-inbox { padding-top: .75rem; }
/* Person page (as the old system: profile on the left, "X% ready to work", rings, pending tasks, timeline) */
.rec-person { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.rec-profile { position: sticky; top: calc(var(--top-h, 0px) + 1rem); }
.rec-profile-card { margin: 0; text-align: center; }
.rec-profile-card h1 { font-size: 1.3rem; margin: .5rem 0 .1rem; }
.rec-profile-card h1::after { display: none; }
.rec-avatar { width: 84px; height: 84px; margin: .25rem auto 0; border-radius: 50%; background: var(--brand-tint); color: var(--brand-text); display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; }
.rec-ptabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1rem -1.25rem .75rem; border-bottom: 1px solid var(--line); }
.rec-ptabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: .55rem .2rem; font: inherit; font-size: .85rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.rec-ptabs button.on { color: var(--brand-text); border-bottom-color: var(--brand); }
.rec-panel { text-align: left; }
.rec-panel dl { display: grid; gap: .1rem; margin: 0; }
.rec-panel dt { color: var(--muted); font-size: .78rem; margin-top: .5rem; }
.rec-panel dd { margin: 0; overflow-wrap: anywhere; }
.rec-panel textarea { width: 100%; }
.rec-profile-msg { margin-top: 1rem; width: 100%; }
.rec-ready { display: flex; align-items: center; gap: .9rem; background: var(--brand); color: #fff; border-radius: 12px; padding: .9rem 1.25rem; margin-bottom: 1rem; }
.rec-ready h2 { margin: 0; font-size: 1.35rem; color: #fff; }
.rec-ready-ring { width: 40px; height: 40px; flex: none; }
.rec-rings { display: flex; flex-wrap: wrap; justify-content: space-around; gap: .75rem; }
.rec-ring { display: grid; justify-items: center; gap: .3rem; color: #2f7de1; min-width: 84px; }
.rec-ring.full { color: #1fbf8f; }
.rec-ring svg { width: 64px; height: 64px; }
.rec-ring text { font-size: 8px; font-weight: 700; fill: var(--ink); }
.rec-ring span { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.rec-person-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.rec-person-cards > .card { margin: 0; }
.rec-pending h2, .rec-timeline h2, .rec-answers h2 { margin: 0 0 .6rem; font-size: 1.05rem; }
.rec-pending ul { margin: 0 0 .75rem; padding-left: 1.2rem; }
.rec-pending li { margin: .2rem 0; }
.rec-pending-meta { border-top: 1px solid var(--line); padding-top: .6rem; margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; align-items: center; }
.rec-pending-meta dt { color: var(--muted); font-size: .85rem; } .rec-pending-meta dd { margin: 0; }
.rec-tl { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.rec-tl li { display: grid; grid-template-columns: 110px 18px 1fr; gap: .75rem; align-items: start; padding-bottom: .9rem; position: relative; }
.rec-tl li::before { content: ""; position: absolute; left: calc(110px + .75rem + 8px); top: 1rem; bottom: 0; width: 2px; background: var(--line); }
.rec-tl li:last-child::before { display: none; }
.rec-tl-at { font-size: .75rem; color: var(--muted); text-align: right; text-transform: uppercase; padding-top: .15rem; }
.rec-tl-dot { width: 18px; height: 18px; border-radius: 50%; background: #2f7de1; box-shadow: 0 0 0 3px var(--card); position: relative; z-index: 1; }
.rec-tl li.note .rec-tl-dot { background: #f5a524; }
.rec-timeline h3 { margin: 0; font-size: 1rem; }
.rec-answers summary { cursor: pointer; list-style: none; } .rec-answers summary h2 { display: inline; }
.rec-answers summary::before { content: "▸ "; } .rec-answers[open] summary::before { content: "▾ "; }
.rec-answers .rec-check { border-top: 1px solid var(--line); padding: .75rem 0; }
.rec-answers .rec-check h2 { font-size: 1rem; }
.rec-answers .rec-check dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; }
.rec-answers .rec-check dt { color: var(--muted); font-size: .9rem; } .rec-answers .rec-check dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 1000px) { .rec-person { grid-template-columns: 1fr; } .rec-profile { position: static; } .rec-person-cards { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rec-tl li { grid-template-columns: 70px 14px 1fr; } .rec-tl li::before { left: calc(70px + .75rem + 6px); } .rec-tl-dot { width: 14px; height: 14px; } }

/* The top of the portal (bars, main menu, sub-menu) stays put; the page scrolls underneath. */
@media screen and (min-width: 761px) {
  .top-fixed { position: sticky; top: 0; z-index: 70; }
  .top-fixed .message-bar { position: static; }
  html { scroll-padding-top: calc(var(--top-h, 0px) + .5rem); }
}
@media (max-width: 760px) { .top-fixed { display: contents; } }
@media print { .top-fixed { position: static; } }
.leaflet-container { isolation: isolate; z-index: 0; }
/* Person page: banner buttons, rings as tabs, panels, dialogs */
.rec-ready { flex-wrap: wrap; }
.rec-ready h2 { flex: 1; }
.rec-ready-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.rec-ready-btn { background: transparent; color: #fff; border: 1.5px solid #fff; border-radius: 6px; padding: .4rem .85rem; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.rec-ready-btn:hover { background: rgba(255,255,255,.15); }
.rec-rings { padding-bottom: 0; }
button.rec-ring { background: none; border: 0; border-bottom: 3px solid transparent; padding: .25rem .4rem .6rem; font: inherit; cursor: pointer; }
button.rec-ring.on { border-bottom-color: var(--brand); } button.rec-ring.on span { color: var(--brand-text); }
button.rec-ring:hover span { color: var(--ink); }
.rec-ring-icon { color: var(--muted); }
.rec-tabpanel h3 { font-size: .95rem; margin: 1rem 0 .4rem; color: var(--muted); }
.rec-dialog { border: 0; border-radius: 12px; padding: 1.25rem 1.5rem; width: min(480px, calc(100vw - 2rem)); background: var(--card); color: var(--ink); box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.rec-dialog::backdrop { background: rgba(0,0,0,.45); }
.rec-dialog h2 { margin: 0 0 .75rem; font-size: 1.2rem; }
.rec-dialog input:not([type=radio]):not([type=checkbox]), .rec-dialog select, .rec-dialog textarea { width: 100%; }
.rec-dialog label { display: block; margin-top: .6rem; }
.rec-task-kind { border: 0; padding: 0; margin: .75rem 0 0; } .rec-task-kind label { margin-top: .3rem; font-weight: 400; }
.rec-dialog-btns { display: flex; gap: .5rem; margin-top: 1rem; }
.rec-avatar svg { width: 54px; height: 54px; fill: currentColor; opacity: .55; }
.rec-avatar-img { object-fit: cover; display: block; padding: 0; }
.rec-photo-form { margin-top: .6rem; display: grid; justify-items: center; gap: .2rem; }
.rec-photo-btn { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 6px; padding: .4rem .8rem; font-size: .85rem; cursor: pointer; color: var(--ink); background: var(--card); }
.rec-photo-btn:hover { border-color: var(--brand); }
.rec-photo-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rec-photo-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rec-photo-btn:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.rec-inbox-kind.expiry { background: #e5484d; }
.rec-ready-btns form { margin: 0; }
/* Recruitment search */
.rec-menu .rec-search-btn { border-bottom: 1px solid var(--line); margin-bottom: .25rem; }
.rec-search { border: 0; border-radius: 12px; padding: 0; width: min(640px, calc(100vw - 2rem)); margin-top: 12vh; background: var(--card); color: var(--ink); box-shadow: 0 16px 50px rgba(0,0,0,.35); }
.rec-search::backdrop { background: rgba(0,0,0,.4); }
.rec-search form { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.rec-search form svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.rec-search input { flex: 1; border: 0 !important; outline: 0; font: inherit; font-size: 1.1rem; background: transparent; color: var(--ink); padding: .2rem 0; box-shadow: none !important; }
.rec-search-list { list-style: none; margin: 0; padding: .35rem; max-height: 55vh; overflow-y: auto; }
.rec-search-list:empty { display: none; }
.rec-search-list li.muted { padding: .7rem .8rem; }
.rec-search-list a { display: grid; grid-template-columns: 4.2rem 1fr; column-gap: .75rem; padding: .55rem .8rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.rec-search-list a:hover, .rec-search-list a.on { background: var(--brand-tint); }
.rec-search-list strong { grid-column: 2; } .rec-search-list small { grid-column: 2; color: var(--muted); }
.rec-search-kind { grid-row: span 2; align-self: center; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-text); }
.rec-search-hint { margin: 0; padding: .5rem 1.1rem .7rem; border-top: 1px solid var(--line); }
.rec-search-page { padding: .5rem 0 0; max-height: none; }
/* References */
.rec-refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin: .75rem 0 1rem; }
.rec-ref-card { border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; }
.rec-ref-card header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .6rem; }
.rec-ref-card header .badge { margin-left: auto; }
.rec-ref-card header .rec-search-kind { width: 100%; }
.rec-ref-card dl { display: grid; grid-template-columns: 1fr; gap: .1rem; margin: .5rem 0 0; }
.rec-ref-card dt { color: var(--muted); font-size: .82rem; margin-top: .45rem; } .rec-ref-card dd { margin: 0; }
.rec-ref-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; align-items: start; }
.rec-ref-actions form { margin: 0; }
.rec-ref-change { display: grid; gap: .4rem; margin-top: .5rem; min-width: 240px; }
.rec-ref-given { margin-top: .5rem; } .rec-ref-given summary { cursor: pointer; color: var(--muted); }
.rec-referee .rec-rate-table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; }
.rec-referee .rec-rate-table th, .rec-referee .rec-rate-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.rec-referee .rec-rate-table select { width: 100%; }
.rec-referee { max-width: 760px; margin: 0 auto; } .rec-referee .card + .card { margin-top: 1rem; } .rec-referee details summary { cursor: pointer; }
.rec-refs { align-items: start; }
.rec-referee .rec-rate-table th { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--ink); font-weight: 400; background: none; }
/* Task groups */
.rec-settings-nav { margin-bottom: 1rem; }
.rec-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; align-items: start; }
.rec-groups > .card { margin: 0; }
.rec-group ul { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.rec-group li { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.rec-group-btns { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; }
.rec-group-btns form { margin: 0; } .rec-group-btns form:first-child { margin-right: auto; }
.rec-group-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.rec-group-table th { text-align: left; font-size: .82rem; color: var(--muted); padding: .3rem .4rem; }
.rec-group-table td { padding: .3rem .4rem; } .rec-group-table input, .rec-group-table select { width: 100%; }
.rec-group-form { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }
.rec-group-pick { display: block; padding: .45rem 0; font-weight: 400; } .rec-group-pick .small { display: block; margin-left: 1.6rem; }
/* Reports */
.rec-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rec-report-grid > .card { margin: 0; } .rec-report.wide { grid-column: 1 / -1; }
.rec-report h2 { margin: 0 0 .75rem; font-size: 1.05rem; } .rec-report h3 { font-size: .95rem; margin: 1rem 0 .4rem; }
.rec-bars-tall { height: 180px; }
.rec-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.rec-funnel li { position: relative; background: var(--grey-bg); border-radius: 6px; min-height: 2.1rem; overflow: hidden; }
.rec-funnel-bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, #2f7de1 30%, transparent); }
.rec-funnel-text { position: relative; display: block; padding: .45rem .7rem; }
.rec-times { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; margin: 0 0 .75rem; }
.rec-times dt { color: var(--muted); } .rec-times dd { margin: 0; text-align: right; }
.rec-hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.rec-hbars li { display: grid; grid-template-columns: minmax(8rem, 40%) 1fr 2.5rem; gap: .6rem; align-items: center; font-size: .9rem; }
.rec-hbar { height: .8rem; background: var(--grey-bg); border-radius: 4px; overflow: hidden; } .rec-hbar span { display: block; height: 100%; background: #2f7de1; }
.rec-hbars strong { text-align: right; }
.rec-eq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem 1.5rem; }
.rec-eq-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.rec-eq-table th, .rec-eq-table td { padding: .3rem .4rem; border-bottom: 1px solid var(--line); text-align: left; }
.rec-eq-table th:not(:first-child), .rec-eq-table td:not(:first-child) { text-align: right; width: 5rem; }
@media (max-width: 900px) { .rec-report-grid { grid-template-columns: 1fr; } }

/* Recruitment viewers: look and add notes only */
.rec-view-only form[method="post"]:not(.rec-keep) { display: none; }
.rec-approval { background: var(--warn-bg); color: var(--warn-ink); border-left: 4px solid #ecd48a; padding: .5rem .75rem; border-radius: 6px; }
.rec-stepper { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.rec-stepper-pos { font-size: .9rem; color: var(--muted, #5a6d65); text-align: center; }
.rec-stepper span[aria-disabled] { opacity: .4; pointer-events: none; }

/* Policies and documents */
.linklike { background: none; border: 0; padding: 0; color: var(--brand-text, var(--brand)); text-decoration: underline; cursor: pointer; font: inherit; }
.pol-list { list-style: none; margin: 0; padding: 0; }
.pol-list li { display: flex; align-items: center; gap: .8rem; justify-content: space-between; padding: .7rem .2rem; border-bottom: 1px solid var(--line); }
.pol-list li:last-child { border-bottom: 0; }
.pol-list a { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.pol-list a strong { color: var(--brand-text, var(--brand)); }
.pol-list a span { color: var(--muted); font-size: .88rem; }
.pol-group { margin: 1.4rem 0; } .pol-group > h2 { margin-bottom: .3rem; }
.pol-group .pol-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1rem; }
.pol-tosign { border-left: 4px solid #e0a800; } .pol-tosign h2 { display: flex; align-items: center; gap: .5rem; }
.pol-search { max-width: 30rem; }
.pol-doc { position: relative; margin-bottom: 1.2rem; }
.pol-tools { float: right; display: flex; gap: .5rem; align-items: center; }
.pol-cat { color: var(--brand-text, var(--brand)); font-weight: 600; margin: 0 0 .2rem; font-size: .9rem; }
.pol-head h1 { margin: 0 0 .8rem; }
.pol-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; }
.pol-facts div { flex: 1 1 8rem; border-top: 3px solid var(--brand); background: var(--brand-tint); border-radius: 6px; padding: .45rem .7rem; }
.pol-facts dt { font-size: .78rem; color: var(--muted); } .pol-facts dd { margin: 0; font-weight: 600; }
.pol-contents { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.2rem; margin-bottom: 1.4rem; }
.pol-contents h2 { font-size: 1rem; margin: 0 0 .3rem; } .pol-contents ol { margin: 0; padding-left: 1.2rem; columns: 2 16rem; }
.pol-body { line-height: 1.6; max-width: 52rem; }
.pol-body h2 { margin: 1.8rem 0 .6rem; padding-bottom: .25rem; border-bottom: 3px solid #B8D54C; scroll-margin-top: calc(var(--top-h, 0px) + 1rem); }
.pol-body h2.doc-part { border-bottom-color: var(--brand-dark); }
.pol-body h3 { margin: 1.2rem 0 .4rem; color: var(--brand-text, var(--brand)); }
.pol-body li { margin-bottom: .3rem; }
.doc-note { background: var(--warn-bg); color: var(--warn-ink); border-left: 4px solid #e0a800; border-radius: 6px; padding: .7rem 1rem; margin: 1rem 0; }
.doc-note p:last-child { margin-bottom: 0; }
.doc-table th { background: var(--brand); color: #fff; text-align: left; padding: .45rem .6rem; }
.doc-table td { border-bottom: 1px solid var(--line); padding: .45rem .6rem; vertical-align: top; }
.pol-sign { border-top: 4px solid var(--brand); }
.pol-conf { text-align: center; }
.pol-bar { display: inline-block; width: 4.5rem; height: .45rem; background: var(--grey-bg); border-radius: 99px; overflow: hidden; vertical-align: middle; }
.pol-bar i { display: block; height: 100%; background: var(--brand); }
.pol-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.pol-summary .card { margin: 0; } .pol-summary h2 { font-size: 1rem; margin: 0 0 .4rem; }
.pol-big { font-size: 2rem; font-weight: 700; margin: 0; }
.pol-reg-head { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; }
.pol-reg-head .tabs { margin: 0; }
.pol-edit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.pol-edit-cols .card { margin: 0; }
.pol-toolbar { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem; }
.doc-editor { width: 100%; font: .92rem/1.5 ui-monospace, Menlo, Consolas, monospace; min-height: 60vh; }
.pol-preview { max-height: calc(100vh - var(--top-h, 0px) - 1.5rem); overflow: auto; position: sticky; top: calc(var(--top-h, 0px) + .5rem); padding: 0 .3rem .6rem; }
.pol-live-head { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .4rem; }
.pol-preview .pol-paper { font-size: .9rem; }
.pol-edit-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.pol-edit-actions { position: sticky; bottom: 0; background: var(--bg); padding: .7rem 0; z-index: 2; }
.pol-help code { background: var(--grey-bg); padding: 0 .25rem; border-radius: 3px; }
@media (max-width: 900px) { .pol-edit-cols { grid-template-columns: 1fr; } .pol-preview { position: static; max-height: none; } }
@media print { .pol-doc { background-image: none !important; } .pol-body { max-width: none; } }
.pol-print-mark, .pol-noprint { display: none; }
@media print {
  .pol-print-mark { display: block; position: fixed; top: 45%; left: 0; right: 0; text-align: center; transform: rotate(-30deg); font: 700 14pt Arial, sans-serif; color: rgba(16, 36, 29, .12); z-index: 5; }
  .pol-no-print, .pol-sign { display: none !important; }
  .pol-noprint { display: block; font-size: 14pt; }
}
.doc-pre { background: var(--grey-bg); border-radius: 6px; padding: .7rem 1rem; white-space: pre-wrap; font: .9rem/1.5 ui-monospace, Menlo, Consolas, monospace; overflow-x: auto; }
.doc-note ul { margin: .3rem 0; padding-left: 1.2rem; }

/* Documents shown as a branded GMG page, like the PDF (always light, whatever the theme) */
.pol-paper { --ink: #222; --muted: #5b6b65; --line: #d6e2dd; --brand-text: #276955; --brand-tint: #eef5f2; --grey-bg: #f2f5f4;
  --warn-bg: #fff5d6; --warn-ink: #6b4e00; color: #222; background-color: #fff; background-repeat: repeat; max-width: 860px; margin: 0 auto;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .14); border-radius: 4px; overflow: hidden; }
.pp-band { background: #10241d; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 2.4rem 1.2rem; }
.pp-band img { width: 150px; max-width: 40%; } .pp-contact { text-align: right; font-size: .82rem; line-height: 1.5; }
.pp-checks { height: 10px; background: url("../img/email-checks.3b086c0f104f.png") repeat-x; background-size: auto 10px; }
.pp-inner { padding: 1.6rem 2.4rem 1.2rem; }
.pp-cat { color: #276955; font-weight: 700; font-size: .88rem; margin: 0 0 .2rem; }
.pp-title { font-family: Poppins, Quicksand, Arial, sans-serif; font-size: 2rem; line-height: 1.15; color: #10241d; margin: 0 0 1rem; }
.pp-title::after { display: none; }
.pp-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.3rem; }
.pp-facts div { flex: 1 1 8rem; border-top: 3px solid #276955; background: #eef5f2; border-radius: 5px; padding: .45rem .7rem; }
.pp-facts dt { font-size: .76rem; color: #5b6b65; } .pp-facts dd { margin: 0; font-weight: 700; color: #10241d; }
.pp-contents { border: 1px solid #d6e2dd; border-radius: 6px; padding: .8rem 1.2rem; margin-bottom: 1.4rem; }
.pp-contents h2 { font-size: .95rem; color: #276955; margin: 0 0 .3rem; border: 0; padding: 0; }
.pp-contents ul { margin: 0; padding: 0; list-style: none; columns: 2 15rem; } .pp-contents li { margin-bottom: .2rem; } .pp-contents a { color: #276955; }
.pol-paper .pol-body { max-width: none; } .pol-paper .pol-body a { color: #276955; }
.pol-paper .pol-body h2 { color: #10241d; font-family: Poppins, Quicksand, Arial, sans-serif; font-size: 1.25rem; }
.pol-paper .doc-table th { background: #276955; }
.pp-foot { margin: 1rem 2.4rem 0; padding: .7rem 0 1.4rem; border-top: 3px solid #10241d; font-size: .8rem; color: #3a4a44; }
.pp-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; } .pp-foot-row b { color: #10241d; }
.pp-sec { margin-top: .6rem; background: #fff3b0; border-left: 5px solid #ffd60a; border-radius: 4px; padding: .45rem .8rem; color: #1d2523; }
@media (max-width: 640px) { .pp-band, .pp-inner { padding-left: 1rem; padding-right: 1rem; } .pp-foot { margin: 0 1rem; } .pp-title { font-size: 1.5rem; } }
@media print { .pol-paper { box-shadow: none; max-width: none; background-image: none !important; } }
/* Edit-on-the-page editor */
.pol-wbar { position: sticky; top: calc(var(--top-h, 0px) + .4rem); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .7rem; margin: 0 auto 1rem; max-width: 860px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.pol-wbar.off button { opacity: .4; pointer-events: none; }
.pol-wgroup { display: flex; gap: .2rem; padding-right: .6rem; border-right: 1px solid var(--line); }
.pol-wgroup:last-of-type { border-right: 0; }
.pol-wbar button { background: transparent; border: 1px solid transparent; border-radius: 6px; padding: .3rem .55rem; font: inherit; font-size: .88rem; color: var(--ink); cursor: pointer; }
.pol-wbar button:hover, .pol-wbar button:focus-visible { background: var(--brand-tint); border-color: var(--line); }
.pol-wstate { margin-left: auto; font-size: .85rem; color: var(--muted); }
#pol-editable { outline: none; min-height: 40vh; cursor: text; }
#pol-editable:focus { box-shadow: inset 0 0 0 2px rgba(184, 213, 76, .55); border-radius: 4px; }
#pol-editable td, #pol-editable th { min-width: 4rem; }
#pol-visual .pol-paper { margin-bottom: 1rem; }
#pol-textview textarea { width: 100%; min-height: 60vh; font: .9rem/1.5 ui-monospace, Menlo, Consolas, monospace; }
.pol-edit-actions { max-width: 860px; margin: 0 auto; }
.pp-medicine { background: #ffd60a; color: #1d2523; padding: 1rem 2.4rem 1.1rem; }
.pp-medicine span { display: block; font-weight: 700; font-size: .85rem; }
.pp-medicine strong { display: block; font-family: Poppins, Quicksand, Arial, sans-serif; font-size: 2.3rem; line-height: 1.1; }
@media (max-width: 640px) { .pp-medicine { padding: .8rem 1rem; } .pp-medicine strong { font-size: 1.7rem; } }
/* PGDs: lined table rows, label on the left */
.pgd-row { display: grid; grid-template-columns: minmax(9rem, 28%) 1fr; border: 1px solid #8a9a94; border-top: 0; }
.pol-body h2 + .pgd-row, .pol-body .pgd-row:first-child, .pol-body :not(.pgd-row) + .pgd-row { border-top: 1px solid #8a9a94; }
.pgd-label { font-weight: 700; color: #10241d; background: #f2f5f4; padding: .5rem .7rem; border-right: 1px solid #8a9a94; }
.pgd-cell { padding: .5rem .8rem; min-width: 0; }
.pgd-cell > :first-child { margin-top: 0; } .pgd-cell > :last-child { margin-bottom: 0; }
.pgd-cell ul, .pgd-cell ol { padding-left: 1.2rem; }
.pgd-cell .doc-pre { background: transparent; padding: 0; }
@media (max-width: 640px) { .pgd-row { grid-template-columns: 1fr; } .pgd-label { border-right: 0; border-bottom: 1px solid #8a9a94; } }
/* Medicines tiles (JRCALC-style, GMG colours) */
.pol-meds { margin: 1.4rem 0; }
.pol-meds-title { margin-bottom: .5rem; }
.pol-band { margin: 1rem 0 .7rem; padding: .55rem 1rem; border-radius: 6px; font-weight: 700; font-family: Quicksand, Poppins, Arial, sans-serif; }
.pol-band.band-yellow { background: #ffd60a; color: #1d2523; }
.pol-band.band-dark { background: #10241d; color: #fff; }
.pol-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); gap: .8rem; }
.pol-tile { display: flex; flex-direction: column; min-height: 9.5rem; background: #fff; color: #1d2523; text-decoration: none; border-radius: 6px;
  border-left: 7px solid #ffd60a; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); overflow: hidden; transition: transform .1s, box-shadow .1s; }
.pol-tile.tone-dark { border-left-color: #10241d; }
.pol-tile:hover, .pol-tile:focus-visible { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.pol-tile-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: .6rem; padding: .8rem .9rem .6rem; }
.pol-tile-name { font-size: 1.12rem; line-height: 1.25; font-weight: 700; }
.pol-tile-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.pol-tile-code { font-size: 1.7rem; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.pol-tile-badge { margin-left: auto; font-style: normal; font-weight: 700; font-size: .85rem; padding: .2rem .55rem; border-radius: 4px; }
.pol-tile-badge.ok { background: #c9f2cf; color: #11621f; }
.pol-tile-badge.todo { background: #ffe9a8; color: #6b4e00; }
.pol-tile-bar { display: flex; justify-content: space-between; background: #8a99b0; color: #fff; font-weight: 700; font-size: .85rem; padding: .35rem .9rem; }
.pol-tile.tone-yellow .pol-tile-bar { background: #3a4a44; }
.pol-tile.tone-dark .pol-tile-bar { background: #3a4a44; }
/* Policies quick find */
.pol-qf { position: relative; max-width: 40rem; margin: 0 0 1.2rem; }
.pol-qf-label { display: block; font-weight: 700; margin-bottom: .35rem; }
.pol-qf-box { display: flex; align-items: center; gap: .5rem; background: var(--card); border: 2px solid var(--brand); border-radius: 10px; padding: 0 .8rem; }
.pol-qf-box:focus-within { box-shadow: 0 0 0 3px rgba(255, 214, 10, .55); }
.pol-qf-box svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--muted); stroke-width: 2.2; flex: none; }
.pol-qf-box input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.05rem; padding: .75rem 0; color: var(--ink); outline: none; min-width: 0; }
.pol-qf-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: .3rem 0 0; padding: .3rem; list-style: none; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); max-height: 26rem; overflow: auto; }
.pol-qf-list a { display: flex; align-items: center; gap: .75rem; padding: .55rem .6rem; border-radius: 7px; text-decoration: none; color: var(--ink); }
.pol-qf-list li.on a, .pol-qf-list a:hover { background: var(--brand-tint); }
.pol-qf-code { flex: none; min-width: 3.3rem; text-align: center; font-size: .9rem; padding: .3rem .4rem; border-radius: 5px; background: #10241d; color: #fff; }
.pol-qf-code.pgd { background: #ffd60a; color: #1d2523; }
.pol-qf-text { display: flex; flex-direction: column; min-width: 0; flex: 1; } .pol-qf-text small { color: var(--muted); }
.pol-qf-badge { font-style: normal; font-weight: 700; font-size: .8rem; padding: .15rem .5rem; border-radius: 4px; }
.pol-qf-badge.ok { background: #c9f2cf; color: #11621f; } .pol-qf-badge.todo { background: #ffe9a8; color: #6b4e00; }
.pol-qf-none { padding: .6rem; color: var(--muted); }
/* Staff reading page: discourage copying and screenshots (they can't be fully blocked in a browser) */
.pol-protect { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; position: relative; }
.pol-protect.pol-hidden .pol-paper { filter: blur(14px); }
.pol-shield { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .3rem;
  padding-top: 18vh; background: rgba(16, 36, 29, .55); color: #fff; border: 0; border-radius: 4px; cursor: pointer; font: inherit; }
.pol-shield[hidden] { display: none; }
.pol-shield strong { font-size: 1.4rem; } .pol-shield span { font-size: 1rem; }
.pp-signoff { margin-top: 1.6rem; } .pp-signoff h2 { font-size: 1.1rem; color: #10241d; border-bottom: 3px solid #ffd60a; padding-bottom: .2rem; }
.pp-signoff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .6rem; }
.pp-signoff-grid div { border: 1px solid #8a9a94; border-radius: 4px; padding: .6rem .8rem; display: flex; flex-direction: column; }
.pp-signoff-grid span { font-weight: 700; color: #276955; font-size: .85rem; } .pp-signoff-grid em { font-style: normal; color: #5b6b65; } .pp-signoff-grid small { color: #5b6b65; }
/* Policy and document control register */
.reg-summary { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.reg-summary a { flex: 1 1 7rem; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 8px; padding: .5rem .8rem; }
.reg-summary a.ok { border-top-color: #2e9e4a; } .reg-summary a.warn { border-top-color: #e0a800; } .reg-summary a.bad { border-top-color: #c62828; }
.reg-summary a.on { box-shadow: 0 0 0 2px var(--brand) inset; } .reg-summary b { font-size: 1.5rem; } .reg-summary span { font-size: .85rem; color: var(--muted); }
.reg-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.reg-filters input[type=search] { flex: 1 1 16rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--card); color: var(--ink); }
.reg-filters select { padding: .5rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--card); color: var(--ink); }
.reg-card { padding: 0; }
.reg-table { font-size: .86rem; min-width: 1100px; }
.reg-table th { background: #276955; color: #fff; text-align: left; padding: .45rem .55rem; border: 1px solid #1c4d3e; white-space: nowrap; }
.reg-table thead tr:first-child th[colspan] { background: #10241d; text-align: center; }
.reg-table td { border: 1px solid var(--line); padding: .4rem .55rem; vertical-align: top; }
.reg-table tbody tr:nth-child(even) td { background: var(--brand-tint); }
.reg-row { cursor: pointer; } .reg-row:hover td { background: #fff7cc !important; }
html[data-theme="dark"] .reg-row:hover td { background: #3a3510 !important; }
.reg-table .c { text-align: center; } .reg-no { white-space: nowrap; font-weight: 700; }
.reg-status { font-weight: 600; white-space: nowrap; } .s-published { color: #11621f; } .s-draft { color: #8a6500; } .s-review, .s-changes { color: #1f56b3; } .s-archived { color: var(--muted); }
html[data-theme="dark"] .s-published { color: #7fd99a; } html[data-theme="dark"] .s-draft { color: #ffd27a; } html[data-theme="dark"] .s-review, html[data-theme="dark"] .s-changes { color: #9cc0ff; }

/* On-screen documents open like the PDF cover: dark panel, red confidential tab, diagonal shading. */
.pp-cover { position: relative; background: #10241d linear-gradient(115deg, rgba(255,255,255,.06) 0 32%, transparent 32% 100%); color: #fff; padding: 2.6rem 2.4rem 2rem; }
.pp-cover .pp-band { background: none; padding: 0 0 2.2rem; }
.pp-cover .pp-band img { width: 190px; } .pp-cover .pp-contact { letter-spacing: .08em; opacity: .9; }
.pp-tab { position: absolute; top: .7rem; left: 0; right: 0; text-align: center; }
.pp-tab span { background: #c00000; color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .08em; padding: .2rem .8rem; border-radius: 3px; }
.pp-cv-cat { color: #ffd60a; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .4rem; }
.pp-cv-title { font-family: Poppins, Quicksand, Arial, sans-serif; font-size: 2.3rem; line-height: 1.12; margin: 0 0 .6rem; color: #fff; }
.pp-cv-sum { color: #dfe7e4; margin: 0; max-width: 46rem; }
@media (max-width: 640px) { .pp-cover { padding: 2.4rem 1rem 1.4rem; } .pp-cv-title { font-size: 1.6rem; } .pp-tab span { font-size: .62rem; } }

/* ---- Training booking progress tracker (customer and staff) ---- */
.bk-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.bk-progress-head h2 { margin: 0; }
.bk-progress-pct { font-size: 1.5rem; font-weight: 700; color: var(--brand-text); }
.bk-progress-bar { height: .7rem; background: var(--grey-bg); border-radius: 99px; overflow: hidden; margin: .5rem 0 .9rem; }
.bk-progress-bar div { height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.bk-progress.is-completed .bk-progress-bar div { background: var(--ok-ink); }
.bk-progress.is-failed .bk-progress-bar div, .bk-progress.is-overdue .bk-progress-bar div { background: var(--warn-ink); }
.bk-progress.is-rejected .bk-progress-bar div, .bk-progress.is-cancelled .bk-progress-bar div, .bk-progress.is-expired .bk-progress-bar div { background: var(--bad-ink); }
.bk-progress-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .5rem 1rem; margin: 0 0 1rem; }
.bk-progress-now dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.bk-progress-now dd { margin: .1rem 0 0; font-weight: 600; }
.badge.bk-completed { background: var(--ok-bg); color: var(--ok-ink); }
.badge.bk-failed { background: var(--warn-bg); color: var(--warn-ink); }
.badge.bk-rejected, .badge.bk-cancelled, .badge.bk-expired { background: var(--bad-bg); color: var(--bad-ink); }
.badge.bk-who-office { background: var(--brand-tint); color: var(--brand-text); }
.badge.bk-who-customer { background: var(--warn-bg); color: var(--warn-ink); }
.bk-stages { list-style: none; margin: 0; padding: 0; counter-reset: bk; }
.bk-stages > li { counter-increment: bk; position: relative; padding: 0 0 .75rem 2.1rem; }
.bk-stages > li::before { content: counter(bk); position: absolute; left: 0; top: 0; width: 1.45rem; height: 1.45rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--grey-bg); color: var(--grey-ink); }
.bk-stages > li:not(:last-child)::after { content: ""; position: absolute; left: .7rem; top: 1.55rem; bottom: .15rem; width: 2px; background: var(--line); }
.bk-stages > li.bk-done::before { content: "\2713"; background: var(--ok-bg); color: var(--ok-ink); }
.bk-stages > li.bk-current::before { background: var(--brand); color: #fff; }
.bk-stages > li.bk-stopped::before { content: "\00d7"; background: var(--bad-bg); color: var(--bad-ink); font-size: 1rem; }
.bk-stages > li.bk-skipped { opacity: .6; }
.bk-stages > li.bk-skipped::before { content: "\2013"; }
.bk-stage-line { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.bk-stage-name { font-weight: 600; }
.bk-todo .bk-stage-name, .bk-skipped .bk-stage-name { color: var(--muted); font-weight: 500; }
.bk-current .bk-stage-name { color: var(--brand-text); }
.bk-stopped .bk-stage-name { color: var(--bad-ink); }
.bk-stage-date { font-size: .85rem; color: var(--muted); }
.bk-stage-detail { font-size: .88rem; color: var(--muted); margin-top: .1rem; }
.bk-subitems { list-style: none; margin: .25rem 0 0; padding: 0; font-size: .88rem; }
.bk-subitems li::before { content: "\25cb"; margin-right: .4rem; color: var(--muted); }
.bk-subitems li.bk-done::before { content: "\2713"; color: var(--ok-ink); }
.bk-subitems li.bk-todo { color: var(--muted); }
.bk-mini { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; font-size: .85rem; }
.bk-mini-bar { flex: 1 1 6rem; max-width: 9rem; height: .45rem; background: var(--grey-bg); border-radius: 99px; overflow: hidden; }
.bk-mini-bar div { height: 100%; background: var(--brand); }
.bk-filters { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .9rem; }
.bk-filters a { font-size: .84rem; padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); background: var(--card); }
.bk-filters a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.money-rows { width: 100%; border-collapse: collapse; font-size: .92rem; }
.money-rows td { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.money-rows td.num { text-align: right; white-space: nowrap; }
.money-rows tr.total td { font-weight: 700; border-bottom: 0; }
.fin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.fin-tiles div { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 10px; padding: .6rem .8rem; }
.fin-tiles dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.fin-tiles dd { margin: .15rem 0 0; font-size: 1.25rem; font-weight: 700; }
.fin-tiles div.warn { border-top-color: var(--warn-ink); } .fin-tiles div.bad { border-top-color: var(--bad-ink); }
.fin-filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.fin-filters .field { margin: 0; }

/* Training bookings: main tabs, then one "More filters" menu beside the search */
.bk-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: -.2rem 0 1rem; }
.bk-toolbar .searchbar { margin: 0; flex: 1 1 280px; }
.bk-more select { padding: .4rem .7rem; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: .9rem; }

/* Finance page: service colours (categorical slots 1-3, validated light and dark) */
:root { --fin-training: #2a78d6; --fin-events: #eb6834; --fin-transport: #1baf7a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fin-training: #3987e5; --fin-events: #d95926; --fin-transport: #199e70; } }
:root[data-theme="dark"] { --fin-training: #3987e5; --fin-events: #d95926; --fin-transport: #199e70; }
.fin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.fin-year { display: flex; align-items: center; gap: .5rem; }
.fin-year select { padding: .35rem .6rem; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.fin-note { margin: -.4rem 0 1rem; }
.fin-tiles-4 { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.fin-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.fin-card-head h2 { margin: 0; }
.fin-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.fin-chips a { font-size: .84rem; padding: .25rem .65rem; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); background: var(--card); }
.fin-chips a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.fin-legend { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; margin: .7rem 0 0; font-size: .85rem; color: var(--muted); }
.fin-swatch { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.fin-chart svg { width: 100%; height: auto; display: block; margin-top: .4rem; }
.fin-grid { stroke: var(--line); stroke-width: 1; }
.fin-axis { font-size: 11px; fill: var(--muted); }
.fin-training { fill: var(--fin-training); background: var(--fin-training); }
.fin-events { fill: var(--fin-events); background: var(--fin-events); }
.fin-transport { fill: var(--fin-transport); background: var(--fin-transport); }
.fin-hit { fill: transparent; }
.fin-bar:hover .fin-hit, .fin-bar:focus .fin-hit { fill: var(--brand-tint); }
.fin-bar:focus { outline: none; }
.fin-table-view { margin-top: .6rem; }
.fin-total td { font-weight: 600; border-top: 2px solid var(--line); }
.fin-overdue td { background: var(--bad-bg); }

/* Invoice PDFs shown in the page: staff payments, the customer's payments card and the customer's Invoices tab. */
.invoice-viewer { margin-top: .6rem; }

.invoice-viewer iframe { display: block; width: 100%; height: min(80vh, 900px); margin-top: .5rem;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; }
@media (max-width: 640px) { .invoice-viewer iframe { height: 70vh; } }
.invoice-list { display: grid; gap: .8rem; }
.invoice-item { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
.invoice-item-head { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: baseline; justify-content: space-between; }

/* Booking page, tidier: steps fold away, money as tiles, invoices side by side, joining info next to pre-reading. */
.bk-stages-wrap > summary { cursor: pointer; font-weight: 600; color: var(--brand-text, var(--brand)); margin: 0 0 .6rem; }
.bk-stages-wrap:not([open]) > summary { margin: 0; }
.money-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.money-tiles > div { background: var(--brand-tint, #eef5f2); border-radius: 10px; padding: .6rem .8rem; display: flex; flex-direction: column; gap: .1rem; }
.money-tiles span { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.money-tiles strong { font-size: 1.25rem; }
.money-tiles em { font-style: normal; align-self: flex-start; }
.money-tiles .is-overdue { background: var(--bad-bg); }
.money-tiles .is-paid { background: var(--ok-bg); }
.pay-next { margin-top: .7rem; }
.pay-history > summary { cursor: pointer; }
.pay-history[open] > summary { margin-bottom: .4rem; }
.invoice-pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.invoice-pair .invoice-viewer iframe { height: min(60vh, 560px); }
.bk-before { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 0 1rem; align-items: start; }
@media (max-width: 640px) { .money-tiles { grid-template-columns: 1fr 1fr; } .money-tiles > div:last-child { grid-column: 1 / -1; } }
.invoice-pair .details.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.bk-before > .card { margin-top: 0; }

/* Document passwords page (name menu > Document passwords). */
.pw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; align-items: start; }
.pw-grid > .card { margin: 0; }
.pw-now { border-left: 6px solid var(--brand); }
.pw-code code { display: inline-block; font-size: 1.5rem; letter-spacing: .08em; padding: .35rem .7rem; border-radius: 8px; background: var(--brand-tint); color: var(--ink); }
.pw-pick { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
.pw-pick label { flex-basis: 100%; margin: 0; }
.pw-pick input { width: auto; margin: 0; }
.pw-result { margin-top: .8rem; padding-top: .6rem; border-top: 1px solid var(--line); }

/* Name menu: the document password and a month picker, like the awarding body's portal. */
.account-pw { padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: var(--brand-tint); }
.account-pw small { display: block; color: var(--muted); }
.account-pw-code { display: block; font-size: 1.15rem; letter-spacing: .06em; margin: .15rem 0; color: var(--ink); background: none; padding: 0; }
.account-pw-code:empty { display: none; }
.account-pw-note:empty { display: none; }
.account-pw-pick { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .35rem 0 0; font-size: .8rem; color: var(--muted); }
.account-pw-pick input { width: auto; margin: 0; padding: .2rem .35rem; font-size: .85rem; }

/* The portal footer (option D): checker band, dark green, four columns, legal line. Same on every view, both themes. */
.site-footer { text-align: left; padding: 0; margin-top: 2.5rem; background: #13261f; color: #e4f1ec; font-size: .9rem; }
.site-footer a { color: #e4f1ec; }
.foot-band { height: 18px; background: repeating-conic-gradient(#b8d54c 0 25%, #002b18 0 50%) 0 0 / 40px 18px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.foot-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.5rem; padding: 1.8rem var(--page-gutter, 16px); }
.foot-col h2 { margin: 0 0 .5rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #a9c2b8; font-family: inherit; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot-col p { margin: 0 0 .6rem; }
.foot-logo { height: 48px; width: auto; display: block; margin-bottom: .7rem; }
.foot-muted { color: #a9c2b8; }
.foot-btn { background: #f6c445; color: #2d2200; }
.foot-trust { display: grid; justify-items: start; align-content: start; gap: .5rem; }
.foot-col .foot-accred { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.1rem; max-width: 22rem; }
.foot-accred li { display: flex; align-items: center; }
.foot-accred img { height: 1.75rem; width: auto; max-width: 7.5rem; object-fit: contain; display: block; opacity: .95; }
.foot-pill { border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: .2rem .7rem; font-size: .78rem; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding: .9rem calc(var(--page-gutter, 16px) + 4.5rem) .9rem var(--page-gutter, 16px); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between; font-size: .8rem; color: #a9c2b8; }
.foot-legal a { color: #a9c2b8; }
/* The name button shows what's waiting in Messages and Manage, now that they live in the name menu. */
.account-menu summary { position: relative; }
.account-count { position: absolute; left: 1.35rem; top: -.2rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: #d64545; color: #fff; font: 700 .7rem/1.15rem system-ui, sans-serif; text-align: center; font-style: normal; }
.account-pop .nav-count { margin-left: .3rem; }

/* Training page: upcoming dates as cards (Popular courses use the normal course cards). */
.date-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .9rem; }
.date-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.date-card.is-full { opacity: .7; }
.date-card.is-mine { border-color: var(--brand); }
.dc-top { background: var(--brand); color: #fff; padding: .55rem .9rem; display: grid; gap: .05rem; }
.dc-top strong { font-size: 1.1rem; }
.dc-top span { font-size: .8rem; opacity: .9; line-height: 1.3; }
.dc-mid { padding: .7rem .9rem; display: grid; gap: .3rem; flex: 1; align-content: start; }
.dc-mid h3 { margin: 0; font-size: 1rem; }
.dc-mid h3 a { color: var(--ink); text-decoration: none; }
.dc-mid p { margin: 0; }
.dc-bot { padding: .6rem .9rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dc-price { font-variant-numeric: tabular-nums; }
.dc-bot form { margin: 0; }
