/* Habitation Checks — stepped booking wizard.
   LOCAL PREVIEW ONLY. McLaren-slim layout (tabs, Next/Back, compact cards,
   red/green calendar) in Hab navy and gold. Dark readable text. */
:root{
  --hb-navy:#0A1F3D;
  --hb-ink:#0c1018;
  --hb-ink-soft:#243042;
  --hb-muted:#3d4a5c;
  --hb-gold:#D4AF37;
  --hb-gold-deep:#C9A227;
  --hb-gold-btn:#f0c15a;
  --hb-gold-btn2:#c8a24a;
  --hb-line:#d8dee6;
  --hb-wash:#f3f5f8;
  --hb-card:#fff;
  --hb-free:#1b7a3a;
  --hb-full:#b42318;
  --hb-closed:#8a94a3;
  --hb-radius:14px;
}

/* Preview banner */
.hb-preview-note{
  background:#fff3cd;color:#5c4300;border-bottom:1px solid #f0d58a;
  padding:7px 16px;font-size:.82rem;font-weight:600;text-align:center;line-height:1.35;
}
.hb-preview-note strong{font-weight:800}

/* Slim top bar — Call / Book / Staff */
html body header.hb-slim{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  flex-wrap:nowrap;background:var(--hb-navy)!important;
  background-image:linear-gradient(180deg,rgba(255,255,255,.04) 0%,transparent 48%)!important;
  border-bottom:1px solid rgba(255,255,255,.1)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.22)!important;
  padding:8px 16px;min-height:52px;max-height:72px;
}
html body header.hb-slim h1{margin:0;font-size:1.2rem;font-weight:700;color:#fff!important;letter-spacing:.02em;white-space:nowrap;text-transform:none}
html body .hb-slim-l{display:flex;align-items:center;gap:10px;min-width:0}
html body .hb-slim-l img{height:30px;width:auto}
html body .hb-slim-r{display:flex;align-items:center;gap:8px;flex-shrink:0}
html body .hb-slim-r a,html body .hb-slim-r button{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:36px;padding:6px 12px;border-radius:8px;font-weight:700;font-size:.78rem;
  letter-spacing:.06em;text-transform:uppercase;text-decoration:none;white-space:nowrap;
  border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.08);color:#fff!important;
}
html body .hb-slim-r a:hover{background:rgba(255,255,255,.16);color:#fff!important}
html body .hb-slim-r a.hb-slim-gold{background:linear-gradient(180deg,var(--hb-gold-btn),var(--hb-gold-btn2));border-color:#b8923f;color:var(--hb-navy)!important}
@media (max-width:480px){
  html body header.hb-slim{padding:6px 10px}
  html body .hb-slim-l img{height:24px}
  html body header.hb-slim h1{font-size:1.02rem}
  html body .hb-slim-r{gap:5px}
  html body .hb-slim-r a{min-height:32px;padding:5px 8px;font-size:.68rem;letter-spacing:.04em}
}

/* Page: no empty hero, tight main */
html body.hb-stepped .book-hero-slot,
html body.hb-stepped .book-hero-media,
html body.hb-stepped .book-hero-media__placeholder{display:none!important;height:0!important;margin:0!important;padding:0!important}
html body.hb-stepped .book-first,html body.hb-stepped #book{padding-top:.75rem!important;padding-bottom:1rem!important}
html body.hb-stepped .form-card{background:transparent;border:0;box-shadow:none;padding:0}

/* Wizard shell */
#hb .hb-wiz{display:flex;flex-direction:column;color:var(--hb-ink);font-family:inherit;
  background:var(--hb-wash);border-radius:16px;overflow:hidden;box-shadow:0 8px 28px rgba(11,15,22,.12)}
#hb .hb-top{background:var(--hb-navy);color:#fff;padding:14px 18px 12px}
#hb .hb-toprow{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
html body #hb .hb-h{margin:0;font-size:1.2rem;font-weight:800;color:#fff!important;letter-spacing:.02em}
html body #hb .hb-sub{margin:4px 0 0;color:#f5f7fa!important;font-size:.85rem;font-weight:500}
#hb .hb-prog{display:flex;gap:6px;margin-top:12px;flex-wrap:wrap}
html body #hb .hb-pill{
  flex:1;min-width:84px;padding:8px 10px;border-radius:999px;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);
  color:#f0f3f7!important;font:inherit;font-size:.72rem;font-weight:800;
  letter-spacing:.04em;text-transform:uppercase;text-align:center;cursor:pointer;
  transition:background .15s,border-color .15s,transform .1s;
}
html body #hb .hb-pill.on{background:var(--hb-gold);border-color:var(--hb-gold);color:var(--hb-navy)!important;cursor:default}
html body #hb .hb-pill.done{background:rgba(212,175,55,.28);border-color:rgba(212,175,55,.55);color:#fff!important;text-decoration:underline;text-decoration-color:rgba(212,175,55,.75);text-underline-offset:3px}
html body #hb .hb-pill.done::before{content:'✓ ';color:var(--hb-gold)}
html body #hb .hb-pill.reach{border-style:dashed}
html body #hb .hb-pill.locked{opacity:.55;cursor:not-allowed}
html body #hb .hb-pill:not(.on):not(.locked):hover{background:rgba(212,175,55,.4);border-color:var(--hb-gold);color:#fff!important;transform:translateY(-1px)}
html body #hb .hb-pill:focus-visible{outline:3px solid var(--hb-gold-btn);outline-offset:2px}

