:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f3f5f8;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
.app-shell { width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 38px 0 60px; }
.hero { margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: #b3151b; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; }
.intro { margin: 12px 0 24px; color: #586174; font-size: 1.05rem; }
.search-box { display: block; }
.search-box input { width: 100%; border: 2px solid transparent; border-radius: 18px; padding: 19px 22px; background: #fff; box-shadow: 0 10px 35px rgba(35, 45, 70, .09); font-size: 1.1rem; outline: none; }
.search-box input:focus { border-color: #df2028; box-shadow: 0 0 0 4px rgba(223, 32, 40, .11); }
.result-summary { display: flex; gap: 6px; margin: 14px 4px 0; color: #697386; font-size: .93rem; }
.sort-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; color: #697386; font-size: .88rem; }
.sort-bar > span { margin-right: 3px; font-weight: 700; }
.sort-bar button { border: 1px solid #dce1e9; border-radius: 999px; padding: 8px 13px; color: #3f495c; background: #fff; cursor: pointer; }
.sort-bar button:hover { border-color: #df2028; color: #b3151b; }
.sections { display: grid; gap: 22px; }
.section-card { overflow: hidden; border: 1px solid #e3e7ee; border-radius: 18px; background: #fff; box-shadow: 0 12px 38px rgba(35, 45, 70, .07); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #e3e7ee; background: #fffafb; }
.section-heading h2 { margin: 0; color: #9f1319; font-size: 1.18rem; }
.section-heading span { flex: none; color: #697386; font-size: .82rem; }
.table-card { overflow: hidden; border: 1px solid #e3e7ee; border-radius: 18px; background: #fff; box-shadow: 0 12px 38px rgba(35, 45, 70, .07); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead { position: sticky; top: 0; z-index: 2; background: #f8f9fb; box-shadow: 0 1px #e3e7ee; }
th { padding: 0; text-align: left; color: #4b5568; font-size: .78rem; text-transform: uppercase; letter-spacing: .055em; }
th > button { width: 100%; border: 0; padding: 15px 18px; color: inherit; background: transparent; text-align: left; cursor: pointer; font-weight: 800; text-transform: inherit; letter-spacing: inherit; }
th:not(:has(button)) { padding: 15px 18px; }
td { padding: 15px 18px; border-top: 1px solid #edf0f4; vertical-align: middle; }
tbody tr:hover { background: #fffafb; }
.number-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.muted { color: #a0a7b4; }
.empty { padding: 48px 20px; color: #697386; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

@media (max-width: 720px) {
  .app-shell { width: min(100% - 20px, 1320px); padding-top: 24px; }
  .table-scroll { overflow: visible; }
  .section-heading { align-items: flex-start; padding: 16px; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { padding: 12px 14px; border-top: 1px solid #edf0f4; }
  td { display: grid; grid-template-columns: 125px 1fr; gap: 12px; border: 0; padding: 6px 4px; white-space: normal; }
  td::before { content: attr(data-label); color: #747d8d; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
}
