:root {
  color-scheme: light;
  --ground: #f3f7fb; --card: #ffffff; --edge: #e6e8e7; --firm-edge: #c7cbc9;
  --action: #3c6690; --ink: #181c1b; --body: #3a413f; --quiet: #7c827f;
  --mark: #5580ab; --focus: #1c95a6;
  --red: #c94f4f; --amber: #d99a2b; --green: #3a9d6f;
  --corner: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%; }
main { max-width: 560px; margin: 0 auto; padding: 14px 20px 120px; }
button { font: inherit; cursor: pointer; }
.lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.lockup svg { width: 30px; height: 30px; flex: none; }
.lockup .word small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.6px; color: var(--mark); }
.lockup .word strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: .6px; margin-top: -1px; }
.group-label { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--quiet); margin: 22px 0 8px; }
.card { background: var(--card); border: 1px solid var(--edge); border-radius: var(--corner); padding: 14px; }
.card + .card { margin-top: 8px; }
.site { display: flex; align-items: center; gap: 8px; color: var(--body); font-size: 14px; }
.product { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  text-align: left; border: 1px solid var(--edge); background: var(--card); border-radius: var(--corner); padding: 14px; color: var(--ink); }
.product strong { display: block; font-size: 16px; }
.product span { color: var(--quiet); font-size: 13px; }
.chevron { color: var(--quiet); font-size: 20px; }
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.example { border: 1px solid var(--edge); background: var(--card); border-radius: var(--corner); padding: 6px;
  text-align: left; color: var(--ink); }
.example img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.example span { display: block; padding: 6px 4px 2px; font-size: 13px; font-weight: 600; }
.note { color: var(--quiet); font-size: 13px; }
.bar { height: 6px; background: var(--edge); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.bar div { height: 100%; background: var(--focus); width: 0; transition: width .2s; }
.action { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px;
  border: 0; border-radius: var(--corner); background: var(--action); color: #fff; font-size: 16px; font-weight: 600; }
.action:disabled { background: var(--firm-edge); }
.link { display: block; width: 100%; background: none; border: 0; color: var(--quiet); font-size: 14px; padding: 14px; }
.footer { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ground);
  padding: 10px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--edge); }
