/* BeneFitness check-in. "The lobby" look (Brad, 2026-11-25): the room's photo with a greeting over it, then one light sheet.
   One typeface (Figtree), plus a handwriting face (Caveat) used only on the note. */
:root {
  --bg: #FFFDFA; --panel: #F5EFE6; --line: #ECE6DC; --edge: #8F877B;
  --ink: #1D1B19; --muted: #625C54; --gold: #1F3A5F; --accent: #1F3A5F; --on-accent: #FFFFFF; --star: #E8CC94; --star-ink: #3A2C14; --g1: #FFF7E3; --g2: #F3DCA8; --g3: #E3C48D; --g4: #C9A160; --g5: #A47D42;
  --display: 'Figtree', system-ui, sans-serif; --body: 'Figtree', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.45; }
a { color: var(--accent); }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 34px; }
h2 { font-size: 23px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.page { max-width: 460px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; }
.lockup { display: flex; align-items: center; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.lockup svg { flex: none; fill: var(--ink); }
.lockup .rule { flex: none; width: 1px; height: 40px; background: var(--edge); }
.lockup .site-name { font-family: var(--display); font-size: 22px; font-weight: 500; }
.lockup .by { font-size: 13px; color: var(--muted); }
.wordmark { font-family: var(--display); font-size: 15px; font-weight: 500; letter-spacing: 0.14em; }
.wordmark b { font-weight: 500; color: var(--gold); }
.main { flex: 1; display: flex; flex-direction: column; gap: 22px; padding: 28px 24px 24px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.spacer { flex: 1; }
.help { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); text-align: center; }
.help a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.notice { padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--edge); background: var(--panel); }
.notice.error { border-color: #F08A6B; }

/* Class list: time, name, tick. Rows, not cards. */
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 66px minmax(0, 1fr) 36px; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.row.static { cursor: default; grid-template-columns: 66px minmax(0, 1fr); }
/* A two-digit hour (10:00, 12:00) needs a wider first column, or the time runs into the class name. */
.row.wide { grid-template-columns: 88px minmax(0, 1fr) 36px; }
.row .time { font-family: var(--display); font-size: 21px; font-weight: 700; white-space: nowrap; }
.row .time small { font-family: var(--body); font-size: 14px; color: var(--muted); margin-left: 4px; }
.row .name { font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.2; display: block; }
.row .sub { font-size: 15px; color: var(--muted); display: block; margin-top: 4px; }
/* "with Julie" beside a class name: kept together, a little lighter than the class. */
.who { font-weight: 500; white-space: nowrap; }
/* "This week only": a substitute or a different class for one day, called out over the class name. */
.once { display: block; width: fit-content; margin-bottom: 6px; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff;
  font-family: var(--body, inherit); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; }
/* "New": a class in its first three weeks. Gold, like the stars, with a light that crosses it now and then. */
.once.new { position: relative; overflow: hidden; background: var(--star); color: var(--star-ink); }
.once.new::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 65%) 130% 0 / 260% 100% no-repeat; }
/* A one-day change (a substitute, a different class): the same light crosses the tag, so it catches the eye. */
.once.swap { position: relative; overflow: hidden; }
.once.swap::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 43%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 57%) 130% 0 / 260% 100% no-repeat; }
/* The line on today's page about a new class. */
.news { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 16px; line-height: 1.35; }
.news .once { margin: 0; flex: none; }
.news > span:nth-child(2) { flex: 1; font-weight: 600; }
.news .go { font-size: 22px; color: var(--muted); }
.grid-form .when { grid-column: span 2; order: 2; align-self: start; }
/* Admin: setting up the second step of the sign-in, and the backup codes. */
ol.steps { display: flex; flex-direction: column; gap: 22px; margin: 0; padding-left: 22px; }
ol.steps li > b { display: block; margin-bottom: 8px; }
.qr2 { width: 220px; max-width: 100%; padding: 10px; margin: 6px 0 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.qr2 svg { display: block; width: 100%; height: auto; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.codes code { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 18px; letter-spacing: 0.06em; text-align: center; }
/* Admin: the small forms for one date, closed days and a new regular instructor. */
details.chg { margin-top: 6px; }
details.chg summary { min-height: 36px; display: flex; align-items: center; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: 15px; }
.chg-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 8px 0; }
.chg-form label.field { min-width: 160px; flex: 1 1 160px; }
.row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.row .tick { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--edge); display: flex; align-items: center; justify-content: center; }
.row .tick svg { width: 18px; height: 18px; fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.row input:checked ~ .tick, .row .tick.on { background: var(--accent); border-color: var(--accent); }
.row input:checked ~ .tick svg, .row .tick.on svg { opacity: 1; }
.row:not(:has(input)) { cursor: default; }
.row input:focus-visible ~ .tick { outline: 2px solid var(--accent); outline-offset: 2px; }
.row.dim { opacity: 0.55; cursor: default; }

/* The lobby: the room's photo with the greeting over it, then one sheet that holds everything else. */
.hero { position: relative; color: #fff; padding-bottom: 58px; background: #241A12 radial-gradient(120% 90% at 85% 0%, #7A4A28 0%, #241A12 62%) center / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 8, 0.68) 0%, rgba(20, 14, 8, 0.36) 55%, rgba(20, 14, 8, 0.6) 100%); }
.hero > * { position: relative; }
.hero .lockup { padding: 22px 24px 0; border-bottom: none; }
.hero .lockup svg { fill: #fff; }
.hero .lockup .rule { background: rgba(255, 255, 255, 0.55); }
.hero .lockup .by { color: rgba(255, 255, 255, 0.9); }
.hero .wordmark b { color: #FFD76A; }
.hero-in { padding: 40px 24px 0; }
.hero .eyebrow { color: #fff; }
.hero h1 { font-size: 36px; line-height: 1.05; text-wrap: balance; }
.say { margin-top: 12px; font-size: 20px; font-weight: 500; line-height: 1.3; text-wrap: balance; }
.say-by { margin-top: 6px; font-size: 14px; opacity: 0.9; }
.hero-sub { margin-top: 10px; font-size: 16px; opacity: 0.94; }
.lobby .main { position: relative; margin-top: -30px; padding-top: 26px; border-radius: 30px 30px 0 0; background: var(--bg); box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.2); }
/* On a computer: the photo takes the left of the window and stays put; the sheet is a column on the right. */
@media (min-width: 900px) {
  .page.lobby { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, 560px); }
  .lobby .hero { position: sticky; top: 0; height: 100vh; padding-bottom: 0; display: flex; flex-direction: column; }
  .lobby .hero .lockup { padding: 36px 56px 0; }
  .lobby .hero-in { margin-top: auto; padding: 0 56px 64px; }
  .lobby .hero h1 { font-size: 58px; }
  .lobby .say { font-size: 27px; max-width: 560px; }
  .lobby .say-by, .lobby .hero-sub { font-size: 17px; }
  .lobby .main { margin-top: 0; padding: 56px 48px 40px; border-radius: 0; box-shadow: none; min-height: 100vh; }
}
/* The week's days are all on the page: a phone shows the picked one. The account page's groups are plain on a phone. */
.weekcols .daycol { display: none; }
.weekcols .daycol.on { display: block; }
.slot, .me-grid, .me-a, .me-b { display: contents; }
/* On a wide screen (a computer at a desk): the photo narrows, and the pages that have more to show use the room.
   The week is every day side by side, each class a card; the account page is two columns. */
@media (min-width: 1200px) {
  .page.lobby.wide { grid-template-columns: minmax(340px, 30%) minmax(0, 1fr); }
  .lobby.wide .main { padding: 56px 64px 48px; }
  .lobby.wide .main > * { width: 100%; max-width: 1120px; }
  .lobby.wide .days { display: none; }
  .lobby.wide .weeknav { font-size: 17px; }
  .lobby.wide .weeknav span { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink); }
  .weekcols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
  .weekcols .daycol { display: block; }
  .weekcols .daycol.wkend { display: none; }
  .daycol .eyebrow { margin-bottom: 14px; padding-top: 12px; border-top: 3px solid var(--line); color: var(--muted); font-size: 0; white-space: nowrap; }
  .daycol .eyebrow::before { content: attr(data-short); font-size: 14px; }
  .daycol > .muted { font-size: 15px; }
  .daycol.today .eyebrow { border-top-color: var(--accent); color: var(--accent); }
  .daycol .rows { border-top: none; gap: 12px; }
  .daycol .slot { display: block; padding: 16px 14px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
  .daycol .row, .daycol .row.wide { display: block; padding: 0; border-bottom: none; }
  .daycol .row .time { display: block; margin-bottom: 6px; font-size: 18px; }
  .daycol .row .name { font-size: 17px; }
  .daycol .rowact { flex-direction: column; align-items: flex-start; padding: 12px 0 0; border-bottom: none; font-size: 15px; }
  .daycol .rowact .link { padding-left: 0; text-align: left; }
  .daycol .rowact .btn.small { width: 100%; min-height: 40px; padding: 0 8px; font-size: 15px; white-space: nowrap; }
  .daycol .about { padding: 0; border-bottom: none; }
  .daycol .about summary { margin-left: 0; min-height: 36px; margin-top: 4px; }
  .daycol .rowact:has(+ .about) { padding-bottom: 0; }
  .lobby.wide .main > .btn { max-width: 320px; }
  .me-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 72px; align-items: start; }
  .me-a, .me-b { display: flex; flex-direction: column; gap: 20px; }
  .me-grid:first-child > .me-b > .section:first-child { padding-top: 0; border-top: none; }
  .me-grid + .me-grid { margin-top: 12px; }
  .me-b > .btn { max-width: 320px; }
}
/* The week: seven days to tap, then that day's classes. */
/* The week view: a week earlier, a week later. */
.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.weeknav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.weeknav span { color: var(--muted); }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 64px; padding: 8px 0 6px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.day span { font-size: 14px; color: var(--muted); }
.day b { font-size: 19px; font-weight: 700; }
.day i { width: 6px; height: 6px; border-radius: 50%; background: var(--edge); }
.day i.mine { background: var(--accent); }
.day i.none { visibility: hidden; }
.day.on { border-color: var(--accent); background: var(--panel); }
.row:has(+ .rowact) { border-bottom: none; padding-bottom: 0; }
.rowact { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 8px 0 12px 80px; font-size: 16px; border-bottom: 1px solid var(--line); }
.rowact b { font-weight: 600; }
.rowact:has(+ .about) { border-bottom: none; padding-bottom: 0; }
.btn.small { width: auto; min-height: 44px; padding: 0 18px; border-radius: 22px; font-size: 16px; }
/* The line that thinks ahead, and the lines of progress under it. */
.care { padding: 13px 15px; border-radius: 14px; background: var(--panel); font-size: 16px; line-height: 1.4; color: var(--muted); }
.care b { color: var(--ink); font-weight: 600; }
.prog { font-size: 16px; color: var(--muted); }
.prog b { color: var(--ink); font-weight: 600; }
.prog + .prog { margin-top: -12px; }
.saved { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.saved .care { align-self: stretch; }
/* The handwritten note: first visits and milestones only. */
.note { margin: 4px 4px 2px; padding: 14px 18px 12px; background: #fff; border-radius: 4px; transform: rotate(-1.3deg); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 12px 26px rgba(60, 50, 30, 0.15); }
.note small { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.note p { margin-top: 6px; font: 500 27px/1.12 'Caveat', cursive; color: #26303A; }
.note .sig { display: block; margin-top: 2px; text-align: right; font: 600 24px 'Caveat', cursive; color: #26303A; }

/* Class photos: one real photograph for each kind of class (lib/art.js). */
.kind-photo { display: block; width: 100%; height: 190px; object-fit: cover; object-position: center 38%; border-radius: 18px; background: var(--panel); }
.art-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.art-legend figure { margin: 0; }
.art-legend .kind-photo { height: 120px; border-radius: 12px; }
.art-legend .kind-photo.none { border: 1.5px dashed var(--edge); background: none; }
.art-legend figcaption { margin-top: 6px; font-size: 14px; font-weight: 600; }
@media (max-width: 760px) { .art-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* About this class: a link under the class; opens as a card. */
.row:has(+ .about) { border-bottom: none; padding-bottom: 0; }
.about { border-bottom: 1px solid var(--line); padding: 0 0 12px; }
.about summary { display: inline-flex; align-items: center; min-height: 44px; margin-left: 80px; color: var(--accent); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; list-style: none; }
.about summary::-webkit-details-marker { display: none; }
.about-card { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.about-card .about-head { display: none; }
.about-card .about-head .eyebrow { margin-bottom: 8px; }
.about-card .about-head h2 { font-size: 30px; font-weight: 300; }
.about-card .about-head p { margin-top: 6px; }
.about-text { white-space: pre-line; }
dialog.class-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 460px; max-height: 88vh; max-height: 88dvh; margin: 0 auto; padding: 0; border: none; border-radius: 24px 24px 0 0; background: var(--bg); color: var(--ink); overflow: auto; box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.45); }
dialog.class-sheet::backdrop { background: rgba(5, 12, 18, 0.66); }
.class-sheet .sheet-in { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 14px 24px 26px; }
.class-sheet .grab { align-self: center; width: 44px; height: 5px; border-radius: 3px; background: var(--edge); }
.class-sheet .x { position: absolute; top: 34px; right: 32px; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255, 253, 250, 0.92); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.class-sheet .about-card { margin: 0; padding: 0; border: none; background: none; gap: 20px; }
.class-sheet .about-card .about-head { display: block; }
.class-sheet .about-text { font-size: 18px; line-height: 1.5; }
@media (min-width: 620px) { dialog.class-sheet { inset: 0; margin: auto; height: fit-content; border-radius: 24px; } .class-sheet .grab { display: none; } }

/* The moment after a spot is saved: the class photo takes the whole screen, then lifts away. */
.yay { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 28px calc(44px + env(safe-area-inset-bottom)); overflow: hidden; background: #241A12; color: #fff; text-decoration: none; cursor: pointer; }
.yay-photo { position: absolute; inset: 0; background: center / cover no-repeat; }
.yay::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 8, 0.3) 0%, rgba(20, 14, 8, 0.46) 42%, rgba(20, 14, 8, 0.9) 100%); }
.yay canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.yay-in, .yay-go { position: relative; z-index: 1; }
.yay-in { display: flex; flex-direction: column; align-items: flex-start; max-width: 620px; }
.yay-tick { display: flex; align-items: center; justify-content: center; width: 78px; height: 78px; margin-bottom: 24px; border-radius: 50%; background: var(--star); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); }
.yay-tick svg { width: 40px; height: 40px; fill: none; stroke: var(--star-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.yay-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.yay-h { margin-top: 10px; font-family: var(--display); font-size: 46px; font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.yay-what { margin-top: 14px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.yay-say { margin-top: 12px; font-size: 19px; font-weight: 500; line-height: 1.3; opacity: 0.94; }
.yay-go { margin-top: 36px; font-size: 15px; opacity: 0.85; text-decoration: underline; text-underline-offset: 3px; }
/* One big emoji in the middle of the screen (two of the four celebrations; public/app.js adds it). */
.yay-big { position: absolute; left: 0; right: 0; top: 15%; z-index: 3; text-align: center; font-size: 190px; line-height: 1; pointer-events: none; }
.yay-big span { display: inline-block; transform-origin: 50% 85%; }
.yay.gone { display: none; }
@media (min-width: 900px) { .yay { padding: 0 72px 80px; } .yay-h { font-size: 68px; } .yay-what { font-size: 24px; } .yay-say { font-size: 22px; } }

/* Motion. Only for people who have not asked their phone to reduce it. */
.btn, .pick, .tab { transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease; }
.btn:active, .pick:active { transform: scale(0.985); }
.row .tick { transition: background-color 0.18s ease, border-color 0.18s ease; }
@media (prefers-reduced-motion: no-preference) {
  .row input:checked ~ .tick { animation: pop 0.26s ease; }
  .row input:checked ~ .tick svg path { stroke-dasharray: 22; animation: tick 0.3s ease 0.05s backwards; }
  body:not([data-auto]) .page .main > *, body:not([data-auto]) .page .me-a > *, body:not([data-auto]) .page .me-b > * { animation: rise 0.36s ease backwards; }
  body:not([data-auto]) .page .main > *:nth-child(2) { animation-delay: 0.05s; }
  body:not([data-auto]) .page .main > *:nth-child(3) { animation-delay: 0.1s; }
  body:not([data-auto]) .page .main > *:nth-child(n+4) { animation-delay: 0.15s; }
  .class-sheet .kind-photo { animation: reveal 0.6s ease 0.1s backwards; }
  dialog.class-sheet[open] { animation: sheet-up 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
  dialog.class-sheet[open]::backdrop { animation: fade 0.25s ease; }
  .note { animation: settle 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s backwards; }
  .yay { animation: yay-out 0.6s cubic-bezier(0.65, 0, 0.3, 1) 3.6s forwards; }
  .yay.gone { display: flex; animation: yay-out 0.45s cubic-bezier(0.65, 0, 0.3, 1) forwards; }
  .yay-photo { animation: yay-zoom 4.4s ease-out forwards; }
  .yay-tick { animation: yay-pop 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) 0.15s backwards; }
  .yay-tick svg path { stroke-dasharray: 22; animation: tick 0.4s ease 0.5s backwards; }
  .yay-eyebrow, .yay-h, .yay-what, .yay-say, .yay-go { animation: rise 0.5s ease backwards; }
  .yay-eyebrow { animation-delay: 0.4s; } .yay-h { animation-delay: 0.5s; } .yay-what { animation-delay: 0.62s; } .yay-say { animation-delay: 0.8s; } .yay-go { animation-delay: 1.3s; }
  .yay-big.flex span { animation: big-in 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) 0.25s backwards, big-flex 1.15s ease-in-out 0.85s 2; }
  .yay-big.cheer span { animation: big-in 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) 0.25s backwards, big-cheer 1.15s ease-in-out 0.85s 2; }
  .cal .d.came.today { animation: stick 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) 0.4s backwards; }
  .cal .d.came::before { animation: sheen 6s ease-in-out 1.2s infinite; }
  .once.new::after { animation: sheen 5s ease-in-out 0.8s infinite; }
  .once.swap::after { animation: sheen 4s ease-in-out 0.4s infinite; }
  .cal .d.came:nth-child(3n)::before { animation-delay: 2.1s; }
  .cal .d.came:nth-child(3n+1)::before { animation-delay: 3s; }
  /* Today has a class and they have not been yet: the ring breathes, ever so slightly. */
  .cal .d.today.has, .cal .d.today.saved { animation: today-pulse 2.6s ease-in-out infinite; }
  .strip i.on { animation: fill 0.3s ease backwards; }
  .strip i:nth-child(n+4) { animation-delay: 0.08s; }
  .strip i:nth-child(n+7) { animation-delay: 0.16s; }
  .strip i:nth-child(n+10) { animation-delay: 0.24s; }
}
@keyframes sheen { 0% { background-position: 130% 0; } 22%, 100% { background-position: -30% 0; } }
@keyframes today-pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 0%, transparent); }
  50% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent), 0 0 0 11px color-mix(in srgb, var(--accent) 16%, transparent); } }
