
/* art club color kit: periwinkle leads (big areas, header, main buttons); red/pink, orange/peach,
   yellow/cream are the second tier (one per ticket type + notes); green/lime and purple/lavender are small accents */
:root {
  /* layout: periwinkle header band, step bar, one step at a time on the left, summary on the right; stacks on phones */
  --peri: #94abe7;        /* main color */
  --peri-soft: #e1eaff;
  --peri-deep: #7c95d8;   /* hover/pressed on periwinkle */
  --red: #d34e58; --pink: #ffc0d5;
  --orange: #f49a44; --peach: #ffd29e;
  --yellow: #f7e68d; --cream: #fff9d9;
  --green: #70952b; --lime: #cad016;
  --purple: #5d4283; --lavender: #f3d6ff;
  --bg: #f9f7f2;          /* the kit's paper */
  --surface: #ffffff;
  --ink: #2b2550;         /* deep purple-navy for text */
  --muted: #5f5a7a;
  --line: #e0dcea;
  --accent: var(--peri);
  --accent-ink: var(--ink);
  --sun: var(--yellow);
  --club: var(--red); --club-soft: var(--pink);
  --open: var(--orange); --open-soft: var(--peach);
  --cowork: var(--green); --cowork-soft: var(--lime);
  --link: var(--purple);
  --ok: #4f6f1a;          /* green, darkened for text */
  --warn: #a8571a;        /* orange, darkened for text */
  --full: #b3343e;        /* red, darkened for text */
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #18162b; --surface: #221f3b; --ink: #f4f1fb; --muted: #b3aed0; --line: #37335a;
    --peri-soft: #2b3360; 
    --accent-ink: #1b1838; 
    
    --peri-deep: #a9bcef; --pink: #5a2a3a; --peach: #5a3c1e; --cream: #3d3820; --lavender: #3b2c55; --club-soft: #4a2533; --open-soft: #4d3519; --cowork-soft: #2d3a15; --link: #d9c2ff; --ok: #a9d36a; --warn: #f5b26e; --full: #ff9aa2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #18162b; --surface: #221f3b; --ink: #f4f1fb; --muted: #b3aed0; --line: #37335a;
  --peri-soft: #2b3360; 
  --accent-ink: #1b1838; 
  
  --peri-deep: #a9bcef; --pink: #5a2a3a; --peach: #5a3c1e; --cream: #3d3820; --lavender: #3b2c55; --club-soft: #4a2533; --open-soft: #4d3519; --cowork-soft: #2d3a15; --link: #d9c2ff; --ok: #a9d36a; --warn: #f5b26e; --full: #ff9aa2;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.15; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.testbar { background: var(--sun); color: #1d2340; font-size: 14px; font-weight: 500; padding: 8px 16px; text-align: center; }
header.top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.brand h1 span { color: var(--accent); }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.views { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.views a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 6px 16px; border-radius: 999px; font-size: 15px; }
.views a[aria-current="page"] { background: var(--ink); color: var(--bg); }

main { max-width: 1120px; margin: 0 auto; padding: 24px 16px 64px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; } }

/* step bar */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 6px; margin-bottom: 20px; list-style: none; padding: 0; }
.steps button { width: 100%; text-align: left; border: 0; background: none; padding: 0; }
.steps button:disabled { cursor: default; }
.steps .bar { height: 6px; border-radius: 999px; background: var(--line); margin-bottom: 6px; }
.steps .lbl { font-size: 13px; font-weight: 700; color: var(--muted); }
.steps .lbl b { display: block; font-size: 15px; color: var(--ink); font-weight: 500; }
.steps .done .bar { background: var(--ink); }
.steps .now .bar { background: var(--accent); }
.steps .now .lbl { color: var(--accent); }
@media (max-width: 520px) { .steps .lbl b { display: none; } }

.stage { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 18px; }
.stage-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 16px; }
.stage-head h2 { font-size: 26px; font-weight: 800; }
.stage-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.back { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }

