/* RESPONDO · calm mobile workspace v11
   Repair genuine overlap from legacy flex / grid / absolute header layouts.
   One orderly two-row header: brand + menu; company + languages. All core
   actions remain usable without digging through the drawer. No JS changes. */
@media(max-width:760px){
  #app .dashboard-premium-shell:not(.demo-dashboard-shell) .dashboard-simple-main
  > .dashboard-topbar.dashboard-has-drawer{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) max-content!important;
    grid-template-rows:48px minmax(44px,auto)!important;
    gap:8px 10px!important;
    align-items:center!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    padding:10px 13px 11px!important;
    margin:0 0 13px!important;
    border-radius:17px!important;
    position:sticky!important;top:8px!important;
    isolation:isolate;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  /* Allow the logo and company chooser to occupy different grid tracks.
     Prevent the flag picker from floating over either the select or Menu. */
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-topbar.dashboard-has-drawer > .dashboard-topbar-brand{
    display:contents!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-topbar.dashboard-has-drawer .dashboard-topbar-brand > .logo{
    display:flex!important;
    grid-column:1!important;grid-row:1!important;
    align-self:center!important;justify-self:start!important;
    order:0!important;margin:0!important;padding:0!important;
    position:relative!important;min-width:0!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-topbar.dashboard-has-drawer .dashboard-topbar-brand > .dashboard-workspace{
    display:flex!important;flex-direction:column!important;
    grid-column:1!important;grid-row:2!important;
    align-self:center!important;justify-self:stretch!important;
    order:0!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    padding:0!important;margin:0!important;
    position:relative!important;inset:auto!important;transform:none!important;
    z-index:1!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-topbar.dashboard-has-drawer .dashboard-workspace small{
    display:block!important;margin:0 0 3px!important;
    font-size:9px!important;letter-spacing:.14em!important;
    color:#a9c5e8!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-topbar.dashboard-has-drawer .workspace-switcher{
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:40px!important;min-height:40px!important;
    padding:0 27px 0 10px!important;
    background:#132f50!important;color:#eef6ff!important;
    border:1px solid rgba(170,209,255,.35)!important;
    border-radius:11px!important;box-sizing:border-box!important;
    font-size:12px!important;font-weight:650!important;
    text-overflow:ellipsis!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-topbar.dashboard-has-drawer > .premium-language-picker{
    display:flex!important;grid-column:2!important;grid-row:2!important;
    order:0!important;justify-self:end!important;align-self:end!important;
    position:static!important;inset:auto!important;transform:none!important;
    width:max-content!important;min-width:0!important;
    max-width:min(43vw,162px)!important;
    margin:0!important;padding:0!important;z-index:1!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-topbar.dashboard-has-drawer > .premium-language-picker .app-language-switch{
    display:flex!important;align-items:center!important;
    justify-content:center!important;gap:4px!important;
    width:auto!important;max-width:100%!important;min-width:0!important;
    min-height:40px!important;height:40px!important;
    padding:3px 5px!important;margin:0!important;
    border:1px solid rgba(173,209,255,.27)!important;
    border-radius:12px!important;
    background:rgba(166,198,242,.10)!important;
    box-sizing:border-box!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-topbar.dashboard-has-drawer > .premium-language-picker .app-language-option{
    display:grid!important;place-items:center!important;
    width:clamp(29px,9.3vw,38px)!important;
    height:34px!important;min-width:0!important;
    border-radius:8px!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-topbar.dashboard-has-drawer > .dashboard-menu-toggle{
    display:inline-flex!important;
    grid-column:2!important;grid-row:1!important;
    justify-self:end!important;align-self:center!important;order:0!important;
    position:relative!important;inset:auto!important;transform:none!important;
    flex:0 0 auto!important;
    min-width:96px!important;max-width:100%!important;
    width:auto!important;height:44px!important;min-height:44px!important;
    padding:0 11px!important;border-radius:11px!important;
    background:rgba(169,208,255,.10)!important;
    box-sizing:border-box!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-topbar.dashboard-has-drawer > .dashboard-menu-toggle .dashboard-menu-label{
    display:inline!important;font-size:12px!important;
  }
  /* The same action was rendered twice (Menu in header and All sections
     inside the hero). Keep the labelled header Menu; remove duplicate. */
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-head[data-dashboard-view="overview"]{
    padding:19px 17px 18px!important;
    margin:0 0 11px!important;
    border-radius:18px!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-head[data-dashboard-view="overview"] .section-kicker{
    font-size:9px!important;letter-spacing:.12em!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-head[data-dashboard-view="overview"] h1{
    font-size:clamp(26px,7vw,31px)!important;
    line-height:1.12!important;margin:10px 0 7px!important;
    max-width:100%!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-head[data-dashboard-view="overview"] p{
    font-size:12px!important;line-height:1.47!important;
    margin:0!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-head-mobile-hint{display:none!important}
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-head-mobile-links{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;margin:15px 0 0!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-head-mobile-links button{
    min-height:44px!important;height:auto!important;
    padding:10px 12px!important;border-radius:11px!important;
    font-size:12px!important;line-height:1.25!important;
    box-shadow:none!important;letter-spacing:0!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-head-mobile-links .dashboard-head-mobile-test{
    grid-column:1/-1!important;
    min-height:47px!important;padding:11px 13px!important;
    background:linear-gradient(110deg,#e1eeff,#b9d8ff)!important;
    color:#0b213c!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-head-mobile-links
  :is(.dashboard-head-mobile-setup,.dashboard-head-mobile-answers){
    min-height:45px!important;
    border:1px solid rgba(177,214,255,.27)!important;
    background:rgba(154,199,255,.08)!important;color:#e4f0ff!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-head-mobile-links .dashboard-head-mobile-menu{
    display:none!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-simple-main > .stats[data-dashboard-view="overview"]{
    gap:10px!important;margin-top:0!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-simple-main > .stats[data-dashboard-view="overview"] .stat{
    min-height:100px!important;
    padding:13px!important;
    border-radius:16px!important;
    box-shadow:none!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .stats[data-dashboard-view="overview"] .stat b{
    font-size:clamp(27px,7vw,35px)!important;line-height:1.15!important;
  }
}
/* Narrow iPhones: let flags have their own row, never shrink the company
   selector beneath its usable width or overlap the right-hand Menu button. */
@media(max-width:360px){
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-simple-main > .dashboard-topbar.dashboard-has-drawer{
    grid-template-rows:46px 51px 38px!important;
    row-gap:5px!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-topbar.dashboard-has-drawer .dashboard-topbar-brand > .dashboard-workspace{
    grid-column:1/-1!important;grid-row:2!important;
  }
  #app .dashboard-premium-shell:not(.demo-dashboard-shell)
  .dashboard-topbar.dashboard-has-drawer > .premium-language-picker{
    grid-column:1/-1!important;grid-row:3!important;
    justify-self:center!important;align-self:center!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #app .dashboard-premium-shell .dashboard-topbar.dashboard-has-drawer,
  #app .dashboard-premium-shell .dashboard-head-mobile-links button{
    transition:none!important;
  }
}
