:root {
  color-scheme: light dark;
  --page: #F3F5F7;
  --card: #FFFFFF;
  --text: #14181C;
  --quiet: #5B6670;
  --line: #D5DBE0;
  --accent: #0B6FA4;
  --on-accent: #FFFFFF;
  --bar: #E7EBEF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0F1418;
    --card: #171D22;
    --text: #E8EDF1;
    --quiet: #9AA6B0;
    --line: #2B343C;
    --accent: #4DB3E6;
    --on-accent: #06202E;
    --bar: #1E252B;
  }
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0 16px 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--page);
}
a { color: var(--accent); text-decoration: underline; }
a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  max-width: 840px;
  margin: 0 auto;
  padding: 22px 0 18px;
}
.site-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.mark {
  display: inline-block;
  width: 26px;
  height: 24px;
  background: linear-gradient(90deg,
    transparent 0 3%, #00A3D9 3% 22%,
    transparent 22% 28%, #D6247F 28% 47%,
    transparent 47% 53%, #F2C200 53% 72%,
    transparent 72% 78%, var(--text) 78% 97%,
    transparent 97% 100%);
}
.site-line { font-size: 15px; color: var(--quiet); }
.window {
  max-width: 840px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 20px var(--line);
  overflow: hidden;
}
.titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 14px;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
}
.dots {
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: 40px;
  border-radius: 50%;
  background: var(--line);
  box-shadow: 20px 0 0 var(--line), 40px 0 0 var(--line);
}
.window-title {
  overflow: hidden;
  font-size: 15px;
  color: var(--quiet);
  white-space: nowrap;
  text-overflow: ellipsis;
}
main { padding: 28px; }
main > :first-child { margin-top: 0; }
h1 { font-size: 26px; line-height: 1.25; margin: 8px 0 14px; }
h2 { font-size: 21px; line-height: 1.3; margin: 34px 0 10px; }
h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
p { margin: 10px 0; }
ul { color: var(--quiet); padding-left: 22px; }
ul li { margin: 8px 0; }
nav { color: var(--quiet); margin-bottom: 6px; }
.crumb::before { content: "/"; margin: 0 8px; }
.offer {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.offer-text > h1 { margin-top: 0; }
.search { margin-top: 14px; }
.search .field-help { margin: 0 0 8px; font-size: 15px; color: var(--quiet); }
.find-row { display: flex; gap: 10px; align-items: stretch; }
.find-row input { flex: 1 1 auto; min-width: 0; margin: 0; }
.find-button { flex: 0 0 auto; border: 0; font-family: inherit; cursor: pointer; white-space: nowrap; }
.quiet-facts { margin: 6px 0 0; font-size: 15px; color: var(--quiet); }
.result-count { margin: 12px 0 0; font-size: 15px; color: var(--quiet); }
.result-count:empty { display: none; }
.result-card {
  margin: 10px 0;
  padding: 14px 16px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.result-name { margin: 0; font-weight: 700; }
.result-status { margin: 2px 0 12px; font-size: 15px; color: var(--quiet); }
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin: 0;
}
.match-list { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--line); }
.match-list li { margin: 0; border-bottom: 1px solid var(--line); }
.match-pick {
  display: block;
  width: 100%;
  padding: 11px 4px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  text-align: left;
  color: var(--accent);
  cursor: pointer;
}
.match-pick:hover { text-decoration: underline; }
.match-pick:focus-visible, .find-button:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}
.outcome {
  margin: 6px 0 0;
  padding: 22px 16px 14px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.outcome-sheets { display: flex; align-items: flex-start; justify-content: center; gap: 12px; }
.outcome-item { flex: 0 1 128px; min-width: 0; margin: 0; text-align: center; }
.outcome-arrow { align-self: center; margin-top: -24px; color: var(--quiet); }
.sheet {
  aspect-ratio: 210 / 297;
  width: 100%;
  padding: 14% 12%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 2px 8px var(--line);
}
.sheet-mark { display: block; width: 20px; height: 18px; margin-bottom: 12%; }
.sheet-line {
  display: block;
  height: 4px;
  margin: 0 0 9%;
  border-radius: 2px;
  background: var(--quiet);
  opacity: 0.4;
}
.sheet-line.sheet-title { width: 60%; height: 6px; background: var(--text); opacity: 0.65; margin-bottom: 12%; }
.sheet-line:nth-child(3) { width: 100%; }
.sheet-line:nth-child(4) { width: 92%; }
.sheet-line:nth-child(5) { width: 97%; }
.sheet-line:nth-child(6) { width: 70%; }
.sheet-line:nth-child(7) { width: 0; height: 0; margin-bottom: 14%; }
.sheet-line:nth-child(8) { width: 95%; }
.sheet-line:nth-child(9) { width: 82%; }
.sheet-caption { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--quiet); }
.outcome figcaption { margin-top: 12px; font-size: 15px; color: var(--quiet); text-align: center; }
.how-list {
  list-style: none;
  counter-reset: how;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 12px 0 0;
  color: var(--text);
}
.how-list > li {
  counter-increment: how;
  margin: 0;
  padding: 12px 14px 14px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.how-list > li::before {
  content: counter(how);
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
}
.how-list strong { display: block; margin-bottom: 4px; }
.how-list span { color: var(--quiet); }
.good ul { color: var(--text); padding-left: 20px; }
.credit { font-size: 15px; color: var(--quiet); overflow-wrap: anywhere; }
.credit p { margin: 4px 0; }
.credit details { margin: 4px 0; }
.credit summary { font-weight: 400; }
.search label { display: block; font-weight: 600; margin-bottom: 6px; }
.search input {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.search-hint, .search-none { color: var(--quiet); }
.brand {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.brand:first-of-type { border-top: 1px solid var(--line); }
.brand > summary {
  padding: 12px 4px;
  color: var(--text);
}
.model-list {
  list-style: none;
  padding: 0 4px 12px;
  margin: 0;
  color: var(--text);
  column-width: 220px;
  column-count: 3;
  column-gap: 24px;
}
.model-list li { break-inside: avoid; margin: 4px 0; }
.download {
  display: inline-block;
  min-height: 48px;
  padding: 12px 26px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 10px;
}
.download:hover { text-decoration: underline; }
.download:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}
.build-link {
  color: var(--accent);
  text-decoration: underline;
  background: none;
  border: 0;
}
.familiar ul { color: var(--text); }
.familiar-source { display: block; color: var(--quiet); }
.familiar-note { color: var(--quiet); }
.card {
  margin: 22px 0;
  padding: 4px 20px 8px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.card h2 { margin-top: 14px; }
.tested, .macos-support { font-size: 15px; color: var(--quiet); }
.note { color: var(--quiet); }
.tested-label { font-weight: 600; }
.get { margin: 24px 0 12px; }
.get p { margin: 8px 0; font-size: 15px; color: var(--quiet); }
.build-model { margin: 18px 0 8px; }
.steps { padding-left: 26px; }
.steps > li { margin: 18px 0; }
.steps > li > .step { font-weight: 600; }
.steps > li > ol { list-style-type: lower-alpha; }
.steps li { margin: 8px 0; }
.steps img { display: block; max-width: 100%; height: auto; margin: 10px 0; border-radius: 8px; }
details ol { list-style-type: decimal; }
details { margin: 14px 0; }
summary {
  cursor: pointer;
  padding: 6px 0;
  font-weight: 600;
  color: var(--accent);
}
summary:hover { text-decoration: underline; }
.development {
  padding: 8px 12px;
  font-weight: 700;
  color: var(--text);
  border: 2px solid var(--text);
  border-radius: 8px;
}
code, .path { font-family: ui-monospace, Menlo, Monaco, monospace; }
.tech ul, .paths + p { font-size: 15px; }
.path, .sha256 { word-break: break-all; }
@media (max-width: 760px) {
  .offer { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .how-list { grid-template-columns: minmax(0, 1fr); }
  .how-list > li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; }
  .how-list > li::before { margin: 0; grid-row: 1 / span 2; }
}
@media (max-width: 600px) {
  .find-row { flex-direction: column; }
  body { padding: 0 0 32px; }
  .top { padding: 16px 16px 12px; }
  .window { border-left: 0; border-right: 0; border-radius: 0; }
  main { padding: 18px 16px; }
  .steps { padding-left: 22px; }
  .model-list { column-count: 1; }
  .download { display: block; width: 100%; }
}
