@layer reset, tokens, layout, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { color-scheme: light; scroll-behavior: smooth; }
  body { margin: 0; }
  button, input, select { font: inherit; }
  button, a, input, select { -webkit-tap-highlight-color: transparent; }
  button, select { cursor: pointer; }
  button { color: inherit; }
  a { color: inherit; }
  button:disabled, input:disabled, select:disabled { cursor: not-allowed; }
  button, input, select, fieldset { min-width: 0; }
  button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
  p, h1, h2, h3, figure, dl { margin: 0; }
  svg { display: block; flex-shrink: 0; }
  audio { display: block; width: 100%; min-width: 0; max-width: 100%; }
  fieldset { padding: 0; margin: 0; border: 0; }
  button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}

@layer tokens {
  :root {
    --pink: #ffc5e5;
    --pink-light: #fff3fa;
    --hot-pink: #ff57b0;
    --blue: #2151ff;
    --blue-deep: #163ccc;
    --blue-light: #e8edff;
    --ink: #19142c;
    --muted: #625666;
    --line: #e5c9dc;
    --paper: #fff3fa;
    --surface: #fff9fc;
    --studio: #171923;
    --studio-panel: #202330;
    --studio-raised: #2b2e3e;
    --studio-line: #3e4255;
    --studio-text: #f4edfa;
    --studio-muted: #b1afc4;
    --wave-selection: #91a7ff;
    --font: Arial, "Helvetica Neue", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  }
  body { background: var(--pink); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; }
  ::selection { background: var(--blue); color: white; }
}

@layer layout {
  .audio-app { width: min(1360px, 100%); margin-inline: auto; padding: 24px 40px 20px; }
  .workbench-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
  .workbench-header .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.05; }
  .workbench-header .brand svg { width: 44px; height: 44px; color: var(--blue); }
  .workbench-header .header-note { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
  .workbench-intro { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin: 32px 0; }
  .workbench-intro h1 { font-size: clamp(48px, 6vw, 76px); letter-spacing: -0.065em; line-height: 0.96; font-weight: 850; margin: 12px 0 19px; }
  .workbench-intro h1 span { color: var(--blue); }
  .workbench-intro p:not(.eyebrow) { font-size: 16px; line-height: 1.6; }
  .workbench-intro .hero-badge { flex-shrink: 0; color: var(--blue); font-weight: 900; font-size: 14px; line-height: 1.3; border: 2px solid var(--blue); padding: 24px 19px; border-radius: 50%; transform: rotate(8deg); text-align: center; margin-inline-end: 24px; }
  .workbench { display: grid; grid-template-columns: minmax(0, 1fr) 328px; overflow: hidden; border: 1px solid var(--studio-line); border-radius: 18px; background: var(--studio); color: var(--studio-text); box-shadow: 0 12px 0 -7px var(--blue); color-scheme: dark; }
  .studio-toolbar { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(90px, 0.7fr) auto minmax(180px, 1fr) auto; gap: 18px; align-items: center; background: var(--studio-raised); border-bottom: 1px solid #11121c; padding: 14px 21px; }
  .session-label { display: flex; gap: 8px; align-items: center; font-size: 9px; font-weight: 750; letter-spacing: 1.2px; max-width: 116px; line-height: 1.5; }
  .transport-clock { border: 1px solid #3f4866; background: #111729; border-radius: 6px; padding: 7px 14px; min-width: 141px; text-align: center; }
  .transport-clock output { display: block; font: 23px/1.2 var(--mono); letter-spacing: -1px; color: var(--wave-selection); font-variant-numeric: tabular-nums; }
  .transport-clock > span { display: block; font: 8px/1.8 var(--mono); letter-spacing: 0.8px; color: var(--studio-muted); }
  .audio-column, .output-column { min-width: 0; }
  .audio-column { display: flex; flex-direction: column; background: var(--studio); }
  .output-column { padding: 22px; border-inline-start: 1px solid var(--studio-line); background: var(--studio-panel); }
  .canvas-toolbar { padding: 15px 24px; border-bottom: 1px solid var(--studio-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #1d202c; }
  .audio-stage { position: relative; flex: 1; min-height: 550px; }
  .empty-state { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 550px; text-align: center; padding: 32px 24px 42px; }
  .source-workspace { padding: 25px 24px 20px; }
  .source-heading { display: flex; gap: 16px; justify-content: space-between; align-items: start; margin-bottom: 21px; }
  .source-heading > div { min-width: 0; }
  .source-facts { display: flex; gap: 34px; margin-bottom: 28px; }
  .source-facts > div { min-width: 0; }
  .source-facts dt { color: var(--studio-muted); font-size: 10px; margin-bottom: 4px; }
  .source-facts dd { margin: 0; font: 14px/1.3 var(--mono); font-variant-numeric: tabular-nums; }
  .trim-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .trim-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; flex-wrap: wrap; }
  .source-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--studio-line); padding-top: 14px; margin-top: 25px; }
  .tool-help { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 3px; color: var(--ink); }
  .tool-help > span { font-size: 9px; letter-spacing: 1.15px; font-weight: 800; }
  .tool-help > div { display: flex; gap: 19px; flex-wrap: wrap; }
  .workbench-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(25,20,44,0.18); padding-top: 20px; margin-top: 18px; color: var(--muted); font-size: 12px; }
  .workbench-embedded { width: 100%; padding: 0; }
  .workbench-embedded .workbench-header, .workbench-embedded .workbench-intro, .workbench-embedded .workbench-footer { display: none; }
  .workbench-embedded .workbench { box-shadow: none; border-radius: 0; }
  .workbench-embedded .tool-help { padding-inline: 12px; margin: 0; background: var(--pink); }
}

