:root {
  color-scheme: light dark;
  --bg: #faf9f6;
  --panel: #ffffff;
  --text: #1d1c1a;
  --muted: #6b6860;
  --line: #dedbd3;
  --action: #1d1c1a;
  --action-text: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --panel: #201f1d;
    --text: #f1efe9;
    --muted: #a29e94;
    --line: #37352f;
    --action: #f1efe9;
    --action-text: #161514;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 40rem; margin: 0 auto; padding: 1.25rem 1rem 4rem; }
h1 { font-size: 1.4rem; line-height: 1.25; margin: 0.25rem 0; }
h2 { font-size: 1.1rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 0; }
p { margin: 0.4rem 0; }
a { color: inherit; }
.muted, .tests p { color: var(--muted); }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
model-viewer {
  width: 100%;
  height: 22rem;
  margin-top: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
ol.steps { padding-left: 1.25rem; }
ol.steps li { margin: 0.3rem 0; }
ul.tests { list-style: none; margin: 0; padding: 0; }
ul.tests li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.9rem;
  margin: 0.6rem 0;
}
.open {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  margin-top: 0.6rem;
  padding: 0.3rem 1rem 0.3rem 0.3rem;
  border: 0;
  border-radius: 0.4rem;
  background: var(--action);
  color: var(--action-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
button.open { padding-left: 1rem; }
/* An AR Quick Look link may only contain an image, so its label is drawn by CSS. */
.open::after { content: attr(data-label); }
.open img { width: 2.15rem; height: 2.15rem; object-fit: cover; border-radius: 0.25rem; }
.open[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
dl { margin: 0; }
dt { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }
dd { margin: 0; overflow-wrap: anywhere; }
textarea, pre {
  width: 100%;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font: 0.85rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}
textarea { min-height: 26rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0.5rem 0 0; }

/* The buyer-facing page. */
.photo { display: block; max-width: 100%; max-height: 55vh; margin: 1rem auto; border: 1px solid var(--line); }
.open.main { display: flex; width: 100%; justify-content: center; min-height: 3.25rem; font-size: 1.05rem; }
[hidden] { display: none !important; }