#hb .hb-body{display:grid;grid-template-columns:minmax(0,1fr) 292px}
#hb .hb-main{padding:16px 18px 20px;background:var(--hb-wash);min-width:0}
#hb .hb-sum{background:#fff;border-left:1px solid var(--hb-line);padding:16px 14px}
html body #hb .hb-sum h2{margin:0 0 10px;font-size:.98rem;font-weight:800;color:var(--hb-ink)!important}
#hb .hb-sum-card{background:#f5f7fa;border:1px solid var(--hb-line);border-radius:12px;padding:12px;margin-bottom:10px;color:var(--hb-ink);line-height:1.4;font-size:.92rem}
html body #hb .hb-sum-card label{display:block;font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#1a2330!important;margin-bottom:4px}
#hb .hb-money{font-size:1.08rem;font-weight:800;color:var(--hb-ink)}
#hb .hb-money.muted{font-weight:600;color:var(--hb-muted);font-size:.92rem}
html body #hb .hb-title{margin:0 0 12px;font-size:1.22rem;font-weight:800;color:var(--hb-ink)!important;text-transform:none;letter-spacing:0}
html body #hb .hb-lead{margin:0 0 14px;color:var(--hb-ink-soft);font-weight:550;font-size:.95rem;line-height:1.4}
html body #hb .hb-lbl{display:block;font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--hb-muted);margin:0 0 4px}

/* Footer */
#hb .hb-ft{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 18px;background:#fff;border-top:1px solid var(--hb-line);flex-wrap:wrap}
#hb .hb-right{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
html body #hb .hb-ft button,html body #hb .hb-ft a.hb-btn{
  min-height:46px;min-width:120px;padding:10px 18px;border-radius:10px;font-weight:800;font-size:.95rem;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;text-decoration:none;
}
html body #hb .hb-back{background:#fff!important;border:2px solid var(--hb-navy)!important;color:var(--hb-navy)!important}
html body #hb .hb-next,html body #hb .hb-btn-gold{
  background:linear-gradient(180deg,var(--hb-gold-btn),var(--hb-gold-btn2))!important;
  border:1px solid #b8923f!important;color:var(--hb-navy)!important;
}
html body #hb .hb-ghost{background:#fff!important;border:2px solid var(--hb-ink)!important;color:var(--hb-ink)!important}
html body #hb .hb-ft button:disabled{opacity:.45;cursor:not-allowed}
html body #hb .hb-linkish{background:none;border:0;padding:0;color:#0a4d8c;font-weight:800;text-decoration:underline;cursor:pointer;font-size:.92rem}

/* Choice cards (depot / mobile, vehicle type) */
#hb .hb-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#hb .hb-choice.three{grid-template-columns:repeat(3,minmax(0,1fr))}
#hb .hb-choice label{
  display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:2px solid #c5ced8;
  border-radius:14px;cursor:pointer;background:#fff;min-height:84px;color:var(--hb-ink);position:relative;
}
#hb .hb-choice label:hover{border-color:var(--hb-navy)}
#hb .hb-choice label.on{border-color:var(--hb-navy);border-width:3px;box-shadow:0 0 0 2px var(--hb-gold-btn2);background:#fbf7ec}
#hb .hb-choice label.on::after{
  content:'✓';position:absolute;top:10px;right:12px;width:22px;height:22px;border-radius:50%;
  background:var(--hb-navy);color:#fff;font-size:.75rem;font-weight:800;display:flex;align-items:center;justify-content:center;
}
#hb .hb-choice input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
#hb .hb-choice b{display:block;font-size:1.06rem;font-weight:800;color:var(--hb-ink);letter-spacing:.01em}
#hb .hb-choice small{display:block;color:var(--hb-ink-soft);font-weight:550;line-height:1.35}

