/* Phone layouts share the same form controls and authorization as desktop. */
.mobile-only,.mobile-label{display:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.selection-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 23px;border-top:1px solid var(--line)}
.selection-target{display:grid;place-items:center;min-width:44px;min-height:44px;cursor:pointer}
.select-all-control{display:flex;align-items:center;gap:12px;min-height:44px;font-size:12px;cursor:pointer}
.select-all-control input{width:20px;height:20px;accent-color:var(--orange)}
#selection-count{font-size:12px;color:var(--muted)}
.marked-for-removal{border-style:dashed;opacity:.65}
.section-nav [aria-current=step]{color:var(--orange);font-weight:700}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
@media(pointer:coarse){.button,.text-button,.language-switch button{min-height:44px}.consent{min-height:44px}}
@media(max-width:760px){
  html{scroll-padding-top:140px}
  body{font-size:16px;line-height:1.6}
  .topbar{height:auto;min-height:76px;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));gap:12px}
  .topbar .brand span{display:none}
  .brand img{width:44px;height:44px;border-radius:10px}
  .top-actions{gap:10px;min-width:0}
  .language-switch button{min-width:44px;min-height:44px;font-size:13px;padding:8px 10px}
  .text-button{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;font-size:12px}
  .admin-nav{padding:6px 16px;gap:20px;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
  .admin-nav a{display:inline-flex;align-items:center;min-height:44px;font-size:13px}
  .messages{padding:0 16px}.message{font-size:14px;overflow-wrap:anywhere}
  .sidebar{padding:22px 18px 16px;display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap}
  .sidebar .eyebrow{width:100%;font-size:11px}
  .sidebar h2{font-size:22px;line-height:1.35;margin:0;flex:1;overflow-wrap:anywhere}
  .sidebar .badge{font-size:11px}
  .mobile-form .sidebar .section-nav{display:none}
  .form-main{padding:16px max(14px,env(safe-area-inset-right)) 24px max(14px,env(safe-area-inset-left))}
  .page-heading{gap:16px;margin-bottom:22px;min-width:0}
  .page-heading>div{min-width:0;width:100%}
  .page-heading h1,.dashboard>h1{font-size:27px;line-height:1.2;letter-spacing:-.7px;overflow-wrap:anywhere}
  .page-heading p{font-size:14px;line-height:1.65;overflow-wrap:anywhere}
  .profile-page .page-heading .eyebrow{display:none}
  .profile-page .page-heading h1{font-size:24px;margin-top:0}
  .profile-page .page-heading{margin-bottom:16px}
  .mobile-form .mobile-only:not([hidden]){display:flex}
  .mobile-form .mobile-label{display:inline}
  .mobile-form .desktop-label{display:none}
  .mobile-stepper{position:sticky;top:0;z-index:8;background:#fafaf7;padding:12px 0 14px;flex-direction:column;gap:8px;margin-bottom:8px}
  .step-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#656050}
  .step-caption label{font-weight:650}
  #step-count{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
  #mobile-section{appearance:auto;border:1px solid #d8d3c5;background:#fff;border-radius:9px;width:100%;min-width:0;padding:11px 10px;font-size:16px;min-height:48px;color:var(--ink)}
  #step-progress{display:block;width:100%;height:4px;accent-color:var(--orange);border:0;border-radius:9px;overflow:hidden;background:#e8e3d5}
  #step-progress::-webkit-progress-bar{background:#e8e3d5}#step-progress::-webkit-progress-value{background:var(--orange)}#step-progress::-moz-progress-bar{background:var(--orange)}
  .form-card{padding:22px 18px;border-radius:13px;margin-bottom:18px;scroll-margin-top:135px;min-width:0}
  .section-heading{gap:9px;margin-bottom:22px;align-items:flex-start}
  .section-heading h2,.form-card h2{font-size:18px;line-height:1.4;flex:1;min-width:0}
  .section-heading h2:focus{outline:none}
  .section-heading .badge{font-size:11px;white-space:normal;margin-left:39px}
  .fields,.repeat-row .fields{grid-template-columns:minmax(0,1fr);gap:22px}
  .field label{font-size:14px;line-height:1.5;color:#44453d}
  .field input:not([type=checkbox]),.field select,.field textarea,.filters input,.filters select{font-size:16px;min-height:48px;padding:12px;width:100%;max-width:100%;min-width:0;margin-top:8px;border-color:#cccbbf}
  .field input[type=date]{appearance:none;min-width:0;max-width:100%}
  .field textarea{min-height:112px;resize:vertical}
  .field input[type=file]{font-size:13px!important;padding:9px;line-height:1.7}
  .field input[type=file]::file-selector-button{min-height:40px;max-width:100%;margin-right:10px;border:1px solid #d6d1c1;border-radius:6px;background:#fff;padding:8px;font:inherit;color:var(--ink)}
  .field small{font-size:12px;line-height:1.5}.required{font-size:14px}
  .error-summary{font-size:14px;line-height:1.65}.errorlist{font-size:13px;line-height:1.6}
  .consent{gap:12px;font-size:14px;line-height:1.7;min-height:44px}
  input[type=checkbox]{width:22px;height:22px;accent-color:var(--orange);flex:none}
  .consent input{width:22px;height:22px;margin-top:3px}
  .repeat-row{padding:18px 14px}.repeat-row .field:has(input[type=checkbox]){display:flex;align-items:center;gap:12px;min-height:44px}
  .repeat-group>.button{width:100%;min-height:48px;white-space:normal;font-size:14px}
  .muted{font-size:13px;line-height:1.75}.file-link{display:flex;align-items:center;min-height:44px;font-size:13px;overflow-wrap:anywhere;word-break:break-word}
  .savebar{position:sticky;bottom:0;z-index:9;gap:8px;margin:0 -4px;padding:12px 10px max(12px,env(safe-area-inset-bottom));border-radius:12px;box-shadow:0 -5px 20px #00000009}
  .savebar>span{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
  .savebar>div{display:flex;flex-wrap:nowrap;gap:8px;width:100%;align-items:stretch}
  .savebar .button{flex:1 1 0;min-width:0;min-height:48px;padding:12px 8px;font-size:14px;white-space:normal;gap:6px}
  .savebar .previous-step{flex:0 0 44px;font-size:20px;padding:10px}
  .keyboard-open .savebar,.keyboard-open .mobile-stepper{position:static}
  .confirmation-banner{font-size:13px}
  .dashboard{padding:26px max(16px,env(safe-area-inset-right)) 36px max(16px,env(safe-area-inset-left))}
  .dashboard .export-actions{display:flex;flex-wrap:wrap;width:100%;gap:10px}.export-actions .button{flex:1;min-height:48px;font-size:14px}.export-actions .button:first-child{flex-basis:100%}
  .stats{gap:10px;margin:24px 0}.stat{padding:16px 14px;min-width:0}.stat>span{font-size:13px}.stat strong{font-size:35px}.stat small{font-size:11px;line-height:1.55}
  .filters{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:18px 16px;gap:12px}.filters h2{grid-column:1/-1;font-size:17px;margin-bottom:0;white-space:normal}.filters input{grid-column:1/-1;margin:0;max-width:none}.filters select{margin:0;max-width:none}.filters .button{min-height:48px;font-size:14px;padding:12px 16px}
  .selection-toolbar{padding:12px 16px;gap:8px}.select-all-control{font-size:13px;min-height:44px}.select-all-control input{width:22px;height:22px}#selection-count{font-size:12px;text-align:right}
  .employee-table,.employee-table tbody{display:block;width:100%;white-space:normal}
  .employee-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}
  .employee-table tbody{padding:0 12px 4px}
  .employee-table tbody tr{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 12px;padding:20px 16px 12px;margin-bottom:12px;border:1px solid #e4dfd1;border-radius:12px}
  .employee-table td{display:block;padding:0;border:0;font-size:13px;min-width:0;overflow-wrap:anywhere}
  .employee-table td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;margin-bottom:4px}
  .employee-table .employee-name{grid-column:1/-1;padding-right:36px}
  .employee-name strong{font-size:16px;line-height:1.4}.employee-name small{font-size:12px;line-height:1.6;margin-top:5px;overflow-wrap:anywhere}
  .employee-table .selection-cell{position:absolute;right:8px;top:10px;width:44px;height:44px;display:grid;place-items:center}
  .employee-table .badge{font-size:11px;white-space:normal}
  .employee-table .view-cell{grid-column:1/-1;border-top:1px solid var(--line);padding-top:6px}
  .view-cell a{display:flex;min-height:44px;align-items:center;justify-content:flex-end;font-size:14px;font-weight:600}
  .employee-table .empty{grid-column:1/-1;padding:30px 0;font-size:14px}
  .table-footer{padding:16px;gap:12px}.table-footer>span{font-size:12px;line-height:1.6}.table-footer .button{width:100%;min-height:48px;font-size:14px;white-space:normal;text-align:center}
  .pagination{display:flex;justify-content:center;align-items:center;min-height:60px;font-size:14px;gap:18px}.pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
  .detail>p,.detail .page-heading p{overflow-wrap:anywhere}.detail>a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
  .detail dt{font-size:13px}.detail dd{font-size:16px}.detail .form-card>p{font-size:14px;overflow-wrap:anywhere}
  .admin-row{gap:12px;padding:18px;min-width:0}.admin-row strong{font-size:14px;overflow-wrap:anywhere}.admin-row small{font-size:12px}.admin-row>div{min-width:0}.admin-row form{align-self:flex-end}
  .detail .form-card>form>.button{width:100%;min-height:48px;font-size:14px;white-space:normal}
  .button{min-height:44px}.login-card .google{font-size:15px;min-height:48px}.login-card>p{font-size:15px;line-height:1.65}.welcome-steps strong{font-size:14px}.welcome-steps small{font-size:13px;line-height:1.6}.welcome-steps li{gap:14px;margin:24px 0}.welcome-steps li>span{font-size:12px;flex:none}.domain{font-size:12px}
  .login-shell{padding:max(20px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.login-card-top{gap:16px}.login-shell>.login-card{padding:28px 24px}.login-brand{width:56px;height:56px}
  footer{font-size:11px;padding:20px 16px max(20px,env(safe-area-inset-bottom))}
}
@media(max-width:360px){.login-shell>.login-card{padding:24px 20px}.login-card h1{font-size:25px}.form-card{padding:20px 14px}.stat{padding:14px 12px}.stat small{font-size:10px}.savebar .button{font-size:13px}.filters{padding:16px 12px}.filters .button{padding:12px}.employee-table tbody tr{padding:18px 12px 10px}}
@media(max-width:760px) and (max-height:500px){.mobile-stepper,.savebar{position:static}.form-card{scroll-margin-top:16px}html{scroll-padding-top:16px}}
