#voice-tools[hidden], #voice-tools [hidden], #voice-field-title[hidden], #voice-undo[hidden] { display: none !important; }

@media (max-width: 640px), (pointer: coarse) and (orientation: landscape) and (max-height: 640px) {
  body[data-screen="create"] .bg-scrim { background-color: rgba(11, 12, 16, .44); }
  .with-voice { padding-top: 20px; padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  .with-voice .col-text.fit { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 19px 8px; }
  .with-voice .col-text > * { grid-column: 1 / -1; }
  .with-voice .col-text > .back, .with-voice .col-text > .eyebrow { grid-column: auto; margin: 0; }
  .with-voice .back { display: inline-flex; align-items: center; min-height: 44px; }
  .with-voice .eyebrow { color: var(--muted); }
  .with-voice .h2 { margin: 1px 0 6px; }
  .with-voice .field { margin-top: -12px; }
  .with-voice textarea { background: rgba(20, 22, 27, .82); scroll-margin-bottom: 108px; }
  .with-voice .note { max-width: 36ch; }
  .with-voice .cta-row { padding-top: 0; scroll-margin-bottom: 108px; }
  .with-voice .cta-row[inert] .btn { opacity: .35; }
  .voice-field-title { display: flex; align-items: center; justify-content: space-between; min-height: 28px;
    color: var(--text); font-size: 14px; }
  #voice-undo { min-height: 44px; margin: -8px 0; padding: 0 2px 0 12px; border: 0; background: none;
    color: #add5f0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

  .voice-dock { position: fixed; z-index: 5; inset: auto 0 0; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
    background: #101216; border-top: 1px solid var(--line); }
  .voice-privacy { margin: 0 0 7px; text-align: center; font-size: 12px; line-height: 1.25; color: var(--muted); }
  #voice-hold { display: flex; align-items: center; justify-content: center; gap: 12px; position: relative;
    width: 100%; min-height: 62px; padding: 10px 14px; border: 1px solid #759ab2; background: #1a2a36; color: #f5f9fc;
    font: inherit; text-align: left; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
    -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
  .voice-symbol { flex: none; display: grid; place-items: center; width: 28px; height: 28px; color: #aed5ee; }
  .voice-symbol svg { width: 24px; height: 24px; }
  .voice-action-text { display: grid; gap: 2px; min-width: 0; }
  .voice-action-text strong { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
  .voice-action-text small { font-size: 13px; line-height: 1.35; color: #c3d1dc; }
  #voice-time { font-size: 14px; line-height: 1; font-variant-numeric: tabular-nums; }
  .voice-cross, .voice-wave { display: none; }
  .voice-wave { height: 24px; align-items: center; gap: 3px; }
  .voice-wave i { width: 2px; height: 7px; background: currentColor; animation: voice-pulse .65s ease-in-out infinite alternate; }
  .voice-wave i:nth-child(2), .voice-wave i:nth-child(4) { height: 15px; animation-delay: -.4s; }
  .voice-wave i:nth-child(3) { height: 22px; animation-delay: -.2s; }
  @keyframes voice-pulse { from { transform: scaleY(.5); } to { transform: scaleY(1); } }
  .voice-dock:is([data-phase="recording"], [data-phase="canceling"]) #voice-hold { justify-content: flex-start; }
  .voice-dock:is([data-phase="recording"], [data-phase="canceling"]) #voice-time { margin-left: auto; }
  .voice-dock[data-phase="recording"] #voice-hold { background: #b5d7eb; border-color: #b5d7eb; color: #0d1c26; }
  .voice-dock[data-phase="recording"] :is(.voice-symbol, .voice-action-text small) { color: #233e50; }
  .voice-dock[data-phase="canceling"] #voice-hold { background: #512d2e; border-color: #d19a93; }
  .voice-dock[data-phase="canceling"] :is(.voice-symbol, .voice-action-text small) { color: #f4c5bd; }
  .voice-dock:is([data-phase="recording"], [data-phase="canceling"], [data-phase="transcribing"]) .voice-mic { display: none; }
  .voice-dock:is([data-phase="recording"], [data-phase="transcribing"]) .voice-wave { display: flex; }
  .voice-dock[data-phase="canceling"] .voice-cross { display: block; }
  .voice-dock[data-phase="transcribing"] #voice-hold { cursor: progress; }
  .voice-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  @media (prefers-reduced-motion: reduce) { .voice-wave i { animation: none; } }
}
