/* Only the scrollbar is hidden. Overflow, touch, wheel and keyboard stay native. */
html,html body,html body *,html.s546-enhanced,html body .s546-enhanced{scrollbar-width:none!important;-ms-overflow-style:none!important;scrollbar-gutter:auto!important}
html::-webkit-scrollbar,html body::-webkit-scrollbar,html body *::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.s546-track{display:none!important;pointer-events:none!important}
/* Retire the old generated megaphone; the existing SVG is the only icon. */
body .chat-layout #chat-broadcast-open::before,body .chat-layout #chat-broadcast-open::after{content:none!important;display:none!important}
@media(max-width:899px){
 body .shell>.main>.topbar{display:grid!important;grid-template-columns:minmax(28px,1fr) max-content max-content!important;grid-template-areas:'context clock tools'!important;grid-template-rows:36px!important;min-height:52px!important;height:52px!important;gap:6px!important;padding:8px!important;direction:rtl;align-items:center!important}
 body .topbar .ws-page-context{grid-area:context;min-width:0;gap:6px;flex-wrap:nowrap}
 body .topbar .ws-page-context>div{min-width:0}
 body .topbar .ws-header-clock{grid-area:clock;justify-self:center;min-width:0;max-width:100%;margin:0!important;align-self:center}
 body .topbar .ws-header-clock .iran-clock{display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-width:70px;gap:0;line-height:1.5;white-space:nowrap}
 body .topbar .ws-header-clock [data-iran-date]{font-size:8px!important}
 body .topbar .ws-header-clock [data-iran-time]{font-size:11px!important;font-variant-numeric:tabular-nums}
 body .topbar .topbar-tools{grid-area:tools;margin:0!important;min-width:0;width:auto!important}
 body .topbar .topbar-actions{display:flex!important;flex-flow:row nowrap!important;gap:6px!important;width:auto!important;align-items:center;justify-content:flex-end}
 body .topbar .topbar-actions>button,body .topbar .mobile-menu{width:32px!important;min-width:32px!important;max-width:32px!important;flex:0 0 32px!important;height:36px!important;min-height:36px!important;padding:0!important;margin:0!important;border-radius:9px;position:relative}
 body .topbar .topbar-actions>button svg{width:18px;height:18px}
 body .topbar .topbar-actions .avatar,body .topbar .topbar-actions .avatar img{width:26px!important;height:26px!important;min-width:26px!important}
 body .topbar .personal-role-switch{font-size:0!important}
 body .topbar .personal-role-switch::before{content:'⇄';font-size:20px}
 body .chat-layout .m527-app-actions{gap:8px!important}
 body .chat-layout #chat-broadcast-open{position:relative;gap:0!important}
}
@media(max-width:620px){
 body .topbar .ws-page-context>div{display:none!important}
 body .topbar .student500-picker{max-width:32px;min-width:0;overflow:hidden;font-size:0}
 body .topbar .student500-picker select{max-width:32px;min-width:0;padding:0}
 body .shell>.main>.topbar{grid-template-columns:minmax(28px,1fr) max-content max-content!important}
}
@media(max-width:359px){
 body .shell>.main>.topbar{padding-inline:6px!important;gap:5px!important}
 body .topbar .topbar-actions{gap:5px!important}
 body .topbar .topbar-actions>button,body .topbar .mobile-menu{width:28px!important;min-width:28px!important;max-width:28px!important;flex-basis:28px!important}
 body .topbar .ws-header-clock .iran-clock{min-width:66px}
 body .topbar .topbar-actions:has(>button:nth-child(7)){gap:4px!important}
 body .topbar .topbar-actions:has(>button:nth-child(7))>button{width:24px!important;min-width:24px!important;max-width:24px!important;flex-basis:24px!important}
}
