/* Bourbon Street Barbers — brand system (speakeasy: deep green + aged gold, cream text). */
:root{
  --pub-green:#38533B; --pub-green-ink:#2D422E; --gold:#C6A15B; --gold-hi:#D9BC7F;
  --brass:#B08D3E; --cream:#F4EFE6; --cream-dim:#C9C2B4; --ink:#14100D; --hair:#455546;
  --neg:#E4A08F; --radius:14px; --cta-blue:#173B4E;
  --serif:"Playfair Display","Cormorant Garamond",Georgia,serif;
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--sans); color:var(--cream); min-height:100dvh;
  background:radial-gradient(120% 80% at 50% -10%,#314432,#29372A 60%) fixed,var(--pub-green-ink);
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
.tnum{font-variant-numeric:tabular-nums}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.screen{max-width:440px;margin:0 auto;min-height:100dvh;padding:16px 18px 92px;display:flex;flex-direction:column;gap:20px}
.wide{max-width:660px}

/* marquee / crest */
.marquee{display:flex;justify-content:center;padding:14px 0 2px;
  background:radial-gradient(220px 148px at 50% 49%,rgba(4,10,7,.55),rgba(4,10,7,.18) 56%,transparent 80%)}
.crest{width:100%;max-width:290px;height:auto;filter:contrast(1.04) drop-shadow(0 8px 20px rgba(0,0,0,.42))}

/* greeting */
.greeting{text-align:center}
.eyebrow{margin:0 0 6px;text-transform:uppercase;letter-spacing:.18em;font-size:11px;color:var(--gold)}
.hello{margin:0;font-family:var(--serif);font-weight:600;font-size:28px;line-height:1.12;color:var(--gold)}
.sub{margin:8px 0 0;color:var(--cream-dim);font-size:14px}
.sub a,.sublink{color:var(--gold);text-decoration:none;font-weight:600}
h1.title{font-family:var(--serif);color:var(--gold);font-size:30px;margin:6px 0 0;line-height:1.1}
.lede{color:var(--cream-dim);font-size:14.5px;line-height:1.55;margin:0}
.meta{color:var(--cream-dim);font-size:14px;margin:6px 0 0}
.back{color:var(--cream-dim);text-decoration:none;font-size:13px}

/* category + service cards */
.cat-label{text-transform:uppercase;letter-spacing:.16em;font-size:11px;color:var(--gold);margin:8px 2px 0}
.cards{display:flex;flex-direction:column;gap:12px}
.card{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-radius:var(--radius);
  background:rgba(255,255,255,.038);border:1px solid rgba(198,161,91,.2);color:var(--cream);text-decoration:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 10px 24px rgba(0,0,0,.28);transition:border-color .18s}
.card:hover{border-color:rgba(198,161,91,.42)}
.card-main{display:flex;flex-direction:column;gap:4px}
.card-name{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:600}
.card-meta{font-size:12.5px;color:var(--cream-dim)}
.card-thumb{width:56px;height:56px;border-radius:10px;object-fit:cover;flex:0 0 auto;margin-right:12px;border:1px solid rgba(198,161,91,.25)}
.card .card-main{flex:1 1 auto;min-width:0}
.card-desc{font-size:12px;color:var(--cream-dim);line-height:1.4;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.svc-hero{width:100%;max-height:230px;object-fit:cover;border-radius:var(--radius);margin:12px 0;border:1px solid rgba(198,161,91,.25)}
.svc-desc{color:var(--cream-dim);font-size:14.5px;line-height:1.6;margin:0 0 14px}
.card-price{font-size:15px;font-weight:600;color:var(--gold)}
.pill{font-size:9.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);background:var(--gold);padding:2px 7px;border-radius:20px}

/* loyalty */
.loyalty{padding:16px 18px;border-radius:var(--radius);background:rgba(255,255,255,.038);border:1px solid rgba(198,161,91,.2)}
.loyalty-row{display:flex;justify-content:space-between;align-items:baseline}
.loyalty-label{text-transform:uppercase;letter-spacing:.14em;font-size:11px;color:var(--cream-dim)}
.loyalty-count{font-size:13px;color:var(--cream)}
.track{margin:10px 0 8px;height:8px;border-radius:999px;background:rgba(0,0,0,.3);overflow:hidden}
.fill{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--brass),var(--gold))}
.loyalty-note{margin:0;font-size:12.5px;color:var(--cream-dim)}

/* actions */
.cta{display:inline-block;width:100%;text-align:center;padding:15px 20px;border:none;border-radius:var(--radius);
  background:var(--gold);color:var(--ink);font-size:16px;font-weight:700;cursor:pointer;text-decoration:none;font-family:var(--sans)}
