/* Match the shared audio editor's scrollable sidebar and fixed action footer. */
.merge-controls {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: 12px 8px;
    background: transparent;
    border-left: 2px solid var(--eyy-border, #101010);
}

.merge-controls h1 { margin: 0; font-size: 1rem; }
.merge-description { margin: 7px 0 0; padding-bottom: 12px; border-bottom: 2px solid var(--eyy-border, #101010); color: #bdbbc8; line-height: 1.45; }
.merge-controls-body { display: flex; flex: 1 1 0; flex-direction: column; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #45454f transparent; }
.merge-controls-body > * { flex-shrink: 0; }
.merge-control-section { padding: 12px 0; border-bottom: 2px solid var(--eyy-border, #101010); }
.merge-control-section h2 { margin: 0; font-size: .85rem; font-weight: 600; }
.merge-controls .merge-hint { overflow-wrap: anywhere; margin: 9px 0 0; color: #a9a7b5; line-height: 1.45; }
.merge-selected-name { min-width: 0; min-height: 1.45em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merge-fact { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.merge-fact output, .merge-fact > span:last-child { min-width: 0; color: #bdbbc8; text-align: right; overflow-wrap: anywhere; }
.merge-field { display: grid; grid-template-columns: 1fr auto; gap: 6px; min-width: 0; margin-top: 12px; font-weight: 500; }
.merge-field > span { color: #a9a7b5; font-size: .8rem; font-weight: 400; }
.merge-field input { grid-column: 1 / -1; box-sizing: border-box; width: 100%; min-width: 0; min-height: 34px; padding: 6px 9px; background: #09090b; color: #fff; border: 1px solid #34333b; border-radius: 4px; font: inherit; font-variant-numeric: tabular-nums; }
.merge-field input:focus-visible { outline: 2px solid #51e6cf; outline-offset: 1px; }
.merge-field input:disabled { opacity: .46; }
.merge-fade-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.merge-control-actions { display: flex; gap: 6px; margin-top: 12px; }
.merge-control-actions button { flex: 1 1 0; min-width: 0; }
.merge-output-info { margin-top: auto; padding-top: 2px; }
.merge-output-info .merge-hint { margin: 14px 0 12px; }
.merge-export { flex: none; padding-top: 8px; border-top: 2px solid var(--eyy-border, #101010); }
.tool-page--audio-merger .merge-controls button:not(.default) { min-height: 34px; padding: 6px 10px; font: inherit; }
.tool-page--audio-merger .merge-controls button:disabled { opacity: .46; cursor: default; }
.tool-page--audio-merger .merge-export button { width: 100%; border-color: #337f76; background: #0c2522; }
.tool-page--audio-merger .merge-export button:hover:not(:disabled) { border-color: #54a49a; }

@media (max-width: 760px) {
    .merge-controls { height: auto; min-height: 0; padding: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); border-left: 0; border-top: 2px solid var(--eyy-border, #101010); }
    .merge-controls-body { overflow: visible; }
    .merge-control-section { padding: 8px 0; }
}
