/* Rep (Page Lemon app template): Ironbark Gym. A gym whiteboard on steel: steel page, chalk type, whiteboard cards,
   plate colours only for meaning. The member pages use the shared app kit (kit.css); this file sets the tokens and
   the gym pieces. Colours and fonts: edit the tokens below. */
:root {
  --k-font-display: Antonio, "Arial Narrow", "Roboto Condensed", sans-serif;
  --k-font: "Roboto Flex", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-display: var(--k-font-display);
  --k-brand: #F5C400; --k-brand-ink: #1F2125; --k-brand-soft: rgba(245, 196, 0, .18); --k-gold: #F5C400;
  --k-hero: #1F2125; --k-hero-ink: #F5F5F2;
  --k-bg: #2B2D31; --k-surface: #F5F5F2; --k-surface-2: #E6E7E3;
  --k-text: #F5F5F2; --k-muted: #C9CCD1; --k-faint: #C9CCD1;
  --k-line: rgba(245, 245, 242, .14); --k-line-strong: #F5F5F2;
  --k-ok: #15803D; --k-ok-soft: #DCEFE2; --k-warn: #6B5000; --k-warn-soft: #FFF1B0;
  --k-info: #1D4ED8; --k-info-soft: #DCE6FB; --k-danger: #C81E1E;
  --r-board: #F5F5F2; --r-ink: #1F2937; --r-ink-muted: #4B5563;
}
@media (prefers-color-scheme: dark) {
  :root { --k-bg: #1B1C1F; --k-surface: #E4E4DF; --k-surface-2: #D6D7D1; --k-hero: #141518; --k-brand-soft: rgba(245, 196, 0, .14); --k-muted: #B8BCC2; --k-faint: #B8BCC2; --r-board: #E4E4DF; }
}

/* ---------- member pages: gym pieces ---------- */
.r-plan-tag { display: inline-flex; align-items: center; gap: 6px; }
.r-stamp-note { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: var(--k-3); font-size: var(--k-t-sub); }
.r-stamp-note b { font-variant-numeric: tabular-nums; }
.k-hero-card .k-dots li.k-free::before { content: "FREE"; font-size: .625rem; }
.k-dots-light li.k-free::before { content: "FREE"; font-size: .625rem; }
.r-next { display: grid; gap: var(--k-3); }
.r-next .k-row { padding: 0; min-height: 0; }
.r-when { display: grid; place-items: center; width: 56px; height: 60px; flex: none; border-radius: 14px; background: var(--k-hero); color: var(--k-hero-ink); line-height: 1.1; text-align: center; }
.r-when b { font-size: 1.125rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.r-when span { font-size: .6875rem; opacity: .75; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.r-reply { display: block; margin-top: var(--k-3); padding: 10px 12px; border-radius: 12px; background: var(--k-surface-2); color: var(--k-text); font-size: var(--k-t-foot); font-style: normal; quotes: none; line-height: 1.4; }
.r-reply:empty { display: none; }
.r-reply::before { content: "From the desk · "; font-weight: 700; color: var(--k-muted); }
.r-booking { padding: var(--k-4) var(--k-4) var(--k-4); }
.r-booking + .r-booking { border-top: 1px solid var(--k-line); }
.r-booking-top { display: flex; gap: 14px; align-items: center; }
.r-booking .k-steps { margin-top: var(--k-3); }
.r-booking[data-k-state="off"] .k-steps, .r-booking[data-k-state="off"] .r-row-actions, .r-booking[data-k-state="done"] .r-row-actions { display: none; }
.r-past .k-row-title { font-size: .9375rem; }
.r-info { display: flex; gap: 12px; align-items: flex-start; font-size: var(--k-t-foot); color: var(--k-muted); line-height: 1.45; }
.r-info .k-i { color: var(--k-brand); width: 20px; height: 20px; margin-top: 1px; }
.r-info b { color: var(--k-text); }
.r-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--k-3); }

/* Timetable (app/book.html, index.html): one section per day, today first (site.js). */
.r-days { display: grid; gap: var(--k-5); grid-template-columns: minmax(0, 1fr); }
.r-day h3 { display: flex; align-items: baseline; gap: 8px; font-size: 1.0625rem; margin: 0 0 var(--k-2) var(--k-1); }
.r-day h3 span { color: var(--k-muted); font-weight: 500; font-size: var(--k-t-sub); }
.r-day[data-today] h3 { color: var(--k-brand); }
.r-time { width: 48px; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--k-t-sub); }
.r-day .k-row + .k-row::before { left: 124px; }
.r-day .k-row[aria-current="true"] { background: var(--k-brand-soft); }
.r-day .k-row[data-past] .k-row-title, .r-day .k-row[data-past] .r-time { color: var(--k-muted); }
.r-day .k-row[data-past] .k-tile { filter: grayscale(1); opacity: .7; }
.r-sum-art { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; }
.r-sum-main { min-width: 0; }
.r-sum-main b { display: block; font-size: 1.125rem; }
.r-sum-main span { display: block; color: var(--k-muted); font-size: var(--k-t-foot); }