.cta:active{background:var(--brass)}
.cta.auto{width:auto;padding:12px 18px}

/* forms */
.field{display:flex;flex-direction:column;gap:6px;font-size:12.5px;color:var(--cream-dim);text-transform:uppercase;letter-spacing:.1em;margin-bottom:14px}
.input{padding:13px 14px;border-radius:12px;border:1px solid rgba(198,161,91,.35);background:rgba(255,255,255,.05);color:var(--cream);font-size:16px;font-family:var(--sans)}
.err{color:var(--neg);font-size:13.5px;margin:0 0 8px}
.dev-code{color:#FF6B6B;font-size:17px;font-weight:600;margin:0 0 8px;background:rgba(255,107,107,.12);padding:11px 13px;border-radius:8px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.4}

/* booking slots */
.daynav{display:flex;align-items:center;justify-content:space-between;gap:10px}
.day-btn{text-decoration:none;color:var(--gold);font-size:22px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid rgba(198,161,91,.3)}
.day-label{color:var(--cream);font-weight:600;font-size:15px}
.slot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(94px,1fr));gap:10px}
.slot{padding:12px 8px;border-radius:10px;border:1px solid rgba(198,161,91,.35);background:rgba(255,255,255,.05);color:var(--cream);font-weight:600;cursor:pointer;font-family:var(--sans)}
.slot:hover{border-color:var(--gold)}
/* VIP Squad extended-hours slots — always accented gold; locked (non-member) adds a dashed border + lock */
.slot--vip{border-color:var(--gold);background:linear-gradient(180deg,rgba(198,161,91,.20),rgba(198,161,91,.07));color:var(--gold-hi)}
.slot--vip:hover{border-color:var(--gold-hi)}
.slot--locked{border-style:dashed;border-width:1.5px;cursor:pointer;color:var(--gold-hi)}
.slot--locked:hover{border-color:var(--gold-hi);background:rgba(198,161,91,.15)}
.slot-lock{vertical-align:-1px;margin-right:3px;opacity:.9}
.vip-hint{margin:8px 2px 0;font-size:12.5px;line-height:1.45;color:var(--cream-dim)}
.vip-hint b{color:var(--gold-hi)}
.vip-hint .slot-lock{color:var(--gold)}

/* month calendar (book.php) — jump straight to a date; mirrors the admin tap-calendar look */
.bookcal{margin:0 0 14px}
.bookcal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.bookcal-mon{color:var(--cream);font-weight:600;font-size:15px;letter-spacing:.02em}
.bookcal-arw{text-decoration:none;color:var(--gold);font-size:20px;line-height:1;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:9px;border:1px solid rgba(198,161,91,.3)}
.bookcal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.bookcal-dow{text-align:center;font-size:11px;color:var(--cream-dim);padding-bottom:2px}
.bookcal-cell{min-height:40px;display:flex;align-items:center;justify-content:center;border-radius:9px;border:1px solid transparent;font-size:14px;text-decoration:none;background:rgba(255,255,255,.04);color:var(--cream)}
.bookcal-blank{background:transparent;border-color:transparent}
.bookcal-out{color:var(--cream-dim);opacity:.35;background:transparent}
.bookcal-none{color:var(--cream-dim);opacity:.5}
.bookcal-open{color:var(--gold-hi);font-weight:700;border-color:rgba(198,161,91,.4)}
.bookcal-open:hover{border-color:var(--gold)}
.bookcal-vip{color:var(--gold-hi);font-weight:600;border:1px dashed rgba(198,161,91,.75)}
.bookcal-vip:hover{border-color:var(--gold-hi)}
.bookcal-today{border-color:rgba(198,161,91,.6)}
.bookcal-sel{background:var(--gold);color:#14161f;font-weight:700;border-color:var(--gold)}
.bookcal-legend{display:flex;gap:16px;margin:8px 2px 0;font-size:12px;color:var(--cream-dim)}
.bookcal-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:middle}
.bookcal-legend .lg-open{background:var(--gold-hi)}
.bookcal-legend .lg-vip{background:transparent;border:1px dashed var(--gold)}
.bookcal-legend .lg-none{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18)}

/* confirm */
.center{text-align:center}
.alert-banner{background:var(--gold);color:var(--ink);text-align:center;font-weight:700;font-size:13.5px;
  letter-spacing:.02em;line-height:1.35;padding:9px 44px;font-family:var(--sans);position:relative;z-index:20}
