:root { --bg:#f6f7f8; --card:#fff; --line:#dfe3e8; --text:#1d232a; --muted:#6b7480; --accent:#1f6feb; --bad:#c62828; --ok:#2e7d32; --warn:#b26a00; }
* { box-sizing: border-box; }
body { margin:0; font: 16px/1.45 -apple-system, "Segoe UI", Roboto, sans-serif; background:var(--bg); color:var(--text); }
header { background:var(--card); border-bottom:1px solid var(--line); padding:10px 16px; display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
header a { color:var(--text); text-decoration:none; font-weight:600; }
header a.current { color:var(--accent); }
main { max-width:1200px; margin:0 auto; padding:16px; }
h1 { font-size:22px; margin:0 0 12px; }
h2 { font-size:17px; margin:16px 0 8px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:14px; margin-bottom:14px; }
button { font:inherit; padding:8px 14px; border-radius:8px; border:1px solid var(--line); background:var(--card); cursor:pointer; }
button.primary { background:var(--accent); color:#fff; border-color:var(--accent); }
button:disabled { opacity:.45; cursor:not-allowed; }
button.small { padding:4px 10px; font-size:14px; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.muted { color:var(--muted); font-size:14px; }
.bad { color:var(--bad); } .ok { color:var(--ok); } .warn { color:var(--warn); }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:8px 6px; border-bottom:1px solid var(--line); vertical-align:top; }
input[type=text], select, textarea { font:inherit; padding:7px 9px; border:1px solid var(--line); border-radius:8px; width:100%; }
textarea { min-height:60vh; font-family: ui-monospace, Menlo, monospace; font-size:16px; line-height:1.5; resize:vertical; }
.drop { border:2px dashed var(--line); border-radius:12px; padding:28px; text-align:center; color:var(--muted); }
.drop.over { border-color:var(--accent); color:var(--accent); }
.progress { height:8px; background:var(--line); border-radius:4px; overflow:hidden; }
.progress > div { height:100%; background:var(--accent); width:0; transition:width .2s; }
.status { display:inline-block; padding:2px 8px; border-radius:999px; font-size:13px; background:#eef1f5; }
.status.done { background:#e3f3e5; color:var(--ok); } .status.error { background:#fde7e7; color:var(--bad); } .status.wait { background:#fff3e0; color:var(--warn); }
.review { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.frames li { padding:6px 0; border-bottom:1px solid var(--line); display:flex; gap:8px; align-items:flex-start; }
.frames .n { color:var(--muted); min-width:28px; }
.violations li { color:var(--bad); }
video { width:100%; max-width:360px; border-radius:8px; background:#000; }
.cell-actions { white-space:nowrap; }
@media (max-width: 760px) {
  .review { grid-template-columns: 1fr; }
  textarea { min-height:40vh; }
  th.hide-sm, td.hide-sm { display:none; }
  main { padding:10px; }
}
/* заход 5: вход и шапка */
main.narrow { max-width:420px; }
input[type=email] { font:inherit; padding:7px 9px; border:1px solid var(--line); border-radius:8px; width:100%; }
form.card label { display:block; margin:0 0 6px; font-weight:600; }
form.card .row { margin-top:10px; }
header .auth { margin-left:auto; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
