
.speech-readout { text-align: center; }
.speech-digits { font-size: clamp(4rem, 20vw, 7.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.speech-status { color: var(--muted); font-size: var(--apa-text-md); font-weight: 600; margin-top: 0.5rem; }
.speech-bar { position: relative; width: min(100%, 26rem); height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.speech-bar span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; }
.speech-bar i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--apa-warning); }
.speech[data-phase='warn'] .speech-digits, .speech[data-phase='warn'] .speech-status { color: var(--apa-warning); }
.speech[data-phase='warn'] .speech-bar span { background: var(--apa-warning); }
.speech[data-phase='over'] .speech-digits, .speech[data-phase='over'] .speech-status { color: var(--apa-red-text); }
.speech-presets { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
.speech-presets > button { padding-inline: 0.25rem; }
.speech-custom input { max-width: 8rem; }
.full-view { position: fixed; inset: 0; z-index: 100; overflow: hidden; outline: none; }
.full-close {
  position: absolute; top: calc(8px + env(safe-area-inset-top)); right: calc(8px + env(safe-area-inset-right)); z-index: 2;
  width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: 0.55;
}
.full-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (hover: hover) { .full-close:hover:not(:disabled) { background: rgb(127 127 127 / 0.2); color: inherit; opacity: 1; } }
.speech-stage { display: grid; place-content: center; justify-items: center; gap: 2vh; background: #0a0a0a; color: #ededed; cursor: pointer; }
.speech-stage-digits { font-weight: 700; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.speech-stage-status { font-size: clamp(1.25rem, 4vh, 2.5rem); font-weight: 600; opacity: 0.8; }
.speech-stage-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1.2vh; background: rgb(255 255 255 / 0.12); }
.speech-stage-bar span { position: absolute; inset: 0; background: currentColor; transform-origin: left; }
.speech-stage[data-phase='warn'] { color: #d6a85a; }
.speech-stage[data-phase='over'] { color: #ec9688; }
