.idg { display:grid; gap:14px; min-width:0; }
.idg .panel { margin:0; }
.idg-input,.idg-results { padding:18px 20px; min-width:0; }
.idg h2 { font-size:16px; margin:0 0 6px; }
.idg p { margin:6px 0; line-height:1.6; }
.idg-form-row,.idg-filters { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:8px 0; }
.idg-form-row input,.idg-filters select { padding:8px 10px; border:1px solid #dbe3ee; border-radius:7px; font:inherit; color:inherit; background:#fff; }
.idg-form-row input { flex:1 1 275px; min-width:0; max-width:100%; }
.idg-input label { font-weight:650; }
.idg-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.idg-card { padding:14px 16px; }
.idg-card p,.idg-check small { color:#5d6d85; }
.idg-target,.idg-evidence,.idg-samples { overflow-wrap:anywhere; }
.idg-error { color:#a32929; }
.idg-check { border-top:1px solid #e5ebf3; }
.idg-check summary { cursor:pointer; padding:12px 0; }
.idg-check summary strong { margin:0 8px; }
.idg-state { border-radius:5px; background:#eef2f8; padding:3px 7px; font-size:12px; }
.idg-issue { color:#9a2424; background:#ffeded; }
.idg-warning { color:#815800; background:#fff4dd; }
.idg-passed { color:#165d3c; background:#e8f6ee; }
.idg-evidence { padding:0 0 12px 14px; }
.idg-page { margin:10px 0; padding:10px 12px; background:#f5f7fb; border-radius:7px; }
.idg-page-url { color:#475b78; font-size:13px; }
.idg-page button { display:block; margin-top:6px; }
.idg-samples { margin-top:12px; }
.idg-views,.idg-history-head,.idg-history-filters,.idg-history-paging { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.idg .idg-views .button[aria-pressed="true"] { color:#193f9d; border-color:#9eb1e7; background:#e7eeff; font-weight:750; }
.idg-history { padding:18px 20px; min-width:0; }
.idg-history h3 { margin:0 0 6px; }
.idg-history-head { justify-content:space-between; align-items:flex-start; }
.idg-history-head p,.idg-history-metrics span,.idg-history-table small { color:#5d6d85; }
.idg-history-metrics,.idg-history-diff { display:grid; grid-template-columns:repeat(auto-fit,minmax(108px,1fr)); gap:10px; margin:14px 0; }
.idg-history-metrics > div,.idg-history-diff > div { display:grid; gap:4px; padding:10px 12px; border:1px solid #e0e7f1; border-radius:8px; background:#f7f9fd; }
.idg-history-metrics strong { font-size:22px; color:#2548aa; }
.idg-history-filters { align-items:flex-end; padding:8px 0 12px; }
.idg-history-filters label { display:grid; gap:4px; font-weight:650; }
.idg-history-filters input { min-height:36px; padding:5px 9px; border:1px solid #dbe3ee; border-radius:7px; font:inherit; max-width:100%; }
.idg-history-table-wrap { overflow-x:auto; }
.idg-history-table { border-collapse:collapse; text-align:left; width:100%; min-width:590px; }
.idg-history-table th,.idg-history-table td { border-bottom:1px solid #e5ebf3; padding:10px 8px; vertical-align:top; }
.idg-history-table th { color:#465b78; background:#f3f6fb; }
.idg-history-table td:nth-child(2) { max-width:360px; overflow-wrap:anywhere; }
.idg-history-table small { display:block; margin-top:3px; }
.idg-history-empty { padding:20px 8px; color:#5d6d85; }
.idg-history-paging { justify-content:flex-end; margin-top:12px; }
.idg-history-compare,.idg-history-evidence { margin:16px 0; padding-top:14px; border-top:1px solid #e5ebf3; overflow-wrap:anywhere; }
.idg-history-diff ul { margin:0; padding-left:17px; }
@media(max-width:640px) {
  .idg-cards { grid-template-columns:1fr; }
  .idg-input,.idg-results,.idg-history { padding:14px; }
  .idg-check summary small { display:block; margin-top:5px; }
}
