/* Named navigation, including in compact mode. */
.thread-back{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:7px 11px;border:1px solid #ccd9ce;border-radius:9px;background:#fff;color:var(--green);font-weight:600;white-space:nowrap;text-decoration:none}
.thread-back:hover{background:#f0f5eb;text-decoration:none}
.sidebar .nav-icon svg{display:block;width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sidebar nav a:focus-visible,.sidebar-toggle:focus-visible{outline:2px solid var(--lime);outline-offset:-3px}
@media(min-width:1101px){
 .sidebar{width:230px;padding:18px 12px;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#779387 #183b32}
 .studio{margin-left:230px;min-width:0}
 .sidebar-head{margin-bottom:16px;gap:6px}
 .sidebar-head .brand{gap:8px;font-size:10px}
 .sidebar-head .brand strong{font-size:25px}
 .sidebar-head .brand-icon{width:36px;height:38px;border-radius:11px;font-size:24px;flex-shrink:0}
 .sidebar-toggle{width:42px;flex:0 0 42px;height:42px;display:flex;flex-direction:column;gap:1px;justify-content:center;transform:none!important;font-size:20px}
 .sidebar-toggle::after{content:'Compact';font-size:8px;font-weight:600;line-height:1.1}
 .sidebar #studio-navigation{display:grid;grid-template-columns:1fr;gap:3px}
 .sidebar #studio-navigation a{min-width:0;min-height:42px;width:100%;padding:8px 10px;gap:10px;border-radius:9px;font-size:12px}
 .sidebar #studio-navigation a .nav-icon{flex:0 0 23px;width:23px;height:23px;display:grid;place-items:center}
 .sidebar #studio-navigation .workspace-label{margin:10px 4px 3px;padding:6px;font-size:8px}
 body.sidebar-collapsed .sidebar{width:96px;min-width:96px;max-width:96px;padding:12px 7px;scrollbar-width:thin}
 body.sidebar-collapsed .studio{margin-left:96px}
 body.sidebar-collapsed .sidebar-head{flex-direction:column;gap:8px;margin:0 0 12px}
 body.sidebar-collapsed .sidebar-head .brand-icon{width:36px;height:38px}
 body.sidebar-collapsed .sidebar-toggle{width:68px;flex-basis:38px;height:38px;min-height:38px}
 body.sidebar-collapsed .sidebar-toggle::after{content:'Expand';font-size:9px}
 body.sidebar-collapsed #studio-navigation a{flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:60px;height:auto;padding:7px 3px;text-align:center}
 body.sidebar-collapsed #studio-navigation a .nav-label{display:block!important;width:100%;font-size:10px;line-height:1.18;font-weight:600;white-space:normal;overflow-wrap:normal;word-break:normal}
 body.sidebar-collapsed #studio-navigation a .nav-icon{flex:0 0 22px;width:22px;height:22px;font-size:21px}
 body.sidebar-collapsed #studio-navigation .workspace-label{display:block!important;width:100%;margin:8px 0 2px;padding:7px 0 0;border-top:1px solid #ffffff22;font-size:7px;line-height:1.4;letter-spacing:.07em;text-align:center}
 .studio .topbar{display:grid;grid-template-columns:auto minmax(150px,1fr) auto auto;align-items:center;gap:14px;height:auto;min-height:74px;padding:12px 24px;font-size:12px}
 .topbar .topbar-business-zone{min-width:0;gap:0}
 .topbar .topbar-workspace{min-width:0;max-width:260px;width:100%;padding:6px 10px;gap:8px}
 .topbar-workspace>span{min-width:0;flex:1}
 .topbar .topbar-product{display:none}
 .topbar .toolbar-actions{flex-wrap:nowrap;gap:12px;font-size:12px}
 .topbar .toolbar-actions>a{white-space:nowrap}
 .topbar .toolbar-actions .button{padding:10px 12px;min-height:40px}
 .topbar .toolbar-actions b{padding:2px 5px;font-size:11px}
 .topbar .user{display:flex;align-items:center;gap:10px;min-width:0}
 .topbar .user>span{display:block;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--muted)}
 .topbar .user form{margin:0;flex-shrink:0}.topbar .user button{white-space:nowrap;font-size:12px;padding:6px}
 .topbar .topbar-icon{width:34px;height:34px;flex-shrink:0}
}
@media(min-width:1101px) and (max-width:1350px){.studio .topbar{gap:10px;padding-inline:16px}.topbar .user>span{display:none}.topbar .toolbar-actions{gap:10px}}
@media(max-width:1100px){.thread-back{order:-1;font-size:12px;min-height:36px}.topbar .topbar-workspace>span{min-width:0}.topbar .topbar-business-zone{min-width:0;flex:1}.sidebar-toggle{transform:none!important}}
@media(prefers-reduced-motion:reduce){.sidebar,.studio{transition:none}}
