/* Sounds tab (BAB-0048). The page look is the Face tab's (../style.css and ../face/face.css); this file adds only what the sound editor needs. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.step a { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 -14px; padding: 0 14px; color: inherit; text-decoration: none; border-radius: var(--r-btn); }
.step a:hover { background: var(--raised); }
.step a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.soundpage .fstage > * { flex: none; }

/* the three pictures */
.viz { margin: 0; }
.viz figcaption { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.viz canvas { display: block; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.vizwrap { position: relative; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 10px var(--hue, #fff); pointer-events: none; }
.axis { display: flex; justify-content: space-between; margin: 2px 2px 0; font-size: 14px; color: var(--ink2); }

/* pictures on the left, the talking face on the right when the page is wide enough */
.stagegrid { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vizcol, .facecol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vizcol > *, .facecol > * { flex: none; }
@media (min-width: 1700px) {
  .stagegrid { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 16px; align-items: start; }
}

/* say something */
.talkrow { display: flex; gap: 8px; }
.talkrow input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 10px; border: 2px solid var(--line); border-radius: var(--r-btn); background: var(--card); font-size: 16px; }
.talkrow input:focus-visible, #name:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.talkrow .btn { flex: none; white-space: nowrap; }
.facepick { display: flex; align-items: center; gap: 8px; }
.facepick label { font-size: 14px; font-weight: 600; flex: none; }
.facepick select { flex: 1 1 auto; }
#glass { max-width: 100%; }

/* the sound list in the left column */
.slist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sgroup { margin: 8px 0 2px; font-size: 14px; font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: 0.02em; }
.slist li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px; }
.slist .btn { min-height: 44px; padding: 0 8px; justify-content: center; }
.slist .pick { justify-content: flex-start; text-align: left; flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 10px; }
.slist .pick small { font-size: 14px; font-weight: 400; color: var(--ink2); line-height: 1.2; }
.slist .pick[aria-pressed="true"] { border-color: var(--accent); background: #E3F1F5; }

/* layers and notes */
.subgroup { border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; margin: 6px 0; }
.subgroup > summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; font-size: 14px; cursor: pointer; }
.subgroup .gbody { padding-bottom: 10px; }
.note { border-top: 1px solid var(--line); padding: 6px 0; display: grid; gap: 2px; }
.note h4 { margin: 4px 0 0; font-size: 14px; }
.ctl.sub { padding-left: 10px; border-left: 3px solid var(--line); }
.hint { margin: 0; font-size: 14px; color: var(--ink2); }
.stock { margin: 0; }
.stockbtn { min-height: 64px; }
.stockbtn b { font-size: 16px; }
.soundpage .levelbox { flex: 1 1 200px; order: 0; }
.soundpage .playrow .levelbox { flex: 1 1 200px; }
.soundpage .moodstrip .btn { flex: 1 1 96px; }
@media (max-width: 900px) {
  .soundpage .playrow .btn { flex: 1 1 140px; }
}
