/* Portal presentation only; public theme elements retain their own styles. */
.icc-portal {
  --icc-navy: #142b45;
  --icc-teal: #087f83;
  --icc-background: #f3f5f7;
  --icc-text: #172b3a;
  --icc-secondary: #526273;
  --icc-border: #d6dfe5;
  box-sizing: border-box;
  width: 100%;
  max-width: 980px;
  margin: 1rem auto;
  padding: 24px;
  border: 1px solid var(--icc-border);
  border-radius: 12px;
  background: var(--icc-background);
  color: var(--icc-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
}
.icc-portal *, .icc-portal *::before, .icc-portal *::after { box-sizing: border-box; }
.icc-portal h2, .icc-portal h3, .icc-portal h4 {
  color: var(--icc-navy);
  font-family: inherit;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
}
.icc-portal h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.icc-portal h3 { margin: 0 0 20px; font-size: 20px; }
.icc-portal h4 { margin: 24px 0 12px; font-size: 16px; }
.icc-portal p { margin: 0 0 16px; }
.icc-portal > p { color: var(--icc-secondary); }
.icc-portal a { color: var(--icc-navy); text-decoration: underline; text-underline-offset: .2em; }
.icc-portal a:hover { color: var(--icc-navy); text-decoration-thickness: 2px; }
.icc-portal :is(a, button, input, select, textarea, summary):focus:focus-visible {
  outline: 3px solid var(--icc-teal);
  outline-offset: 4px;
}
.icc-portal .icc-case {
  min-width: 0;
  margin: 24px 0 0;
  padding: 24px;
  border: 1px solid var(--icc-border);
  border-top: 4px solid var(--icc-navy);
  border-radius: 8px;
  background: #fff;
  color: var(--icc-text);
  box-shadow: 0 2px 8px rgb(20 43 69 / 4%);
}
.icc-portal dl {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(0, 2.5fr);
  gap: 12px 20px;
  margin: 0 0 20px;
}
.icc-portal dt { color: var(--icc-secondary); font-size: 14px; font-weight: 600; }
.icc-portal dd { min-width: 0; margin: 0; font-weight: 500; }
/* Existing direct case paragraph contains the optional numeric progress. */
.icc-portal .icc-case > p {
  margin: 0;
  padding: 12px 16px;
  border-left: 3px solid var(--icc-teal);
  border-radius: 4px;
  background: var(--icc-background);
  color: var(--icc-navy);
  font-weight: 600;
}
.icc-portal ul { margin: 0; padding-left: 20px; }
.icc-portal li { margin: 12px 0; padding-left: 4px; }
.icc-portal small { display: block; margin-top: 4px; color: var(--icc-secondary); font-size: 14px; }
.icc-portal :is(button, input[type="submit"], .icc-button),
.icc-portal a[href*="action=icc_report_download"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--icc-navy);
  border-radius: 6px;
  background: var(--icc-navy);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
}
.icc-portal :is(button, input[type="submit"], .icc-button):hover,
.icc-portal a[href*="action=icc_report_download"]:hover { border-color: var(--icc-teal); background: var(--icc-teal); color: #fff; }
.icc-portal > form { margin: 0 0 20px; }
.icc-portal details { margin: 0 0 24px; padding: 0 16px; border: 1px solid var(--icc-border); border-radius: 6px; background: #fff; }
.icc-portal summary { min-height: 44px; padding: 12px 0; color: var(--icc-navy); font-weight: 600; cursor: pointer; }
.icc-portal details[open] summary { margin-bottom: 16px; border-bottom: 1px solid var(--icc-border); }
.icc-portal details form { padding-bottom: 16px; }
.icc-portal label { display: block; color: var(--icc-text); font-weight: 600; }
.icc-portal :is(input[type="text"], input[type="email"], input[type="password"], select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--icc-secondary);
  border-radius: 6px;
  background: #fff;
  color: var(--icc-text);
  font: inherit;
  line-height: 1.5;
}
.icc-portal input::placeholder, .icc-portal textarea::placeholder { color: var(--icc-secondary); opacity: 1; }
.icc-portal.icc-login { max-width: 460px; padding: 24px; }
.icc-portal.icc-login form { margin: 24px 0; }
.icc-portal.icc-login .login-username br,
.icc-portal.icc-login .login-password br { display: none; }
.icc-portal.icc-login input[type="submit"] { width: 100%; }
.icc-portal.icc-login > p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .icc-portal { margin: 12px auto; padding: 16px; border-radius: 8px; }
  .icc-portal .icc-case { margin-top: 20px; padding: 16px; }
  .icc-portal dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .icc-portal dd { margin-bottom: 12px; }
  .icc-portal a[href*="action=icc_report_download"] { width: 100%; }
  .icc-portal :is(button, input[type="submit"]) { width: 100%; }
  .icc-portal.icc-login { padding: 20px; }
}
@media (forced-colors: active) {
  .icc-portal :is(a, button, input, select, textarea, summary):focus:focus-visible { outline-color: Highlight; }
  .icc-portal :is(button, input[type="submit"], .icc-button),
  .icc-portal a[href*="action=icc_report_download"] { border-color: ButtonText; }
}

