/* Shared by online-screen-recorder.html and webm-to-mp4.html. Colours come from style.css. */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 8px 0 12px; }
.tool h2 { font-size: 20px; margin: 0 0 12px; }
.tool .row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 16px; }
.tool .row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.tool select {
  font: inherit; font-size: 15px; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
.tool .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.tool button, .tool a.btn {
  font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none;
  padding: 12px 22px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text);
}
.tool button.primary, .tool a.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.tool button:disabled { opacity: .55; cursor: default; }
.tool .hint { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }
.tool .warn { color: var(--pro); font-size: 15px; margin: 12px 0 0; }
.tool [hidden] { display: none !important; }

.live { display: flex; align-items: center; gap: 14px; }
.live .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite; }
.live.paused .dot { animation: none; opacity: .4; }
.live .time { font: 700 34px/1 ui-monospace, Consolas, monospace; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live .dot { animation: none; } }

.tool video { width: 100%; max-height: 60vh; background: #000; border-radius: 10px; display: block; }

.drop {
  display: block; border: 2px dashed var(--line); border-radius: 12px; padding: 34px 18px;
  text-align: center; color: var(--muted); cursor: pointer;
}
.drop.over { border-color: var(--accent); color: var(--text); }
.drop b { color: var(--text); display: block; font-size: 18px; margin-bottom: 4px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

progress { width: 100%; height: 14px; accent-color: var(--accent); margin-top: 16px; }

.upsell { border-color: var(--accent); }
.upsell p { color: var(--muted); margin: 0 0 14px; }
.doc .lead { font-size: 19px; color: var(--muted); margin: 0 0 20px; }
.doc ul, .doc ol { color: var(--muted); padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc h3 { margin: 22px 0 4px; font-size: 18px; }
.doc .langs { color: var(--muted); font-size: 14.5px; margin-top: 28px; }
