/* FGS 2.0: mobile task/admin contrast repair. Loaded LAST to override legacy theme layers. */
:root{--fgs-foreground:#eaf6ff;--fgs-muted:#b9d5e7}
.assignment-card{background:linear-gradient(145deg,#204968,#183950)!important;border:1px solid #487795!important;border-radius:14px!important;color:#eaf6ff!important;box-shadow:0 4px 16px #061b2b26!important;padding:15px!important;margin-bottom:12px!important;min-width:0!important}
.assignment-card strong,.assignment-card .flex strong{color:#f6fbff!important;font-size:16px!important;line-height:1.3!important;overflow-wrap:anywhere}
.assignment-card p,.assignment-card small,.assignment-card .muted{color:#c4ddec!important;line-height:1.45!important}
.assignment-card .badge{background:#315a75!important;color:#effaff!important;border:1px solid #547d99!important}
.assignment-card .badge.green,.assignment-card .assignee.done{background:#1d574c!important;color:#d2ffea!important;border-color:#409d79!important}
.assignment-card .assignee-list{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin:10px 0!important}
.assignment-card .assignee{background:#284d68!important;color:#e2f3ff!important;border:1px solid #4e7691!important;border-radius:99px!important;padding:6px 10px!important;font-size:12px!important;font-weight:650!important;max-width:100%;overflow-wrap:anywhere}
.assignment-card .flex{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.assignment-card .btn.fgs-remove-task{background:#284b66!important;color:#dcefff!important;border:1px solid #5a8199!important;font-size:12px!important;padding:7px 11px!important;min-height:34px!important;margin:8px 0!important}
.assignment-card input,.assignment-card textarea{background:#f6fbff!important;color:#173b56!important;border:1px solid #9abed3!important}
.assignment-card input::placeholder{color:#6c899e!important}
/* Task creation form: remove white-on-white employee names and giant selection tiles. */
.staff-fieldset{border:1px solid #527a96!important;border-radius:14px!important;padding:13px!important;min-width:0!important;color:#f1faff!important}
.staff-fieldset legend{color:#eaf7ff!important;font-weight:750!important;padding:0 7px!important}
.staff-fieldset .staffcheck,.staff-fieldset .staffgrid label{display:flex!important;align-items:center!important;gap:11px!important;background:#214862!important;color:#f2faff!important;border:1px solid #4e7a98!important;border-radius:10px!important;padding:11px 12px!important;min-height:46px!important;font-weight:650!important;line-height:1.35!important;overflow-wrap:anywhere}
.staff-fieldset .staffcheck *, .staff-fieldset .staffgrid label *{color:inherit!important}
.staff-fieldset .staffgrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.staff-fieldset input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;accent-color:#56bdf0!important;flex:0 0 18px!important;width:18px!important;height:18px!important;margin:0!important;background:#f5fbff!important;border:0!important;border-radius:3px!important}
.staff-fieldset small,.staff-fieldset .muted{color:#b9d6e9!important}
/* Make headings visible across blue panels even where old global CSS sets dark text. */
.fgs-employee-panel h2,.fgs-employee-panel .fgs-employee-head h2{color:#f5fbff!important;text-shadow:none!important}
.fgs-employee-panel .fgs-employee-row{color:#f1faff!important}
.fgs-employee-panel .fgs-employee-meta{color:#c3e1f2!important}
.fgs-employee-panel .fgs-employee-head button{color:#ecfaff!important}
/* Navigation stays compact, readable, and doesn't take a third of the screen. */
@media(max-width:690px){
 .assignment-card{padding:13px!important}
 .assignment-card .assignee{font-size:11px!important;padding:5px 8px!important}
 .staff-fieldset .staffgrid{grid-template-columns:minmax(0,1fr)!important}
 .staff-fieldset .staffcheck,.staff-fieldset .staffgrid label{min-height:44px!important;padding:9px 11px!important}
 .mobileNav{padding:7px 4px calc(9px + env(safe-area-inset-bottom))!important;min-height:0!important;align-items:center!important}
 .mobileNav button{font-size:10px!important;padding:10px 2px!important;min-height:38px!important}
 .mobileNav::after{display:none!important}
 .content{padding-bottom:95px!important}
 .fgs-employee-panel{padding:14px!important}
 .fgs-employee-head{gap:7px!important}
 .fgs-employee-head h2{font-size:15px!important;line-height:1.3!important}
 .fgs-employee-head button{font-size:12px!important;padding:8px 9px!important}
}
