/* Common usability layer. Business forms, permissions and calculations stay on the server. */
.booster-ux [hidden]{display:none!important}
body.booster-ux:is(.admin-body,.series-screen,.public-body){--muted:#526763;font-size:15px}
.booster-ux :is(.content,.admin-main,.series-screen-main,main,.card,.panel,.form-grid>*,.grid>*,.two-columns>*){min-width:0}
.booster-ux :is(h1,h2,h3,p,legend,.hint,.notice,.lead){overflow-wrap:anywhere}
.booster-ux :is(.button,.btn,button:not(.text-button):not(.icon-btn)){min-height:44px;line-height:1.5}
.booster-ux :is(.button.small,.btn.small){min-height:38px}
.booster-ux :is(.button,.btn){max-width:100%;white-space:normal}
.booster-ux :is(.hint,.muted,.cell-sub,.small-text){color:#526763}
.booster-ux :is(.hint,.small-text){font-size:13px;line-height:1.8}
.booster-ux :is(form label,.form-label){font-size:14px;line-height:1.65}
.booster-ux :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){min-height:46px;scroll-margin-top:24px}
.booster-ux :is(.mc-form,.cb-form,.series-form,.vt-form){align-items:end}
.booster-ux :is(.mc-form,.cb-form,.series-form,.vt-form) label{min-width:0}
.booster-ux .mc-form label:has(textarea){grid-column:1/-1}
.booster-ux :is(.mc-form,.cb-form,.series-form,.vt-form)>.button{justify-self:start;min-width:120px}
.booster-ux .content>:is(.card,details.card)+:is(.card,details.card),.booster-ux .series-screen-main>:is(.card,details.card)+:is(.card,details.card){margin-top:20px}
.booster-ux :is(.topbar,.page-header,.section-head,.card-heading,.row-between,.top-inner){flex-wrap:wrap}
.booster-ux :is(.topbar,.page-header)>div{min-width:0}
.booster-ux details>summary{min-height:44px;padding-block:10px;cursor:pointer;line-height:1.65}
.booster-ux .sidebar .sidebar-group>summary{padding:14px 10px}
.booster-ux :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #087d69;outline-offset:3px}
.booster-ux .sidebar :is(a,button,summary):focus-visible{outline-color:#dceebc}
.ux-skip{position:fixed;left:16px;top:12px;transform:translateY(-160%);z-index:100;background:#173e3e;color:white!important;padding:12px 18px;border-radius:9px;text-decoration:none;font-weight:700}
.ux-skip:focus{transform:none}
.ux-required{display:inline-block;vertical-align:baseline;margin-left:7px;padding:1px 6px;border-radius:5px;font-size:10px;color:#735126;background:#fff3dc;font-weight:600}
.ux-field-error{display:block;color:#a53632;font-size:13px;font-weight:500;margin-top:6px}
.booster-ux .ux-invalid{border-color:#ad3833!important;outline-color:#ad3833!important}
.ux-table-region{max-width:100%;overflow:auto;overscroll-behavior-x:contain;scrollbar-width:thin;border-radius:8px}
.ux-table-region[data-ux-wide] table{min-width:560px}
.ux-table-hint{font-size:12px;line-height:1.6;color:#526763;padding:8px 12px;background:#f1f6f3;border:1px solid #dce7df;border-radius:8px;margin:10px 0}
.booster-ux .ux-table-region :is(th,td){font-size:13px;line-height:1.7}
.booster-ux .ux-table-region th{color:#526763}
.booster-ux .sidebar .logout{min-height:44px;min-width:44px;border:1px solid #ffffff28;border-radius:9px}
.ux-logout-text{display:none}
.booster-ux .sidebar .sidebar-bottom>div{min-width:0;flex:1}
/* Portal: fewer choices at once, consistent store selection and a fast search. */
.portal .series-welcome{display:flex;justify-content:space-between;align-items:center;gap:28px;background:linear-gradient(120deg,#173e3e,#28695d);border-radius:20px}
.portal .series-welcome h2{font-size:clamp(20px,2.4vw,28px);margin:8px 0}
.portal .series-welcome .eyebrow{color:#c8e8d9}
.portal .series-welcome p:not(.eyebrow){font-size:14px;line-height:1.8;color:#e5f2ec}
.portal-available{display:block;font-size:42px;font-weight:750;line-height:1.25;text-align:center;min-width:110px;font-variant-numeric:tabular-nums}
.portal-available small{display:block;font-size:12px;font-weight:500;margin-top:6px;color:#e5f2ec}
.portal-toolbar{display:grid;grid-template-columns:minmax(200px,1.2fr) minmax(220px,1fr) auto;gap:8px 18px;align-items:end;padding:22px!important;margin-top:20px}
.portal-toolbar label{margin:0;min-width:0}
.portal .portal-store-hint{grid-column:1/-1;margin:4px 0 0;font-size:12px}
.portal-toolbar .button{min-height:46px;margin:0}
.portal-categories{display:flex;gap:9px;flex-wrap:wrap;margin:22px 0}
.portal-categories a{display:flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid #dce7df;border-radius:100px;background:white;font-size:13px;font-weight:650;min-height:44px}
.portal-categories a:hover{background:#e9f4ed;border-color:#7fac98}
.portal-categories span{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:#eff5f1;color:#526763;font-size:11px}
.portal-category{margin:30px 0;scroll-margin-top:20px}
.portal-category-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px}
.portal-category-heading h2{font-size:20px}
.portal-category-heading>span{color:#526763;font-size:12px}
.portal .series-service{padding:22px!important;border-radius:16px;min-width:0}
.portal-service-heading{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.portal-service-heading img{flex-shrink:0}
.portal-service-heading>div{min-width:0}
.portal-service-heading h3{font-size:17px;margin:7px 0 0;line-height:1.5}
.portal .series-badge{font-size:10px;padding:3px 9px;font-weight:600}
.portal .series-service>p{font-size:14px;color:#526763}
.portal .series-service form{padding-top:14px}
.portal .series-service .button{font-size:14px}
.portal .portal-active-store{display:block;margin:4px 0 9px;font-size:12px;color:#526763;overflow-wrap:anywhere}
.portal-other{margin:28px 0 0;border-top:1px solid #dce7df;padding-top:8px}
.portal-other>summary{font-size:15px;font-weight:650;color:#526763}
.portal-other>summary span{font-size:12px;margin-left:8px}
.portal-other .series-grid{margin-top:18px}
.portal-result{margin:0 0 15px;font-size:14px;color:#526763}
.portal-empty{text-align:center;padding:35px!important}
.portal-empty p{color:#526763;margin:12px 0 20px}
/* Customer and booking records with explicit empty states. */
.mc-customer-list{display:grid;margin:18px 0;border-top:1px solid #dce7df}
.mc-customer-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 12px;border-bottom:1px solid #dce7df;border-radius:8px;min-height:64px}
.mc-customer-row:hover{background:#eff6f1}
.mc-customer-row strong{display:block;font-size:17px;margin:4px 0}
.mc-customer-row small{display:block;color:#526763;font-size:12px}
.mc-customer-row>span{min-width:0;overflow-wrap:anywhere}
.mc-customer-row>span:last-child{flex-shrink:0;font-size:13px;color:#087d69}
.mc-state{display:inline-block;background:#e8f4ec;color:#236b4f;padding:4px 10px;border-radius:100px;font-size:12px;font-weight:650;margin-top:8px}
.mc-state.cancelled{background:#faeeeb;color:#914e43}
.mc-booking-time{font-size:22px!important;line-height:1.5;font-variant-numeric:tabular-nums}
.booster-ux .mc-empty{padding:22px 0;color:#526763;font-size:14px}
@media(max-width:1000px){.portal-toolbar{grid-template-columns:1fr 1fr}.portal-toolbar .button{justify-self:start;grid-column:1/-1}.portal-store-hint{grid-row:auto}}
@media(max-width:720px){
 .booster-ux :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){font-size:max(16px,1em)}
 .booster-ux :is(.button.small,.btn.small,.text-button){min-height:44px;font-size:13px}
 .booster-ux .topbar .button{font-size:13px;padding:10px 13px}
 .booster-ux .filter-bar{padding:16px;align-items:stretch}
 .booster-ux .filter-bar label{min-width:0;flex:1 1 145px}
 .booster-ux .filter-bar .button{align-self:end}
 .booster-ux .sidebar[data-sidebar-enhanced] .sidebar-bottom{display:flex}
 .booster-ux .sidebar[data-sidebar-enhanced] .logout{display:flex;align-items:center;gap:7px;padding:8px 10px}
 .booster-ux .sidebar[data-sidebar-enhanced] .ux-logout-text{display:inline;font-size:12px}
 .booster-ux .sidebar[data-sidebar-enhanced][data-sidebar-open=false] .sidebar-bottom{display:none}
 .booster-ux :is(.top-inner,.header-inner){flex-wrap:wrap;padding-block:14px}
 .booster-ux .site-header nav a:last-child{display:inline-flex}
 .portal-toolbar{grid-template-columns:1fr;padding:18px!important;gap:14px}
 .portal-toolbar .button{grid-column:auto;width:100%}
 .portal .series-welcome{padding:24px!important;gap:18px;align-items:flex-start}
 .portal-available{font-size:32px;min-width:70px}
 .portal-available small{font-size:10px;max-width:70px}
 .portal-categories{gap:7px}
 .portal-categories a{font-size:12px;padding:9px 12px}
 .portal-service-heading h3{font-size:17px}
 .mc-customer-row{padding:16px 8px}
}
@media(max-width:380px){.portal .series-welcome{flex-direction:column}.portal-available{display:flex;align-items:center;gap:12px}.portal-available small{max-width:none;font-size:12px}.portal .series-grid{gap:14px}}
@media(prefers-reduced-motion:reduce){.booster-ux *, .booster-ux *::before,.booster-ux *::after{scroll-behavior:auto!important;transition:none!important}}
@media print{.ux-skip,.ux-table-hint,.portal-toolbar,.portal-categories{display:none!important}.ux-table-region{overflow:visible}.ux-table-region[data-ux-wide] table{min-width:0}.booster-ux .sidebar .sidebar-bottom{display:none!important}}

/* Form sections and persistent actions are opt-in for the two long editors. */
.booster-ux .ux-form-section{min-width:0;margin:24px 0;padding:20px;border:1px solid #dce7df;border-radius:14px;background:#fcfdfb}
.booster-ux .ux-form-section>legend{padding:0 8px;font-size:16px;font-weight:700;color:#173e3e}
.booster-ux .ux-form-section>label:first-of-type{margin-top:0}
.booster-ux .ux-form-section>.hint:last-child{margin-bottom:0}
.booster-ux .ux-form-section .two-columns{gap:18px;margin-bottom:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.booster-ux .ux-error-summary{grid-column:1/-1;width:100%;margin:0 0 20px;padding:16px 20px;border:1px solid #e7b5b0;border-left:4px solid #a53632;border-radius:10px;background:#fff6f4;color:#8e302c;font-size:14px;line-height:1.8;scroll-margin-block:20px}
.ux-error-summary strong{display:block;font-size:15px}.ux-error-summary ul{padding-left:20px;margin:8px 0 0}.ux-error-summary a{text-decoration:underline;text-underline-offset:3px}
.ux-character-count{display:block;text-align:right;margin-top:5px;color:#526763;font-size:12px;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.6}
.ux-character-count.ux-near-limit{color:#8e591b;font-weight:650}
.booster-ux .ux-editor-actions{position:sticky;bottom:12px;background:#fff;border:1px solid #dce7df;box-shadow:0 5px 24px #142d3410;border-radius:12px;padding:14px 18px;z-index:2;gap:12px;margin-top:26px}
.ux-edit-status{width:100%;margin:0;color:#7b572b;font-size:13px;font-weight:500;line-height:1.6}
.booster-ux form[data-ux-editor] :is(input,select,textarea){scroll-margin-bottom:140px}
.booster-ux :is(.content,.series-screen-main) input[type=checkbox],.booster-ux :is(.content,.series-screen-main) input[type=radio]{min-width:20px;min-height:20px}
.booster-ux form label.checkbox{min-height:44px;cursor:pointer}
@media(max-width:720px){
 .booster-ux .ux-form-section{padding:16px;margin:22px 0}
 .booster-ux .ux-form-section .two-columns{grid-template-columns:1fr;gap:0}
 .booster-ux .ux-form-section .two-columns label{margin-top:14px}
 .booster-ux .ux-editor-actions{bottom:8px;bottom:max(8px,env(safe-area-inset-bottom));padding:12px;gap:8px}
 .booster-ux .ux-editor-actions>.button:first-of-type{flex:1;min-width:0;font-size:14px}
 .booster-ux .ux-editor-actions>.button.ghost{flex:0 0 auto;padding:10px;font-size:13px}
 .booster-ux .ux-error-summary{padding:14px;font-size:13px}
 .booster-ux .ux-form-section .question-editor{padding:16px}
}
@media print{.ux-editor-actions,.ux-edit-status,.ux-character-count,.ux-error-summary{display:none!important}.booster-ux .ux-form-section{background:white;break-inside:avoid}}
