:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172b42;
  background: #f5f7fa;
  --ink: #172b42;
  --muted: #617084;
  --line: #dce3eb;
  --accent: #245dcc;
  --surface: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.25; letter-spacing: -.5px; }
h2 { font-size: 17px; }
h3 { font-size: 14px; margin-top: 16px; }
button, select { font: inherit; color: inherit; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); padding: 8px 12px; }
button { color: var(--accent); cursor: pointer; }
button:hover { background: #edf3ff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px; background: var(--surface); z-index: 2; }
.skip-link:focus { top: 12px; }
.product-header { display: flex; align-items: center; gap: 54px; padding: 0 36px; min-height: 76px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.brand span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.product-header nav { align-self: stretch; display: flex; }
.product-header nav a { display: flex; align-items: center; border-bottom: 2px solid var(--accent); font-weight: 600; }
.header-source { margin-left: auto; font-size: 12px; color: var(--muted); }
main { padding: 30px 36px 40px; max-width: 1920px; margin: auto; }
.page-heading { margin-bottom: 26px; }
.page-heading p { margin-top: 8px; color: var(--muted); }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.results-toolbar strong { font-size: 16px; }
.results-toolbar form { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.results-toolbar label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.catalogue-table { width: 100%; border-collapse: collapse; text-align: left; }
.catalogue-table th { background: #f8fafc; color: var(--muted); font-size: 12px; font-weight: 500; padding: 13px; white-space: nowrap; }
.catalogue-table td { border-top: 1px solid var(--line); padding: 15px 13px; font-size: 13px; }
.catalogue-table tbody tr:hover { background: #f0f4f9; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.users { font-weight: 600; }
.extension-cell { display: flex; align-items: center; gap: 12px; }
.extension-copy { display: flex; flex-direction: column; gap: 4px; width: clamp(210px, 24vw, 420px); }
.extension-title { color: var(--ink); font-weight: 600; font-size: 14px; }
.extension-title, .extension-secondary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.extension-title:hover { color: var(--accent); }
.extension-secondary, .category, .store-update { color: var(--muted); font-size: 12px; }
.category { min-width: 110px; max-width: 200px; }
.store-update { white-space: nowrap; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border: 1px solid #dbe5fa; border-radius: 9px; background: #e7efff; color: #315da1; font-size: 12px; font-weight: 650; }
img.avatar { object-fit: contain; background: var(--surface); }
.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge { display: inline-block; color: var(--muted); background: #f8fafc; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 11px; white-space: nowrap; }
.featured { color: var(--accent); background: #edf3ff; border-color: transparent; }
.unavailable { color: #9d3d29; background: #fff0e9; border-color: #f0d6c9; }
.availability { font-size: 11px; color: var(--muted); margin-top: 5px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 18px; padding: 18px 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pagination > span:first-child { margin-right: auto; }
.pagination a { border: 1px solid var(--line); background: var(--surface); border-radius: 5px; padding: 8px 12px; }
.results-note, .field-help { color: var(--muted); font-size: 12px; }
.empty-state { padding: 60px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.empty-state p { margin: 16px 0; }
.empty-state a { display: inline-block; margin-top: 16px; }
.detail-main { max-width: 1200px; margin: auto; }
.back-link { display: inline-block; color: var(--muted); margin-bottom: 28px; }
.detail-heading { display: flex; gap: 22px; margin-bottom: 22px; }
.detail-heading > .avatar { width: 64px; height: 64px; font-size: 22px; border-radius: 14px; }
.detail-heading h1 { margin: 5px 0 12px; overflow-wrap: anywhere; }
.detail-heading p { color: var(--muted); margin-bottom: 8px; }
.detail-heading .detail-category { color: var(--accent); font-size: 12px; }
.content-observed { margin: 8px 0 22px; font-size: 12px; color: var(--muted); }
.detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; margin-bottom: 30px; padding: 20px 0; }
.detail-metrics > div { display: flex; flex-direction: column; gap: 8px; padding: 0 22px; min-width: 0; }
.detail-metrics > div + div { border-left: 1px solid var(--line); }
.detail-metrics span { font-size: 12px; color: var(--muted); }
.detail-metrics strong { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
.detail-description { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 26px; margin-bottom: 20px; overflow-wrap: anywhere; }
.description-text { white-space: pre-wrap; line-height: 1.8; margin-top: 20px; overflow-wrap: anywhere; }
.detail-facts dl { margin: 0 0 24px; }
.detail-facts dt { margin-top: 18px; font-size: 12px; color: var(--muted); }
.detail-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.language-list { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.extension-id { font: 12px ui-monospace, monospace; }
.detail-facts .field-help { margin-top: 16px; }
@media (max-width: 900px) {
  .results-toolbar { align-items: flex-start; flex-direction: column; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-facts { padding: 0 8px; }
  .detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
  .detail-metrics > div:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
  .product-header { gap: 24px; padding: 0 16px; min-height: 70px; }
  .header-source { display: none; }
  main { padding: 22px 16px; }
  h1 { font-size: 24px; }
  .results-toolbar form { gap: 12px; }
  .results-toolbar label { flex-wrap: wrap; }
  .detail-heading { gap: 14px; }
  .detail-heading > .avatar { width: 42px; height: 42px; font-size: 16px; }
  .detail-heading h1 { font-size: 22px; }
  .detail-metrics > div { padding: 0 14px; }
  .detail-metrics strong { font-size: 18px; }
  .detail-description { padding: 20px; }
}
