.hod-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hod-result {
  overflow: hidden;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

.hod-result--failed {
  border-color: #f3bcc7;
  background: linear-gradient(180deg, #fff, #fff7f8);
}

.hod-result--stale { border-color: #f1d5a4; }
.hod-result__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hod-result__top h4 { margin: 0; font-size: 1.04rem; line-height: 1.35; }
.hod-result__kind { margin: 0 0 5px !important; color: #789; font-size: .61rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hod-result__summary { min-height: 45px; margin: 13px 0 14px; color: var(--muted); font-size: .79rem; line-height: 1.65; }
.hod-progress { margin: 0 0 14px; }
.hod-progress__labels { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--muted); font-size: .68rem; }
.hod-progress__labels strong { color: var(--ink); }
.hod-progress__track { overflow: hidden; height: 8px; border-radius: 999px; background: #e9edf4; }
.hod-progress__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3568c7, #16a06c); }
.hod-resultmetrics { display: flex; flex-wrap: wrap; gap: 7px; }
.hod-resultmetric { display: flex; align-items: baseline; gap: 5px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.hod-resultmetric small { color: var(--muted); font-size: .61rem; }
.hod-resultmetric b { font-size: .76rem; }
.hod-resultmetric--healthy b { color: var(--green); }
.hod-resultmetric--failed b { color: var(--red); }
.hod-resultmetric--running b { color: #3568c7; }
.hod-result__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--muted); font-size: .65rem; }
.hod-result__foot code { color: #334155; }
.hod-resultdetail { margin: 14px -19px -19px; border-top: 1px solid var(--line); background: #fff; }
.hod-resultdetail > summary { padding: 12px 19px; cursor: pointer; color: #3568c7; font-size: .7rem; font-weight: 800; }
.hod-resultdetail__body { padding: 0 19px 18px; font-size: .72rem; }
.hod-resultdetail__body > p { margin: 10px 0; }
.hod-resultdetail__body code { overflow-wrap: anywhere; }
.hod-resultdetail__body pre { overflow: auto; max-height: 380px; padding: 14px; border-radius: 12px; background: #111827; color: #d8e1f0; font: 11px/1.55 "Cascadia Code", Consolas, monospace; white-space: pre-wrap; }
.hod-resultitems { overflow: hidden; margin: 4px 0 14px; border: 1px solid var(--line); border-radius: 12px; }
.hod-resultitem { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 11px; border-top: 1px solid var(--line); }
.hod-resultitem:first-child { border-top: 0; }
.hod-resultitem > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hod-resultitem a, .hod-resultitem strong { overflow-wrap: anywhere; color: var(--ink); font-size: .73rem; font-weight: 800; text-decoration: none; }
.hod-resultitem a:hover { text-decoration: underline; }
.hod-resultitem small { color: var(--muted); font-size: .63rem; line-height: 1.45; }
.hod-resultitem > span { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .59rem; }

.hod-data-dashboard { margin-top: 22px; padding: 24px; border: 1px solid #dce4f0; border-radius: 22px; background: #f7f9fc; }
.hod-data-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.hod-data-title h3 { margin-bottom: 6px; font-size: 1.35rem; letter-spacing: -.03em; }
.hod-data-title p:last-child { margin: 0; color: var(--muted); font-size: .77rem; }
.hod-data-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.hod-data-kpi { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.hod-data-kpi span { display: block; margin-bottom: 8px; color: var(--muted); font-size: .66rem; font-weight: 750; }
.hod-data-kpi strong { display: block; overflow: hidden; font-size: 1.15rem; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.hod-data-kpi--healthy strong { color: var(--green); }
.hod-data-kpi--failed strong { color: var(--red); }
.hod-data-subtitle { margin: 0 0 10px; font-size: .94rem; }
.hod-data-toolbar { display: grid; grid-template-columns: 1fr 1.4fr 1fr .8fr auto auto; gap: 8px; align-items: end; margin: 24px 0 12px; }
.hod-data-toolbar--keyword { grid-template-columns: minmax(220px, 1.5fr) minmax(150px, .7fr) auto auto; max-width: 760px; }
.hod-data-toolbar label { display: flex; flex-direction: column; gap: 5px; }
.hod-data-toolbar label span { color: var(--muted); font-size: .63rem; font-weight: 750; }
.hod-data-toolbar input { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #cfd7e5; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: .74rem; }
.hod-data-toolbar button { min-height: 39px; padding: 8px 13px; border: 1px solid #3568c7; border-radius: 9px; background: #3568c7; color: #fff; cursor: pointer; font: inherit; font-size: .7rem; font-weight: 800; }
.hod-data-toolbar button.is-secondary { background: #fff; color: #3568c7; }
.hod-data-count { margin: 0 0 9px; color: var(--muted); font-size: .7rem; }
.hod-data-table { min-width: 920px; background: #fff; }
.hod-data-table--accounts { min-width: 760px; }
.hod-data-table td { vertical-align: middle; }
.hod-data-table td a { color: #3568c7; font-weight: 750; text-decoration: none; }
.hod-data-table td a:hover { text-decoration: underline; }
.hod-data-table tbody tr[hidden] { display: none; }

@media (max-width: 900px) {
  .hod-results { grid-template-columns: 1fr; }
  .hod-data-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hod-data-toolbar, .hod-data-toolbar--keyword { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}

@media (max-width: 620px) {
  .hod-data-dashboard { padding: 17px; border-radius: 17px; }
  .hod-data-title { flex-direction: column; }
  .hod-data-kpis { grid-template-columns: 1fr 1fr; }
  .hod-data-toolbar, .hod-data-toolbar--keyword { grid-template-columns: 1fr; }
}