/* When the public notice is up, the top-corner chrome (account chip + console menu) drops BELOW the
   banner so it never sits on top of the banner text. --alert-banner-h is measured by a tiny inline
   script (layout.php head); the 40px fallback covers the common one-line notice even with JS off. */
body.has-alert-banner .account-chip,
body.has-alert-banner .cnav-btn{top:calc(12px + var(--alert-banner-h, 40px))}
.brandbar{display:flex;justify-content:center;padding:18px 0 4px}
.brandbar-logo{width:58%;max-width:200px;height:auto;display:block}
.account-chip{position:absolute;top:12px;right:12px;z-index:30;padding:7px 14px;border-radius:999px;
  font-family:var(--sans);font-size:12.5px;font-weight:700;text-decoration:none;
  background:var(--gold);color:var(--ink);box-shadow:0 1px 6px rgba(0,0,0,.35)}
.account-chip:hover{background:var(--gold-hi)}
.account-chip.in{background:transparent;color:var(--cream);border:1px solid rgba(198,161,91,.5);font-weight:600;box-shadow:none}
.confirm-check{width:64px;height:64px;border-radius:50%;background:var(--gold);color:var(--ink);font-size:34px;font-weight:700;display:flex;align-items:center;justify-content:center;margin:10px auto 0}
.panel{padding:6px 16px;border-radius:var(--radius);background:rgba(255,255,255,.04);border:1px solid rgba(198,161,91,.2);text-align:left}
.row{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--hair)}
.row .k{color:var(--cream-dim);font-size:13px}
.row .v{color:var(--cream);font-weight:600;font-size:14px}
.cal-add{margin:6px 0 0}
/* Reusable CTA / highlight card — deep blue block, gold hairline, light text (see feedback_bsb_cta_card_style) */
.cta-card{margin:14px 0 0;padding:14px 16px 16px;border-radius:var(--radius);background:var(--cta-blue);border:1px solid rgba(198,161,91,.35)}
.cta-card .cta-head{margin:0 0 6px;font-family:var(--serif);color:var(--gold-hi);font-size:19px}
.cal-card .cal-label{color:var(--gold-hi)}
.cal-card .cal-btn{background:rgba(255,255,255,.06);border-color:rgba(198,161,91,.45);color:var(--cream)}
.cal-card .cal-btn:hover{border-color:var(--gold)}
.cal-label{display:block;text-transform:uppercase;letter-spacing:.14em;font-size:11px;color:var(--cream-dim);margin-bottom:9px}
.cal-btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.cal-btn{padding:11px 16px;border-radius:10px;border:1px solid rgba(198,161,91,.4);background:rgba(255,255,255,.05);color:var(--cream);text-decoration:none;font-weight:600;font-size:13.5px}
.cal-btn:hover{border-color:var(--gold)}
.housekeeping{text-align:left;color:var(--cream-dim);font-size:13px;line-height:1.55;margin:2px 0;background:rgba(255,255,255,.03);border:1px solid var(--hair);border-radius:10px;padding:12px 14px}
.housekeeping b{color:var(--cream)}

/* add-on upsell (post-booking) */
.upsell{display:flex;flex-direction:column;gap:11px;text-align:left;margin:2px 0}
.upsell .lede{font-size:13px}
.addon-card{width:100%;text-align:left;cursor:pointer;font-family:var(--sans);font-size:inherit}
.addon-add{display:flex;flex-direction:column;align-items:flex-end;gap:5px;white-space:nowrap}
.addon-add .card-price{color:var(--gold)}
.addon-add .plus{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);background:var(--gold);padding:3px 11px;border-radius:20px}
.note-ok{color:var(--gold-hi);font-size:13.5px;margin:0;background:rgba(198,161,91,.12);border:1px solid rgba(198,161,91,.32);border-radius:10px;padding:11px 14px;text-align:left}

/* my-visits dashboard + cancel/reschedule */
.visit .row:first-child .k{color:var(--cream);font-weight:600}
.fee-note{margin:10px 0 0;font-size:13px;line-height:1.5;color:var(--cream-dim)}
.fee-note b{color:var(--cream)}
.fee-note.warn,.fee-note.warn b{color:var(--gold-hi)}
.visit-actions{display:flex;gap:10px;margin-top:12px}
.visit-actions .btn{flex:1}
a.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;text-align:center}
.pill.muted{background:var(--cream-dim);color:var(--ink)}
/* .nudge retired → CTA highlight blocks use .cta-card / .cta-head */
.past{opacity:.82}
.rule{border:none;border-top:1px solid var(--hair);margin:22px 0 4px}
.policy-form .field{margin-bottom:12px}
.svc-cfg{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.svc-cfg-form{display:flex;gap:10px;align-items:flex-end;margin:0;flex-wrap:wrap}
.mini-lbl{display:flex;flex-direction:column;gap:4px;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--cream-dim)}
.mini-lbl .input{width:78px;padding:9px 10px;font-size:14px}
/* Services (Edit Details) — the per-service scheduling cards. The global 78px above truncates the
   longer values/placeholders here ("default (240)", multi-digit prices), so widen only this section
   (higher specificity via [data-tour="perservice"]; padding/font inherited from the rule above). */
