.change-form{grid-template-columns:minmax(180px,1fr) 90px 90px 160px 64px}.workforce-table th,.workforce-table td{white-space:nowrap}@media(max-width:800px){.change-form{grid-template-columns:1fr}}
@media(max-width:800px){
  .mobile-role-nav button{width:20%;min-width:0}.mobile-role-nav button i{width:40px;height:28px;font-size:19px;line-height:28px}.mobile-role-nav button span{font-size:10px;line-height:14px}.mobile-role-nav button[data-view="attendance"] i{font-size:20px;transform:none}
  .mobile-admin-detail{min-height:100dvh;padding:0 16px calc(24px + var(--mobile-safe-bottom))!important;gap:14px!important;overflow-x:hidden;background:#f1f5f9}
  .mobile-admin-detail>header{display:flex!important;height:calc(44px + var(--mobile-safe-top));min-height:calc(44px + var(--mobile-safe-top));margin:0 -16px;padding:var(--mobile-safe-top) 16px 0!important;align-items:center;gap:8px;border-bottom:1px solid #e2e8f0;background:#fff}
  .mobile-admin-detail>header .breadcrumb,.mobile-admin-detail>header .title-row p{display:none}.mobile-admin-detail>header .title-row{display:block}.mobile-admin-detail>header h1,.mobile-admin-detail>header>em{margin:0!important;font-size:15px!important;line-height:20px!important}.mobile-detail-back{width:24px;height:32px;padding:0;border:0;color:#0f172a;background:transparent;font-size:20px}
  .operating-mobile-page.mobile-admin-detail{padding:0!important}.operating-mobile-page.mobile-admin-detail>header .brand-mark{display:none}.operating-mobile-page.mobile-admin-detail>header>b{display:none}.operating-mobile-page.mobile-admin-detail>header em{order:2;color:#0f172a;font-weight:800}.operating-mobile-page .mobile-detail-back{order:1}.operating-mobile-page.mobile-admin-detail>header>span:last-child{display:none}
  .holiday-golden-page.mobile-admin-detail .holiday-filter-bar{display:grid;padding:0;grid-template-columns:minmax(0,1fr) auto;gap:8px;border:0;background:transparent}.holiday-golden-page.mobile-admin-detail .holiday-filter-bar>div{display:flex;min-width:0;gap:6px;overflow-x:auto}.holiday-golden-page.mobile-admin-detail .holiday-filter-bar select{min-width:104px;height:38px;padding:0 26px 0 9px;font-size:11px}.holiday-golden-page.mobile-admin-detail .holiday-add-button{min-width:90px;height:38px;padding:0 10px;white-space:nowrap;font-size:11px}.holiday-golden-page.mobile-admin-detail .holiday-form-panel form{grid-template-columns:1fr}.holiday-golden-page.mobile-admin-detail .holiday-table-card{overflow-x:auto}.holiday-golden-page.mobile-admin-detail .holiday-table-card table{min-width:760px}
  .mobile-admin-detail .workforce-table{max-width:100%;overflow-x:auto}.mobile-admin-detail .workforce-table table{min-width:760px}
  .mobile-manual-form{display:grid!important;padding:13px!important;grid-template-columns:1fr!important;gap:9px!important;border-radius:11px!important}.mobile-manual-form>b{font-size:14px}.mobile-manual-form label{display:grid;gap:5px;color:#475569;font-size:11px;font-weight:700}.mobile-manual-form :is(input,select,button){width:100%;height:40px;padding:0 10px;border:1px solid #d8e0ea;border-radius:8px;background:#fff}.mobile-manual-form button{color:#fff;border-color:#2563eb;background:#2563eb;font-weight:800}.manual-time-values{display:grid;grid-template-columns:1fr 1fr;gap:6px}.mobile-manual-form [role=alert]{margin:0;color:#dc2626;font-size:11px}
  .mobile-safety-check{position:relative;display:flex;width:100%;height:92px;margin:20px 0 0;padding:0 24px;overflow:hidden;align-items:center;justify-content:center;gap:14px;border:1.5px solid #34d399;border-radius:18px;color:#064e3b;background:#ecfdf5;box-shadow:0 8px 22px rgba(5,150,105,.11)}.mobile-safety-check>i{display:grid;width:46px;height:46px;flex:0 0 auto;place-items:center;border-radius:14px;color:#fff;background:#059669;font-size:24px;font-style:normal;box-shadow:0 5px 13px rgba(5,150,105,.18)}.mobile-safety-check>b{color:#064e3b;font-size:24px;line-height:30px;font-weight:800;letter-spacing:-.02em}.mobile-safety-check:after{position:absolute;inset:0;left:-150%;width:150%;background:linear-gradient(110deg,transparent 25%,rgba(255,255,255,.18) 40%,rgba(255,255,255,.72) 50%,rgba(255,255,255,.18) 60%,transparent 75%);content:"";transform:translateX(0);animation:safety-light-sweep 3s ease-in-out infinite;pointer-events:none}@keyframes safety-light-sweep{0%,46%{transform:translateX(0)}93%,100%{transform:translateX(167%)}}@media(prefers-reduced-motion:reduce){.mobile-safety-check:after{display:none;animation:none}}
}

/* Mobile geometry: keep fixed navigation/actions outside document flow. */
@media(max-width:800px){
  .mobile-golden-shell{min-height:0}
  .mobile-golden-shell>main{min-height:0}
  .mobile-hub-page,.admin-mobile-surface{min-height:0}
  .mobile-admin-detail{min-height:0}
  .shell>main:has(.worker-registration-page){min-height:0;padding-bottom:0}
  .worker-registration-page{height:auto;min-height:0;padding-bottom:calc(94px + var(--mobile-safe-bottom))!important;overflow:visible}
  .worker-registration-page>header .title-row h1{line-height:22px!important;overflow:visible}
}
