/* 音声・動画の変換：ページ共通の配置（色や見た目の細部はサイト共通の base.css に任せる） */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.subnav a {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--text); font-size: 14px; background: var(--surface);
}
.subnav a[aria-current=page] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 20px 16px; text-align: center; margin: 0 0 12px; }
.drop.over { border-color: var(--accent); background: var(--accent-weak); }
.drop p { margin: 4px 0; }
.files { list-style: none; padding: 0; margin: 0 0 12px; }
.files li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; }
.files .fname { font-weight: 700; overflow-wrap: anywhere; }
.files .finfo, .files .fres, .files .fwarn { overflow-wrap: anywhere; }
.files progress { width: 100%; height: 10px; }
.files audio, .files video, .preview audio, .preview video { width: 100%; max-height: 60vh; margin: 6px 0 0; display: block; }
.fmt { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; margin: 0; font-weight: 400; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--bg); font-size: 14px; }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-weak); color: var(--accent); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.chip input:disabled + span { opacity: .45; cursor: not-allowed; }
details.box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin: 12px 0 0; }
details.box > summary { padding: 4px 0; }
.sub-h { font-size: 15px; margin: 16px 0 8px; }
.preview { border-top: 1px solid var(--line); margin: 16px 0 0; padding: 8px 0 0; }
/* 波形（音声カット） */
.wave-wrap { position: relative; margin: 8px 0 0; }
canvas.wave { display: block; width: 100%; height: 140px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; --wave: var(--accent); --wave-sel: rgba(47, 111, 237, .2); --wave-handle: var(--text); }
.timebar { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.licenses li { overflow-wrap: anywhere; }
@media print { .subnav, .drop { display: none !important; } }
table.spec th { width: 9em; white-space: nowrap; }
@media (max-width: 600px) { table.spec th, table.spec td { display: block; width: auto; white-space: normal; border: 0; padding: 2px 0; } table.spec tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; } }
