/* /tools/audio-trimmer */
.at-root [hidden] { display: none !important; }
.at-drop { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; border: 2px dashed var(--border); border-radius: 10px; background: var(--bg-input); padding: 22px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.at-drop:hover, .at-drop.is-over { border-color: var(--accent); background: var(--accent-muted); }
.at-drop strong { color: var(--text-primary); font-size: 0.95rem; }
.at-drop span { color: var(--text-tertiary); font-size: 0.8rem; overflow-wrap: anywhere; max-width: 100%; }
.at-actions-row { display: flex; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.at-actions-row .ub-tool-btn { flex: 1 1 auto; min-height: 40px; }
.at-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin-top: 10px; }
.at-grid .ub-input-group { min-width: 0; }
.at-root select, .at-root input[type=text], .at-root input[type=number] { width: 100%; min-width: 0; }
.at-hint { font-size: 0.8rem; color: var(--text-tertiary); line-height: 1.5; margin: 10px 0 0; }
.at-msg { margin-top: 10px; padding: 10px 12px; border: 1px solid color-mix(in srgb, #d9534f 50%, var(--border)); border-radius: 8px; background: var(--bg-input); font-size: 0.86rem; line-height: 1.5; color: var(--text-secondary); }
.at-msg.is-info { border-color: var(--accent-border); }
.at-presets { margin-top: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-input); }
.at-presets__title { font-size: 0.75rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; font-weight: 600; }
.at-presets__row { display: flex; gap: 6px; flex-wrap: wrap; }
.at-presets__row .ub-tool-btn { min-height: 40px; flex: 1 1 auto; }
.at-presets__row .ub-tool-btn.is-active { border-color: var(--accent); color: var(--accent); }
.at-canvas-wrap { padding: 12px 16px 4px; display: block; }
.at-canvas { width: 100%; height: 200px; display: block; border-radius: 8px; background: var(--bg-input); border: 1px solid var(--border); touch-action: none; cursor: ew-resize; }
.at-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.at-timeline { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-tertiary); margin-top: 4px; }
@media (max-width: 480px) { .at-canvas { height: 160px; } }
