/* Zeen Gym: one stylesheet for the staff desk, the member app and the kiosk. The gym colour is --accent. */
:root {
  --bg: #f3f5f8; --card: #fff; --ink: #141a22; --muted: #637083; --line: #e1e6ee; --soft: #eef1f6;
  --accent: #d9480f; --accent-ink: #fff;
  --going: #1f8a4c; --going-bg: #e2f5ea; --notgoing: #c0392b; --notgoing-bg: #fbe7e5; --unsure: #b7791f; --unsure-bg: #fdf3dc; --none: #7a8494; --none-bg: #eef0f4;
  --ok: #1f8a4c; --ok-bg: #e2f5ea; --err: #c0392b; --err-bg: #fbe7e5;
  --radius: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1218; --card: #171d26; --ink: #e8edf3; --muted: #94a0b2; --line: #273140; --soft: #1e2632;
    --going-bg: #15321f; --notgoing-bg: #3a1b18; --unsure-bg: #3a2d12; --none-bg: #222a35; --ok-bg: #15321f; --err-bg: #3a1b18;
    --going: #5fd08d; --notgoing: #ff8a7a; --unsure: #f3c25b; --none: #9aa5b5; color-scheme: dark; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--sans); -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
a { color: var(--accent); }
p { margin: 0 0 .75em; }
img { max-width: 100%; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .block { display: block; } .grow { flex: 1; min-width: 0; }
.neg { color: var(--err); } .ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inline { display: inline; }
.pre { white-space: pre-wrap; font: inherit; background: var(--soft); padding: 12px; border-radius: 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

main { max-width: 1100px; margin: 0 auto; padding: 16px 16px 96px; }

/* ---------- header and tabs ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; min-width: 0; }
.brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; flex: none; }
.mark.large { width: 56px; height: 56px; font-size: 1.5rem; border-radius: 14px; }
.mark.xl { width: 84px; height: 84px; font-size: 2.4rem; border-radius: 22px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.who { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .85rem; }
.tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); overflow-x: auto; }
.tabs a { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 600; }
.tabs a.on { color: var(--accent); }
.tabs .badge { position: absolute; top: 4px; right: calc(50% - 20px); }
@media (min-width: 800px) {
  .tabs { position: sticky; top: 57px; bottom: auto; justify-content: center; border-top: 0; border-bottom: 1px solid var(--line); padding: 0 16px; }
  .tabs a { flex: 0 0 auto; flex-direction: row; gap: 8px; font-size: .95rem; padding: 12px 16px; border-bottom: 3px solid transparent; }
  .tabs a.on { border-bottom-color: var(--accent); }
  .tabs .badge { position: static; }
  main { padding-bottom: 40px; }
}
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--err); color: #fff; font-size: .7rem; font-weight: 700; }

/* ---------- basics ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.card.narrow { max-width: 460px; margin: 24px auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.big { min-height: 52px; font-size: 1.05rem; padding: 12px 22px; }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: .88rem; }
.btn.tiny { min-height: 28px; padding: 2px 8px; font-size: .8rem; }
.btn.full { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.file-btn { cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--accent); }
input[type=color] { padding: 4px; height: 44px; }
input[type=range] { padding: 0; border: 0; min-height: 0; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.spread { justify-content: space-between; }
.row input { width: auto; flex: 1 1 160px; }
.row input[type=checkbox], .row input[type=radio] { flex: none; }
label.check input { flex: none; }
.center-row { justify-content: center; }
.grid2, .grid3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; } }
fieldset.mini { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; background: var(--soft); }
.flash.ok { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.flash.err { background: var(--err-bg); color: var(--err); font-weight: 600; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 84px; transform: translateX(-50%); background: #141a22; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); text-decoration: none; animation: up .2s ease-out; }
.toast.err { background: var(--err); }
@keyframes up { from { transform: translate(-50%, 20px); opacity: 0; } }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); vertical-align: middle; }
.tag.warn { background: var(--unsure-bg); color: var(--unsure); }
.chip { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; margin: 2px 4px 2px 0; background: var(--soft); color: var(--ink); text-decoration: none; }
.chip.going { background: var(--going-bg); color: var(--going); } .chip.not_going { background: var(--notgoing-bg); color: var(--notgoing); }
.chip.unsure { background: var(--unsure-bg); color: var(--unsure); } .chip.no_response { background: var(--none-bg); color: var(--none); }
.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.page-head h1 { margin: 0; }
.list { list-style: none; padding: 0; margin: 0 0 12px; }
.list > li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.list > li > a { color: inherit; text-decoration: none; flex: 1; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.table select, .table input { min-height: 34px; padding: 4px 8px; width: auto; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }
.copy-row { display: flex; gap: 6px; margin-top: 6px; }
.copy-row input { min-height: 34px; padding: 4px 8px; font-size: .85rem; }
.search { margin-bottom: 12px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 16px; }
.stats .card { margin: 0; display: block; } .stats b { display: block; font-size: 1.5rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.ph { display: inline-grid; place-items: center; background: var(--soft); color: var(--muted); font-weight: 700; }
.avatar.sm { width: 34px; height: 34px; font-size: .8rem; }
.avatar.xl { width: 96px; height: 96px; font-size: 1.6rem; }
.avatar.xxl { width: 150px; height: 150px; font-size: 2.6rem; border-radius: 20px; }

/* ---------- shared bits ---------- */
.hint { font-weight: 400; font-size: .8rem; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; vertical-align: middle; margin-right: 4px; }
.dot.big { width: 16px; height: 16px; margin-right: 8px; }
.struck { opacity: .55; } .struck b, .struck a b { text-decoration: line-through; }
.faded { opacity: .6; }
.danger-text { color: var(--err) !important; border-color: var(--err) !important; }
.ok-text { color: var(--ok); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.chips { margin-bottom: 12px; } .chip.on { background: var(--accent); color: #fff; }
.card.flush { padding: 0; overflow-x: auto; }
.card.flush .table th:first-child, .card.flush .table td:first-child { padding-left: 14px; }
.small-b { font-size: 1rem !important; }
.stats.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats.three .card { padding: 12px; text-align: center; } .stats.three b { font-size: 1.6rem; }
.warn-card { background: var(--unsure-bg); border-color: transparent; color: var(--unsure); text-decoration: none; }
.warn-card b { color: var(--unsure); }
.med { color: #c0392b; display: inline-flex; vertical-align: middle; font-weight: 800; }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.s-active { background: var(--ok-bg); color: var(--ok); }
.s-past_due, .s-pending { background: var(--err-bg); color: var(--err); }
.s-frozen { background: #e0efff; color: #1f5fbf; }
.s-canceled { background: var(--unsure-bg); color: var(--unsure); }
@media (prefers-color-scheme: dark) { .s-frozen { background: #16284a; color: #8bb4ff; } }
.inline-form input { min-height: 34px; padding: 4px 8px; width: auto; flex: 0 1 160px; }
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.subnav a { padding: 8px 14px; border-radius: 99px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.subnav a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.dialog { border: 0; border-radius: 16px; padding: 20px; width: min(440px, calc(100% - 24px)); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.dialog::backdrop { background: rgba(10,14,20,.5); }
details summary { cursor: pointer; }

/* ---------- desk tabs always along the top ---------- */
.desk-tabs { position: sticky; top: 57px; bottom: auto; justify-content: flex-start; border-top: 0; border-bottom: 1px solid var(--line); padding: 0 8px; }
.desk-tabs a { flex: 0 0 auto; flex-direction: row; gap: 6px; font-size: .9rem; padding: 12px 12px; border-bottom: 3px solid transparent; }
.desk-tabs a.on { border-bottom-color: var(--accent); }
.area-desk main { padding-bottom: 40px; }
@media (max-width: 700px) { .desk-tabs a span { display: none; } .desk-tabs a.on span { display: inline; } }
.kiosk-link { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 600; }
.home-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .home-grid { grid-template-columns: 3fr 2fr; } }

/* ---------- landing ---------- */
.hero { text-align: center; padding: 40px 0 24px; }
.hero .lead { font-size: 1.15rem; max-width: 640px; margin: 0 auto 20px; color: var(--muted); }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- today / check-ins ---------- */
.quick { position: relative; flex: 1 1 300px; max-width: 460px; }
.quick-results { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.quick-results li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; }
.quick-results li:hover, .quick-results li.sel { background: var(--soft); }
.quick-results .grow small { display: block; color: var(--muted); }
.checkins .ci { border-left: 4px solid transparent; padding-left: 8px; flex-wrap: nowrap; }
.ci.warn { border-left-color: var(--unsure); background: color-mix(in srgb, var(--unsure-bg) 60%, transparent); }
.ci.deny { border-left-color: var(--err); background: color-mix(in srgb, var(--err-bg) 60%, transparent); }
.ci-name { font-weight: 650; color: var(--ink); text-decoration: none; }
.ci-reason { font-size: .82rem; font-weight: 600; color: var(--unsure); }
.ci.deny .ci-reason { color: var(--err); }
.ci.new { animation: glow 1.2s ease-out; }
@keyframes glow { from { box-shadow: 0 0 0 3px var(--accent); } }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; vertical-align: middle; margin-left: 6px; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* ---------- members ---------- */
.members-table tr[data-href] { cursor: pointer; }
.members-table tr[data-href]:hover { background: var(--soft); }
.members-table a { color: inherit; text-decoration: none; }
@media (max-width: 640px) { .hide-sm { display: none; } }
.profile-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.profile-head h1 { margin-bottom: 4px; }
.ph-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.code-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-align: center; }
.code-box .qr { display: block; width: 120px; height: 120px; }
.code-text { font: 600 .8rem ui-monospace, monospace; color: #333; letter-spacing: .06em; }
.access { font-weight: 650; }
.a-ok { color: var(--ok); } .a-warn { color: var(--unsure); } .a-deny { color: var(--err); }
.med-card { border-left: 5px solid #c0392b; }
.med-card h2 { color: #c0392b; display: flex; align-items: center; gap: 6px; }
.med-fields legend { display: flex; align-items: center; gap: 6px; color: #c0392b; font-weight: 700; }
.member-form fieldset.mini legend { font-weight: 700; }
.pay-box { background: var(--unsure-bg); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.actions { margin-top: 8px; }
.waiver-text { max-height: 220px; overflow: auto; background: var(--soft); border-radius: 10px; padding: 12px; font-size: .88rem; }
.sig-wrap { position: relative; }
.sig { width: 100%; height: 160px; background: #fff; border: 2px dashed var(--line); border-radius: 12px; touch-action: none; display: block; }
.sig-wrap .btn { position: absolute; top: 6px; right: 6px; }
.sig-img { max-width: 300px; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.photo-capture { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.pc-view { width: 220px; height: 220px; border-radius: 20px; background: var(--soft); overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.pc-view video, .pc-view img { width: 100%; height: 100%; object-fit: cover; }
.pc-view video { transform: scaleX(-1); }
.photo-modal { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.75); display: grid; place-items: center; padding: 16px; }
.photo-modal .inner { background: var(--card); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.photo-modal video { width: min(80vw, 420px); aspect-ratio: 1; object-fit: cover; border-radius: 14px; transform: scaleX(-1); background: #000; }

/* ---------- printable card ---------- */
.print-page { background: #fff; color: #000; padding: 24px; }
.print-card { width: 85.6mm; height: 54mm; border-radius: 3.2mm; border: 1px solid #ccc; overflow: hidden; display: flex; flex-direction: column; background: #fff; color: #000; font-size: 9pt; }
.pc-top { background: var(--accent); color: #fff; display: flex; align-items: center; gap: 6px; padding: 4px 8px; }
.pc-top img { height: 18px; border-radius: 3px; background: #fff; }
.pc-body { display: flex; align-items: center; gap: 8px; padding: 4px 8px; flex: 1; }
.pc-body .avatar { width: 52px; height: 52px; border-radius: 8px; }
.pc-body > div { flex: 1; }
.pc-body .qr { width: 70px; height: 70px; }
.pc-bar { text-align: center; padding: 0 8px 4px; }
.pc-bar .barcode { width: 100%; height: 34px; }
@media print { .no-print, .top, .tabs { display: none !important; } body { background: #fff; } main { padding: 0; max-width: none; } }

/* ---------- classes (desk) ---------- */
.week-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.wg-day { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 120px; }
.wg-day.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.wg-day h3 { font-size: .85rem; color: var(--muted); }
.wg-class { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--c) 14%, var(--card)); border-left: 4px solid var(--c); border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; font-size: .9rem; }
.wg-class span { color: var(--muted); }
.cap-big { text-align: center; font-size: 1.1rem; } .cap-big b { font-size: 2.2rem; } .cap-big span { display: block; color: var(--muted); }
.roster li { flex-wrap: nowrap; }
.roster a { color: inherit; text-decoration: none; font-weight: 600; }
.small-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.small-seg form { display: contents; }
.small-seg button { border: 0; background: var(--card); padding: 6px 10px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.small-seg form + form button { border-left: 1px solid var(--line); }
.small-seg button.on { background: var(--accent); color: #fff; }
.type-form, .plan-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.type-form > *, .plan-form > label { flex: 1 1 140px; }
.type-form input[type=color] { flex: 0 0 56px; }
.type-form .wide, .plan-form .wide { flex-basis: 100%; }
.type-form .btn, .plan-form .btn { flex: 0 0 auto; }
.inline-label { font-size: .8rem; }
.type-row { padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line); }
.logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.logo-preview { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line); }

/* ---------- staff schedule ---------- */
.sg-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.sg { border-collapse: collapse; width: 100%; min-width: 860px; }
.sg th, .sg td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 6px; vertical-align: top; }
.sg thead th { font-size: .8rem; text-transform: uppercase; color: var(--muted); text-align: center; background: var(--soft); }
.sg thead th span { display: block; font-size: .78rem; text-transform: none; font-weight: 500; }
.sg th.today, .sg td.today { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.sg-name { text-align: left !important; width: 160px; white-space: nowrap; }
.sg-name .small { display: block; padding-left: 18px; }
.sg tr.me .sg-name { color: var(--accent); }
.sg-cell { position: relative; min-width: 100px; height: 64px; }
.sg.editable .sg-cell { cursor: pointer; }
.sg.editable .sg-cell:hover { background: var(--soft); }
.add-hint { position: absolute; right: 6px; bottom: 2px; color: var(--muted); opacity: 0; font-size: 1.1rem; }
.sg-cell:hover .add-hint { opacity: 1; }
.shift { display: block; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 15%, var(--card)); color: var(--ink); border-radius: 6px; padding: 4px 6px; margin-bottom: 4px; font: inherit; font-size: .78rem; cursor: pointer; }
.shift:disabled { cursor: default; opacity: 1; }
.shift span { display: block; color: var(--muted); }
.shift .note { font-style: italic; }
.teach { display: block; font-size: .72rem; color: var(--muted); padding: 2px 4px; border: 1px dashed var(--line); border-radius: 6px; margin-bottom: 3px; }
.sg-hours { text-align: center; font-weight: 600; white-space: nowrap; }

/* ---------- reports ---------- */
.heat-wrap { overflow-x: auto; }
.heat { border-collapse: separate; border-spacing: 2px; font-size: .7rem; }
.heat th { color: var(--muted); font-weight: 600; padding: 2px 4px; }
.heat td { width: 28px; height: 24px; text-align: center; border-radius: 4px; background: color-mix(in srgb, var(--accent) calc(var(--v) * 100%), var(--soft)); color: color-mix(in srgb, #fff calc(var(--v) * 100%), transparent); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: 6px; }
.bars span { flex: 1; height: var(--h); min-height: 2px; background: var(--accent); border-radius: 3px 3px 0 0; }
.meter { display: inline-block; width: 80px; height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; margin-right: 6px; vertical-align: middle; }
.meter span { display: block; height: 100%; background: var(--accent); }

/* ---------- member app ---------- */
.area-app main { max-width: 560px; }
.hey { font-size: 1.9rem; margin: 4px 0 12px; }
.ann { background: var(--unsure-bg); color: var(--ink); border-left: 4px solid var(--unsure); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.member-card { background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #000)); color: #fff; border-radius: 22px; padding: 16px; margin-bottom: 8px; box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.mc-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 12px; }
.mc-code { background: #fff; border-radius: 16px; padding: 10px; display: grid; place-items: center; }
.mc-code .qr { width: min(64vw, 260px); height: auto; aspect-ratio: 1; }
.mc-bar { background: #fff; border-radius: 10px; margin-top: 8px; padding: 6px 10px; }
.mc-bar .barcode { width: 100%; height: 46px; display: block; }
.mc-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: .95rem; }
.mc-foot span { font-family: ui-monospace, monospace; letter-spacing: .08em; opacity: .9; }
.day-strip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 4px; }
.day-strip a { flex: 0 0 56px; display: flex; flex-direction: column; align-items: center; padding: 8px 0; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; }
.day-strip a span { font-size: .72rem; color: var(--muted); font-weight: 600; }
.day-strip a b { font-size: 1.2rem; }
.day-strip a i { position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.day-strip a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.day-strip a.on span { color: rgba(255,255,255,.85); } .day-strip a.on i { background: #fff; }
.class-list { list-style: none; padding: 0; margin: 0; }
.cl { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.cl-time { display: flex; flex-direction: column; min-width: 64px; } .cl-time span { font-size: .78rem; color: var(--muted); }
.cancel-box summary { color: var(--muted); font-weight: 600; }
.profile-mini { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; } .profile-mini h1 { margin: 0; }
.install-steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: left; margin: 16px 0; }

/* ---------- kiosk ---------- */
.area-kiosk { background: #0f141b; color: #fff; overflow: hidden; }
.area-kiosk main { max-width: none; padding: 0; }
.kiosk { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 45%, #0f141b), #0f141b 70%); user-select: none; }
.k-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; }
.k-brand { display: flex; align-items: center; gap: 14px; font-size: 1.5rem; font-weight: 800; }
.k-brand img { height: 56px; border-radius: 12px; background: #fff; padding: 4px; }
.k-clock { font-size: 2.2rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.k-idle, .k-result { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 0 24px; }
.k-idle h1 { font-size: clamp(2.5rem, 7vw, 5rem); margin: 0; }
.k-lead { font-size: clamp(1.2rem, 3vw, 2rem); opacity: .85; margin: 0 0 8px; }
.k-hint { opacity: .6; max-width: 560px; }
.k-cam-wrap { position: relative; width: min(60vw, 380px); aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #000; }
.k-cam-wrap video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.k-frame { position: absolute; inset: 16%; border: 4px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); }
.k-type { display: flex; gap: 8px; width: min(92vw, 560px); }
.k-type input { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .08em; background: #fff; color: #000; }
.k-ann { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.k-ann li { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px 16px; font-size: 1.1rem; }
.k-result h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); margin: 0; max-width: 1000px; line-height: 1.15; }
.k-photo img, .k-photo .ph { width: clamp(200px, 32vh, 340px); height: clamp(200px, 32vh, 340px); border-radius: 50%; object-fit: cover; border: 8px solid #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); display: grid; place-items: center; font-size: 6rem; font-weight: 800; background: var(--accent); color: #fff; }
.k-result.ok .k-photo img, .k-result.ok .k-photo .ph { border-color: #22c55e; }
.k-result.warn .k-photo img, .k-result.warn .k-photo .ph { border-color: #22c55e; }
.k-result.deny .k-photo img, .k-result.deny .k-photo .ph, .k-result.unknown .k-photo .ph { border-color: #f59e0b; }
.k-result { animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.k-extras { list-style: none; padding: 0; margin: 0; font-size: clamp(1.1rem, 2.6vw, 1.8rem); display: flex; flex-direction: column; gap: 6px; }
.k-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; opacity: .7; font-size: 1.05rem; }
.k-staff { color: rgba(255,255,255,.4); text-decoration: none; font-size: .85rem; border: 1px solid rgba(255,255,255,.2); padding: 4px 10px; border-radius: 8px; }
.k-wedge { position: absolute; left: -9999px; opacity: 0; width: 1px; height: 1px; }
.area-kiosk .btn.ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.area-kiosk .toast { bottom: 24px; }
.list > li > a:has(> .avatar) { flex: none; }
