.voice-view {
  position: absolute;
  z-index: 5;
  top: clamp(74px, 13%, 120px);
  left: clamp(10px, 2.2vw, 48px);
  width: clamp(184px, 16.5vw, 246px);
  max-height: calc(100% - clamp(74px, 13%, 120px) - 8px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 8px 5px;
  border: 1px solid #6a604c;
  background: var(--grain), #eee4cd;
  box-shadow: 2px 2px 0 #75685048;
  color: #342f26;
  font: clamp(12px, .86vw, 16px)/1.48 var(--jp);
  touch-action: auto;
  cursor: default;
}
.voice-view:has(.voice-toggle[aria-expanded=false]) { width: max-content; padding-bottom: 0 }
.voice-toggle { position:sticky; top:0; z-index:1; min-height:32px; padding-inline:1px; background:var(--grain), #eee4cd }
.voice-signal {
  display: grid;
  grid-template-columns: auto minmax(24px,1fr);
  align-items: center;
  gap: 7px;
  padding-block: 2px;
  border-block: 1px solid #b4a88b;
  color: #554e3e;
  font-size: .87em;
}
.voice-signal canvas { display: block; width: 100%; height: 21px }
.voice-status { margin: 5px 0 1px; font-weight: 700; overflow-wrap: anywhere }
.voice-hint { margin: 1px 0 4px; font-size: .95em; overflow-wrap: anywhere }
.voice-heard { margin: 3px 0; padding-left: 7px; border-left: 2px solid #a69a7c }
.voice-heard span { display: block; color: #584f40; font-size: .83em }
.voice-heard strong { display: block; overflow-wrap: anywhere; font-weight: 600 }
.voice-view[data-state=accepted] .voice-heard { border-color: #416356 }
.voice-detail { margin-top: 4px; border-top: 1px solid #b4a88b; font-size: .87em }
.voice-detail summary { padding: 4px 0 2px; font-weight: 600; cursor: pointer }
.voice-detail p { margin: 1px 0 4px }
.voice-detail dl {
  display: grid; grid-template-columns: 1fr auto;
  gap: 1px 5px; margin: 3px 0;
}
.voice-detail dd { margin: 0; font-variant-numeric: tabular-nums }
.voice-view :is(button,summary):focus-visible { outline: 2px solid #524836; outline-offset: -2px }
.flight-page.plate-only .voice-view { display: none }
@media(max-width:640px) and (orientation:portrait) {
  .voice-view { left: 5px; top: 61px; max-height: calc(100% - 66px); width: min(54%,198px); padding-inline: 5px; font-size: 12px }
  .voice-toggle { min-height: 29px }
  .voice-signal { gap: 4px }
}
@media(max-width:405px) and (orientation:portrait) {
  .voice-view { width: 46% }
}
@media(max-height:520px) and (orientation:landscape) {
  .voice-view { left: 6px; top: 51px; max-height: calc(100% - 55px); width: clamp(159px, 24vw, 205px); font-size: 11px }
  .voice-toggle { min-height: 23px }
  .voice-signal canvas { height: 14px }
  .voice-status { margin-top: 3px }
}