[data-tour="perservice"] .mini-lbl .input{width:132px}
/* Catalog description boxes — full-width, multi-line; override the 78px .mini-lbl .input clamp above. */
.mini-lbl textarea.input[name="description"]{width:100%;font-size:15px;resize:vertical}
.a-full{width:100%;margin-top:10px}

/* Cashflow wizard — ONE FIELD PER LINE. Scoped by ID (#cf-inputs/#cf-chairs/#cf-overhead) so the
   shared .svc-cfg-form/.mini-lbl flex layout used on admin/report/work is untouched.
   .cf-lbl is load-bearing: .mini-lbl is itself a flex container, so a bare text node and each <b>
   inside it become SEPARATE flex items. The span keeps the whole label as one item. */
#cf-inputs,#cf-chairs,#cf-overhead,#cf-feeonly{flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:0}
#cf-inputs>.mini-lbl,#cf-overhead>.mini-lbl,#cf-feeonly>.mini-lbl,#cf-chairs .mini-lbl{flex-direction:row;justify-content:space-between;align-items:center;gap:14px;padding:9px 0;border-bottom:1px solid rgba(198,161,91,.12)}
#cf-inputs>.mini-lbl:last-child,#cf-overhead>.mini-lbl:last-child,#cf-feeonly>.mini-lbl:last-child,#cf-chairs .cf-chair:last-child .mini-lbl:last-child{border-bottom:none}
#cf-inputs .cf-lbl,#cf-overhead .cf-lbl,#cf-feeonly .cf-lbl,#cf-chairs .cf-lbl{flex:1 1 auto;min-width:0;line-height:1.35}
#cf-inputs .mini-lbl .input,#cf-overhead .mini-lbl .input,#cf-feeonly .mini-lbl .input,#cf-chairs .mini-lbl .input{flex:0 0 132px;width:132px;text-align:right}
#cf-chairs .cf-chair{display:flex;flex-direction:column;align-items:stretch;gap:0}

/* Field descriptions. .cf-help lives INSIDE .cf-lbl, under the label text — a sibling of the span would
   become a third flex item on the .mini-lbl row and sit beside the input instead of under the words.
   .mini-lbl is UPPERCASE with wide letter-spacing and a tiny font: every one of those has to be undone
   here, or the help line renders as unreadable shouting. It is a sentence, not a label. */
.cf-help{display:block;margin-top:4px;max-width:62ch;font-size:11.5px;line-height:1.45;
         font-weight:400;text-transform:none;letter-spacing:normal;color:var(--cream-dim);opacity:.75}
.cf-help b{color:var(--gold-hi);font-weight:600}
/* The input must not be squeezed by a long sentence: the label column may shrink, the box may not. */
#cf-inputs .mini-lbl .input,#cf-overhead .mini-lbl .input,#cf-feeonly .mini-lbl .input,#cf-chairs .mini-lbl .input{flex-shrink:0}
/* On a phone the row stacks: sentence over box, box full-width, rather than a 132px box crushing the text. */
@media (max-width:560px){
  #cf-inputs>.mini-lbl,#cf-overhead>.mini-lbl,#cf-feeonly>.mini-lbl,#cf-chairs .mini-lbl{flex-direction:column;align-items:stretch;gap:6px}
  #cf-inputs .mini-lbl .input,#cf-overhead .mini-lbl .input,#cf-feeonly .mini-lbl .input,#cf-chairs .mini-lbl .input{flex-basis:auto;width:100%}
}

/* WLED shop-light admin (#sect-wled) — STACK LAYOUT (2026-09-07).
   The shared .svc-cfg-form flex row + the global 78px `.mini-lbl .input` clamp (line ~179) truncate
   every WLED control on phone widths ("192.168.", "1 Idle", "7 Can"). Scope full-width stacked rows to
   #wled-stack ONLY — same containment discipline as #cf-inputs above — so the shared admin/report/work
   layout is untouched. Field names + save_wled handler unchanged; this is layout/readability only. */
