:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #132920;
  background: #edf4ef;
  --ink: #132920;
  --accent: #144b37;
  --muted: #485f53;
  --border: #c9d8ce;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: clamp(1rem, 5vw, 3rem); }
.panel {
  max-width: 38rem;
  margin: auto;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
}
header { border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.brand { color: var(--accent); font-size: .875rem; font-weight: 750; }
h1 { margin: .2rem 0 0; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.15; letter-spacing: -.035em; }
p { margin: 1rem 0; }
.status { min-height: 1.6em; }
.muted, small { color: var(--muted); }
.error { color: #8c1821; background: #fff0ef; padding: .75rem; border-radius: .5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
button {
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: .65rem;
  min-height: 3rem;
  padding: .65rem 1rem;
  cursor: pointer;
}
.actions button { flex: 1 1 8rem; }
button.secondary { background: #fff; color: var(--accent); }
button:disabled { cursor: default; background: #e5ece7; border-color: var(--border); color: #526958; }
:focus-visible { outline: 3px solid #115fcc; outline-offset: 3px; }
a { color: var(--accent); }
textarea {
  display: block;
  width: 100%;
  min-height: 4.5rem;
  font: inherit;
  resize: vertical;
  margin-top: .4rem;
  padding: .65rem;
  border: 1px solid #819789;
  border-radius: .5rem;
}
.photos { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
figure { margin: 0; }
figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #e5ece7; border-radius: .5rem; }
figcaption { color: var(--muted); font-size: .875rem; margin-top: .25rem; overflow-wrap: anywhere; }
small { display: block; margin-top: 1rem; }
.kiosk .panel { text-align: center; max-width: 46rem; }
.kiosk .status { font-size: clamp(1.1rem, 3vw, 1.5rem); }
.scan-area { width: min(100%, 23rem); aspect-ratio: 1; margin: .75rem auto; }
.scan-area img { display: block; width: 100%; height: auto; }