/* step 1 */
.passes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pass { text-align: left; background: var(--bg); border: 2px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.pass:hover { border-color: var(--c); }
.pass .swatch { width: 44px; height: 8px; border-radius: 999px; background: var(--c); }
.pass h3 { font-size: 24px; font-weight: 800; }
.pass.club { background: #1d2340; border-color: #1d2340; color: #f6f5fb; }
.pass.club p, .pass.club .note { color: var(--muted); }
.pass.club:hover { border-color: var(--accent); }
.pass:disabled { opacity: .55; cursor: default; }
.pass:disabled:hover { border-color: var(--line); }
.policy { background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.policy b { display: block; margin-bottom: 2px; }
.pass .when { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c); }
.slot.night { width: 100%; }
.pass p { margin: 0; color: var(--muted); font-size: 15px; }
.pass ul { margin: 0; padding-left: 18px; font-size: 15px; display: grid; gap: 4px; }
.pass .from { font-weight: 700; font-variant-numeric: tabular-nums; }

/* step 2 */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week .dowh { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; padding-bottom: 2px; }
.day { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 8px 6px; text-align: center; min-height: 92px; display: grid; gap: 2px; align-content: start; justify-items: center; }
.day .n { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1.1; }
.day .m { font-size: 11px; color: var(--muted); }
.day .h { font-size: 11px; color: var(--muted); line-height: 1.3; }
.day:not(:disabled):hover { border-color: var(--ink); }
.day:disabled { background: none; border-style: dashed; color: var(--muted); opacity: .6; cursor: default; }
.day.night-dot::after { content: "night"; font-size: 10px; font-weight: 700; color: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .day { min-height: 70px; padding: 6px 2px; } .day .h { display: none; } .day .n { font-size: 20px; } }

/* step 3 */
.slotgroup h3 { font-size: 18px; margin-bottom: 4px; }
.slotgroup p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 12px; text-align: left; display: grid; gap: 2px; }
.slot b { font-variant-numeric: tabular-nums; }
.slot:not(:disabled):hover { border-color: var(--ink); }
.slot:disabled { opacity: .5; cursor: default; text-decoration: line-through; }
.slot.night { border: 2px solid var(--accent); padding: 14px 16px; }
.slot.night b { font-size: 18px; }
.avail { font-size: 12px; font-weight: 700; }
.avail.ok { color: var(--ok); } .avail.low { color: var(--warn); } .avail.full { color: var(--full); }

/* step 4 */
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 34px; height: 34px; border: 0; background: none; font-size: 18px; border-radius: 999px; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.extra { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; align-items: center; font-size: 15px; }
.extra small { display: block; color: var(--muted); font-size: 13px; }
.extra .p { font-variant-numeric: tabular-nums; color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }
label.field { display: grid; gap: 4px; font-size: 14px; font-weight: 500; }
label.field input, label.field select { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.btn { border: 0; border-radius: 12px; padding: 14px 18px; font-weight: 700; font-size: 16px; background: var(--accent); color: var(--accent-ink); width: 100%; }
.btn.secondary { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.err { color: var(--full); font-size: 14px; margin: 0; }
.note { color: var(--muted); font-size: 13px; margin: 0; }
.tbd { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px dashed var(--muted); border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }

/* summary */
.summary { position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 12px; }
.summary h3 { font-size: 18px; }
.sumline { display: grid; gap: 1px; font-size: 15px; }
.sumline span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sumline.empty b { color: var(--muted); font-weight: 400; }
.totals { border-top: 1px dashed var(--line); padding-top: 10px; display: grid; gap: 4px; font-variant-numeric: tabular-nums; font-size: 15px; }
.totals .grand { font-weight: 700; font-size: 18px; }
.hours { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 2px; }
.hours b { color: var(--ink); font-weight: 600; }

.confirm { text-align: center; display: grid; gap: 10px; justify-items: center; }
.confirm .big { font-family: var(--display); font-size: 30px; font-weight: 800; }
.receipt { width: 100%; max-width: 420px; text-align: left; background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 14px; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }

/* admin */
.admin-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.admin-head select { min-width: 220px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button:disabled { opacity: .4; cursor: default; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tile .k { font-size: 13px; color: var(--muted); font-weight: 500; }
.tile .v { font-family: var(--display); font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 880px) { .cols { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; }
.card h3 { font-size: 18px; }
.chart { overflow-x: auto; }
.bars { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(20px, 1fr); gap: 4px; align-items: end; height: 170px; padding-top: 18px; border-bottom: 1px solid var(--line); min-width: 360px; }
.bars .capline { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--full); }
.bars .capline span { position: absolute; right: 0; top: -18px; font-size: 11px; font-weight: 700; color: var(--full); background: var(--surface); padding: 0 4px; }
.bar { background: var(--ink); border-radius: 4px 4px 0 0; position: relative; min-height: 2px; opacity: .85; }
.bar.cw { background: linear-gradient(to top, var(--cowork) var(--cw), var(--sun) var(--cw)); opacity: 1; }
.bar i { position: absolute; top: -17px; left: -4px; right: -4px; text-align: center; font-size: 10px; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.xlabels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(20px, 1fr); gap: 4px; font-size: 11px; color: var(--muted); text-align: center; min-width: 360px; padding-top: 4px; }
.key { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.list { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.in td { color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); margin: 2px 4px 2px 0; white-space: nowrap; }
.tag.cw { border-color: var(--cowork); color: var(--cowork); }
.tag.walk { border-color: var(--sun); }
.ckbtn { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
tr.in .ckbtn { background: var(--ok); color: #fff; border-color: var(--ok); }
.prep { display: grid; gap: 6px; font-size: 15px; }
.prep b { font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); font-size: 15px; padding: 8px 0; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: no-preference) { .pass, .day, .slot, .btn, .ckbtn { transition: border-color .15s, background .15s; } }

/* additions for the brief rebuild */
.views { flex-wrap: wrap; }
.included { display: grid; gap: 4px; font-size: 14px; margin: 0; padding: 0; list-style: none; }
.included li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
.pass.club .included li::before { color: var(--ink); }
.expect { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.expect div { background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.expect b { display: block; font-size: 12px; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.timing { display: flex; gap: 10px; align-items: flex-start; background: color-mix(in srgb, var(--sun) 22%, var(--surface)); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.timing .ico { font-size: 18px; line-height: 1.2; }
.menu { display: grid; gap: 4px; font-size: 14px; }
.menu .row { border-bottom: 1px dashed var(--line); padding: 4px 0; }
.menu .row span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); }
details.drawer { background: var(--bg); border-radius: 12px; padding: 10px 14px; }
details.drawer summary { cursor: pointer; font-weight: 700; font-size: 15px; }
details.drawer[open] summary { margin-bottom: 8px; }
.timeline { display: grid; gap: 10px; width: 100%; max-width: 460px; text-align: left; }
.timeline .step { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 14px; }
.timeline .when { font-weight: 700; color: var(--muted); font-size: 13px; }
.msg { background: var(--bg); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 10px 12px; font-size: 14px; }
.actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; width: 100%; max-width: 460px; }
@media (max-width: 520px) { .actions { grid-template-columns: 1fr; } }
.inline-form { display: grid; gap: 8px; width: 100%; max-width: 460px; text-align: left; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.page { max-width: 760px; margin: 0 auto; display: grid; gap: 20px; }
.page section { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 12px; }
.page h2 { font-size: 28px; font-weight: 800; }
.page h3 { font-size: 20px; font-weight: 800; }
.page p { margin: 0; max-width: 65ch; }
.howsteps { display: grid; gap: 14px; counter-reset: s; }
.howsteps > div { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.howsteps .num { width: 44px; height: 44px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 800; font-size: 22px; display: grid; place-items: center; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.facts div { background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.facts b { display: block; margin-bottom: 2px; }
.contact { display: grid; gap: 8px; }
.contact .row { background: var(--bg); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.contact .row span:last-child { color: var(--muted); font-size: 13px; text-align: right; }
.fill { background: color-mix(in srgb, var(--sun) 30%, transparent); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.tag.wait { border-color: var(--warn); color: var(--warn); }

/* color kit overrides */
header.top { background: var(--peri); border-bottom: 0; color: #2b2550; }
header.top .brand h1 span { color: #ffffff; }
header.top .brand p { color: #2b2550; opacity: .8; }
.views { background: rgba(255,255,255,.35); border-color: rgba(43,37,80,.18); }
.views a { color: #2b2550; }
.views a[aria-current="page"] { background: #2b2550; color: #ffffff; }
.testbar { background: var(--yellow); color: #2b2550; }
:focus-visible { outline-color: var(--purple); }
.btn { background: var(--peri); color: #2b2550; }
.btn:hover { background: var(--peri-deep); }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--peri-soft); }
.steps .now .bar { background: var(--peri); }
.steps .now .lbl { color: var(--link); }
.steps .done .bar { background: var(--purple); }
.stage, .summary { border-color: var(--line); }
.summary { background: var(--peri-soft); border: 0; }
.summary .hours { border-top-color: rgba(43,37,80,.15); }
.pass { background: var(--surface); border-width: 2px; }
.pass .swatch { display: none; }
.pass:hover { border-color: var(--c); }
.pass.club { background: var(--surface); border-color: var(--line); color: var(--ink); }
.pass.club p, .pass.club .note { color: var(--muted); }
.pass.club:hover { border-color: var(--club); }
.pass.club .included li::before { color: var(--ok); }
.pass .when { color: #2b2550; background: var(--cs); display: inline-block; justify-self: start; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.day:not(:disabled):hover, .slot:not(:disabled):hover { border-color: var(--peri-deep); background: var(--peri-soft); }
.day, .slot { background: var(--surface); }
.timing { background: var(--cream); border: 1px solid var(--yellow); }
.policy { background: var(--peri-soft); }
.fill { background: var(--yellow); color: #2b2550; }
.howsteps .num { background: var(--peri); color: #2b2550; }
.howsteps > div:nth-child(2) .num { background: var(--peach); }
.howsteps > div:nth-child(3) .num { background: var(--pink); }
.howsteps > div:nth-child(4) .num { background: var(--lavender); }
.page section:first-child { background: var(--peri-soft); border: 0; }
.expect div, .facts div, .contact .row, details.drawer, .receipt, .inline-form { background: var(--bg); }
.msg { background: var(--peri-soft); border: 0; }
.bar.cw, .bar.mix { background: linear-gradient(to top, var(--green) var(--cw), var(--peri) var(--cw)); opacity: 1; }
.bars .capline { border-top-color: var(--red); }
.bars .capline span { color: var(--red); }
.tag.walk { border-color: var(--orange); color: var(--warn); }
.tag.wait { border-color: var(--purple); color: var(--link); background: var(--lavender); }
.chip[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--purple); color: #fff; }
tr.in .ckbtn { background: var(--green); border-color: var(--green); }
a { color: var(--link); }
.pass.club .when { background: var(--pink); color: #2b2550; }

.pass { border-color: var(--line); }
.pass:disabled .when { opacity: 1; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 4px; }
.group-head h3 { font-size: 20px; font-weight: 800; }
.group-head span { color: var(--muted); font-size: 14px; }
.preview-switch { display: inline-flex; gap: 2px; margin-left: 10px; background: rgba(255,255,255,.55); border-radius: 999px; padding: 2px; vertical-align: middle; }
.preview-switch button { border: 0; background: none; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; color: #2b2550; }
.preview-switch button[aria-pressed="true"] { background: #2b2550; color: #fff; }

/* labels, helpers */
.pass.club .when { background: var(--pink); color: #2b2550; }
.inc-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin-bottom: -4px; }
.preview-switch { background: rgba(255,255,255,.7); }
/* bigger, always-visible back button */
.back { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 700; }
.back:hover { background: var(--peri-soft); }
.backrow { display: flex; }
.which-wrap { display: grid; gap: 10px; }
.which-wrap h3 { font-size: 16px; font-weight: 800; }
.which { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .which { grid-template-columns: 1fr; } }
.which .opt { display: grid; gap: 2px; align-content: start; background: var(--bg); border-radius: 12px; padding: 12px 14px; border-top: 6px solid var(--oc); font-size: 14px; color: var(--muted); }
.which .opt b { color: var(--ink); font-size: 15px; margin-bottom: 2px; }
/* waiver modal */
.modal-bg { position: fixed; inset: 0; background: rgba(27,24,56,.45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); color: var(--ink); border-radius: 18px; max-width: 680px; width: 100%; max-height: 86vh; overflow: auto; padding: 24px; display: grid; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h2 { font-size: 24px; font-weight: 800; }
.modal .wv { display: grid; gap: 10px; font-size: 14px; line-height: 1.55; }
.modal .wv h4 { margin: 4px 0 0; font-size: 15px; }
.modal .wv p { margin: 0; }
.draft { background: var(--cream); border: 1px solid var(--yellow); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.sigblock { border: 2px solid var(--peri); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; font-size: 14px; }
.sigblock .sig { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 26px; line-height: 1.2; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.waiverbox { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.waiverbox h3 { font-size: 16px; }
/* clients */
.clients-wrap { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 880px) { .clients-wrap { grid-template-columns: 1fr; } }
.privacy { background: var(--lavender); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.clist { display: grid; gap: 6px; max-height: 70vh; overflow: auto; }
.citem { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.citem:hover { border-color: var(--peri-deep); }
.citem[aria-selected="true"] { border: 2px solid var(--peri); background: var(--peri-soft); }
.citem .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.citem .meta { font-size: 13px; color: var(--muted); }
.wtag { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.wtag.ok { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--ok); }
.wtag.no { background: var(--pink); color: var(--full); }
.profile { display: grid; gap: 16px; }
.profile .card h3 { font-size: 17px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; font-size: 14px; }
.kv span:nth-child(odd) { color: var(--muted); }
.notes { display: grid; gap: 8px; }
.note-item { background: var(--cream); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.note-item small { display: block; color: var(--muted); font-size: 12px; }
textarea { font: inherit; color: inherit; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 10px 12px; min-height: 80px; resize: vertical; width: 100%; }
.search { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; width: 100%; }
.cname { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; }
.views .you { border-left: 1px solid rgba(43,37,80,.25); margin-left: 4px; padding-left: 10px; }

.pass .when { color: #2b2550; }
:root[data-theme="dark"] .pass:not([data-pass="club"]):not([data-pass="open"]) .when { color: #2b2550; }

/* young serif for headings and big numbers (one weight, already heavy, so never faux-bold); instrument sans for everything else */
h1, h2, h3, .big, .tile .v, .day .n, .confirm .big, .stage-head h2, .group-head h3, .pass h3, .modal h2, .howstrip .num, .howsteps .num, .cday .cn, .bignum { font-family: var(--display); font-weight: 400 !important; letter-spacing: 0; }
h1 { font-size: 30px !important; }
.stage-head h2, .page h2, .admin-head h2 { font-size: 30px !important; }
.pass h3 { font-size: 25px; }
.group-head h3, .howto h3, .page h3, .card h3, .waiverbox h3, .summary h3, .which-wrap h3 { font-size: 21px !important; }
.howstrip b, .sumline b, .steps .lbl b, .modal .wv h4 { font-family: var(--body); }

/* how it works, on the ticket page */
.howto { display: grid; gap: 10px; background: var(--peri-soft); border-radius: 14px; padding: 16px 18px; }
.howto h3 { font-size: 20px; }
.howto p { margin: 0; max-width: 70ch; }
.howstrip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .howstrip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .howstrip { grid-template-columns: 1fr; } }
.howstrip li { background: var(--surface); border-radius: 12px; padding: 12px; display: grid; gap: 4px; align-content: start; font-size: 14px; color: var(--muted); }
.howstrip b { color: var(--ink); font-size: 15px; }
.howstrip .num { width: 30px; height: 30px; border-radius: 999px; background: var(--peri); color: #2b2550; font-family: var(--display); font-size: 17px; display: grid; place-items: center; }

.layout { grid-template-columns: minmax(0, 1fr) 260px; }
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; } }
.howto { background: var(--bg); border: 1px solid var(--line); }

/* minimums */
.minimums { margin-bottom: 16px; gap: 12px; }
.minimums h3 { font-size: 24px !important; }
.mtotal { margin-left: auto; text-align: right; display: grid; }
.mtotal b { font-size: 26px; font-variant-numeric: tabular-nums; }
.mbar { height: 12px; border-radius: 999px; background: var(--peri-soft); overflow: hidden; }
.mbar span { display: block; height: 100%; background: var(--peri); border-radius: 999px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.mgrid > div { background: var(--bg); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.mgrid b { font-size: 20px; font-variant-numeric: tabular-nums; }
.mgrid small { color: var(--muted); font-size: 12px; }
.minputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }

.tile.hot { border: 2px solid var(--red); background: var(--pink); }
.ckbtn.out { background: var(--surface); }

/* walk-in list */
.walklist { margin-bottom: 16px; gap: 12px; }
.walklist h3, .wl-guest h2 { font-size: 24px !important; }
.wl-stats { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; }
.wl-stats div { display: grid; text-align: right; }
.wl-stats b { font-size: 20px; font-variant-numeric: tabular-nums; }
.hotnum { color: var(--full); }
table.wl td { vertical-align: top; }
.wl-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ckbtn.go { background: var(--peri); border-color: var(--peri); color: #2b2550; }
.mv { display: inline-grid; margin-left: 4px; vertical-align: middle; }
.tiny { border: 0; background: none; font-size: 10px; line-height: 1; padding: 1px 3px; color: var(--muted); }
.sms { display: grid; gap: 6px; max-width: 460px; }
.bubble { background: var(--peri-soft); border-radius: 14px 14px 14px 4px; padding: 8px 12px; font-size: 14px; display: grid; gap: 2px; }
.bubble small { color: var(--muted); font-size: 11px; }
.wl-add { display: grid; grid-template-columns: 2fr 1.5fr 0.8fr auto auto auto; gap: 8px; align-items: end; }
.wl-add select, .wl-add input { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.wl-add .btn { width: auto; padding: 11px 16px; }
@media (max-width: 760px) { .wl-add { grid-template-columns: 1fr 1fr; } }
.wl-guest { text-align: center; justify-items: center; }
.wl-guest .fields, .wl-guest .btn { max-width: 460px; width: 100%; }
.bignum { font-family: var(--display); font-size: 56px; line-height: 1; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
/* how it works: steps 1 to 4 stacked */
.howstrip, .howstrip[class] { grid-template-columns: 1fr !important; gap: 8px; }
.howstrip li { grid-template-columns: 30px 1fr; column-gap: 12px; align-items: start; }
.howstrip li .num { grid-row: span 2; }

/* money (private): charts stay on a light card in both themes so the validated palette holds */
.conn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.conn > div { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
@media (max-width: 640px) { .conn { grid-template-columns: 1fr; } }
.mtiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.mchart { background: #fcfcfb; color: #2b2550; border-color: #e0dcea; margin-bottom: 16px; }
.mchart .note, .mchart .mlegend { color: #5f5a7a; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.cols2 .mchart { margin-bottom: 0; }
@media (max-width: 880px) { .cols2 { grid-template-columns: 1fr; } }
.mlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.mlegend i, .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.mlegend .lineicon { width: 16px; height: 0; border-top: 2px solid #2b2550; border-radius: 0; vertical-align: 3px; }
.chartbox svg { width: 100%; height: auto; display: block; }
.chartbox .grid { stroke: #e9e6f1; stroke-width: 1; }
.chartbox .base { stroke: #b9b4cc; stroke-width: 1; }
.chartbox .ax { fill: #5f5a7a; font-size: 11px; font-family: var(--body); font-variant-numeric: tabular-nums; }
.chartbox .hit { fill: transparent; }
.chartbox .col.hl .hit { fill: rgba(148,171,231,.14); }
.chartbox .exline { fill: none; stroke: #2b2550; stroke-width: 2; }
.chartbox .exdot { fill: #2b2550; stroke: #fcfcfb; stroke-width: 2; }
.splitrow { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: grid !important; grid-template-columns: 1fr auto 44px; gap: 10px; }
.splitrow b { font-variant-numeric: tabular-nums; }
.splitrow .note { text-align: right; }
th.r, td.r { text-align: right; }
.tip { position: fixed; z-index: 60; pointer-events: none; background: #2b2550; color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 13px; display: none; gap: 2px; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.tip.on { display: grid; }
.tip span { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tip span i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }
.tip span b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* private calendar */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 20px; align-items: start; }
.cal-wrap > #caldetail { display: grid; gap: 20px; }
@media (max-width: 1100px) { .cal-wrap { grid-template-columns: 1fr; } }
.cgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cgrid .dowh { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; }
.cday { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 6px 4px; min-height: 84px; display: grid; gap: 3px; align-content: start; justify-items: stretch; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.cday:hover:not(:disabled) { border-color: var(--peri-deep); }
.cday.sel { border: 2px solid var(--purple); background: var(--peri-soft); }
.cday.today .cn { text-decoration: underline; text-underline-offset: 3px; }
.cday.closed, .cday.out { background: transparent; color: var(--muted); cursor: default; }
.cday.out { border-style: dashed; opacity: .5; }
.cday.blank { border: 0; background: none; min-height: 0; }
.cday .cn { font-family: var(--display); font-size: 20px; line-height: 1; padding-left: 2px; }
.cday .cclosed { font-size: 11px; color: var(--muted); padding-left: 2px; }
.cpill { display: block; font-size: 10.5px; font-weight: 700; line-height: 1.25; border-radius: 6px; padding: 2px 5px; color: #2b2550; }
.cpill.nt { background: var(--pink); }
.cpill.dy { background: var(--lavender); }
.cpill.pv { background: var(--cream); border: 1px solid var(--yellow); }
@media (prefers-color-scheme: dark) { .cpill { color: var(--ink); } }
.ckey { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.ckey span { display: inline-flex; align-items: center; gap: 6px; }
.ckey i.cpill { width: 14px; height: 12px; padding: 0; }
@media (max-width: 520px) { .cday { min-height: 62px; padding: 4px 2px; } .cpill { font-size: 9px; padding: 1px 3px; } }
.cfacts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.ctable td { vertical-align: top; }
.ctable td.small { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ctable td:first-child { min-width: 170px; }
.ctable td:first-child .tag, .ctable td:first-child .wtag { margin-top: 4px; }
.ctiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .ctiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ctable th.r, .ctable td.r { text-align: right; }
.tag.nophoto { border-color: var(--red); color: var(--full); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* soft launch banner */
.softlaunch { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--lavender); border: 1px solid color-mix(in srgb, var(--purple) 25%, transparent); border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; }
.softlaunch p { margin: 0; font-size: 16px; line-height: 1.45; flex: 1 1 320px; }
.softlaunch .sl-tag { background: var(--purple); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }

/* lining, even-width numbers so prices, times and counts line up */
body { font-variant-numeric: lining-nums; }
td, .num, .cpill, .tile .k, .sumline { font-variant-numeric: lining-nums tabular-nums; }

/* live site additions */
.monthnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.monthnav h3 { font-size: 20px !important; }
.day .h.low { color: var(--warn); font-weight: 700; }
.loading { color: var(--muted); padding: 24px 0; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--peri-soft); border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn[disabled] { opacity: .6; cursor: progress; }
.okmsg { background: color-mix(in srgb, var(--green) 14%, transparent); border-radius: 12px; padding: 12px 14px; }
footer.site { text-align: center; color: var(--muted); font-size: 14px; padding: 32px 16px 48px; }
footer.site a { color: inherit; }
.waiverpage { max-width: 640px; margin: 0 auto; display: grid; gap: 18px; }
@media (max-width: 640px) { .ctable td.small, .ctable th:last-child { display: none; } .ctable td { padding: 8px 4px; } }

/* embedded in another site (Readymag): no header/footer, transparent, tighter */
.embed body { background: transparent; }
.embed header.top, .embed footer.site { display: none; }
.embed main { padding-top: 8px; }