#wled-stack{display:flex;flex-direction:column;gap:12px;align-items:stretch}
#wled-stack>.mini-lbl{gap:6px}
#wled-stack .mini-lbl .input{width:100%;font-size:15px}
#wled-stack .wled-lbl{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--cream-dim)}
.wled-events{display:flex;flex-direction:column;gap:10px}
.wled-group-lbl{margin:6px 2px 0;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--cream-dim)}
.wled-evt{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid rgba(198,161,91,.22);border-radius:10px;background:rgba(198,161,91,.04)}
.wled-evt-title{font-size:13px;font-weight:600;letter-spacing:.02em;color:var(--gold-hi)}
.wled-save{margin-top:4px}
.wled-save .btn{width:100%}
/* Desktop: soft 2-up for the event cards above 900px — NEVER 3 skinny columns. Master/IP/mDNS stay
   full-width stacked so the IP + mDNS fields never clip. The group divider spans both columns. */
@media (min-width:900px){
  .wled-events{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
  .wled-group-lbl{grid-column:1 / -1}
}

/* admin */
.admin-card{padding:15px;border-radius:var(--radius);background:rgba(255,255,255,.04);border:1px solid rgba(198,161,91,.2)}
/* ONE shape for every button. .btn-gold / .btn-ghost are COLOUR modifiers only — but they now carry
   the shape too, so a button that forgets the base .btn class still has the right form factor.
   Colour rules come after the shape rule, so `class="btn-gold btn"` still resolves gold. */
.btn,.btn-gold,.btn-ghost{padding:8px 12px;border-radius:8px;border:1px solid rgba(198,161,91,.4);background:rgba(255,255,255,.05);color:var(--cream);font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap;font-family:var(--sans)}
.btn-gold{border:none;background:var(--gold);color:var(--ink);font-weight:700}
.btn-ghost{border:1px solid rgba(255,255,255,.12);background:transparent;color:var(--cream-dim)}
/* Opt-in double-height primary action button — same footprint as schedule.php's In-the-Chair /
   Tap-To-Pay tall buttons (width:100%; min-height:80px). Applied per-button (NOT to the shared
   .btn base) so the deliberately-compact controls (btn-xs chips, cash-tip, font +/- toggles) keep
   their size. Add `btn-tall` to any primary full-width CTA to give it the big tappable footprint. */
.btn-tall{width:100%;min-height:80px;padding:10px 12px;border-radius:10px;font-size:15px;white-space:normal}

/* notifications */
.notifs{display:flex;flex-direction:column;gap:8px;margin:2px 0}
.notif{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.045);border:1px solid var(--hair)}
.notif-pay{background:rgba(198,161,91,.12);border-color:rgba(198,161,91,.4)}
.notif-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.notif-title{font-weight:700;font-size:14px;color:var(--gold-hi);text-decoration:none}
a.notif-title:hover{text-decoration:underline}
.notif-body{font-size:12.5px;color:var(--cream-dim)}
.notif-x{margin:0}
.notif-dismiss{background:none;border:none;color:var(--cream-dim);font-size:20px;line-height:1;cursor:pointer;padding:0 4px}

/* customer-visible note */
.cust-note{margin:10px 0 0;font-size:13px;line-height:1.5;color:var(--cream);background:rgba(198,161,91,.09);border-left:3px solid var(--gold);border-radius:8px;padding:9px 12px}

/* admin rows */
.admin-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.admin-actions{display:flex;flex-direction:column;gap:8px}

/* work mode */
.day-divider{display:flex;align-items:center;gap:12px;margin:22px 0 6px;color:var(--gold);text-transform:uppercase;letter-spacing:.14em;font-size:12px}
.day-divider::before,.day-divider::after{content:"";flex:1;height:1px;background:var(--hair)}
.appt-divider{height:1px;background:var(--hair);opacity:.6;margin:14px 0}
.work-card{padding:14px 16px}
.work-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.work-name{font-family:var(--serif);font-size:18px;color:var(--cream);display:block;margin-bottom:2px}
.work-head .card-meta{display:block}
.work-services{display:flex;flex-direction:column;gap:6px;margin:10px 0 12px}
.work-svc{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;color:var(--cream);border-bottom:1px dashed var(--hair);padding-bottom:6px}
.work-svc:last-child{border-bottom:none;padding-bottom:0}
.pn-form{display:flex;flex-direction:column;gap:8px}
.pn-area,.cn-area{width:100%;resize:vertical;font-family:var(--sans);line-height:1.5}
.work-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:2px}
.cn-dialog{border:1px solid rgba(198,161,91,.4);border-radius:var(--radius);background:var(--pub-green);color:var(--cream);max-width:420px;width:92%;padding:18px}
.cn-dialog::backdrop{background:rgba(4,10,7,.62)}
.cn-title{font-family:var(--serif);color:var(--gold);margin:0 0 6px;font-size:20px}
.cn-form{display:flex;flex-direction:column;gap:10px}
.cn-actions{display:flex;gap:10px;justify-content:flex-end}

