/* 5.4.68 — mobile-only final layer; desktop and motion assets untouched. */
.dria-mobile-sidebar-backdrop{display:none!important}
@media(max-width:700px){
 .dinhos-reef-ia-fullscreen .dinhos-reef-ia-wrap.keyboard-open{top:var(--dria-mobile-viewport-top,0px)!important;bottom:auto!important;height:var(--dria-mobile-viewport-height,100dvh)!important;min-height:0!important;max-height:none!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-app,.dinhos-reef-ia-wrap .dinhos-reef-ia-main{height:100%!important;min-height:0!important;min-width:0!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-content{flex:1 1 0%!important;height:auto!important;min-height:0!important;min-width:0!important;overflow:hidden!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-header{height:auto!important;min-height:52px!important;flex:0 0 auto!important;gap:6px!important;padding:4px max(8px,env(safe-area-inset-right)) 4px max(8px,env(safe-area-inset-left))!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-brand{min-width:0!important;flex:1 1 auto!important;overflow:hidden!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-greeting,.dinhos-reef-ia-wrap .dinhos-reef-ia-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-header-actions{flex:0 0 auto!important;gap:3px!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-header .dinhos-reef-ia-menu,.dinhos-reef-ia-wrap .dinhos-reef-ia-header .header-theme,.dinhos-reef-ia-wrap .dinhos-reef-ia-header .dria-cinematic-tools{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}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-header .dinhos-reef-ia-logo{width:30px!important;height:30px!important;flex:0 0 30px!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-login-button{max-width:88px!important;min-height:44px!important;white-space:normal!important;font-size:11px!important;line-height:1.15!important;text-align:center;padding:4px 5px!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-live-strip{flex:0 0 auto!important;min-height:0!important}
 .dinhos-reef-ia-wrap.keyboard-open .dinhos-reef-ia-live-strip,.dinhos-reef-ia-wrap.keyboard-open .dinhos-reef-ia-welcome{display:none!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-messages{flex:1 1 0%!important;min-height:0!important;min-width:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:10px 10px 14px!important;overscroll-behavior-y:contain!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-message{min-width:0!important;gap:7px!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-bubble{min-width:0!important;overflow-wrap:anywhere;word-break:normal;font-size:15px!important;line-height:1.6!important}
 .dinhos-reef-ia-wrap .dria-rich-table-wrap,.dinhos-reef-ia-wrap .dinhos-reef-ia-bubble pre{max-width:100%;overflow-x:auto!important;overscroll-behavior-x:contain}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-bubble img{max-width:100%;height:auto}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-form{flex:0 0 auto!important;box-sizing:border-box!important;width:calc(100% - 16px)!important;max-width:100%!important;margin:4px auto 0!important;gap:4px!important;position:relative!important;inset:auto!important;transform:none!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-form .dinhos-reef-ia-input{min-width:0!important;flex:1 1 100%!important;order:-1!important;width:100%!important;font-size:16px!important;min-height:44px!important;max-height:min(110px,25vh)!important;padding:8px 10px!important;overflow-y:auto!important;line-height:1.4!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-form .dria-composer-action{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;flex:0 0 44px!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-form .dria-composer-send{margin-left:auto!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-image-preview{order:-2!important;max-height:68px!important;min-height:0!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-footer{flex:0 0 auto!important;padding:4px 10px max(6px,env(safe-area-inset-bottom))!important;line-height:1.3!important}
 .dinhos-reef-ia-wrap.keyboard-open .dinhos-reef-ia-form{margin:4px auto 5px!important;padding:5px!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-sidebar{position:absolute!important;inset:0 auto 0 0!important;width:min(86vw,320px)!important;max-width:86vw!important;height:100%!important;min-height:0!important;overflow-y:auto!important;z-index:100002!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important;visibility:hidden;overscroll-behavior:contain}
 .dinhos-reef-ia-wrap.sidebar-open .dinhos-reef-ia-sidebar{visibility:visible}
 .dinhos-reef-ia-wrap.sidebar-open .dria-mobile-sidebar-backdrop{display:block!important;position:absolute;inset:0;z-index:100001;border:0;background:rgba(0,0,0,.5);padding:0;cursor:pointer}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-history-search{font-size:16px!important}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-history{min-height:90px!important;overscroll-behavior:contain}
 .dinhos-reef-ia-wrap .dinhos-reef-ia-history-item{min-height:44px!important}
 .dinhos-reef-ia-wrap .history-delete{opacity:1!important}
 .dinhos-reef-ia-wrap .dria-smart-menus{max-height:70dvh!important;overflow-y:auto!important;overscroll-behavior:contain}
}
@media(max-width:350px){.dinhos-reef-ia-wrap .dinhos-reef-ia-header .dinhos-reef-ia-logo{display:none!important}.dinhos-reef-ia-wrap .dinhos-reef-ia-greeting{font-size:12px!important}}
@media(max-width:700px) and (max-height:420px){.dinhos-reef-ia-wrap .dinhos-reef-ia-live-strip{display:none!important}}
/* 5.5.0 — zero-height sibling; showing the control never shifts the conversation. */
.dria-mobile-latest-holder{display:none!important}
@media(max-width:700px){
 .dinhos-reef-ia-wrap .dria-mobile-latest-holder:not([hidden]){display:block!important;position:relative;flex:0 0 0!important;height:0!important;min-height:0!important;z-index:4;pointer-events:none}
 .dinhos-reef-ia-wrap .dria-mobile-latest{position:absolute;right:12px;bottom:8px;pointer-events:auto;border:1px solid var(--dria-primary,#18c7e8);border-radius:24px;background:#142536;color:#f4fbff;padding:0 14px;min-height:44px;font-size:13px;font-weight:600;box-shadow:0 3px 12px #0003;white-space:nowrap}
 .dinhos-reef-ia-wrap.light-mode .dria-mobile-latest{background:#fff;color:#16354c}
 .dinhos-reef-ia-wrap.sidebar-open .dria-mobile-latest-holder{visibility:hidden}
}

/* 5.5.1 — preserve usable chat space on short visual viewports, including embedded IA. */
@media(max-width:700px){
 .dinhos-reef-ia-wrap .dria-smart-menu-close,.dinhos-reef-ia-wrap .dinhos-reef-ia-sidebar-close{min-width:44px!important;min-height:44px!important}
 .dinhos-reef-ia-wrap .dria-rich-table-wrap{touch-action:auto;overscroll-behavior-x:contain}
 .dinhos-reef-ia-wrap.dria-mobile-compact .dinhos-reef-ia-live-strip{display:none!important}
 .dinhos-reef-ia-wrap.dria-mobile-compact .dinhos-reef-ia-header{min-height:48px!important;padding-top:1px!important;padding-bottom:1px!important}
 .dinhos-reef-ia-wrap.dria-mobile-compact .dinhos-reef-ia-form .dinhos-reef-ia-input{max-height:58px!important;min-height:44px!important}
 .dinhos-reef-ia-wrap.dria-mobile-compact .dinhos-reef-ia-image-preview{max-height:44px!important}
 .dinhos-reef-ia-wrap.dria-mobile-compact .dria-smart-menus{max-height:min(52dvh,180px)!important}
 .dinhos-reef-ia-wrap.dria-mobile-compact .dinhos-reef-ia-footer{font-size:10px!important;padding-top:2px!important;padding-bottom:2px!important}
}
