/* Keep navigation and sign-out reachable at reduced browser viewport heights. */
.sidebar{height:100vh;height:100dvh;overflow:hidden}
.sidebar-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#43516a transparent;padding-right:3px}
.sidebar-foot{flex:0 0 auto;margin-top:12px}
.sidebar-foot .system-status{margin:8px 10px 12px}
.profile-info{min-width:0}.profile-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar{position:sticky;top:0;z-index:20;min-width:0;flex-shrink:0}
.top-actions{min-width:0;gap:12px}.top-logout{flex-shrink:0;min-height:34px;color:#526079}
.top-search{flex-shrink:1;min-width:32px;width:210px}.top-search span{white-space:nowrap}
.topbar .breadcrumb{min-width:0;white-space:nowrap}
.page-head>div:first-child{min-width:0}.page-head .actions{flex-shrink:0}
.task-title{overflow-wrap:anywhere}.task-info{min-width:0}

@media(max-height:760px) and (min-width:721px){
  .sidebar{padding-top:16px;padding-bottom:12px}
  .sidebar .brand{padding-bottom:17px}
  .sidebar .org-box{margin-bottom:19px;padding:10px}
  .sidebar .nav-item{padding-top:10px;padding-bottom:10px}
  .sidebar .nav-divider{margin-top:16px;margin-bottom:16px}
  .sidebar .profile{padding-top:12px}
  .sidebar .system-status{margin:4px 10px 9px}
  .topbar{height:58px}
  .content{padding-top:22px}
  .page-head{margin-bottom:20px}
  .page-head .actions{padding-top:10px}
  .stats{margin-bottom:20px}
  .stats .stat{padding-top:14px;padding-bottom:14px}
}
@media(max-width:1280px) and (min-width:721px){
  .dashboard-grid{grid-template-columns:minmax(0,1fr)}
  .dashboard-grid>.side-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .dashboard-grid>.side-column>.activity-panel{grid-column:1/-1}
  .top-actions .date{display:none}
}
@media(max-width:1100px){
  .top-actions>.badge{display:none}
  .page-head{flex-wrap:wrap;gap:14px}
  .page-head .actions{padding-top:0}
}
@media(max-width:1000px) and (min-width:721px){
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .top-search{width:160px}
  .top-search .key{display:none}
}
@media(max-width:720px){
  .sidebar{padding:12px 8px}
  .sidebar-scroll{padding-right:0}
  .sidebar .brand{padding-bottom:17px}
  .sidebar .nav-items{gap:5px;margin-bottom:12px}
  .sidebar .nav-item{padding:11px}
  /* 2026-11-19：退出登录在头像菜单里，窄屏只留头像 */
  .sidebar-foot .system-status,.sidebar-foot .side-btn,.sidebar-foot .profile-info,.sidebar-foot .profile-more{display:none!important}
  .sidebar-foot .foot-row{justify-content:center}
  .topbar{padding:0 12px;gap:8px}
  .top-actions{gap:4px}
  .topbar .breadcrumb{font-size:12px;gap:5px}
  .topbar .breadcrumb strong{max-width:64px;overflow:hidden;text-overflow:ellipsis}
  .top-actions .top-search{width:30px;min-width:30px;padding:5px}
  .top-logout{font-size:12px;min-height:32px;padding:6px 8px;gap:5px}
  .top-logout svg{width:13px;height:13px}
  .top-actions>[data-route=tasks]{display:none}
}
@media(max-width:480px){
  .topbar .breadcrumb{display:none}
  .top-actions{width:100%;justify-content:flex-end}
  .top-actions>[data-install-xuli]{margin-right:auto}
}
@media(max-width:380px){
  .topbar .breadcrumb{font-size:0;gap:0}.topbar .breadcrumb>svg{display:none}.topbar .breadcrumb strong{font-size:12px}
  .top-actions .top-search{display:none}
}
