/* ID Photo Specs — Apple minimalist, light theme.
   Design tokens match rabbitshop.uk (style.css): #f5f5f7 canvas,
   #1d1d1f ink, #0071e3 accent, SF Pro / PingFang SC. */
:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  --canvas: #f5f5f7;
  --surface: #fff;
  --ink: #1d1d1f;
  --muted: #65656b;
  --quiet: #86868b;
  --line: rgb(0 0 0 / .06);
  --control-line: rgb(0 0 0 / .14);
  --wash: rgb(0 0 0 / .045);
  --accent: #0071e3;
  --accent-hover: #0065cc;
  --accent-ink: #fff;
  --warning: #b45309;
  --danger: #c0392b;
  --success: #1e7e34;
  --card-radius: 24px;
  --control-radius: 8px;
  --motion: .2s cubic-bezier(.16, 1, .3, 1);
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 600; line-height: 1.14; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.shell { width: min(calc(100% - 48px), 1080px); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .78); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.topbar { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.header-note { font-size: 13px; color: var(--muted); }

main { padding-block: 48px 64px; display: grid; gap: 20px; }

/* Intro */
.intro { text-align: center; margin-bottom: 20px; }
.intro h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.04em; }
.subtitle { margin-top: 6px; font-size: 15px; color: var(--quiet); letter-spacing: .04em; text-transform: uppercase; }
.lede { margin-top: 16px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.badges { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13px; font-weight: 500; color: var(--muted); }
.badges li::before { content: ""; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: clamp(20px, 3vw, 32px); }
.section-title { font-size: 17px; margin-bottom: 16px; }
.section-title .en { color: var(--quiet); font-weight: 400; font-size: 13px; }

/* Dropzone */
.dropzone { border: 2px dashed var(--control-line); border-radius: 16px; padding: 40px 20px; text-align: center; cursor: pointer; transition: border-color var(--motion), background-color var(--motion); }
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); }
.dropzone.drag-over { border-color: var(--accent); background: rgb(0 113 227 / .06); }
.dropzone.disabled { opacity: .55; pointer-events: none; }
.drop-icon { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.drop-title { font-size: 17px; font-weight: 500; }
.drop-link { color: var(--accent); }
.drop-sub { margin-top: 8px; font-size: 13px; color: var(--quiet); }

.status { min-height: 20px; margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.status.error { color: var(--danger); }
.status.left { text-align: left; margin: 12px 0 0; }

/* Notes */
.notes ul { margin: 0 0 16px; padding-left: 20px; line-height: 1.7; color: var(--muted); font-size: 15px; }
.notes li + li { margin-top: 8px; }
.notes strong { color: var(--ink); }
.fineprint { font-size: 12px; color: var(--quiet); line-height: 1.6; }

.site-footer { padding-bottom: 32px; text-align: center; font-size: 13px; color: var(--quiet); }

.brand-line { text-align: center; color: var(--muted); font-size: 12.5px; letter-spacing: .14em; padding: 20px 0 28px; margin: 0; }

/* Peel additions */
.field-gap { margin-top: 14px; }

#engine-progress { display: block; width: 100%; max-width: 420px; margin: 10px auto 0; height: 6px; accent-color: var(--accent); }
#engine-progress[hidden] { display: none; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.tiles figure { margin: 0; display: grid; gap: 6px; justify-items: center; }
.tiles canvas { max-width: 100%; border-radius: 8px; }
.tiles .btn { margin-top: 2px; }

.bg-options { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.bg-option { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; cursor: pointer; }
.bg-option input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.bg-option input[type="color"] { width: 36px; height: 28px; padding: 0; border: 1px solid var(--control-line); border-radius: 6px; background: var(--surface); cursor: pointer; }

.field-value { display: block; margin-top: 4px; font-size: 13px; color: var(--quiet); }
.field-value output { font-variant-numeric: tabular-nums; color: var(--muted); }

/* Restored field + button rules (were in the trimmed ID Photo block) */
.field { display: block; }
.field + .field { margin-top: 14px; }
.field-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.field-label .en { color: var(--quiet); font-weight: 400; font-size: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.field-row .field + .field { margin-top: 0; }
select, input[type="number"] { width: 100%; padding: 10px 12px; border: 1px solid var(--control-line); border-radius: var(--control-radius); background: var(--surface); font-size: 15px; line-height: 1.5; }
select:focus, input[type="number"]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgb(0 113 227 / .15); }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 40px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border: 1px solid transparent; border-radius: var(--control-radius); font-size: 14px; font-weight: 500; transition: background-color var(--motion), transform var(--motion); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.secondary { background: var(--wash); color: var(--ink); min-height: 36px; padding: 6px 14px; }
.btn.secondary:hover { background: rgb(0 0 0 / .08); }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 40px; }
