﻿:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #17201d;
  --muted: #65716d;
  --line: #d9ddd8;
  --primary: #1f6f64;
  --primary-strong: #16544b;
  --secondary: #f0c35a;
  --shadow: 0 10px 28px rgba(23, 32, 29, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); }
button, input, textarea { font: inherit; }
.app-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: max(18px, env(safe-area-inset-top)) 18px 14px; background: #173f39; color: #fff; }
.app-header h1 { margin: 2px 0 0; font-size: 26px; line-height: 1.1; letter-spacing: 0; }
.eyebrow { margin: 0; color: #cfe5df; font-size: 12px; text-transform: uppercase; }
.status-pill { flex: 0 0 auto; margin-top: 2px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 5px 9px; color: #edf8f5; font-size: 12px; }
main { width: min(760px, 100%); margin: 0 auto; padding: 16px; }
.screen { display: none; }
.screen.is-active { display: block; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.toolbar.compact { justify-content: flex-start; }
h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.panel, .audit-item { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.panel { display: grid; gap: 14px; padding: 16px; }
.audit-list { display: grid; gap: 10px; }
.audit-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; }
.audit-item h3 { margin: 0 0 4px; font-size: 17px; }
.audit-item p, .muted { margin: 0; color: var(--muted); font-size: 14px; }
label { display: grid; gap: 7px; color: #2e3835; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #cfd5d1; border-radius: 8px; padding: 11px 12px; background: #fff; color: var(--ink); font-weight: 400; }
textarea { resize: vertical; }
button { min-height: 44px; border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer; font-weight: 700; }
button:disabled { cursor: not-allowed; opacity: .65; }
.primary { background: var(--primary); color: #fff; }
.primary:active { background: var(--primary-strong); }
.secondary { background: var(--secondary); color: #2e260c; }
.ghost { background: rgba(31, 111, 100, .12); color: var(--primary-strong); }
.wide { width: 100%; }
.hidden { display: none; }
.finding-count { color: var(--primary-strong); font-weight: 800; }
.photo-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.photo-preview figure { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f9faf8; }
.photo-preview img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-preview figcaption { padding: 6px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.photo-remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: none; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.summary-meta { margin-bottom: 14px; padding: 12px 0; color: var(--muted); }
.summary-list { display: grid; gap: 10px; padding-left: 24px; }
.summary-list li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.actions-panel { margin-top: 16px; }
@media (max-width: 520px) {
  .app-header { align-items: center; }
  main { padding: 12px; }
  .toolbar { align-items: stretch; }
  .toolbar:not(.compact) { flex-direction: column; }
  .toolbar:not(.compact) button { width: 100%; }
  .button-row { grid-template-columns: 1fr; }
  .audit-item { align-items: stretch; flex-direction: column; }
  .audit-item button { width: 100%; }
}
