/* Float Therapy booking prototype — house design language */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  --navy: #071436;
  --navy-soft: #0e2050;
  --gold: #C9AB5F;
  --bronze: #72694F;
  --cream: #faf9f5;
  --card: #ffffff;
  --line: #e8e4d8;
  --ink: #1c2333;
  --muted: #6b7280;
  --ok: #2f7d4f;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Archivo", sans-serif;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(7, 20, 54, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--cream); color: var(--ink); font-family: var(--font-body);
       font-size: 16px; line-height: 1.55; min-height: 100vh; }
h1,h2,h3,h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.15; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

.eyebrow { font-family: var(--font-heading); font-size: 12px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--bronze); }

/* ---------- shells ---------- */
.shell { max-width: 640px; margin: 0 auto; padding: 0 20px 120px; }
.wide  { max-width: 1200px; }

.topbar { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; }
.topbar .brand { font-family: var(--font-heading); font-weight: 600; letter-spacing: .5px;
  font-size: 17px; color: #fff; display: flex; align-items: center; gap: 10px; }
.topbar .brand small { color: var(--gold); font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; font-size: 10px; }
.topbar a { color: #cdd3e1; text-decoration: none; font-size: 13px; }

/* ---------- progress ---------- */
.steps { display: flex; gap: 6px; margin: 22px 0 6px; }
.steps span { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background .3s; }
.steps span.on { background: var(--gold); }
.stephead { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0 18px; }
.stephead h2 { font-size: 26px; }
.stephead .back { color: var(--bronze); font-size: 14px; font-weight: 600; }

/* ---------- cards ---------- */
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; display: block; width: 100%; text-align: left;
  transition: border-color .15s, transform .1s, box-shadow .2s; }
.svc:active { transform: scale(.99); }
.svc:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.svc .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.svc h3 { font-size: 19px; }
.svc .price { font-family: var(--font-heading); font-size: 19px; color: var(--navy); font-weight: 600; white-space: nowrap; }
.svc .price small { color: var(--muted); font-weight: 400; font-size: 12px; }
.svc p { color: var(--muted); font-size: 14px; margin-top: 5px; }
.svc .meta { font-size: 12.5px; color: var(--bronze); margin-top: 8px; font-weight: 600;
  letter-spacing: .3px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 16px;
  font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; transition: all .15s; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip:hover:not(.on) { border-color: var(--gold); }
.chip .d { color: var(--muted); font-weight: 400; } .chip.on .d { color: var(--gold); }

.addon { background: linear-gradient(120deg, #fdf9ef, #fbf6e9); border: 1px solid #eadfc0;
  border-radius: var(--radius); padding: 14px 16px; margin: 4px 0 14px; display: flex;
  justify-content: space-between; align-items: center; gap: 10px; }
.addon b { font-size: 14.5px; color: var(--navy); display: block; }
.addon small { color: var(--bronze); font-size: 12.5px; }

/* ---------- date & time ---------- */
.datestrip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.datestrip::-webkit-scrollbar { display: none; }
.day { min-width: 64px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 10px 6px; text-align: center; transition: all .15s; }
.day small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.day b { font-family: var(--font-heading); font-size: 19px; color: var(--navy); }
.day.on { background: var(--navy); border-color: var(--navy); }
.day.on small { color: var(--gold); } .day.on b { color: #fff; }

.timegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.slot { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 13px 6px;
  font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--navy);
  text-align: center; transition: all .15s; }
.slot.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.slot:hover:not(.on) { border-color: var(--gold); }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; font-size: 14.5px; }
.empty .chip { margin-top: 10px; }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px;
  font-size: 16px; font-family: var(--font-body); background: #fff; outline: none; transition: border-color .15s; }
.field input:focus { border-color: var(--gold); }
.otp { display: flex; gap: 8px; justify-content: center; margin: 18px 0; }
.otp input { width: 46px; height: 54px; text-align: center; font-size: 22px; font-family: var(--font-heading); }
.hint { font-size: 12.5px; color: var(--muted); text-align: center; }
.hint b { color: var(--bronze); }

/* ---------- pay ---------- */
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.summary .li { display: flex; justify-content: space-between; font-size: 14.5px; padding: 5px 0; }
.summary .li.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px;
  font-family: var(--font-heading); font-weight: 700; font-size: 17px; color: var(--navy); }
.policy { display: flex; gap: 10px; align-items: flex-start; background: #f4f2ea; border-radius: 12px;
  padding: 12px 14px; font-size: 13.5px; color: #4b5266; margin-bottom: 16px; }
.policy input { margin-top: 3px; accent-color: var(--navy); width: 17px; height: 17px; flex: none; }
.applepay { width: 100%; background: #000; color: #fff; border-radius: 12px; padding: 15px;
  font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center;
  gap: 6px; font-family: -apple-system, var(--font-body); }
.divider { text-align: center; color: var(--muted); font-size: 12px; margin: 14px 0; text-transform: uppercase; letter-spacing: 1.5px; }
.giftfield { display: flex; gap: 8px; margin-top: 14px; }
.giftfield input { flex: 1; }
.giftfield button { border: 1.5px solid var(--navy); border-radius: 12px; padding: 0 18px;
  font-weight: 700; color: var(--navy); }

/* ---------- primary CTA ---------- */
.cta { position: fixed; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, var(--cream) 35%);
  padding: 26px 20px 20px; z-index: 30; }
.cta .inner { max-width: 640px; margin: 0 auto; }
.btn { width: 100%; background: var(--navy); color: #fff; font-family: var(--font-heading);
  font-size: 17px; font-weight: 600; letter-spacing: .3px; border-radius: 14px; padding: 16px;
  transition: opacity .15s, transform .1s; box-shadow: 0 10px 26px rgba(7,20,54,.25); }
.btn:disabled { opacity: .35; box-shadow: none; }
.btn:active { transform: scale(.985); }
.btn.gold { background: var(--gold); color: var(--navy); }
.runtotal { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted);
  padding: 0 4px 10px; }