@layer components {
  .audio-app .eyebrow, .section-label { font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
  .section-label { display: flex; align-items: center; gap: 9px; }
  .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hot-pink); flex-shrink: 0; }
  .track-divider { color: var(--studio-muted); }
  .toolbar-hint { color: var(--studio-muted); font-size: 10px; text-align:end; }
  .audio-app .button { min-height: 48px; padding: 12px 16px; border: 1px solid transparent; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; font-weight: 750; line-height: 1.3; text-decoration: none; transition: background-color 120ms, transform 120ms; }
  .audio-app .button:active:not(:disabled) { transform: translateY(1px); }
  .audio-app .button-primary { background: var(--blue); color: white; }
  .audio-app .button-primary:hover:not(:disabled) { background: var(--blue-deep); }
  .audio-app .button:disabled { background: var(--studio-raised); border-color: var(--studio-line); color: #9391a6; box-shadow: none; }
  .quiet-button, .text-button, .tool-help button { min-height: 44px; border: 0; background: transparent; font-size: 11px; padding: 4px 0; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
  .quiet-button { font-size: 13px; }
  .quiet-button:hover, .tool-help button:hover { color: var(--blue); }
  .workbench .text-button { color: var(--wave-selection); }
  .text-button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
  .text-button:disabled { color: #9391a6; }
  .text-button svg { width: 17px; }
  .help-symbol { display: inline-grid; place-items: center; width: 23px; height: 23px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 13px; }
  .icon-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 7px; padding: 0; flex-shrink: 0; display: grid; place-items: center; background: transparent; }
  .workbench .icon-button { border-color: var(--studio-line); }
  .icon-button:hover { background: var(--pink); color: var(--ink); }
  .icon-button svg { width: 17px; height: 17px; }
  .audio-art { width: min(276px, 100%); position: relative; margin: 4px 0 33px; }
  .audio-art > svg { width: 100%; position: relative; transform: rotate(-5deg); }
  .art-orbit { position: absolute; width: 206px; height: 206px; border: 1px solid var(--studio-line); border-radius: 50%; left: 50%; top: -20px; transform: translateX(-50%); }
  .art-caption { position: relative; display: inline-block; color: var(--pink); background: var(--studio-panel); border: 1px solid var(--studio-line); border-radius: 4px; font: 9px/1.5 var(--mono); padding: 5px 10px; transform: rotate(2deg); margin-top: -5px; }
  .empty-state h2 { font-size: clamp(34px, 3.6vw, 47px); line-height: 1.02; letter-spacing: -1.9px; font-weight: 800; }
  .empty-state > p { font-size: 13px; color: var(--studio-muted); margin: 14px 0 25px; }
  .empty-state .button { min-width: 229px; }
  .file-hint { margin-top: 12px; font-size: 10px; color: var(--studio-muted); }
  .local-hint { display: flex; align-items: center; gap: 7px; margin-top: 24px; font-size: 10px; font-weight: 550; color: var(--studio-muted); }
  .local-hint > span { font-size: 18px; font-weight: 400; color: var(--hot-pink); }
  .drag-overlay { position: absolute; inset: 9px; background: var(--blue); color: white; border: 2px dashed var(--pink); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-direction: column; font-size: 25px; font-weight: 750; z-index: 2; pointer-events: none; text-align: center; padding: 20px; }
  .drag-overlay span { font-size: 13px; font-weight: 400; margin-top: 8px; }
  .source-heading h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.55px; margin-top: 8px; overflow-wrap: anywhere; }
  .source-heading .eyebrow { color: var(--hot-pink); font-size: 8px; }
  .timeline-ruler { display: flex; justify-content: space-between; gap: 6px; padding: 0 0 9px; border-bottom: 1px solid var(--studio-line); font: 9px/1.4 var(--mono); color: var(--studio-muted); font-variant-numeric: tabular-nums; }
  .timeline-ruler span { position: relative; }
  .timeline-ruler span::after { content: ''; position: absolute; width: 1px; height: 5px; left: 0; bottom: -9px; background: var(--studio-line); }
  .waveform-wrap { position: relative; overflow: hidden; background: #10131f; border: 1px solid #4a4c79; border-left: 4px solid var(--hot-pink); border-radius: 5px; margin-top: 10px; }
  #waveform { display: block; width: 100%; height: 232px; }
  .waveform-label { position: absolute; left: 10px; top: 10px; font: 8px/1.4 var(--mono); letter-spacing: 0.7px; color: var(--pink); background: #111729; padding: 4px 6px; border-radius: 3px; }
  .waveform-times { display: flex; justify-content: space-between; font: 9px/1.4 var(--mono); color: var(--studio-muted); padding: 8px 1px; font-variant-numeric: tabular-nums; }
  .original-player { min-width: 0; }
  .original-player > label, .result-player-wrap > label { display: block; font-size: 9px; font-weight: 650; margin-bottom: 5px; color: var(--studio-muted); }
  .original-player > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .audio-app audio { height: 40px; border-radius: 20px; color-scheme: dark; }
  .trim-controls { border-bottom: 1px solid var(--studio-line); padding-bottom: 19px; margin-bottom: 21px; }
  .trim-controls legend { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
  .trim-controls legend .text-button { font-size: 10px; }
  .field { margin-bottom: 15px; }
  .field > label { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; font-size: 11px; font-weight: 650; margin-bottom: 7px; }
  .field > label span { font-size: 9px; font-weight: 400; color: var(--studio-muted); }
  .field input:not([type=range]), .field select { display: block; width: 100%; min-height: 44px; border: 1px solid #4c4f64; border-radius: 6px; background: #171a27; color: var(--studio-text); padding: 10px; font-size: 13px; font-weight: 500; }
  .field input:not([type=range]) { font-family: var(--mono); font-variant-numeric: tabular-nums; }
  .field input[aria-invalid=true] { border: 2px solid var(--hot-pink); }
  .field select { padding-inline-end: 25px; }
  .trim-grid .field { margin-bottom: 0; }
  .trim-range { appearance: none; -webkit-appearance: none; width: 100%; height: 44px; padding: 0; margin: 1px 0 0; background: transparent; accent-color: var(--hot-pink); }
  .trim-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: #505571; }
  .trim-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 3px solid var(--studio-panel); border-radius: 50%; background: var(--hot-pink); box-shadow: 0 0 0 1px var(--hot-pink); margin-top: -7px; }
  .trim-range::-moz-range-track { height: 4px; border-radius: 2px; background: #505571; }
  .trim-range::-moz-range-thumb { width: 13px; height: 13px; border: 3px solid var(--studio-panel); border-radius: 50%; background: var(--hot-pink); box-shadow: 0 0 0 1px var(--hot-pink); }
  .field-hint { font-size: 10px; line-height: 1.65; color: var(--studio-muted); }
  .field-error { margin-bottom: 10px; color: #ff98c9; font-size: 11px; font-weight: 550; }
  .selection-duration { font: 10px/1.5 var(--mono); flex-shrink: 0; color: var(--pink); font-variant-numeric: tabular-nums; }
  .audio-app .button-selection { min-height: 44px; background: var(--hot-pink); color: var(--ink); font-size: 11px; padding: 10px 12px; gap: 8px; white-space: nowrap; }
  .audio-app .button-selection:hover:not(:disabled) { background: #ff80c3; }
  .button-selection svg { width: 15px; height: 15px; }
  .source-bottom > p { font-size: 9px; color: var(--studio-muted); max-width: 290px; }
  .source-bottom .text-button { white-space: nowrap; font-size: 10px; }
  .output-heading { margin-bottom: 20px; }
  .output-heading .eyebrow { color: var(--hot-pink); margin-bottom: 8px; font-size: 8px; }
  .output-heading h2 { font-size: 24px; line-height: 1.1; font-weight: 750; letter-spacing: -0.85px; }
  .output-heading > p:last-child { font-size: 10px; margin-top: 8px; color: var(--studio-muted); }
  .format-note { min-height: 33px; margin: -2px 0 17px; }
  .prepare-button { width: 100%; justify-content: space-between !important; }
  .progress-panel { background: #252f57; padding: 9px 12px 12px; border: 1px solid #48588b; border-radius: 6px; margin-top: 13px; }
  .workbench > .progress-panel { grid-column: 1 / -1; margin: 0; border: 0; border-bottom: 1px solid #48588b; border-radius: 0; padding: 8px 22px 13px; }
  .progress-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .progress-heading > span { font-size: 11px; font-weight: 650; }
  .progress-heading .text-button { min-height: 44px; }
  progress { display: block; height: 5px; width: 100%; border: 0; border-radius: 4px; accent-color: var(--hot-pink); }
  progress::-webkit-progress-bar { background: #4c5473; border-radius: 4px; }
  progress::-webkit-progress-value { background: var(--hot-pink); border-radius: 4px; }
  progress::-moz-progress-bar { background: var(--hot-pink); border-radius: 4px; }
  .progress-panel > p { margin-top: 8px; font-size: 9px; color: var(--studio-muted); }
  .notice { display: flex; align-items: flex-start; gap: 5px; background: #452336; color: #ffd2e8; border: 1px solid #9b5177; border-radius: 7px; padding: 8px 5px 8px 11px; margin-top: 15px; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
  .workbench > .notice { grid-column: 1 / -1; margin: 0; border-radius: 0; padding-inline: 20px; }
  .notice > span { flex: 1; padding-top: 4px; }
  .notice .icon-button { width: 44px; height: 44px; border: 0; }
  .result-card { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--studio-line); }
  .result-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
  .result-top h3 { font-size: 8px; letter-spacing: 1.2px; font-weight: 750; }
  .result-tag { padding: 4px 6px; font-size: 9px; font-weight: 750; color: var(--pink); background: #48243b; border: 1px solid #754563; border-radius: 4px; }
  .result-size { font-size: 26px; line-height: 1.1; font-weight: 750; letter-spacing: -0.8px; margin-top: 13px; }
  .is-ready .result-size { font-size: 38px; color: var(--pink); font-family: var(--mono); letter-spacing: -2px; }
  .result-details { margin-top: 9px; font-size: 10px; color: var(--studio-muted); }
  .byte-receipt { font: 9px/1.5 var(--mono); color: var(--studio-muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
  .result-player-wrap { margin-top: 16px; }
  .result-warning { font-size: 9px; line-height: 1.65; margin-top: 11px; color: var(--studio-muted); }
  .audio-app .button-download { width: 100%; background: var(--hot-pink); color: var(--ink); margin-top: 16px; }
  .audio-app .button-download:hover:not(:disabled) { background: #ff80c3; }
  .download-note { text-align: center; color: var(--studio-muted); font-size: 9px; margin-top: 9px; }
  .workbench button:focus-visible, .workbench input:focus-visible, .workbench select:focus-visible { outline-color: var(--pink); }
  .audio-app dialog { color-scheme: light; border: 1.5px solid var(--ink); border-radius: 17px; padding: 26px; width: min(550px, calc(100% - 28px)); max-height: calc(100dvh - 40px); color: var(--ink); background: var(--surface); box-shadow: 7px 7px 0 var(--blue); }
  .audio-app dialog::backdrop { background: rgba(10,12,26,0.75); }
  .dialog-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 19px; }
  .dialog-heading h2 { font-size: 27px; letter-spacing: -1px; line-height: 1.1; padding-top: 6px; }
  #dialog-content { font-size: 14px; line-height: 1.7; }
  #dialog-content p { margin-bottom: 15px; }
  #dialog-content ol, #dialog-content ul { padding-inline-start: 21px; margin: 0 0 15px; }
  #dialog-content li { margin-bottom: 12px; padding-inline-start: 3px; }
  #dialog-content a { color: var(--blue); text-underline-offset: 3px; }
  .audio-app dialog > .button { width: 100%; margin-top: 7px; }
  .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; }
}

@layer responsive {
  @media (max-width: 1050px) {
    .audio-app { padding-inline: 26px; }
    .workbench { grid-template-columns: minmax(0, 1fr) 305px; }
    .studio-toolbar { grid-template-columns: auto minmax(160px, 1fr) auto; gap: 15px; padding-inline: 20px; }
    .session-label { display: none; }
    .output-column { padding: 20px; }
    .source-workspace, .canvas-toolbar { padding-inline: 20px; }
    .source-facts { gap: 24px; }
    .workbench-header .header-note { display: none; }
    .workbench-embedded { padding: 0; }
  }
  @media (max-width: 760px) {
    .audio-app { padding: 17px 18px; }
    .workbench-header { gap: 15px; min-height: 50px; }
    .workbench-header .brand { font-size: 19px; gap: 9px; }
    .workbench-header .brand svg { width: 37px; height: 37px; }
    .workbench-header .quiet-button { font-size: 0; gap: 0; padding: 5px; }
    .workbench-intro { margin: 28px 0 25px; }
    .workbench-intro h1 { font-size: 55px; }
    .workbench-intro p:not(.eyebrow) { font-size: 14px; }
    .workbench-intro .hero-badge { display: none; }
    .workbench { grid-template-columns: minmax(0, 1fr); border-radius: 15px; }
    .studio-toolbar { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; padding: 15px 19px; }
    .transport-clock { min-width: 0; text-align:start; padding: 7px 12px; }
    .transport-clock output { font-size: 22px; }
    .original-player { grid-column: 1 / -1; grid-row: 2; }
    .audio-app .button-selection { min-height: 54px; font-size: 11px; padding-inline: 13px; }
    .canvas-toolbar { padding: 14px 20px; }
    .audio-stage, .empty-state { min-height: 465px; }
    .empty-state { padding: 26px 20px 30px; }
    .empty-state h2 { font-size: 36px; }
    .audio-art { width: 240px; margin-bottom: 28px; }
    .art-orbit { width: 182px; height: 182px; }
    .local-hint { margin-top: 20px; }
    .output-column { border-inline-start: 0; border-top: 1px solid var(--studio-line); padding: 24px; }
    .output-heading { margin-bottom: 18px; }
    .output-heading h2 { font-size: 25px; }
    .field input:not([type=range]), .field select { font-size: 16px; }
    .field > label { font-size: 12px; }
    .field-hint { font-size: 11px; }
    .format-note { min-height: 0; }
    .source-workspace { padding: 22px 20px 18px; }
    .source-heading h2 { font-size: 20px; }
    .source-facts { gap: 28px; }
    #waveform { height: 182px; }
    .trim-grid { gap: 22px; }
    .trim-controls legend { font-size: 14px; }
    .trim-bottom { gap: 4px; }
    .source-bottom { gap: 13px; }
    .tool-help { flex-direction: column; align-items: center; gap: 2px; padding: 20px 0 10px; }
    .tool-help > span { font-size: 8px; }
    .tool-help > div { gap: 20px; justify-content: center; }
    .tool-help button { font-size: 11px; }
    .workbench-footer { align-items: flex-start; flex-direction: column; gap: 8px; font-size: 11px; margin-top: 10px; padding-top: 17px; }
    .workbench-embedded { padding: 0; }
  }
  @media (max-width: 370px) {
    .audio-app { padding-inline: 12px; }
    .workbench-intro h1 { font-size: 48px; }
    .workbench-intro .eyebrow { font-size: 9px; letter-spacing: 0.7px; }
    .workbench-header .brand { font-size: 18px; }
    .studio-toolbar { padding-inline: 14px; gap: 11px; }
    .transport-clock output { font-size: 19px; }
    .transport-clock > span { font-size: 7px; }
    .audio-app .button-selection { font-size: 10px; gap: 5px; padding-inline: 9px; }
    .canvas-toolbar { padding-inline: 15px; }
    .toolbar-hint { font-size: 9px; max-width: 104px; }
    .section-label { font-size: 8px; letter-spacing: 0.7px; gap: 6px; }
    .source-workspace { padding-inline: 15px; }
    .source-facts { gap: 21px; }
    .source-facts dd { font-size: 12px; }
    .source-heading h2 { font-size: 18px; }
    .output-column { padding-inline: 18px; }
    .empty-state { padding-inline: 15px; }
    .empty-state h2 { font-size: 33px; }
    .empty-state .button { min-width: 0; width: 100%; max-width: 240px; }
    .file-hint { font-size: 9px; }
    .audio-art { width: 215px; }
    .trim-grid { gap: 14px; }
    .source-bottom { align-items: flex-start; flex-direction: column; gap: 3px; }
    .timeline-ruler { font-size: 7px; }
    .tool-help > div { gap: 15px; }
    .audio-app dialog { padding: 20px; }
    .workbench-embedded { padding: 0; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
}

.timeline-ruler,.waveform-wrap,.waveform-times,.transport-clock{direction:ltr;unicode-bidi:isolate}
