/* Studio LINE pages, Fosnie Brand CI (Colorful). Matches the approved screens in
   https://claude.ai/artifact/2TzqATZV32tBkrvxJ9gfBi (2 Card, 3 Book, 4 Packs, 5 Rewards). Light only, by design. */
@font-face { font-family: "LINE Seed Sans TH"; src: url("fonts/LINESeedSansTH-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "LINE Seed Sans TH"; src: url("fonts/LINESeedSansTH-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "LINE Seed Sans TH"; src: url("fonts/LINESeedSansTH-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "LINE Seed Sans TH"; src: url("fonts/LINESeedSansTH-Heavy.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Lilita One"; src: url("fonts/LilitaOne-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --ink: #141414; --white: #FFFFFF; --lime: #D4F52A; --blue: #0D47F7; --pink: #FF2BA6; --aqua: #5DE3D3;
  --yellow: #FDE32F; --coral: #FC6649; --mist: #EDF1F6; --text-2: #333333; --text-3: #4A4A4A;
  --font: "LINE Seed Sans TH", "Sukhumvit Set", Thonburi, system-ui, sans-serif;
  --display: "Lilita One", "LINE Seed Sans TH", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--white); color: var(--ink); }
body { font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
a { color: var(--ink); text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
img { max-width: 100%; }

.app { max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; background: var(--white); }
.main { flex: 1 0 auto; display: flex; flex-direction: column; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; height: 52px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
       padding: 0 8px; background: var(--white); border-bottom: 2px solid var(--ink); }
.top h1 { margin: 0; text-align: center; font-weight: 800; font-size: 16px; }
.icon-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; border-radius: 12px; }

/* Bands with the printed textures */
.band { position: relative; overflow: hidden; border-bottom: 2px solid var(--ink); background-size: cover; background-position: center; }
.band--blue { background-color: var(--blue); background-image: url("img/bg-blue.jpg"); }
.band--yellow { background-color: var(--yellow); background-image: url("img/bg-yellow.jpg"); }
.band--purple { background-color: #8F3FB1; background-image: url("img/bg-purple.jpg"); }
.band--aqua { background-color: var(--aqua); background-image: url("img/bg-aqua.jpg"); }
.band-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 18px 22px; }

.tag { display: inline-block; transform: rotate(-2deg); background: var(--ink); color: var(--white); font-weight: 800; font-size: 14px;
       line-height: 1.25; padding: 5px 12px 6px; }
.tag em, .tag-small em { color: var(--lime); font-style: normal; }
.tag-small { display: inline-block; transform: rotate(3deg); background: var(--ink); color: var(--white); font-weight: 800; font-size: 12px; padding: 5px 10px 6px; white-space: nowrap; }

/* The white card on a band */
.panel { align-self: stretch; display: flex; flex-direction: column; gap: 8px; background: var(--white); border: 2.5px solid var(--ink);
         border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); padding: 16px 16px 14px; }
.panel-head { display: flex; align-items: center; gap: 8px; }
.panel-head .studio { flex: 1; min-width: 0; font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-logo { width: 34px; height: 34px; flex: none; border-radius: 50%; object-fit: cover; background: var(--white); border: 2px solid var(--ink); }
.tier { transform: rotate(4deg); background: var(--lime); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px 3px;
        font-family: var(--display); font-size: 18px; line-height: 1.1; white-space: nowrap; }
.who { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.who .name { font-weight: 900; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.who .no { font-weight: 700; font-size: 12px; color: var(--text-3); }
.points { display: flex; align-items: baseline; gap: 6px; }
.points b { font-weight: 900; font-size: 50px; line-height: 1; }
.points span { font-weight: 800; font-size: 16px; }
.bar { height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--lime); border-right: 2px solid var(--ink); }
.bar-labels { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 12px; color: var(--text-2); }

/* Check-in QR */
.checkin { display: flex; gap: 14px; align-items: center; padding: 16px 18px 12px; }
.qr { flex-shrink: 0; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); padding: 9px; line-height: 0; }
.qr svg { width: 112px; height: 112px; display: block; }
.checkin h2 { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.3; }
.checkin p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
/* Opened from "QR เช็กอินของฉัน" in a booking message: the QR large, ready to hand to the counter. */
.checkin.focus { flex-direction: column; text-align: center; padding-top: 22px; }
.checkin.focus .qr svg { width: 200px; height: 200px; }

/* The phone number every member gives before anything else (2026-11-21) */
.phone-need b { display: block; font-weight: 800; font-size: 20px; line-height: 1.3; }
.phone-need p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 4px 18px 14px; }
.tiles--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { min-height: 74px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 10px; background: var(--white);
        border: 2px solid var(--ink); border-radius: 14px; box-shadow: 2px 2px 0 var(--ink); text-align: left; cursor: pointer; }
.tile b { font-weight: 900; font-size: 18px; line-height: 1.2; }
.tile span { font-weight: 700; font-size: 12px; color: var(--text-2); }
.tile:active, .btn:active { transform: translate(2px, 2px); box-shadow: none; }

/* Lists */
.section { padding: 4px 18px 0; }
.section h2 { margin: 0; padding: 10px 0 6px; font-weight: 800; font-size: 15px; }
.rows { border-bottom: 1.5px solid var(--ink); }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1.5px solid var(--ink); }
.row .what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .what b { font-weight: 700; font-size: 14px; }
.row .what small { font-size: 12px; color: var(--text-3); }
.row .amt { font-weight: 800; font-size: 13px; white-space: nowrap; }
.delta { border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 10px 2px; font-weight: 800; font-size: 13px; white-space: nowrap; background: var(--lime); }
.delta.minus { background: var(--mist); }
.empty { padding: 14px 0; color: var(--text-3); font-size: 14px; }

