.mobile-menu-toggle,.mobile-nav-close,.mobile-nav-scrim{display:none}

@media(max-width:1100px){
  .login-page{min-height:100dvh;height:auto;padding-top:64px;overflow-x:hidden;overflow-y:auto}
  .login-page::before{background-size:420px 300px,560px 360px}
  .login-workbench,.login-page .login-workbench{display:block;flex:none;width:min(520px,calc(100% - 32px));height:auto;min-height:0;margin:28px auto 36px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
  .login-brand-panel{display:none}
  .login-access-panel{display:block;min-height:0;padding:0;background:transparent}
  .login-access-panel::before{display:none}
  .login-card{width:100%;padding:30px 32px 24px;border:1px solid #dbe5f2;border-radius:16px;box-shadow:0 16px 44px #31557820}
  .login-site-footer{margin-top:auto}

  #app.app{display:block;height:100dvh;min-height:0;overflow:hidden}
  #app.app>aside{position:fixed;inset:0 auto 0 0;z-index:41;width:min(300px,85vw);height:100dvh;visibility:hidden;transform:translateX(-100%);transition:transform .2s ease,visibility .2s;box-shadow:10px 0 35px #12233a26}
  #app.app.mobile-nav-open>aside{visibility:visible;transform:translateX(0)}
  #app.app .mobile-nav-scrim{display:none}
  #app.app.mobile-nav-open .mobile-nav-scrim{display:block;position:fixed;inset:0;z-index:40;background:#12233a66}
  #app.app>aside .logo{flex:none}
  #app.app #nav{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
  #app.app>main{height:100dvh;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain}
  #app.app>main>.business-main-header{position:sticky;top:0;z-index:10;min-height:64px;height:64px;gap:10px;padding:8px 16px}
  #app.app>main>#content{padding:14px 16px 24px}
  .mobile-menu-toggle{display:grid;flex:none;place-items:center;width:40px;height:40px;padding:0;border:1px solid #d4dfed;border-radius:8px;background:#f5f8fe;color:#2058c9;font-size:23px;line-height:1}
  .mobile-nav-close{display:grid;place-items:center;width:36px;height:36px;margin-left:auto;padding:0;border:0;background:transparent;color:#45566e;font-size:25px}

  .home-overview-layout{display:grid;grid-template-columns:minmax(0,1fr);height:auto;min-height:0;gap:14px;align-items:start;overflow:visible}
  .home-overview-main,.home-overview-layout>.home-overview-side{height:auto;min-height:0;overflow:visible}
  .home-overview-layout>.home-overview-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .home-overview-layout>.home-overview-side>.home-overview-card{width:100%;min-width:0}
  .home-overview-side>.home-notice-card{grid-column:1/-1}
  .home-overview-side>.home-user-card{min-height:136px}
  .home-module-view .home-module-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
  .home-module-pair,.home-module-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-module-chart-grid{grid-template-columns:minmax(0,1.4fr) minmax(240px,.8fr)}
  .home-module-view .home-todo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-module-view .home-ring-wrap{flex-direction:row}
  .home-module-view .home-ring-wrap svg{width:104px;flex-basis:104px}
  .home-module-view .home-ring-legend{width:auto;flex:1}
}

@media(max-width:700px){
  .login-page{padding-top:58px;background:#f4f7fc}
  .login-page::before{display:none}
  .login-page .login-workbench{width:100%;margin:18px auto 20px;padding:0 14px}
  .login-card{padding:26px 20px 18px;border-radius:16px;box-shadow:0 10px 26px #31557816}
  .login-card-heading h2{font-size:22px}
  .login-card>label>input,.login-sms-row>input{height:44px;font-size:16px}
  .login-sms-row{grid-template-columns:minmax(0,1fr) 110px}
  .login-sms-row button{height:44px;padding:0 5px}
  .login-card .login-options{height:auto;min-height:26px;gap:8px}
  .login-card .login-options>span{display:flex;gap:10px;white-space:nowrap}
  .login-card .login-submit{height:46px}
  .login-site-footer{min-height:0;padding:10px 14px}
  .login-site-copyright{font-size:11px}
  .login-site-header-actions .login-site-login-link{display:none}
  .login-site-header-actions .primary{display:inline-flex}

  #app.app>main>.business-main-header{min-height:58px;height:58px;gap:8px;padding:6px 10px}
  #app.app>main>#content{padding:10px 10px 22px}
  .business-page-heading{min-width:0;flex:1}
  .business-page-heading h2{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .business-page-heading p{display:none}
  .tenant-session-panel{gap:5px;margin-left:0}
  .tenant-session-panel>span{display:none}
  .tenant-session-panel button{height:32px;padding:3px 6px;font-size:11px}

  .home-overview-layout{padding:0;gap:12px;background:transparent}
  .home-overview-main,.home-module-view{gap:8px}
  .home-module-switch{min-height:0;padding:7px;gap:4px;flex-wrap:wrap}
  .home-module-switch button{min-height:34px;padding:5px 9px;font-size:13px}
  .home-module-switch .home-live-stamp{width:100%;margin:0 4px;font-size:11px}
  .home-module-view .home-module-card{padding-bottom:8px}
  .home-overview-main .home-overview-card>header{height:auto;min-height:36px;padding:5px 12px;margin-bottom:6px;gap:8px}
  .home-overview-main .home-overview-card>header h3{font-size:15px}
  .home-overview-main .home-overview-card>header>span{font-size:11px}
  .home-module-view .home-module-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:2px 10px}
  .home-module-view .home-module-kpis .home-kpi{min-height:78px;padding:8px}
  .home-module-view .home-module-kpis .home-kpi>span{font-size:12px;line-height:18px}
  .home-module-view .home-module-kpis .home-kpi>strong{font-size:21px;line-height:25px}
  .home-module-view .home-module-kpis .home-kpi>small,.home-module-view .home-module-kpis .home-kpi>i{font-size:10px}
  .home-module-view .home-metric-note{margin:5px 10px 0;font-size:11px;line-height:17px}
  .home-module-pair,.home-module-chart-grid{grid-template-columns:minmax(0,1fr);gap:8px}
  .home-module-view .home-todo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:2px 10px}
  .home-module-view .home-todo-grid button{height:74px;padding:7px}
  .home-module-view .home-todo-grid span{font-size:12px;line-height:18px}
  .home-module-view .home-todo-grid strong{font-size:22px;line-height:26px}
  .home-module-view .home-todo-grid i{font-size:10px}
  .home-module-view .home-trend-chart{min-height:138px;padding:4px 10px 0}
  .home-module-view .home-trend-chart svg{height:138px}
  .home-trend-controls{margin:0 10px 8px;gap:4px}
  .home-trend-controls button{min-height:27px;padding:3px 9px}
  .home-trend-legend{margin:0 10px;gap:8px}
  .home-module-view .home-ring-wrap{min-height:0;padding:8px 12px;gap:10px;flex-direction:row}
  .home-module-view .home-ring-wrap svg{width:96px;flex:0 0 96px}
  .home-module-view .home-ring-legend{width:auto;flex:1;gap:5px}
  .home-module-view .home-ring-legend button{min-height:32px;padding:4px 7px}
  .home-module-view>.home-module-pair:last-child{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:5px}
  .home-module-view>.home-module-pair:last-child>.home-module-card{flex:0 0 86%;min-height:190px;scroll-snap-align:start}
  .home-module-view .home-ranking-list,.home-module-view .home-live-list,.home-module-view .home-pending-list{min-height:120px;max-height:190px}
  .home-overview-layout>.home-overview-side{display:flex;flex-direction:column;gap:10px}
  .home-overview-side>.home-user-card{min-height:132px}
  .home-overview-side>.home-holiday-card{padding-bottom:10px}
  .home-overview-side>.home-overview-card>header{height:40px;min-height:40px;margin-bottom:8px}
  .home-overview-shortcuts button{height:58px}
  .home-overview-shortcuts svg{width:24px;height:24px}
  .home-notices{max-height:230px;overflow-y:auto}
}

@media(max-width:1100px){
  .home-mobile-loading{display:grid;min-height:180px;place-items:center;color:#60738e;font-size:14px}
}

@media(min-width:701px) and (max-width:850px){
  .home-module-pair,.home-module-chart-grid{grid-template-columns:minmax(0,1fr)}
}

@media(max-width:370px){
  .login-card{padding-inline:16px}
  .login-site-brand b{font-size:15px}
  .home-module-switch button{padding-inline:7px}
  .home-module-view .home-ring-wrap svg{width:80px;flex-basis:80px}
}

@media(prefers-reduced-motion:reduce){#app.app>aside{transition:none}}
