/* Sapien panel · accessibility and responsive dialog refinement · 2026-11-28 */
:root{--sp-dialog-border:rgba(229,231,229,.12);--sp-dialog-focus:#D59A96}
/* Account-notification opt-in: retain a compact card, but never clip it on short screens. */
html body .notification-welcome-backdrop:not([hidden]){overscroll-behavior:contain;touch-action:pan-y;padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))!important}
html body .notification-welcome-card{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 28px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:rgba(255, 60, 0,.3) transparent}
html body .notification-welcome-actions button{min-height:48px;touch-action:manipulation;transition:background-color .18s,border-color .18s,transform .18s}
html body .notification-welcome-actions button:hover:not(:disabled){transform:translateY(-1px)}
html body .notification-welcome-actions button:disabled{cursor:progress;opacity:.72}
html body .notification-welcome-actions button:focus-visible{outline:2px solid var(--sp-dialog-focus);outline-offset:3px}
/* Product detail dialogs: keep the veil stationary and confine scrolling to their content/gallery. */
html body #web-service-modal.web-service-modal-app:not([hidden]),html body #google-seo-modal.web-service-modal-app:not([hidden]){overscroll-behavior:contain!important;touch-action:pan-y}
html body #web-service-modal .web-service-modal-card,html body #google-seo-modal .google-service-modal-card{overscroll-behavior:contain!important}
html body #web-service-modal .web-modal-app-scroll,html body #google-seo-modal .google-service-modal-scroll{overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;scrollbar-color:rgba(255, 60, 0,.28) transparent!important;scroll-padding-block:12px}
html body #web-service-modal .web-service-modal-close,html body #google-seo-modal .web-service-modal-close,html body #web-modal-order,html body #google-seo-modal-order{min-height:44px!important;touch-action:manipulation}
html body #web-service-modal .web-service-modal-close:focus-visible,html body #google-seo-modal .web-service-modal-close:focus-visible,html body #web-modal-order:focus-visible,html body #google-seo-modal-order:focus-visible{outline:2px solid var(--sp-dialog-focus)!important;outline-offset:3px!important}
html body #web-service-modal .web-case-track,html body #google-seo-modal .google-profile-gallery-track{overscroll-behavior-x:contain!important;scrollbar-width:thin;scrollbar-color:rgba(255, 60, 0,.24) transparent}
html body #web-service-modal .web-case-card,html body #google-seo-modal .google-real-profile{scroll-snap-align:start;touch-action:pan-x pan-y}
@media(max-width:760px){html body #web-service-modal .web-modal-app-scroll,html body #google-seo-modal .google-service-modal-scroll{padding-bottom:max(18px,env(safe-area-inset-bottom))!important}html body #web-service-modal .web-modal-app-footer,html body #google-seo-modal .web-modal-app-footer{padding-bottom:max(8px,env(safe-area-inset-bottom))!important}}
@media(max-width:760px) and (max-height:520px){html body .notification-welcome-backdrop:not([hidden]){place-items:start center!important}html body .notification-welcome-card{margin-block:auto;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);padding:18px!important}html body .notification-welcome-card p{margin-bottom:12px!important}html body #web-service-modal .web-modal-app-header,html body #google-seo-modal .web-modal-app-header{flex-basis:40px!important;min-height:40px!important}}
@media(prefers-reduced-motion:reduce){html body .notification-welcome-actions button{transition:none!important;transform:none!important}}
