body > .tool-page.tool-page--audio-merger { width: 100%; max-width: none; margin: 0; padding: 0; }
.tool-page--audio-merger [hidden] { display: none !important; }
.merge-workspace { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 350px); height: 100%; min-height: 0; text-align: left; font-variant-numeric: tabular-nums; }
.merge-editor { display: grid; grid-template-columns: minmax(190px, 240px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: 'header header' 'library arrangement' 'library transport'; min-width: 0; min-height: 0; }
.merge-header { grid-area: header; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 50px; padding: 8px; border-bottom: 2px solid var(--eyy-border); box-sizing: border-box; }
.merge-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: .85rem; font-weight: 600; }
.merge-section-title span { color: #a9a7b5; font-weight: 400; font-size: .78rem; }
.merge-library { grid-area: library; min-width: 0; min-height: 0; overflow: auto; padding: 12px 8px; border-right: 2px solid var(--eyy-border); scrollbar-width: thin; scrollbar-color: #45454f transparent; overscroll-behavior: contain; }
.merge-library p { margin: 18px 2px; color: #a9a7b5; line-height: 1.45; }
.merge-sources { display: flex; flex-direction: column; margin-top: 8px; }
.merge-source { display: flex; align-items: center; min-width: 0; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--eyy-border); cursor: grab; }
.merge-source:active { cursor: grabbing; }
.merge-source span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-page--audio-merger .merge-source button:not(.default) { flex: none; min-height: 30px; padding: 4px 10px; }
.merge-arrangement { grid-area: arrangement; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 12px 0 0; }
.merge-arrangement > .merge-section-title { padding: 0 12px; }
.merge-arrangement > [data-merger-timeline] { display: flex; flex: 1; flex-direction: column; justify-content: center; min-width: 0; min-height: 0; }
.merge-transport { grid-area: transport; display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; border-top: 2px solid var(--eyy-border); }
.merge-transport span { color: #bdbbc8; white-space: nowrap; }
.tool-page--audio-merger .merge-transport button:not(.default), .tool-page--audio-merger .merge-header button:not(.default) { min-height: 34px; padding: 6px 10px; font: inherit; }
.tool-page--audio-merger .merge-transport [data-merge-play] { width: 88px; flex: 0 0 88px; }
.merge-drop-overlay { position: fixed; inset: 52px 10px 10px; z-index: 990; display: flex; align-items: center; justify-content: center; pointer-events: none; border: 2px dashed #51e6cf; border-radius: 10px; background: #0b211fee; }
@media (max-width: 760px) {
    .merge-workspace { height: auto; min-height: 100%; grid-template-columns: minmax(0, 1fr); }
    .merge-editor { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(190px, 1fr) auto; grid-template-areas: 'header' 'library' 'arrangement' 'transport'; min-height: 480px; }
    .merge-library { max-height: 150px; border-right: 0; border-bottom: 2px solid var(--eyy-border); }
    .merge-arrangement { min-height: 190px; }
}
