/* AssiSeek final responsive/auth/chat repair — loaded after all theme styles */
*,*::before,*::after{box-sizing:border-box}
html,body{max-width:100%;min-width:0!important;overflow-x:clip}
button,input,textarea,select{font:inherit}
/* Auth: allow the complete form to scroll naturally instead of clipping it into a viewport-height card. */
.auth-wrapper{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;align-items:flex-start!important;padding:16px!important;flex:1 0 auto!important}
.auth-card{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;align-items:stretch!important}
.auth-card__forms{min-width:0!important;min-height:0!important;overflow:visible!important}
.form-panel{min-width:0!important;max-width:100%!important}
.form-panel form{width:100%!important;min-width:0!important}
.form-group{display:block!important;width:100%!important;min-width:0!important;margin:0 0 14px!important}
.form-group>label{display:block!important;margin:0 0 6px!important;line-height:1.35!important}
.input-icon{display:flex!important;align-items:center!important;gap:9px!important;width:100%!important;min-width:0!important;min-height:48px!important;position:relative!important}
.input-icon>i{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 18px!important;width:18px!important;min-width:18px!important;margin:0!important;line-height:1!important}
.input-icon>input{display:block!important;flex:1 1 0!important;width:1%!important;min-width:0!important;max-width:100%!important;height:48px!important;min-height:48px!important;margin:0!important;padding:0 12px!important;border-radius:11px!important;font-size:16px!important;line-height:1.25!important}
.input-icon__toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 40px!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;margin:0!important;border-radius:10px!important}
.field-status,.field-hint{display:block!important;max-width:100%!important;line-height:1.45!important;overflow-wrap:anywhere}
.form-options{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;margin:12px 0!important}
.checkbox-label,.checkbox-group .checkbox-label{display:flex!important;align-items:flex-start!important;gap:9px!important;width:100%!important;min-width:0!important;line-height:1.5!important}
.checkbox-label>input[type=checkbox],input[type=checkbox]#rememberMe,input[type=checkbox]#agreeTerms{appearance:auto!important;-webkit-appearance:checkbox!important;display:inline-block!important;flex:0 0 18px!important;width:18px!important;min-width:18px!important;height:18px!important;min-height:18px!important;max-width:18px!important;margin:3px 0 0!important;padding:0!important;accent-color:#7860ff!important;box-shadow:none!important}
.checkbox-label span{display:block!important;flex:1 1 auto!important;min-width:0!important;overflow-wrap:anywhere}
.checkbox-group{width:100%!important;min-width:0!important;margin:12px 0!important}
.form-panel .btn--primary,.form-panel .btn--biometric{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;max-width:100%!important;min-height:46px!important;height:auto!important;white-space:normal!important;line-height:1.35!important;padding:12px 16px!important}
.social-row{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;gap:9px!important}
.social-btn{display:inline-flex!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;align-items:center!important;justify-content:center!important}
.captcha-wrapper{width:100%!important;min-width:0!important;overflow:hidden!important}
.captcha-slot,.captcha-slot>*{max-width:100%!important;min-width:0!important}
.captcha-wrapper__head{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important}
.captcha-wrapper__head span{min-width:0!important}
.captcha-wrapper__head small{margin-left:auto!important;white-space:nowrap!important}
.auth-brand__features{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 14px!important}
.auth-brand__features li{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important}
.auth-brand__features li i{flex:0 0 18px!important}
.auth-brand__features li span{min-width:0!important;overflow-wrap:anywhere}
/* Chat: remove the row of quick-action buttons above the composer as requested. */
.input-tools-bar,.input-tools-left,.composer-capabilities{display:none!important}
.chat-page{height:100dvh!important;min-height:100dvh!important;overflow:hidden!important}
.app-topbar{flex:0 0 auto!important;min-height:56px!important;z-index:120!important}
.chat-container.redesigned-chat{height:calc(100dvh - 56px)!important;min-height:0!important;max-height:calc(100dvh - 56px)!important;overflow:hidden!important}
.chat-area{min-width:0!important;min-height:0!important;overflow:hidden!important}
.messages-area{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important}
.input-area{flex:0 0 auto!important;min-width:0!important;padding-bottom:max(10px,env(safe-area-inset-bottom))!important}
.input-wrapper,#messageInput,.message-input{min-width:0!important;max-width:100%!important}
/* Profile navigation and page controls should remain reachable and not spill out of their cards. */
.profile-container,.profile-content,.profile-grid,.settings-grid{min-width:0!important;max-width:100%!important}
.profile-nav,.profile-sidebar,.profile-menu{min-width:0!important;max-width:100%!important}
@media(max-width:767px){
 .auth-wrapper{padding:10px 8px 18px!important}
 .auth-card{display:flex!important;flex-direction:column!important;width:100%!important;border-radius:18px!important}
 .auth-brand{padding:18px 14px!important;min-width:0!important}
 .auth-brand__inner{width:100%!important;max-width:100%!important}
 .auth-brand__logo{width:52px!important;height:52px!important;margin:0 auto 8px!important}
 .auth-brand__logo img{max-width:100%!important;max-height:100%!important;object-fit:contain!important}
 .auth-brand__title{font-size:23px!important;line-height:1.2!important;text-align:center!important}
 .auth-brand__subtitle{font-size:12px!important;line-height:1.5!important;text-align:center!important}
 .auth-brand__features{grid-template-columns:repeat(2,minmax(0,1fr))!important;font-size:11px!important}
 .auth-brand__footer{display:flex!important;justify-content:center!important;flex-wrap:wrap!important;gap:6px!important}
 .auth-card__forms{padding:18px 14px 20px!important;width:100%!important}
 .form-panel__header h2{font-size:22px!important;line-height:1.25!important}
 .form-panel__header p{font-size:14px!important;line-height:1.5!important}
 .form-options{align-items:flex-start!important;justify-content:flex-start!important}
 .forgot-link{margin-left:auto!important}
 .form-footer{padding:14px 0 0!important;line-height:1.5!important}
 .chat-page{height:100dvh!important}
 .app-topbar{display:flex!important;align-items:center!important;gap:8px!important;padding:6px 8px!important}
 .topbar-brand-copy span,.topbar-center,.topbar-actions .topbar-action,.topbar-actions .topbar-icon,.topbar-divider{display:none!important}
 .topbar-actions{margin-left:auto!important;display:flex!important;align-items:center!important;gap:6px!important}
 .mobile-menu-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
 .chat-container.redesigned-chat{height:calc(100dvh - 56px)!important;max-height:calc(100dvh - 56px)!important;grid-template-columns:minmax(0,1fr)!important}
 .chat-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:62px!important;padding:8px 10px!important}
 .chat-header-main{flex:1 1 auto!important;min-width:0!important}
 .chat-title-row{min-width:0!important}
 .chat-title{max-width:min(48vw,220px)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:16px!important}
 .chat-header-tools{flex:0 0 auto!important;gap:4px!important}
 .chat-header-tools .chat-tool{width:34px!important;height:34px!important;min-width:34px!important;padding:0!important}
 .chat-stats-bar{display:none!important}
 .messages-list{padding:12px 10px 18px!important}
 .input-area{padding:8px 9px max(10px,env(safe-area-inset-bottom))!important}
 .input-wrapper{display:flex!important;align-items:flex-end!important;gap:8px!important;padding:8px!important}
 .input-wrapper textarea,#messageInput{flex:1 1 auto!important;width:1%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;max-height:30dvh!important;font-size:16px!important}
 .send-btn,.send-message-btn{flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
 .chat-sidebar{width:min(86vw,320px)!important;max-width:320px!important;z-index:500!important}
}
@media(min-width:768px) and (max-width:1100px){
 .auth-card{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)!important}
 .auth-brand{padding:24px 18px!important}
 .auth-card__forms{padding:24px!important}
}