/* Buttons */
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; background: var(--white);
       border: 2px solid var(--ink); border-radius: 12px; box-shadow: 2px 2px 0 var(--ink); font-weight: 800; font-size: 15px; cursor: pointer; text-align: center; }
.btn-lime { background: var(--lime); }
.btn-ink { background: var(--ink); color: var(--lime); }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-wait { min-height: 40px; display: flex; align-items: center; justify-content: center; background: var(--mist); border: 2px dashed var(--text-3);
            border-radius: 12px; font-weight: 800; font-size: 13px; color: var(--text-2); }

/* Book: week strip, style chips, tickets */
.book-bg { flex: 1 0 auto; background-color: var(--aqua); background-image: url("img/bg-aqua.jpg"); background-size: cover; background-position: center top; }
.book-inner { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 20px; }
.week-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.week-nav { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12px; }
.week-nav .icon-btn { width: 36px; height: 36px; background: var(--white); border: 2px solid var(--ink); border-radius: 10px; }
.week-nav .icon-btn[disabled] { opacity: .4; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: var(--white);
       border: 2px solid var(--ink); border-radius: 12px; cursor: pointer; padding: 0; }
.day span { font-weight: 700; font-size: 12px; }
.day b { font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1; }
.day.has::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); margin-top: 2px; }
.day.on { background: var(--ink); color: var(--lime); box-shadow: 3px 3px 0 var(--pink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 32px; display: inline-flex; align-items: center; padding: 0 14px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px;
        font-weight: 800; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--ink); color: var(--white); }
.ticket { position: relative; display: flex; background: var(--white); border: 2.5px solid var(--pink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; margin-top: -11px; width: 20px; height: 22px; background: var(--aqua); border: 2.5px solid var(--pink); }
.ticket::before { left: -12px; border-radius: 0 11px 11px 0; border-left: none; }
.ticket::after { right: -12px; border-radius: 11px 0 0 11px; border-right: none; }
.ticket .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 10px 12px 18px; }
.ticket .when { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ticket .when b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; }
.ticket .when span { font-family: var(--display); font-size: 18px; line-height: 1.05; overflow-wrap: anywhere; }
.ticket .teacher { font-weight: 700; font-size: 13px; }
.facts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.fact { border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 8px 2px; font-weight: 700; font-size: 11px; }
.fact.lime { background: var(--lime); }
.fact.ink { background: var(--ink); color: var(--white); }
.ticket .stub { flex-shrink: 0; width: 104px; border-left: 2.5px dashed var(--pink); display: flex; flex-direction: column; align-items: center;
                justify-content: center; gap: 6px; padding: 10px 8px; }