@keyframes stick { 0% { transform: scale(2.4) rotate(-28deg); opacity: 0; } 55% { transform: scale(0.9) rotate(5deg); opacity: 1; } }
@keyframes big-in { from { opacity: 0; transform: scale(0.2) rotate(-30deg); } }
@keyframes big-flex { 0%, 100% { transform: scale(1) rotate(0deg); } 25% { transform: scale(1.2) rotate(-13deg); } 50% { transform: scale(1.04) rotate(6deg); } 75% { transform: scale(1.22) rotate(-11deg); } }
@keyframes big-cheer { 0%, 100% { transform: translateY(0) scale(1); } 25% { transform: translateY(-34px) scale(1.12); } 50% { transform: translateY(0) scale(0.98); } 75% { transform: translateY(-30px) scale(1.12); } }
@keyframes yay-out { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes yay-zoom { from { transform: scale(1.1); } to { transform: none; } }
@keyframes yay-pop { from { transform: scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { 0% { transform: scale(0.82); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes tick { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes settle { from { opacity: 0; transform: translateY(14px) rotate(2deg); } to { opacity: 1; transform: rotate(-1.3deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fill { from { transform: scaleY(0.2); opacity: 0.3; } to { transform: none; opacity: 1; } }
.pairs .pair { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pairs { border-top: 1px solid var(--line); }
.pairs .pair > .small { flex: none; max-width: 58%; text-align: right; }
.pairs .pair .name { font-family: var(--display); font-size: 18px; font-weight: 600; }

/* Forms */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], input[type=date], select {
  width: 100%; height: 52px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--edge); background: #fff; color: var(--ink); font-family: inherit; font-size: 18px;
}
textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--edge); background: #fff; color: var(--ink); font-family: inherit; font-size: 16px; line-height: 1.4; resize: vertical; }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 16px; cursor: pointer; }
.check input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--accent); }
details.waiver summary { min-height: 44px; display: flex; align-items: center; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: 15px; margin-left: 38px; }
details.waiver div { padding: 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; color: var(--muted); white-space: pre-wrap; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; padding: 0 20px; border-radius: 12px; border: none; background: var(--ink); color: var(--bg); font-family: inherit; font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.ghost { background: none; color: var(--ink); border: 1.5px solid var(--edge); font-weight: 600; }
.link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; background: none; border: none; color: var(--ink); font-family: inherit; font-size: 16px; text-decoration: underline; cursor: pointer; }
.link.muted { color: var(--muted); font-size: 15px; }
.center { align-self: center; }

/* The month on the account page: a dot for each day they came, a dashed ring for a spot saved ahead. */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 0; justify-items: center; }
.cal .wd { padding-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cal .d { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-size: 16px; color: var(--muted); }
/* A day they came wears a gold star sticker (Brad, 2026-11-26: like a kid's gold star; fun, celebrating people). Since 2026-11-27
   it is the logo's champagne gold as brushed metal on the white die-cut sticker: "more modern, still adult" (Brad). */
.cal .d.came { border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0.1' y1='0' x2='0.9' y2='1'%3E%3Cstop offset='0' stop-color='%23C9A160'/%3E%3Cstop offset='0.2' stop-color='%23F3DCA8'/%3E%3Cstop offset='0.38' stop-color='%23FFF7E3'/%3E%3Cstop offset='0.55' stop-color='%23E3C48D'/%3E%3Cstop offset='0.76' stop-color='%23B48C4E'/%3E%3Cstop offset='1' stop-color='%23EBD3A1'/%3E%3C/linearGradient%3E%3ClinearGradient id='h' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0.7'/%3E%3Cstop offset='0.5' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M24 5 L29.58 17.31 L43.02 18.82 L33.04 27.94 L35.76 41.18 L24 34.5 L12.24 41.18 L14.96 27.94 L4.98 18.82 L18.42 17.31 Z' fill='%23fff' stroke='%23fff' stroke-width='8' stroke-linejoin='round'/%3E%3Cpath d='M24 5 L29.58 17.31 L43.02 18.82 L33.04 27.94 L35.76 41.18 L24 34.5 L12.24 41.18 L14.96 27.94 L4.98 18.82 L18.42 17.31 Z' fill='url(%23g)' stroke='url(%23g)' stroke-width='3.5' stroke-linejoin='round'/%3E%3Cpath d='M24 5 L29.58 17.31 L43.02 18.82 L33.04 27.94 L35.76 41.18 L24 34.5 L12.24 41.18 L14.96 27.94 L4.98 18.82 L18.42 17.31 Z' fill='none' stroke='%237E5F2E' stroke-opacity='0.35' stroke-width='0.6' stroke-linejoin='round'/%3E%3Cpath d='M24 10 L28.2 19.4 L38.5 20.6 L24 23 L9.5 20.6 L19.8 19.4 Z' fill='url(%23h)'/%3E%3C/svg%3E") center / 56px 56px no-repeat; color: var(--star-ink); font-size: 14px; font-weight: 800; padding-top: 3px; filter: drop-shadow(0 1px 0.5px rgba(70, 50, 15, 0.35)) drop-shadow(0 4px 5px rgba(70, 50, 15, 0.2)); transform: rotate(-7deg); }
/* A sheen that crosses each gold star now and then (Brad, 2026-11-26: small touches that make it feel alive).
   The moving light is cut to the star's own shape; the movement itself is switched on further up, only for
   people who have not asked for less motion. */
.cal .d.came::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 5 L29.58 17.31 L43.02 18.82 L33.04 27.94 L35.76 41.18 L24 34.5 L12.24 41.18 L14.96 27.94 L4.98 18.82 L18.42 17.31 Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 5 L29.58 17.31 L43.02 18.82 L33.04 27.94 L35.76 41.18 L24 34.5 L12.24 41.18 L14.96 27.94 L4.98 18.82 L18.42 17.31 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  background: linear-gradient(115deg, rgba(255, 252, 240, 0) 38%, rgba(255, 252, 240, 0.95) 50%, rgba(255, 252, 240, 0) 62%) 130% 0 / 260% 100% no-repeat; }
.cal .d.came:nth-child(3n) { transform: rotate(6deg); }
.cal .d.came:nth-child(3n+1) { transform: rotate(-3deg); }
.cal .d.came.today { box-shadow: none; }
.cal .d.saved { border: 2px dashed var(--accent); color: var(--accent); font-weight: 700; }
.cal .d.today { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.cal .d.today:not(.came):not(.saved) { color: var(--ink); font-weight: 700; }
.key { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.key i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 50%; background: var(--accent); vertical-align: -1px; }
.key i.s { background: none; border: 2px dashed var(--accent); }
.key i.st { width: 20px; height: 20px; margin-right: 4px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0.1' y1='0' x2='0.9' y2='1'%3E%3Cstop offset='0' stop-color='%23C9A160'/%3E%3Cstop offset='0.2' stop-color='%23F3DCA8'/%3E%3Cstop offset='0.38' stop-color='%23FFF7E3'/%3E%3Cstop offset='0.55' stop-color='%23E3C48D'/%3E%3Cstop offset='0.76' stop-color='%23B48C4E'/%3E%3Cstop offset='1' stop-color='%23EBD3A1'/%3E%3C/linearGradient%3E%3ClinearGradient id='h' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0.7'/%3E%3Cstop offset='0.5' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M24 5 L29.58 17.31 L43.02 18.82 L33.04 27.94 L35.76 41.18 L24 34.5 L12.24 41.18 L14.96 27.94 L4.98 18.82 L18.42 17.31 Z' fill='%23fff' stroke='%23fff' stroke-width='8' stroke-linejoin='round'/%3E%3Cpath d='M24 5 L29.58 17.31 L43.02 18.82 L33.04 27.94 L35.76 41.18 L24 34.5 L12.24 41.18 L14.96 27.94 L4.98 18.82 L18.42 17.31 Z' fill='url(%23g)' stroke='url(%23g)' stroke-width='3.5' stroke-linejoin='round'/%3E%3Cpath d='M24 5 L29.58 17.31 L43.02 18.82 L33.04 27.94 L35.76 41.18 L24 34.5 L12.24 41.18 L14.96 27.94 L4.98 18.82 L18.42 17.31 Z' fill='none' stroke='%237E5F2E' stroke-opacity='0.35' stroke-width='0.6' stroke-linejoin='round'/%3E%3Cpath d='M24 10 L28.2 19.4 L38.5 20.6 L24 23 L9.5 20.6 L19.8 19.4 Z' fill='url(%23h)'/%3E%3C/svg%3E") center / 22px 22px no-repeat; vertical-align: -5px; }
.key i.h { width: 6px; height: 6px; background: var(--edge); vertical-align: 2px; }
.key { flex-wrap: wrap; gap: 6px 18px; }
.cal .d { position: relative; text-decoration: none; }
.cal a.d { color: var(--ink); font-weight: 600; }
.cal .d.has::after { content: ''; position: absolute; bottom: 2px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--edge); }
a.pair { color: inherit; text-decoration: none; }
.pair .go { margin-left: 8px; font-size: 20px; line-height: 0; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.stats div { padding: 12px 10px; border-radius: 14px; background: var(--panel); text-align: center; }
.stats b { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.stats span { font-size: 14px; color: var(--muted); }

/* This week on today's page: the same stars and dots as the month, one row. */
.thisweek { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.thisweek .eyebrow { margin-bottom: 0; }
.cal.wk { gap: 4px 0; }

/* Progress */
.bignum { display: flex; align-items: flex-end; gap: 16px; }
.bignum .n { font-family: var(--display); font-weight: 300; font-size: 96px; line-height: 0.82; color: var(--accent); }
.bignum .t { padding-bottom: 4px; }
.bignum .t strong { display: block; font-weight: 600; }
.section { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.between { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
.strip i { height: 26px; border-radius: 4px; background: var(--line); }
.strip i.on { background: var(--accent); }
.strip i.paused { background: repeating-linear-gradient(135deg, var(--line) 0 4px, #D3C9BB 4px 8px); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.toggle strong { display: block; font-weight: 600; }
.switch { flex: none; width: 56px; height: 48px; padding: 0; background: none; border: none; display: flex; align-items: center; cursor: pointer; }
.switch span { width: 52px; height: 30px; border-radius: 15px; padding: 3px; background: var(--edge); display: flex; }
.switch span::after { content: ''; width: 24px; height: 24px; border-radius: 50%; background: #fff; }
.switch[aria-checked=true] span { background: var(--accent); justify-content: flex-end; }

/* Staff */
.pill { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--edge); font-size: 14px; font-weight: 600; }
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.tab { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; min-height: 56px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.tab.on { border-color: var(--accent); background: var(--panel); }
.tab .t { font-size: 14px; color: var(--muted); }
.tab .n { font-family: var(--display); font-size: 17px; }
.count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.count .room { margin-left: auto; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--edge); font-size: 15px; font-weight: 700; }
.count .room.full { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.count .n { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--accent); }
.hello { padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.hello .eyebrow { margin: 0; }
.person { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.person strong { display: block; font-weight: 600; }
.person .sub { font-size: 14px; color: var(--muted); }
/* A heads-up for the instructor next to a name: first class, back after a while, or a milestone. */
.person .heads { display: inline-block; margin: 2px 8px 2px 0; padding: 2px 9px; border-radius: 999px; background: #F3E6C8; color: #5A4520; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.people { display: flex; flex-direction: column; gap: 8px; }
.people.expected .person { background: #fff; border-color: var(--edge); }
.person .arrive { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; padding: 8px 16px; border-radius: 12px; border: 1.5px solid var(--edge); background: #fff; color: var(--ink); font-family: inherit; font-size: 18px; font-weight: 600; text-align: left; cursor: pointer; }
.pick .go { flex: none; font-size: 15px; font-weight: 700; color: var(--accent); }
.pick:active { border-color: var(--accent); background: var(--panel); }
.js .nojs { display: none; }
.inline { display: flex; gap: 10px; }
.inline .btn { width: auto; flex: none; }

/* iPad */
.kiosk { min-height: 100vh; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kiosk .left { display: flex; flex-direction: column; gap: 32px; padding: 48px 48px 40px 56px; }
.kiosk .right { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 48px 56px 48px 48px; background: var(--panel); border-left: 1px solid var(--line); }
.kiosk h1 { font-size: 56px; }
.kiosk .lockup { padding: 0; border: none; }
.kiosk .row { grid-template-columns: 110px minmax(0, 1fr) 44px; padding: 24px 0; }
.kiosk .row .time { font-size: 34px; }
.kiosk .row .name { font-size: 28px; }
.kiosk .row .sub { font-size: 17px; }
.kiosk .row .tick { width: 42px; height: 42px; }
.kiosk label.field { font-size: 20px; }
.kiosk input[type=text], .kiosk input[type=email] { height: 68px; font-size: 24px; background: #fff; border-width: 2px; }
.kiosk .btn { min-height: 72px; font-size: 24px; border-radius: 14px; }
.bigtick { width: 96px; height: 96px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.bigtick svg { width: 48px; height: 48px; fill: none; stroke: var(--on-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .kiosk { grid-template-columns: 1fr; } .kiosk .left, .kiosk .right { padding: 28px 24px; } .kiosk .right { border-left: none; border-top: 1px solid var(--line); } }

/* Admin and printed pages: light paper */
body.paper { --bg: #F7F4EE; --panel: #FFFFFF; --line: #E4DDD1; --edge: #8A959C; --ink: #1B2A33; --muted: #55656F; --accent: #0A141D; --on-accent: #F7F4EE; background: var(--bg); color: var(--ink); }
body.paper a { color: #7A5F38; }
body.paper .wordmark { color: #0A141D; }
body.paper .wordmark b { color: #9E7E52; }
body.paper .lockup svg { fill: #0A141D; }
.sheet { max-width: 980px; margin: 0 auto; padding: 48px 40px 64px; display: flex; flex-direction: column; gap: 32px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sheet-head .left { display: flex; align-items: center; gap: 22px; }
.sheet-head .rule { width: 1px; height: 72px; background: #C9C1B3; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.kpi .n { font-family: var(--display); font-size: 48px; line-height: 1; display: block; margin-bottom: 8px; }
.kpi .t { font-size: 15px; color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); font-size: 16px; }
table.data th, table.data td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
table.data thead th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
table.data .num { text-align: right; }
table.taught td, table.taught th { vertical-align: top; }
table.taught .tl { font-size: 15px; line-height: 1.45; }
table.taught .tl + .tl { margin-top: 4px; }
table.data td.sub { color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 16px; padding: 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); min-height: 220px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bars .bar i { width: 100%; border-radius: 8px; background: #C8A87C; min-height: 4px; }
.bars .bar span { font-size: 14px; color: var(--muted); }
.bars .bar strong { font-size: 16px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.classgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cls { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); break-inside: avoid; }
.cls-h { display: flex; flex-direction: column; gap: 2px; }
.cls-h strong { font-family: var(--display); font-size: 19px; font-weight: 600; }
.minis { display: flex; align-items: flex-end; gap: 10px; min-height: 104px; }
.mini { flex: 1; max-width: 56px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mini i { width: 100%; border-radius: 6px; background: #C8A87C; min-height: 3px; }
.mini.full i { background: var(--accent); }
.mini strong { font-size: 15px; }
.mini span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cls .care { margin: 0; }
@media (max-width: 760px) { .classgrid { grid-template-columns: 1fr; } }
.notes { min-height: 180px; padding: 22px; border-radius: 16px; background: #F1E9DB; border: 1px solid var(--line); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.toolbar .btn { width: auto; min-height: 48px; font-size: 16px; }
.foot { display: flex; justify-content: space-between; gap: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.grid-form { display: grid; grid-template-columns: 140px 124px 84px minmax(0, 1.4fr) minmax(0, 1fr) 84px 64px 100px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.grid-form input, .grid-form select { height: 46px; font-size: 16px; }
.grid-form .btn { min-height: 46px; padding: 0 8px; font-size: 15px; white-space: nowrap; }
.grid-head { padding: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.grid-form .cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.grid-form .cell-l { display: none; font-size: 12px; font-weight: 700; color: var(--muted); }
.grid-form .cell-l.always { display: block; }
.grid-form .desc { grid-column: 1 / span 4; order: 2; align-self: start; }
.grid-form .tip { grid-column: span 2; order: 2; align-self: start; }
.grid-form .art-pick { grid-column: span 2; order: 2; align-self: start; }
/* A class's own photo on the admin schedule. */
.grid-form .photo-cell { grid-column: span 3; order: 2; align-self: start; }
.photo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 46px; }
.photo-thumb { width: 64px; height: 46px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.grid-form .photo-pick { width: auto; min-height: 40px; padding: 0 12px; font-size: 14px; cursor: pointer; }
.photo-msg { font-size: 13px; flex-basis: 100%; }
.photo-msg:empty { display: none; }
.grid-form { padding: 14px 0 16px; }
@media (max-width: 1040px) { .grid-form { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; } .grid-head { display: none; } .grid-form .cell-l { display: block; } .grid-form .desc { grid-column: 1 / -1; } }
.sign { max-width: 760px; margin: 0 auto; padding: 64px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.sign h1 { font-size: 64px; }
.sign .qr { width: 340px; height: 340px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.sign .qr svg { width: 100%; height: 100%; display: block; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two { grid-template-columns: 1fr; } .sheet { padding: 28px 18px 48px; } .grid-form { grid-template-columns: 1fr 1fr; } .grid-form .art-pick, .grid-form .tip, .grid-form .photo-cell { grid-column: 1 / -1; } .grid-head { display: none; } table.data { font-size: 15px; } table.data th, table.data td { padding: 10px; } }
@media print { .no-print { display: none !important; } body.paper { background: #fff; } .sheet { padding: 0; } }

/* Admin: the next four weeks as a calendar. One cell a day, one chip a class; a chip opens what can be done about that date. */
.cal4 { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 8px; }
.cal4 .dow { padding: 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cal4 .cell { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 96px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cal4 .cell.out { background: transparent; border-style: dashed; opacity: 0.45; min-height: 0; }
.cal4 .cell.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal4 .cell.shut { background: var(--panel); }
.cal4 .date { font-size: 13px; font-weight: 700; color: var(--muted); }
.cal4 .shut-note { font-size: 13.5px; font-weight: 600; }
.daychip { position: relative; }
.daychip > summary, div.daychip { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.3; }
.daychip > summary { cursor: pointer; }
.daychip > summary::-webkit-details-marker { display: none; }
.daychip .t { grid-row: span 2; font-weight: 700; white-space: nowrap; }
.daychip .n { font-weight: 600; overflow-wrap: anywhere; }
.daychip .w { color: var(--muted); font-size: 12.5px; }
.daychip .st { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.daychip .st.gold { background: var(--star); color: var(--star-ink); }
.daychip.changed > summary { border-color: var(--star); background: #FAF4E8; }
.daychip.off > summary, div.daychip.off { opacity: 0.6; }
.daychip.off .n { text-decoration: line-through; }
.daychip[open] > summary { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.daychip .pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 340px; max-width: 86vw; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--edge); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16); font-size: 15px; }
.cal4 .cell.end .daychip .pop { left: auto; right: 0; }
@media (max-width: 760px) {
  .cal4 { grid-template-columns: 1fr; }
  .cal4 .dow, .cal4 .cell.out { display: none; }
  .daychip .pop { position: static; width: auto; max-width: none; margin-top: 6px; box-shadow: none; }
}

/* ---- More life on the member pages (Brad, 2026-11-27, reviewed on the motion demo page, docs/motion-demo.html).
   The look is set here; every movement is inside the reduced-motion check below, so a phone set to reduce motion
   shows none of it. */
/* The room's photo in its own layer, so it can drift; a band of soft window light crosses it now and then. */
.hero.has-ph { overflow: hidden; background-image: none; }
.hero > .hero-ph { position: absolute; inset: -3%; background: center / cover no-repeat; z-index: 0; }
.hero > .hero-light { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(105deg, transparent 32%, rgba(255, 236, 190, 0.2) 46%, transparent 60%) 140% 0 / 230% 100% no-repeat; }
.hero.has-ph::before { z-index: 0; }
.hero.has-ph > :not(.hero-ph):not(.hero-light) { z-index: 1; }
/* Today's page: "TODAY" with a soft ring, then the day and how many classes are still to come. */
.today-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.today-h .eyebrow { margin: 0; }
.tag-today { position: relative; flex: none; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 4px 10px; border-radius: 999px; }
.tag-today::after { content: ''; position: absolute; inset: -3px; border-radius: 999px; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
/* The live line over a class name: a countdown to the next class, or "Happening now" with a pulsing dot. */
.row em.count, .row em.live { display: block; font-style: normal; font-size: 13px; font-weight: 800; color: #B4291F; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.row em.live { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.row em.live i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #D93A2F; }
.row em.live .late { flex-basis: 100%; font-weight: 600; color: var(--muted); }
/* The week's last class. */
.once.last { background: #F3DCA8; color: var(--star-ink); white-space: nowrap; }
/* Stars as stickers: a die-cut white edge, a glossy top, a little lifted tip and a two-layer shadow. */
.cal .d.came { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0.1' y1='0' x2='0.9' y2='1'%3E%3Cstop offset='0' stop-color='%23C9A160'/%3E%3Cstop offset='0.2' stop-color='%23F3DCA8'/%3E%3Cstop offset='0.38' stop-color='%23FFF7E3'/%3E%3Cstop offset='0.55' stop-color='%23E3C48D'/%3E%3Cstop offset='0.76' stop-color='%23B48C4E'/%3E%3Cstop offset='1' stop-color='%23EBD3A1'/%3E%3C/linearGradient%3E%3ClinearGradient id='h' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0.7'/%3E%3Cstop offset='0.5' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M24 5 L29.58 17.31 L43.02 18.82 L33.04 27.94 L35.76 41.18 L24 34.5 L12.24 41.18 L14.96 27.94 L4.98 18.82 L18.42 17.31 Z' fill='%23fff' stroke='%23fff' stroke-width='8' stroke-linejoin='round'/%3E%3Cpath d='M24 5 L29.58 17.31 L43.02 18.82 L33.04 27.94 L35.76 41.18 L24 34.5 L12.24 41.18 L14.96 27.94 L4.98 18.82 L18.42 17.31 Z' fill='url(%23g)' stroke='url(%23g)' stroke-width='3.5' stroke-linejoin='round'/%3E%3Cpath d='M24 5 L29.58 17.31 L43.02 18.82 L33.04 27.94 L35.76 41.18 L24 34.5 L12.24 41.18 L14.96 27.94 L4.98 18.82 L18.42 17.31 Z' fill='none' stroke='%237E5F2E' stroke-opacity='0.35' stroke-width='0.6' stroke-linejoin='round'/%3E%3Cpath d='M24 10 L28.2 19.4 L38.5 20.6 L24 23 L9.5 20.6 L19.8 19.4 Z' fill='url(%23h)'/%3E%3C/svg%3E");
  filter: drop-shadow(0 1px 0.5px rgba(60, 40, 0, 0.35)) drop-shadow(0 4px 5px rgba(60, 40, 0, 0.22)); cursor: pointer; }
/* What a star was for: a small note on hover, or on a tap (public/app.js adds .tipon). */
.cal .d.came .tip { position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 5; width: 176px; padding: 9px 11px; border-radius: 12px; background: var(--ink); color: #fff;
  text-align: left; font-size: 12px; font-weight: 500; line-height: 1.35; letter-spacing: 0; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); pointer-events: none;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(6px) scale(0.6); transform-origin: 50% 100%; transition: opacity 0.15s ease, transform 0.25s cubic-bezier(0.2, 1.6, 0.4, 1), visibility 0s 0.25s; }
.cal .d.came .tip::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--ink); }
.cal .d.came .tip b { display: block; font-size: 13px; font-weight: 800; }
.cal .d.came .tip i { display: block; margin-top: 4px; font-style: normal; color: var(--star); font-weight: 700; }
.cal .d.came:hover, .cal .d.came.tipon { z-index: 6; transform: none; }
.cal .d.came:hover .tip, .cal .d.came.tipon .tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); transition: opacity 0.15s ease, transform 0.25s cubic-bezier(0.2, 1.6, 0.4, 1); }
/* Near the left and right edges of the calendar the note leans inwards, so it stays on screen. */
.cal .d.came.edge-l .tip { left: 0; transform: translateX(-8px) translateY(6px) scale(0.6); transform-origin: 20px 100%; }
.cal .d.came.edge-l .tip::after { left: 26px; }
.cal .d.came.edge-l:hover .tip, .cal .d.came.edge-l.tipon .tip { transform: translateX(-8px) translateY(0) scale(1); }
.cal .d.came.edge-r .tip { left: auto; right: 0; transform: translateX(8px) translateY(6px) scale(0.6); transform-origin: calc(100% - 20px) 100%; }
.cal .d.came.edge-r .tip::after { left: auto; right: 20px; }
.cal .d.came.edge-r:hover .tip, .cal .d.came.edge-r.tipon .tip { transform: translateX(8px) translateY(0) scale(1); }
/* The streak as a power bar: glowing gold cells for weeks kept; the next one empty with a breathing gold edge. */
.pw-top { display: flex; align-items: baseline; gap: 8px; }
.pw-top .pw-n { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pw-top span { font-weight: 700; }
/* Brushed gold (2026-11-27): slimmer cells in the logo's champagne metal, a highlight along the top, a soft warm glow. */
.power { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 12px 0 10px; padding: 6px 2px; }
.power i { height: 12px; border-radius: 999px; background: #E7E0D4; position: relative; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08); }
.power i.on { background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 30%, var(--g3) 55%, var(--g4) 80%, var(--g5) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 8px rgba(227, 196, 141, 0.6); }
.power i.on::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 252, 240, 0.95) 50%, transparent 70%) 150% 0 / 300% 100% no-repeat; }
.power i.next { background: #F7F2E9; box-shadow: inset 0 0 0 1.5px rgba(201, 161, 96, 0.8); }
.power i.paused { background: #F1ECE3; box-shadow: inset 0 0 0 2px #D6CDBE; }
.almost { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 0; font-size: 15px; color: var(--star-ink); background: #F5EDDD; border-radius: 999px; padding: 8px 14px; }
.almost svg { flex: none; width: 16px; height: 16px; fill: #C9A160; }
/* Buttons press in a little and spring back. */
.btn:active { transform: translateY(1px) scale(0.97); }
.btn.save { position: relative; overflow: hidden; }
.btn.save::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%) 130% 0 / 250% 100% no-repeat; }

@media (prefers-reduced-motion: no-preference) {
  .hero > .hero-ph { animation: hero-drift 22s ease-in-out infinite alternate; }
  .hero > .hero-light { animation: hero-light 9s ease-in-out 2s infinite; }
  .tag-today::after { animation: tag-ring 2.2s ease-out infinite; }
  .rows.deal > .row, .rows.deal > .about { animation: deal 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15) backwards; }
  .rows.deal > :nth-child(3), .rows.deal > :nth-child(4) { animation-delay: 0.12s; }
  .rows.deal > :nth-child(5), .rows.deal > :nth-child(6) { animation-delay: 0.24s; }
  .rows.deal > :nth-child(n+7) { animation-delay: 0.36s; }
  .rows.deal > .row { position: relative; }
  .rows.deal > .row::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 203, 61, 0.25) 50%, transparent 70%) 160% 0 / 250% 100% no-repeat; animation: gold-pass 1.2s ease-in-out 0.7s both; }
  .row em.live i { animation: live-dot 1.6s ease-in-out infinite; }
  .row em.count.soon { animation: soon 1.6s ease-in-out infinite; }
  .once.last { animation: last-pop 3.2s ease-in-out 1.6s infinite; }
  .btn.go { animation: go-glow 2.8s ease-in-out 1s infinite; }
  .btn.save::after { animation: sheen 4.5s ease-in-out 1s infinite; }
  .cal .d.came:hover, .cal .d.came.tipon { transform: translateY(-2px) scale(1.08); transition: transform 0.2s ease; }
  .power i.on { animation: cell-in 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) backwards, cell-glow 2.8s ease-in-out 1.2s infinite; }
  .power i.on::after { animation: glint 3.2s ease-in-out 1.4s infinite; }
  .power i.on:nth-child(2) { animation-delay: 0.08s, 1.3s; } .power i.on:nth-child(3) { animation-delay: 0.16s, 1.4s; } .power i.on:nth-child(4) { animation-delay: 0.24s, 1.5s; }
  .power i.on:nth-child(5) { animation-delay: 0.32s, 1.6s; } .power i.on:nth-child(6) { animation-delay: 0.4s, 1.7s; } .power i.on:nth-child(7) { animation-delay: 0.48s, 1.8s; }
  .power i.on:nth-child(2)::after { animation-delay: 1.5s; } .power i.on:nth-child(3)::after { animation-delay: 1.6s; } .power i.on:nth-child(4)::after { animation-delay: 1.7s; }
  .power i.on:nth-child(5)::after { animation-delay: 1.8s; } .power i.on:nth-child(6)::after { animation-delay: 1.9s; } .power i.on:nth-child(7)::after { animation-delay: 2s; }
  .power i.next { animation: next-cell 2.2s ease-in-out 1.2s infinite; }
  .almost.go { animation: nudge 2.6s ease-in-out 1.6s infinite; }
  .almost.go svg { animation: zap 2.6s ease-in-out 1.6s infinite; }
}
@keyframes hero-drift { from { transform: scale(1.02) translate(1.5%, 1%); } to { transform: scale(1.16) translate(-3%, -2%); } }
@keyframes hero-light { 0% { background-position: 140% 0; } 55%, 100% { background-position: -40% 0; } }
@keyframes tag-ring { 0% { opacity: 0.7; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes deal { from { opacity: 0; transform: translateX(36px) rotate(1.5deg); } }
@keyframes gold-pass { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@keyframes live-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 58, 47, 0.5); } 60% { box-shadow: 0 0 0 7px rgba(217, 58, 47, 0); } }
@keyframes soon { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes last-pop { 0%, 80%, 100% { transform: none; } 86% { transform: scale(1.08) rotate(-2deg); } 92% { transform: none; } }
@keyframes go-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(29, 27, 25, 0.3); } 50% { box-shadow: 0 0 0 8px rgba(29, 27, 25, 0); } }
@keyframes cell-in { from { transform: scale(0.3); opacity: 0; } }
@keyframes cell-glow { 0%, 100% { box-shadow: 0 0 6px 1px rgba(255, 185, 30, 0.45), 0 0 16px 2px rgba(255, 200, 60, 0.25); } 50% { box-shadow: 0 0 12px 3px rgba(255, 185, 30, 0.7), 0 0 30px 6px rgba(255, 205, 70, 0.4); } }
@keyframes glint { 0% { background-position: 150% 0; } 35%, 100% { background-position: -50% 0; } }
@keyframes next-cell { 0%, 100% { box-shadow: inset 0 0 0 2px rgba(242, 154, 18, 0.35); } 50% { box-shadow: inset 0 0 0 2px rgba(242, 154, 18, 0.95), 0 0 10px 2px rgba(255, 190, 40, 0.45); } }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 78% { transform: scale(1.05); } 86% { transform: scale(0.98); } }
@keyframes zap { 0%, 70%, 100% { filter: none; transform: none; } 78% { filter: drop-shadow(0 0 4px #E3C48D); transform: rotate(-12deg) scale(1.3); } }

/* The footer: who we are, since 2009, the web address, the copyright and the privacy policy (Brad, 2026-11-27). */
.help { flex-direction: column; align-items: center; gap: 6px; line-height: 1.45; }
.help .brand-line b { color: var(--ink); font-weight: 700; }
.help .legal { font-size: 13px; }
.page-foot { max-width: 760px; margin: 0 auto; padding: 8px 24px 28px; }
.page-foot .help.slim { border-top: none; padding-top: 8px; }
/* The privacy policy, on its own page and inside the box on the sign-up form. */
.policy { max-width: 70ch; }
.policy h1 { font-size: 32px; margin-bottom: 14px; }
.policy h2 { font-size: 19px; margin: 22px 0 6px; }
.policy p, .policy li { font-size: 16px; line-height: 1.55; margin: 0 0 10px; }
.policy ul { padding-left: 20px; margin: 0 0 10px; }
.waiver .policy h2 { font-size: 16px; margin: 14px 0 4px; }
.waiver .policy p, .waiver .policy li { font-size: 14px; }
.policy-page { max-width: 820px; margin: 0 auto; }

/* Signing the waiver: a box to draw in (finger, pen or mouse), or a typed full name. Without scripts only the name shows. */
.sign-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.sign-box .sign-l { font-weight: 700; font-size: 15px; }
.sign-box .sign-pad-wrap { display: none; position: relative; }
.sign-box.can-draw .sign-pad-wrap { display: block; }
.sign-pad { display: block; width: 100%; height: auto; aspect-ratio: 600 / 180; border-radius: 10px; background: #FBF8F2; border: 1.5px dashed #CFC6B8; touch-action: none; cursor: crosshair; }
.sign-hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 14px; color: #A39A8C; pointer-events: none; }
.sign-box.signed .sign-hint { display: none; }
.sign-box.signed .sign-pad { border-style: solid; border-color: var(--accent); }
.sign-row { display: flex; justify-content: space-between; align-items: center; }
.sign-box:not(.can-draw) .sign-row .link { display: none; }
.sign-box .sign-typed { font-size: 14px; }
.sign-box.need { border-color: #B4291F; box-shadow: 0 0 0 3px rgba(180, 41, 31, 0.15); }
.sign-shown { display: block; width: 220px; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* How classes work, on the account page. The hand-the-phone page. */
ul.how { margin: 6px 0 4px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.handoff .pass { margin: 0; padding: 10px 14px; border-radius: 12px; background: #F5EDDD; color: var(--star-ink); font-weight: 700; font-size: 15px; text-align: center; }

/* Instructor resources (2026-11-27) */
.contact { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.contact .sub { display: block; color: var(--muted); font-size: 14px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
ul.tight { margin: 4px 0 0 18px; padding: 0; }
ul.tight li { margin: 2px 0; }
main .two { gap: 12px; }
/* fitTip (public/app.js) nudges a note back on screen with --nudge, the arrow staying on the star, and opens it
   below the star when there is no room above. */
.cal .d.came .tip { margin-left: var(--nudge, 0px); }
.cal .d.came .tip::after { margin-left: calc(-6px - var(--nudge, 0px)); }
.cal .d.came .tip.below { bottom: auto; top: calc(100% + 8px); transform-origin: 50% 0; }
.cal .d.came .tip.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ink); }

/* Brushed gold, continued (2026-11-27): the glow and the breathing edge in the champagne, and the streak number in metal. */
.pw-top .pw-n { background: linear-gradient(180deg, #A47D42, #E3C48D 45%, #8C6A33); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes cell-glow { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 5px rgba(227, 196, 141, 0.45); } 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 12px rgba(227, 196, 141, 0.8); } }
  @keyframes next-cell { 0%, 100% { box-shadow: inset 0 0 0 1.5px rgba(201, 161, 96, 0.35); } 50% { box-shadow: inset 0 0 0 1.5px rgba(201, 161, 96, 0.95), 0 0 8px rgba(227, 196, 141, 0.55); } }
}
/* A little bigger (Brad, 2026-11-27): the sticker is 56px on its 40px day; the passing light covers the same 56px. */
.cal .d.came { background-size: 56px 56px; background-position: center; background-repeat: no-repeat; z-index: 1; }
.cal .d.came::before { inset: -8px; }
/* Stuck on by hand (Brad, 2026-11-27): each star has its own tilt, nudge and size from its date (stuck() in
   lib/views.js), set as --r, --x, --y and --s. They use the separate rotate / translate / scale properties, so the
   landing animation and the hover lift (which use transform) add to them instead of resetting them. The note on a
   star turns back the other way so its text stays level. */
.cal .d.came, .cal .d.came:nth-child(3n), .cal .d.came:nth-child(3n+1) { transform: none; rotate: var(--r, -7deg); translate: var(--x, 0) var(--y, 0); scale: var(--s, 1); }
.cal .d.came .tip { rotate: calc(var(--r, -7deg) * -1); }
.key i.st { rotate: -9deg; }
/* Instructor documents: one row per document, the title opens it (2026-11-27). */
.docs { display: flex; flex-direction: column; }
.doc { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 12px 2px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.doc:last-child { border-bottom: 1px solid var(--line); }
.doc strong { display: block; font-size: 17px; }
.doc .sub { display: block; color: var(--muted); font-size: 14px; }
.doc .go { flex: none; font-size: 26px; line-height: 1; color: var(--muted); }
/* Instructor pages (2026-11-27): hello by name, a two-way switch, the schedule calendar and its class rows. */
.hi { margin: 4px 0 0; font-size: 17px; }
.hi .link, .asking .link { min-height: 32px; padding: 0 4px; font-size: 14px; }
.asking { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--panel); }
.seg { display: flex; gap: 0; border: 1.5px solid var(--edge); border-radius: 12px; overflow: hidden; }
.seg a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; text-align: center; }
.seg a + a { border-left: 1.5px solid var(--edge); }
.seg a.on { background: var(--ink); color: var(--bg); }
.monthbar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; }
.monthbar .link { font-size: 30px; text-decoration: none; }
.cal.sched a.d { color: var(--muted); text-decoration: none; }
.cal.sched a.d.has { color: var(--ink); font-weight: 700; }
.cal.sched a.d.mine::after { background: var(--g4, #C9A160); width: 7px; height: 7px; margin-left: -3.5px; }
.cal.sched a.d.past { opacity: 0.45; }
.cal.sched a.d.picked { background: var(--ink); color: var(--bg); }
.key i.mine { background: var(--g4, #C9A160); }
.srow { display: grid; grid-template-columns: 66px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.srow .time { font-weight: 700; font-size: 18px; } .srow .time small { font-size: 12px; margin-left: 2px; color: var(--muted); }
.srow .name { display: block; font-weight: 700; }
.srow .sub { display: block; color: var(--muted); font-size: 14px; }
.srow .sub b { color: var(--ink); }
.srow.mine { box-shadow: inset 3px 0 0 var(--g4, #C9A160); padding-left: 10px; }
.srow.dim { opacity: 0.55; }
b.you { color: var(--star-ink); background: var(--star); padding: 0 7px; border-radius: 999px; font-size: 13px; }
.cal.sched + .key i:not(.mine) { background: var(--edge); }
/* Instructor schedule: the location of each class in "Mine, all sites", and a class covered by a sub. */
.srow .place { display: inline-block; margin: 2px 0; padding: 1px 8px; border-radius: 999px; background: var(--panel); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.srow .sub.cover { color: var(--accent); font-weight: 600; }
/* My account: arrows between months, and the year at a glance. */
.monthnav { display: flex; justify-content: space-between; margin-bottom: 4px; }
.monthnav .link { min-height: 36px; padding: 0; font-size: 15px; text-decoration: none; font-weight: 600; color: var(--accent); }
.year { margin-top: 18px; }
.year .yr-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; margin-top: 8px; }
.year .yr-bar { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 11px; }
.year .yr-bar b { font-size: 11px; color: var(--ink); min-height: 14px; }
.year .yr-bar i { display: block; width: 100%; max-width: 22px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--g2, #F3DCA8), var(--g4, #C9A160)); }
.year .yr-bar.on span { color: var(--ink); font-weight: 800; }
.year .yr-bar.on i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--g4, #C9A160); }
/* Admin: the instructor master list (2026-11-27). */
form.inst { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; align-items: end; }
form.inst.retired { opacity: 0.55; }
form.inst .sitebox { grid-column: 1 / -2; display: flex; flex-wrap: wrap; gap: 4px 16px; border: 0; padding: 0; margin: 0; }
form.inst .sitebox legend { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
form.inst .tick { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
form.inst .inst-act { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
form.inline { display: inline; }
@media (max-width: 760px) { form.inst { grid-template-columns: 1fr 1fr; } form.inst .sitebox, form.inst .inst-act { grid-column: 1 / -1; } }
/* Admin: the master schedule (2026-11-27). */
.sheet.wide { max-width: 1240px; }
.calbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.calbar .seg { width: auto; } .calbar .seg a { min-width: 76px; }
.calnav { display: inline-flex; align-items: center; gap: 4px; } .calnav .link { font-size: 18px; text-decoration: none; font-weight: 700; }
.calbar h2 { margin: 0; }
.calfilters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.calfilters .field { min-width: 180px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend i.lc { background: #fff; box-shadow: inset 0 0 0 2px #C62828; } .legend i.lo { background: repeating-linear-gradient(135deg, #F3DCA8 0 3px, #fff 3px 6px); }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mgrid .wd { padding: 6px 8px; font-size: 12px; font-weight: 700; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.mday { min-height: 118px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; background: #fff; }
.mday.other { background: #FBF8F3; } .mday.other .dnum { color: var(--muted); }
.mday.past .chip, .wday.past .chip { opacity: 0.6; }
.dnum { font-size: 13px; font-weight: 800; color: var(--ink); text-decoration: none; align-self: flex-start; padding: 1px 6px; border-radius: 999px; }
.dnum.today { background: var(--ink); color: var(--bg); }
.chip { display: block; padding: 2px 6px 2px 7px; border-left: 4px solid var(--c); border-radius: 4px; background: color-mix(in srgb, var(--c) 9%, #fff); color: var(--ink); font-size: 12px; line-height: 1.3; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip b { font-weight: 800; } .chip .at { color: var(--c); font-weight: 700; }
.chip.cancelled { text-decoration: line-through; opacity: 0.55; }
.chip.conflict, .drow.conflict { box-shadow: inset 0 0 0 2px #C62828; }
.chip.off { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 9%, #fff) 0 4px, #FFF4DA 4px 8px); }
.more, .offline, .closedline, .none { font-size: 11.5px; color: var(--muted); }
.offline { color: #8A5A00; font-weight: 700; } .closedline { font-style: italic; }
.wgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wday { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-height: 200px; }
.wday .chip { white-space: normal; }
.dlist { display: flex; flex-direction: column; gap: 10px; }
.drow { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: 12px; background: #fff; }
.drow .time { font-weight: 800; } .drow .time small { display: block; font-weight: 500; color: var(--muted); }
.drow .name { font-weight: 800; font-size: 17px; margin-right: 8px; } .drow .at { color: var(--c); font-weight: 700; font-size: 14px; }
.drow .sub { display: block; color: var(--muted); font-size: 14px; } .drow .sub b { color: var(--ink); }
.drow .warn { display: block; margin-top: 4px; color: #C62828; font-weight: 700; font-size: 14px; }
.drow.cancelled { opacity: 0.6; }
.subpanel { margin: -4px 0 6px 18px; padding: 14px 16px; border-radius: 12px; background: var(--panel); }
.subpanel h3 { margin: 0 0 6px; font-size: 16px; }
.freelist { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.freeone { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; background: #fff; border-radius: 10px; flex-wrap: wrap; }
.dayextras { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) { .wgrid { grid-template-columns: 1fr; } .drow { grid-template-columns: 1fr; } .mday { min-height: 80px; } .chip { font-size: 10.5px; } }
/* Year in review (2026-11-27): ups and downs against last year, and the twelve months. */
.up { color: #1E7B3C; font-weight: 700; } .down { color: #B4291F; font-weight: 700; } .flat { color: var(--muted); }
.kpi .t .up, .kpi .t .down, .kpi .t .flat, .kpi .t .muted { display: block; font-size: 13px; }
.bars.year12 .bar small { display: block; font-size: 11px; color: var(--muted); }

/* Instructor schedule (2026-11-27): the row of sites on the full schedule. */
.sitepick { display: flex; flex-wrap: wrap; gap: 6px; }
.sitepick a { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--edge); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.sitepick a.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.page .lockup .wordmark { font-size: 20px; }
/* The BeneFitness logo on instructor pages (2026-11-27). */
.bene-logo { display: block; height: 34px; width: auto; }

/* A class nearly full (2026-11-27): a nudge, never a number. */
.filling { display: inline-block; margin-right: 10px; font-size: 13px; font-weight: 700; color: var(--star-ink); background: var(--star); padding: 3px 9px; border-radius: 999px; }

/* How-to videos (2026-11-27): a card per video, and the pop-up player. */
.videos { display: flex; flex-direction: column; gap: 12px; }
.vid { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; box-shadow: 0 6px 18px rgba(31,58,95,.06); }
.vid:hover, .vid:focus-visible { border-color: var(--edge, #c9b88f); }
.vid img { flex: none; width: 96px; height: 171px; object-fit: cover; border-radius: 10px; background: #F3EEE4; }
.vid-text { display: flex; flex-direction: column; gap: 6px; }
.vid-text strong { font-size: 19px; font-weight: 700; }
.vid-text .sub { color: var(--muted); font-size: 15px; line-height: 1.35; }
.vid .len { display: inline-flex; align-self: flex-start; margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: #1F3A5F; color: #fff; font-size: 14px; font-weight: 700; }
.player { padding: 0; border: 0; border-radius: 18px; background: #111; width: min(94vw, 460px); max-height: 94vh; overflow: hidden; }
.player::backdrop { background: rgba(10,14,22,.78); }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; color: #fff; }
.player-title { font-size: 16px; font-weight: 700; }
.player-close { font: inherit; font-weight: 700; font-size: 15px; color: #1D1B19; background: #E3C48D; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.player video { display: block; width: 100%; max-height: calc(94vh - 54px); background: #000; }
