/* Shared modal chrome; retain specialised sizes and preview colours. */
@layer sentriiq-precision {
 /* Theme scrollbars only; stamp, ink and artwork colours remain user-controlled. */
 html:root,html:root *{scrollbar-color:#1c69d4 #eaf0f7!important}
 html:root ::-webkit-scrollbar-thumb{background:#1c69d4!important;border-color:#eaf0f7!important;border-radius:6px!important}
 html:root ::-webkit-scrollbar-thumb:hover{background:#1657b2!important}
 html:root ::-webkit-scrollbar-track{background:#eaf0f7!important}
 html:root ::-webkit-scrollbar-button{background-color:#eaf0f7!important;color:#1c69d4!important}
 html:root [data-radix-scroll-area-thumb]{background:#1c69d4!important}
 html:root [data-siq-dialog-surface]{box-sizing:border-box!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;min-width:0!important;overflow:auto!important;background-color:#f7f9fc!important;color:#243448!important;border:1px solid #ccd6e2!important;border-radius:12px!important;box-shadow:0 18px 60px #0f172a40!important;color-scheme:light!important}
 html:root [data-siq-dialog-surface] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=hidden]),textarea,select){background:#fff!important;color:#172b43!important;-webkit-text-fill-color:#172b43!important;border:1px solid #b7c6d8!important;border-radius:6px!important;box-shadow:none!important;font-size:14px!important;max-width:100%!important;box-sizing:border-box!important}
 html:root [data-siq-dialog-surface] :is(input,textarea)::placeholder{color:#63748a!important;opacity:1!important}
 html:root [data-siq-dialog-surface] :is(input[type=checkbox],input[type=radio]){accent-color:#1c69d4!important}
 html:root [data-siq-dialog-button]{background:#fff!important;color:#243448!important;-webkit-text-fill-color:currentColor!important;border:1px solid #b7c6d8!important;border-radius:6px!important;box-shadow:none!important;text-shadow:none!important;font-size:13px!important;line-height:1.4!important}
 html:root [data-siq-dialog-button]:hover:not(:disabled){background:#eaf1fb!important;border-color:#1c69d4!important}
 html:root [data-siq-dialog-primary]{background:#1c69d4!important;color:#fff!important;border-color:#1c69d4!important}
 html:root [data-siq-dialog-button]:is([aria-pressed=true],[aria-selected=true],[data-state=active]){background:#e3edff!important;color:#174f9c!important;border-color:#1c69d4!important}
 html:root [data-siq-dialog-button][class*="destructive"]{background:#b42318!important;color:#fff!important;border-color:#b42318!important}
 html:root [data-siq-dialog-button]:disabled{background:#e8edf3!important;color:#536479!important;opacity:1!important;cursor:not-allowed!important}
 html:root [data-siq-dialog-surface] :is(button,input,textarea,select,a):focus-visible{outline:2px solid #1c69d4!important;outline-offset:2px!important}
 html:root [data-siq-dialog-surface]>.sentriiq-dialog-grip{margin-right:40px!important;min-height:28px!important;padding:4px 8px!important;font-size:11px!important}
 html:root [data-siq-dialog-surface]>button.absolute{right:18px!important;top:16px!important;z-index:4!important}
 html:root [data-siq-dialog-surface]{font-size:14px!important;line-height:1.45!important;overflow-wrap:anywhere}
 html:root [data-siq-dialog-surface] :is(h2,h3){font-size:20px!important;line-height:1.3!important}
 html:root [data-siq-stamp-dialog]{width:min(760px,calc(100vw - 24px))!important;height:auto!important;padding:16px!important;gap:8px!important}
 html:root [data-siq-stamp-dialog] :is(label,h4){font-size:14px!important}
 html:root [data-siq-stamp-dialog] p{font-size:12px!important;line-height:1.4!important}
 html:root [data-siq-stamp-dialog] section{min-width:0!important;margin-top:4px!important;margin-bottom:4px!important}
 html:root [data-siq-stamp-dialog] h3{font-size:15px!important;margin:4px 0!important}
 html:root [data-siq-stamp-dialog] p{margin:5px 0!important}
 html:root [data-siq-stamp-dialog]>.flex.flex-col-reverse{position:sticky!important;bottom:-16px!important;z-index:5!important;background:#f7f9fc!important;border-top:1px solid #ccd6e2!important;padding:10px 0!important}
 html:root [data-siq-signature-dialog]{width:min(560px,calc(100vw - 24px))!important;height:auto!important;padding:16px!important;gap:10px!important}
 html:root [data-siq-signature-dialog] label{font-size:13px!important}
 html:root [data-siq-arrow-backdrop]{background:rgba(15,23,42,.55)!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:12px!important;box-sizing:border-box!important}
 html:root [data-siq-arrow-backdrop]>.sentriiq-dialog-grip{display:none!important}
 html:root [data-siq-arrow-dialog]{width:min(560px,calc(100vw - 24px))!important;padding:16px!important;overflow:auto!important}
 html:root [data-siq-arrow-dialog] :is(h2,h3){margin:0 0 8px!important;font-size:18px!important}
 html:root [data-siq-arrow-dialog] h3{font-size:14px!important}
 html:root [data-siq-arrow-dialog] p{font-size:12px!important;line-height:1.4!important;margin:6px 0!important}
 html:root [data-siq-arrow-dialog] label{font-size:13px!important}
 html:root [data-siq-arrow-dialog] input:not([type=color]):not([type=checkbox]),html:root [data-siq-arrow-dialog] select{min-height:30px!important;padding:4px 8px!important}
 html:root [data-siq-arrow-dialog] textarea{height:52px!important;min-height:52px!important;max-height:110px!important;resize:vertical!important}
 html:root [data-siq-arrow-dialog]>div{flex-wrap:wrap!important}
 html:root [data-siq-arrow-dialog]>img{height:64px!important;max-height:64px!important;width:100%!important;object-fit:contain!important}
 html:root [data-siq-arrow-dialog]>div:last-child{position:sticky!important;bottom:-16px!important;background:#f7f9fc!important;padding:10px 0!important;border-top:1px solid #ccd6e2!important;z-index:5!important;gap:8px!important}
 html:root [data-siq-arrow-dialog]>div:last-child button{padding:6px 12px!important;min-height:32px!important}
 html:root [data-siq-arrow-dialog]>div:last-child button:last-child{background:#1c69d4!important;color:white!important;border-color:#1c69d4!important}
 html:root [data-siq-signature-dialog]>.flex.flex-col-reverse{position:sticky!important;bottom:-16px!important;z-index:5!important;background:#f7f9fc!important;padding:10px 0!important;border-top:1px solid #ccd6e2!important}
 html:root [data-siq-stamp-dialog] [data-testid=stamp-presets] img{height:44px!important;max-width:100%!important;object-fit:contain!important}
 html:root [data-siq-stamp-dialog] [style*="grid-template-columns"]{grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr))!important}
 html:root :is([role=menu],[role=listbox]){max-width:min(420px,calc(100vw - 24px))!important;max-height:min(420px,calc(100dvh - 32px))!important;overflow:auto!important}
 html:root [data-siq-dialog-surface]>.flex.flex-col-reverse{position:sticky!important;bottom:-16px!important;z-index:5!important;background:#f7f9fc!important;padding:10px 0!important;border-top:1px solid #ccd6e2!important}
 @media(max-width:480px){html:root [data-siq-dialog-surface]{max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important}html:root [data-siq-dialog-surface] :is(input,textarea,select){font-size:16px!important}}
}
