/* Shared public header / menu / account area / footer rendered by public_shell.py on "/" and
   "/booking" (one markup, one stylesheet). Colours follow the page (currentColor). */
.site-header{box-sizing:border-box;position:relative;z-index:20;display:flex;align-items:center;gap:18px;height:var(--site-header,72px);min-height:0;margin:0;padding:0 4vw;border-bottom:1px solid #ffffff2e;font-family:var(--font-sans,Arial,sans-serif);font-size:13px;line-height:1.2}
.site-header .brand{display:flex;flex-direction:column;justify-content:center;flex:none;color:inherit;text-decoration:none;font-size:inherit;letter-spacing:0}
.site-header .brand small{display:block;font-size:7px;letter-spacing:2px;margin-top:5px;white-space:nowrap}
.site-header .brand-mark{display:block;height:21px;width:auto}
.site-menu{display:flex;align-items:center;justify-content:center;gap:clamp(10px,1.5vw,24px);flex:1;min-width:0;margin:0;font-size:13px}
.site-menu a{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 2px;border:0;border-bottom:2px solid transparent;border-radius:0;color:inherit;text-decoration:none;white-space:nowrap;font-weight:400}
.site-menu a:hover{border-bottom-color:currentColor}
.site-menu a[aria-current=page]{border-bottom-color:currentColor;font-weight:700}
.site-menu .nav-booking{padding:0 14px;min-height:38px;border:1px solid currentColor;border-radius:999px;font-weight:700}
.site-menu .nav-booking[aria-current=page]{background:#ffffff24}
.site-menu .nav-booking.is-locked{border-style:dashed;opacity:.8}
.site-menu a[data-dealer-only]{gap:4px;opacity:.82}
.site-menu a[data-dealer-only] .nav-lock{width:9px;transform:scale(.8)}
.nav-lock{display:inline-flex;flex-direction:column;align-items:center;width:12px}
.nav-lock:before{content:"";width:6px;height:5px;border:2px solid currentColor;border-bottom:0;border-radius:5px 5px 0 0}
.nav-lock:after{content:"";width:12px;height:8px;border-radius:2px;background:currentColor}
.site-account{display:flex;align-items:center;gap:8px;flex:none;min-width:0;font-size:12px}
.site-account a,.site-account button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border:1px solid currentColor;border-radius:999px;background:transparent;color:inherit;font:inherit;font-weight:700;white-space:nowrap;cursor:pointer;text-decoration:none}
.site-account a:hover,.site-account button:hover{background:#ffffff1f}
.account-name{max-width:14ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;padding-top:.3em;margin-top:-.3em}
.account-state{padding:4px 9px;border-radius:999px;border:1px solid currentColor;font-size:11px;white-space:nowrap;opacity:.9}
.site-menu-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;flex:none;padding:0;border:1px solid currentColor;border-radius:12px;background:transparent;color:inherit;cursor:pointer}
.toggle-bars,.toggle-bars:before,.toggle-bars:after{display:block;width:18px;height:2px;background:currentColor;border-radius:2px}
.toggle-bars{position:relative}.toggle-bars:before,.toggle-bars:after{content:"";position:absolute;left:0}
.toggle-bars:before{top:-6px}.toggle-bars:after{top:6px}
.site-header a:focus-visible,.site-header button:focus-visible{outline:3px solid #e7a333;outline-offset:3px}
.site-footer{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:4px 18px;min-height:30px;padding:6px 4vw;font-size:10px;letter-spacing:.5px;opacity:.75}
.site-footer>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-top:.3em;margin-top:-.3em}
@media(max-width:1180px){
 .site-header{--site-header:64px;gap:10px;padding:0 16px}
 .site-menu-toggle{display:inline-flex;order:3}
 .site-account{margin-left:auto;order:2}
 .site-account .account-name,.site-account .account-state{display:none}
 .site-account a,.site-account button{min-height:40px;padding:0 12px}
 .site-menu{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;padding:8px 16px 14px;background:#fff8ee;color:#49372e;border-bottom:1px solid #e3cdb8;box-shadow:0 18px 30px #3b1d1233;text-shadow:none}
 .site-header.menu-open .site-menu{display:flex}
 .site-menu a{min-height:44px;border-bottom:1px solid #ecdccb;font-size:15px}
 .site-menu .nav-booking{margin-top:10px;justify-content:center;border:1px solid #b76b4d;border-radius:12px}
}
@media(max-width:420px){.site-header .brand small{display:none}.site-header .brand-mark{height:18px}.site-account a,.site-account button{padding:0 10px;font-size:12px}}
@media(forced-colors:active){.brand-mark path{fill:CanvasText}.nav-lock:after{background:CanvasText}}

/* ---- v7 overlay shell (html[data-shell=overlay], contract §1.3/§12) ---------------------------------------
   ONE overlay header on Home, the deck, onboarding, dealer pages and /booking, one row: logo · chapter strip
   (Home, chapters, dealer items) · account · (deck: fullscreen). v9 (task 033ddf8796cf4a56): no ☰ button or
   drawer and no tagline; the wordmark is larger. The translucent layer is a pseudo-element so the (opaque)
   text repaints independently; paper pages use a denser layer for contrast. */
html[data-shell=overlay] body{--shell-top:84px}
html[data-shell=overlay] .site-header{position:fixed;top:10px;left:12px;right:12px;z-index:40;--site-header:58px;height:58px;gap:8px;margin:0;padding:0 10px 0 18px;flex-wrap:nowrap;border:1px solid #ffffff38;border-radius:12px;background:transparent;color:#fff;isolation:isolate;text-shadow:none}
html[data-shell=overlay] .site-header:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--chrome,rgb(184 64 41 / .5));backdrop-filter:blur(10px);pointer-events:none}
html[data-shell=overlay] body:not(.is-deck):not(.is-home):not(.is-welcome) .site-header{--chrome:rgb(150 52 33 / .94)}
html[data-shell=overlay] .site-header .brand{order:0;flex:none;align-self:stretch;justify-content:center;align-items:flex-start;width:auto;min-width:0;padding-right:6px}
html[data-shell=overlay] .site-header .brand-mark{height:32px;filter:drop-shadow(0 1px 2px rgb(58 20 10 / .35))}
html[data-shell=overlay] .site-header .deck-strip{order:1}
html[data-shell=overlay] .site-header .site-account{order:2;margin-left:0}
html[data-shell=overlay] .site-header .site-account a,html[data-shell=overlay] .site-header .site-account button{min-height:40px;border-color:#ffffffb3}
html[data-shell=overlay] .site-header .account-name,html[data-shell=overlay] .site-header .site-account .account-state{display:none}
/* Wide screens have room for the member's name and state chip (narrower: tooltip on the account area). */
@media(min-width:1181px){html[data-shell=overlay] .site-header .site-account .account-name{display:inline;max-width:12ch}html[data-shell=overlay] .site-header .site-account .account-state{display:inline}}
/* Owner 2026-10-01: an approved dealer reads just the name (no "Đã duyệt Đăng ký" chip); the state stays in the
   markup (data-account-state, tooltip) and other states (pending, rejected…) keep their chip. */
html[data-shell=overlay] .site-header .site-account[data-account-state=dealer] .account-state{display:none}
/* Chapter strip: the published chapters as links (shared-shell.js); the deck marks the one on screen. */
.deck-strip{position:relative;display:flex;align-items:center;gap:3px;flex:1 1 auto;min-width:0;height:100%;margin:0;padding:0 14px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;--fade-l:0px;--fade-r:0px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--fade-l),#000 calc(100% - var(--fade-r)),transparent);mask-image:linear-gradient(90deg,transparent,#000 var(--fade-l),#000 calc(100% - var(--fade-r)),transparent)}
.deck-strip[hidden]{display:none}
.deck-strip.fade-start{--fade-l:28px}.deck-strip.fade-end{--fade-r:28px}
.deck-strip::-webkit-scrollbar{display:none}
.deck-strip a,.deck-strip button{flex:none;display:inline-flex;align-items:center;white-space:nowrap;min-height:38px;padding:8px 13px;border:0;border-radius:30px;background:none;color:inherit;font:inherit;font-size:12px;text-decoration:none;cursor:pointer}
.deck-strip a[hidden]{display:none}
.deck-strip a:hover,.deck-strip button:hover{background:#ffffff1f}
.deck-strip a[aria-current=step],.deck-strip button[aria-current=step]{background:#ffffff33;font-weight:700}
.deck-strip a:focus-visible{outline:3px solid #e7a333;outline-offset:-3px}
/* Home and the dealer destinations (server-rendered strip items): current page marker and the locked state. */
.deck-strip a[aria-current=page]{background:#ffffff33;font-weight:700}
.deck-strip a[data-dealer-only]{gap:5px}
.deck-strip a[data-dealer-only].is-locked{opacity:.72}
.deck-strip a[data-dealer-only] .nav-lock{width:9px;transform:scale(.78)}
/* Content pages start below the overlay header; media pages (deck, Home, welcome) run under it. */
html[data-shell=overlay] body:not(.is-deck):not(.is-home):not(.is-welcome) main{padding-top:var(--shell-top)}
html[data-shell=overlay] body.is-entry-pending,html[data-shell=overlay] body.is-page-loading{min-height:100dvh;background:#283626;color:#fff4db}
/* Loading screen (task 9c709bfcff094485): full viewport, dark like Home/the deck, under the overlay header so the
   navigation stays usable. The backdrop paints at once (no light page in between); the wordmark, indicator and
   text fade in after ~180 ms, so a fast switch shows no flashing loader. Shown/hidden by onboarding.js only. */
.entry-pending{position:fixed;inset:0;z-index:30;box-sizing:border-box;display:grid;place-content:center;justify-items:center;gap:18px;padding:var(--shell-top,84px) 24px 24px;background:radial-gradient(120% 90% at 50% 42%,#34452f 0%,#283626 55%,#1d281c 100%);color:#fff4db;text-align:center}
.entry-pending[hidden]{display:none}
.entry-pending>*{animation:entry-pending-in .28s ease-out .18s both}
.entry-pending .entry-pending-mark{display:block;width:min(220px,56vw);height:auto;opacity:.94}
.entry-pending-bar{position:relative;display:block;width:min(150px,40vw);height:2px;overflow:hidden;border-radius:2px;background:#fff4db33}
.entry-pending-bar:after{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;border-radius:inherit;background:#fff4db;animation:entry-pending-bar 1.15s ease-in-out infinite}
.entry-pending p{margin:0;color:#fff4dbcc;font-size:13px;letter-spacing:.08em}
.entry-pending .secondary{min-height:44px;padding:10px 22px;border:1px solid #fff4db99;border-radius:999px;background:transparent;color:#fff4db;font:inherit;font-size:13px;cursor:pointer}
.entry-pending .secondary:hover{background:#fff4db1f}.entry-pending .secondary:focus-visible{outline:3px solid #e7a333;outline-offset:3px}
@keyframes entry-pending-in{from{opacity:0}to{opacity:1}}
@keyframes entry-pending-bar{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
@media(prefers-reduced-motion:reduce){.entry-pending>*{animation-duration:1ms}.entry-pending-bar:after{animation:none;width:100%;opacity:.55}}
@media(forced-colors:active){.entry-pending{background:Canvas;color:CanvasText}.entry-pending-bar:after{background:CanvasText}}
@media(max-width:760px){
 html[data-shell=overlay] body{--shell-top:72px}
 html[data-shell=overlay] .site-header{top:8px;left:8px;right:8px;height:52px;--site-header:52px;gap:4px;padding:0 6px 0 10px}
 html[data-shell=overlay] .site-header .brand{padding-right:2px}html[data-shell=overlay] .site-header .brand-mark{height:24px}
 html[data-shell=overlay] .site-header .deck-strip{padding:0 8px}.deck-strip a,.deck-strip button{min-height:36px;padding:7px 9px;font-size:11px}
 html[data-shell=overlay] .site-header .site-account a,html[data-shell=overlay] .site-header .site-account button{min-height:36px;padding:0 10px;font-size:11px}
 html[data-shell=overlay] .site-header .site-account{gap:4px}
}
@media(max-width:380px){html[data-shell=overlay] .site-header .brand-mark{height:21px}html[data-shell=overlay] .site-header .site-account a,html[data-shell=overlay] .site-header .site-account button{padding:0 8px}}
@media(max-height:520px) and (min-width:761px){
 html[data-shell=overlay] body{--shell-top:66px}
 html[data-shell=overlay] .site-header{top:8px;height:46px;--site-header:46px}html[data-shell=overlay] .site-header .brand-mark{height:26px}
 .deck-strip a,.deck-strip button{min-height:34px;padding:5px 10px}
 html[data-shell=overlay] .site-header .site-account a,html[data-shell=overlay] .site-header .site-account button{min-height:34px}
}
/* Admin/Owner using the dealer's rights (owner 2026-10-04): floating "Đặt hộ cho" picker (shared-shell.js actingBar). */
.acting-bar{position:fixed;left:12px;bottom:12px;z-index:90;max-width:min(560px,calc(100vw - 24px));display:flex;flex-direction:column;gap:4px;
 padding:10px 12px;border-radius:10px;background:#fffbea;color:#3a2f00;border:1px solid #e0c060;box-shadow:0 6px 24px rgba(0,0,0,.18);font-size:14px}
.acting-bar label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-weight:600}
.acting-bar select{max-width:100%;min-width:0;flex:1 1 220px;font:inherit;font-weight:400;padding:4px 6px}
.acting-bar small{font-size:12px;line-height:1.35;opacity:.85}
/* Kept above the deck's fixed bottom chrome (.deck-foot / .deck-plans-nav "Quan tâm", 12-14px + 52px high) so it never
   covers them; compact on phones (the note stays in the DOM for assistive tech, the select's placeholder says it). */
.acting-bar{bottom:calc(76px + env(safe-area-inset-bottom,0px))}
/* Scrolling pages (/booking, not the fixed deck/home/welcome): room below the content so the floating bar never covers
   the last control at the end of the page (e.g. #site-tour-send).  --acting-bar-space is measured by actingBar. */
body.has-acting-bar:not(.is-deck):not(.is-home):not(.is-welcome){padding-bottom:var(--acting-bar-space,160px)}
@media (max-width:720px){.acting-bar{left:8px;padding:6px 10px;max-width:calc(100vw - 16px)}
 .acting-bar small{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