/* tab bar */
.tabs{position:fixed;left:0;right:0;bottom:0;max-width:440px;margin:0 auto;display:flex;justify-content:space-around;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(41,55,42,.9);backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);border-top:1px solid var(--hair)}
.tab{flex:1;text-align:center;min-height:44px;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--cream-dim);text-decoration:none}
.tab.on{color:var(--gold);font-weight:600}

/* ── service outage (out of stock / equipment down): the SERVICE is out, the chair is not ── */
.pill-out{background:var(--neg,#c0563f);color:#fff;letter-spacing:.05em;display:inline-block;text-align:center}
.svc-out{border:1px solid var(--neg,#c0563f);background:rgba(192,86,63,.09);border-radius:14px;padding:12px 14px;margin:0 2px 12px}
.svc-out-head{margin:0 0 4px;font-weight:700;color:var(--neg,#c0563f)}
.svc-out-when{margin:0 0 6px;font-size:14px;color:var(--cream)}
.svc-out-note{margin:0;font-size:12.5px;line-height:1.5;color:var(--cream-dim)}
.svc-out-note + .svc-out-note{margin-top:6px}

/* ── Retail ticket + new-customer promo + tipping ─────────────────────────────
   The ticket is the money half of a visit card: retail rung up at the chair, the welcome
   discount, and the ring-up control. Kept visually quieter than the appointment itself —
   it is what the visit COSTS, not what the visit IS. */
.ticket{border-top:1px dashed var(--hair);margin-top:10px;padding-top:10px;display:flex;flex-direction:column;gap:7px}
.ticket-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:var(--cream-dim)}
.ticket-row span{min-width:0}
.ring-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:2px}
.ring-form .input{flex:1 1 160px;min-width:0}
.ring-form .qty{flex:0 0 68px;width:68px}
.btn-xs{padding:4px 9px;font-size:11px}

/* A discount is good news — it reads gold, and the old price is struck, not hidden. */
.promo-row,.promo-row span{color:var(--gold-hi);font-weight:700}
.was{color:var(--cream-dim);opacity:.65;font-weight:400;margin-right:4px}
.promo-banner{margin:10px 0 0;padding:10px 12px;border-radius:10px;font-size:13.5px;line-height:1.5;
  color:var(--gold-hi);background:rgba(198,161,91,.10);border:1px solid rgba(198,161,91,.34)}
.promo-banner b{color:var(--gold-hi)}

/* Scope pickers (which services / products a promo covers) */
.chk{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--cream-dim);padding:5px 2px;cursor:pointer}
.chk input{width:17px;height:17px;accent-color:var(--gold);flex:0 0 auto}
.chk b{color:var(--cream)}
.chk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:0 12px;
  margin:2px 0 10px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.03);border:1px solid var(--hair)}

/* Tip: three taps and a custom box. The chosen one fills gold — it must be obvious what you picked. */
.tip-head{margin:16px 0 8px;font-size:13px;color:var(--cream-dim)}
.tip-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.tip-opt{display:block;position:relative}
.tip-opt input{position:absolute;opacity:0;width:0;height:0}
.tip-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  padding:10px 4px;border-radius:10px;border:1px solid rgba(198,161,91,.34);background:rgba(255,255,255,.04);
  color:var(--cream);cursor:pointer;min-height:56px;text-align:center}
.tip-btn .pct{font-weight:700;font-size:14px;line-height:1}
.tip-btn .amt{font-size:11.5px;color:var(--cream-dim);line-height:1;font-variant-numeric:tabular-nums}
.tip-opt input:checked + .tip-btn{background:var(--gold);border-color:var(--gold);color:var(--ink)}
.tip-opt input:checked + .tip-btn .amt{color:var(--ink);opacity:.75}
.tip-opt input:focus-visible + .tip-btn{outline:2px solid var(--gold);outline-offset:2px}
.tip-custom{display:none;margin-top:8px}
.tip-custom.on{display:block}
.tip-custom .input{width:100%}

/* ── Day-planner customer intelligence ───────────────────────────────────────
   The name IS the readout: visit count, who they are to you, and — by colour — how they tip.
   Colours are set inline from customer_intel() so there is exactly one source of truth. */