.footer > * { max-width: 520px; margin: 0 auto; }
.photo { position: relative; border-radius: var(--corner); overflow: hidden; border: 1px solid var(--edge); background: #000; }
.photo img { display: block; width: 100%; }
.photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.reading { text-align: center; padding-top: 30px; }
.reading .photo { margin-bottom: 20px; max-height: 260px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--edge); border-top-color: var(--action);
  border-radius: 50%; margin: 0 auto 12px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.verdict { display: flex; gap: 12px; align-items: center; }
.verdict .icon { font-size: 28px; line-height: 1; }
.verdict strong { display: block; font-size: 18px; }
.finding { display: flex; gap: 10px; padding: 10px 0 10px 12px; border-left: 2px solid var(--red); margin-left: -14px; padding-left: 26px; }
.finding .number { flex: none; width: 22px; height: 22px; border: 1px solid rgba(201, 79, 79, .5); border-radius: 50%;
  color: var(--red); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.finding .detail { color: var(--quiet); font-size: 14px; }
.finding .instruction { font-weight: 600; }
.group-head { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 0;
  color: var(--ink); text-align: left; }
.group-head strong { flex: 1; font-size: 15px; }
.pill { font-size: 12px; font-weight: 600; border-radius: 10px; padding: 1px 8px; color: #fff; }
.pill.passed { background: var(--green); } .pill.look { background: var(--amber); } .pill.wrong { background: var(--red); }
.seen { color: var(--quiet); font-size: 12px; }
.row { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--edge); }
.row:first-child { margin-top: 10px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--firm-edge); }
.dot.passed { background: var(--green); } .dot.look { background: var(--amber); } .dot.wrong { background: var(--red); }
.row .title { font-weight: 600; font-size: 14px; }
.row .text { color: var(--quiet); font-size: 13px; }
.confirm { margin-top: 6px; border: 1px solid var(--amber); background: none; color: var(--ink); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.looked { margin-top: 6px; color: var(--green); font-size: 13px; font-weight: 600; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.facts dt { color: var(--quiet); } .facts dd { margin: 0; }
.error { color: var(--red); }
.secondary { display: block; width: 100%; padding: 13px; margin-top: 8px; border: 1px solid var(--firm-edge);
  border-radius: var(--corner); background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; }
label.field { display: block; margin-top: 12px; font-size: 13px; color: var(--quiet); }
label.field input { display: block; width: 100%; margin-top: 4px; padding: 12px; font: inherit; font-size: 16px;
  color: var(--ink); border: 1px solid var(--firm-edge); border-radius: 8px; background: var(--card); }
label.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; color: var(--body); }
label.consent input { width: 22px; height: 22px; flex: none; margin: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qr { background: #fff; border-radius: var(--corner); border: 1px solid var(--edge); padding: 18px; text-align: center; }
.qr svg { width: 100%; max-width: 280px; height: auto; }
.address { margin-top: 10px; font-size: 15px; font-weight: 600; word-break: break-all; }
h1.screen { font-size: 24px; margin: 0 0 6px; }

/* The camera: the whole page, black, as CameraScreen.swift. */
body.in-camera { overflow: hidden; }
.camera { position: fixed; inset: 0; z-index: 20; background: #000; color: #fff; }
.camera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.guide { position: absolute; border: 1.5px dashed rgba(255, 255, 255, .8); border-radius: 4px; pointer-events: none; }
.camera-top { position: absolute; top: max(14px, env(safe-area-inset-top)); left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right)); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.camera-hint { background: rgba(0, 0, 0, .55); border-radius: 8px; padding: 10px 14px; }
.camera-hint small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.camera-hint strong { display: block; font-size: 14px; margin-top: 3px; }
.camera-close { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55);
  color: #fff; font-size: 16px; }
.shutter { position: absolute; right: max(22px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%);
  width: 78px; height: 78px; border-radius: 50%; background: #fff; border: 6px solid #000;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .7); }
.shutter:active { background: #ddd; }
.camera-library { position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom));
  background: none; border: 0; color: rgba(255, 255, 255, .9); font-size: 13px; padding: 6px 0; }
.turn, .camera-message { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; padding: 28px; text-align: center; background: rgba(0, 0, 0, .72); }
.turn strong { font-size: 22px; }
.turn span, .camera-message span { font-size: 14px; color: rgba(255, 255, 255, .75); max-width: 340px; }
.camera-library-upright { margin-top: 18px; background: none; border: 0; color: #fff; font-size: 15px; font-weight: 500; }
.camera-back { background: none; border: 0; color: rgba(255, 255, 255, .7); font-size: 14px; }
.phone-sideways { width: 74px; height: 46px; border: 2px solid rgba(255, 255, 255, .9); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.phone-sideways div { width: 40px; height: 22px; border: 2px solid #59b8e6; border-radius: 2px; }
@media (orientation: portrait) {
  .camera .turn { display: flex; }
  .camera .guide, .camera .camera-top, .camera .shutter, .camera .camera-library { display: none; }
}
.camera.without .camera-message { display: flex; z-index: 1; }
.camera.without .turn { display: none; }

/* The start screen's call to action, kept in view at the bottom. */
.footer-label { margin: 0 0 2px; }
.pair { display: flex; gap: 8px; }
.pair .secondary { flex: 1; min-width: 0; padding: 12px 8px; }

/* Adding the app to the home screen. */
.install { position: relative; margin-bottom: 16px; padding-right: 40px; }
.install strong { display: block; font-size: 15px; margin-bottom: 4px; }
.install-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; background: none;
  color: var(--quiet); font-size: 15px; }
.share-icon { width: 14px; height: 17px; vertical-align: -3px; color: var(--action); }