.ticket .stub small { font-weight: 700; font-size: 11px; text-align: center; line-height: 1.3; }
.ticket .stub .btn { width: 76px; min-height: 40px; padding: 0 6px; font-size: 15px; }
.ticket .stub .btn.small-text { font-size: 13px; }
.book-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 16px; background: var(--white);
              border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); text-align: center; }
.book-empty img { width: 120px; }
.foot { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
        background: var(--white); border-top: 2px solid var(--ink); }
.foot .what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.foot .what b { font-weight: 800; font-size: 14px; }
.foot .what small { font-size: 12px; color: var(--text-2); }

/* Packs */
.pack-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pack-title b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.state { background: var(--lime); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px 3px; font-weight: 800; font-size: 12px; white-space: nowrap; }
.left-count { display: flex; align-items: baseline; gap: 8px; }
.left-count b { font-weight: 900; font-size: 52px; line-height: 1; }
.left-count span { font-weight: 800; font-size: 17px; }
.dots { display: grid; gap: 5px; }
.dot { height: 22px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); }
.dot.used { background: var(--ink); }
.products { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 6px; }
.products h2 { margin: 0 0 2px; font-weight: 800; font-size: 15px; }
.product { position: relative; display: flex; align-items: center; gap: 12px; background: var(--white); border: 2px solid var(--ink); border-radius: 16px;
           box-shadow: 3px 3px 0 var(--ink); padding: 12px 14px; }
.product .what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.product .what b { font-weight: 800; font-size: 15px; }
.product .what small { font-size: 12px; color: var(--text-2); }
.product .price { font-weight: 900; font-size: 18px; white-space: nowrap; }
.best { position: absolute; right: 14px; top: -12px; transform: rotate(4deg); background: var(--lime); border: 2px solid var(--ink); border-radius: 999px;
        padding: 1px 10px 2px; font-weight: 800; font-size: 11px; }
.note { margin: 4px 18px 18px; padding: 10px 12px; background: var(--mist); border-radius: 12px; font-size: 13px; color: var(--text-2); }

/* Rewards */
.hero { position: relative; height: 168px; }
.hero .inner { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 18px; }
.hero .label { font-weight: 800; font-size: 14px; color: var(--white); }
.hero .big { font-weight: 900; font-size: 52px; line-height: 1; color: var(--lime); text-shadow: 3px 3px 0 var(--ink); }
.hero .tag-small { margin-top: 8px; align-self: flex-start; transform: rotate(-2deg); }
.hero .lewis { position: absolute; right: 6px; bottom: -14px; width: 150px; height: auto; pointer-events: none; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 16px 6px; }
.reward { display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); padding: 12px; }
.reward .ic { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.reward .rname { font-weight: 800; font-size: 14px; line-height: 1.3; min-height: 36px; overflow-wrap: anywhere; }
.reward .cost { font-weight: 900; font-size: 15px; }
.reward .btn { min-height: 40px; box-shadow: none; font-size: 14px; }
.codes { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 16px; }
.code-ticket { display: flex; align-items: stretch; background: var(--white); border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); }
.code-ticket .what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; }
.code-ticket .what small { font-weight: 700; font-size: 12px; color: var(--text-2); }
.code-ticket .code { font-family: var(--display); font-size: 30px; line-height: 1.05; letter-spacing: .04em; }
.code-ticket .link { align-self: flex-start; border: 0; background: none; padding: 4px 0 0; font-weight: 800; font-size: 12px; text-decoration: underline; cursor: pointer; }
.code-ticket .time { flex-shrink: 0; width: 96px; border-left: 2.5px dashed var(--ink); display: flex; flex-direction: column; align-items: center;
                     justify-content: center; gap: 2px; background: var(--lime); border-radius: 0 17px 17px 0; text-align: center; }
.code-ticket .time b { font-weight: 900; font-size: 22px; line-height: 1; }
.code-ticket .time small { font-weight: 700; font-size: 11px; line-height: 1.3; }

