/* カメラ・マイク・スピーカーテスト */
.av-panel[hidden] { display: none; }
.av-row { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.av-row > .form-group { flex: 1 1 14rem; min-width: 0; }
.av-checks { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; margin-bottom: 0.6rem; }

.av-video { position: relative; margin: 0.8rem 0; background: #0f172a; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; max-height: 70vh; }
.av-video video { width: 100%; height: 100%; object-fit: contain; display: block; background: #0f172a; }
.av-video.mirror video { transform: scaleX(-1); }
.av-video-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; color: #cbd5e1; font-size: 0.93rem; pointer-events: none; }
.av-video-msg.gone { display: none; }

.av-info { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1.2rem; margin: 0.8rem 0; font-size: 0.9rem; }
.av-info:empty { display: none; }
.av-info dt { color: var(--text-sub); }
.av-info dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.av-meter { position: relative; height: 1.6rem; margin: 0.9rem 0 0.4rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); overflow: hidden; }
.av-meter-bar { position: absolute; inset: 0; background: linear-gradient(to right, #16a34a 0, #16a34a 70%, #eab308 85%, #dc2626 100%); clip-path: inset(0 100% 0 0); }
.av-meter-peak { position: absolute; top: 0; bottom: 0; width: 3px; left: 0; background: var(--text); opacity: 0.7; }
.av-meter-read { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; margin-bottom: 0.5rem; }
.av-meter-read b { font-size: 1.15rem; }
.av-meter-read span { color: var(--text-sub); }
.av-wave { display: block; width: 100%; height: 5rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.av-rec { margin: 0.8rem 0; }
.av-rec audio { width: 100%; margin-top: 0.3rem; }
#mic-judge { margin-top: 0.8rem; }

.av-lr { display: flex; gap: 0.8rem; margin-bottom: 0.9rem; }
.av-lamp { flex: 1; text-align: center; padding: 1.1rem 0; border: 2px solid var(--border); border-radius: 6px; font-size: 1.6rem; font-weight: 700; color: var(--text-sub); background: var(--surface); }
.av-lamp.on { background: var(--pt-accent); border-color: var(--pt-accent); color: #fff; }
.av-group-title { font-size: 0.88rem; font-weight: 700; color: var(--text-sub); margin: 1rem 0 0.4rem; }
.av-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.av-chip { padding: 0.4rem 0.8rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: 0.9rem; cursor: pointer; }
.av-chip:hover { border-color: var(--pt-accent); }
.av-chip.on { background: var(--pt-accent-soft); border-color: var(--pt-accent); color: var(--pt-accent); font-weight: 700; }

@media (max-width: 560px) {
  .av-info { grid-template-columns: 1fr; gap: 0; }
  .av-info dd { margin-bottom: 0.5rem; }
}
#panel-spk .av-lr { margin-bottom: 1.1rem; }
#panel-spk .pt-actions { margin-bottom: 1.1rem; }
