    :root {
      --ink: #eff7ff;
      --muted: #9db0c7;
      --muted-2: #71839a;
      --line: rgba(180, 211, 239, .13);
      --panel: rgba(12, 28, 48, .78);
      --panel-solid: #0d2036;
      --panel-soft: rgba(28, 54, 83, .46);
      --cyan: #68e6ed;
      --blue: #7d9dff;
      --orange: #ffb368;
      --pink: #f18ed1;
      --good: #87efbd;
      --danger: #ff8e98;
      --shadow: 0 30px 80px rgba(0, 0, 0, .28);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    * { box-sizing: border-box; }
    html { min-width: 320px; background: #07111f; }
    body {
      margin: 0;
      color: var(--ink);
      background:
        radial-gradient(circle at 10% 0%, rgba(72, 132, 255, .18), transparent 28rem),
        radial-gradient(circle at 95% 18%, rgba(73, 220, 206, .1), transparent 24rem),
        #07111f;
      min-height: 100vh;
    }
    button, input, select { font: inherit; }
    button { cursor: pointer; }
    button:disabled { cursor: not-allowed; opacity: .5; }
    .app-shell { width: min(1500px, 100%); margin: 0 auto; padding: 24px 28px 48px; }
    .topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
    .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
    .brand-logo { display: block; width: min(100%, 222px); height: auto; }
    .brand-caption { color: var(--muted-2); font-size: 12px; }
    .top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
    .pill { border: 1px solid var(--line); color: var(--muted); background: rgba(10, 26, 45, .65); border-radius: 999px; padding: 8px 12px; font-size: 12px; }
    .pill strong { color: var(--good); font-weight: 700; }

    .workspace { display: grid; grid-template-columns: minmax(390px, .86fr) minmax(520px, 1.14fr); gap: 20px; align-items: start; }
    .preview-column { position: sticky; top: 18px; }
    .preview-card, .control-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(14, 33, 56, .9), rgba(8, 20, 35, .82)); box-shadow: var(--shadow); border-radius: 25px; }
    .preview-card { padding: 18px; }
    .preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
    .eyebrow { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 25px; }
    h1, h2, h3, p { margin: 0; }
    h1 { font-size: clamp(24px, 3vw, 38px); line-height: 1.03; letter-spacing: -.04em; max-width: 11ch; }
    .preview-intro { color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 29ch; margin-top: 10px; }
    .resolution { text-align: right; color: var(--muted-2); font-size: 11px; line-height: 1.5; }
    .resolution strong { display: block; color: var(--ink); font-size: 13px; }
    .resolution span { display: block; }
    .stage-wrap { position: relative; display: grid; place-items: center; padding: 16px; border-radius: 21px; background: radial-gradient(circle at 50% 8%, rgba(104, 230, 237, .12), transparent 50%), #081523; border: 1px solid rgba(180, 211, 239, .08); overflow: hidden; }
    .stage-wrap::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, black, transparent 82%); pointer-events: none; }
    #previewCanvas { display: block; width: min(100%, 340px); height: auto; aspect-ratio: 9 / 16; border-radius: 17px; background: transparent; box-shadow: 0 24px 50px rgba(0, 0, 0, .38); position: relative; z-index: 1; }
    .stage-tag { position: absolute; z-index: 2; top: 28px; left: 28px; background: rgba(7, 17, 31, .72); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.12); color: var(--ink); padding: 6px 9px; border-radius: 8px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
    .stage-tag span { color: var(--good); }
    .transport { display: flex; align-items: center; gap: 10px; margin: 15px 0 10px; }
    .icon-button, .secondary-button, .primary-button, .danger-button { border: 0; color: var(--ink); border-radius: 11px; padding: 10px 13px; font-weight: 750; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
    .icon-button:hover, .secondary-button:hover, .primary-button:hover, .danger-button:hover { transform: translateY(-1px); }
    .icon-button { width: 43px; height: 39px; display: grid; place-items: center; background: rgba(104,230,237,.15); border: 1px solid rgba(104,230,237,.2); color: var(--cyan); }
    .secondary-button { background: rgba(125,157,255,.12); border: 1px solid rgba(125,157,255,.22); color: #c9d5ff; }
    .primary-button { background: linear-gradient(135deg, var(--cyan), #78a0ff); color: #07111f; box-shadow: 0 10px 24px rgba(104, 230, 237, .17); }
    .danger-button { background: rgba(255,142,152,.12); border: 1px solid rgba(255,142,152,.25); color: #ffb4bb; }
    .transport .time-readout { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
    input[type="range"] { width: 100%; accent-color: var(--cyan); }
    .timeline-labels { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 11px; font-variant-numeric: tabular-nums; }
    .preview-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
    .preview-footer p { color: var(--muted-2); font-size: 11px; line-height: 1.45; }
    .preview-footer strong { color: var(--ink); }

    .controls { display: grid; gap: 13px; }
    .control-card { padding: 18px; box-shadow: 0 12px 35px rgba(0,0,0,.14); }
    .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
    .section-title { display: flex; gap: 11px; align-items: center; }
    .section-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(104,230,237,.12); border: 1px solid rgba(104,230,237,.2); color: var(--cyan); font-size: 11px; font-weight: 850; }
    h2 { font-size: 15px; letter-spacing: -.01em; }
    .section-note { color: var(--muted-2); font-size: 11px; }
    .drop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .drop-zone { min-height: 122px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 16px; border: 1px dashed rgba(157, 190, 222, .28); background: rgba(5, 16, 29, .3); transition: border-color .18s ease, background .18s ease; }
    .drop-zone.drag-over { border-color: var(--cyan); background: rgba(104,230,237,.1); }
    .drop-icon { color: var(--cyan); font-size: 20px; }
    .drop-zone strong { display: block; font-size: 13px; }
    .drop-zone span { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; margin-top: 5px; }
    .file-input { display: none; }
    .file-state { display: flex; justify-content: space-between; gap: 8px; margin-top: 11px; padding: 10px 12px; border-radius: 11px; background: rgba(5,16,29,.35); color: var(--muted); font-size: 11px; }
    .file-state strong { color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .media-assets { display: grid; gap: 10px; margin-top: 13px; }
    .media-asset-card { padding: 13px; border: 1px solid rgba(104,230,237,.16); border-radius: 15px; background: rgba(5,16,29,.28); }
    .media-asset-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
    .media-asset-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
    .media-asset-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; border-radius: 9px; color: #07111f; background: linear-gradient(135deg, var(--cyan), var(--blue)); font-size: 12px; font-weight: 900; }
    .media-asset-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
    .media-asset-name span { display: block; color: var(--muted-2); font-size: 10px; margin-top: 3px; }
    .media-asset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
    .media-asset-grid .wide { grid-column: 1 / -1; }
    .media-asset-status { color: var(--muted-2); font-size: 10px; line-height: 1.4; margin-top: 8px; }
    .media-asset-empty { padding: 11px 13px; border: 1px dashed rgba(157,190,222,.24); border-radius: 13px; color: var(--muted-2); font-size: 11px; line-height: 1.45; }
    .media-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
    .sample-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
    .sample-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
    .sample-card { min-height: 96px; padding: 8px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: rgba(5,16,29,.32); color: var(--ink); transition: border-color .18s ease, transform .18s ease, background .18s ease; }
    .sample-card:hover { border-color: rgba(104,230,237,.45); transform: translateY(-1px); }
    .sample-card.selected { border-color: var(--cyan); background: rgba(104,230,237,.09); box-shadow: inset 0 0 0 1px rgba(104,230,237,.12); }
    .sample-visual { height: 52px; border-radius: 9px; position: relative; overflow: hidden; }
    .sample-visual.sample-video { background: #122441; }
    .sample-visual.sample-video::before { content: "VIDEO"; position: absolute; z-index: 1; left: 8px; bottom: 7px; padding: 3px 5px; border-radius: 5px; color: #eff7ff; background: rgba(7,17,31,.62); font-size: 8px; font-weight: 850; letter-spacing: .12em; }
    .sample-waterfall { background: linear-gradient(150deg, #163b56, #4fa9ad 48%, #b6e3d2); }
    .sample-drafting { background: linear-gradient(135deg, #211a2f, #87627c 55%, #dda479); }
    .sample-candle { background: radial-gradient(circle at 62% 39%, #ffd995 0 7%, rgba(255,217,149,.22) 19%, transparent 36%), linear-gradient(135deg, #231526, #713b35 58%, #d9965c); }
    .sample-raindrop { background: linear-gradient(135deg, #0b1b30, #28506d 58%, #668ba0); }
    .sample-ocean { background: linear-gradient(150deg, #112943, #0c7187 52%, #9bd2d1); }
    .sample-oldtown { background: linear-gradient(135deg, #362238, #a15f5a 55%, #e4b97e); }
    .sample-undersea { background: radial-gradient(circle at 68% 30%, rgba(104,230,237,.4), transparent 24%), linear-gradient(145deg, #082944, #087287 58%, #122c55); }
    .sample-smoke { background: radial-gradient(circle at 55% 35%, rgba(255,255,255,.35), transparent 23%), linear-gradient(135deg, #202b40, #697d8c 55%, #b9a48e); }
    .sample-cloud { background: radial-gradient(circle at 36% 32%, rgba(255,255,255,.65), transparent 26%), linear-gradient(145deg, #2a3d62, #7f9cc3 56%, #d6cbbb); }
    .sample-fantasy { background: radial-gradient(circle at 70% 25%, rgba(241,142,209,.38), transparent 22%), linear-gradient(135deg, #302251, #9162b7 55%, #e19b9a); }
    .sample-visual::after { content: ""; position: absolute; width: 55%; height: 95%; right: -8%; bottom: -45%; border-radius: 50%; background: rgba(255,255,255,.2); filter: blur(10px); }
    .sample-card strong { display: block; font-size: 11px; margin-top: 7px; }
    .sample-card span { display: block; color: var(--muted-2); font-size: 9px; margin-top: 3px; }
    .validation { margin-top: 8px; color: var(--good); font-size: 11px; min-height: 15px; }
    .validation.error { color: var(--danger); }
    .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
    .field { display: grid; gap: 7px; }
    label { color: var(--muted); font-size: 11px; font-weight: 700; }
    select, input[type="number"], textarea { width: 100%; border: 1px solid var(--line); background: rgba(5, 16, 29, .48); color: var(--ink); border-radius: 10px; padding: 10px 11px; outline: none; }
    select:focus, input[type="number"]:focus, textarea:focus { border-color: rgba(104,230,237,.6); }
    textarea { min-height: 76px; resize: vertical; line-height: 1.45; }
    .format-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
    .format-card { min-height: 80px; padding: 11px; text-align: left; border: 1px solid var(--line); border-radius: 13px; background: rgba(5,16,29,.32); color: var(--ink); transition: border-color .18s ease, background .18s ease, transform .18s ease; }
    .format-card:hover { border-color: rgba(104,230,237,.45); transform: translateY(-1px); }
    .format-card.selected { border-color: var(--cyan); background: rgba(104,230,237,.09); box-shadow: inset 0 0 0 1px rgba(104,230,237,.12); }
    .format-card strong { display: block; font-size: 12px; }
    .format-card span { display: block; color: var(--muted-2); font-size: 10px; margin-top: 5px; }
    .field-help { color: var(--muted-2); font-size: 10px; line-height: 1.45; margin-top: 2px; }
.text-track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 12px; }
.text-track-grid .wide { grid-column: 1 / -1; }
    .text-color-grid { display: grid; grid-template-columns: minmax(180px, 260px); gap: 9px; margin-top: 11px; }
    .text-color-grid input[type="color"], .screen-overlay-grid input[type="color"] { width: 100%; height: 35px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(5,16,29,.48); cursor: pointer; }
.text-tracks { display: grid; gap: 11px; }
    .text-track-card { padding: 13px; border: 1px solid rgba(104,230,237,.15); border-radius: 15px; background: rgba(5,16,29,.28); }
    .text-track-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
    .text-track-head strong { font-size: 12px; }
    .text-track-empty { padding: 13px; border: 1px dashed rgba(157,190,222,.24); border-radius: 13px; color: var(--muted-2); font-size: 11px; line-height: 1.45; }
    .compact-button { padding: 7px 9px; font-size: 11px; }
    .text-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
    .text-track-status { color: var(--muted-2); font-size: 11px; line-height: 1.45; }
    .text-track-status.active { color: var(--good); }
    .text-track-status.error { color: var(--danger); }
    .idea-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
    .idea-sequence-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 13px; }
    .idea-sequence-list { display: grid; gap: 8px; margin-top: 10px; }
    .idea-sequence-item { padding: 11px 12px; border: 1px solid rgba(241,142,209,.16); border-radius: 12px; background: rgba(5,16,29,.22); color: var(--muted); font-size: 11px; line-height: 1.4; }
    .idea-sequence-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
    .idea-sequence-item strong { display: block; color: var(--ink); font-size: 11px; }
    .idea-sequence-item > span { display: block; padding-right: 4px; }
    .idea-sequence-empty { padding: 11px 13px; border: 1px dashed rgba(157,190,222,.24); border-radius: 13px; color: var(--muted-2); font-size: 11px; line-height: 1.45; }
    .idea-sequence-timing { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
    .idea-sequence-timing .field { gap: 5px; }
    .idea-sequence-timing input { padding: 7px 9px; font-size: 11px; }
.idea-sequence-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.idea-sequence-settings select { padding: 7px 9px; font-size: 11px; }
    .screen-overlay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
    .screen-overlay-grid input[type="range"] { margin-top: 5px; }
    .filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
    .filter-card { min-height: 103px; padding: 8px; text-align: left; border: 1px solid var(--line); border-radius: 13px; background: rgba(5,16,29,.32); color: var(--ink); transition: border-color .18s ease, background .18s ease, transform .18s ease; }
    .filter-card:hover { border-color: rgba(104,230,237,.45); transform: translateY(-1px); }
    .filter-card.selected { border-color: var(--cyan); background: rgba(104,230,237,.09); box-shadow: inset 0 0 0 1px rgba(104,230,237,.12); }
    .filter-card strong { display: block; font-size: 11px; margin-top: 0; }
    .filter-card > span:last-child { display: block; color: var(--muted-2); font-size: 9px; margin-top: 3px; }
    .effect-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
    .effect-card { min-height: 103px; padding: 8px; text-align: left; border: 1px solid var(--line); border-radius: 13px; background: rgba(5,16,29,.32); color: var(--ink); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
    .effect-card:hover { border-color: rgba(104,230,237,.45); transform: translateY(-1px); }
    .effect-card.selected { border-color: var(--cyan); background: rgba(104,230,237,.09); box-shadow: inset 0 0 0 1px rgba(104,230,237,.12); }
    .effect-card strong { display: block; font-size: 11px; margin-top: 0; }
    .effect-card > span:last-child { display: block; color: var(--muted-2); font-size: 9px; margin-top: 3px; }
    .filter-intensity { margin-top: 14px; }
    .filter-intensity input[type="range"] { margin-top: 5px; }
    .filter-manual-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(180,211,239,.11); color: var(--ink); }
    .filter-manual-title strong { font-size: 12px; }
    .filter-manual-title span { color: var(--muted-2); font-size: 10px; }
    .filter-manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 10px; }
    .filter-manual-grid .wide { grid-column: 1 / -1; }
    .filter-manual-grid input[type="range"] { margin-top: 5px; }
    .idea-sequence-status { color: var(--muted-2); font-size: 10px; margin-top: 7px; }
    .idea-sequence-status.error { color: var(--danger); }
    .idea-card { margin-top: 13px; border-radius: 15px; padding: 15px; border: 1px solid rgba(241,142,209,.2); background: linear-gradient(145deg, rgba(241,142,209,.11), rgba(125,157,255,.08)); }
    .idea-kicker { color: #f5b6e4; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
    .idea-hook { font-size: 18px; line-height: 1.2; margin-top: 7px; letter-spacing: -.025em; }
    .idea-script { color: #ffffff; font-size: 13px; font-weight: 600; line-height: 1.5; margin-top: 8px; }
    .idea-meta { display: none; }
    .mini-chip { color: var(--muted); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 5px 8px; font-size: 10px; }
    .range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
    .range-row .field input { padding: 8px 0; border: 0; background: transparent; }
    .range-value { color: var(--cyan); font-variant-numeric: tabular-nums; }
    .music-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
    .music-card { position: relative; min-height: 101px; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: rgba(5,16,29,.32); color: var(--ink); }
    .music-card.selected { border-color: var(--cyan); background: rgba(104,230,237,.09); box-shadow: inset 0 0 0 1px rgba(104,230,237,.12); }
    .music-card:hover { border-color: rgba(104,230,237,.45); }
    .music-card .music-swatch { width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; color: #07111f; font-size: 12px; font-weight: 900; }
    .swatch-a { background: linear-gradient(135deg, var(--cyan), #76a0ff); }
    .swatch-b { background: linear-gradient(135deg, #f6b774, #f18ed1); }
    .swatch-c { background: linear-gradient(135deg, #9ae88b, #68e6ed); }
    .swatch-d { background: linear-gradient(135deg, #c6a8ff, #7d9dff); }
    .swatch-e { background: linear-gradient(135deg, #8ce2d0, #9ae88b); }
    .swatch-f { background: linear-gradient(135deg, #ffb4c8, #f6b774); }
    .swatch-g { background: linear-gradient(135deg, #f4dc8a, #9ae88b); }
    .swatch-h { background: linear-gradient(135deg, #a78bfa, #68e6ed); }
    .swatch-i { background: linear-gradient(135deg, #f9d976, #f18ed1); }
    .swatch-j { background: linear-gradient(135deg, #8bb8ff, #b8a0ff); }
    .music-card strong { display: block; font-size: 12px; margin-top: 11px; }
    .music-card span { color: var(--muted-2); font-size: 10px; }
    .music-card .music-play { position: absolute; top: 11px; right: 11px; color: var(--muted); font-size: 12px; }
    .volume-line { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
    .volume-line label { min-width: 78px; }
    .volume-line output { color: var(--cyan); width: 32px; font-size: 11px; text-align: right; }
    .music-trim { margin-top: 15px; padding: 13px; border: 1px solid rgba(104,230,237,.16); border-radius: 15px; background: rgba(5,16,29,.28); }
    .music-trim[hidden] { display: none; }
    .music-trim-head, .waveform-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ink); font-size: 11px; font-weight: 750; }
    .music-trim-head span:last-child, .waveform-head span:last-child { color: var(--cyan); font-variant-numeric: tabular-nums; }
    .music-trim-values { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 11px; }
    .music-trim-range { display: grid; gap: 4px; margin-top: 10px; padding: 0 1px; }
    .music-trim-range input:last-child { accent-color: var(--pink); }
    .music-trim .validation { margin-top: 6px; }
    .record-box { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px; border-radius: 15px; background: linear-gradient(145deg, rgba(255,179,104,.1), rgba(255,142,152,.06)); border: 1px solid rgba(255,179,104,.2); }
    .mic-orb { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #07111f; background: var(--orange); box-shadow: 0 0 0 7px rgba(255,179,104,.08); }
    .record-box strong { display: block; font-size: 12px; }
    .record-box p { color: var(--muted); line-height: 1.4; font-size: 11px; margin-top: 4px; }
    .recording .mic-orb { animation: pulse 1.2s infinite; background: var(--danger); }
    @keyframes pulse { 50% { box-shadow: 0 0 0 13px rgba(255,142,152,.06); } }
    .voice-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
    audio { width: 100%; height: 32px; margin-top: 10px; filter: sepia(30%) saturate(70%); }
    .waveform-wrap { margin-top: 12px; padding: 11px; border: 1px solid rgba(125,157,255,.22); border-radius: 14px; background: rgba(5,16,29,.3); }
    .waveform-wrap[hidden] { display: none; }
    .waveform-help { color: var(--muted-2); font-size: 10px; line-height: 1.4; margin-top: 7px; }
    #voiceWaveformCanvas { display: block; width: 100%; height: 74px; margin-top: 9px; border-radius: 9px; background: linear-gradient(180deg, rgba(104,230,237,.08), rgba(125,157,255,.04)); border: 1px solid rgba(180,211,239,.1); cursor: crosshair; }
    .export-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 18px; border: 1px solid rgba(104,230,237,.23); border-radius: 18px; background: linear-gradient(120deg, rgba(104,230,237,.12), rgba(125,157,255,.1)); }
    .export-card h2 { font-size: 16px; }
    .export-card p { color: var(--muted); font-size: 11px; line-height: 1.45; margin-top: 5px; max-width: 46ch; }
    .progress-wrap { margin-top: 10px; height: 5px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.1); }
    .progress-bar { width: 0%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--blue)); transition: width .15s ease; }
    .status-line { color: var(--muted-2); font-size: 11px; min-height: 16px; margin-top: 8px; }
    .status-line.error { color: var(--danger); }
    .download-status { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 9px 10px; border-radius: 10px; color: var(--muted-2); background: rgba(5,16,29,.34); font-size: 11px; line-height: 1.4; }
    .download-status.active { color: var(--cyan); }
    .download-status.done { color: var(--good); }
    .download-status.error { color: var(--danger); }
    .download-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--muted-2); }
    .download-status.active .download-dot { background: var(--cyan); box-shadow: 0 0 0 5px rgba(104,230,237,.1); animation: pulse-dot 1s infinite; }
    .download-status.done .download-dot { background: var(--good); }
    .download-status.error .download-dot { background: var(--danger); }
    @keyframes pulse-dot { 50% { opacity: .45; transform: scale(.75); } }
    .export-lock { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(3, 10, 20, .78); backdrop-filter: blur(10px); }
    .export-lock[hidden] { display: none; }
    body.exporting { overflow: hidden; }
    .export-lock-card { width: min(100%, 390px); padding: 24px; text-align: center; border: 1px solid rgba(104,230,237,.28); border-radius: 19px; background: linear-gradient(145deg, rgba(14,33,56,.98), rgba(8,20,35,.98)); box-shadow: 0 30px 80px rgba(0,0,0,.42); }
    .export-spinner { width: 40px; height: 40px; margin: 0 auto 14px; border: 3px solid rgba(104,230,237,.18); border-top-color: var(--cyan); border-right-color: var(--blue); border-radius: 50%; animation: export-spin 1s linear infinite; }
    @keyframes export-spin { to { transform: rotate(360deg); } }
    .export-lock-card h2 { font-size: 17px; }
    .export-lock-card p { color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 7px; }
    .export-lock-progress { height: 5px; margin-top: 16px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
    .export-lock-progress div { width: 0; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--blue)); transition: width .15s ease; }
    .privacy-note { display: flex; gap: 9px; align-items: flex-start; color: var(--muted-2); font-size: 11px; line-height: 1.5; padding: 0 4px; }
    .privacy-note strong { color: var(--good); }
    .toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); padding: 11px 14px; border-radius: 12px; background: #eaf7ff; color: #07111f; font-size: 12px; font-weight: 750; box-shadow: 0 15px 40px rgba(0,0,0,.26); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 10; }
    .toast.show { opacity: 1; transform: translate(-50%, 0); }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

    @media (max-width: 1050px) {
      .workspace { grid-template-columns: 1fr; }
      .preview-column { position: relative; top: auto; }
      .preview-card { max-width: 760px; margin: 0 auto; }
      #previewCanvas { width: min(100%, 320px); }
    }
    @media (max-width: 620px) {
      .app-shell { padding: 16px 13px 32px; }
      .topbar { align-items: flex-start; flex-direction: column; }
      .top-actions { justify-content: flex-start; }
      .preview-card, .control-card { border-radius: 19px; padding: 14px; }
      .drop-grid, .field-grid, .range-row, .format-options, .export-card, .music-trim-values, .idea-sequence-timing, .idea-sequence-settings, .text-color-grid, .screen-overlay-grid, .filter-manual-grid { grid-template-columns: 1fr; }
      .music-list, .sample-grid, .filter-grid, .effect-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
      .music-card { min-height: 95px; padding: 9px; }
      .music-card strong { font-size: 11px; }
      .media-asset-grid { grid-template-columns: 1fr; }
      .media-asset-grid .wide { grid-column: auto; }
      .record-box { grid-template-columns: auto 1fr; }
      .record-box .secondary-button { grid-column: 1 / -1; width: 100%; }
      .export-card .primary-button { width: 100%; }
    }