.work-name{font-size:16px}
.pill-new2you{background:var(--gold-hi);color:var(--ink)}

/* "Tipped in cash" — a <details>, so it works with JavaScript off. */
.cashtip{margin-top:2px}
.cashtip summary{list-style:none;display:inline-flex;align-items:center;gap:6px}
.cashtip summary::-webkit-details-marker{display:none}
.btn-cash{display:inline-block}
.cashtip[open] summary{opacity:.55}
.cashtip-body{margin-top:10px;padding:12px;border-radius:10px;background:rgba(255,255,255,.03);border:1px solid var(--hair)}
.cashtip-note{margin:0 0 10px;font-size:12.5px;color:var(--cream-dim);line-height:1.5}
.cashtip-chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(84px,1fr));gap:8px;margin-bottom:10px}
.chip{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:9px 4px;
  border-radius:10px;border:1px solid rgba(198,161,91,.34);background:rgba(255,255,255,.04);color:var(--cream);
  cursor:pointer;min-height:52px;width:100%;font-family:var(--sans)}
.chip b{font-size:14px;font-variant-numeric:tabular-nums}
.chip span{font-size:11px;color:var(--cream-dim)}
.chip:hover{border-color:var(--gold);background:rgba(198,161,91,.12)}
.chip-none{border-style:dashed}

/* ── First-login welcome (gender / facial hair) ──────────────────────────────
   Two big taps, nothing else on screen. This is the first thing a new guest ever does in the app. */
.onb{margin-top:22px;padding:20px 18px;border-radius:var(--radius);
  background:rgba(255,255,255,.038);border:1px solid rgba(198,161,91,.2)}
.onb-q{margin:0 0 14px;font-family:var(--serif);font-size:22px;color:var(--gold)}
.onb-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}
.onb-opt{padding:18px 10px;border-radius:12px;border:1px solid rgba(198,161,91,.45);
  background:rgba(198,161,91,.10);color:var(--cream);font-family:var(--sans);font-size:15px;font-weight:700;
  cursor:pointer;min-height:60px;width:100%}
.onb-opt:hover,.onb-opt:focus-visible{background:var(--gold);border-color:var(--gold);color:var(--ink)}
.onb-opt-alt{grid-column:1 / -1;font-weight:600;background:transparent;color:var(--cream-dim);min-height:50px}
.onb-note{margin:14px 0 0;font-size:12.5px;color:var(--cream-dim);line-height:1.5;text-align:center}
.onb-skip{background:none;border:none;color:var(--cream-dim);font-size:12.5px;text-decoration:underline;
  cursor:pointer;font-family:var(--sans);padding:6px}
.onb-skip:hover{color:var(--gold)}

/* "Chosen for you" — a recommendation strip, visibly a cut above the plain menu below it. */
.card-foryou{border-color:rgba(198,161,91,.42);background:rgba(198,161,91,.06)}

/* ══ CONSOLE MENU ═══════════════════════════════════════════════════════════════════════════
   A CSS checkbox, not a script — it opens with JavaScript off. Mirrors the account-chip on the
   opposite corner so the two read as a pair rather than two unrelated floating things. */
.cnav-btn{position:absolute;top:12px;left:12px;z-index:31;display:inline-flex;align-items:center;gap:8px;
  padding:7px 13px;border-radius:999px;background:transparent;border:1px solid rgba(198,161,91,.5);
  color:var(--cream);font-weight:600;font-size:13px;text-decoration:none;cursor:pointer;user-select:none}
.cnav-btn:hover{border-color:var(--gold);color:var(--gold-hi)}
.cnav-bars{display:inline-flex;flex-direction:column;gap:3px}
.cnav-bars i{display:block;width:14px;height:1.6px;background:var(--gold);border-radius:2px}
.cnav-wrap{position:fixed;inset:0;z-index:60;display:none}
.cnav-tog:checked ~ .cnav-wrap{display:block}
.cnav-scrim{position:absolute;inset:0;background:rgba(4,10,7,.62);backdrop-filter:blur(2px);cursor:pointer}
.cnav-sheet{position:absolute;top:0;left:0;bottom:0;width:min(320px,86vw);overflow-y:auto;
  padding:18px 16px 28px;background:var(--pub-green-ink);border-right:1px solid rgba(198,161,91,.28);
  box-shadow:18px 0 44px rgba(0,0,0,.5);display:flex;flex-direction:column;gap:2px}