/* Dedicated configured-page shell; no public theme layout selectors. */
body.icc-portal-shell {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f3f5f7;
  color: #172b3a;
  font: 400 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.icc-portal-shell .icc-shell-container { box-sizing: border-box; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.icc-portal-shell .icc-shell-header { background: #142b45; color: #fff; }
.icc-portal-shell .icc-shell-header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.icc-portal-shell .icc-shell-brand { color: #fff; font-size: 24px; font-weight: 700; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
.icc-portal-shell .icc-shell-brand span { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; }
.icc-portal-shell .icc-shell-navigation a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.icc-portal-shell .icc-shell-main { flex: 1; padding-top: 32px; padding-bottom: 40px; }
.icc-portal-shell .icc-shell-title { margin: 0 0 20px; color: #142b45; font: 700 clamp(1.5rem, 1.25rem + 1vw, 2rem)/1.25 system-ui, sans-serif; letter-spacing: normal; }
.icc-portal-shell .icc-shell-main > .icc-portal { max-width: none; margin: 0; }
.icc-portal-shell .icc-shell-main > .icc-login { max-width: 460px; margin: 0 auto; background: #fff; }
.icc-portal-shell .icc-shell-footer { border-top: 1px solid #d6dfe5; padding: 20px 0; color: #526273; font-size: 14px; }
.icc-portal-shell .icc-shell-skip { position: absolute; left: 16px; top: -100px; padding: 12px 16px; background: #fff; color: #142b45; font-weight: 600; z-index: 100000; }
.icc-portal-shell .icc-shell-skip:focus { top: 16px; }
.icc-portal-shell :is(.icc-shell-brand, .icc-shell-navigation a, .icc-shell-skip):focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.icc-portal-shell .icc-shell-skip:focus-visible { outline-color: #087f83; }
.icc-portal-shell .icc-shell-main:focus-visible { outline: 3px solid #087f83; outline-offset: -3px; }
@media (max-width: 600px) {
  .icc-portal-shell .icc-shell-container { padding-left: 16px; padding-right: 16px; }
  .icc-portal-shell .icc-shell-header-inner { gap: 12px; }
  .icc-portal-shell .icc-shell-brand { font-size: 20px; }
  .icc-portal-shell .icc-shell-navigation a { padding: 8px; }
  .icc-portal-shell .icc-shell-main { padding-top: 24px; padding-bottom: 24px; }
}
@media (forced-colors: active) {
  .icc-portal-shell :is(.icc-shell-brand, .icc-shell-navigation a, .icc-shell-skip, .icc-shell-main):focus-visible { outline-color: Highlight; }
}

/* Authenticated dashboard presentation; values remain scoped to shown cases. */
.icc-portal.icc-dashboard { padding: 0; border: 0; border-radius: 0; background: transparent; }
.icc-dashboard .icc-dashboard-welcome { margin-bottom: 24px; }
.icc-dashboard .icc-dashboard-welcome p { margin-bottom: 8px; color: var(--icc-secondary); }
.icc-dashboard .icc-dashboard-welcome .icc-welcome-name { color: var(--icc-text); font-size: 18px; font-weight: 600; }
.icc-dashboard .icc-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.icc-dashboard .icc-overview-card { padding: 20px; border: 1px solid var(--icc-border); border-radius: 8px; background: #fff; }
.icc-dashboard .icc-overview-card > span { display: block; color: var(--icc-secondary); font-size: 14px; font-weight: 600; }
.icc-dashboard .icc-overview-card strong { display: block; margin: 4px 0; color: var(--icc-navy); font-size: 28px; line-height: 1.2; }
.icc-dashboard .icc-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 24px; }
.icc-dashboard .icc-cases-section, .icc-dashboard .icc-account-area { min-width: 0; }
.icc-dashboard .icc-cases-section > h2 { margin-bottom: 16px; font-size: 22px; }
.icc-dashboard .icc-screening-case { margin: 0 0 20px; padding: 24px; border-top-width: 1px; }
.icc-dashboard .icc-case-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.icc-dashboard .icc-case-heading h3 { flex: 1 1 220px; min-width: 0; margin: 0; font-size: 18px; }
.icc-dashboard .icc-status { display: inline-block; max-width: 100%; padding: 6px 10px; border: 1px solid var(--icc-border); border-radius: 6px; background: var(--icc-background); color: var(--icc-navy); font-size: 14px; font-weight: 600; }
.icc-dashboard .icc-status-ready { border-color: var(--icc-teal); background: var(--icc-teal); color: #fff; }
.icc-dashboard .icc-status-label { font-weight: 400; }
.icc-dashboard .icc-case-details { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
.icc-dashboard .icc-case-details > div { min-width: 0; }
.icc-dashboard .icc-case-details dt { margin-bottom: 4px; }
.icc-dashboard .icc-case-details dd { margin: 0; font-size: 15px; font-weight: 400; }
.icc-dashboard .icc-case-progress { margin-bottom: 24px; }
.icc-dashboard .icc-case-progress label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 14px; }
.icc-dashboard .icc-case-progress progress { display: block; width: 100%; height: 10px; overflow: hidden; border: 0; border-radius: 5px; background: #d6dfe5; color: var(--icc-teal); accent-color: var(--icc-teal); }
.icc-dashboard .icc-case-progress progress::-webkit-progress-bar { border-radius: 5px; background: #d6dfe5; }
.icc-dashboard .icc-case-progress progress::-webkit-progress-value { border-radius: 5px; background: var(--icc-teal); }
.icc-dashboard .icc-case-progress progress::-moz-progress-bar { border-radius: 5px; background: var(--icc-teal); }
.icc-dashboard .icc-progress-unavailable { padding: 0; border: 0; background: none; color: var(--icc-secondary); font-size: 14px; font-weight: 400; }
.icc-dashboard .icc-case-updates { padding-top: 20px; border-top: 1px solid var(--icc-border); }
.icc-dashboard .icc-case-updates h4, .icc-dashboard .icc-case-reports h4 { margin: 0 0 12px; }
.icc-dashboard .icc-case-updates li { font-size: 15px; }
.icc-dashboard .icc-case-reports { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--icc-border); }
.icc-dashboard .icc-report-list { padding: 0; list-style: none; }
.icc-dashboard .icc-report-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 12px; padding: 12px; border: 1px solid var(--icc-border); border-radius: 6px; background: var(--icc-background); }
.icc-dashboard .icc-report-row > div { min-width: 0; }
.icc-dashboard .icc-report-name { display: block; font-size: 15px; font-weight: 600; }
.icc-dashboard .icc-report-row a[href*="action=icc_report_download"] { flex-shrink: 0; width: auto; font-size: 14px; }
.icc-dashboard .icc-account-area { padding: 20px; border: 1px solid var(--icc-border); border-radius: 8px; background: #fff; }
.icc-dashboard .icc-account-area > h2 { margin-bottom: 16px; font-size: 20px; }
.icc-dashboard .icc-account-area details { margin-bottom: 16px; padding: 0 12px; }
.icc-dashboard .icc-account-area button { width: 100%; }
.icc-dashboard .icc-account-area label { font-size: 14px; }
.icc-dashboard .icc-empty-state { padding: 24px; border: 1px solid var(--icc-border); border-radius: 8px; background: #fff; color: var(--icc-secondary); }
.icc-dashboard .icc-report-empty { color: var(--icc-secondary); font-size: 14px; }
.icc-dashboard .icc-case-pagination { display: flex; flex-wrap: wrap; gap: 16px; }
.icc-dashboard .icc-case-pagination a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) {
  .icc-dashboard .icc-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .icc-dashboard .icc-overview { gap: 12px; margin-bottom: 24px; }
  .icc-dashboard .icc-overview-card { padding: 16px; }
  .icc-dashboard .icc-screening-case { padding: 16px; }
  .icc-dashboard .icc-report-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .icc-dashboard .icc-report-row a[href*="action=icc_report_download"] { width: 100%; }
  .icc-dashboard .icc-account-area { padding: 16px; }
}