/* Forms */
#hb .hb-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#hb .hb-grid .full{grid-column:1/-1}
#hb .hb-f input,#hb .hb-f select,#hb .hb-f textarea{
  width:100%;min-height:44px;padding:10px 12px;border:1px solid #c5ced8;border-radius:10px;
  font-size:1rem;background:#fff;color:var(--hb-ink)!important;font-weight:600;caret-color:var(--hb-ink);
}
#hb .hb-f textarea{min-height:88px;resize:vertical}
#hb .hb-f input:focus,#hb .hb-f select:focus,#hb .hb-f textarea:focus{outline:3px solid var(--hb-gold);outline-offset:1px;border-color:var(--hb-navy)}
#hb .hb-pc{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap}
#hb .hb-pc input{flex:1 1 160px;text-transform:uppercase;letter-spacing:.06em;font-weight:800}
#hb .hb-pc button{flex:0 0 auto}

/* Engineer cards */
#hb .hb-eng{display:flex;flex-direction:column;gap:10px}
#hb .hb-eng-card{
  background:#fff;border:2px solid #c5ced8;border-radius:14px;overflow:hidden;color:var(--hb-ink);
}
#hb .hb-eng-card.is-open{border-color:var(--hb-navy);box-shadow:0 0 0 2px var(--hb-gold-btn2)}
#hb .hb-eng-head{
  display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;
  padding:12px 14px;width:100%;background:#fff;border:0;text-align:left;cursor:pointer;color:var(--hb-ink);
}
#hb .hb-avatar{
  width:48px;height:48px;border-radius:50%;background:var(--hb-navy);color:var(--hb-gold);
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1rem;letter-spacing:.04em;
}
#hb .hb-eng-name{margin:0;font-size:1.08rem;font-weight:800;color:var(--hb-ink)}
#hb .hb-eng-meta{margin:2px 0 0;font-size:.86rem;font-weight:550;color:var(--hb-ink-soft)}
#hb .hb-chev{font-size:1.1rem;color:var(--hb-muted);transition:transform .15s}
#hb .hb-eng-card.is-open .hb-chev{transform:rotate(180deg)}
#hb .hb-eng-body{display:none;padding:0 14px 14px 14px;border-top:1px solid var(--hb-line)}
#hb .hb-eng-card.is-open .hb-eng-body{display:block}
#hb .hb-eng-body dl{display:grid;grid-template-columns:110px 1fr;gap:6px 10px;margin:12px 0;font-size:.92rem}
#hb .hb-eng-body dt{font-weight:800;color:var(--hb-muted);font-size:.72rem;letter-spacing:.05em;text-transform:uppercase;padding-top:2px}
#hb .hb-eng-body dd{margin:0;color:var(--hb-ink);font-weight:550;line-height:1.4}
#hb .hb-areas{display:flex;flex-wrap:wrap;gap:4px}
#hb .hb-tag{display:inline-block;padding:2px 8px;border-radius:999px;background:#f5f7fa;border:1px solid var(--hb-line);font-size:.75rem;font-weight:700;color:var(--hb-ink)}
#hb .hb-eng-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}

/* No coverage */
#hb .hb-none{
  background:#fff;border:2px solid #c5ced8;border-left:5px solid var(--hb-navy);
  border-radius:14px;padding:16px 18px;color:var(--hb-ink);
}
#hb .hb-none h3{margin:0 0 8px;font-weight:800;font-size:1.1rem}
#hb .hb-none p{margin:0 0 10px;line-height:1.45;font-weight:550}
#hb .hb-none a.tel{font-weight:800;color:var(--hb-navy);text-decoration:underline}
#hb .hb-none-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}

/* Note / quote */
#hb .hb-note{background:#fff;border:1px solid var(--hb-line);border-left:4px solid var(--hb-gold-deep);border-radius:12px;padding:12px 14px;margin:0 0 14px;color:var(--hb-ink)}
#hb .hb-note.warn{border-left-color:var(--hb-full)}
#hb .hb-note b{display:block;font-weight:800;margin-bottom:2px}
#hb .hb-note p{margin:0;font-weight:550;line-height:1.4}

