:root {
  --bg: #fafafa; --panel: #fff; --text: #1d1d1f; --muted: #6b6b70; --line: #d9d9de;
  --accent: #2f6fed; --accent-text: #fff; --danger: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151517; --panel: #1f1f23; --text: #ececf0; --muted: #9a9aa3; --line: #34343a;
    --accent: #6c9bff; --accent-text: #101014; --danger: #ff8a80;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, sans-serif; }
header { display: flex; gap: 16px; align-items: center; padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
header .brand { font-weight: 700; margin-right: auto; }
main { max-width: 52rem; margin: 0 auto; padding: 24px 20px; }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; }
button { cursor: pointer; }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); padding: 10px 18px; }
.muted { color: var(--muted); }
.error { color: var(--danger); }
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
form.row { display: flex; flex-wrap: wrap; gap: 8px; }
main.wide { max-width: 84rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 16px; margin: 16px 0; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; color: inherit; text-decoration: none; padding: 12px; }
.card img { display: block; width: calc(100% + 24px); margin: -12px -12px 8px; aspect-ratio: 16/9; object-fit: cover; background: var(--line); }
.ok { color: #1e8e3e; font-weight: 600; }
@media (prefers-color-scheme: dark) { .ok { color: #6fdc8c; } }
.review { display: grid; grid-template-columns: minmax(0, 3fr) minmax(18rem, 2fr); gap: 24px; align-items: start; }
@media (max-width: 800px) { .review { grid-template-columns: 1fr; } }
video { width: 100%; background: #000; border-radius: 6px; }
.strip { position: relative; height: 16px; background: var(--line); border-radius: 8px; margin: 6px 0 12px; }
.strip button { position: absolute; top: 2px; width: 12px; height: 12px; padding: 0; border-radius: 50%; transform: translateX(-50%); background: var(--accent); border: 0; }
.strip button.done { background: var(--muted); }
.takes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.takes button[aria-current="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.comment { border-top: 1px solid var(--line); padding: 8px 0; }
.comment.done > .text { color: var(--muted); text-decoration: line-through; }
.comment .replies { margin-left: 20px; }
.comment .meta { font-size: 14px; color: var(--muted); }
.comment .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.comment .acts button { padding: 2px 8px; font-size: 14px; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; }
textarea { width: 100%; font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.bar { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
progress { width: 100%; }
.strip span.editor { position: absolute; top: 2px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); border: 2px solid var(--muted); background: transparent; }
.shotbar { margin: 4px 0; }
.shots button { display: block; width: 100%; text-align: left; margin: 2px 0; padding: 2px 8px; }
.shots button[aria-current="true"] { border-color: var(--accent); }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.strip button.range { transform: none; border-radius: 3px; min-width: 6px; opacity: 0.55; }
.strip span.pending { position: absolute; top: 0; height: 16px; background: var(--accent); opacity: 0.3; border-radius: 3px; min-width: 3px; pointer-events: none; }
.wave { margin: 0 0 12px; min-height: 1.5em; }
.wave img { display: block; width: 100%; height: 40px; object-fit: fill; background: var(--line); border-radius: 4px; }
img.still { display: block; margin: 4px 0; width: 160px; border-radius: 4px; cursor: pointer; }
.pill { display: inline-block; padding: 0 10px; border-radius: 999px; font-size: 14px; border: 1px solid var(--line); }
.pill.needs_review { background: rgba(240, 170, 0, 0.22); }
.pill.approved { background: rgba(30, 142, 62, 0.22); }
.pill.final { background: var(--line); color: var(--muted); }
.late { color: var(--danger); font-weight: 600; }
.card.final { opacity: 0.55; }
.mention { background: rgba(47, 111, 237, 0.18); border-radius: 4px; padding: 0 4px; }
.picker { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); margin-top: 2px; }
.picker button { display: block; width: 100%; text-align: left; border: 0; border-radius: 0; }