/* ---------- public page ---------- */
.pub .k-main { padding-bottom: 48px; }
.pub-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--k-bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); }
.pub-top-in { max-width: var(--k-max); margin: 0 auto; display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 8px 16px; }
.pub-top nav { display: none; gap: 22px; margin-left: auto; font-size: var(--k-t-sub); font-weight: 600; }
.pub-top nav a { text-decoration: none; color: var(--k-muted); }
.pub-top nav a:hover { color: var(--k-text); }
.pub-top .k-btn { margin-left: auto; }
@media (min-width: 900px) { .pub-top nav { display: flex; } .pub-top nav + .k-btn { margin-left: 8px; } }
.pub-wrap { max-width: var(--k-max); margin: 0 auto; padding: 0 16px; }
.pub-hero { display: grid; gap: var(--k-5); padding: var(--k-4) 0 var(--k-6); }
.pub-hero h1 { font-family: var(--r-display); font-size: clamp(2.5rem, 1.6rem + 4.5vw, 4.6rem); font-weight: 800; letter-spacing: -.01em; line-height: .98; text-transform: uppercase; }
.pub-hero h1 em { font-style: normal; color: var(--k-brand); }
.pub-hero .k-lead { color: var(--k-muted); font-size: 1.125rem; margin-top: var(--k-4); max-width: 46ch; }
.pub-hero .k-btn-row { margin-top: var(--k-5); }
.pub-hero-art { position: relative; border-radius: var(--k-r-xl); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--k-hero); box-shadow: var(--k-shadow-2); }
.pub-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.pub-hero-art figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.pub-hero-art figcaption span { background: rgba(17, 18, 20, .78); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: var(--k-t-foot); font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (min-width: 1024px) { .pub-hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; padding: var(--k-6) 0 var(--k-7); } .pub-hero-art { aspect-ratio: 4 / 4.2; } }
.pub-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--k-3); margin-top: var(--k-5); }
.pub-facts div { border-left: 3px solid var(--k-brand); padding-left: 10px; }
.pub-facts b { display: block; font-family: var(--r-display); font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.pub-facts span { color: var(--k-muted); font-size: var(--k-t-foot); }
.pub-sec { padding: var(--k-6) 0; }
.pub-sec .k-section-head { margin-bottom: var(--k-5); display: block; }
.pub-sec h2 { font-family: var(--r-display); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.pub-sec .k-section-head p { margin-top: 6px; max-width: 60ch; }
.pub-steps { display: grid; gap: var(--k-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pub-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pub-step { display: grid; gap: var(--k-3); align-content: start; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.pub-step .k-tile { width: 48px; height: 48px; border-radius: 14px; }
.pub-step h3 { font-size: 1.1875rem; }
.pub-step p { color: var(--k-muted); font-size: var(--k-t-sub); }
.pub-phone { grid-template-columns: minmax(0, 1fr); margin-top: var(--k-2); border-radius: 22px; background: var(--k-bg); padding: 12px; display: grid; gap: 8px; box-shadow: inset 0 0 0 1px var(--k-line); }
.pub-phone .k-row { min-height: 52px; padding: 10px 12px; border-radius: 14px; background: var(--k-surface); }
.pub-phone .k-row + .k-row::before { display: none; }
.pub-mini-card { border-radius: 16px; padding: 14px; background: var(--k-hero); color: var(--k-hero-ink); }
.pub-mini-card .k-dots { margin-top: 10px; gap: 5px; }
.pub-mini-card p { font-size: var(--k-t-foot); opacity: .8; }
.pub-mini-card b { font-size: 1.5rem; font-weight: 800; }
.pub-tt .r-days { gap: var(--k-4); }
@media (min-width: 720px) { .pub-tt .r-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pub-tt .r-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pub-tt .r-day .k-row + .k-row::before { left: 16px; }
.pub-coaches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--k-3); }
@media (min-width: 900px) { .pub-coaches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pub-coach { display: grid; gap: 6px; }
.pub-coach .k-avatar { width: 52px; height: 52px; font-size: 1.125rem; background: var(--k-brand-soft); color: var(--k-brand); }
.pub-coach b { font-size: 1rem; }
.pub-coach span { color: var(--k-muted); font-size: var(--k-t-foot); line-height: 1.35; }
.pub-visit { display: grid; gap: var(--k-4); }
@media (min-width: 900px) { .pub-visit { grid-template-columns: 1fr 1fr; } }
.pub-hours { width: 100%; border-collapse: collapse; font-size: var(--k-t-sub); }
.pub-hours th { text-align: left; font-weight: 500; color: var(--k-muted); padding: 8px 0; }
.pub-hours td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; padding: 8px 0; }
.pub-hours tr + tr th, .pub-hours tr + tr td { border-top: 1px solid var(--k-line); }
.pub-cta { margin: var(--k-6) 0 0; padding: var(--k-6) var(--k-5); border-radius: var(--k-r-xl); background: var(--k-hero); color: var(--k-hero-ink); text-align: center; display: grid; gap: var(--k-3); justify-items: center; }
.pub-cta h2 { font-family: var(--r-display); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); text-transform: uppercase; }
.pub-cta p { opacity: .8; max-width: 44ch; }
.pub-foot { max-width: var(--k-max); margin: 0 auto; padding: var(--k-5) 16px var(--k-6); color: var(--k-muted); font-size: var(--k-t-foot); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pub-foot a { color: var(--k-muted); }

/* Privacy notice */
.legal { max-width: 720px; margin: 0 auto; padding: var(--k-4) 16px var(--k-7); }
.legal h1 { font-size: var(--k-t-1); font-weight: 800; margin: var(--k-4) 0; }
.legal h2 { font-size: var(--k-t-3); margin: var(--k-6) 0 var(--k-2); }
.legal p, .legal li { color: var(--k-text); font-size: var(--k-t-sub); line-height: 1.6; }
.legal p + p { margin-top: var(--k-3); }
.legal .blank { background: var(--k-brand-soft); color: var(--k-text); padding: 0 4px; border-radius: 4px; }

/* Signed-out gate on inner screens, profile card, perks on the dark card (candidates for the kit). */
.k-gate { max-width: 520px; margin: var(--k-6) auto 0; display: grid; justify-items: center; gap: var(--k-3); }
.k-gate h1 { font-size: var(--k-t-2); font-weight: 800; color: var(--k-text); }
.k-gate .k-empty-art { margin-bottom: 0; }
.k-gate .k-btn { margin-top: var(--k-2); }
.k-list > p.k-empty { padding: var(--k-5); font-size: var(--k-t-sub); }
.r-profile { display: flex; align-items: center; gap: var(--k-4); }
.r-profile b { display: block; font-size: 1.25rem; letter-spacing: -.01em; margin-bottom: 6px; }
.r-hero-perks { margin-top: var(--k-4); }
.r-hero-perks li { font-size: var(--k-t-sub); align-items: flex-start; }
.r-hero-perks .k-i { color: var(--k-gold); width: 20px; height: 20px; }
.k-hero-card h2.k-big { font-size: 2.75rem; }
.r-past .k-row .k-btn { flex: none; }
@media (max-width: 1023px) { .k-split > * + * { margin-top: var(--k-5); } }
.k-card .k-stack-s p { color: var(--k-muted); font-size: var(--k-t-sub); }
.r-past .k-row-end { flex-direction: row; align-items: center; gap: 4px; }
.r-past .k-row-end .k-btn { padding: 0 8px; min-height: 44px; }
.r-mini { margin-top: 6px; height: 22px; font-size: .6875rem; }
@media (min-width: 1024px) { .k-split .k-actions .k-action { flex-direction: column; justify-content: center; text-align: center; padding: 16px 8px; } }
.r-acct > * { min-width: 0; }
.r-profile > div { min-width: 0; }
.r-plan-tag { flex-wrap: wrap; }
.pub-foot a, .pub-foot span { display: inline-block; padding: 10px 0; }
.r-note:empty, .r-note-inline:empty { display: none; }
.r-note { margin-top: var(--k-3); font-size: var(--k-t-foot); color: var(--k-muted); }
.r-note::before { content: "Your note: "; font-weight: 700; }

/* Timeline: the Waitlist step shows only while waitlisted; steps fill solid. */
.r-booking:not([data-k-state="active"]) .k-steps li[data-k-step="Waitlist"] { display: none; }
.r-booking:not([data-k-state="active"]) .k-steps { --k-steps: 3; }
.r-booking .k-steps li.k-now::before { background: var(--k-brand); animation: none; }
.r-booking .k-steps li.k-now { color: var(--k-text); font-weight: 700; }
.r-row-actions { display: flex; justify-content: flex-end; margin-top: var(--k-3); }
.r-slot-help { margin-top: calc(-1 * var(--k-2)); }
.r-slot-help a { color: var(--k-brand); font-weight: 600; }
.k-sheet .r-slot-help a { color: #1F2937; text-decoration: underline; }
.k-app .skip { color: #1F2937; }
.r-wrap { white-space: normal; }
.r-reply-inline { display: inline; margin: 0; padding: 0; background: none; }
.r-reply-inline::before { content: "Desk: "; }
.r-chip { margin-left: auto; flex: none; }
.r-compare .k-row-title, .pub-tt .k-row-title { white-space: normal; }
@media (min-width: 1024px) { body.k-app.pub { display: block; } }
.k-top:has(a.k-signin) .k-avatar { display: none; }
.r-day .k-row-title, .k-list .k-row-title { white-space: normal; }
.r-weeks { margin-bottom: var(--k-4); }
.r-reply-inline { display: block; margin-top: 2px; }
.r-day .k-row-sub { white-space: normal; }
.r-day .r-chip { display: inline-flex; margin: 4px 0 0; height: 22px; font-size: .6875rem; }
.r-booking .k-row-sub, .r-booking .k-row-title { white-space: normal; }
.r-note-chips { margin-top: 8px; gap: 8px; } .r-note-chips .k-chip { border: 0; font: inherit; font-weight: 600; font-size: var(--k-t-foot); cursor: pointer; color: var(--k-text); min-height: 44px; }
.pub-foot { align-items: baseline; }

/* ---------- Redesign 2026-10-22: the session slip, the board and the tag ---------- */
/* Session slip: the next class as a slip from the desk. Charcoal time block, class, status, steps. */
.r-slip { display: grid; grid-template-columns: auto minmax(0, 1fr); background: var(--k-surface); border-radius: var(--k-r-l); overflow: hidden; }
.r-slip-when { display: grid; align-content: center; justify-items: center; gap: 2px; min-width: 6.5rem; padding: var(--k-4) var(--k-3); background: var(--k-hero); color: var(--k-hero-ink); text-align: center; }
.r-slip-when > span { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.r-slip-when > b { font-family: var(--k-font-display); font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.r-slip-main { padding: var(--k-4); min-width: 0; align-self: center; }
.r-slip-top { display: flex; gap: var(--k-3); align-items: center; }
.r-slip-top .k-row-main { flex: 1; min-width: 0; }
.r-slip-top .k-row-title { font-family: var(--k-font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.15; }
.r-slip-top .r-sum-art { width: 48px; height: 48px; border-radius: var(--k-r-m); }
.r-slip-foot { grid-column: 1 / -1; padding: var(--k-3) var(--k-4) var(--k-4); border-top: 1px dashed var(--k-line-strong); }
.r-slip-main .r-note, .r-slip-main .r-reply { margin-top: var(--k-3); }
.r-slip[data-k-state="off"] .k-steps, .r-slip[data-k-state="off"] .r-row-actions, .r-slip[data-k-state="done"] .r-row-actions { display: none; }
.r-slip[data-k-state="off"] .r-slip-foot, .r-slip:not([data-k-state]) .r-slip-foot { }
.r-slip:not([data-k-state="active"]) .k-steps li[data-k-step="Waitlist"] { display: none; }
.r-slip:not([data-k-state="active"]) .k-steps { --k-steps: 3; }
.r-slip .k-steps li.k-now::before { background: var(--k-brand); animation: none; }
.r-slip .k-steps li.k-now { color: var(--k-text); font-weight: 700; }
.r-slip .r-row-actions { margin-top: var(--k-3); }

/* The check-in tag: the solid brand card, tightened. */
.r-tag { align-self: start; }
.r-tag .k-big { font-size: 3.25rem; }
.r-tag .k-note { margin-top: var(--k-3); }

/* The board: today's classes, and the full timetable on Book. */
.r-days-today { grid-template-columns: minmax(0, 1fr); }
.r-day h3 { font-family: var(--k-font-display); font-size: 1.125rem; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 var(--k-2); padding-bottom: var(--k-2); border-bottom: 3px solid var(--k-text); }
.r-day h3 span { font-family: var(--k-font); text-transform: none; letter-spacing: 0; }
.r-day[data-today] h3 { color: var(--k-text); border-bottom-color: var(--k-brand); }
.r-day[data-today] h3 span { color: var(--k-brand); font-weight: 700; }
.pub-tt .r-day h3 span, .pub-tt .r-day[data-today] h3 span { color: #1F2937; }
.r-day .k-list { background: transparent; box-shadow: none; border-radius: 0; }
.r-day .k-row { background: var(--k-surface); border-radius: var(--k-r-m); margin-bottom: 6px; min-height: 64px; }
.r-day .k-row::before { display: none; }
.r-day .k-row + .k-row::before { display: none; }
.r-day .k-row:hover { background: var(--k-brand-soft); }
.r-time { width: 3.5rem; font-family: var(--k-font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.r-day .k-row[aria-current="true"] { background: var(--k-brand-soft); box-shadow: inset 4px 0 0 var(--k-brand); }
.r-today .r-days { gap: 0; }
.r-today .r-day .k-row-sub { white-space: normal; }

.r-log b { font-size: 3.5rem; line-height: 1; font-family: var(--k-font-display); }
.r-ready { display: contents; }
.r-home .k-hero-card { margin: 0; }
.r-home .k-callout[hidden] { display: none; }
.r-home .pub-hours th { padding: 6px 0; }
@media (min-width: 1024px) {
  .r-home { row-gap: 28px; }
}

/* Phones: the slip's time block becomes a band on top, so the class name has the full width. */
@media (max-width: 639px) {
  .r-slip { grid-template-columns: minmax(0, 1fr); }
  .r-slip-when { grid-auto-flow: column; justify-content: space-between; align-items: center; padding: 10px var(--k-4); min-width: 0; }
  .r-slip-when > b { font-size: 1.75rem; }
  .r-slip-top .k-row-title { font-size: 1.1875rem; }
}
.r-slips { display: grid; gap: var(--k-4); grid-template-columns: minmax(0, 1fr); }
.r-slips > .k-empty { grid-column: 1 / -1; }
.r-slips > * { min-width: 0; }
.k-pagehead .k-kicker { margin-bottom: 8px; }

/* Past classes and the plan comparison as tables. */
.r-table { --k-cols: minmax(0, 2fr) minmax(0, 1fr) minmax(0, .6fr) minmax(0, 1.4fr) minmax(0, .9fr); }
.r-table small:empty { display: none; }
.r-table .k-badge { white-space: nowrap; }
.r-tr-class { display: inline-flex; align-items: center; gap: 10px; }
.r-tr-class .k-tile { width: 32px; height: 32px; border-radius: var(--k-r-s, 8px); flex: none; }
.r-past .k-tr .k-btn { min-height: 44px; }
.r-past > .k-empty { padding: var(--k-5); }
.r-compare { --k-cols: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr); }
.r-yn { color: var(--k-text); display: flex; align-items: center; }
.r-yn .k-i { color: var(--k-brand); width: 22px; height: 22px; }
@media (min-width: 1024px) { .r-yn { justify-content: flex-start; } .r-compare .k-thead > span:not(:first-child) { text-align: left; } }
.r-info { margin-top: var(--k-4); }
.r-guest { background: var(--k-brand-soft); }

/* Timetable on Book: two weeks of days in two columns on wide screens. */
@media (min-width: 1280px) { .r-board .r-days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--k-5) var(--k-5); align-items: start; } }
.r-board .r-weeks { margin-bottom: var(--k-4); }
.k-panel .r-rules { margin: 0; }
.r-cardcol .r-tag { padding-bottom: var(--k-5); }
.k-tabs-foot a { color: inherit; font-weight: 600; white-space: nowrap; }
.k-tabs-foot b { display: block; }
.r-acct { margin-top: 0; }
.r-acct > * { min-width: 0; }

/* Ironbark marks: a barbell-plate bar under every page title, a lanyard slot on the check-in tag. */
.k-pagehead h1::after { content: ""; display: block; width: 56px; height: 6px; margin-top: 10px; border-radius: 3px; background: var(--k-brand); }
.r-tag { position: relative; }
@media (prefers-color-scheme: dark) { .r-slip-when { background: #3a3e44; } }

/* Punch card: ten numbered squares, stamped as you check in. */
.r-tag .k-dots { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: pc; }
.r-tag .k-dots li { aspect-ratio: 1.25; border-radius: 10px; counter-increment: pc; position: relative; }
.r-tag .k-dots li:not(.on):not(.k-free)::after { content: counter(pc); font-family: var(--k-font-display); font-weight: 700; font-size: 1rem; color: color-mix(in srgb, var(--k-brand-ink) 80%, transparent); }
.r-tag .k-dots li.on { background: var(--k-brand-ink); box-shadow: none; }
.r-tag .k-dots li.on::before { background: var(--k-brand); }
.r-tag .k-dots li.k-free { border-radius: 10px; box-shadow: none; background: transparent; border: 2px solid var(--k-brand-ink); }
.r-tag .k-dots li.k-free::before { color: var(--k-brand-ink); }
.r-tag .k-dots li.k-free.on { background: var(--k-brand-ink); }
.r-tag .k-dots li.k-free.on::before { color: var(--k-brand); }
.k-hero-card .k-badge-ok { background: #fff; color: #1a1c1e; }
.k-account .k-btn, .k-account button { justify-content: center; text-align: center; }
@media (max-width: 1023px) {
  .r-acct > aside { order: -1; }
}
@media (max-width: 639px) {
    .r-slip[data-k-state="ok"] .r-slip-foot, .r-slip[data-k-state="done"] .r-slip-foot { padding-top: var(--k-2); }
  .r-past-table .k-td[data-label]::before { display: none; }
  .r-past-table .k-tr { align-items: center; }
  .r-past-table .k-td-main { flex: 1 1 0; }
  .r-past-table .k-td-end { margin-left: auto; }
}

.r-slip[data-k-state="ok"] .r-slip-foot { border-top: 0; }
#book .k-row-sub, #book .k-row-title { white-space: normal; }
.k-account button { background: var(--k-surface); box-shadow: inset 0 0 0 1.5px var(--k-line-strong); }
.r-acct .r-profile { border-radius: var(--k-r-l) var(--k-r-l) var(--k-r-s, 6px) var(--k-r-s, 6px); }
.r-acct .k-col { gap: 3px; }
.r-acct .k-account > p:first-child { border-radius: var(--k-r-s, 6px) var(--k-r-s, 6px) var(--k-r-l) var(--k-r-l); }
@media (min-width: 1024px) {
  .r-home.k-board > aside { grid-row: 3; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: start; }
}
.r-home [data-k-ready] { display: contents; }
@media (min-width: 1024px) { .r-home .r-log { flex-wrap: nowrap; } }

/* art direction 2026-10-25 */
/* Whiteboard surfaces: cards, sheets, panels and lists are ink on chalk; the tokens follow into their children. */
.k-card, .k-sheet, .k-panel, .k-list, .k-table, .k-plan, .r-slip, .r-today, .pub-board, .k-account, .k-stat, .k-action, .k-pick button, .k-icon-btn, .k-item {
  --k-text: var(--r-ink); --k-muted: var(--r-ink-muted); --k-faint: var(--r-ink-muted);
  --k-line: rgba(31, 41, 55, .14); --k-line-strong: #1F2937; --k-surface-2: #E6E7E3;
  color: var(--r-ink);
}
.k-card, .k-sheet, .k-panel, .k-list, .k-table, .r-slip { background: var(--r-board); }
.k-list, .k-table { background: var(--r-board); }
.k-card :focus-visible, .k-sheet :focus-visible, .k-panel :focus-visible, .k-list :focus-visible, .r-today :focus-visible, .pub-board :focus-visible { outline-color: #1F2937; }
.k-tile { background: #1F2125; color: var(--k-brand); }
.k-tile-ok { background: #15803D; color: #fff; }
.k-avatar { background: #1F2125; color: #F5F5F2; }
.k-app h1, .k-app h2 { text-transform: uppercase; font-weight: 700; }
.k-app h3 { font-family: var(--k-font-display); font-weight: 700; letter-spacing: .01em; }
.k-kicker, .k-field > label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.k-big, .k-stat b, .r-time, .k-num { font-variant-numeric: tabular-nums; }

/* Buttons: yellow primary with ink; outlines are 2px. */
.k-btn { background: var(--k-brand); color: var(--k-brand-ink); }
.k-btn:hover { background: #FFD43B; filter: none; }
.k-btn-2 { background: #1F2125; color: #F5F5F2; }
.k-btn-line { box-shadow: inset 0 0 0 2px var(--k-line-strong); color: var(--k-text); }
.k-btn-line:hover { background: rgba(245, 245, 242, .08); }
.k-card .k-btn-2, .k-sheet .k-btn-2, .k-panel .k-btn-2 { background: #E6E7E3; color: #1F2937; }
.k-btn-ghost { color: var(--k-brand); }
.k-card .k-btn-ghost, .k-sheet .k-btn-ghost, .k-list .k-btn-ghost, .r-today .k-btn-ghost, .k-table .k-btn-ghost { color: #1F2937; }
.k-section-head a, .k-back, .k-tabs-foot a { color: var(--k-brand); }
.r-today .k-section-head a, .k-card .k-section-head a, .k-panel .k-section-head a { color: #1F2937; text-decoration: underline; }
.k-badge-brand { background: var(--k-brand); color: var(--k-brand-ink); }

/* Status badges: plate colours for meaning (Booked blue, Checked in green, Waitlist yellow, Cancelled red). */
.k-badge-ok, [data-k-state="ok"] .k-badge-state { background: #1D4ED8; color: #fff; }
[data-k-state="done"] .k-badge-state { background: #15803D; color: #fff; }
[data-k-state="active"] .k-badge-state { background: #F5C400; color: #1F2125; }
[data-k-state="new"] .k-badge-state { background: #E5E7EB; color: #1F2937; box-shadow: inset 0 0 0 2px #1F2937; }
[data-k-state="off"] .k-badge-state { background: #C81E1E; color: #fff; }
.k-hero-card .k-badge-ok { background: #fff; color: #1F2125; }
.k-badge-state::before { background: currentColor; }

/* Chalk chrome: the rail and the tab bar in charcoal, chalk labels, a yellow bar on the active item. */
.k-top { color: #F5F5F2; }
.k-tabs { background: #1F2125; box-shadow: 0 -1px 0 rgba(245, 245, 242, .1); }
.k-tabs a { color: #F5F5F2; }
.k-tabs a .k-i { color: #F5F5F2; }
.k-tabs a[aria-current="page"] { color: var(--k-brand); box-shadow: inset 0 4px 0 var(--k-brand); }
.k-tabs a[aria-current="page"] .k-i { color: var(--k-brand); }
@media (min-width: 1024px) { .k-tabs a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--k-brand); } }
.k-chip, .k-chips .k-chip, .r-note-chips .k-chip, .r-weeks .k-chip { min-height: 44px; }

/* Public page: full-bleed steel band with the barbell, then a yellow ticker and whiteboards. */
main > .pub-wrap:first-child { max-width: none; padding: 0; }
.pub-hero { position: relative; max-width: var(--k-max); margin: 0 auto; padding: 24px 16px 40px; min-height: 88vh; align-content: center; background-image: radial-gradient(rgba(245, 245, 242, .07) 1px, transparent 1.5px); background-size: 14px 14px; }
.pub-hero h1 { font-family: var(--k-font-display); font-size: min(10.5vw, 9.5rem); font-weight: 700; line-height: .9; letter-spacing: 0; text-transform: uppercase; color: #F5F5F2; }
.pub-hero h1 em { display: block; font-style: normal; color: var(--k-brand); }
.pub-hero .k-lead { color: #C9CCD1; font-size: 1.1875rem; max-width: 46ch; }
.pub-barbell { margin: 24px 0 0; }
.pub-barbell img { display: block; width: 100%; height: auto; }
.pub-hero .k-btn-row { margin-top: 24px; }
.pub-hero .k-btn-line { color: #F5F5F2; box-shadow: inset 0 0 0 2px #F5F5F2; }
.pub-facts span { color: #C9CCD1; }
.pub-facts { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .pub-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pub-ticker { background: var(--k-brand); color: #1F2125; }
.pub-ticker p { max-width: var(--k-max); margin: 0 auto; padding: 14px 16px; min-height: 56px; display: flex; flex-wrap: wrap; align-items: center; font-family: var(--k-font-display); font-size: 1.375rem; font-weight: 700; text-transform: uppercase; line-height: 1.3; }
.pub-ticker span + span::before { content: " · "; }
.pub-sec { padding: var(--k-6) 0; }
.pub-wrap { padding: 0 16px; }
.pub-board { background: var(--r-board); color: var(--r-ink); border: 2px solid #9CA3AF; border-radius: 4px; padding: 24px; box-shadow: none; }
.pub-how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 900px) { .pub-how-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pub-how-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.pub-how-n { font-family: var(--k-font-display); font-size: 2.5rem; font-weight: 700; line-height: 1; color: #1F2937; min-width: 1ch; }
.pub-how-list h3 { font-size: 1.5rem; text-transform: uppercase; color: #1F2937; margin: 0 0 6px; }
.pub-how-list p { color: #4B5563; margin: 0; font-size: var(--k-t-sub); }
.pub-tt .r-time { font-family: var(--k-font-display); font-size: 2rem; font-weight: 700; width: 4.5rem; color: #1F2937; }
.pub-tt .r-day h3 { color: #1F2937; }
.pub-tt .r-day .k-row { background: #FFFFFF; }
.pub-tt .r-day .k-row-title { font-family: var(--k-font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; color: #1F2937; }
.pub-plates-note { font-size: var(--k-t-foot); }
.r-plate { background: var(--plate, #1D4ED8); color: #F5F5F2; --k-text: #F5F5F2; --k-muted: #F5F5F2; --k-faint: #F5F5F2; --k-line: rgba(245, 245, 242, .3); --k-line-strong: #F5F5F2; --k-surface-2: #1F2125; }
.r-plate-blue { --plate: #1D4ED8; }
.r-plate-red { --plate: #C81E1E; border-top: 8px solid #F5C400; }
.r-plate .k-price, .r-plate .k-price small { color: #F5F5F2; }
.r-plate li .k-i { color: #F5C400; }
.r-plate .k-btn { color: #1F2125; }
.pub-coaches { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .pub-coaches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pub-coach .k-avatar { background: #1F2125; color: #F5C400; }
.pub-cta { background: #1F2125; color: #F5F5F2; }
.pub-cta .k-btn-on-hero { background: #F5C400; color: #1F2125; }

/* The hero's barbell and the ticker are art, not links: nothing to tap there. */
.pub-top { background: color-mix(in srgb, #2B2D31 92%, transparent); }

/* Member home: the board first and full width, next class and the check-in tag under it. */
.r-home > .r-today { order: -1; }
.r-today { background-color: var(--r-board); background-image: radial-gradient(ellipse at 18% 24%, rgba(31, 41, 55, .045), transparent 55%), radial-gradient(ellipse at 82% 76%, rgba(31, 41, 55, .035), transparent 50%); border: 6px solid #9A9C9F; border-radius: 4px; padding: 16px; color: var(--r-ink); }
.r-today .k-section-head h2 { color: #1F2937; }
.r-today .r-day:not([data-tomorrow]) h3 { display: none; }
.r-today .k-row { background: #FFFFFF; min-height: 72px; padding: 12px 14px; margin-bottom: 6px; border-radius: 4px; }
.r-today .k-row-title { font-family: var(--k-font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; color: #1F2937; line-height: 1.1; }
.r-today .r-time { font-family: var(--k-font-display); font-size: 2.5rem; font-weight: 700; line-height: 1; width: 96px; color: #1F2937; }
.r-today .k-row-sub { color: #4B5563; }
.r-today .k-row + .k-row::before { display: none; }
.r-today .k-row[data-past] .r-time, .r-today .k-row[data-past] .k-row-title { color: #6B7280; }
.r-plates { position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; height: 24px; margin-top: 8px; max-width: 100%; }
.r-plates::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: #6B7280; }
.r-plates i { position: relative; flex: 0 1 10px; min-width: 4px; width: 10px; height: 24px; border-radius: 2px; background: #6B7280; box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.r-plates i.r { background: #C81E1E; }
.r-magnet { position: static; flex: none; margin-left: auto; align-self: center; display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; border-radius: 2px; background: #F5C400; color: #2B2D31; font-family: var(--k-font-display); font-weight: 600; font-size: .75rem; line-height: 1.2; box-shadow: 0 2px 0 #00000040; transform: rotate(-2deg); animation: r-drop 180ms ease-out both; }
.r-magnet[data-st="requested"] { background: #E6E7E3; box-shadow: inset 0 0 0 2px #2B2D31, 0 2px 0 #00000040; }
.r-magnet[data-st="waitlist"] { background: #F5F5F2; box-shadow: inset 0 0 0 2px #C81E1E, 0 2px 0 #00000040; }
@keyframes r-drop { from { transform: translateY(-8px) rotate(-2deg); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }
.r-today .k-row { position: relative; }

/* Check-in tag: a steel gym tag with the count in Antonio and ten plate discs. */
.r-tag { background: #1F2125; color: #F5F5F2; box-shadow: none; background-image: none; }
.r-tag .k-big { font-family: var(--k-font-display); font-size: 6rem; font-weight: 700; line-height: .95; color: #F5F5F2; }
.r-tag .k-big small { font-size: 1.125rem; font-family: var(--k-font); font-weight: 500; color: #C9CCD1; }
.r-tag .k-dots { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
/* Ten end-on plates: a disc with a 10px steel hole, colours cycling red, blue, yellow, green; filled when checked in. */
.r-tag .k-dots li { --plate: #C81E1E; aspect-ratio: 1; border-radius: 50%; border: 0; background: radial-gradient(circle, #1F2125 0 5px, transparent 5.5px), transparent; box-shadow: inset 0 0 0 2px var(--plate); }
.r-tag .k-dots li:nth-child(4n+2) { --plate: #1D4ED8; }
.r-tag .k-dots li:nth-child(4n+3) { --plate: #F5C400; }
.r-tag .k-dots li:nth-child(4n+4) { --plate: #15803D; }
.r-tag .k-dots li.on { background: radial-gradient(circle, #1F2125 0 5px, transparent 5.5px), var(--plate); box-shadow: none; }
.r-tag .k-dots li::before, .r-tag .k-dots li::after { content: none; }
.r-tag .k-dots li.k-free { --plate: #F5C400; background: #F5C400; box-shadow: none; }
.r-tag .k-dots li.k-free::before { content: "FREE"; display: block; width: auto; height: auto; transform: none; background: none; -webkit-mask: none; mask: none; color: #1F2125; font-family: var(--k-font-display); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.r-tag .k-note, .r-tag .k-scan { color: #F5F5F2; }
.r-tag .k-note { color: #C9CCD1; }
.r-tag .k-scan { background: transparent; color: #F5F5F2; }
.r-tag .k-hero-top { color: #F5F5F2; }
.r-home.k-board > .r-tag { align-self: stretch; }
.r-cardcol .r-tag { padding-bottom: var(--k-5); }

/* Desktop board layout: board first and full width; next class and tag below it. */
@media (min-width: 1024px) {
  .r-home.k-board { grid-template-columns: minmax(0, 1fr) 380px; }
  .r-home.k-board > .r-today { grid-column: 1; grid-row: 1 / span 2; }
  .r-home.k-board > section[aria-labelledby="next-h"] { grid-column: 2; grid-row: 1; }
  .r-home.k-board > .r-tag { grid-column: 2; grid-row: 2; align-self: start; }
  .r-days-today { grid-template-columns: minmax(0, 1fr); }
}

/* Bookings and plan: whiteboard cards on steel with plate-coloured badges. The how-booking card keeps 24px from the list. */
section[aria-labelledby="soon-h"] > .k-panel { margin-top: 24px; }
.r-slip-when { background: #1F2125; }
@media (prefers-color-scheme: dark) { .r-slip-when { background: #141518; } }
.r-slip-main .r-note, .r-slip-main .r-reply { color: #4B5563; }
.r-compare .r-yn .k-i { color: #1F2937; }
.r-yn { color: #1F2937; }

@media (prefers-reduced-motion: reduce) { .r-magnet { animation: none; } }
@media (min-width: 1024px) { .pub-hero { grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; padding-top: 48px; } }
.pub-hero > div:first-child { min-width: 0; }
.pub-ticker span + span::before { content: " · "; white-space: pre; }
/* The check-in tag stays steel on every page (the kit's brand hero would paint it yellow). */
body.k-app .k-hero-card.r-tag { background: #1F2125; background-image: none; color: #F5F5F2; box-shadow: none; }
body.k-app .k-hero-card.r-tag .k-big { color: #F5F5F2; }

/* art direction 2026-10-25, round 2 */
/* Kit surfaces outside the whiteboard scope: their own chalk surface, ink text, muted #5A5D63, white fields. */
.k-account, .k-stat, .k-action, .k-pick button, .k-icon-btn, .k-item { --k-muted: #5A5D63; --k-faint: #5A5D63; }
.k-account input:not([type="checkbox"]):not([type="radio"]), .k-account select, .k-account textarea { background: #fff; border: 1px solid #C9CAC6; color: #2B2D31; }

/* Board: the whiteboard frame on the timetable (home today and Book week). */
.r-board { background: var(--r-board); border: 6px solid #9A9C9F; border-radius: 4px; padding: 16px; color: var(--r-ink); }
.r-board .r-day h3, .r-board .r-day[data-today] h3 { color: #2B2D31; font-family: var(--k-font-display); font-size: 1.25rem; border-bottom-color: #2B2D31; }
.r-board .r-day h3 span, .r-board .r-day[data-today] h3 span { color: #1F2937; }
.r-board .r-day .k-row { background: #FFFFFF; }
.r-board .r-time { color: #2B2D31; font-family: var(--k-font-display); }
.r-today .k-row-title, .r-day .k-row-title, .r-day .k-row-sub, .k-row-title, .k-row-sub { text-overflow: clip; }

/* Big numerals in Antonio. */
.r-stamp-note b { font-family: var(--k-font-display); font-size: 1.75rem; line-height: 1; font-weight: 700; }
.r-log b, .k-metrics b, .k-num [data-pl-count] { font-family: var(--k-font-display); }
.k-num [data-pl-count] { font-size: 1.5rem; }

/* Public page: the See this week button is an outline on steel, the ticker is one short line of text on phones. */
.pub-hero .k-btn-line { background: transparent; color: #F5F5F2; box-shadow: inset 0 0 0 2px #F5F5F2; }
.pub-hero .k-btn-line:hover { background: rgba(245, 245, 242, .08); }
@media (max-width: 639px) {
  .pub-ticker p { font-size: .875rem; line-height: 1.35; padding: 12px 16px; min-height: 0; gap: 0 4px; }
  .pub-ticker span + span::before { white-space: pre; }
}

/* Phones (320 to 639px): the board rows show full names, large times, no picture tiles and no ellipsis. */
@media (max-width: 639px) {
  .r-today .r-time { width: auto; font-size: 1.75rem; }
  .r-today .k-tile { display: none; }
  .r-today .r-plates { height: auto; }
  .r-today .k-row-main { min-width: 0; }
  .r-today .k-row-title { white-space: normal; overflow: visible; text-overflow: clip; font-size: 1.25rem; }
  .r-today .k-row-sub { white-space: normal; overflow: visible; text-overflow: clip; }
}

/* Card page: plain black wallet pills under Show my code, no corner marks on the check-in tag. */
.r-tag::before, .r-tag::after { content: none; }
.r-tag .k-scan { box-shadow: none; }
.k-scan [data-pl-wallet] { gap: 12px; margin-top: 12px; }
.k-scan [data-pl-wallet] button { min-height: 44px; border-radius: 999px; border: 0; background: #000; color: #fff; justify-content: center; text-align: center; }

@media (prefers-reduced-motion: reduce) { .r-magnet { animation: none; } }

/* art direction 2026-10-25, round 3 */
/* Account: section heads chalk on steel (Antonio, 1.25rem, caps); the Leaving paragraph and notes #C9CACC. */
.r-acct .k-account > h3 { color: #F5F5F2; font-family: var(--k-font-display); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; margin-top: var(--k-5); }
.r-acct .k-account > h3:first-child { margin-top: 0; }
.r-acct .k-account > h3 + p:not(:last-child), .r-acct .k-account > p:last-child { color: #C9CACC; }

/* Public: the headline and the barbell fit a 375 screen with Join Ironbark. */
@media (max-width: 639px) {
  .pub-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .pub-barbell { margin: 16px 0 0; }
  .pub-barbell img { width: 100%; max-width: 343px; height: 72px; object-fit: contain; }
}

/* Public timetable: class names wrap cleanly, times are 1.5rem, meta chunks never break inside a chunk. */
.r-meta { white-space: nowrap; }
.pub-tt .r-time { font-size: 1.5rem; width: auto; min-width: 4rem; }
.pub-tt .r-day .k-row-title { font-size: 1.125rem; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .pub-tt .r-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pub-tt .r-day:last-child { grid-column: span 2; }
}
@media (min-width: 720px) and (max-width: 1023px) { .pub-tt .r-day:last-child { grid-column: span 2; } }

/* Home 1440: the board, then Your log under it; next class and the check-in tag fill the right column. */
.r-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.r-side > section { flex: none; }
.r-side > .r-tag { flex: 1 1 auto; }
@media (min-width: 1024px) {
  .r-home.k-board { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
  .r-home.k-board > aside > * { width: 100%; min-width: 0; }
  .r-side > .r-tag { width: 100%; max-width: none; }
  .r-home.k-board > .r-today { grid-column: 1; grid-row: 1; }
  .r-home.k-board > aside { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 28px; }
  .r-home.k-board > .r-side { grid-column: 2; grid-row: 1 / span 2; gap: 28px; }
}
/* My code: chalk button with a 2px ink outline (a white outline disappears on steel). */
.k-pagehead-actions .k-btn-line { background: #F5F5F2; color: #2B2D31; box-shadow: inset 0 0 0 2px #2B2D31; }
.k-pagehead-actions .k-btn-line:hover { background: #FFFFFF; }

/* Book: class names in Antonio caps, places left drawn as plates under each slot (as on Home). */
.r-board .r-day .k-row-title { font-family: var(--k-font-display); font-size: 1.25rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; color: #1F2937; }
.r-slip-top .k-row-title { text-transform: uppercase; letter-spacing: .02em; }
.r-board .r-plates { margin-top: 6px; }

/* Card page: the code is the object. A 240 by 240 QR tile on chalk with a yellow top edge, the name in Antonio below,
   and Show my code as a full-width yellow button. */
.r-cardcol .r-tag { display: flex; flex-direction: column; }
.r-cardcol .r-tag > .k-scan { order: -1; display: flex; flex-direction: column; align-items: stretch; box-sizing: border-box; min-height: 240px; margin: 0 0 16px; padding: 16px; border-radius: 4px; background: #F5F5F2; border-top: 4px solid #F5C400; color: #2B2D31; }
.r-cardcol .r-tag > .k-scan [data-pl-scan-code]:not([hidden]) { width: 240px; max-width: 100%; height: 240px; min-height: 0; box-sizing: border-box; margin: 0 auto; padding: 16px; border-radius: 0; background: #FFFFFF; }
.r-cardcol .r-tag > .k-scan [data-pl-scan-show] { order: 1; width: 100%; min-height: 56px; margin-top: 16px; background: #F5C400; color: #2B2D31; font-size: 1.0625rem; }
.r-cardcol .r-tag > .k-hero-top { font-family: var(--k-font-display); font-size: 2rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; }
.r-cardcol .r-tag > .k-hero-top svg { display: none; }

/* Magnet tag: a 28 by 20 plate tag with initials, rotated, dropping in once. */
.r-magnet { width: 28px; height: 20px; padding: 0; box-sizing: border-box; border: 2px solid #2B2D31; box-shadow: none; transform: rotate(-3deg); animation: r-drop 180ms ease-out both; font-size: .6875rem; line-height: 1; letter-spacing: .02em; }
.r-magnet[data-st="requested"] { background: #E6E7E3; box-shadow: none; }
.r-magnet[data-st="waitlist"] { background: #F5F5F2; border-color: #C81E1E; box-shadow: none; }
@keyframes r-drop { from { transform: translateY(-8px) rotate(-3deg); opacity: 0; } to { transform: rotate(-3deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .r-magnet { animation: none; } }

/* Dark mode is its own theme: cards at #34363B with chalk text, rows one step darker, same palette names. */
@media (prefers-color-scheme: dark) {
  :root { --k-surface: #34363B; --k-surface-2: #2B2D31; --r-board: #34363B; --r-ink: #F5F5F2; --r-ink-muted: #C9CCD1; }
  .k-card, .k-sheet, .k-panel, .k-list, .k-table, .k-plan, .r-slip, .r-today, .pub-board, .k-item { background-color: #34363B; }
  .k-card, .k-sheet, .k-panel, .k-list, .k-table, .r-slip, .r-today, .pub-board { --k-line: rgba(245, 245, 242, .14); --k-line-strong: #F5F5F2; --k-surface-2: #2B2D31; }
  .k-card .k-btn-2, .k-sheet .k-btn-2, .k-panel .k-btn-2 { background: #F5F5F2; color: #2B2D31; }
  .r-today, .r-board, .pub-board { border-color: #5A5D63; }
  .r-today .k-row, .r-board .r-day .k-row, .pub-tt .r-day .k-row { background: #2B2D31; }
  .r-today .k-row-title, .r-today .r-time, .r-board .r-day .k-row-title, .r-board .r-time, .pub-tt .r-time,
  .pub-tt .r-day .k-row-title, .pub-tt .r-day h3, .r-board .r-day h3, .r-board .r-day[data-today] h3,
  .r-today .k-section-head h2, .pub-how-list h3, .pub-how-n, .r-yn, .r-compare .r-yn .k-i { color: #F5F5F2; }
  .r-today .k-row-sub, .pub-how-list p { color: #C9CCD1; }
  .r-today .k-row[data-past] .r-time, .r-today .k-row[data-past] .k-row-title { color: #9CA0A7; }
  .r-slip-main .r-note, .r-slip-main .r-reply { color: #C9CCD1; }
  .r-today .r-plates::before { background: #6B7280; }
  .r-today .r-magnet, .r-board .r-magnet { color: #2B2D31; }
  .r-acct .k-account > h3 { color: #F5F5F2; }
  .k-account, .k-stat, .k-action, .k-pick button, .k-icon-btn, .k-item { --k-muted: #C9CCD1; --k-faint: #C9CCD1; }
  .pub-tt .r-day h3 span, .pub-tt .r-day[data-today] h3 span { color: #F5F5F2; }
  .k-sheet .r-slot-help a { color: #F5F5F2; }
  .k-app .skip { color: #F5F5F2; }
  .r-board .r-day h3 span, .r-board .r-day[data-today] h3 span { color: #F5F5F2; }
  .k-card :focus-visible, .k-sheet :focus-visible, .k-panel :focus-visible, .k-list :focus-visible, .r-today :focus-visible, .pub-board :focus-visible { outline-color: #F5F5F2; }
}

/* The AI chat block (data-pl-ai-chat): Page Lemon draws a log, a form and plain buttons; these give them the kit's look. */
[data-pl-ai-chat] [data-pl-ai-log] { display: grid; gap: 10px; margin: 12px 0; }
[data-pl-ai-chat] [data-pl-ai-log]:empty { display: none; }
[data-pl-ai-chat] [data-pl-ai-msg] { padding: 10px 14px; border-radius: 14px; background: var(--k-surface-2); color: var(--k-text); line-height: 1.45; }
[data-pl-ai-chat] [data-pl-ai-msg="user"] { justify-self: end; max-width: 85%; background: var(--k-brand); color: var(--k-brand-ink); }
[data-pl-ai-chat] [data-pl-ai-msg] > strong { display: block; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
[data-pl-ai-chat] [data-pl-ai-label] { display: block; margin-top: 6px; color: var(--k-muted); font-size: .8125rem; }
[data-pl-ai-chat] form { display: flex; flex-wrap: wrap; gap: 8px; }
[data-pl-ai-chat] form label { flex: 1 0 100%; font-weight: 600; }
[data-pl-ai-chat] textarea { flex: 1 0 100%; box-sizing: border-box; width: 100%; min-height: 72px; padding: 10px 12px; border: 1px solid var(--k-line-strong, var(--k-line)); border-radius: 10px; background: var(--k-surface); color: var(--k-text); font: inherit; }
[data-pl-ai-chat] button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--k-r-pill); background: var(--k-surface-2); color: var(--k-text); font: 600 .9375rem/1 var(--k-font); cursor: pointer; }
[data-pl-ai-chat] button[data-pl-ai-send] { background: var(--k-brand); color: var(--k-brand-ink); }
[data-pl-ai-chat] [data-pl-ai-msg] button { min-height: 32px; margin: 8px 6px 0 0; padding: 0 12px; font-size: .8125rem; }
[data-pl-ai-chat] button[hidden] { display: none; }
[data-pl-ai-chat] [data-pl-ai-status]:empty { display: none; }
