/* Match the image frame in login and registration; form changes do not resize the brand. */
.auth547-mobile-title{display:none!important}
body.auth-active.auth547{height:100dvh;max-height:100dvh;overflow:hidden!important}
body.auth-active.auth547 #app{height:100dvh;min-height:0!important;overflow:hidden}
body.auth-active .auth-layout:is(:has(#login),:has(#registration-inline)){height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow:hidden;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);margin:0!important;padding:0!important}
body.auth-active .auth-layout:is(:has(#login),:has(#registration-inline)) .auth-brand{width:100%!important;height:100%;min-height:0!important;padding:0!important;margin:0!important;display:block;overflow:hidden;border-radius:0!important}
body.auth-active .auth-layout:is(:has(#login),:has(#registration-inline)) .auth-form-side{height:100%;min-height:0!important;width:100%;padding:0!important;display:flex;align-items:safe center;justify-content:center;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;border-radius:0!important}
body.auth-active.auth547 .auth-registration{box-sizing:border-box;margin:0!important;flex-shrink:0}
/* Single-line controls must never receive a decorative scroll rail. */
.i543-date-control{min-width:0;max-width:100%;box-sizing:border-box;overflow:clip;display:grid!important;grid-template-columns:minmax(0,1fr)}
.i543-date-control>input{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box;overflow:hidden!important;scrollbar-width:none!important}
.i543-date-control>input::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
@media(max-width:899px){
 .m541-tabs,.pr397-tabs{scrollbar-width:none!important;-ms-overflow-style:none;padding-bottom:4px!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch}
 .m541-tabs::-webkit-scrollbar,.pr397-tabs::-webkit-scrollbar{display:none!important;height:0!important;width:0!important}
 /* Chat: brand stays beside menu; four actions stay on one line. */
 body .chat-layout .chat-app-header.m527-app-header{display:flex!important;direction:rtl;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:8px!important;padding:8px!important;min-width:0;box-sizing:border-box}
 body .chat-layout .m527-app-brand{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;text-align:right!important}
 body .chat-layout .m527-app-brand>div{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:center!important;width:auto!important;min-width:0;text-align:right!important;margin:0!important;gap:1px}
 body .chat-layout .m527-app-brand strong{font-size:12px;line-height:1.6;white-space:nowrap;text-align:right!important;margin:0!important}
 body .chat-layout .m527-app-brand small{display:block;font-size:9px;line-height:1.5;white-space:nowrap;max-width:110px;overflow:hidden;text-overflow:ellipsis;text-align:right!important}
 body .chat-layout .m527-app-actions{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex:0 0 auto!important;width:auto!important;margin:0!important}
 body .chat-layout .m527-app-actions>button,body .chat-layout #chat-app-menu{display:inline-flex!important;align-items:center;justify-content:center;width:34px!important;min-width:34px!important;max-width:34px;flex:0 0 34px!important;height:36px!important;min-height:36px;margin:0!important;padding:0!important;box-sizing:border-box}
 body .chat-layout .m527-broadcast>span{display:none!important}
 /* University shell: actions form a stable row even at 320px. */
 body .shell>.main>.topbar{display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;grid-template-areas:'context tools' 'clock clock';align-items:center!important;gap:5px 8px!important;padding:9px 10px!important;min-height:64px;box-sizing:border-box}
 body .topbar .ws-page-context{grid-area:context;display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden}
 body .topbar .ws-page-context>div{min-width:0;overflow:hidden}
 body .topbar .ws-page-context small,body .topbar .ws-page-context strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body .topbar .ws-page-context small{font-size:8px;line-height:1.5}
 body .topbar .ws-page-context strong{font-size:11px;line-height:1.6}
 body .topbar .topbar-tools{grid-area:tools;display:flex!important;flex-flow:row nowrap!important;align-items:center;min-width:0;width:max-content!important;max-width:none;gap:0!important;margin:0!important}
 body .topbar .topbar-search{display:none!important}
 body .topbar .topbar-actions{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-end;gap:8px!important;min-width:0;width:max-content!important;margin:0!important}
 body .topbar .topbar-actions>button{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px;height:36px!important;min-height:36px;margin:0!important;padding:0!important;box-sizing:border-box}
 body .topbar .topbar-actions .avatar,body .topbar .topbar-actions .avatar img{width:28px!important;height:28px!important;min-width:28px!important;border-radius:50%}
 body .topbar .topbar-actions .notification-label{display:none!important}
 body .topbar .ws-header-clock{grid-area:clock;justify-self:end;display:flex;align-items:center;gap:6px;min-width:0;font-size:9px;line-height:1.4;margin:0!important}
 body .topbar .ws-header-clock *{font-size:9px!important}
 body .topbar .mobile-menu{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 32px;width:32px!important;min-width:32px;height:36px;padding:0;margin:0}
 .i540-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:16px}
 .i540-hero>.row-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;width:100%;margin:0}
 .i540-hero>.row-actions>.btn{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;height:40px;min-height:40px;margin:0;padding:8px 9px;font-size:11px;white-space:nowrap}
}
@media(max-width:767px){
 body.auth-active .auth-layout:is(:has(#login),:has(#registration-inline)){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:25dvh minmax(0,1fr)!important}
 body.auth-active.auth547 .auth-brand-inner.login388-frame{height:100%!important;min-height:0;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;grid-template-rows:minmax(0,4fr) minmax(30px,1fr)!important;gap:0!important}
 body.auth-active.auth547 .login388-frame>.login388-second,body.auth-active.auth547 .login388-frame>.login385-text-area,body.auth-active.auth547 .login388-frame>.login389-overlay{display:none!important}
 body.auth-active.auth547 .login388-frame>.login385-logo-area{display:flex!important;grid-row:1;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;min-height:0;overflow:hidden;margin:0!important;padding:0!important;border-radius:0!important}
 body.auth-active.auth547 .login388-frame>#auth547-mobile-title{display:flex!important;grid-row:2;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;height:100%;margin:0!important;padding:3px 12px!important;font-size:clamp(11px,3.2vw,15px)!important;font-weight:700;line-height:1.55!important;text-align:center;color:#fff!important;white-space:nowrap;background:#06274f}
 body.auth-active.auth547 .auth-form-side{min-height:0!important;max-height:75dvh!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0!important;border-radius:0!important}
 body.auth-active.auth547 .auth-form-side:has(#registration-inline){align-items:flex-start!important}
 body.auth-active.auth547 #registration-inline.auth-registration{max-width:460px;width:100%;padding:12px 20px!important;margin:0!important;border:0;border-radius:0!important;box-shadow:none}
 body.auth-active.auth547 #registration-inline .auth-card-top h2{font-size:21px;margin:3px 0}
 body.auth-active.auth547 #registration-inline .form-grid{gap:8px}
 body.auth-active.auth547 #registration-inline .field{margin:5px 0;gap:4px;font-size:12px}
 body.auth-active.auth547 #registration-inline input:not([type=checkbox]):not([type=radio]),body.auth-active.auth547 #registration-inline select{min-height:40px;font-size:16px}
 body.auth-active.auth547 #registration-inline .form-actions{display:flex;gap:8px;flex-wrap:nowrap}
 body.auth-active.auth547 #registration-inline .form-actions>.btn{flex:1 1 0;min-width:0;width:auto;min-height:40px}
 body.auth-active.auth547 #registration-inline [hidden]{display:none!important}
}
