/* Section 2 (u70) — assessment readability + modal scroll safety.
   Loaded last so these !important rules win over the older per-batch CSS. */

/* The fixed modal layer must never be displaced by visualViewport panning. */
@media (max-width:1023px){
  .cc-modal-layer{top:0!important;max-height:100dvh!important;}
  .cc-modal-card{max-height:100dvh!important;background:#fff!important;color:#0f172a!important;border-color:rgba(15,23,42,.12)!important;}
  .cc-modal-card .cc-modal-header{border-bottom-color:rgba(15,23,42,.08)!important;}
  .cc-modal-card .cc-modal-header h2{color:#0f172a!important;}
  .cc-modal-body{background:#fff!important;color:#0f172a!important;}
  .cc-modal-body :is(.text-slate-900,.text-slate-800,.text-slate-700,.text-slate-600,.text-slate-500,.text-slate-400,.text-white){color:#334155!important;}
  .cc-modal-body :is(.bg-slate-900\/50){background:rgba(15,23,42,.45)!important;}
}

/* Employment Risk Assessment and other long assessment forms: keep a light,
   readable surface even when the app is in dark theme. Scoped to the two
   assessment page roots, so the rest of the dark theme is unchanged. */
.app-shell.theme-dark .cc-assessment-light{background:#f8fafc!important;min-height:100%;border-radius:12px;}
.app-shell.theme-dark .cc-assessment-light :is(.bg-white,.bg-slate-50,.bg-slate-100,.bg-white\/80,.bg-slate-50\/80){background-color:#fff!important;}
.app-shell.theme-dark .cc-assessment-light :is(.text-slate-900,.text-slate-800,.text-slate-700,.text-slate-600,.text-slate-500,.text-slate-400,.text-gray-900,.text-gray-800,.text-gray-700){color:#334155!important;}
.app-shell.theme-dark .cc-assessment-light :is(input,select,textarea){background-color:#fff!important;color:#0f172a!important;border-color:#cbd5e1!important;}
.app-shell.theme-dark .cc-assessment-light :is(input,select,textarea)::placeholder{color:#94a3b8!important;}
.app-shell.theme-dark .cc-assessment-light :is(.border-slate-100,.border-slate-200){border-color:#e2e8f0!important;}

/* Section 2 review cards: keep the two date lines legible and distinct. */
.cc-review-dates{display:flex;flex-direction:column;gap:2px;font-size:12px;line-height:1.35;}
.cc-review-dates .cc-next-due{font-weight:600;}
