.xhd {
  --xhd-ink: #172033;
  --xhd-muted: #667085;
  --xhd-line: #e4e7ec;
  --xhd-soft: #f7f9fc;
  --xhd-accent: #ea580c;
  --xhd-accent-dark: #c2410c;
  color: var(--xhd-ink);
  font-family: inherit;
  margin: 0 auto;
  max-width: 1180px;
}

.xhd *, .xhd *::before, .xhd *::after { box-sizing: border-box; }
.xhd__hero { max-width: 760px; margin-bottom: 24px; }
.xhd__eyebrow { color: var(--xhd-accent); font-size: 13px; font-weight: 750; letter-spacing: .12em; margin: 0 0 8px; }
.xhd__title { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.035em; line-height: 1.1; margin: 0; }
.xhd__lead { color: var(--xhd-muted); font-size: 16px; line-height: 1.75; margin: 14px 0 0; }

.xhd__stats { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0; }
.xhd__stats > div { background: linear-gradient(145deg, #fff 20%, #fff7ed); border: 1px solid #fed7aa; border-radius: 14px; padding: 18px; }
.xhd__stats strong { display: block; font-size: 28px; line-height: 1; }
.xhd__stats span { color: var(--xhd-muted); display: block; font-size: 13px; margin-top: 8px; }

.xhd__form { background: var(--xhd-soft); border: 1px solid var(--xhd-line); border-radius: 16px; padding: 18px; }
.xhd__form label span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.xhd__form input, .xhd__form select { appearance: none; background: #fff; border: 1px solid #d0d5dd; border-radius: 9px; color: var(--xhd-ink); font: inherit; min-height: 44px; padding: 9px 12px; width: 100%; }
.xhd__form input:focus, .xhd__form select:focus { border-color: var(--xhd-accent); box-shadow: 0 0 0 3px rgba(234, 88, 12, .12); outline: 0; }
.xhd__search { display: block; }
.xhd__filters { align-items: end; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto; margin-top: 14px; }
.xhd__filters button, .xhd__pagination button { border: 1px solid var(--xhd-accent); border-radius: 9px; cursor: pointer; font: inherit; font-weight: 700; min-height: 44px; padding: 9px 17px; }
.xhd__filters button[type="submit"] { background: var(--xhd-accent); color: #fff; }
.xhd__filters button[type="submit"]:hover { background: var(--xhd-accent-dark); }
.xhd__filters .xhd__reset { background: #fff; color: var(--xhd-accent-dark); }

.xhd__status { color: var(--xhd-muted); margin: 20px 2px 12px; min-height: 24px; }
.xhd__results { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xhd__card { background: #fff; border: 1px solid var(--xhd-line); border-radius: 14px; box-shadow: 0 7px 24px rgba(16, 24, 40, .055); display: flex; flex-direction: column; min-width: 0; padding: 20px; }
.xhd__card-head { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; }
.xhd__card-title { font-size: 18px; line-height: 1.42; margin: 0; overflow-wrap: anywhere; }
.xhd__badge { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 999px; color: #9a3412; flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 5px 9px; }
.xhd__metadata { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 15px; }
.xhd__meta { color: var(--xhd-muted); font-size: 13px; }
.xhd__meta strong { color: var(--xhd-ink); margin-right: 3px; }
.xhd__models { color: #475467; font-size: 14px; line-height: 1.6; margin: 13px 0 0; overflow-wrap: anywhere; }
.xhd__provenance { color: var(--xhd-muted); font-size: 12px; line-height: 1.6; margin: 13px 0 0; overflow-wrap: anywhere; }
.xhd__provenance strong { color: #475467; }
.xhd__actions { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; padding-top: 18px; }
.xhd__action { border: 1px solid #d0d5dd; border-radius: 8px; color: #344054; font-size: 14px; font-weight: 700; padding: 9px 12px; text-decoration: none; }
.xhd__action:hover { border-color: var(--xhd-accent); color: var(--xhd-accent-dark); }
.xhd__action--primary { background: var(--xhd-accent); border-color: var(--xhd-accent); color: #fff; }
.xhd__action--primary:hover { background: var(--xhd-accent-dark); color: #fff; }
.xhd__restricted { color: #b54708; font-size: 12px; }

.xhd__pagination { align-items: center; display: flex; gap: 14px; justify-content: center; margin: 24px 0; }
.xhd__pagination[hidden] { display: none; }
.xhd__pagination button { background: #fff; color: var(--xhd-accent-dark); }
.xhd__pagination button:disabled { cursor: not-allowed; opacity: .4; }
.xhd__pagination span { color: var(--xhd-muted); font-size: 14px; }
.xhd__rights { border-top: 1px solid var(--xhd-line); color: var(--xhd-muted); font-size: 12px; line-height: 1.7; margin: 28px 0 0; padding-top: 16px; }

@media (max-width: 820px) {
  .xhd__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xhd__filters { grid-template-columns: 1fr 1fr; }
  .xhd__filters label:first-child { grid-column: 1 / -1; }
  .xhd__results { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .xhd__stats { gap: 8px; }
  .xhd__stats > div { padding: 14px; }
  .xhd__stats strong { font-size: 23px; }
  .xhd__filters { grid-template-columns: 1fr; }
  .xhd__filters label:first-child { grid-column: auto; }
  .xhd__filters button { width: 100%; }
  .xhd__card-head { display: block; }
  .xhd__badge { display: inline-block; margin-top: 10px; }
}
