/* HOLiUS smart-voice entry UI v0971. Shared search component, not theme-owned CSS.
   Load once after existing search bundles using css-asset-manifest.php. */
.holius-voice-sheet {
  box-sizing:border-box;
  width:min(440px,calc(100vw - 32px));
  max-height:calc(100dvh - 32px);
  overflow:auto;
  overscroll-behavior:contain;
  margin:auto;
  padding:20px;
  border:1px solid var(--holius-field-border,var(--theme-border,#cbd5e1));
  border-radius:20px;
  background:var(--theme-surface,var(--bg-surface,#fff));
  color:var(--theme-text,var(--text-main,#1f2937));
  box-shadow:0 16px 60px rgba(0,0,0,.16);
  font-family:var(--theme-font-ui,var(--theme-font,inherit));
}
.holius-voice-sheet::backdrop {background:rgba(15,23,42,.40)}
.holius-voice-sheet[open]{display:block}
.holius-voice-sheet [hidden]{display:none}
.holius-voice-sheet *{box-sizing:border-box}
.holius-voice-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.holius-voice-sheet h2{font-size:19px;line-height:var(--theme-leading-scale-140,1.4);font-weight:var(--theme-weight-700,700);margin:0}
.holius-voice-sheet button{
  font:inherit;min-height:44px;min-width:44px;border-radius:12px;
  background:var(--theme-surface-2,var(--bg-soft,#f3f4f6));
  color:inherit;border:1px solid var(--holius-field-border,var(--theme-border,#cbd5e1));
  cursor:pointer;
}
.holius-voice-sheet button:focus-visible,
.holius-voice-sheet textarea:focus-visible{
  outline:2px solid var(--holius-pub-focus-ring-color,var(--theme-accent,#34765a));
  outline-offset:3px;
}
.holius-voice-sheet .holius-voice-close{font-size:25px;line-height:1;padding:0}
.holius-voice-visual{
  width:72px;height:72px;margin:24px auto 16px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--theme-accent-2,var(--theme-surface-2,#edf4ef));
  color:var(--theme-accent,var(--brand-accent,#34765a));
}
.holius-voice-mic{width:32px;height:32px;display:block}
.holius-voice-sheet[data-voice-phase="listening"] .holius-voice-visual{animation:hl-voice-breathe 1.6s ease-in-out infinite}
.holius-voice-message{text-align:center;font-size:16px;font-weight:var(--theme-weight-650,650);line-height:var(--theme-leading-scale-155,1.55);margin:0}
.holius-voice-help{min-height:22px;margin:8px 0 16px;text-align:center;font-size:14px;
  color:var(--theme-muted,var(--text-sub,#526071));overflow-wrap:anywhere}
.holius-voice-label{display:block;font-size:14px;font-weight:var(--theme-weight-650,650);margin:0 0 6px}
.holius-voice-transcript{
  display:block;width:100%;min-height:76px;padding:10px 12px;
  border:1px solid var(--holius-field-border,var(--theme-border,#cbd5e1));
  border-radius:12px;resize:vertical;background:var(--theme-input,var(--theme-surface,#fff));
  color:var(--theme-text,var(--text-main,#1f2937));font:inherit;font-size:16px;
}
.holius-voice-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.holius-voice-actions button{flex:1 1 120px;padding:10px 14px;font-size:14px;font-weight:var(--theme-weight-650,650)}
.holius-voice-actions .holius-voice-primary{
  background:var(--holius-ui-action-bg,var(--theme-accent,#34765a));
  color:var(--holius-ui-action-fg,var(--theme-accent-contrast,#fff));
  border-color:var(--holius-ui-action-bg,var(--theme-accent,#34765a));
}
@keyframes hl-voice-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@media (prefers-reduced-motion:reduce){.holius-voice-sheet .holius-voice-visual{animation:none}}
@media (max-width:390px){
  .holius-voice-sheet{width:calc(100vw - 24px);padding:16px;border-radius:16px}
  .holius-voice-visual{margin:16px auto 12px}
  .holius-voice-actions{margin-top:16px}
}
@media (forced-colors:active){
  .holius-voice-sheet,.holius-voice-sheet button,.holius-voice-transcript{border:1px solid CanvasText}
  .holius-voice-sheet button:focus-visible,.holius-voice-transcript:focus-visible{outline-color:Highlight}
}

/* v0972 Bible candidates: only server-confirmed same-origin reader links. */
.holius-voice-bible,.holius-voice-intent {margin-top:14px;padding:12px;border:1px solid var(--holius-field-border,var(--theme-border,#cbd5e1));border-radius:12px;background:var(--theme-surface-2,var(--bg-soft,#f3f4f6))}
.holius-voice-bible h3,.holius-voice-intent h3 {font-size:14px;line-height:var(--theme-leading-scale-150,1.5);font-weight:var(--theme-weight-700,700);margin:0 0 8px}
.holius-voice-bible-items {display:grid;gap:6px;max-height:170px;overflow-y:auto;overscroll-behavior:contain}
.holius-voice-bible-option {display:flex;align-items:center;min-height:44px;padding:9px 12px;border-radius:10px;border:1px solid var(--holius-field-border,var(--theme-border,#cbd5e1));background:var(--theme-surface,var(--bg-surface,#fff));color:var(--theme-text,var(--text-main,#1f2937));font-size:14px;text-decoration:none;overflow-wrap:anywhere}
.holius-voice-bible-option:hover,.holius-voice-bible-option:focus-visible {outline:2px solid var(--holius-pub-focus-ring-color,var(--theme-accent,#34765a));outline-offset:1px}
.holius-voice-bible-empty {font-size:14px;line-height:var(--theme-leading-scale-150,1.5);margin:0;color:var(--theme-muted,var(--text-sub,#526071))}

/* v0973 explicit voice search destination preview; no automatic submission. */
.holius-voice-intent dl{margin:0;display:grid;gap:8px}
.holius-voice-intent dl>div{display:grid;grid-template-columns:minmax(65px,auto) minmax(0,1fr);gap:8px;align-items:start}
.holius-voice-intent dt{font-size:14px;color:var(--theme-muted,var(--text-sub,#526071))}
.holius-voice-intent dd{margin:0;font-size:14px;font-weight:var(--theme-weight-650,650);overflow-wrap:anywhere}

/* v0975 accessible candidate feedback and mobile safe-area handling. */
.holius-voice-candidate-status {
  margin:6px 0 0; font-size:14px; line-height:var(--theme-leading-scale-150,1.5);
  color:var(--theme-muted,var(--text-sub,#526071)); overflow-wrap:anywhere;
}
.holius-voice-candidate-status:empty{display:none}
@media (max-width:390px) {
  .holius-voice-sheet {
    max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
  }
}

/* v0976 low-height/zoom usability: actions remain reachable while reviewing long results. */
.holius-voice-sheet .holius-voice-actions {
  position:sticky; bottom:0; z-index:1;
  padding:10px 0 max(8px, env(safe-area-inset-bottom,0px));
  background:var(--theme-surface,var(--bg-surface,#fff));
}
.holius-voice-sheet {scroll-padding-bottom:76px}
.holius-voice-sheet .holius-voice-transcript {overflow-wrap:anywhere}

/* 0980 — paced continuous listening, reusable theme tokens, no fake VU claims. */
.holius-voice-pace-label {display:block;margin:12px 0 6px;font-weight:var(--theme-weight-650,650);font-size:14px}
.holius-voice-pace {display:block;width:100%;min-height:44px;padding:8px 12px;border-radius:12px;
  background:var(--theme-input,var(--theme-surface,#fff));
  color:var(--theme-text,var(--text-main,#1f2937));
  border:1px solid var(--holius-field-border,var(--theme-border,#cbd5e1));font:inherit;font-size:16px}
.holius-voice-pace:focus-visible {outline:2px solid var(--holius-pub-focus-ring-color,var(--theme-accent,#111827));outline-offset:3px}
.holius-voice-pace-hint {font-size:14px;line-height:var(--theme-leading-scale-155,1.55);margin:6px 0 0;color:var(--theme-muted,var(--text-sub,#526071))}
.holius-voice-bars {width:100%;height:28px;display:flex;gap:5px;justify-content:center;align-items:center;margin:0 auto 8px}
.holius-voice-bars i {display:block;width:5px;height:7px;border-radius:6px;background:var(--theme-accent,var(--brand-accent,#111827));opacity:.45}
.holius-voice-sheet:is([data-voice-phase="listening"],[data-voice-phase="reconnecting"]) .holius-voice-bars i {
  animation:hl-voice-bars 1.25s ease-in-out infinite;opacity:.8}
.holius-voice-sheet .holius-voice-bars i:nth-child(2) {animation-delay:.16s}
.holius-voice-sheet .holius-voice-bars i:nth-child(3) {animation-delay:.32s}
.holius-voice-sheet .holius-voice-bars i:nth-child(4) {animation-delay:.48s}
.holius-voice-sheet .holius-voice-bars i:nth-child(5) {animation-delay:.64s}
.holius-voice-sheet[data-voice-phase="reconnecting"] .holius-voice-bars i {opacity:.4;animation-duration:1.8s}
@keyframes hl-voice-bars {0%,100%{height:7px}50%{height:24px}}
@media (prefers-reduced-motion:reduce) {
 .holius-voice-sheet .holius-voice-bars i {animation:none;height:11px}
 .holius-voice-sheet .holius-voice-bars i:nth-child(3) {height:19px}
}
@media(forced-colors:active) {
 .holius-voice-sheet .holius-voice-pace {border:1px solid CanvasText}
 .holius-voice-bars i {background:CanvasText}
}

/* 0981 live microphone RMS meter: motion is transform-only and never shifts layout. */
.holius-voice-meter-note {
  min-height:20px; margin:0 0 8px; text-align:center; font-size:12px;
  line-height:var(--theme-leading-scale-155,1.55); color:var(--theme-muted,var(--text-sub,#526071));
}
.holius-voice-sheet[data-voice-meter="live"] .holius-voice-bars i {
  animation:none; height:24px; opacity:.9; transform:scaleY(.22);
  transform-origin:center center; will-change:transform;
}
@media (prefers-reduced-motion:reduce) {
  .holius-voice-sheet[data-voice-meter="live"] .holius-voice-bars i {
    transform:none; height:11px; will-change:auto;
  }
  .holius-voice-sheet[data-voice-meter="live"] .holius-voice-bars i:nth-child(3) {height:19px}
}
