/* Shared by the management and employee apps, without changing the institutional site. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:0}
main,section,form,label,.panel,.intro>div,.account>div,.agenda-columns>*,.form-grid>*{min-width:0}
input,select,textarea{min-width:0;max-width:100%}
header img{max-width:100%;object-fit:contain}
.activity,.access-card,.user-row,.account,.day-heading{overflow-wrap:anywhere}
.account #sync-status{font-variant-numeric:tabular-nums;line-height:1.5}

@media(max-width:760px){
 body{font-size:1rem;line-height:1.5}
 header{padding:16px;gap:16px;flex-wrap:wrap}
 header nav{gap:8px 16px;min-width:0}
 header nav a{min-height:44px;display:inline-flex;align-items:center;font-size:.9375rem}
 main,.manager-workspace>main,.manager-hub main,.employee-view main{width:100%;max-width:100%;padding:24px 16px 40px}
 .panel,.employee-view .panel{padding:18px;border-radius:18px}
 .login,.form-grid,.agenda-columns{grid-template-columns:minmax(0,1fr)}
 .login{gap:24px}
 .login form{max-width:none}
 label,.group-field{font-size:1rem}
 input,select,textarea{font-size:1rem;min-height:48px}
 button,.hub-action,.view-tabs a{font-size:1rem;min-height:48px;line-height:1.4}
 h1,.intro h1,.employee-view .intro h1{font-size:2rem;line-height:1.18}
 h2,.agenda-heading h2,.employee-view .agenda-heading h2{font-size:1.5rem;line-height:1.3}
 .intro{gap:16px;align-items:flex-start}
 .intro p,.activity p,.manager-hub-card p{font-size:1rem}
 .intro .eyebrow,.employee-view .intro .eyebrow,.eyebrow{font-size:.875rem;letter-spacing:.06em}
 .secondary,.status,.stats span,.calendar-legend,.calendar-navigation label{font-size:.875rem}
 .account{align-items:flex-start;flex-direction:column;gap:12px}
 .account>div{width:100%;flex-wrap:wrap}
 .filters,body[data-dashboard=true] .filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .stats,.employee-view .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .stats article,.employee-view .stats article{padding:16px;min-width:0}
 .stats strong,.employee-view .stats strong{font-size:1.875rem}
 .stats .drill-button,.metric-card .drill-button{min-height:44px;font-size:.875rem;max-width:100%}
 .agenda-columns{gap:20px}
 .calendar-panel{min-width:0;padding:12px}
 #calendar{grid-template-columns:minmax(0,1fr);max-height:none;overflow:visible}
 .calendar-grid{gap:3px}
 .calendar-day,#agenda-calendar .calendar-day{min-width:0;min-height:44px;font-size:1rem}
 .calendar-navigation button,.calendar-navigation input,.calendar-navigation select,.calendar-heading button{font-size:1rem}
 .calendar-heading{flex-wrap:wrap}
 .agenda-heading>.actions,.manager-workspace .agenda-heading>.actions{flex-wrap:wrap;flex-shrink:1;width:100%}
 .agenda-heading>.actions>button{flex:1 1 auto;padding:12px}
 .agenda-day>.day-heading{grid-template-columns:minmax(0,1fr) 20px;gap:8px;padding:16px}
 .agenda-day>.day-heading>span:first-child{grid-column:1;line-height:1.5}
 .agenda-day>.day-heading>.day-count{grid-column:1;grid-row:2;white-space:normal;display:flex;gap:8px;flex-wrap:wrap}
 .agenda-day>.day-heading:after{grid-column:2;grid-row:1/3}
 .day-activities{padding:0 8px 8px}
 .compact-activity>summary{grid-template-columns:minmax(0,1fr) 20px;padding:16px 12px}
 .compact-activity>summary strong{font-size:1.0625rem}
 .compact-activity>summary .secondary,.compact-activity>summary .status{font-size:.9375rem;line-height:1.5}
 .activity .actions{width:100%;flex-wrap:wrap}
 .activity .actions button{flex:1 1 140px}
 dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:18px}
 .dialog-heading{align-items:flex-start;flex-wrap:wrap}
 .user-row>div{min-width:0}
 .table-scroll{min-width:0;max-width:100%;overflow-x:auto}
 body :is(#app-install-button,.theme-toggle){position:static;display:inline-flex;left:auto;bottom:auto;min-height:44px;max-width:calc(100% - 32px);margin:0 0 16px 16px;font-size:.875rem;vertical-align:middle}
 footer{font-size:.875rem;padding:20px 16px}
}
@media(max-width:480px){
 .filters,body[data-dashboard=true] .filters{grid-template-columns:minmax(0,1fr)}
 .filters label:last-child{grid-column:auto}
 .calendar-panel{padding:0;background:transparent}
 .access-areas,.manager-hub-grid{grid-template-columns:minmax(0,1fr)}
 #manager-filter-box .manager-filter-body{padding:16px}
}
