/* ============================================================
   916Vids — dark + colorful design system (from DESIGN.md)
   Dark-only app. Surfaces elevate by LIGHTNESS, never shadows.
   One gradient family: violet #8B5CF6 → cyan #22D3EE → pink #EC4899.
   ============================================================ */
:root {
  /* surfaces — near-black violet tint, never pure #000 */
  --bg-0: #0B0B10;
  --bg-1: #121218;
  --bg-2: #181822;
  --bg-3: #20202C;
  --bg-4: #2A2A38;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* text — WCAG AA on --bg-0 (never pure #fff body, never #777 gray) */
  --text-1: #F4F4F6;
  --text-2: #B9B9C7;
  --text-3: #8A8A99;

  /* signature gradient + softened accents (300–400 range, night-friendly) */
  --grad-primary: linear-gradient(135deg, #8B5CF6 0%, #22D3EE 55%, #EC4899 100%);
  --accent-violet: #A78BFA;
  --accent-cyan: #67E8F9;
  --accent-pink: #F9A8D4;

  /* semantic — softened for dark */
  --ok: #34D399;
  --warn: #FBBF24;
  --err: #FB7185;
  --info: #7DD3FC;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --radius: 14px;
}

* { box-sizing: border-box; }
button { font-family: inherit; }
/* class-based display (e.g. flex) must not override the hidden attribute */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* ambient glows — BEHIND everything, static, pointer-transparent */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(139, 92, 246, 0.16), transparent 55%),
    radial-gradient(circle at 85% 100%, rgba(34, 211, 238, 0.10), transparent 55%);
}
header.topbar, main, footer { position: relative; z-index: 1; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* keyboard focus — bright ring that works on dark, never removed */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.brand em { font-style: normal; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.usage-pill {
  font-size: 12px; color: var(--text-2);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 12px; background: var(--bg-1);
}
.usage-pill b { color: var(--text-1); }

/* ---------- buttons ---------- */
.btn {
  border: 0; border-radius: 12px; cursor: pointer;
  padding: 12px 24px; font-size: 15px; font-weight: 700;
  background: var(--grad-primary); color: #0B0B10; /* dark text on bright gradient */
  min-height: 44px;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.35), 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), filter 180ms var(--ease);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 0 32px rgba(139, 92, 246, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4); }
.btn:active { transform: translateY(0); box-shadow: 0 0 16px rgba(139, 92, 246, 0.3); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost {
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text-1); box-shadow: none;
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.06); filter: none; }
.btn.small { padding: 8px 14px; font-size: 13px; min-height: 36px; }
.btn.danger-ghost {
  background: transparent; border: 1px solid rgba(251, 113, 133, 0.4);
  color: var(--err); box-shadow: none;
}

