/* R34: modal sizing belongs to each presentation, and never to page height. */
html body dialog.triq-r34-modal[open]:not(.r42-att-panel):not(.triq-r33-photo-viewer):not(.triq-media-viewer):not(.f-overflow-menu):not(.s-action-popover):not(.triq-about):not(.triq-photo-sheet):not(.triq-web-recorder):not(.welcome-tour):not(.customer-dialog):not(.o-visit-dialog):not(.guide-dialog):not(.p-payment-dialog):not(.r40-invoice-preview):not(.web-recorder),
html body #app#app dialog.triq-r34-modal[open]:not(.r42-att-panel):not(.triq-r33-photo-viewer):not(.triq-media-viewer):not(.f-overflow-menu):not(.s-action-popover):not(.triq-about):not(.triq-photo-sheet):not(.triq-web-recorder):not(.welcome-tour):not(.customer-dialog):not(.o-visit-dialog):not(.guide-dialog):not(.p-payment-dialog):not(.r40-invoice-preview):not(.web-recorder){
 position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;
 width:calc(100% - 24px)!important;max-width:560px!important;height:auto!important;
 min-height:0!important;max-height:calc(var(--triq-ios-viewport-height,100dvh) - 28px)!important;
 box-sizing:border-box!important;overflow:auto!important;overscroll-behavior:contain!important;
 border:1px solid #dfe5ee!important;border-radius:22px!important;background:#fff!important;
 box-shadow:0 18px 55px rgba(20,37,60,.20)!important;
}
html body dialog.triq-r34-modal::backdrop{background:rgba(20,34,55,.38)!important;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
html body dialog.triq-r34-modal[data-triq-underlay]{visibility:hidden!important;pointer-events:none!important}
html body dialog.triq-r34-modal[data-triq-underlay]::backdrop{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body.triq-modal-open{overflow:hidden!important}
html body dialog.triq-r34-modal.triq-about[open],html body #app#app dialog.triq-r34-modal.triq-about[open]{
 display:flex!important;flex-direction:column!important;padding:0!important;
 height:calc(var(--triq-ios-viewport-height,100dvh) - 28px)!important;max-height:620px!important;
 min-height:0!important;overflow:hidden!important;overflow-y:hidden!important;overflow-x:hidden!important;
}
html body dialog.triq-r34-modal.triq-about>.triq-dialog-header{position:relative!important;top:0!important;flex:0 0 auto!important;min-height:64px!important;padding:10px 16px!important;gap:10px!important}
html body dialog.triq-r34-modal.triq-about>.triq-about-content{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;padding:16px!important;overscroll-behavior:contain!important}
html body dialog.triq-r34-modal .triq-about-content>*{flex-shrink:0}
html body dialog.triq-r34-modal .triq-about-brand{padding:8px 0 18px!important}
html body dialog.triq-r34-modal .triq-about-brand img{width:72px!important;height:72px!important;object-fit:contain!important}
html body dialog.triq-r34-modal .triq-about-brand h1{font-size:21px!important;margin:12px 0 6px!important}
html body dialog.triq-r34-modal .triq-about-links button{font-size:14px!important;min-height:46px!important;padding:12px 2px!important}
html body dialog.triq-r34-modal .triq-about-content footer{margin-top:8px!important;padding-top:16px!important;gap:6px 16px!important}
html body dialog.triq-r34-modal.triq-policy iframe{display:block;width:100%!important;height:min(65dvh,580px)!important;min-height:240px;box-sizing:border-box;border:0}
html body dialog.triq-r34-modal :is(.triq-close-circle,.triq-icon-btn,.f-close,.f-guide-close,.s-popover-close,.chat-receipt-close),
html body #app#app dialog.triq-r34-modal :is(.triq-close-circle,.triq-icon-btn,.f-close,.f-guide-close,.s-popover-close,.chat-receipt-close){
 width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;
 flex:0 0 44px!important;aspect-ratio:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 padding:0!important;border:0!important;border-radius:50%!important;align-self:center!important;box-sizing:border-box!important;
 background:radial-gradient(circle,#f0f3f8 0 16px,transparent 17px)!important;box-shadow:none!important;color:#48596c!important;font-size:22px!important;line-height:1!important;
}
html body dialog.triq-r34-modal :is(.triq-close-circle,.triq-icon-btn,.f-close) svg{width:18px!important;height:18px!important;flex:none!important}
html body dialog.triq-r34-modal button:focus:not(:focus-visible),html body .chat-message:focus:not(:focus-visible),html body .chat-message :is(a,button):focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
html body dialog.triq-r34-modal button:focus-visible{outline:2px solid var(--triq-nav-accent,#073779)!important;outline-offset:1px!important}
html body dialog.triq-r34-modal .triq-deletion-form{padding:18px!important;display:flex!important;flex-direction:column!important;gap:16px!important;margin:0!important}
html body dialog.triq-r34-modal .triq-deletion-form>h2{font-size:20px!important;margin:0!important;line-height:1.3!important}
html body dialog.triq-r34-modal .triq-deletion-fields{display:grid!important;gap:12px!important;min-width:0!important}
html body dialog.triq-r34-modal .triq-deletion-fields p{margin:0!important;line-height:1.5!important;font-size:14px!important}
html body dialog.triq-r34-modal .triq-deletion-fields label{display:grid!important;gap:8px!important;font-size:13px!important}
html body dialog.triq-r34-modal .triq-deletion-form>footer{display:flex!important;justify-content:flex-end!important;gap:10px!important;margin:0!important}

/* Native media callouts must not steal the message-level long press. */
html body #chat-message-list .chat-message,
html body #chat-message-list .chat-message :is(img,video,.chat-inline-image,.triq-voice-message,[data-action="biz-chat-media"],.triq-location-card){-webkit-touch-callout:none!important}
html body #chat-message-list .chat-message :is(img,video){-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
html body .f-message-menu{z-index:10020!important;max-width:calc(100vw - 24px)!important;box-sizing:border-box!important}
html body .f-message-menu .f-message-commands button{min-height:40px!important;line-height:1.3!important}

/* Relevant vectors, readable copy and the existing authorized primary action. */
html body #app#app .triq-empty-state{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:10px!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:210px!important;height:auto!important;max-height:none!important;margin:12px 0!important;padding:28px 20px!important;border:1px solid rgba(147,166,191,.16)!important;border-radius:22px!important;background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(249,251,255,.86))!important;overflow:visible!important;text-align:center!important}
html body #app#app .triq-empty-state[hidden]{display:none!important}
html body #app#app .triq-empty-state .triq-empty-art{display:grid!important;place-items:center!important;width:60px!important;height:60px!important;flex:0 0 60px!important;border-radius:20px!important;background:color-mix(in srgb,var(--triq-nav-accent,#073779) 9%,white)!important;color:var(--triq-nav-accent,#073779)!important;margin:0 0 4px!important}
html body #app#app .triq-empty-state .triq-empty-art svg{display:block!important;width:30px!important;height:30px!important;position:static!important;transform:none!important;margin:0!important;opacity:1!important}
html body #app#app .triq-empty-state h2{font-size:17px!important;line-height:1.3!important;color:#24364d!important;font-weight:600!important;margin:0!important;max-width:100%!important;overflow:visible!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body #app#app .triq-empty-state p{font-size:13px!important;line-height:1.5!important;color:#657489!important;max-width:310px!important;margin:0!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important}
html body #app#app .triq-empty-state>.f-fab{position:static!important;inset:auto!important;transform:none!important;width:auto!important;max-width:100%!important;margin:8px 0 0!important;min-height:44px!important;font-size:13px!important;padding:10px 18px!important;box-shadow:0 5px 14px rgba(20,40,65,.12)!important}
html body #app#app .triq-empty-state>.f-fab svg{width:18px!important;height:18px!important;position:static!important;margin:0!important}
@media(max-height:550px){html body #app#app .triq-empty-state{min-height:170px!important;padding:20px 16px!important}}

/* A frosted-glass capsule: the app content remains visible through the material. */
html body #app#app nav:is(.f-bottom,.m-bottom){background:rgba(246,251,255,.30)!important;background-image:linear-gradient(135deg,rgba(255,255,255,.34),rgba(244,249,255,.10))!important;backdrop-filter:blur(24px) saturate(150%)!important;-webkit-backdrop-filter:blur(24px) saturate(150%)!important;border:1px solid rgba(255,255,255,.75)!important;box-shadow:0 8px 28px rgba(41,65,96,.15),inset 0 1px rgba(255,255,255,.48)!important;isolation:isolate!important;overflow:hidden!important}
html body #app#app nav:is(.f-bottom,.m-bottom)::before,html body #app#app nav:is(.f-bottom,.m-bottom)::after{display:none!important}
html body #app#app nav:is(.f-bottom,.m-bottom) .m-bottom-item{background:transparent!important;background-image:none!important;border:0!important;color:#46515e!important;box-shadow:none!important}
html body #app#app nav:is(.f-bottom,.m-bottom) .m-bottom-item.selected{background:rgba(255,255,255,.26)!important;color:var(--triq-nav-accent,#073779)!important;border-radius:999px!important;box-shadow:inset 0 1px rgba(255,255,255,.45)!important}
html body #app#app nav:is(.f-bottom,.m-bottom) .m-bottom-item>svg{background:transparent!important;mix-blend-mode:normal!important}
html body #app#app nav:is(.f-bottom,.m-bottom) .m-bottom-item:focus-visible{outline:2px solid var(--triq-nav-accent,#073779)!important;outline-offset:-3px!important;border-radius:999px!important}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html body #app#app nav:is(.f-bottom,.m-bottom){background:#f3f7fc!important;background-image:none!important}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){html body #app#app nav:is(.f-bottom,.m-bottom){background:#f3f7fc!important;background-image:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
/* Existing transparent TRIQ logo used as a mask: its true geometry is preserved. */
:root{--triq-loader-start:#073779;--triq-loader-end:#168bc3}
html[data-triq-app=processor]{--triq-loader-start:#075b43;--triq-loader-end:#19a97d}
html[data-triq-app=employee]{--triq-loader-start:#a3430b;--triq-loader-end:#ee982f}
html[data-triq-app=chat]{--triq-loader-start:#43166f;--triq-loader-end:#873ae8}
html body.triq-loading-active #app{filter:blur(7px)!important;pointer-events:none!important;user-select:none!important;-webkit-user-select:none!important}
html body .triq-loading-layer{position:fixed!important;inset:0!important;height:var(--triq-ios-viewport-height,100dvh)!important;width:100%!important;z-index:10030!important;display:block!important;background:rgba(248,251,255,.16)!important;pointer-events:auto!important;box-sizing:border-box!important}
html body .triq-loader-mark{position:absolute!important;left:50%!important;top:var(--triq-loader-centre,50%)!important;transform:translate(-50%,-50%)!important;display:block!important;width:clamp(108px,33vw,150px)!important;aspect-ratio:655/391!important;background:linear-gradient(90deg,var(--triq-loader-start),var(--triq-loader-end))!important;-webkit-mask:url('/assets/triq-logo-blue.png') center/contain no-repeat!important;mask:url('/assets/triq-logo-blue.png') center/contain no-repeat!important;isolation:isolate;overflow:hidden!important}
html body .triq-loader-mark::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 25%,rgba(255,255,255,.10) 38%,rgba(255,255,255,.83) 50%,rgba(255,255,255,.10) 62%,transparent 75%);transform:translateX(-110%);animation:triq-loader-glow 1.7s linear infinite}
@keyframes triq-loader-glow{from{transform:translateX(-110%)}to{transform:translateX(110%)}}
@media(prefers-reduced-motion:reduce){html body .triq-loader-mark::after{animation:none!important;transform:translateX(0)!important;opacity:.26!important}}
html[data-reduced-motion=true] body .triq-loader-mark::after{animation:none!important;transform:translateX(0)!important;opacity:.26!important}

html body #app#app .triq-empty-state[data-empty-compact]{min-height:145px!important;padding:20px 16px!important}
html body #app#app .triq-empty-state[data-empty-compact] .triq-empty-art{width:42px!important;height:42px!important;flex-basis:42px!important;border-radius:14px!important}
html body #app#app .triq-empty-state[data-empty-compact] .triq-empty-art svg{width:24px!important;height:24px!important}