.runtotal b { font-family: var(--font-heading); color: var(--navy); font-size: 16px; }

/* ---------- confirmation ---------- */
.confirm { text-align: center; padding: 44px 0 10px; }
.confirm .tick { width: 74px; height: 74px; border-radius: 50%; background: var(--navy); color: var(--gold);
  font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
  animation: pop .45s cubic-bezier(.2,1.6,.5,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.confirm h2 { font-size: 28px; margin-bottom: 8px; }
.confirm .ref { font-family: var(--font-heading); color: var(--bronze); letter-spacing: 2px; font-weight: 600; }
.confirm .actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.confirm .actions .chip { padding: 11px 18px; }

/* =================== STAFF DIARY =================== */
.diarywrap { display: flex; gap: 0; max-width: 1200px; margin: 0 auto; }
.diary { flex: 1; padding: 18px 20px 40px; overflow-x: auto; }
.dhead { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap;
  justify-content: flex-end; }   /* overflow pills wrap RIGHT-aligned, so all buttons stay in one place */
/* owner, 28 Aug: the date owns its own line; its controls sit underneath, unsquashed */
.dhead h1 { font-size: 24px; flex: 1 0 100%; margin: 0 0 2px; }
.dhead .nav { flex: 1 0 auto; margin-right: auto; }
.dhead .nav { display: flex; gap: 6px; }
.dhead .nav button, .dhead .pill { border: 1.5px solid var(--line); background: #fff; border-radius: 10px;
  padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--navy); }
.dhead .pill.gold { background: var(--gold); border-color: var(--gold); }

.lanes { display: grid; grid-template-columns: 52px repeat(4, minmax(150px, 1fr)); gap: 8px; min-width: 700px; }
.lanehead { font-family: var(--font-heading); font-weight: 600; color: var(--navy); font-size: 14px;
  padding: 8px 6px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.lanehead small { display: block; color: var(--bronze); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; }
.lane { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.timecol { position: relative; }
.timecol span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; color: var(--muted); }
.gridline { position: absolute; left: 0; right: 0; height: 1px; background: #f0ede3; }
.apt { position: absolute; left: 5px; right: 5px; border-radius: 9px; padding: 7px 9px; font-size: 12px;
  color: #fff; overflow: hidden; cursor: pointer; box-shadow: 0 2px 8px rgba(7,20,54,.14);
  border-left: 4px solid rgba(255,255,255,.45); transition: filter .15s; }
.apt:hover { filter: brightness(1.08); }
.apt.inblock { z-index: 5; outline: 2px solid #d9a423; outline-offset: 1px; }   /* stays visible above a block — needs rearranging */
/* two-column card (owner, 28 Aug): LEFT = name with the service · time ALWAYS on the
   second line, exactly as if no badge were there; RIGHT = the badges, right-aligned,
   wrapping downward in their own column — they can never push the time down or
   overlap the text, and no badges means no reserved space */
.apt .row1 { display: flex; align-items: flex-start; gap: 6px; }
.apt .aptmain { flex: 1 1 auto; min-width: 0; }
.apt b { display: block; font-size: 12.5px; line-height: 1.25; }
.apt .svc-l { display: block; opacity: .85; font-size: 11px; }
.apt .ic { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: 2px; max-width: 58%; font-size: 11px; }
.apt.confirmed { background: var(--navy-soft); }
.apt.arrived { background: #205a86; }
.apt.inservice { background: var(--bronze); }
.apt.done { background: #7a8194; }
.apt.hold { background: repeating-linear-gradient(45deg, #b9a15c, #b9a15c 8px, #ac9550 8px, #ac9550 16px); }
.turnover { position: absolute; left: 5px; right: 5px; border-radius: 7px;
  background: repeating-linear-gradient(45deg, #f2efe6, #f2efe6 7px, #ece8da 7px, #ece8da 14px);
  border: 1px dashed #d8d2bd; color: #a49a78; font-size: 10px; display: flex; align-items: center;
  justify-content: center; letter-spacing: 1px; text-transform: uppercase; }
.blocked.ghost { opacity: .75; pointer-events: none; border-color: var(--gold); color: var(--bronze); }
.blocked { position: absolute; left: 5px; right: 5px; border-radius: 7px; background: #eceef2;
  border: 1px dashed #c6cbd6; color: #8b93a5; font-size: 10.5px; display: flex; align-items: center;
  justify-content: center; letter-spacing: 1px; text-transform: uppercase; }

/* side panel */
/* owner, 28 Aug: widened from 400px so the tier line, the visit count, the card and the
   View full profile button all fit on one row (see .tierline). */
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: #fff;
  box-shadow: -18px 0 50px rgba(7,20,54,.18); z-index: 60; transform: translateX(105%);
  transition: transform .28s cubic-bezier(.3,1,.4,1); display: flex; flex-direction: column; }
.panel.open { transform: none; }
.panel .phead { background: var(--navy); color: #fff; padding: 18px 20px; }
.panel .phead h3 { color: #fff; font-size: 19px; }
.panel .phead .sub { color: var(--gold); font-size: 13px; margin-top: 3px; }
.panel .pbody { padding: 18px 20px; overflow-y: auto; flex: 1; }
.panel .close { position: absolute; top: 14px; right: 14px; color: #cdd3e1; font-size: 22px; }
.statusflow { display: flex; gap: 6px; margin: 6px 0 18px; flex-wrap: wrap; }
.statusflow .chip { font-size: 12.5px; padding: 7px 13px; }
.payopt { display: block; width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px; margin-bottom: 10px; text-align: left; font-size: 15px; font-weight: 600;
  color: var(--navy); transition: all .15s; background: #fff; }
.payopt small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.payopt:hover { border-color: var(--gold); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--navy); color: #fff; border-radius: 99px; padding: 12px 22px; font-size: 14px;
  z-index: 90; opacity: 0; transition: all .3s; box-shadow: 0 12px 30px rgba(7,20,54,.35); }
.toast.show { transform: translateX(-50%); opacity: 1; }
.scrim { position: fixed; inset: 0; background: rgba(7,20,54,.35); opacity: 0; pointer-events: none;
  transition: opacity .25s; z-index: 50; }
.scrim.show { opacity: 1; pointer-events: auto; }

/* =================== v3 — blueprint components =================== */

/* welcome-back / book-your-usual */
.usual { background: var(--navy); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.usual b { display: block; color: #fff; font-family: var(--font-heading); font-size: 15.5px; margin-top: 4px; }
.usual small { color: #b9c1d5; font-size: 12.5px; }
.usual .chip.on { background: var(--gold); border-color: var(--gold); color: var(--navy); white-space: nowrap; }
.welcomeback { background: #f2efe6; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin-bottom: 14px; }
.welcomeback b { color: var(--navy); font-size: 14.5px; display: block; }
.welcomeback small { color: var(--muted); font-size: 12.5px; }

/* checkout hold countdown */
.holdchip { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--bronze);
  background: #fdf9ef; border: 1px solid #eadfc0; border-radius: 99px; padding: 7px 16px;
  display: inline-block; margin-bottom: 12px; min-height: 18px; }
.holdchip:empty { visibility: hidden; }

/* waitlist join form */
.wlform { display: flex; flex-direction: column; gap: 8px; max-width: 320px; margin: 14px auto 0; }
.wlform input { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 15px; font-family: var(--font-body); }
.wlform .chip { align-self: center; }

/* wallet credit burn-down */
.burnbar { height: 8px; border-radius: 6px; background: var(--line); margin: 10px 0 6px; overflow: hidden; }
.burnbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--bronze), var(--gold)); }

/* staff KPI strip */
.kpis { display: flex; gap: 10px; max-width: 1200px; margin: 14px auto 0; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.kpis::-webkit-scrollbar { display: none; }
.kpi { background: var(--navy); border-radius: 12px; padding: 10px 16px; min-width: 108px; flex: 1; }
.kpi small { display: block; color: var(--gold); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-family: var(--font-heading); }
.kpi b { color: #fff; font-family: var(--font-heading); font-size: 19px; }
.kpi b span { color: #8f99b3; font-size: 12px; font-weight: 500; }

/* view toggle */
.viewtoggle { display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.viewtoggle button { padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--muted); }
.viewtoggle button.on { background: var(--navy); color: #fff; }

/* front-desk kanban */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; min-width: 700px; }
.kcol { background: #f4f2ea; border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 300px; }
.kcolhead { font-family: var(--font-heading); font-weight: 600; color: var(--navy); font-size: 15px;
  display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px; }
.kcolhead small { color: var(--bronze); font-size: 13px; }
.kcolhint { font-size: 11px; color: var(--muted); padding: 0 4px 8px; letter-spacing: .3px; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.kcard:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.kcard b { display: block; font-size: 13.5px; color: var(--navy); font-family: var(--font-heading); }
.kcard span { display: block; font-size: 12px; color: var(--muted); }
.kcard .krow { margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kcard em, .wlrow em { font-style: normal; font-size: 11px; font-weight: 600; border-radius: 99px; padding: 2px 9px; background: #eef0f4; color: #5a6377; }
.kcard em.warn, .wlrow em.warn { background: #faf0d8; color: #8a6d1f; }
.kcard em.okk { background: #e7f2ea; color: var(--ok); }
.kcard.owes { border-color: #e5c98a; }
.kempty { color: var(--muted); font-size: 13px; text-align: center; padding: 18px 0; }

/* in-page document pop-up (item 13) */
.docmodal { position: fixed; inset: 0; background: rgba(7,20,54,.5); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.docmodal-inner { position: relative; width: min(960px, 96vw); height: 92vh; background: #F7F5EF;
  border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(7,20,54,.4); }
.docmodal-inner iframe { width: 100%; height: 100%; border: 0; }
.docmodal-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--navy);
  color: #fff; border-radius: 99px; padding: 8px 16px; font-weight: 700; font-size: 13px; }

/* live transaction watch */
.txnwatch { border: 1.5px solid var(--gold); border-radius: 14px; padding: 16px; background: #fdf9ef; }
.txnwatch b { display: block; color: var(--navy); font-family: var(--font-heading); font-size: 15px; }
.txnwatch span { display: block; color: var(--bronze); font-size: 13.5px; margin-top: 4px; }
.txnwatch:not(.ok) b::after { content: " ⋯"; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.txnwatch.ok { border-color: var(--ok); background: #eef6f0; }
.txnwatch.ok span { color: var(--ok); }

/* gift-card code display */
.giftcode-big { font-family: var(--font-heading); font-size: 26px; font-weight: 700; letter-spacing: 2px;
  color: var(--navy); background: #fdf9ef; border: 1.5px dashed #d8cba3; border-radius: 14px;
  padding: 16px 22px; display: inline-block; margin: 16px 0 10px; }

/* staff customer search */
.csearchwrap { position: relative; }
.csearch { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 14px;
  font-family: var(--font-body); background: #fff; width: 200px; }
.csearch:focus { outline: none; border-color: var(--gold); }
.cresults { position: absolute; top: 40px; left: 0; width: 280px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); z-index: 70; overflow: hidden; }
.cresults button { display: block; width: 100%; text-align: left; padding: 10px 14px; font-size: 14px;
  border-bottom: 1px solid #f0ede3; }
.cresults button:hover { background: #faf8f2; }
.cresults b { color: var(--navy); display: block; }
.cresults small { color: var(--muted); }

/* forms dot */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.amber { background: #d9a423; box-shadow: 0 0 0 2px rgba(217,164,35,.25); }

/* panel extras */
/* owner, 28 Aug: "make the profile box bigger, so the View full profile button always sits on
   the same line as the 10 visits line." The pill was an inline-block sized to its content, so
   once the tier, the visit count and the card were on it the button had nowhere to go and
   dropped to a second line. It is now a single row: the detail takes the space it needs and
   trims if it must, the button is pinned right and never wraps. */
.tierline { margin-top: 6px; font-size: 12px; color: #cdd3e1; background: rgba(255,255,255,.08);
  border-radius: 99px; padding: 4px 6px 4px 12px; display: flex; align-items: center; gap: 8px; }
.tierline .tiertext { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tierline .chip { flex: 0 0 auto; margin-left: auto; }
/* the ban notice reuses the pill but has no button — keep it hugging its text */
.tierline.banline { display: inline-flex; padding-right: 12px; }
.settled { font-size: 13.5px; color: var(--ok); background: #eef6f0; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.repline { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 2px; border-bottom: 1px solid #f0ede3; }
.repline b { font-family: var(--font-heading); color: var(--navy); }
.wlrow { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wlrow b { color: var(--navy); font-size: 14px; }
.wlrow span { color: var(--muted); font-size: 12.5px; margin-right: auto; }
.nbselect { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px;
  font-size: 13.5px; line-height: 1.35; font-family: var(--font-body); background: #fff;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 700px) {
  .stephead h2 { font-size: 22px; }
  .timegrid { grid-template-columns: repeat(3, 1fr); }
  .lanes { grid-template-columns: 44px repeat(4, minmax(128px, 1fr)); }
  .kanban { grid-template-columns: repeat(2, 1fr); min-width: 0; }
  .kpi b { font-size: 16px; }
}

/* item 20: readable badges */
.bdg{display:inline-block;font-size:8.5px;font-weight:800;letter-spacing:.05em;padding:1.5px 6px;border-radius:99px;background:#e8ebf2;color:#3c4257;margin:0 3px 2px 0;vertical-align:1px}
.bdg.gold{background:#f3ead2;color:#7a6420}
.bdg.gift{background:#efe6f3;color:#5d3a6e}
.bdg.amber{background:#faeecb;color:#8a6d1f}
.bdg.red{background:#f6dede;color:#7a2f2f}
.bdg.due{background:#7a2f2f;color:#fff}
/* item 6: available time drawn explicitly */
.freeslot{position:absolute;left:3px;right:3px;border:1.5px dashed #b7cdb9;border-radius:8px;background:#f2f7f2;color:#4c6b4f;font-size:10.5px;font-weight:700;padding:4px 7px;cursor:pointer;z-index:1;overflow:hidden}
.freeslot small{display:block;font-weight:500;font-size:9px;color:#7c967e}
.freeslot:hover{background:#e8f1e8}
.apt{z-index:2}

/* item 64: the gift-card box is PROMINENT (owner) */
.giftfield { margin-top: 18px; padding: 14px; border: 2px solid #72694F; border-radius: 14px; background: #faf8f2; }
.giftfield::before { content: "Gift card / discount code"; display: block; font-weight: 800; font-size: 13px; letter-spacing: .03em; color: #071436; margin-bottom: 8px; }
.giftfield input { padding: 14px; font-size: 15px; letter-spacing: .05em; border-radius: 12px; }
.giftfield button { padding: 14px 26px; font-size: 15px; font-weight: 800; background: #72694F; color: #fff; border: none; border-radius: 12px; cursor: pointer; }

/* group micro-labels — declutter stacked chip groups (owner, 28 Aug: "VERY busy") */
.grouplabel { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 20px 0 8px; }
.grouplabel:first-of-type { margin-top: 14px; }

/* per-treatment description under the chip picker (item 99, copy verbatim from the site) */
.svcdesc { margin: 14px 4px 2px; font-size: 14.5px; line-height: 1.65; color: var(--ink);
  text-align: left; max-width: 62ch; }

/* topbar rework (28 Aug): shared markup, per-design dress. Design A = the simple bar. */
.topbar .brand { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brandlogo { display: none; }
.sitenav { display: none; }
.topactions { display: flex; gap: 16px; align-items: center; }
.topactions a { text-decoration: none; }
.mob-account { display: none; }
.soc, .chev { display: none; }   /* site-navbar furniture — design B only */
.realheader { display: none; }   /* the verbatim site header — design B only */
.hero-b { display: none; }       /* site-style hero — design B styles it into being */

/* item 100: expiry warnings on the staff profile */
.warnline { background: #b0801f; color: #fff; border-radius: 12px; padding: 9px 14px;
  font-size: 12.5px; font-weight: 600; margin: 8px 0 0; display: block; width: fit-content; max-width: 100%; line-height: 1.5; }
.warnline.red { background: #7a2f2f; }
.panel > .warnline { margin-left: 14px; margin-right: 14px; }
.dhead .pill.red { background: #7a2f2f; border-color: #7a2f2f; color: #fff; }
.wlform select { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px;
  font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.repline b.liab { text-align: right; white-space: nowrap; }
.repline b.liab small { display: block; font-family: var(--font-body); font-weight: 400;
  color: var(--muted); font-size: 12px; margin-top: 1px; }
.daybanner { background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 16px;
  font-weight: 600; font-size: 13.5px; margin-bottom: 12px; }
.toast.warn { background: #7a2f2f; color: #fff; }
.toast.ok { background: #2f7d4f; color: #fff; }
.settled.owedue { background: #7a2f2f; color: #fff; font-weight: 700; font-size: 15px;
  border-radius: 12px; padding: 12px 14px; }
.arrivenote { margin-top: 8px; background: #faf0d8; border-radius: 10px; padding: 10px; color: #5a4a1f; }
.arrivenote b { color: #5a4a1f; }

/* owner, 28 Aug: the state of the money is the first thing a front desk needs off a booking,
   so it is a banner, not a sentence — green when there is nothing to take, red when there is,
   with the itemised record underneath. */
/* owner, 28 Aug: a visit list should read down the page in columns, not as a run of sentences
   with prices bolted on the end. Date and time are quiet and aligned; the service is the thing
   you actually read. Imported visits say so, quietly, instead of wearing a badge. */
.apptlist { border: 1px solid #e6e1d5; border-radius: 12px; padding: 2px 12px; }
.apptrow { display: grid; grid-template-columns: 56px 44px 1fr; gap: 10px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid #f4f1e9; font-size: 13.5px; color: var(--navy); }
.apptrow:last-child { border-bottom: 0; }
.apptrow .d, .apptrow .t { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.apptrow .t { font-variant-numeric: tabular-nums; }
.apptrow .s { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apptrow.mig .s::after { content: " · from Zenoti"; color: var(--muted); font-size: 11.5px; }
.apptrow.legacy { grid-template-columns: 1fr; }
.apptrow .cx { font-style: normal; color: #7a2f2f; font-size: 12px; }

.paystate { border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.paystate b { display: block; font-size: 17px; line-height: 1.25; }
.paystate span { display: block; font-size: 13px; margin-top: 2px; opacity: .85; }
.paystate.ok { background: #eef6f0; color: #2f7d4f; }
.paystate.owed { background: #7a2f2f; color: #fff; }
.payrows { border: 1px solid #e6e1d5; border-radius: 12px; padding: 4px 12px; margin-bottom: 12px; }
.payrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid #f0ece2; font-size: 13.5px; color: var(--navy); }
.payrow:last-child { border-bottom: 0; }
.payrow b { white-space: nowrap; font-weight: 700; }
.payrow.when { color: var(--muted); font-size: 12.5px; }

/* the step heading and its Back button: title left, Back hard right, wrapping safely
   on narrow windows rather than colliding (owner, 28 Aug) */
.stephead { flex-wrap: wrap; gap: 10px 16px; }
.stephead h2 { flex: 1 1 auto; min-width: 0; }
.stephead .back { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }

/* mobile: make it obvious the date strip scrolls (owner, 28 Aug) */
.datewrap { position: relative; }
.datescroll { display: none; }
.datemore { display: none; }
@media (max-width: 899px) {
  .datewrap::after { content: ""; position: absolute; top: 0; right: -2px; bottom: 12px; width: 46px;
    pointer-events: none; background: linear-gradient(90deg, transparent, var(--cream) 78%); }
  .datemore { display: grid; place-items: center; position: absolute; right: 2px; top: calc(50% - 12px);
    transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
    background: var(--navy); color: #fff; font-size: 15px; pointer-events: none; z-index: 2; }
  .datescroll { display: block; text-align: left; margin: -6px 0 10px; font-size: 12.5px; }
}
.wloffer { margin: 2px 0 16px; text-align: left; }
.kcard.held { border-style: dashed; border-color: #b9a15c; background: #fdf8ea; }
.kcard.held b { color: #8a6d1f; }

/* month calendar — reach any date without a long list (owner, 28 Aug) */
.calbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 14px; }
.calpanel { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 16px; background: #fff; }
.calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.calhead b { font-family: var(--font-heading); font-size: 16px; color: var(--navy); }
.calhead .chip { padding: 6px 14px; }
.calhead .chip[disabled] { opacity: .35; cursor: default; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.caldow span { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--muted); padding-bottom: 2px; }
.calday { border: 1.5px solid var(--line); border-radius: 10px; background: #fff; padding: 7px 2px 5px;
  text-align: center; display: block; }
.calday b { display: block; font-family: var(--font-heading); font-size: 15px; color: var(--navy); font-weight: 600; }
.calday i { display: block; font-style: normal; font-size: 10px; color: var(--ok); font-weight: 600; }
.calday.on { background: var(--navy); border-color: var(--navy); }
.calday.on b { color: #fff; } .calday.on i { color: #cfe6d8; }
.calday.none { opacity: .5; border-style: dashed; }
.calday.none i { color: var(--muted); }
.calday.past, .calday.empty { border: none; opacity: .25; }
.calday.past i, .calday.empty b { display: none; }

/* the chosen card in a pick-one grid (gift delivery method) */
.svc.picked { border-color: #72694F; box-shadow: inset 0 0 0 1px #72694F; }

/* ---- gift cards waiting to post (owner, 28 Aug: "that box needs to be flashing red
   so its important"). The pill pulses the whole time anything is outstanding; the
   banner states who is waiting and for how long, and turns hard red once a card has
   been sitting overnight. Motion is switched off for anyone who asks for less of it. */
.dhead .pill.flashing { animation: postflash 1.15s ease-in-out infinite; }
@keyframes postflash {
  0%, 100% { background: #7a2f2f; border-color: #7a2f2f; color: #fff; box-shadow: 0 0 0 0 rgba(122,47,47,.55); }
  50%      { background: #c0392b; border-color: #c0392b; color: #fff; box-shadow: 0 0 0 6px rgba(192,57,43,0); }
}
/* bank holiday: a statement of fact, not an alarm — it never flashes */
.daybanner.bankhol { background: #5b5340; }
.daybanner.postalert { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #8a6d1f; animation: postbanner 1.6s ease-in-out infinite; }
.daybanner.postalert.overdue { background: #7a2f2f; animation-name: postbannerhot; }
@keyframes postbanner    { 50% { background: #b08a1f; } }
@keyframes postbannerhot { 50% { background: #c0392b; } }
.daybanner.postalert .pip { font-size: 17px; line-height: 1; }
.daybanner.postalert b { font-size: 14px; }
.daybanner.postalert .names { font-weight: 400; font-size: 13px; opacity: .95; }
.daybanner.postalert .names .wait { opacity: .8; font-style: italic; }
.daybanner.postalert .chip { margin-left: auto; background: #fff; color: var(--navy);
  border-color: #fff; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .dhead .pill.flashing, .daybanner.postalert { animation: none; }
  .dhead .pill.flashing { background: #c0392b; border-color: #c0392b; }
}

/* waitlist: place in the queue + when they joined (owner, 28 Aug) */
.wlrow .wlpos { display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; margin-right: 8px; padding: 0 5px; border-radius: 6px;
  background: var(--navy); color: #fff; font-family: var(--font-body); font-size: 11.5px;
  font-weight: 700; vertical-align: 1px; }
.wlrow .wlwhen { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

/* credits at checkout — applied by default, removable (owner, 28 Aug) */
.creditrow { display: flex; align-items: center; gap: 12px; justify-content: space-between;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; margin-bottom: 8px; max-width: 720px; }
.creditrow.on { border-color: var(--gold); background: #fbf8f1; }
.creditrow span { display: block; font-size: 14px; color: var(--navy); }
.creditrow small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* the basket of chosen times (owner, 28 Aug: book several at once) */
.basket { border: 1.5px solid var(--gold); border-radius: 14px; padding: 14px 16px;
  margin: 4px 0 18px; max-width: 720px; background: #fbf8f1; }
.baskethead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.baskethead b { font-family: var(--font-heading); font-size: 15px; color: var(--navy); }
.baskethead small { color: var(--muted); font-size: 12.5px; }
.basketrow { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-top: 1px solid rgba(114,105,79,.2); font-size: 14px; color: var(--navy); }
.basketrow:first-of-type { border-top: none; }

/* the sauna starting temperature from the contrast waiver — the desk acts on this before
   the guest arrives, so it reads at a glance (owner, 28 Aug) */
.saunatemp { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 14px;
  border: 2px solid var(--gold); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px;
  background: #fbf6ea; }
.saunatemp span { grid-column: 1; font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--bronze); }
.saunatemp b { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center;
  font-family: var(--font-heading); font-size: 34px; line-height: 1; color: var(--navy); }
.saunatemp small { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.saunatemp.none b { font-size: 17px; color: var(--muted); }
.saunatemp.over { border-color: #c0392b; background: #fbeeec; }
.saunatemp.over b, .saunatemp.over small { color: #a33; }

/* owner, 28 Aug: bank holidays are closed — the date reads as unavailable and cannot be picked */
.day.shut { opacity: .38; cursor: not-allowed; border-style: dashed; background: #f7f5ef; }

/* owner, 28 Aug: the waitlist is an offer of help, not a form — one small card, chips instead
   of dropdowns, and a single button for anyone we already know. */
.wlbox { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; margin: 6px 0 4px; text-align: left; }
.wlbox b { display: block; font-family: var(--font-heading); font-size: 16px; color: var(--navy); }
.wlbox p { color: var(--muted); font-size: 13.5px; margin: 4px 0 10px; }
.wlbox .chips { margin-top: 0; margin-bottom: 10px; }
.wlgo { width: 100%; background: var(--navy); color: #fff; border-radius: 12px; padding: 13px;
  font-family: var(--font-heading); font-weight: 600; font-size: 15px; }
.wlwho { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.wlform { max-width: none; margin: 0 0 10px; }

/* editing a guest's details — plain labelled fields, nothing clever */
.editform { display: flex; flex-direction: column; gap: 10px; }
.editform label { display: block; font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; }
.editform input { width: 100%; margin-top: 5px; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 12px; font-size: 15px; font-family: var(--font-body); color: var(--navy);
  text-transform: none; letter-spacing: normal; }
.editform input:focus { outline: none; border-color: var(--gold); }

/* the whole date box is the button, so it should say so under the cursor */
input[type="date"] { cursor: pointer; }

/* the build stamp beside "prototype" — quieter than it, because it is a diagnostic, not a label.
   It exists so a stale copy of this page identifies itself on sight (see staff.html's .brand). */
.brand .build { opacity: .55; font-weight: 400; letter-spacing: .04em; margin-left: 2px; }