/* ---------- stepper: Upload → Settings → Clips → Edit → Export ---------- */
.stepper {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  margin: 4px 0 22px; padding: 12px 16px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius);
}
.step {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; color: var(--text-3);
  font-size: 13px; font-weight: 600; padding: 8px 10px; border-radius: 10px;
  cursor: default; white-space: nowrap;
}
.step .n {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--bg-3); color: var(--text-3);
  border: 1px solid var(--border);
}
.step.done { color: var(--text-2); cursor: pointer; }
.step.done .n { background: rgba(52, 211, 153, 0.15); color: var(--ok); border-color: rgba(52, 211, 153, 0.4); }
.step.done:hover { background: rgba(255, 255, 255, 0.05); }
.step.active { color: var(--text-1); }
.step.active .n {
  background: var(--grad-primary); color: #0B0B10; border-color: transparent;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}
.step-sep { color: var(--text-3); opacity: 0.5; font-size: 12px; }

/* ---------- hero / upload ---------- */
.hero { text-align: center; padding: 56px 0 30px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 700; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero h1 .grad { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-2); font-size: 17px; max-width: 640px; margin: 0 auto 8px; }

/* 3-step teaching visual (empty state) */
.steps3 { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px auto 0; max-width: 720px; }
.steps3 .s3 {
  flex: 1 1 180px; background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 14px;
}
.steps3 .s3 .ic {
  width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: rgba(139, 92, 246, 0.16); border: 1px dashed rgba(139, 92, 246, 0.5); color: var(--accent-violet);
}
.steps3 .s3 b { display: block; font-size: 14px; margin-bottom: 4px; }
.steps3 .s3 span { font-size: 12px; color: var(--text-3); }

.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.badge {
  font-size: 12px; color: var(--text-2); border: 1px solid var(--border);
  background: var(--bg-1); padding: 6px 12px; border-radius: 999px;
}
.badge.free { background: rgba(139, 92, 246, 0.16); color: var(--accent-violet); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.4px; }

.dropzone {
  margin: 30px auto 0; max-width: 680px;
  border: 2px dashed var(--border); border-radius: 20px;
  background: var(--bg-1); padding: 52px 24px; cursor: pointer;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}
.dropzone:hover { border-color: rgba(139, 92, 246, 0.5); }
.dropzone.drag {
  border: 2px solid rgba(139, 92, 246, 0.7);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.35);
}
.dropzone .dz-icon { font-size: 40px; }
.dropzone.drag .dz-icon { animation: dzbounce 0.5s var(--ease); }
@keyframes dzbounce { 0% { transform: translateY(0); } 40% { transform: translateY(-10px); } 100% { transform: translateY(0); } }
.dropzone h3 { margin: 12px 0 6px; font-size: 17px; font-weight: 600; }
.dropzone p { color: var(--text-2); font-size: 14px; margin: 4px 0; }
.sample-row { margin-top: 16px; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.sample-row .or { color: var(--text-3); font-size: 13px; }
.note { font-size: 12px; color: var(--text-3); margin-top: 14px; }

/* ---------- studio ---------- */
#studio { padding: 10px 0 60px; }
.panel {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 22px;
}
.panel h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.panel .sub { color: var(--text-2); font-size: 13px; margin: 0 0 18px; }
.video-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.video-meta img.thumb {
  width: 150px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-2);
}
.video-meta img.thumb.loading { animation: skshimmer 1.4s linear infinite; }
.meta-list { display: flex; gap: 22px; flex-wrap: wrap; }
.meta-list div span { display: block; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.6px; }
.meta-list div b { font-size: 16px; }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.set .lbl { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.set .lbl .val { color: var(--text-1); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2);
  border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  transition: all 180ms var(--ease);
}
.pill:hover { border-color: var(--border-strong); color: var(--text-1); }
.pill.active {
  background: var(--grad-primary); border-color: transparent; color: #0B0B10; font-weight: 700;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}
.pill.locked { opacity: 0.5; }
.pill .lock { font-size: 12px; }

/* gradient-fill sliders, keyboard operable */
input[type="range"].slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, #8B5CF6 0%, #22D3EE var(--p, 50%), rgba(255, 255, 255, 0.12) var(--p, 50%));
}
input[type="range"].slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%; border: 0;
  background: #F4F4F6; box-shadow: 0 0 12px rgba(139, 92, 246, 0.6); cursor: grab;
}
input[type="range"].slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: 0;
  background: #F4F4F6; box-shadow: 0 0 12px rgba(139, 92, 246, 0.6); cursor: grab;
}
input[type="range"].slider::-moz-range-track {
  height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12);
}
input[type="range"].slider::-moz-range-progress {
  height: 6px; border-radius: 999px; background: linear-gradient(90deg, #8B5CF6, #22D3EE);
}

.toggle-row { display: flex; align-items: center; gap: 10px; }
.switch { position: relative; width: 48px; height: 28px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.knob {
  position: absolute; inset: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  transition: background 200ms var(--ease), box-shadow 200ms var(--ease);
}
.knob:before {
  content: ""; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px;
  background: #F4F4F6; border-radius: 50%;
  transition: transform 200ms cubic-bezier(0.34, 1.3, 0.64, 1);
}
.switch input:checked + .knob { background: var(--grad-primary); box-shadow: 0 0 16px rgba(139, 92, 246, 0.4); }
.switch input:checked + .knob:before { transform: translateX(20px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--accent-cyan); outline-offset: 2px; }

select.style-select {
  background: var(--bg-2); color: var(--text-1); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; width: 100%; margin-top: 10px; min-height: 44px;
}

/* caption style previews — judged on dark, like real video */
.style-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.style-thumbs .st {
  font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: #050508; color: var(--text-2);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transition: all 180ms var(--ease);
}
.style-thumbs .st[data-s="karaoke"] { color: var(--accent-cyan); background: rgba(34, 211, 238, 0.12); }
.style-thumbs .st[data-s="boxed"] { color: #fff; background: rgba(0, 0, 0, 0.62); padding: 10px 16px; border-radius: 10px; }
.style-thumbs .st[data-s="minimal"] { background: transparent; border-color: transparent; color: var(--text-1); font-weight: 500; letter-spacing: 0.01em; }
.style-thumbs .st[data-s="boldpop"] {
  font-weight: 800; font-size: 14px;
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.style-thumbs .st.on { border-color: var(--accent-cyan); box-shadow: 0 0 12px rgba(34, 211, 238, 0.3); }

/* progressive disclosure */
details.adv { margin-top: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); }
details.adv summary {
  cursor: pointer; padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--text-2);
  list-style: none; display: flex; align-items: center; gap: 8px;
}
details.adv summary::-webkit-details-marker { display: none; }
details.adv summary::before { content: "▸"; color: var(--accent-violet); transition: transform 180ms var(--ease); }
details.adv[open] summary::before { transform: rotate(90deg); }
details.adv .adv-body { padding: 4px 16px 16px; display: grid; gap: 16px; }
details.adv .adv-body .btn { justify-self: start; }

.actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.status-line { font-size: 13px; color: var(--text-2); min-height: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-line .err { color: var(--err); }
.status-line .ok { color: var(--ok); }
.prog-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.prog-meta .pct { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.progress { height: 8px; background: rgba(255, 255, 255, 0.10); border-radius: 999px; overflow: hidden; margin-top: 6px; position: relative; }
.progress .bar { height: 100%; width: 0%; background: var(--grad-primary); border-radius: 999px; transition: width 200ms var(--ease); }
.progress.indet .bar { width: 40% !important; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ---------- clips ---------- */
#clipsHead { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 16px; flex-wrap: wrap; }
#clipsHead h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
#clipsHead span { color: var(--text-2); font-size: 13px; }
.clips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.clip-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; padding: 16px;
  display: flex; flex-direction: column;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out, transform 200ms ease-out;
}
.clip-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.18);
  transform: translateY(-2px);
}
.clip-card.flash { border-color: var(--accent-cyan); box-shadow: 0 0 24px rgba(34, 211, 238, 0.4); }
.preview-wrap { position: relative; background: #000; aspect-ratio: 9/16; max-height: 380px; overflow: hidden; border-radius: 12px; }
.preview-wrap.r11 { aspect-ratio: 1/1; }
.preview-wrap.r169 { aspect-ratio: 16/9; }
.preview-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* moving preview watermark — deterrent only, real watermark is burned at export */
.wm-move {
  position: absolute; top: 0; left: 0; z-index: 3;
  font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.35); padding: 4px 10px; border-radius: 8px;
  pointer-events: none; user-select: none; -webkit-user-select: none;
  animation: wmfloat 9s ease-in-out infinite alternate;
  max-width: 45%;
}
@keyframes wmfloat {
  0% { transform: translate(8px, 12px); }
  25% { transform: translate(120px, 40%); }
  50% { transform: translate(30%, 220px); }
  75% { transform: translate(140px, 300px); }
  100% { transform: translate(60%, 10%); }
}
.play-btn {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}
.play-btn:hover { transform: scale(1.08); background: rgba(139, 92, 246, 0.7); }
.clip-badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-size: 12px; background: rgba(0, 0, 0, 0.6); color: var(--text-1);
  padding: 4px 10px; border-radius: 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.trim-box { padding: 14px 2px 6px; }
.trim-box .row { display: grid; grid-template-columns: 52px 1fr 64px; gap: 8px; align-items: center; margin-bottom: 8px; }
.trim-box .row small { color: var(--text-2); font-size: 12px; }
.trim-box .row output { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-1); }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 2px 6px; gap: 10px;
}
.card-foot .dur { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.card-prog { padding: 4px 2px 6px; }
.card-msg { font-size: 12px; padding: 2px; color: var(--text-2); min-height: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-msg.err { color: var(--err); }
.card-msg.ok { color: var(--ok); }
.retry-btn {
  background: transparent; border: 1px solid var(--border-strong); color: var(--text-1);
  border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background 180ms var(--ease);
}
.retry-btn:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- coachmark (first-run tips, shown once) ---------- */
.coachmark {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(139, 92, 246, 0.10); border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px;
  font-size: 13px; color: var(--text-2);
  animation: tin 240ms var(--ease);
}
.coachmark .cm-ic { font-size: 18px; flex: none; }
.coachmark b { color: var(--text-1); }
.coachmark .cm-x { margin-left: auto; background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: 16px; flex: none; padding: 2px 6px; }

/* ---------- modal / toast / footer ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 5, 10, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-back.show { display: flex; }
.modal {
  background: var(--bg-4); border: 1px solid var(--border-strong);
  border-radius: 20px; padding: 30px; max-width: 440px; width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.12);
  animation: modalin 220ms ease-out;
}
@keyframes modalin { from { transform: scale(0.96); opacity: 0; } }
.modal h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.modal h2 .grad { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.modal p { color: var(--text-2); font-size: 14px; }
.modal ul { text-align: left; color: var(--text-1); font-size: 14px; line-height: 1.9; padding-left: 20px; }

#toasts {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  width: min(420px, calc(100vw - 40px));
}
.toast {
  background: var(--bg-4); border: 1px solid var(--border-strong); color: var(--text-1);
  padding: 12px 16px; border-radius: 12px; font-size: 14px; width: 100%;
  display: flex; gap: 10px; align-items: flex-start;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: tin 240ms var(--ease);
}
.toast .ti { flex: none; font-weight: 700; }
.toast.err { border-color: rgba(251, 113, 133, 0.5); }
.toast.err .ti { color: var(--err); }
.toast.ok { border-color: rgba(52, 211, 153, 0.5); }
.toast.ok .ti { color: var(--ok); }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }

footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--text-3); font-size: 13px; }
footer .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wm-move { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  .clips-grid { grid-template-columns: 1fr; }
  .preview-wrap { max-height: 460px; }
  .topbar nav .usage-pill { display: none; }
  .step .lbl-t { display: none; } /* stepper shows numbers only on small screens */
}