/* Calendar */
#hb .hb-cal{width:100%;box-sizing:border-box;border:1px solid #c5ced8;border-radius:12px;background:#fff;padding:10px 12px 8px;margin:4px 0 0}
html body #hb .hb-cal-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 6px}
html body #hb .hb-cal-m{font-size:1.15rem;font-weight:800;color:var(--hb-ink)}
html body #hb .hb-cal-nav,html body #hb .hb-cal-today{
  min-height:40px;padding:6px 14px;border-radius:8px;border:2px solid var(--hb-navy);
  background:#fff;color:var(--hb-navy);font-weight:800;cursor:pointer;
}
html body #hb .hb-cal-nav:hover:not(:disabled),html body #hb .hb-cal-today:hover{background:var(--hb-navy);color:#fff}
html body #hb .hb-cal-nav:disabled{opacity:.35;cursor:not-allowed}
html body #hb .hb-cal-g{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
html body #hb .hb-cal-w{text-align:center;font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#3a4656;padding:0 0 2px}
html body #hb .hb-cal-d,html body #hb .hb-cal-pad{min-height:56px}
html body #hb .hb-cal-d{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  border-radius:8px;border:1px solid #c5ced8;background:#fff;color:var(--hb-ink);cursor:pointer;padding:6px 2px;
}
html body #hb .hb-cal-d .n{font-size:1.15rem;font-weight:800;line-height:1}
html body #hb .hb-cal-d small{font-size:.68rem;font-weight:800;letter-spacing:.02em;line-height:1;color:#3a4656}
html body #hb .hb-cal-d.free{border:2px solid var(--hb-free);background:#fff}
html body #hb .hb-cal-d.free:not(.on):hover{border-color:#0f5a28;box-shadow:0 0 0 2px rgba(27,122,58,.25)}
html body #hb .hb-cal-d.full:disabled{background:#fdeceb;border:2px solid var(--hb-full);color:#7a1610;cursor:not-allowed;opacity:1}
html body #hb .hb-cal-d.full:disabled small{color:#fff;background:var(--hb-full);border-radius:999px;padding:2px 7px}
html body #hb .hb-cal-d.closed:disabled,html body #hb .hb-cal-d.unavailable:disabled,html body #hb .hb-cal-d.past:disabled{background:#eef1f4;color:var(--hb-closed);cursor:not-allowed;border-style:dashed;opacity:1}
html body #hb .hb-cal-d.unavailable:disabled small{color:#3a4656;font-size:.58rem;letter-spacing:0}
html body #hb .hb-cal-d.past:disabled .n{text-decoration:line-through}
html body #hb .hb-cal-d.on,html body #hb .hb-cal-d.on.free{background:var(--hb-navy);color:#fff;border:2px solid var(--hb-navy);box-shadow:0 0 0 3px var(--hb-free)}
html body #hb .hb-cal-d.on .n,html body #hb .hb-cal-d.on small{color:#fff;background:transparent}
html body #hb .hb-cal-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:8px 0 0}
html body #hb .hb-cal-key{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:.78rem;font-weight:700;color:#243042}
html body #hb .hb-cal-key i{display:inline-block;width:14px;height:14px;border-radius:4px;vertical-align:-2px;margin-left:6px}
html body #hb .hb-cal-key i:first-child{margin-left:0}
html body #hb .hb-cal-key .k-free{border:2px solid var(--hb-free);background:#fff}
html body #hb .hb-cal-key .k-full{border:2px solid var(--hb-full);background:#fdeceb}
html body #hb .hb-cal-key .k-closed{border:1px dashed #c5ced8;background:#eef1f4}
html body #hb .hb-cal-hint{margin:0;font-size:.9rem;font-weight:800;color:var(--hb-ink)}

/* Calendar popup overlay */
#hb .hb-pop-back{position:fixed;inset:0;background:rgba(6,16,32,.88);z-index:5000;display:flex;align-items:center;justify-content:center;padding:16px;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
#hb .hb-pop{
  background:var(--hb-wash);border-radius:16px;max-width:640px;width:100%;max-height:calc(100vh - 32px);
  overflow:auto;box-shadow:0 16px 48px rgba(10,31,61,.35);color:var(--hb-ink);
}
#hb .hb-pop-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;background:var(--hb-navy);color:#fff}
#hb .hb-pop-h h2{margin:0;font-size:1.08rem;font-weight:800;color:#fff}
#hb .hb-pop-h button{min-height:40px;padding:6px 12px;border-radius:8px;border:2px solid #fff;background:transparent;color:#fff;font-weight:800;cursor:pointer}
#hb .hb-pop-h button:hover{background:#fff;color:var(--hb-navy)}
#hb .hb-pop-b{padding:14px 16px 18px}

/* Slots */
#hb .hb-slots{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
#hb .hb-slots button{
  min-height:44px;min-width:92px;padding:10px 14px;border-radius:10px;border:1px solid #c5ced8;
  background:#fff;font-weight:800;cursor:pointer;color:var(--hb-ink);
}
#hb .hb-slots button.on{background:var(--hb-navy);color:#fff;border-color:var(--hb-navy);box-shadow:0 0 0 2px var(--hb-gold-btn2)}
#hb .hb-slots button:disabled{opacity:.4;cursor:not-allowed;text-decoration:line-through}
#hb .hb-slots button:disabled.taken{opacity:1;background:#fdeceb;border-color:#f0b0ac;color:#7a1610;text-decoration:none}

