/* code.camera. Mobile first: the base style is the phone, larger screens only add. */
:root {
  --bg: #f6f7f4;
  --card: #ffffff;
  --text: #1b2321;
  --muted: #4a5753;
  --line: #c9d1cd;
  --accent: #0f766e;
  --accent-text: #ffffff;
  --error: #b42318;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #121816; --card: #1b2421; --text: #eef3f1; --muted: #b4c0bb; --line: #3a4743; --accent: #2dd4bf; --accent-text: #08201c; --error: #ff8a80;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #121816; --card: #1b2421; --text: #eef3f1; --muted: #b4c0bb; --line: #3a4743; --accent: #2dd4bf; --accent-text: #08201c; --error: #ff8a80;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.0625rem/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; }
.site-header p, .site-footer p { margin: 0; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
main { max-width: 40rem; margin: 0 auto; padding: 0 1rem 2rem; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 1rem 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; }
.lead { color: var(--muted); margin-top: 0; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, h1:focus-visible, h3:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button, .button { display: inline-block; font: inherit; font-weight: 600; min-height: 2.75rem; padding: 0.55rem 1.1rem; border: 2px solid var(--accent); border-radius: 0.6rem; background: var(--accent); color: var(--accent-text); cursor: pointer; text-decoration: none; }
button:hover, .button:hover { filter: brightness(1.08); }
input[type='text'], select { font: inherit; width: 100%; min-height: 2.75rem; padding: 0.45rem 0.6rem; border: 2px solid var(--line); border-radius: 0.5rem; background: var(--card); color: var(--text); }
input[type='checkbox'] { width: 1.2rem; height: 1.2rem; vertical-align: -0.2rem; margin-right: 0.4rem; }
input[type='file'] { max-width: 100%; margin-top: 0.3rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.video-wrap video { width: 100%; max-height: 22rem; background: #000; border-radius: 0.6rem; }
.result { padding: 0.75rem; background: var(--card); border: 1px solid var(--line); border-radius: 0.5rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.qr svg { width: 12rem; height: 12rem; border: 1px solid var(--line); border-radius: 0.4rem; }
.error { color: var(--error); font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (min-width: 40rem) {
  h1 { font-size: 2rem; }
  input[type='text'], select { max-width: 28rem; }
}

/* Skip link, header tools, the for-sale page and the offer form */
.skip { position: absolute; left: 0.5rem; top: -4rem; padding: 0.6rem 1rem; background: var(--accent); color: var(--accent-text); border-radius: 0.5rem; z-index: 10; }
.skip:focus { top: 0.5rem; }
main:focus { outline: none; }
.header-tools { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }
.header-tools select { width: auto; min-height: 2.5rem; }
.header-tools button { min-height: 2.5rem; padding: 0.35rem 0.9rem; }
.field { margin: 0.9rem 0; }
.req::after { content: ' *'; }
.req-note, .hint { color: var(--muted); font-size: 0.95rem; }
.hint { display: block; margin-top: 0.25rem; }
.error:empty, .ok:empty { display: none; }
.ok { font-weight: 600; }
details { margin: 0.5rem 0; padding: 0.5rem 0.75rem; background: var(--card); border: 1px solid var(--line); border-radius: 0.5rem; }
summary { cursor: pointer; font-weight: 600; min-height: 2.25rem; }
.offer { margin-top: 2rem; }
[aria-invalid='true'] { border-color: var(--error) !important; }
