.identity-coverage-page { min-width: 0; padding-bottom: 48px; }
.identity-coverage-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 0 0 14px; }
.identity-coverage-toolbar label { display: grid; gap: 6px; color: var(--ink-muted); font-size: 13px; font-weight: 700; }
.identity-coverage-toolbar select { min-width: 170px; }
.identity-coverage-updated { margin-left: auto; color: var(--ink-faint); font-size: 12px; }
.identity-coverage-section { min-width: 0; margin-top: 26px; }
.identity-coverage-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 12px; }
.identity-coverage-heading h2 { margin: 2px 0 5px; color: var(--ink); font-size: 20px; }
.identity-coverage-heading p:last-child { max-width: 900px; margin: 0; color: var(--ink-muted); line-height: 1.65; }
.identity-coverage-table { min-width: 0; min-height: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.identity-coverage-table table { min-width: 850px; margin: 0; }
.identity-coverage-diagnostic-table table { min-width: 980px; }
.identity-coverage-rate { display: grid; gap: 3px; min-width: 112px; }
.identity-coverage-rate strong { font-size: 16px; color: var(--ink); }
.identity-coverage-rate small, .identity-coverage-method small { color: var(--ink-faint); }
.identity-coverage-rate.is-attention strong { color: var(--danger); }
.identity-coverage-rate.is-warning strong { color: var(--warning); }
.identity-coverage-method { display: grid; gap: 3px; min-width: 150px; color: var(--ink-muted); }
.identity-coverage-method span { white-space: nowrap; }
.identity-coverage-subheading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin: 24px 0 10px; }
.identity-coverage-subheading h3 { margin: 0 0 5px; color: var(--ink); font-size: 16px; }
.identity-coverage-subheading p { max-width: 900px; margin: 0; color: var(--ink-muted); line-height: 1.55; }
.identity-coverage-empty { margin: 0; padding: 18px; color: var(--ink-muted); }
.identity-coverage-cause { min-width: 170px; color: var(--ink); font-weight: 800; }
.identity-coverage-breakdown { min-width: 220px; color: var(--ink-muted); }
.identity-coverage-evidence { min-width: 260px; color: var(--ink-muted); line-height: 1.55; }
.identity-coverage-explanation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.identity-coverage-explanation p { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); color: var(--ink-muted); line-height: 1.55; }
.identity-coverage-explanation strong { color: var(--ink); }
.identity-coverage-pending-heading { margin-top: 22px; }
.identity-coverage-pending-table table { min-width: 1180px; }
.identity-coverage-unmatched { margin-top: 16px; padding: 16px; border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); border-radius: var(--radius-md); background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.identity-coverage-unmatched[hidden] { display: none; }
.identity-coverage-unmatched .identity-coverage-subheading { margin-top: 0; }
.identity-coverage-unmatched-table table { min-width: 980px; }
.identity-coverage-opportunity-summary { margin-bottom: 12px; }
.identity-coverage-opportunity { position: relative; overflow: hidden; }
.identity-coverage-opportunity::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--ink-faint); content: ""; }
.identity-coverage-opportunity.is-positive::before { background: var(--brand); }
.identity-coverage-opportunity.is-conditional::before { background: var(--warning); }
.identity-coverage-opportunity.is-attention::before { background: var(--danger); }
.identity-coverage-opportunity.is-muted::before { background: var(--ink-faint); }
.identity-coverage-total-row td { border-top: 2px solid var(--line); background: var(--surface-subtle); font-weight: 750; }
.identity-coverage-analysis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.identity-coverage-analysis-card { min-width: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.identity-coverage-analysis-card h4 { margin: 0; color: var(--ink); font-size: 16px; }
.identity-coverage-analysis-card p { margin: 7px 0 0; color: var(--ink-muted); line-height: 1.55; }
.identity-coverage-analysis-card ul { display: grid; gap: 7px; margin: 11px 0 0; padding: 0; list-style: none; }
.identity-coverage-analysis-card li { padding: 8px 10px; border-left: 3px solid var(--ink-faint); border-radius: 7px; background: var(--surface-subtle); color: var(--ink-muted); line-height: 1.5; }
.identity-coverage-analysis-card li.is-positive { border-left-color: var(--brand); }
.identity-coverage-analysis-card li.is-conditional { border-left-color: var(--warning); }
.identity-coverage-analysis-card li.is-attention { border-left-color: var(--danger); }
.identity-coverage-opportunity-explanation { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.identity-coverage-window-note { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-subtle); color: var(--ink-muted); line-height: 1.55; }
.identity-coverage-window-note strong { color: var(--ink); }
.identity-coverage-competition { display: grid; gap: 4px; min-width: 190px; }
.identity-coverage-competition strong { color: var(--ink); }
.identity-coverage-competition small { color: var(--ink-faint); }
.identity-coverage-status { display: inline-flex; width: fit-content; max-width: 280px; white-space: normal !important; padding: 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); font-size: 12px; font-weight: 800; line-height: 1.35; }
.identity-coverage-status.is-team_context_replay_required { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.identity-coverage-status.is-competition_not_eligible { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.identity-coverage-candidates { display: grid; gap: 6px; min-width: 260px; }
.identity-coverage-candidates > span { display: grid; gap: 2px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-subtle); }
.identity-coverage-candidates strong { color: var(--ink); font-size: 13px; }
.identity-coverage-candidates small { color: var(--ink-faint); overflow-wrap: anywhere; }
.identity-coverage-action-panel { min-width: 0; margin: 18px 0 24px; padding: 18px; border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line)); border-radius: var(--radius-md); background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.identity-coverage-action-panel .identity-coverage-subheading { margin-top: 0; }
.identity-coverage-action-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.identity-coverage-action-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 14px 0; }
.identity-coverage-action-toolbar label { display: grid; gap: 5px; color: var(--ink-muted); font-size: 12px; font-weight: 700; }
.identity-coverage-action-toolbar select { min-width: 160px; }
.identity-coverage-action-search { flex: 1 1 280px; }
.identity-coverage-action-search input { width: 100%; }
.identity-coverage-action-count { flex: 1 0 100%; color: var(--ink-faint); font-size: 12px; }
.identity-coverage-work-items { display: grid; gap: 12px; min-width: 0; }
.identity-coverage-work-item { display: grid; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 8px 22px light-dark(oklch(0.22 0.03 155 / 0.04), oklch(0.02 0.01 155 / 0.16)); }
.identity-coverage-work-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.identity-coverage-work-heading h4 { margin: 0; color: var(--ink); font-size: 17px; }
.identity-coverage-work-heading p,
.identity-coverage-work-context { margin: 4px 0 0; color: var(--ink-faint); font-size: 12px; overflow-wrap: anywhere; }
.identity-coverage-work-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.identity-coverage-work-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.identity-coverage-work-candidates,
.identity-coverage-work-fixtures { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); }
.identity-coverage-work-candidates > strong,
.identity-coverage-work-fixtures > strong { color: var(--ink); font-size: 13px; }
.identity-coverage-work-candidates p,
.identity-coverage-work-fixtures p { margin: 7px 0 0; color: var(--ink-muted); font-size: 12px; }
.identity-coverage-work-candidates ul,
.identity-coverage-work-fixtures ul { display: grid; gap: 7px; margin: 8px 0 0; padding: 0; list-style: none; }
.identity-coverage-work-candidates li,
.identity-coverage-work-fixtures li { display: grid; gap: 2px; min-width: 0; padding-top: 7px; border-top: 1px dashed var(--line); }
.identity-coverage-work-candidates li:first-child,
.identity-coverage-work-fixtures li:first-child { padding-top: 0; border-top: 0; }
.identity-coverage-work-candidates li span,
.identity-coverage-work-fixtures li span { color: var(--ink-soft); font-size: 13px; overflow-wrap: anywhere; }
.identity-coverage-work-candidates li small,
.identity-coverage-work-fixtures li small { color: var(--ink-faint); font-size: 11px; overflow-wrap: anywhere; }
.identity-coverage-work-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 11px; border-top: 1px solid var(--line); }
.identity-coverage-work-action p { margin: 0; color: var(--ink-muted); line-height: 1.5; }
.identity-coverage-work-action strong { color: var(--ink); }
.identity-coverage-work-action .button { flex: 0 0 auto; }
.identity-coverage-work-items-note { margin: 10px 0 0; color: var(--ink-faint); font-size: 12px; line-height: 1.55; }
.identity-coverage-safe-retry { margin-top: 14px; padding: 13px 15px; border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--brand) 7%, var(--surface)); color: var(--ink-muted); line-height: 1.55; }
.identity-coverage-safe-retry strong { color: var(--ink); }
.identity-coverage-safe-retry p { margin: 5px 0 0; }
.identity-coverage-note { margin-top: 26px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-subtle); color: var(--ink-muted); line-height: 1.65; }
.identity-coverage-note strong { color: var(--ink); }
.identity-coverage-note p { margin: 6px 0 0; }
body.next-ui .identity-coverage-page > .identity-coverage-toolbar,
body.next-ui .identity-coverage-page > #coverage-summary,
body.next-ui .identity-coverage-page > .identity-coverage-section,
body.next-ui .identity-coverage-page > .identity-coverage-note { margin-inline: 28px; }
@media (max-width: 820px) {
  body.next-ui .identity-coverage-page > .identity-coverage-toolbar,
  body.next-ui .identity-coverage-page > #coverage-summary,
  body.next-ui .identity-coverage-page > .identity-coverage-section,
  body.next-ui .identity-coverage-page > .identity-coverage-note { margin-inline: 16px; }
  .identity-coverage-page { overflow-x: clip; }
  .identity-coverage-updated { width: 100%; margin-left: 0; }
  .identity-coverage-toolbar label, .identity-coverage-toolbar select { width: 100%; }
  .identity-coverage-heading,
  .identity-coverage-subheading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .identity-coverage-heading p:last-child,
  .identity-coverage-subheading p,
  .identity-coverage-note,
  .identity-coverage-explanation p { overflow-wrap: anywhere; }
  .identity-coverage-explanation { grid-template-columns: 1fr; }
  .identity-coverage-analysis { grid-template-columns: minmax(0, 1fr); }
  .identity-coverage-analysis-card,
  .identity-coverage-window-note { overflow-wrap: anywhere; }
  .identity-coverage-table { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none !important; }
  .identity-coverage-table .data-table,
  .identity-coverage-diagnostic-table .data-table { display: block; width: 100%; min-width: 0; }
  .identity-coverage-table .data-table thead { display: none; }
  .identity-coverage-table .data-table tbody { display: grid; gap: 12px; width: 100%; }
  .identity-coverage-table .data-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 8px 22px light-dark(oklch(0.22 0.03 155 / 0.04), oklch(0.02 0.01 155 / 0.16));
  }
  .identity-coverage-table .data-table td,
  .identity-coverage-table .data-table td:first-child {
    display: grid;
    grid-template-columns: minmax(112px, 36%) minmax(0, 1fr);
    align-items: start;
    justify-content: initial;
    gap: 12px;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 10px 12px;
    border: 0;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
  }
  .identity-coverage-table .data-table td + td { border-top: 1px solid var(--line); }
  .identity-coverage-table .data-table td:first-child {
    grid-column: 1 / -1;
    background: var(--surface-subtle);
    color: var(--ink);
    font-weight: 750;
  }
  .identity-coverage-table .data-table td.identity-coverage-evidence,
  .identity-coverage-table .data-table td.identity-coverage-candidate-cell { grid-column: 1 / -1; }
  .identity-coverage-table .data-table td::before {
    min-width: 0;
    color: var(--ink-faint);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.45;
  }
  .identity-coverage-table .data-table td > * { min-width: 0; max-width: 100%; }
  .identity-coverage-rate,
  .identity-coverage-method,
  .identity-coverage-cause,
  .identity-coverage-breakdown,
  .identity-coverage-evidence,
  .identity-coverage-competition,
  .identity-coverage-candidates { width: 100%; min-width: 0; }
  .identity-coverage-rate strong { font-size: 18px; }
  .identity-coverage-method span { white-space: normal; }
  .identity-coverage-status { max-width: 100%; }
  .identity-coverage-action-panel { padding: 14px; }
  .identity-coverage-action-links { justify-content: flex-start; }
  .identity-coverage-action-toolbar label,
  .identity-coverage-action-toolbar select { width: 100%; }
  .identity-coverage-action-search { flex-basis: 100%; }
  .identity-coverage-work-heading,
  .identity-coverage-work-action { align-items: flex-start; flex-direction: column; }
  .identity-coverage-work-tags { justify-content: flex-start; }
  .identity-coverage-work-action .button { width: 100%; }
}
@media (max-width: 620px) {
  .identity-coverage-work-evidence { grid-template-columns: minmax(0, 1fr); }
  .identity-coverage-table .data-table tr { grid-template-columns: minmax(0, 1fr); }
  .identity-coverage-table .data-table td:first-child,
  .identity-coverage-table .data-table td.identity-coverage-evidence,
  .identity-coverage-table .data-table td.identity-coverage-candidate-cell { grid-column: auto; }
}
@media (max-width: 520px) {
  .identity-coverage-page .translation-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-coverage-page .translation-stat { min-width: 0; min-height: 72px; padding: 11px 12px; }
  .identity-coverage-page .translation-stat strong { font-size: 20px; }
  .identity-coverage-table .data-table td,
  .identity-coverage-table .data-table td:first-child { grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); padding: 9px 10px; }
}
