
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --surface: #FFFFFF; --surface-raised: #F2F4F8; --line: #D3D9E4; --line-soft: #EBEEF3; --field-border: #6F7B95;
  --text: #0C1833; --text-2: #3C4862; --text-3: #5C6882;
  --accent: #2F7D1B; --visitor: #2A86E8; --on-dark: #FFFFFF; --error: #A4262C; --warn-bg: #FDF1F1; --note-bg: #F3F5F9;
  --font: "Outfit", "Avenir Next", system-ui, sans-serif;
  --radius: 3px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --tap: 56px;
  --page: 600px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.55; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page { max-width: var(--page); margin: 0 auto; padding: var(--s5) var(--s4) var(--s6); }
h1 { font-size: 28px; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 var(--s5); }
h2 { font-size: 20px; margin: var(--s6) 0 var(--s3); }
p { margin: 0 0 var(--s3); color: var(--text-2); }
/* a button that has to post, dressed as the link the mockup draws (resend, log out).
   It sits above .small so that .small can still set the size and colour on top of it. */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.small { font-size: 14px; color: var(--text-3); }

/* the logo: the supplied landscape artwork for light backgrounds (docs/img/logo-dark.svg) */
.logo { display: inline-block; line-height: 0; margin: 0 0 var(--s6); }
.logo img { width: auto; height: 36px; }
.lg .logo img { height: 48px; }

/* fields and buttons, shared by every page */
.field { margin: 0 0 var(--s4); }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input, .lcard input { width: 100%; min-height: 52px; padding: 0 var(--s4); font: inherit; border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--surface-raised); color: var(--text); }
.field input[readonly] { background: transparent; border-color: var(--line); color: var(--text-3); }
input[aria-invalid="true"] { border-color: var(--error); }
.field input:focus-visible, .lcard input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field input::placeholder, .lcard input::placeholder { color: var(--text-3); opacity: 1; }
.error { color: var(--error); font-size: 15px; margin: 4px 0 0; }
.check { display: flex; gap: var(--s3); align-items: flex-start; margin: 0 0 var(--s4); }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); width: 100%; min-height: var(--tap); padding: var(--s3) var(--s5); border: 1px solid var(--text); border-radius: var(--radius); background: var(--text); color: var(--on-dark); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.quiet { background: transparent; color: var(--text); border-color: var(--field-border); font-weight: 600; }
.button svg { width: 20px; height: 20px; flex: none; }
/* link buttons one under another, and the line under them (the Payment section of /me); a link button under a form's button (the closure's Check the days page) */
a.button + a.button, a.button + p, form + a.button { margin-top: var(--s3); }
.notice { background: var(--note-bg); border-radius: var(--radius); padding: var(--s4); margin: 0 0 var(--s5); }
.notice p:last-child { margin-bottom: 0; }
/* /paid for a signed-in person: a ring turns where the button will be, for 4 s, then the button. Without this file, with reduced motion, or on focus, the button is there from the start. */
.wait { position: relative; min-height: var(--tap); }
.wait::before { content: ""; position: absolute; inset: 0; box-sizing: border-box; width: 44px; height: 44px; margin: auto; border: 4px solid var(--line); border-top-color: var(--accent); border-radius: 50%; pointer-events: none; animation: spin 1s linear infinite, fade .3s 4s forwards; }
/* A ring with a tail that fades out. Where a mask is not understood, the plain ring above stays: a mask-less gradient would be a filled disc. */
@supports ((mask: radial-gradient(#000, #000)) or (-webkit-mask: radial-gradient(#000, #000))) {
  .wait::before { border: 0; background: conic-gradient(transparent, var(--accent)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); }
}
.reveal { animation: appear .3s 4s both; }
.reveal:focus-visible { animation: none; }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes fade { to { visibility: hidden; } }
@keyframes appear { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wait::before { display: none; } .reveal { animation: none; } }
.band { background: var(--warn-bg); color: var(--error); border-radius: var(--radius); padding: var(--s3) var(--s4); margin: 0 0 var(--s4); font-weight: 600; }
.waiver { font-size: 16px; color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s5) 0; margin: 0 0 var(--s6); }
.waiver p { margin: 0; }
.waiver > * + * { margin-top: 1em; }
.waiver .indent { padding-left: 1.2em; }
.waiver ul { margin: 0; padding-left: 1.5em; color: var(--text-2); } /* the colour of the paragraphs around it */
/* Adding div makes this rule beat .admin h2 on the signed waiver page. */
div.waiver h2 { margin: 1em 0 0; font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text); }
.section { border-top: 1px solid var(--line); padding-top: var(--s5); margin-top: var(--s5); }
.qr { max-width: 100%; }
.qr svg { width: 100%; height: auto; }
.nowrap { white-space: nowrap; }