/* Service cards */
#hb .hb-svc-g{margin:0 0 14px}
#hb .hb-svc-gt{margin:0 0 8px;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--hb-muted)}
#hb .hb-svcs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#hb .hb-svc{
  background:#fff;border:2px solid #c5ced8;border-radius:12px;padding:0;color:var(--hb-ink);overflow:hidden;
}
#hb .hb-svc.is-sel{border-color:var(--hb-navy);border-width:3px;box-shadow:0 0 0 2px var(--hb-gold-btn2);background:#fbf7ec}
#hb .hb-svc-main{display:grid;grid-template-columns:22px 1fr auto;gap:10px;align-items:start;padding:12px 14px;cursor:pointer}
#hb .hb-svc-tick{width:22px;height:22px;border-radius:50%;border:2px solid #c5ced8;display:flex;align-items:center;justify-content:center;margin-top:2px;background:#fff;font-size:.7rem;font-weight:800;color:transparent}
#hb .hb-svc.is-sel .hb-svc-tick{background:var(--hb-navy);border-color:var(--hb-navy);color:#fff}
#hb .hb-svc-name{display:block;font-weight:800;font-size:.98rem;color:var(--hb-ink);line-height:1.25}
#hb .hb-svc-line{display:block;font-size:.82rem;font-weight:550;color:var(--hb-ink-soft);margin-top:3px;line-height:1.35}
#hb .hb-svc-amt{font-weight:800;font-size:1.05rem;color:var(--hb-ink);white-space:nowrap}
#hb .hb-svc-was{display:block;font-size:.75rem;font-weight:600;color:var(--hb-muted);text-decoration:line-through}
#hb .hb-svc-tag{display:block;font-size:.68rem;font-weight:700;color:#0f5a28}
#hb .hb-svc-more{
  display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0 12px 10px auto;
  border-radius:50%;border:2px solid var(--hb-navy);background:#fff;color:var(--hb-navy);font-family:Georgia,serif;
  font-style:italic;font-weight:800;font-size:15px;cursor:pointer;float:right;
}
#hb .hb-svc-more[aria-expanded="true"],#hb .hb-svc-more:hover{background:var(--hb-navy);color:#fff}
#hb .hb-svc-details{display:none;padding:0 14px 12px 46px;clear:both}
#hb .hb-svc.is-open .hb-svc-details{display:block}
#hb .hb-svc-details .h{font-weight:800;font-size:.78rem;margin:8px 0 4px;color:var(--hb-ink)}
#hb .hb-svc-details ul{margin:0 0 6px;padding-left:18px}
#hb .hb-svc-details li,#hb .hb-svc-details p{font-size:.86rem;font-weight:550;color:var(--hb-ink);line-height:1.4;margin:2px 0}

/* Summary / confirm */
#hb .hb-confirm{background:#fff;border:1px solid var(--hb-line);border-radius:14px;padding:16px;line-height:1.5;color:var(--hb-ink)}
#hb .hb-dl{display:grid;grid-template-columns:140px 1fr;gap:6px 12px;margin:0 0 12px}
#hb .hb-dl dt{font-weight:800;font-size:.72rem;letter-spacing:.05em;text-transform:uppercase;color:var(--hb-muted)}
#hb .hb-dl dd{margin:0;font-weight:650;color:var(--hb-ink)}
#hb .hb-money-tbl{width:100%;border-collapse:collapse;margin:10px 0;background:#fff;border:1px solid var(--hb-line);border-radius:10px;overflow:hidden;font-size:.92rem}
#hb .hb-money-tbl th,#hb .hb-money-tbl td{padding:8px 12px;text-align:left;border-bottom:1px solid #e8ecf1;color:var(--hb-ink)}
#hb .hb-money-tbl th{font-weight:600;color:#3d4b5a;background:#f5f7fa;width:60%}
#hb .hb-money-tbl td{font-weight:700;text-align:right;background:#fff}
#hb .hb-money-tbl tr.due th,#hb .hb-money-tbl tr.due td{border-bottom:0;background:#eef3f8;font-weight:800;font-size:1rem;color:var(--hb-ink)}
#hb .hb-err{color:#b42318;font-weight:700;margin:8px 0 0;min-height:0}
#hb .hb-ok{color:#0f5a28;font-weight:700}

