:root { --bg:#f6f1e7; --card:#fffdf8; --ink:#2b2420; --muted:#6f6359; --line:#e3d8c6; --accent:#8a5a2b; --ok:#2f7d4f; --bad:#b23b2e; --warn:#a86a00; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 860px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font-size: 24px; margin: 8px 0; }
h2 { font-size: 18px; margin: 0 0 6px; }
.lead, .foot { color: var(--muted); }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; margin:16px 0; }
label { display:block; margin:10px 0; font-size:14px; color:var(--muted); }
label.inline { display:inline-flex; gap:6px; align-items:center; margin:0; }
input, select { display:block; width:100%; margin-top:4px; padding:10px 12px; font:inherit; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:8px; }
input[type=checkbox] { width:auto; display:inline; margin:0; }
button { font:inherit; padding:10px 16px; border-radius:8px; border:1px solid var(--line); background:#fff; color:var(--ink); cursor:pointer; }
button.primary { background:var(--accent); border-color:var(--accent); color:#fff; }
button:disabled { opacity:.5; cursor:default; }
.row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:10px 0; }
.row.small button { padding:6px 10px; font-size:14px; }
.out { margin-top:12px; font-size:14px; }
.out .line { padding:6px 10px; border-left:3px solid var(--line); margin:4px 0; background:#fbf7ef; border-radius:0 6px 6px 0; }
.out .ok { border-color:var(--ok); }
.out .bad { border-color:var(--bad); }
.out .warn { border-color:var(--warn); }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:8px; margin-top:12px; }
.tile { position:relative; background:#1e1a17; border-radius:10px; overflow:hidden; aspect-ratio:4/3; }
.tile video { width:100%; height:100%; object-fit:cover; display:block; }
.tile .cap { position:absolute; left:0; right:0; bottom:0; padding:4px 8px; font-size:12px; color:#fff; background:rgba(0,0,0,.5); }
table { width:100%; border-collapse:collapse; font-size:13px; }
th, td { text-align:left; padding:6px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
th { cursor:pointer; color:var(--muted); font-weight:600; }
td.ok { color:var(--ok); font-weight:600; }
td.bad { color:var(--bad); font-weight:600; }
.scroll { overflow-x:auto; }
