:root { color-scheme: light dark; }
* { box-sizing: border-box; }
body { font-family: -apple-system, system-ui, sans-serif; margin: 0; padding: 16px;
       max-width: 640px; margin-inline: auto;
       padding-bottom: max(24px, env(safe-area-inset-bottom)); }
h1 { font-size: 1.3rem; display: flex; align-items: center; gap: 8px; }
h2 { font-size: 1.05rem; margin-top: 28px; }
.card { border: 1px solid #8884; border-radius: 12px; padding: 14px; margin: 10px 0; }
button, label.btn { display: inline-block; background: #2563eb; color: #fff; border: none;
  border-radius: 8px; padding: 12px 18px; font-size: 1rem; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
button.secondary { background: #6b7280; }
button.danger { background: #dc2626; padding: 6px 10px; font-size: .85rem; }
input[type=text] { width: 100%; padding: 12px; font-size: 1rem; border: 1px solid #8886;
  border-radius: 8px; margin: 6px 0; }
input[type=file] { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.spot { border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; }
.spot.selected { border-color: #2563eb; }
.spot img { width: 100%; height: 110px; object-fit: cover; display: block; }
.spot .meta { font-size: .8rem; padding: 4px 6px; display: flex; justify-content: space-between;
  align-items: center; gap: 4px; }
.preview { max-width: 100%; max-height: 220px; border-radius: 8px; margin-top: 8px; }
.verdict { font-size: 1.4rem; font-weight: 700; margin: 8px 0; }
.ok { color: #16a34a; } .ko { color: #dc2626; } .mid { color: #d97706; }
.detail { font-size: .9rem; line-height: 1.5; }
.muted { color: #888; font-size: .85rem; }
.error { color: #dc2626; }
.htmx-request .while-idle { display: none; }
.spinner { display: none; }
.htmx-request .spinner, .htmx-request.spinner { display: inline; }
