#chkdlg { width: min(760px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); }
#chkdlg .in { max-height: calc(100dvh - 24px); overscroll-behavior: contain; }
#chkdlg .x { background: white; border-radius: 50%; }

.inventory-panel { display: grid; gap: 8px; margin: 12px 0 15px; }
.inventory-panel h4, .inventory-card h5, .inventory-panel p { margin: 0; }
.inventory-panel h4 { font-size: 18px; }
.inventory-card { display: grid; gap: 4px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.inventory-card h5 { font-size: 15px; }
.inventory-card p, .inventory-panel > p { font-size: 14px; color: var(--muted); }
.inventory-alert { border-color: #d98277; border-left: 4px solid #a52b39; background: #fff0ed; }
.inventory-alert h5, .inventory-pair strong { color: #801b27; }
.visibility-lead { margin: 9px 0 14px; padding: 12px 14px; border: 1px solid #dba65d; border-radius: 12px; background: #fff5e2; }
.visibility-lead h4, .inventory-visibility h5 { margin: 0; font-size: clamp(17px, 3vw, 22px); line-height: 1.2; }
.visibility-lead p { margin: 5px 0 0; font-size: 14px; }
.inventory-visibility { padding: 11px 13px; }
.inventory-pages .inventory-thin { padding-left: 7px; border-left: 3px solid #a52b39; }
.inventory-thin strong { display: block; color: #801b27; font-size: 13px; }
.inventory-missing { border-left: 4px solid #ae7131; background: #fff5e2; }
.inventory-pair { display: grid; margin-block: 4px; font-size: 13px; }
.inventory-card a { display: block; color: #632831; overflow-wrap: anywhere; text-underline-offset: 2px; }
.inventory-card summary { cursor: pointer; font-weight: 700; }
.inventory-pages { list-style: none; margin: 2px 0 0; padding: 0; }
.inventory-pages li { border-top: 1px solid var(--line); padding: 6px 0; }
.inventory-pages a { font-size: 14px; font-weight: 650; }
.inventory-priority { padding: 13px; border-left: 4px solid #632831; }
.inventory-priority h5 { font-size: 18px; }
.inventory-priority ol { margin: 4px 0 8px; padding-left: 22px; }
.inventory-priority li + li { margin-top: 8px; }
.inventory-priority .inventory-offer { width: fit-content; padding: 8px 12px; border-radius: 6px; background: #632831; color: white; text-decoration: none; font-weight: 700; }
.technical-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.technical-counts strong { display: block; margin-block: 2px 3px; font-size: 25px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.technical-counts span { font-size: 12px; line-height: 1.35; font-weight: 600; }
.technical-findings { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid #ae7131; border-radius: 9px; background: var(--soft); }
.technical-findings h4 { margin: 0 0 6px; font-size: 16px; }
.technical-findings > div + div { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.technical-findings p { margin: 3px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.report-scope, .report-export-error { color: var(--muted); font-size: 13px; margin: 5px 0 12px; }
.report-export { margin: 5px 0; padding: 7px 12px; border: 1px solid #632831; border-radius: 7px; color: #632831; background: white; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.report-export:disabled { opacity: .5; cursor: wait; }
.chk-technical { margin: 12px 0; }
.chk-technical > summary { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); font-weight: 700; cursor: pointer; }

@media (max-width: 520px) {
  #chkdlg .in { padding: 18px 14px; }
  .technical-counts { gap: 6px; }
  .technical-counts > div { padding: 8px; }
  .technical-counts strong { font-size: 21px; }
}
