main { max-width: 860px; }
a { color: var(--accent); }
.who a { text-decoration: none; }
.small { font-size: 13px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pill { font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.ok { color: var(--ok); border-color: currentColor; }
.pill.bad { color: var(--warn); border-color: currentColor; }

.listen { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
button.big { font-size: 17px; padding: 12px 20px; }
button.big.stop { background: var(--bad); border-color: var(--bad); }
.meter { flex: 1 1 160px; height: 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: var(--ok); transition: width 80ms linear; }
.status { font-weight: 600; color: var(--muted); }
.status.on { color: var(--ok); }

.heard {
  margin-top: 12px; min-height: 96px; max-height: 180px; overflow: auto; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 15px;
}
.heard p { margin: 2px 0; }
.heard .interim { color: var(--muted); font-style: italic; }
.heard .hit { color: var(--ok); font-weight: 600; }

.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 140px; margin-top: 0; }
.inline-form input[type="number"] { flex: 0 0 70px; }
.inline-form input[type="file"] { flex: 1 1 220px; }
label.compact { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; color: var(--muted); }
select {
  font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text);
}
.small-link { font-size: 14px; }

.list { display: grid; gap: 8px; margin-top: 12px; }
.trigger { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.trigger .phrase { font-weight: 700; min-width: 90px; }
.trigger.off { opacity: .55; }
.trigger select, .trigger input { margin-top: 0; width: auto; }
.trigger input[type="number"] { width: 70px; }
.spacer { flex: 1; }

.progress { height: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; width: 0; background: var(--accent); }

.videos { display: grid; gap: 12px; margin-top: 14px; }
.video { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.thumb { width: 72px; height: 96px; flex: 0 0 72px; border-radius: 6px; background: var(--bg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-body { flex: 1; min-width: 0; }
.video-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.video-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge.processing { color: var(--warn); border-color: currentColor; }
.badge.failed { color: var(--bad); border-color: currentColor; }
.video-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.video-edit label { margin: 8px 0; font-weight: 600; }
@media (max-width: 520px) {
  .thumb { display: none; }
}
