:root {
  --bg: #0f1115; --card: #181b22; --text: #e8eaf0; --muted: #9aa1b2;
  --accent: #5b8cff; --accent-2: #7ee0b5; --border: #2a2f3a; --danger: #ff6b6b;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f5f6fa; --card: #fff; --text: #1d2130; --muted: #5d6475; --border: #dde1ea; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
.wrap { max-width: 960px; margin: 0 auto; padding: 32px 20px 60px; }
header h1 { margin: 0 0 4px; font-size: 1.9rem; }
.sub, .muted, small, footer { color: var(--muted); }
small { display: block; font-size: .78rem; margin-top: 4px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-top: 22px; }
.dropzone { border: 2px dashed var(--border); border-radius: 12px; padding: 38px 16px; text-align: center; cursor: pointer; transition: .15s; }
.dropzone:hover, .dropzone:focus, .dropzone.over { border-color: var(--accent); background: rgba(91,140,255,.07); outline: none; }
.dropzone.has-file { border-style: solid; border-color: var(--accent-2); }
.dz-icon { font-size: 2.4rem; }
.dz-main { font-size: 1.15rem; font-weight: 600; margin: 6px 0; word-break: break-all; }
.link { color: var(--accent); text-decoration: underline; }
.or { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; color: var(--muted); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
input[type=url], input[type=email], input[type=number], select {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: .95rem;
}
.pair { display: flex; align-items: center; gap: 8px; }
.options { margin-top: 18px; }
.options summary, .logs summary { cursor: pointer; color: var(--muted); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.grid label { font-size: .88rem; display: flex; flex-direction: column; gap: 6px; }
.grid label.check { flex-direction: row; align-items: center; gap: 8px; grid-column: 1 / -1; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
button { font-size: 1rem; border-radius: 10px; padding: 12px 22px; border: 0; cursor: pointer; }
button.primary { background: var(--accent); color: #fff; width: 100%; margin-top: 20px; font-weight: 600; }
button.primary:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); margin-top: 18px; }
.status-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.bar { height: 12px; background: var(--bg); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
#bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s; }
pre#log { max-height: 260px; overflow: auto; font-size: .78rem; background: var(--bg); padding: 10px; border-radius: 8px; white-space: pre-wrap; }
.error { color: var(--danger); white-space: pre-wrap; }
.warn { color: #e0a100; font-weight: 600; }
.clips { display: grid; gap: 16px; }
.clip { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: 260px 1fr; gap: 14px; }
.clip video { width: 100%; border-radius: 8px; background: #000; }
.clip h3 { margin: 0 0 6px; font-size: 1.05rem; }
.clip p { margin: 0 0 8px; font-size: .9rem; }
.tags { color: var(--accent); font-size: .85rem; }
.actions a { display: inline-block; margin-right: 10px; margin-top: 6px; color: var(--accent); }
@media (max-width: 640px) { .clip { grid-template-columns: 1fr; } }
footer { text-align: center; margin-top: 40px; font-size: .8rem; }
footer a { color: var(--accent); }
.clippay { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; }
#duration-row { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: .88rem; }
.quote { font-weight: 600; margin: 8px 0 0; }
.pay-opt-in { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; }
a.pay { display: inline-block; margin-top: 14px; background: #ffc439; color: #111; font-weight: 700;
  padding: 12px 18px; border-radius: 10px; text-decoration: none; }
#jobs-grid { margin-top: 12px; }
.payee-row { margin-top: 16px; font-size: .88rem; display: flex; flex-direction: column; gap: 6px; }
.dash-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.dash-tools button { width: auto; margin-top: 0; }
button.pay-action { background: var(--accent); color: #fff; font-weight: 600; }
button.pay-action:disabled { opacity: .45; cursor: not-allowed; }
.locked { font-size: .9rem; color: var(--muted); }

.note { font-size: 0.9rem; margin: 0.35rem 0; }
.note.why { background: #f2f7ff; border-left: 3px solid #3b6fd8; padding: 0.4rem 0.6rem; }
.note.ents, .note.critic, .note.enrich { color: #555; }