.cnav-head{margin:0 0 10px;font-family:var(--serif);font-size:17px;color:var(--gold-hi)}
.cnav-x{position:absolute;top:10px;right:12px;font-size:26px;line-height:1;color:var(--cream-dim);cursor:pointer}
.cnav-x:hover{color:var(--gold)}
.cnav-link{display:block;padding:10px 12px;margin-top:6px;border-radius:10px;text-decoration:none;
  border:1px solid rgba(198,161,91,.18);background:rgba(255,255,255,.03)}
.cnav-link:hover{border-color:rgba(198,161,91,.5);background:rgba(198,161,91,.07)}
.cnav-link.on{border-color:var(--gold);background:rgba(198,161,91,.1)}
.cnav-link b{display:block;color:var(--cream);font-size:14px}
.cnav-link span{display:block;color:var(--cream-dim);font-size:11.5px;margin-top:2px}
.cnav-jumps{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.cnav-jump{padding:5px 10px;border-radius:999px;font-size:11.5px;text-decoration:none;color:var(--cream-dim);
  border:1px solid rgba(198,161,91,.2);background:rgba(255,255,255,.03)}
.cnav-jump:hover{color:var(--gold-hi);border-color:rgba(198,161,91,.5)}
.cnav-out{margin-top:auto;padding-top:18px}
.cnav-out .btn{width:100%}

/* ══ COLLAPSIBLE SECTION ════════════════════════════════════════════════════════════════════
   Every one of these loads CLOSED. The summary carries the section's name and what it is for, so
   a shut panel still tells you what is inside it — a collapsed page you cannot navigate is worse
   than a long one. */
.sect{border:1px solid rgba(198,161,91,.2);border-radius:var(--radius);background:rgba(255,255,255,.02);
  margin:10px 0;overflow:hidden}
.sect[open]{border-color:rgba(198,161,91,.42);background:rgba(255,255,255,.035)}
.sect-sum{list-style:none;cursor:pointer;padding:13px 15px;display:flex;flex-direction:column;gap:2px;
  position:relative;padding-right:42px}
.sect-sum::-webkit-details-marker{display:none}
.sect-sum:hover{background:rgba(198,161,91,.06)}
.sect-sum::after{content:"";position:absolute;right:17px;top:50%;width:8px;height:8px;
  border-right:1.6px solid var(--gold);border-bottom:1.6px solid var(--gold);
  transform:translateY(-70%) rotate(45deg);transition:transform .18s ease}
.sect[open] > .sect-sum::after{transform:translateY(-20%) rotate(225deg)}
.sect-t{font-family:var(--serif);font-size:16px;color:var(--gold-hi)}
.sect-s{font-size:11.5px;color:var(--cream-dim)}
.sect-body{padding:2px 14px 16px;border-top:1px solid rgba(198,161,91,.14)}
.sect-body > .cat-label:first-child{margin-top:10px}

/* ── Active-appointment glow ─────────────────────────────────────────────
   Applied (via server-side `live` class + assets/apptglow.js clock ticker)
   to whichever appointment card's time slot currently contains "now". Gold
   brand pulse; falls back to a static ring when reduced motion is set. */
@keyframes bsbApptGlow{
  0%,100%{box-shadow:0 0 0 2px rgba(198,161,91,.55),0 0 12px 2px rgba(198,161,91,.28)}
  50%{box-shadow:0 0 0 2px rgba(217,188,127,.90),0 0 24px 6px rgba(198,161,91,.52)}
}
.appt-live{animation:bsbApptGlow 2.4s ease-in-out infinite;border-radius:var(--radius)}
@media (prefers-reduced-motion:reduce){
  .appt-live{animation:none;box-shadow:0 0 0 2px rgba(217,188,127,.90),0 0 16px 3px rgba(198,161,91,.45)}
}

/* Console no-refresh save toast (see assets/console_save.js). Hidden until .show is added. */
#bsb-toast{
  position:fixed;left:50%;bottom:22px;transform:translate(-50%,14px);
  z-index:9999;pointer-events:none;
  background:var(--pub-green);color:var(--cream);
  border:1px solid var(--gold);border-radius:999px;
  padding:10px 20px;font-size:14px;font-weight:700;font-family:var(--sans);
  letter-spacing:.02em;box-shadow:0 6px 22px rgba(0,0,0,.35);
  opacity:0;transition:opacity .18s ease, transform .18s ease;
}
#bsb-toast::before{content:"\2713\00a0";color:var(--gold-hi)}
#bsb-toast.bad{background:#5A2B2B;border-color:var(--neg)}
#bsb-toast.bad::before{content:"\26A0\00a0";color:var(--neg)}
#bsb-toast.show{opacity:1;transform:translate(-50%,0)}
@media (prefers-reduced-motion:reduce){ #bsb-toast{transition:none} }
