:root {
  color-scheme: light;
  --ink: #15212a;
  --muted: #62717a;
  --line: #d8e1e6;
  --soft: #eef4f7;
  --panel: #ffffff;
  --accent: #116d74;
  --accent-strong: #0c5661;
  --gold: #d3912f;
  --deep: #102832;
  --warn: #9a5b16;
  --bad: #9b2d2d;
  --ok-bg: #e8f6f3;
  --warn-bg: #fff4df;
  --bad-bg: #fdeeee;
  --shadow: 0 10px 28px rgba(21, 35, 46, 0.07);
  --modal-shadow: 0 22px 70px rgba(16, 33, 42, 0.24);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f6f9fa;
}

.page {
  min-height: 100vh;
  padding: 18px;
}

.brand-bar {
  display: flex;
  width: min(1120px, 100%);
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--deep);
  box-shadow: inset 0 -5px 0 rgba(211, 145, 47, 0.45);
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.brand-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.brand-actions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(16, 40, 50, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--deep);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.brand-actions a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.brand-actions a.link-pending {
  color: var(--muted);
  cursor: default;
}

.brand-actions a.link-pending:hover {
  border-color: rgba(16, 40, 50, 0.12);
  color: var(--muted);
  transform: none;
}

.checker {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.eyebrow,
.result-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.subcopy {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.lookup-panel {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.start-guide {
  display: grid;
  grid-template-columns: auto minmax(0, max-content) minmax(240px, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(17, 109, 116, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.start-guide span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.start-guide strong {
  font-size: 0.96rem;
}

.start-guide p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.filters,
.quick-search,
.result-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
}

.quick-search {
  padding: 14px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

select,
input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

select:disabled {
  color: #91a0a8;
  background: #f5f7f8;
}

select:focus,
input:focus,
button:focus {
  outline: 3px solid rgba(22, 118, 111, 0.2);
  outline-offset: 1px;
}

.search-results {
  display: grid;
  gap: 8px;
  max-height: 255px;
  margin-top: 12px;
  overflow: auto;
}

.search-result {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--soft);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.search-result:hover {
  border-color: var(--accent);
  background: #e1f0ee;
}

.result-panel {
  display: grid;
  gap: 6px;
  min-height: auto;
  padding: 14px;
  margin-bottom: 10px;
}

.result-panel.neutral {
  background: #fff;
}

.result-panel h2 {
  margin: 6px 0 10px;
  font-size: 1.08rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.result-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.result-panel.ok {
  border-color: rgba(22, 118, 111, 0.35);
  background: var(--ok-bg);
}

.result-panel.warn {
  border-color: rgba(154, 91, 22, 0.3);
  background: var(--warn-bg);
}

.result-panel.bad {
  border-color: rgba(155, 45, 45, 0.3);
  background: var(--bad-bg);
}

.product-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 13px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.muted-pill {
  color: var(--deep);
  background: rgba(16, 40, 50, 0.12);
}

.product-link {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  margin-top: 10px;
  border: 1px solid rgba(17, 109, 116, 0.2);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--accent-strong);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.product-link:hover {
  border-color: var(--accent);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.meta-grid div {
  padding: 10px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
}

.meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.meta-grid strong {
  display: block;
  margin-top: 4px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.support-card,
.interface-card {
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.support-card {
  display: grid;
  gap: 9px;
  min-height: 92px;
}

.support-card span,
.interface-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.support-card strong,
.interface-card strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.15;
}

.support-card strong::before {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-right: 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  line-height: 1;
  vertical-align: 1px;
}

.support-card.is-supported {
  border-color: rgba(17, 109, 116, 0.26);
  background: var(--ok-bg);
}

.support-card.is-supported strong {
  color: var(--accent-strong);
}

.support-card.is-supported strong::before {
  content: "✓";
  background: var(--accent);
}

.support-card.not-supported {
  border-color: rgba(155, 45, 45, 0.22);
  background: var(--bad-bg);
}

.support-card.not-supported strong {
  color: var(--bad);
}

.support-card.not-supported strong::before {
  content: "!";
  background: var(--bad);
}

.interface-card {
  display: grid;
  gap: 7px;
}

.wired-note {
  border-left: 3px solid var(--gold);
  padding: 2px 0 2px 12px;
}

.fine-print {
  margin: 0;
  padding: 0 2px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 26, 33, 0.38);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--modal-shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.modal-result {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.modal-result h2 {
  max-width: calc(100% - 72px);
  margin: 4px 0 0;
  font-size: 1.65rem;
  line-height: 1.05;
}

.modal-result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.modal-product {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(17, 109, 116, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfb;
}

.modal-product.unsupported {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.modal-product.unsupported .modal-actions {
  justify-content: flex-end;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-footer-actions {
  justify-content: flex-start;
  padding-top: 2px;
}

.modal-footer-actions .product-link {
  margin-top: 0;
}

.secondary-action {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--deep);
  background: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.secondary-action[aria-disabled="true"] {
  color: var(--muted);
  background: #f3f6f7;
  cursor: default;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .page {
    padding: 14px;
  }

  .brand-bar {
    display: grid;
    justify-items: start;
    gap: 10px;
  }

  .brand-actions {
    justify-content: flex-start;
  }

  .lookup-panel,
  .result-panel,
  .start-guide {
    grid-template-columns: 1fr;
  }

  .result-panel {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }

  .subcopy,
  .start-guide p,
  .result-panel p,
  .fine-print {
    font-size: 0.92rem;
  }

  .start-guide {
    gap: 7px;
    align-items: start;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .lookup-panel {
    gap: 10px;
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: 88vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 14px 14px 0 0;
    padding: 16px;
  }

  .modal-result h2 {
    font-size: 1.38rem;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}
