  :root {
    --bg: #121212;
    --panel: #1e1e1e;
    --accent: #ff2a55;
    --accent-hover: #ff5577;
    --text: #f0f0f0;
    --muted: #888;
  }
  body {
    font-family: "Google Sans Flex", 'Outfit', 'Zen Maru Gothic', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
  }
  .container {
    background: var(--panel);
    padding: 28px;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    border: 1px solid #333;
  }
  h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    text-align: center;
    color: var(--accent);
    letter-spacing: 0.05em;
  }
  p.warn {
    font-size: 0.8rem;
    color: #ffaa00;
    text-align: center;
    margin: 0 0 20px;
    background: rgba(255, 170, 0, 0.1);
    padding: 8px;
    border-radius: 6px;
  }
  .control-group {
    margin-bottom: 18px;
  }
  label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 6px;
    font-weight: bold;
  }
  span.val {
    color: var(--accent);
    font-family: monospace;
  }
  input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
  }
  input[type="file"], select {
    display: block;
    width: 100%;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px dashed #555;
    color: var(--text);
    box-sizing: border-box;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: "Google Sans Flex", 'Outfit', 'Zen Maru Gothic', sans-serif;
  }
  select {
    border-style: solid;
    border-color: #444;
    font-family: "Google Sans Flex", 'Outfit', 'Zen Maru Gothic', sans-serif;
  }
  .preview-box {
    margin-top: 14px;
    background: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
  }
  video {
    width: 100%;
    max-height: 200px;
    display: none;
    background: #000;
  }
  canvas {
    width: 100%;
    height: 70px;
    display: block;
  }
  .export-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
    margin-top: 12px;
  }
  .btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
  }
  button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.15s;
    background: #333;
    color: white;
    font-family: "Google Sans Flex", 'Outfit', 'Zen Maru Gothic', sans-serif;
  }
  button:hover:not(:disabled) {
    background: #444;
  }
  button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }
  button.primary {
    background: var(--accent);
    font-family: "Google Sans Flex", 'Outfit', 'Zen Maru Gothic', sans-serif;
  }
  button.primary:hover:not(:disabled) {
    background: var(--accent-hover);
  }
  button.download {
    background: #28a745;
    font-family: "Google Sans Flex", 'Outfit', 'Zen Maru Gothic', sans-serif;
  }
  button.download:hover:not(:disabled) {
    background: #32c253;
  }
  .status {
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
    margin-top: 10px;
    min-height: 1.2em;
  }