/* The Class Desk. One stylesheet, four looks chosen by the studio:
   stage (night stage, gold, arches: dance), campus (calm blue editorial: school),
   studio (warm neutral: any class), dojo (charcoal and red: combat sports).
   Every colour is a token; the studio's own accent overrides --accent. */

:root {
  --bg: #faf8f4; --surface: #ffffff; --surface-2: #f2eee7; --ink: #1d1b19; --muted: #625d56; --line: #e4ddd2;
  --accent: #b4532a; --accent-ink: #ffffff; --accent-2: #2f6f6a; --gold: #b08a3e;
  --ok: #1f7a4d; --warn: #a15c00; --bad: #b42318;
  --night: #1d1b19; --night-ink: #f6f2ea; --night-muted: #c9c1b4; --night-line: #3a3632;
  --f-head: 'Poppins', system-ui, sans-serif; --f-body: 'Poppins', system-ui, sans-serif;
  --head-weight: 600; --head-track: -0.01em;
  --radius: 14px; --radius-sm: 9px; --frame: 18px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 28px rgb(0 0 0 / .07);
  --wrap: 1180px; --gut: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
[data-theme="stage"] {
  --bg: #fbf6ee; --surface: #fffdf9; --surface-2: #f3e9da; --ink: #24152f; --muted: #5e4e68; --line: #e2d3c0;
  --accent: #a3125a; --accent-2: #2cc4bc; --gold: #c9a24a;
  --night: #1e1033; --night-ink: #fbf6ee; --night-muted: #cbbfd6; --night-line: #4a3866;
  --f-head: 'Cormorant Garamond', Georgia, serif; --head-weight: 600; --head-track: 0;
  --frame: 999px 999px 18px 18px;
}
[data-theme="campus"] {
  --bg: #f3f8fb; --surface: #ffffff; --surface-2: #e9f2f7; --ink: #132239; --muted: #4a5b72; --line: #d6e3ec;
  --accent: #2b4c7e; --accent-2: #3f8fb0; --gold: #c19a3b;
  --night: #132239; --night-ink: #eef5fa; --night-muted: #b5c6d6; --night-line: #2b3d58;
  --head-weight: 600; --head-track: -0.02em; --frame: 16px;
}
[data-theme="dojo"] {
  --bg: #f4f3f1; --surface: #ffffff; --surface-2: #e9e6e2; --ink: #151414; --muted: #5a5652; --line: #dcd7d1;
  --accent: #c8102e; --accent-2: #151414; --gold: #a88845;
  --night: #121212; --night-ink: #f3f1ee; --night-muted: #b9b3ac; --night-line: #2e2c2a;
  --head-weight: 700; --head-track: 0; --frame: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
[data-theme="stage"] h1, [data-theme="stage"] h2 { font-weight: 600; }
[data-theme="dojo"] h1, [data-theme="dojo"] h2 { text-transform: uppercase; letter-spacing: .01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font: 600 .78rem/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; display: inline-flex; align-items: center; gap: .6rem; }
[data-theme="stage"] .eyebrow { color: var(--gold); }
[data-theme="stage"] .eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.night .eyebrow { color: var(--gold); }
[data-theme="campus"] .night .eyebrow { color: #9cc3dc; }

/* ------------------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font: 600 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.btn-ghost:hover { box-shadow: none; border-color: currentColor; }
.btn-wa { background: #1f8f4e; color: #fff; }
.btn-sm { min-height: 36px; padding: .45rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.link:hover { border-color: var(--accent); }
.night .link { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 40%, transparent); }
label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .35rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .85rem; min-height: 46px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }
.field { margin-bottom: 1rem; }
.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { width: auto; min-height: 0; margin-top: .3rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.pill.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.pill.accent { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }

/* -------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
[data-theme="stage"] .top, [data-theme="dojo"] .top { background: color-mix(in srgb, var(--night) 94%, transparent); color: var(--night-ink); border-color: var(--night-line); }
.top .wrap { display: flex; align-items: center; gap: 1.2rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; }
.brand img { height: 38px; width: auto; }
[data-theme="stage"] .brand { font-size: 1.55rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.nav { display: flex; gap: 1.3rem; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 500; opacity: .85; }
.nav a:hover, .nav a[aria-current] { opacity: 1; }
.nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
[data-theme="stage"] .nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--gold); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: inherit; padding: .5rem; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gut) 1rem; background: inherit; border-bottom: 1px solid var(--line); }
  [data-theme="stage"] .nav, [data-theme="dojo"] .nav { background: var(--night); }
  .top.open .nav { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
  .nav .btn { margin-top: .8rem; }
}

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-copy p { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--frame); box-shadow: var(--shadow); }
[data-theme="stage"] .hero { background: var(--night); color: var(--night-ink); }
[data-theme="stage"] .hero-copy p { color: var(--night-muted); }
[data-theme="stage"] .hero-photo::before { content: ''; position: absolute; inset: -12px; border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); border-radius: 999px 999px 24px 24px; pointer-events: none; }
[data-theme="stage"] .hero-photo img { aspect-ratio: 3 / 4; }
[data-theme="campus"] .hero-photo img { aspect-ratio: 5 / 4; }
[data-theme="dojo"] .hero { background: var(--night); color: var(--night-ink); }
[data-theme="dojo"] .hero-copy p { color: var(--night-muted); }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.8rem; font-size: .88rem; opacity: .85; }
.hero-facts span { display: inline-flex; align-items: center; gap: .45rem; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-photo img, [data-theme="stage"] .hero-photo img { aspect-ratio: 4 / 4.2; }
}

/* ------------------------------------------------------------- sections */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-head { max-width: 44rem; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.night { background: var(--night); color: var(--night-ink); }
.night .muted, .night .section-head p { color: var(--night-muted); }
.tint { background: var(--surface-2); }
.grid-3 { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.night .card { background: color-mix(in srgb, var(--night-ink) 6%, transparent); border-color: var(--night-line); }

/* The coin belt: a hip-scarf fringe of small coins hanging from a gold thread. */
.belt { height: 22px; background:
  linear-gradient(var(--gold), var(--gold)) top / 100% 1px no-repeat,
  radial-gradient(circle at 50% 12px, var(--gold) 0 5px, transparent 5.5px) 0 0 / 22px 22px repeat-x,
  linear-gradient(var(--gold), var(--gold)) 10.5px 0 / 1px 7px repeat-x; opacity: .8; }
[data-theme="campus"] .belt { background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent) center / 100% 1px no-repeat; height: 1px; }
[data-theme="studio"] .belt, [data-theme="dojo"] .belt { display: none; }

/* Highlights */
.marks { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mark h3 { font-size: 1.5rem; margin-bottom: .3rem; }
[data-theme="stage"] .mark h3 { color: var(--gold); font-size: 1.75rem; }
.mark p { color: var(--muted); margin: 0; }
.night .mark p { color: var(--night-muted); }

/* Story and teacher: photo with copy opposite. */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.split.flip { grid-template-columns: 1.1fr .9fr; }
.split.flip .split-photo { order: 2; }
.split-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--frame); }
.split p { white-space: pre-line; }
.quote { font-family: var(--f-head); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; margin: 1.4rem 0 0; padding-left: 1.2rem; border-left: 2px solid var(--gold); }
@media (max-width: 820px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip .split-photo { order: 0; } .split-photo img { aspect-ratio: 4 / 3.4; } }

/* Levels as a path */
.levels { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: lv; }
.level { position: relative; padding: 1.4rem 1.2rem 1.2rem; border-top: 2px solid var(--line); }
.level::before { content: ''; position: absolute; top: -7px; left: 1.2rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
[data-theme="stage"] .level::before { background: var(--gold); }
.level .tag { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.level h3 { margin: .2rem 0 .4rem; font-size: 1.3rem; }
.level p { color: var(--muted); font-size: .92rem; margin: 0; }
.night .level { border-color: var(--night-line); }
.night .level p, .night .level .tag { color: var(--night-muted); }

/* Kinds of class with prices */
.kinds { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.kind { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.kind .who { display: flex; gap: .35rem; margin-bottom: 1rem; color: var(--accent); }
.kind .who i { width: 12px; height: 12px; border-radius: 50%; background: currentColor; display: block; }
.kind .who i.off { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .4; }
.kind h3 { margin-bottom: .3rem; }
.kind .meta { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.kind .price { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.price-big { font-family: var(--f-head); font-size: 2rem; font-weight: 600; line-height: 1; }
[data-theme="stage"] .price-big { font-size: 2.3rem; }

/* Week timetable */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; }
.day-col h4 { font-family: var(--f-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.night .day-col h4 { color: var(--night-muted); }
.slot { border-radius: var(--radius-sm); padding: .7rem .75rem; margin-bottom: .55rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); font-size: .85rem; line-height: 1.35; }
.night .slot { background: color-mix(in srgb, var(--night-ink) 7%, transparent); border-color: var(--night-line); border-left-color: var(--gold); }
.slot b { display: block; font-size: .95rem; }
.slot .t { font-weight: 600; }
.empty-day { font-size: .8rem; color: var(--muted); opacity: .6; padding: .7rem 0; }
@media (max-width: 900px) { .week { grid-template-columns: 1fr; } .empty-day { display: none; } .day-col:has(.empty-day) { display: none; } }

/* Plans: the cards for sale */
.plans { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .flag { position: absolute; top: -12px; left: 1.4rem; }
.plan .count { font-family: var(--f-head); font-size: 3rem; line-height: 1; font-weight: 600; }
.plan .unit { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.plan .price-row { margin-top: auto; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; border-top: 1px solid var(--line); }
.night .plan { background: color-mix(in srgb, var(--night-ink) 6%, transparent); border-color: var(--night-line); }
.night .plan.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.night .plan .unit, .night .plan p { color: var(--night-muted); }
.night .plan .price-row { border-color: var(--night-line); }

/* Gallery */
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(4, 1fr); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); }
.gallery img:nth-child(3n+1) { border-radius: var(--frame); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: '-'; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }

/* Footer */
.foot { padding: 48px 0 40px; background: var(--night); color: var(--night-ink); font-size: .92rem; }
.foot .wrap { display: grid; gap: 2rem; grid-template-columns: 1.3fr 1fr 1fr; }
.foot a { text-decoration: none; opacity: .85; }
.foot a:hover { opacity: 1; }
.foot h4 { font-family: var(--f-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); }
.foot p { color: var(--night-muted); }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1f8f4e; color: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / .25); }

/* ----------------------------------------------------- the wallet card */
.wallet { position: relative; border-radius: 22px; padding: 1.4rem 1.4rem 1.2rem; color: #fff; overflow: hidden; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); box-shadow: 0 18px 40px rgb(0 0 0 / .22); max-width: 440px; }
[data-theme="stage"] .wallet { background: radial-gradient(120% 90% at 100% 0%, #3b1a5c 0%, var(--night) 60%); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); }
[data-theme="campus"] .wallet { background: linear-gradient(140deg, #2b4c7e, #132239); }
[data-theme="dojo"] .wallet { background: linear-gradient(140deg, #222, #0d0d0d); border-top: 4px solid var(--accent); }
.wallet.dim { filter: grayscale(.85); opacity: .75; }
.wallet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.wallet-studio { font-family: var(--f-head); font-size: 1.35rem; font-weight: 700; letter-spacing: .04em; }
[data-theme="stage"] .wallet-studio { color: var(--gold); text-transform: uppercase; letter-spacing: .1em; }
.wallet-name { font-size: .9rem; opacity: .85; }
.wallet-left { text-align: right; line-height: 1; }
.wallet-left b { display: block; font-family: var(--f-head); font-size: 2.8rem; font-weight: 600; }
.wallet-left span { font-size: .75rem; opacity: .8; letter-spacing: .08em; text-transform: uppercase; }
.punches { display: flex; flex-wrap: wrap; gap: 7px; margin: 1.1rem 0 1rem; }
.punch { width: 16px; height: 16px; border-radius: 50%; background: #fff; opacity: .95; }
.punch.used { background: transparent; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .45); opacity: 1; }
.punch.held { background: transparent; box-shadow: inset 0 0 0 2px #fff; }
/* Stage: coins on a hip scarf. Campus: stars of the learning record. */
[data-theme="stage"] .punches { gap: 4px 6px; padding-top: 10px; background: linear-gradient(var(--gold), var(--gold)) 0 3px / 100% 1px no-repeat; }
[data-theme="stage"] .punch { width: 15px; height: 15px; background: radial-gradient(circle at 35% 35%, #f6dd8f, var(--gold) 55%, #8a6a24); box-shadow: 0 1px 2px rgb(0 0 0 / .35); }
[data-theme="stage"] .punch.used { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent); }
[data-theme="stage"] .punch.held { background: transparent; box-shadow: inset 0 0 0 2px var(--accent-2); }
[data-theme="campus"] .punch { border-radius: 0; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 18px; height: 18px; background: #f2c94c; }
[data-theme="campus"] .punch.used { background: rgb(255 255 255 / .28); box-shadow: none; }
[data-theme="campus"] .punch.held { background: #9cc3dc; box-shadow: none; }
.wallet-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; font-size: .82rem; }
.wallet-foot .qr { background: #fff; border-radius: 12px; padding: 8px; width: 118px; height: 118px; flex: none; }
.wallet-foot .qr img { width: 100%; height: 100%; }
.unlimited-band { margin: 1rem 0; padding: .7rem 0; border-top: 1px solid rgb(255 255 255 / .2); border-bottom: 1px solid rgb(255 255 255 / .2); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }

/* ----------------------------------------------------- booking sheets */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgb(10 6 16 / .55); display: grid; place-items: end center; padding: 0; }
@media (min-width: 700px) { .sheet-back { place-items: center; padding: 24px; } }
.sheet { background: var(--surface); color: var(--ink); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 1.5rem var(--gut) 1.6rem; box-shadow: 0 -10px 40px rgb(0 0 0 / .2); }
@media (min-width: 700px) { .sheet { border-radius: 22px; padding: 1.8rem 2rem; } }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.sheet-head h3 { margin: 0; }
.x { background: none; border: 0; padding: .3rem; cursor: pointer; color: inherit; }
.choice { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: .9rem 1rem; margin-bottom: .6rem; cursor: pointer; font: inherit; color: inherit; }
.choice:hover, .choice[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.choice b { display: block; }
.choice span { color: var(--muted); font-size: .88rem; }

/* Timetable page: list by day */
.daybar { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1.2rem; scrollbar-width: none; }
.daybar button { flex: none; min-width: 64px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: .55rem .6rem; cursor: pointer; font: inherit; color: inherit; text-align: center; line-height: 1.2; }
.daybar button b { display: block; font-size: 1.25rem; font-family: var(--f-head); }
.daybar button small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.daybar button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.daybar button[aria-pressed="true"] small { color: inherit; opacity: .8; }
.daybar button.has::after { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: .25rem auto 0; }
.class-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.class-row .time { font-family: var(--f-head); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.class-row .time small { display: block; font-family: var(--f-body); font-size: .78rem; color: var(--muted); font-weight: 400; }
.class-row h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.class-row .info { color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.seats { display: flex; gap: 3px; margin-top: .45rem; flex-wrap: wrap; max-width: 260px; }
.seats i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .9; }
.seats i.free { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
@media (max-width: 600px) { .class-row { grid-template-columns: 70px 1fr; } .class-row .go { grid-column: 1 / -1; } .class-row .go .btn { width: 100%; } }

/* Store */
.products { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product .ph { aspect-ratio: 1; background: var(--surface-2); position: relative; overflow: hidden; }
.product .ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-art { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; font-family: var(--f-head); font-size: 1.5rem; line-height: 1.1; color: var(--night-ink);
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 60%), var(--night); }
[data-theme="stage"] .ph-art { background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 62%),
  radial-gradient(circle at 50% 9px, var(--gold) 0 4px, transparent 4.5px) 0 14px / 18px 18px repeat-x, var(--night); color: var(--gold); }
.product .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product h3 { font-size: 1.2rem; margin: 0; }
.product .bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.bag-btn { position: relative; }
.bag-btn .n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; display: grid; place-items: center; padding: 0 5px; }
.lines { width: 100%; border-collapse: collapse; }
.lines td { padding: .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: .4rem; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: inherit; }

/* Done / notice panels */
.notice { border-radius: var(--radius); padding: 1.1rem 1.2rem; background: var(--surface-2); border: 1px solid var(--line); }
.notice.ok { background: color-mix(in srgb, var(--ok) 9%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.notice.warn { background: color-mix(in srgb, var(--warn) 9%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.toast-wrap { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80; display: grid; gap: .5rem; width: min(92vw, 440px); }
.toast { background: var(--ink); color: var(--bg); padding: .8rem 1rem; border-radius: 12px; box-shadow: var(--shadow); font-size: .92rem; }
.toast.error { background: var(--bad); color: #fff; }
.skeleton { min-height: 40vh; display: grid; place-items: center; color: var(--muted); }

/* ======================================================== staff screens */
body.desk { background: #f5f4f1; font-size: 15px; }
.desk-top { position: sticky; top: 0; z-index: 20; background: #171513; color: #f5f2ec; }
.desk-top .wrap { max-width: 1400px; display: flex; align-items: center; gap: 1rem; min-height: 58px; flex-wrap: wrap; }
.desk-top .brand { font-family: 'Poppins', sans-serif; font-size: 1.05rem; color: #f5f2ec; letter-spacing: 0; text-transform: none; }
.tabs { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.tabs a, .tabs button { flex: none; color: #cfc8bd; text-decoration: none; padding: .5rem .8rem; border-radius: 8px; font: 500 .88rem/1 'Poppins', sans-serif; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.tabs a:hover, .tabs button:hover { color: #fff; background: rgb(255 255 255 / .07); }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { color: #fff; background: rgb(255 255 255 / .12); }
.tabs .count { background: #c8102e; color: #fff; border-radius: 9px; font-size: .7rem; padding: .1rem .4rem; }
.desk-main { max-width: 1400px; margin: 0 auto; padding: 20px var(--gut) 80px; }
.desk .card { box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.desk h1 { font-family: 'Poppins', sans-serif; font-size: 1.6rem; letter-spacing: -0.01em; }
.desk h2 { font-family: 'Poppins', sans-serif; font-size: 1.2rem; }
.desk h3 { font-family: 'Poppins', sans-serif; font-size: 1.02rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.toolbar .grow { flex: 1; min-width: 180px; }
.stats { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1.2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .82rem; }
.roster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.roster .card { padding: 1rem 1.1rem; }
.roster-head { display: flex; justify-content: space-between; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; }
.person { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.person .who { flex: 1; min-width: 0; }
.person .who b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .who span { font-size: .8rem; color: var(--muted); }
.person .acts { display: flex; gap: .3rem; flex: none; }
.person.done .who b::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-left: .4rem; vertical-align: middle; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .9rem; }
.table th, .table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #faf9f7; font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #faf8f4; }
.table-wrap { overflow-x: auto; }
.editor { display: grid; gap: .8rem; }
.edit-row { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem; }
.edit-row .wide { grid-column: span 2; }
.edit-row label { font-size: .78rem; color: var(--muted); }
.edit-row input, .edit-row select, .edit-row textarea { min-height: 40px; padding: .5rem .65rem; font-size: .9rem; }
.edit-row textarea { min-height: 64px; }
@media (max-width: 600px) { .edit-row .wide { grid-column: auto; } }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips label { display: inline-flex; gap: .35rem; align-items: center; font-size: .82rem; color: var(--ink); margin: 0; background: var(--surface-2); padding: .3rem .6rem; border-radius: 999px; }
.chips input { width: auto; min-height: 0; }
.banner { border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1rem; background: #fff6e5; border: 1px solid #f0d9a8; color: #6b4a00; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.banner .grow { flex: 1; min-width: 200px; }
.photo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .4rem; max-height: 240px; overflow: auto; }
.photo-pick button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: #eee; }
.photo-pick button[aria-pressed="true"] { border-color: var(--accent); }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 1rem; }
.bars div { flex: 1; background: var(--accent); border-radius: 6px 6px 0 0; min-height: 2px; position: relative; }
.bars div span { position: absolute; top: -1.3rem; left: 0; right: 0; text-align: center; font-size: .72rem; color: var(--muted); }
.bars-x { display: flex; gap: 6px; font-size: .7rem; color: var(--muted); }
.bars-x span { flex: 1; text-align: center; }
.scan-video { width: 100%; max-width: 520px; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: #000; }
.desk .card { overflow-x: auto; }
.wallet-left b.word { font-size: 1.7rem; }
