/* V8.5: stable modal geometry; no decorative animation or scroll chaining in forms. */
html.fgo-modal-locked{overflow:hidden!important;overscroll-behavior:none;scroll-behavior:auto!important}
html.fgo-modal-locked body{overflow:hidden!important;overscroll-behavior:none}
html.fgo-modal-locked .fgo-v6-mobile-nav{visibility:hidden;pointer-events:none;transition:none}
dialog,dialog *{animation:none!important;transition:none!important}
dialog{min-width:0;overflow-x:hidden;overscroll-behavior:none;scroll-behavior:auto;overflow-anchor:none}
dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}
.request-panel{inset:0 0 auto auto;height:var(--fgo-modal-height,100svh);max-height:var(--fgo-modal-height,100svh);min-height:0;width:min(560px,100%);max-width:100%;margin:0;overflow-x:hidden;overflow-y:auto;touch-action:pan-y pinch-zoom;transform:none!important;scrollbar-gutter:stable}
.request-panel .panel-body{width:100%;max-width:100%;min-width:0;padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
.request-panel .panel-header{flex-shrink:0;transform:none!important}
#request-form,#request-form .form-row,#request-form .form-row>div,.choice-field{min-width:0;max-width:100%}
#request-form .form-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.choice-dialog,.details-modal,.fgo-v8-lightbox{max-height:calc(var(--fgo-modal-height,100svh) - 28px)}
.choice-dialog{bottom:auto;inset:0;margin:auto;height:fit-content;touch-action:pan-y pinch-zoom}
.fgo-date-field{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;padding:12px 15px;min-height:54px;border:1px solid #8a9497;border-radius:10px;background:#fffdfa}
.fgo-date-field input[type=date],.fgo-date-field input[type=time]{display:block;width:100%!important;max-width:100%!important;min-width:0!important;inline-size:100%!important;max-inline-size:100%!important;min-inline-size:0!important;box-sizing:border-box!important;padding:0!important;margin:0!important;border:0!important;border-radius:0;appearance:none;-webkit-appearance:none;height:28px;min-height:28px;background:transparent;font-size:16px;line-height:28px;text-align:left;outline:none;box-shadow:none}
.fgo-date-field:focus-within{outline:3px solid var(--accent);outline-offset:3px}
.fgo-date-field:has([aria-invalid=true]){border-color:#a54832}
.fgo-date-field input::-webkit-date-and-time-value{min-width:0;max-width:100%;width:100%;margin:0;padding:0;text-align:left;line-height:28px}
.fgo-date-field input::-webkit-datetime-edit,.fgo-date-field input::-webkit-datetime-edit-fields-wrapper{min-width:0;max-width:100%;padding:0}
#request-form .fgo-date-field{margin:0 0 23px}
#request-form .fgo-date-field input{margin:0!important}
@media(max-width:720px){
 .request-panel{width:100%;scrollbar-gutter:auto}
 .request-panel::backdrop{background:var(--paper)}
 #request-form .form-row{grid-template-columns:minmax(0,1fr)}
 .choice-dialog{inset:0 0 auto;margin:0;width:100%;max-width:100%;border-radius:0 0 20px 20px;max-height:var(--fgo-modal-height,100svh)}
}
@media(hover:none),(pointer:coarse){.fgo-v6-artcard:hover{transform:none!important}.hero-primary:hover,.hero-secondary:hover,.nav-cta:hover{transform:none!important}}