/* HxH Store 1.6.12 stability layer — responsive fixes and restrained motion. */
:root{scroll-behavior:smooth;--hxh-ease:cubic-bezier(.2,.75,.25,1)}
button,a,input,select,textarea,.panel,.product-card,.email-template-kind,.modal{transition:color .18s var(--hxh-ease),background-color .18s var(--hxh-ease),border-color .18s var(--hxh-ease),box-shadow .18s var(--hxh-ease),transform .18s var(--hxh-ease)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #bda0ff;outline-offset:3px}
#overlay{position:relative;z-index:1000}
#overlay:empty{display:none}
#overlay:not(:empty) .overlay{position:fixed;inset:0;display:grid;place-items:center;overflow-y:auto;overscroll-behavior:contain;padding:clamp(10px,3vw,28px);background:rgba(9,5,20,.76);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:hxh-overlay-in .18s ease-out both}
#overlay .modal{width:min(100%,720px);max-height:min(88dvh,900px);overflow:auto;overscroll-behavior:contain;margin:auto;border-radius:20px;animation:hxh-modal-in .22s var(--hxh-ease) both}
#overlay .modal.large{width:min(100%,1000px)}
#overlay .modal-head{position:sticky;top:0;z-index:2;background:inherit;backdrop-filter:blur(12px)}
.email-template-preview{min-width:0;width:100%;overflow:hidden;border-radius:12px}
.email-template-preview iframe{display:block;width:100%;max-width:100%;min-height:300px;border:0;background:#fff}
.email-template-preview-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:10px}
.email-template-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:9px}
.otp-digit-grid{min-width:0;max-width:100%}.otp-digit{min-width:0;max-width:100%}.is-expired{color:#fb7185!important}
.app-update-notice{max-width:min(96vw,760px);gap:10px;flex-wrap:wrap;box-sizing:border-box}
button:disabled{cursor:not-allowed;opacity:.58;transform:none!important}
@keyframes hxh-overlay-in{from{opacity:0}to{opacity:1}}
@keyframes hxh-modal-in{from{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:760px){
 html{scroll-behavior:auto}
 .panel,.auth-panel,.email-templates-panel{min-width:0;max-width:100%;box-sizing:border-box}
 .section-title{align-items:flex-start;gap:12px;flex-wrap:wrap}
 .section-title>.btn{max-width:100%;white-space:normal}
 .email-template-kind{min-width:0;padding:12px!important}
 .email-template-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 .email-template-option{min-width:0;overflow-wrap:anywhere}
 .email-template-preview iframe{min-height:240px}
 #overlay:not(:empty) .overlay{align-items:end;padding:0}
 #overlay .modal,#overlay .modal.large{width:100%;max-width:100%;max-height:88dvh;border-radius:22px 22px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom));}
 #overlay .modal-head{padding-top:14px}
 .modal-actions{display:flex;flex-wrap:wrap;gap:8px}
 .modal-actions>*{flex:1 1 120px;min-width:0}
 .table-wrap,.table-scroll,.admin-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .form-grid,.settings-grid,.admin-grid{grid-template-columns:minmax(0,1fr)!important}
 input,select,textarea{max-width:100%;min-width:0}
 .app-update-notice{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));margin:0;width:auto;max-width:none}
}
@media(max-width:420px){
 .email-template-options{grid-template-columns:minmax(0,1fr)}
 .otp-digit-grid{gap:5px!important}
 .otp-digit{font-size:1.12rem!important}
 .auth-header-block h2{overflow-wrap:anywhere}
 .inline-actions>*{max-width:100%;white-space:normal}
}
@media(prefers-reduced-motion:reduce){
 :root{scroll-behavior:auto}
 *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important;view-transition-name:none!important}
}
