
:root { color-scheme: light dark; --bg:#f4f5f2; --card:#fff; --fg:#1d211c; --muted:#5d665a;
  --line:#d3d8cf; --accent:#4b5d3a; --accent-fg:#fff; --note:#fff7e0; --note-line:#e3c66a; }
@media (prefers-color-scheme: dark) { :root { --bg:#121411; --card:#1b1e1a; --fg:#e7eae4;
  --muted:#9aa395; --line:#343a31; --accent:#8fa676; --accent-fg:#10130e; --note:#2b2716; --note-line:#6b5a22; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--fg);
  font:16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
main.wide { max-width: 1400px; }
h1 { font-size: 1.6rem; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 24px; }
form.report { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:20px; }
label { display:block; font-weight:600; margin: 18px 0 6px; }
label:first-of-type { margin-top: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type=text], input[type=date], textarea { width:100%; padding:10px 12px; font:inherit; color:inherit;
  background:var(--bg); border:1px solid var(--line); border-radius:8px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-start; margin-top:20px; font-weight:600; }
.check input { width:20px; height:20px; margin-top:2px; }
.note { display:none; flex-basis:100%; margin-top:0; padding:12px 14px; background:var(--note);
  border:1px solid var(--note-line); border-radius:8px; font-size:.95rem; }
#footage:checked ~ .note { display:block; }
button, .btn { margin-top:24px; padding:12px 22px; font:inherit; font-weight:600; border:0; border-radius:8px;
  background:var(--accent); color:var(--accent-fg); cursor:pointer; text-decoration:none; display:inline-block; }
.hp { position:absolute; left:-9999px; }
.err { color:#c0392b; font-weight:600; }
table { width:100%; border-collapse:collapse; background:var(--card); font-size:.92rem; }
th, td { border:1px solid var(--line); padding:8px 10px; text-align:left; vertical-align:top; }
th { background:var(--bg); position:sticky; top:0; }
td.long { white-space: pre-wrap; min-width: 220px; }
.scroll { overflow-x:auto; }
.bar { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:16px; }
.bar .btn { margin:0; }
td form button { margin:0; padding:4px 10px; background:transparent; color:var(--muted); border:1px solid var(--line); }