/* the admin's payment link screen: Monthly or Per session as two halves of one box, a GET button drawn as a switch for the rate,
   the code kept on the screen, the link in a dashed box and Send via email the width of the page.
   An admin h1 has no bottom margin, so the choice after it brings its own space above.
   The wrapper is .qr-page, not .mark, which is the roster's payment mark. */
.seg { display: grid; grid-template-columns: 1fr 1fr; margin: var(--s4) 0 var(--s4); border: 1px solid var(--field-border); border-radius: var(--radius); overflow: hidden; }
.seg a { display: flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--text); }
.seg a + a { border-left: 1px solid var(--field-border); }
.seg a[aria-current="true"] { background: var(--text); color: var(--on-dark); }
.switchrow { width: 100%; padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 52px; margin: 0 0 var(--s4); font-weight: 500; text-decoration: none; color: var(--text); }
.switch { position: relative; flex: none; width: 52px; height: 32px; border-radius: 16px; border: 1.5px solid var(--field-border); background: var(--surface-raised); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: var(--field-border); }
.switchrow[aria-checked="true"] .switch { background: var(--accent); border-color: var(--accent); }
.switchrow[aria-checked="true"] .switch::after { transform: translateX(20px); background: var(--on-dark); }
.qr-page .lead-line { margin-bottom: var(--s4); }
.qr-page .qr { max-width: 320px; margin: 0 auto var(--s4); }
.qr-page .url { margin: 0; padding: 10px 12px; border: 1px dashed var(--field-border); border-radius: var(--radius); font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.qr-page form { margin-top: var(--s4); }
.qr-page .rate-switch { margin-top: 0; }

/* the email login (spec 4): the same page, centred, with one card */
.lg { text-align: center; }
.lg .logo { margin-bottom: 56px; }
.lg h1 { font-size: 60px; line-height: 0.98; letter-spacing: -0.035em; margin-bottom: var(--s4); }
.lg > .small { margin-top: var(--s5); }
.lede { font-size: 19px; line-height: 1.4; color: var(--text); max-width: 20em; margin: 0 auto var(--s6); text-wrap: balance; }
.lcard { display: grid; gap: var(--s4); padding: 28px 24px; border: 1px solid var(--line); border-radius: 28px; }
.lcard p { margin: 0; }
.lcard input { height: 60px; border-radius: 12px; font-size: 18px; }
.lcard .button { min-height: 60px; border-radius: 12px; font-size: 18px; }
.sent { justify-items: center; padding: 40px 24px; }
.sent svg { color: var(--accent); }
.sent b { font-size: 18px; color: var(--text); overflow-wrap: anywhere; }

/* the page after logging in: two groups of the same weight */
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 var(--s3); }
.lead-line { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); margin: 0 0 var(--s2); }

