/*
File: demo.css
UNC: C:\AI\GROK_Build\GROK_Build_Websites\niftyaccess\demo\stt-1\demo.css
Description: STT-1 speech popup at date-picker width (22.5rem, proven on a phone).
Version: v1.0
Date: August 28, 2026
*/

.stt-host {
  max-width: 36rem;
}

.stt-pick {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
}

.stt-pick input[type="text"] {
  flex: 1;
  min-width: 0;
}

.stt-pick .btn {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  align-self: stretch;
}

.stt-dialog {
  width: min(22.5rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated, var(--bg));
  color: var(--text);
  box-shadow: 0 18px 50px color-mix(in srgb, #000 35%, transparent);
}

.stt-dialog::backdrop {
  background: color-mix(in srgb, #000 45%, transparent);
}

.stt-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  padding: 0.85rem 0.9rem 1rem;
}

.stt-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.stt-head p {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stt-area-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}

.stt-dialog textarea {
  width: 100%;
  min-height: 10rem;
  resize: vertical;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
}

.stt-dialog textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.stt-interim {
  min-height: 1.2rem;
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

.stt-status {
  min-height: 1.2rem;
  margin: 0.2rem 0 0.65rem;
  font-size: 0.85rem;
}

.stt-status.is-error {
  color: #ef4444;
}

.stt-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem;
}

.stt-foot #btn-mic.is-on {
  border-color: #ef4444;
  background: color-mix(in srgb, #ef4444 18%, transparent);
  color: #b91c1c;
}

.stt-ask-row {
  margin: 0.85rem 0 0.4rem;
}

.stt-extract {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.stt-extract .contact-panel-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stt-extract-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