/* Join */
.perks { align-self: stretch; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.perks li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.perks li b { min-width: 58px; text-align: center; background: var(--lime); border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 8px 2px; font-weight: 800; font-size: 13px; }
.form { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.field label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.field input { width: 100%; height: 46px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 12px; font: inherit; font-size: 16px; background: var(--white); text-transform: uppercase; }
.consent { display: flex; flex-direction: column; gap: 0; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; }
.consent h2 { margin: 0; padding: 12px 14px 4px; font-weight: 800; font-size: 15px; }
.consent .lead { margin: 0; padding: 0 14px 10px; font-size: 13px; color: var(--text-2); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-top: 1.5px solid var(--ink); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 24px; height: 24px; margin: 0; border: 2px solid var(--ink); border-radius: 7px; background: var(--white); display: grid; place-content: center; cursor: pointer; }
.check input:checked { background: var(--lime); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px); }
.check .txt { display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 700; }
.check .txt small { font-weight: 400; font-size: 12px; color: var(--text-2); }
.check .txt a { color: var(--blue); text-decoration: underline; font-weight: 700; }
.check.all { background: var(--mist); border-top: 0; }
.check.accept { border: 2px solid var(--ink); border-radius: 16px; background: var(--mist); }
.check.accept .txt small { font-size: 13px; }
.field .hint { display: block; margin-top: 6px; font-size: 12px; color: var(--text-2); }
.field .hint.bad { color: #B3261E; font-weight: 700; }
details.ref summary { display: inline-block; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--blue); text-decoration: underline; list-style: none; padding: 4px 0; }
details.ref summary::-webkit-details-marker { display: none; }
details.ref[open] summary { margin-bottom: 8px; }
.ask-phone { margin: 14px 18px; padding: 14px; border: 2px solid var(--ink); border-radius: 16px; background: var(--yellow); }
.ask-phone form { display: flex; flex-direction: column; gap: 12px; }
.ask-phone .pair { display: flex; gap: 10px; }
.ask-phone .pair .btn { flex: 1; }

/* Messages, sheet, toast, footer */
.message { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 24px; text-align: center; }
.message img { width: 160px; }
.message h1 { margin: 0; font-weight: 900; font-size: 22px; }
.message p { margin: 0; color: var(--text-2); }
.spinner { width: 40px; height: 40px; border: 4px solid var(--mist); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.by { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 16px 22px; font-weight: 700; font-size: 11px; color: var(--text-3); }
.by b { font-family: var(--display); font-weight: 400; font-size: 14px; color: var(--ink); }
.backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(20, 20, 20, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; background: var(--white); border-top: 2.5px solid var(--ink); border-radius: 22px 22px 0 0;
         padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.sheet h2 { margin: 0; font-weight: 900; font-size: 20px; }
/* Customer list upload check (2026-11-22): a long file scrolls inside the sheet. */
.import-rows { max-height: 46vh; overflow-y: auto; }
/* LINE chat people on the members tab (2026-11-22): their LINE picture, or the first letter of their name. */
.guest-pic { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center;
             background: var(--lime); border: 2px solid var(--ink); font-weight: 900; }
a.btn, label.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.sheet p { margin: 0; font-size: 14px; color: var(--text-2); }
.sheet .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%); max-width: calc(100% - 32px);
         background: var(--ink); color: var(--white); border-radius: 14px; padding: 10px 16px; font-weight: 800; font-size: 14px; box-shadow: 3px 3px 0 var(--lime); }
.toast em { color: var(--lime); font-style: normal; }
.share { margin: 14px 18px 4px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 16px; background: var(--yellow); }
.share .what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.share .what b { font-weight: 800; font-size: 14px; }
.share .what small { font-size: 12px; color: var(--text-2); }
.share .btn { min-height: 40px; font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Rooms, paying the studio, staff pages (2026-11-21) */
.small { font-size: 13px; color: var(--text-2); }
.small-btn { min-height: 36px; padding: 0 12px; font-size: 13px; box-shadow: none; flex-shrink: 0; }
.row-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.link { border: 0; background: none; padding: 6px 0; font-weight: 800; font-size: 13px; text-decoration: underline; cursor: pointer; align-self: center; }
.pill { flex-shrink: 0; border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 10px 2px; font-weight: 800; font-size: 12px; white-space: nowrap; }
.pill--lime { background: var(--lime); } .pill--yellow { background: var(--yellow); } .pill--aqua { background: var(--aqua); }
.pill--pink { background: var(--pink); color: var(--white); } .pill--mist { background: var(--mist); }
.row .why { color: var(--pink); font-weight: 700; }
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .day { flex: 0 0 52px; }
.rooms { display: flex; flex-direction: column; gap: 14px; padding: 8px 18px 6px; }
.room { background: var(--white); border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.room.picked { box-shadow: 4px 4px 0 var(--pink); }
.room-photo { display: block; width: 100%; height: 150px; object-fit: cover; border-bottom: 2px solid var(--ink); }
.room-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.room-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.room-head b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.05; }
.room-body small { font-size: 13px; color: var(--text-2); }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.slot { height: 38px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); font-weight: 800; font-size: 13px; cursor: pointer; padding: 0; }
.slot[disabled] { background: var(--mist); border-color: #C7CDD6; color: #9AA3AE; text-decoration: line-through; cursor: default; }
.slot.on { background: var(--ink); color: var(--lime); }
.foot.pick { flex-direction: column; align-items: stretch; gap: 10px; }
.pick-row { display: flex; align-items: center; gap: 10px; }
.pick-row .btn-block { flex: 1; }
.stepper { display: flex; align-items: center; gap: 4px; border: 2px solid var(--ink); border-radius: 12px; padding: 2px; }
.stepper .icon-btn { width: 36px; height: 36px; font-weight: 900; font-size: 20px; }
.stepper .icon-btn[disabled] { opacity: .35; }
.stepper span { min-width: 54px; text-align: center; font-weight: 800; font-size: 14px; }
.pay-panel { align-items: center; text-align: center; }
.pay-panel .left-count { justify-content: center; }
.pay-qr { width: 230px; height: 230px; image-rendering: pixelated; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); }
.pay-to { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.panel.done { gap: 10px; }
.panel.done b { font-weight: 900; font-size: 22px; }
.walk { margin: 10px 0 14px; gap: 12px; }
.walk > b { font-weight: 900; font-size: 18px; }
.walk-none { margin: 10px 0 12px; }
.steps { margin: 0; padding: 0 0 4px 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.pay-actions { display: flex; flex-direction: column; gap: 6px; padding: 12px 18px 0; }
/* Staff menu (owner 2026-11-22: bigger, easier buttons; a left menu on a computer). Phone: a grid of big buttons, all
   visible, no sliding sideways. */
.staff-layout, .staff-side, .staff-body { display: contents; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 14px 14px; background: var(--white); border-bottom: 2px solid var(--ink); }
.tab { position: relative; min-height: 66px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
       border: 2px solid var(--ink); border-radius: 16px; background: var(--white); color: var(--ink); font-weight: 800; font-size: 14px; line-height: 1.15;
       text-align: center; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.tab.on { background: var(--ink); color: var(--lime); }
.tab-ic { flex: none; }
.tab-name .nw { white-space: nowrap; }
.tab-hint { display: none; }
.tab i { position: absolute; top: 5px; right: 6px; font-style: normal; font-size: 12px; background: var(--pink); color: var(--white); border-radius: 999px; padding: 0 7px; }
@media (min-width: 900px) {
  .app--staff { max-width: 1280px; }
  .app--staff .staff-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; flex: 1 0 auto; }
  .app--staff .staff-side { display: block; position: sticky; top: 52px; max-height: calc(100vh - 52px); overflow-y: auto; border-right: 2px solid var(--ink); }
  .app--staff .staff-body { display: block; min-width: 0; }
  .app--staff .staff-who { padding: 16px 18px 4px; }
  .app--staff .tabs { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px 20px; border-bottom: 0; }
  .app--staff .tab { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; row-gap: 1px; align-items: center; justify-items: start;
                     min-height: 62px; padding: 10px 14px; text-align: left; font-size: 16px; }
  .app--staff .tab-ic { grid-row: span 2; }
  .app--staff .tab-hint { display: block; grid-column: 2; font-size: 12px; font-weight: 600; color: var(--text-3); }
  .app--staff .tab.on .tab-hint { color: var(--white); }
  .app--staff .tab i { top: 50%; right: 12px; transform: translateY(-50%); }
  .app--staff .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
}
.staff-who { display: flex; flex-direction: column; padding: 10px 18px 0; }
.staff-who b { font-weight: 900; font-size: 18px; }
.staff-who span { font-size: 12px; color: var(--text-3); font-weight: 700; }
.staff-who a { align-self: flex-start; margin-top: 6px; font-size: 13px; font-weight: 900; color: var(--ink); text-decoration: underline; }
.banner { display: block; width: calc(100% - 28px); margin: 10px 14px 0; padding: 10px 12px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 12px; font-weight: 800; font-size: 13px; text-align: left; cursor: pointer; }
.find { display: flex; gap: 8px; }
.find input, .field select, .field textarea, .field input.plain { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 12px; font: inherit; font-size: 16px; background: var(--white); text-transform: none; }
.field select { width: 100%; appearance: none; -webkit-appearance: none; }
.member { padding-bottom: 12px; }
.member-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 4px; }
.member-head b { display: block; font-weight: 900; font-size: 22px; }
.member-head small { font-size: 13px; color: var(--text-3); }
.member h2 { font-size: 14px; padding-top: 14px; }
.two, .three { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.three { grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 4px; }
.three .btn { padding: 0 6px; font-size: 14px; }
.pickable { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; }
.cards { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 6px; }
.pay-card { display: flex; flex-direction: column; gap: 8px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 3px 3px 0 var(--ink); padding: 12px 14px; }
.pay-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pay-head b { display: block; font-weight: 900; font-size: 17px; }
.pay-head small { font-size: 12px; color: var(--text-3); }
.pay-head .price { font-weight: 900; font-size: 20px; white-space: nowrap; }
.pay-item { display: flex; flex-direction: column; font-weight: 700; font-size: 14px; }
.pay-item small { font-weight: 400; font-size: 12px; color: var(--text-2); }
.warn { background: #FFE3F2; border: 2px solid var(--pink); border-radius: 12px; padding: 8px 10px; font-weight: 700; font-size: 13px; }
.day-room { display: flex; flex-direction: column; gap: 6px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 3px 3px 0 var(--ink); padding: 12px; }
.day-room h3 { margin: 0 0 2px; font-family: var(--display); font-weight: 400; font-size: 20px; }
.gap, .bk { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border-radius: 12px; font: inherit; text-align: left; cursor: pointer; }
.gap { justify-content: space-between; background: var(--white); border: 2px dashed #9AA3AE; }
.gap span { font-weight: 700; font-size: 13px; color: var(--text-3); }
.gap b { font-weight: 800; font-size: 13px; }
.bk { background: var(--mist); border: 2px solid var(--ink); }
.bk .when { flex-shrink: 0; width: 94px; font-weight: 800; font-size: 12px; white-space: nowrap; }
.bk .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk .who b { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk .who small { font-size: 11px; color: var(--text-3); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; font-size: 13px; background: var(--white); }
.seg input:checked + span { background: var(--ink); color: var(--lime); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.sheet .field { display: flex; flex-direction: column; gap: 6px; }
.sheet .field label { margin: 0; }
.sheet { max-height: 92vh; overflow-y: auto; }
.slip-img { width: 100%; max-height: 58vh; object-fit: contain; border: 2px solid var(--ink); border-radius: 12px; background: var(--mist); }
.week-nav.light { color: var(--white); font-weight: 800; font-size: 15px; }
.week-nav.light .icon-btn { width: 36px; height: 36px; background: var(--white); border: 2px solid var(--ink); border-radius: 10px; }
.btn.add { margin-top: 10px; }
.row .small-btn + .small-btn { margin-left: -2px; }
.ppqr-preview { display: block; max-width: 180px; margin-top: 8px; border: 2px solid var(--ink); border-radius: 12px; }
.saved-state { padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; font-weight: 800; font-size: 14px; }
.saved-state.ok { background: var(--lime); }
.saved-state.no { background: var(--yellow); }
.btn.pulse { animation: pulse 1.2s ease-in-out 4; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--pink); } }
@media (prefers-reduced-motion: reduce) { .btn.pulse { animation: none; box-shadow: 0 0 0 4px var(--pink); } }

/* Live room board (live.js, 20261121180000) */
.app--live .top { grid-template-columns: 84px 1fr 84px; }
.lang { justify-self: end; display: flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang button { min-width: 38px; height: 32px; padding: 0 8px; border: 0; background: var(--white); font-weight: 800; font-size: 12px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--lime); }
.live-sum { gap: 4px; }
.live-clock { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.live-clock b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: live-pulse 2s infinite; }
.live-dot.off { background: var(--coral); animation: none; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); } 70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-count { font-weight: 900; font-size: 20px; }
.live-sum small { font-size: 12px; color: var(--text-2); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; font-weight: 700; }
.legend .key { width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 4px; background: var(--white); }
.legend .key.taken { background: var(--mist); border-color: #C7CDD6; margin-left: 8px; }
.legend .hint { margin-left: auto; font-weight: 400; color: var(--text-2); }
.live-head { display: flex; align-items: center; gap: 10px; }
.live-thumb { width: 56px; height: 56px; flex-shrink: 0; object-fit: cover; border: 2px solid var(--ink); border-radius: 12px; }
.live-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.live-name b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.05; }
.state { flex-shrink: 0; padding: 6px 12px 7px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 900; font-size: 15px; line-height: 1; white-space: nowrap; }
.state--free { background: var(--lime); }
.state--taken { background: var(--coral); color: var(--white); }
.state--shut { background: var(--ink); color: var(--white); }
.state-line { margin: 0; font-weight: 800; font-size: 14px; }
.live-room.is-free { box-shadow: 4px 4px 0 #16A34A; }
.live-room.is-taken { box-shadow: 4px 4px 0 var(--coral); }
/* A tablet or TV at the counter: rooms side by side, bigger states. */
@media (min-width: 900px) {
  .app--live { max-width: 1280px; }
  .app--live .live-rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .app--live .state { font-size: 22px; padding: 8px 16px 10px; }
  .app--live .state-line { font-size: 18px; }
  .app--live .live-name b { font-size: 26px; }
}

/* Package rules on the booking page and payment labels on bookings (20261121220000) */
.pack-note { margin: 0; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 12px; background: var(--yellow); font-weight: 700; font-size: 13px; }
.row .what small.paid { color: var(--ink); font-weight: 700; }
.door-qr { display: block; width: 220px; height: 220px; margin: 6px auto; border: 2px solid var(--ink); border-radius: 12px; }
.scan-video { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 60vh; object-fit: cover; background: var(--ink); border: 2px solid var(--ink); border-radius: 12px; }
.door-url { word-break: break-all; text-align: center; }
.pack-line { margin: 0; font-weight: 700; font-size: 13px; color: var(--text-2); }
.foot.pick .two { margin-top: 0; }
.room-head .facts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Counter: today at the studio (2026-11-21) */
.today h2 small { display: block; font-weight: 600; font-size: 12px; color: var(--text-3); }
.today h2 .count { display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--pink);
  color: var(--white); font-style: normal; font-size: 13px; text-align: center; }
.now-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding-bottom: 6px; }
.now-room { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 10px 12px; font: inherit; text-align: left;
  background: var(--white); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 2px 2px 0 var(--ink); }
.now-room.busy { background: #FFE3EE; cursor: pointer; }
.now-room .name { font-weight: 900; font-size: 15px; }
.now-room b { font-weight: 800; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-room small { font-size: 12px; color: var(--text-2); }
.today-list { display: flex; flex-direction: column; gap: 6px; }
.tk { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 8px 10px; font: inherit; text-align: left; cursor: pointer;
  background: var(--mist); border: 2px solid var(--ink); border-radius: 12px; }
.tk.bad { background: #FFF0F5; border-color: var(--pink); }
.tk-top { display: flex; align-items: flex-start; gap: 10px; }
.tk .when { flex-shrink: 0; width: 92px; font-weight: 800; font-size: 12px; white-space: nowrap; }
.tk .when small { display: block; font-weight: 600; font-size: 11px; color: var(--text-3); white-space: normal; }
.tk .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tk .who b { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk .who small { font-size: 11px; color: var(--text-3); }
.tk-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.all-good { padding: 10px 12px; border: 2px dashed #9AA3AE; border-radius: 12px; font-weight: 700; font-size: 13px; color: var(--text-2); }
.today-done { margin-top: 10px; }
.today-done summary { cursor: pointer; font-weight: 800; font-size: 14px; padding: 6px 0; }
.today .banner { width: 100%; margin: 8px 0 2px; }
.section h2 .sub { font-weight: 600; font-size: 12px; color: var(--text-3); margin-left: 4px; }
.sheet .big-amount { margin: 6px 0 2px; font-weight: 900; font-size: 30px; color: var(--ink); }

/* The member card after the counter's check-in (2026-11-21) */
.checked-in { display: flex; flex-direction: column; gap: 4px; margin: 14px 18px 0; padding: 14px 16px; background: #1B7F3B; color: var(--white);
  border: 2px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); }
.checked-in b { font-weight: 900; font-size: 20px; }
.waiting-band { display: flex; flex-direction: column; gap: 4px; margin: 14px 18px 0; padding: 12px 14px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 16px; }
.waiting-band b { font-weight: 900; font-size: 16px; }
.waiting-band span { font-size: 13px; }
.checked-in span { font-size: 14px; }
.checked-in .earned { font-weight: 900; font-size: 26px; color: var(--lime); }
.sheet .picked { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--mist); }
.sheet .picked b { font-weight: 900; font-size: 17px; }
.sheet .picked small { font-size: 13px; color: var(--text-2); }

/* Sign-up: the studio's logo, what members get, then name and phone (2026-11-21) */
.join-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px 18px; text-align: center;
  background-color: var(--blue); background-image: url("img/bg-blue.jpg"); color: var(--white); border-bottom: 2.5px solid var(--ink); }
.join-logo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; background: var(--white); border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink); }
.join-logo--text { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 40px; color: var(--ink); }
.join-hero h1 { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; }
.join-hero p { margin: 0; font-weight: 700; font-size: 15px; }
.join-benefits h2 { padding-top: 16px; }
.benefits { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.benefits li { display: flex; align-items: flex-start; gap: 12px; }
.benefits .num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; }
.benefits b { display: block; font-weight: 800; font-size: 15px; }
.benefits small { display: block; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.points-line { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--mist); font-size: 13px; color: var(--text-2); }
.form .form-title { margin: 0 0 4px; font-weight: 800; font-size: 17px; }

/* The map page (2026-11-21) */
.map-panel p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.map-panel .btn { margin-top: 6px; }
.map-next { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }

/* A sheet with only ปิด (2026-11-21) */
.sheet .actions--one { grid-template-columns: 1fr; }
/* Door check-in with a phone number (20261123130000). */
.door-line-note { margin: 8px 2px 0; }
[data-form="doorphone"] + .btn { margin-top: 14px; }
.section .btn-block + .btn-block { margin-top: 10px; }
/* ตารางห้อง: pick any day up to the staff booking limit (20261124). */
.pick-day { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 13px; font-weight: 700; }
.pick-day input { flex: 0 0 auto; font: inherit; font-size: 15px; padding: 8px 10px; border: 2px solid #141414; border-radius: 12px; background: #fff; color: #141414; }
/* ประวัติ: what happened at the studio, with who did it (20261124020000). */
.act-groups { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.act-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 13px; background: var(--white); color: var(--ink); cursor: pointer; }
.act-chip.on { background: var(--ink); color: var(--lime); }
.act-row { align-items: flex-start; }
.act-row .act-time { flex: 0 0 44px; font-weight: 800; font-size: 13px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.act-row .pill { flex: 0 0 auto; max-width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-alert { box-shadow: inset 4px 0 0 var(--pink); padding-left: 10px; }
/* Pro (20261124060000): the owner's monthly report and the studio colour sample. */
.rep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.rep-tile { border: 2px solid var(--ink); border-radius: 14px; padding: 12px; background: var(--white); display: flex; flex-direction: column; gap: 2px; }
.rep-tile b { font-size: 20px; font-weight: 800; }
.rep-tile span { font-size: 13px; font-weight: 700; }
.rep-tile small { font-size: 12px; color: #555; }
.rep-bar { height: 8px; border: 1.5px solid var(--ink); border-radius: 999px; margin-top: 6px; overflow: hidden; background: var(--white); }
.rep-bar i { display: block; height: 100%; background: var(--lime); }
.brand-sample { border: 2px solid var(--ink); border-radius: 999px; padding: 12px; text-align: center; font-weight: 800; color: var(--ink); margin: 4px 0 12px; }
.brand-sample.too-dark::after { content: " สีเข้มเกินไป"; color: var(--white); }
