/* One row: fixed identity and an independently scrollable action rail. */
html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-row{display:flex;flex-wrap:nowrap!important;align-items:center!important;gap:12px;height:auto;min-height:76px;padding:10px 16px;width:100%;max-width:1600px}
html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-brand{display:flex!important;flex:0 1 260px!important;width:auto;min-width:190px;max-width:280px;gap:10px;white-space:normal}
html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-brand>span{display:block!important;min-width:0}
html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-brand-copy{font-size:17px;line-height:1.2}
html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-row-actions{display:flex;flex:1 1 auto!important;flex-wrap:nowrap!important;align-items:center;justify-content:flex-start!important;width:auto!important;min-width:0;margin-left:auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--pc-line) transparent;padding:5px 3px 8px;gap:6px}
html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host :is(.cms-top-shortcuts,.avvisi-top-shortcuts){display:flex;flex:0 0 auto!important;flex-wrap:nowrap!important;gap:5px}
.portal-admin-host .portal-row-actions :is(.portal-row-menu,.portal-row-icon){flex-shrink:0}
.portal-admin-host .portal-row-dropdown [hidden]{display:none!important}
html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-row-menu[open]>.portal-row-dropdown{position:fixed!important;top:var(--portal-toolbar-bottom,80px)!important;right:12px;left:auto;width:280px;max-width:calc(100vw - 24px);margin:6px 0 0;max-height:calc(100dvh - var(--portal-toolbar-bottom,80px) - 18px)}
html body.avvisi-navigation-ready .avvisi-toolbar-state{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;margin:0;white-space:nowrap}
[data-avvisi-shortcut=save][data-save-state]:after{content:'';position:absolute;right:4px;bottom:4px;width:6px;height:6px;border-radius:50%;background:#267852}[data-avvisi-shortcut=save][data-save-state=pending]:after{background:#bb7a24}
@media(max-width:1100px){html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-brand{flex:0 0 190px!important;min-width:190px;max-width:190px}html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-brand img{width:36px;height:36px}html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-brand-copy{font-size:15px}html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-brand-copy small{font-size:10px}}
@media(max-width:560px){html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-row{padding:8px;gap:8px;min-height:72px}html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-brand{flex:0 0 145px!important;min-width:145px;max-width:145px;gap:8px}html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-brand img{width:30px;height:30px}html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-brand-copy{font-size:13px;line-height:1.25}html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-brand-copy small{font-size:9px;line-height:1.4}html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .cms-top-menu{width:40px;min-width:40px;height:44px}}

/* Auto space belongs before the first action: right aligned when room exists,
   zero when overflowing so the first action remains reachable. */
html body:is(.portal-navigation-ready,.avvisi-navigation-ready) .portal-admin-host .portal-row-actions::before{content:"";margin-left:auto;flex:0 0 0}
