.topbar-leading {min-width:0;flex:1 1 auto;}
.topbar-leading>div {min-width:0;}
/* Preserve a readable screen title when the desktop shell has many controls. */
@media(min-width:761px) and (max-width:1600px){
  .topbar-leading{min-width:110px;max-width:230px;}
  .topbar-actions{gap:10px;min-width:0;}
  .topbar .command-trigger{min-width:42px;width:42px;padding:0;justify-content:center;flex-shrink:0;}
  .topbar .command-trigger .command-copy,.topbar .command-trigger kbd{display:none;}
}
.topbar-title {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;line-height:1.2;max-height:2.4em;}
@media(max-width:700px){.topbar-title{font-size:13px;}}
/* Phone navigation must never share a shrinking slot with header actions. */
@media(max-width:760px){
  .topbar{height:auto;min-height:66px;display:flex;flex-wrap:wrap;gap:8px;padding:8px 12px;box-sizing:border-box;}
  .topbar-leading{flex:0 0 100%;width:100%;gap:10px;}
  .topbar-leading .mobile-menu{flex:0 0 44px;width:44px;height:44px;display:grid;place-items:center;}
  .topbar-leading>div{flex:1 1 0;}
  .topbar-actions{flex:0 0 100%;width:100%;min-width:0;flex-wrap:wrap;gap:8px;}
  .topbar-actions>.command-trigger{flex:0 0 44px;min-width:44px;height:44px;}
  .topbar-actions>.account-menu{margin-left:auto;}
  .topbar-actions>.account-menu>summary{min-width:44px;min-height:44px;}
  body.sidebar-collapsed .sidebar.is-open,html.sidebar-state-collapsed .sidebar.is-open{transform:none;}
}