/* Staff schedule */
#hb .hb-sched-list{display:flex;flex-direction:column;gap:8px;margin-top:10px}
#hb .hb-job{
  background:#fff;border:1px solid var(--hb-line);border-radius:10px;padding:10px 12px;
  display:grid;grid-template-columns:88px 1fr auto;gap:10px;align-items:center;color:var(--hb-ink);
}
#hb .hb-job b{font-weight:800}
#hb .hb-job .st{font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:3px 8px;border-radius:999px;background:#eef3f8}
#hb .hb-job .st.held{background:#fff3cd;color:#5c4300}
#hb .hb-job .st.confirmed{background:#e6f6ec;color:#0f5a28}
#hb .hb-job .st.preview{background:#eef3f8;color:var(--hb-muted)}
#hb .hb-free-slot{border-style:dashed;cursor:pointer}
#hb .hb-free-slot:hover{border-color:var(--hb-free);background:#f3fbf6}

/* Staff auth */
.hb-auth{max-width:520px;margin:24px auto;background:#fff;border-radius:16px;box-shadow:0 8px 28px rgba(11,15,22,.12);overflow:hidden;color:var(--hb-ink)}
.hb-auth-h{background:var(--hb-navy);color:#fff;padding:16px 18px}
.hb-auth-h h1{margin:0;font-size:1.2rem;font-weight:800;color:#fff}
.hb-auth-h p{margin:4px 0 0;font-size:.88rem;color:#f5f7fa}
.hb-auth-b{padding:18px}
.hb-auth .hb-choice{margin:0 0 14px}
.hb-auth .warn{background:#fff3cd;border-radius:10px;padding:10px 12px;font-weight:600;color:#5c4300;font-size:.88rem;margin-bottom:12px}
.hb-staff-nav{display:flex;gap:8px;flex-wrap:wrap;padding:0 0 12px}
.hb-staff-nav a,.hb-staff-nav button{
  min-height:40px;padding:8px 14px;border-radius:10px;border:2px solid var(--hb-navy);
  background:#fff;color:var(--hb-navy);font-weight:800;text-decoration:none;cursor:pointer;
  display:inline-flex;align-items:center;
}
.hb-staff-nav a.on,.hb-staff-nav button.on{background:var(--hb-navy);color:#fff}

/* Hide prices for mechanic */
#hb .hb-hidden-price{font-weight:650;color:var(--hb-muted);font-style:italic}

/* Done */
#hb .hb-done{text-align:center;padding:18px 10px}
#hb .hb-done h2{font-weight:800;color:#0f5a28;margin:0 0 8px}
#hb .hb-done p{font-weight:550;color:var(--hb-ink)}

/* Mobile 390 */
@media (max-width:900px){
  #hb .hb-body{grid-template-columns:1fr}
  #hb .hb-sum{border-left:0;border-top:1px solid var(--hb-line);order:2}
  #hb .hb-choice,#hb .hb-grid,#hb .hb-svcs{grid-template-columns:1fr}
  #hb .hb-choice.three{grid-template-columns:1fr}
  html body #hb .hb-pill{min-width:64px;font-size:.62rem;padding:6px 8px}
  html body #hb .hb-cal-d,html body #hb .hb-cal-pad{min-height:48px}
  html body #hb .hb-cal-d .n{font-size:1.02rem}
  #hb .hb-eng-body dl,#hb .hb-dl{grid-template-columns:1fr}
  #hb .hb-job{grid-template-columns:1fr;gap:4px}
  #hb .hb-ft{flex-direction:column;align-items:stretch}
  html body #hb .hb-ft button,html body #hb .hb-ft a.hb-btn{width:100%}
  #hb .hb-right{width:100%;flex-direction:column}
}
@media (max-width:420px){
  #hb .hb-main{padding:12px 12px 16px}
  #hb .hb-top{padding:12px 12px 10px}
  html body #hb .hb-cal-g{gap:4px}
  html body #hb .hb-cal-d,html body #hb .hb-cal-pad{min-height:44px}
}



/* Slim top bar already has Call, Book and Staff login — hide the duplicate sticky bar */
html body.hb-stepped .sticky-book-bar{display:none!important}
html body.hb-pop-open{overflow:hidden}
html body.hb-pop-open .navbar,
html body.hb-pop-open .navbar-toggler,
html body.hb-pop-open .navbar-brand,
html body.hb-pop-open .navbar-collapse{
  visibility:hidden!important;
  pointer-events:none!important;
}
html body.hb-pop-open #hb .hb-pop-back{z-index:5000!important}
html body.hb-pop-open .sidebar-footer,
html body.hb-pop-open .sidebar-dual-book,
html body.hb-pop-open .btn-sidebar-phone,
html body.hb-pop-open .footer-cta,
html body.hb-pop-open .site-footer{visibility:hidden!important;pointer-events:none!important}

/* Tighter mobile visit step so Find engineers sits above the fold at 390px */
@media (max-width: 480px){
  html body.hb-stepped .book-first,html body.hb-stepped #book{padding-top:.4rem!important;padding-bottom:.4rem!important}
  #hb .hb-top{padding:10px 12px 8px}
  html body #hb .hb-h{font-size:1.05rem}
  html body #hb .hb-sub{font-size:.78rem;margin:2px 0 0}
  #hb .hb-prog{margin-top:8px;gap:5px}
  html body #hb .hb-pill{min-width:64px;padding:6px 7px;font-size:.64rem}
  #hb .hb-main{padding:10px 12px 12px}
  html body #hb .hb-title{font-size:1.08rem;margin-bottom:6px}
  html body #hb .hb-lead{font-size:.86rem;margin-bottom:8px}
  #hb .hb-choice{gap:8px}
  #hb .hb-choice label{padding:10px 12px;min-height:0;border-radius:12px}
  #hb .hb-choice label b{font-size:.92rem}
  #hb .hb-choice label small{font-size:.78rem}
  #hb .hb-pc{flex-wrap:nowrap;gap:8px}
  #hb .hb-pc input{min-height:44px;min-width:0;flex:1}
  html body #hb #hbFindEng{flex:0 0 auto;width:auto;padding:10px 12px;font-size:.88rem}
  html body #hb .hb-pc-hint{display:none}
  #hb .hb-ft{padding:10px 12px}
}

/* Mobile calendar popup: fill the viewport, no peek of the page behind */
@media (max-width: 420px){
  #hb .hb-pop-back{padding:0;align-items:stretch;justify-content:stretch;background:rgba(6,16,32,.94)}
  #hb .hb-pop{max-height:100vh;height:100%;max-width:none;border-radius:0;display:flex;flex-direction:column}
  #hb .hb-pop-h{padding:10px 10px;gap:8px;flex-shrink:0}
  #hb .hb-pop-h h2{font-size:.95rem}
  #hb .hb-pop-h button{min-height:36px;padding:5px 8px;font-size:.78rem}
  #hb .hb-pop-b{padding:8px 10px 16px;overflow:auto;-webkit-overflow-scrolling:touch}
  #hb .hb-cal{padding:8px 6px 6px}
  html body #hb .hb-cal-g{gap:3px}
  html body #hb .hb-cal-d,html body #hb .hb-cal-pad{min-height:40px}
  html body #hb .hb-cal-d{padding:3px 0}
  html body #hb .hb-cal-d .n{font-size:.92rem}
  html body #hb .hb-cal-d small{font-size:.58rem;padding:1px 4px}
  html body #hb .hb-cal-w{font-size:.62rem;letter-spacing:.02em}
  html body #hb .hb-cal-m{font-size:1rem}
  html body #hb .hb-cal-nav{min-height:34px;padding:4px 10px}
  html body #hb .hb-cal-foot{gap:6px}
  html body #hb .hb-slots button{min-width:72px;padding:8px 10px}
}


/* Albyn MOT pointer — wording matches the live book page */
#hb .hb-albyn{margin:16px 0 4px;padding:14px 16px;background:#fff;border:2px solid var(--hb-line);border-radius:14px;display:flex;flex-wrap:wrap;align-items:center;gap:12px}
#hb .hb-albyn-text{margin:0;font-weight:650;color:var(--hb-ink);flex:1;min-width:200px}
#hb .hb-albyn-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border-radius:10px;font-weight:800;text-decoration:none;background:var(--hb-navy);color:#fff!important;border:1px solid var(--hb-navy)}
#hb .hb-albyn-btn:hover{background:#132a52;color:#fff!important}

/* Habitation check repairs disclaimer — same behaviour as the live #habCheckModal:
   shown every time Hab is ticked; closes only with the X (no backdrop / Esc dismiss). */
.hb-hab-modal-back{
  position:fixed;inset:0;z-index:6000;background:rgba(6,16,32,.55);
  display:flex;align-items:center;justify-content:center;padding:20px;
}
.hb-hab-modal-back[hidden]{display:none!important}
.hb-hab-modal{
  background:#fff;border-radius:14px;max-width:520px;width:100%;
  box-shadow:0 16px 48px rgba(10,31,61,.35);overflow:hidden;color:#0c1018;
}
.hb-hab-modal-h,.hab-modal .hb-hab-modal-h{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:14px 16px;background:#0A1F3D;color:#fff;
}
.hb-hab-modal-h h2{margin:0;font-size:1.08rem;font-weight:800;color:#fff}
.hb-hab-modal-x{
  width:36px;height:36px;border:0;background:transparent;cursor:pointer;position:relative;flex-shrink:0;
  filter:invert(1) grayscale(1) brightness(2);opacity:.9;
}
.hb-hab-modal-x::before,.hb-hab-modal-x::after{
  content:'';position:absolute;top:50%;left:50%;width:16px;height:2px;background:#000;
}
.hb-hab-modal-x::before{transform:translate(-50%,-50%) rotate(45deg)}
.hb-hab-modal-x::after{transform:translate(-50%,-50%) rotate(-45deg)}
.hb-hab-modal-b{padding:18px 18px 20px}
.hb-hab-modal-b p{margin:0;font-size:1rem;line-height:1.5;color:#0c1018;font-weight:500}
html body.hb-hab-modal-open{overflow:hidden}

/* Exact live book.html styles for #habCheckModal (repairs disclaimer) */
.hab-modal .modal-header { background: var(--hc-navy, #0A1F3D); color: #fff; }
.hab-modal .modal-header .bi { color: var(--hc-gold-bright, #D4AF37); }
.hab-modal .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .9; }
.hab-modal .modal-title { color: #fff; }
.hab-modal .modal-body p { color: #0c1018; font-weight: 500; line-height: 1.5; }

/* Keep all 7 weekdays on a 390px calendar; "Unavailable" is a long word */
html body #hb .hb-cal-g{grid-template-columns:repeat(7,minmax(0,1fr));width:100%}
html body #hb .hb-cal-d,html body #hb .hb-cal-pad,html body #hb .hb-cal-w{min-width:0;max-width:100%}
@media (max-width:420px){
  html body #hb .hb-cal-d.unavailable small{
    font-size:.45rem;letter-spacing:0;padding:0;display:block;line-height:1.05;
    /* abbreviate visually: the first 4 glyphs fit; aria-label still says Unavailable */
    max-width:100%;overflow:hidden;text-overflow:clip;
  }
}

/* Bootstrap repairs modal must sit above the site navbar / preview banner (those are z-index 2000+) */
html body.hb-stepped .modal-backdrop{z-index:5900!important}
html body.hb-stepped .modal{z-index:6000!important}
html body.modal-open .navbar,
html body.modal-open .navbar-toggler,
html body.modal-open .navbar-brand,
html body.modal-open header.hb-slim,
html body.modal-open .hb-preview-note,
html body.modal-open .sidebar-footer,
html body.modal-open .sidebar-dual-book,
html body.modal-open .sticky-book-bar{
  visibility:hidden!important;
  pointer-events:none!important;
}


/* 16 Nov 2026: offers without an approved bookable price stay visible but not clickable */
.hb-svc.is-disabled {
  opacity: 0.55;
  filter: grayscale(0.15);
}
.hb-svc.is-disabled .hb-svc-main {
  cursor: not-allowed;
  pointer-events: none;
}

/* 17 Nov 2026: confirm-step terms tick (Hab colours). */
#hb .hb-agree {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  min-height: 48px;
  margin: 14px 0 0;
  padding: 0.7rem 0.85rem;
  border: 2px solid #c5ced8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--hb-ink, #0A1F3D);
  box-sizing: border-box;
}
#hb .hb-agree.on {
  border-color: #1b7a3a;
  background: #f3faf5;
}
#hb .hb-agree input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 2px;
  accent-color: #1b7a3a;
}
#hb .hb-agree span { min-width: 0; overflow-wrap: anywhere; }
#hb .hb-agree a { font-weight: 800; color: var(--hb-navy, #0A1F3D); text-decoration: underline; }
#hb .hb-next[disabled],
#hb .hb-next[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 17 Nov 2026: Vehicle step — plate first, then details with MOT tick alongside. Desktop only here. */
#hb .hb-veh-plate { margin-top: 14px; max-width: 28rem; }
#hb .hb-veh-details {
  display: grid;
  grid-template-columns: 1fr minmax(16rem, 0.9fr);
  gap: 16px 20px;
  align-items: end;
  margin-top: 14px;
}
#hb .hb-mot-ask {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  min-height: 48px;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 2px solid #c5ced8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--hb-ink, #0A1F3D);
  box-sizing: border-box;
}
#hb .hb-mot-ask.on {
  border-color: #1b7a3a;
  background: #f3faf5;
}
#hb .hb-mot-ask input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 2px;
  accent-color: #1b7a3a;
}
#hb .hb-mot-ask span { min-width: 0; overflow-wrap: anywhere; }
#hb .hb-f input[type="date"] { min-height: 44px; }