@media (min-width: 768px) {
  .lg h1 { font-size: 112px; }
  .lede { font-size: 26px; max-width: 26em; }
  .lcard { padding: 44px; border-radius: 36px; }
}
@media (prefers-contrast: more) { :root { --line: #8E99B0; --field-border: #3C4862; --text-2: #1F2B47; --text-3: #3C4862; } }

/* ---- every page after logging in (body.in): one bar, the same on the participant's and the admin's pages ---- */
.in { --gutter: 24px; }
/* The bar stays at the top while the page moves under it, so the way back, the QR and the bell are always in reach. */
.in .bar { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); background: var(--surface); }
/* Whatever the page scrolls to (the row of a tick, #p-…, or the field the keyboard moves up to) stops below the bar, not under it: 72px of bar + 1px of line + 15px of air = 88px. */
.in * { scroll-margin-top: 88px; }
.in .bar-in { display: flex; align-items: center; gap: 4px; max-width: var(--page); min-height: 72px; margin: 0 auto; padding: var(--s3) var(--gutter); }
/* On a page below another, the way back takes its place. */
.in .logo { display: flex; flex: none; align-items: center; min-height: 44px; margin: 0 auto 0 0; }
.in .bar form { display: flex; }
.in .logout { display: inline-flex; margin-left: var(--s2); align-items: center; min-height: 44px; font-size: 14px; color: var(--text-2); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.in .ico { display: grid; flex: none; position: relative; place-items: center; width: 44px; height: 44px; color: var(--text-2); }
.in .count { position: absolute; top: 3px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--error); color: var(--on-dark); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.in .page { padding: var(--s6) var(--gutter); }
.in .back { display: flex; align-items: center; gap: var(--s2); min-height: 44px; margin-right: auto; padding-left: 3px; font-size: 15px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.in .back::before { content: ""; width: 8px; height: 8px; border-left: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }

/* ---- the admin's pages (body.in.admin) ---- */
.admin { font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.admin [hidden] { display: none !important; }
.admin h2, .admin .views a { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.admin h1 { margin: 0; font-size: 30px; line-height: 1.1; overflow-wrap: anywhere; }
.admin .eyebrow { margin: 0; }
.admin .page a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.admin .small { color: var(--text-2); }
.admin .empty { margin: 0; padding: var(--s4) 0; }
.admin .who-for { margin: var(--s2) 0 0; overflow-wrap: anywhere; }
.admin .button { font-size: 17px; }
.admin .button.slim { width: auto; min-height: 44px; padding: 0 var(--s4); font-size: 15px; }
.admin .field select, .admin .rows select, .admin .pop select { -webkit-appearance: none; appearance: none; width: 100%; min-height: 52px; padding: 0 44px 0 var(--s4); border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--surface-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 5l5 5 5-5' fill='none' stroke='%230C1833' stroke-width='2'/%3E%3C/svg%3E") right 16px center / 14px no-repeat; color: var(--text); font: inherit; }
.admin select[aria-invalid="true"] { border-color: var(--error); }
.admin select:focus-visible { outline-offset: 0; border-color: var(--accent); }
/* The date: a chevron each side, and the large day between them. The date box lies over the day, unseen, so a tap on the day opens the phone's own picker. */
.admin .datebar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.admin .iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--field-border); border-radius: var(--radius); }
.admin .iconbtn.off { border-color: var(--line); color: var(--line); }
.admin .pick { display: grid; position: relative; place-items: center; min-height: 52px; border-radius: var(--radius); }
.admin .pick:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.admin .day { font-size: clamp(26px, 8.4vw, 36px); line-height: 1.05; letter-spacing: -0.03em; text-align: center; }
.admin .day .yr { display: block; font-size: 0.5em; font-weight: 600; letter-spacing: 0; color: var(--text-3); }
.admin .pick:has([type="date"]:not([hidden])) .day::after { content: ""; display: inline-block; width: 0.22em; height: 0.22em; margin-left: 0.3em; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-0.2em) rotate(45deg); }
/* 16px although it is unseen: an iPhone zooms the page when a smaller field takes the focus. */
.admin .pick input { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; margin: 0; padding: 0; border: 0; font-size: 16px; opacity: 0; cursor: pointer; }
/* On a computer only the small calendar mark opens the picker: it is stretched over the whole box. */
.admin .pick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }
.admin .subline { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 44px; margin: 0; font-size: 14px; }
.admin .subline a { display: inline-flex; align-items: center; min-height: 44px; }
/* Without the script: a plain date box and a button. The box may shrink, so it is never wider than the screen (iOS gives it a least width of its own). */
.admin .plain { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: 0 0 var(--s4); font-size: 14px; color: var(--text-2); }
.admin .plain input { -webkit-appearance: none; appearance: none; flex: 0 1 172px; width: 172px; min-width: 0; max-width: 100%; height: 44px; padding: 0 var(--s3); border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--surface-raised); color: var(--text); font: inherit; font-size: 16px; }
/* Once the script has shown the date box over the day (docs/assets/roster-filter.js), the plain form would be a second picker. */
.admin #roster:has(#f-date:not([hidden])) .plain { display: none; }
.admin .filter { position: relative; margin: var(--s2) 0 var(--s4); }
.admin .filter input { padding-right: 52px; }
.admin .filter input::-webkit-search-cancel-button { -webkit-appearance: none; }
.admin .clear { display: grid; position: absolute; top: 4px; right: 4px; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--text-2); cursor: pointer; }
/* The tabs: one line that slides sideways and only sideways (a finger on it never moves the page or the line up and down). Its right edge fades out, so a tab cut off there shows that there is more. It is positioned so that a tab's offsetLeft is measured from this row, not from the page (docs/assets/roster-filter.js centres the chosen tab with it). */
.admin .views { position: relative; display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x; scrollbar-width: none; white-space: nowrap; gap: var(--s5); margin: var(--s2) calc(var(--gutter) * -1) 0; padding: 0 48px 0 var(--gutter); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); border-bottom: 1px solid var(--line); }
.admin .views::-webkit-scrollbar { display: none; }
.admin .views a { display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-bottom: -1px; border-bottom: 2px solid transparent; text-decoration: none; }
.admin .views a[aria-current] { color: var(--text); border-bottom-color: var(--text); }
.admin .people { list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 0; }
.admin .person { display: grid; grid-template-columns: minmax(0, 1fr) 56px; min-height: 64px; border-bottom: 1px solid var(--line); }
.admin .person:has(.on) { background: var(--surface-raised); }
/* The row is the button. The box and the mark are drawn at its left and take the same room in both states, so a press cannot change the row. */
.admin .tick { display: grid; position: relative; grid-template-columns: minmax(0, 1fr); align-content: center; width: 100%; height: 100%; min-height: 64px; padding: var(--s2) var(--s2) var(--s2) 72px; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.admin .tick::before { content: ""; position: absolute; left: 24px; top: calc(50% - 16px); width: 32px; height: 32px; border: 1.5px solid var(--field-border); border-radius: var(--radius); background: var(--surface-raised); }
.admin .tick.on::before { border-color: var(--text); background: var(--text); }
.admin .tick.on::after { content: ""; position: absolute; left: 36px; top: calc(50% - 10px); width: 9px; height: 16px; border: solid var(--on-dark); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.admin .tick:focus-visible, .admin .go:focus-visible { outline-offset: -4px; }
.admin .person form { display: flex; }
.admin .who { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 56px; align-items: center; min-height: 64px; padding: var(--s2) 0 var(--s2) var(--gutter); text-decoration: none; }
.admin .who > span { display: grid; grid-template-columns: minmax(0, 1fr); }
.admin .who svg { justify-self: center; color: var(--text-3); }
.admin .go { display: grid; place-items: center; min-height: 64px; color: var(--text-3); }
.admin .nm { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s2); font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.admin .st, .admin .subline { color: var(--text-2); font-variant-numeric: tabular-nums; }
.admin .st { display: flex; align-items: center; gap: var(--s2); font-size: 13px; line-height: 1.3; letter-spacing: 0.04em; color: var(--text-3); }
.admin .newtag { padding: 0 5px; border: 1px solid var(--line); border-radius: 2px; color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.admin .overpay { padding: 1px 6px; border-radius: 2px; background: var(--warn-bg); color: var(--error); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
/* The payment mark sits before the number, in the small line under the name, so the marks line up down the left whatever the name's length. Everyone has one while payments are open: a green dot for monthly, a light-blue diamond for sessions paid ahead (over 3:1 on the white and the grey grounds), a red square with a white ! for a session not paid for, a grey square for exempt, a thin grey ring for nothing paid. Each its own shape, so the colour is never the only sign. Every mark takes 12px of layout, so the numbers line up. The ! is drawn here with empty alternative text, so a browser that knows that form reads only the word inside the mark; an older engine takes the first declaration and may read "!Unpaid". */
.admin .mark { display: inline-block; flex: none; box-sizing: border-box; width: 10px; height: 10px; margin: 0 1px; }
.admin .mark.monthly { border-radius: 50%; background: var(--accent); }
/* A 7px square turned 45 degrees is about 9.9px across; its margins give it the same 12px as the others. */
.admin .mark.prepaid { width: 7px; height: 7px; margin: 0 2.5px; background: var(--visitor); transform: rotate(45deg); }
.admin .mark.unpaid { width: 12px; height: 12px; margin: 0; border-radius: 2px; background: var(--error); color: var(--on-dark); font-size: 10px; font-weight: 700; line-height: 12px; text-align: center; }
.admin .mark.unpaid::before { content: "!"; content: "!" / ""; }
.admin .mark.exempt { width: 9px; height: 9px; margin: 0 1.5px; border-radius: 1px; background: var(--text-2); }
.admin .mark.none { border-radius: 50%; border: 1.5px solid var(--field-border); }
.admin .legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: var(--s4) 0 0; }
.admin .legend > span { display: inline-flex; align-items: center; gap: var(--s2); }
.admin .section { margin-top: var(--s6); }
.admin .foot { margin: var(--s6) 0 0; }
.admin .foot .logout { margin-left: 0; }
.admin [data-share] { margin-top: var(--s3); }
.admin .done { margin: var(--s3) 0 0; font-size: 15px; font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.admin .reset { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--text-2); text-decoration-thickness: 2px; }
/* The popup for the reset (the popover attribute). Closed, the browser hides it, and no rule here touches it in that state. Open, it is a plain block as high as what is in it (height: auto), put in the middle by its own top and left corner. No grid, no inset: 0 with margin: auto, no height keyword: on an iPhone that combination stretched it over the whole screen. The parts are spaced by margins. */
.admin .pop:popover-open { position: fixed; inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); box-sizing: border-box; width: min(340px, calc(100vw - 48px)); height: auto; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: 0; padding: var(--s5); overflow: auto; border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.admin .pop::backdrop { background: rgba(12, 24, 51, 0.45); }
.admin .pop > * + * { margin-top: var(--s3); }
/* The parts inside the popup's form get the same gap as the popup's own children. */
.admin .pop form > * + * { margin-top: var(--s3); }
.admin .pop p { margin-bottom: 0; color: var(--text); }
.admin .pop b { font-size: 17px; }
/* What cannot be undone is red: the confirming button in a popup, and the quiet button that opens the popup for Delete (red text and outline). Archive, Move and Cancel keep the usual look. */
.admin .button.danger { background: var(--error); border-color: var(--error); color: var(--on-dark); }
.admin .button.quiet.danger { color: var(--error); border-color: var(--error); background: transparent; }
/* A button that cannot be pressed (Delete… while a monthly payment runs) is dashed and grey, so it does not read as one that is merely quiet. */
.admin .button.quiet:disabled { border-style: dashed; border-color: var(--line); color: var(--text-3); cursor: not-allowed; }
/* A browser without popovers (iPhones before iOS 17) shows the same block in the page, under the hairline, as a confirm of its own: the link that would open the popup, and Cancel, have nothing to do there and are left out. Only "Reset the link" posts, as everywhere. The !important is because a display rule later in the sheet (.admin .rows .move) has the same specificity and would otherwise win and show the button again. */
/* A Payments row on the person's page is a button that opens its popup, followed by a plain copy of its two lines for a browser without popovers. The copy is hidden here, before the block below that shows it; no later rule sets its display, so only one of the two is ever seen or read. */
.admin .prow-fallback { display: none; }
@supports not selector(:popover-open) { .admin .reset[popovertarget], .admin .move[popovertarget], .admin .opener[popovertarget], .admin .pop [popovertargetaction] { display: none !important; } .admin .prow-fallback { display: grid; padding: var(--s3) 0; } }
.admin .list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.admin .list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 44px; padding: 10px 0; border-top: 1px solid var(--line); }
.admin .list a { display: flex; flex: 1; min-width: 0; flex-direction: column; justify-content: center; min-height: 44px; text-decoration: none; }
.admin .list .button { flex: none; white-space: nowrap; }
.admin .list li > div { flex: 1; min-width: 0; }
.admin .list b { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.admin .list small { line-height: 1.4; }
.admin .list .tech { margin-top: 2px; font-size: 12px; color: var(--text-3); }
/* what is new since the last visit: a dot and a word, in the green of the accent */
.admin .fresh { margin-left: var(--s2); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.admin .fresh::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.admin .block { margin-top: var(--s6); }
.admin .blockhead { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 44px; }
.admin .blockhead a { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; }
.admin .kv { display: grid; margin: 0; }
.admin .kv > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s3); padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.admin .kv dt { font-size: 14px; color: var(--text-3); }
.admin .kv dd { margin: 0; overflow-wrap: anywhere; }
.admin small { display: block; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.admin .rows { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.admin .rows li { padding: 10px 0; border-top: 1px solid var(--line); }
.admin .rows a { display: inline-flex; align-items: center; min-height: 44px; }
/* A payment's title link to Stripe is plain inline text, so the arrow follows the last word of a title that wraps. The padding keeps a 44px tap height on one line. Any other link in .rows keeps the rule above. */
.admin .rows a[target="_blank"] { display: inline-block; min-height: 0; padding: 11px 0; }
/* Whose payment a row is: the button that opens the popup (.pop, above), on a line of its own even when no <small> comes before it, and inside the popup the select with its label above it. */
.admin .rows .move { display: flex; width: fit-content; margin-top: var(--s2); }
.admin .rows label, .admin .pop label { display: block; font-size: 14px; color: var(--text-3); }
.admin .rows select, .admin .pop select { display: block; min-height: 44px; margin-top: 2px; font-size: 15px; }
/* The top of the person page: the name, the line under it (number, mark, grade, last session), the bands, Payments and Contact. The classes below are used on this page only (a few rules also carry .person-page), so lists and popups on other pages keep their look. The headings of Payments and Contact are the small labels of .admin h2. */
.admin .person-page .name { letter-spacing: -0.02em; text-wrap: balance; }
.admin .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s2); margin: var(--s2) 0 0; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.admin .meta .st { gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--text); }
.admin .meta b { font-weight: 400; color: var(--text-3); }
.admin .meta .dotsep { color: var(--text-3); }
.admin .person-page #payments { display: grid; gap: var(--s4); margin-top: var(--s5); }
.admin .person-page #payments > p { margin: 0; }
.admin .person-page .reset { flex-shrink: 0; min-width: 44px; }
.admin .person-page .block { margin-top: var(--s5); }
/* A band: the unpaid mark and its words on the grey ground, Hide at the right; an archived person's band on the note ground, Restore at the right. */
.admin .flag { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 52px; padding: 0 var(--s4); border-radius: var(--radius); background: var(--surface-raised); font-size: 15px; }
.admin .flag > span { display: flex; align-items: center; gap: var(--s3); font-weight: 700; }
.admin .flag form { display: flex; }
.admin .flag.arch { background: var(--note-bg); }
.admin .flag.arch > span { font-weight: 600; }
/* Payments: each row is one button as wide as the list, with a hairline under it; the chevron says it opens. */
.admin .pay .rows { border-top: 1px solid var(--line); }
.admin .pay .rows li { padding: 0; border-top: 0; border-bottom: 1px solid var(--line); }
.admin .prow { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: var(--s3); width: 100%; min-height: 64px; padding: var(--s2) 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.admin .prow > span { display: grid; }
.admin .prow svg { justify-self: center; color: var(--text-3); }
.admin .prow:hover .t { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.admin .pay .t { font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.admin .pay .s { font-size: 13px; line-height: 1.35; color: var(--text-2); font-variant-numeric: tabular-nums; }
.admin .empty-row { display: flex; align-items: center; min-height: 56px; font-size: 15px; color: var(--text-2); }
/* Under the list: the exemption's line and buttons, and Payment link. */
.admin .ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); margin-top: var(--s4); }
.admin .ctl .ex { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); min-height: 44px; }
.admin .ctl .since { flex-basis: 100%; font-size: 15px; font-weight: 500; }
/* Contact: the label beside the value at every width; the mail and call links carry a quiet underline. */
.admin .kv dd a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.admin .person-page #sessions { margin-top: var(--s5); }
/* The person page's three closed blocks (Sessions, Transactions, Manage): a hairline between them, the heading as a small label, the count and a chevron that turns when open. */
.admin details.sec { border-top: 1px solid var(--line); }
.admin details.sec:last-child { border-bottom: 1px solid var(--line); }
.admin details.sec > summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 56px; list-style: none; cursor: pointer; }
.admin details.sec > summary::-webkit-details-marker { display: none; }
.admin .person-page details.sec h2 { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.admin details.sec .c { display: flex; align-items: center; gap: var(--s2); font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.admin details.sec[open] > summary .c svg { transform: rotate(90deg); }
.admin details.sec > .in { display: grid; gap: var(--s4); padding-bottom: var(--s5); }
/* The Sessions grid: 26 weeks of 13px is about 335px, so on a narrow phone it scrolls inside its box and the page does not. */
.admin .grid-wrap { overflow-x: auto; }
.admin .cgrid { display: grid; grid-template-rows: repeat(7, 10px); grid-auto-columns: 10px; grid-auto-flow: column; gap: 3px; width: max-content; }
.admin .cgrid i { display: block; border-radius: 2px; background: var(--surface-raised); outline: 1px solid rgba(12, 24, 51, 0.04); outline-offset: -1px; }
.admin .cgrid i.on { background: var(--accent); outline: none; }
.admin .cgrid i.unpaid { background: var(--error); outline: none; }
.admin .cgrid i.future { background: transparent; outline: none; }
/* Transactions: date, what happened, and the amount with the row's own ⋯ button (a 44px tap target) at the right. */
.admin .log { list-style: none; margin: 0; padding: 0; }
.admin .log > li + li { border-top: 1px solid var(--line-soft); }
.admin .log .row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; min-height: 44px; padding: 6px 0; font-size: 15px; }
.admin .log time { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.admin .log .ev { color: var(--text-2); overflow-wrap: anywhere; }
.admin .log .amt { display: flex; align-items: center; gap: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.admin .log .more { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px -10px -6px 0; padding: 0; border: 0; background: none; color: var(--text-3); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
/* The details popups of Payments and Transactions on the person page: a head with the close button, the facts as label and value, then Open in Stripe and the folded Move. Their parts carry their own padding. */
.admin .pop.sheet:popover-open { padding: 0; }
.admin .pop.sheet > * + * { margin-top: 0; }
.admin .pop .ph { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); padding: var(--s4); border-bottom: 1px solid var(--line); }
.admin .pop .ph .x { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin: -10px -10px -10px 0; padding: 0; border: 0; background: none; color: var(--text-3); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.admin .pop .pk { margin: 0; padding: 0 var(--s4); }
.admin .pop .pk > div { display: flex; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.admin .pop .pk dt { flex: 0 0 84px; font-size: 14px; color: var(--text-3); }
.admin .pop .pk dd { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
/* The waiver's record keeps its hash and id on their own lines, in its popup and on its page. */
.admin .pop .pk .tech, .admin .kv .tech { font-size: 12px; color: var(--text-3); }
.admin .pop .pk .tech span, .admin .kv .tech span { display: block; }
.admin .pop .menu a { display: flex; align-items: center; min-height: 52px; padding: 0 var(--s4); border-bottom: 1px solid var(--line); font-size: 16px; text-decoration: none; }
.admin .pop details.mv > summary { min-height: 52px; padding: 14px var(--s4); font-size: 16px; cursor: pointer; }
.admin .pop details.mv form { padding: 0 var(--s4) var(--s4); }
/* Manage: Archive and Delete… side by side, and under them the line saying why Delete… cannot be pressed. */
.admin .acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.admin .acts form { display: flex; }
.admin .why { margin: 0; font-size: 14px; }
/* The notices page only; the shared lists and headings on other pages stay as they are. What needs action stands on a tinted ground with a red line at its left, under a larger heading, so it never weighs the same as the news below it. The words "Needs action" stay, so the colour is not the only sign. */
.admin .notices-page .alert { padding: var(--s2) var(--s4) var(--s3); border-left: 3px solid var(--error); background: var(--warn-bg); }
.admin .notices-page .alert h2 { font-size: 17px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
.admin .notices-page .tech { font-size: 14px; color: var(--text-2); }
/* The line about payments and its Reload belong to the payments below them. */
.admin .notices-page .updated + #unlinked { margin-top: var(--s4); }
/* A new registration: the name and its line, and at the right the same arrow as on a roster row. */
.admin .notices-page .list a { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s3); }
.admin .notices-page .list a > span { min-width: 0; }
.admin .notices-page .list a svg { flex: none; color: var(--text-3); }
/* On a phone the button goes under the words; from 480px it stands at their right. */
.admin .notices-page .list li { flex-wrap: wrap; }
.admin .notices-page .list li > div { flex-basis: 100%; }
@media (min-width: 480px) { .admin .notices-page .list li { flex-wrap: nowrap; } .admin .notices-page .list li > div { flex-basis: auto; } }
