.voice-intake,
.voice-stock-editor,
.voice-matches {
  --voice-forest: #153e31;
  --voice-green: #315e47;
  --voice-line: #cbd8c8;
  --voice-muted: #53665a;
  min-width: 0;
  color: var(--voice-forest);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.voice-intake [hidden],
.voice-stock-editor [hidden],
.voice-matches [hidden] {
  display: none !important;
}
.voice-intake {
  padding: 24px;
  border: 1px solid var(--voice-line);
  border-radius: 20px;
  background: #f0f5ea;
  margin: 0 0 24px;
}
.request-voice {
  border: 1px solid #cbd8c8;
  border-radius: 14px;
  background: #f0f5ea;
  color: #153e31;
  margin: 0 0 18px;
  min-width: 0;
}
.request-voice > summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  cursor: pointer;
  padding: 13px 16px;
  min-height: 48px;
  list-style: none;
}
.request-voice > summary::-webkit-details-marker {
  display: none;
}
.request-voice > summary > span:first-child {
  font-weight: 650;
}
.request-voice > summary > span:last-child {
  color: #53665a;
  font-size: 14px;
}
.request-voice > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  line-height: 1;
}
.request-voice[open] > summary::after {
  content: "−";
}
.request-voice > summary:focus-visible {
  outline: 3px solid #6e9868;
  outline-offset: 3px;
  border-radius: 13px;
}
.request-voice > .voice-intake {
  border: 0;
  border-radius: 0 0 14px 14px;
  border-top: 1px solid #cbd8c8;
  padding: 18px 16px;
  margin: 0;
}
.request-voice .voice-intake-heading h2 {
  font-size: 20px;
}
.request-voice .voice-intake-heading p {
  font-size: 15px;
}
.request-voice .voice-intake-symbol {
  width: 38px;
  height: 38px;
}
.voice-intake-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.voice-intake-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #bdd0b7;
  border-radius: 50%;
  background: #e2edda;
  flex: none;
}
.voice-intake-heading h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
}
.voice-intake-heading p {
  margin: 0;
  color: var(--voice-muted);
  font-size: 16px;
}
.voice-intake :is(input, textarea, select, button),
.voice-stock-editor :is(input, textarea, select, button),
.voice-matches :is(input, textarea, select, button) {
  font-size: 16px;
  box-sizing: border-box;
}
.voice-intake button,
.voice-stock-editor button,
.voice-matches button,
.voice-matches .button {
  min-height: 44px;
  white-space: normal;
  line-height: 1.4;
}
.voice-input-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.voice-input-controls > button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: #fffdf7;
  border: 1px solid var(--voice-line);
  border-radius: 12px;
  padding: 10px 15px;
  color: var(--voice-forest);
}
.voice-input-controls > button[hidden] {
  display: none;
}
.voice-input-controls > [data-voice-stop] {
  background: #153e31;
  color: #f4f8ec;
  border-color: #153e31;
}
.voice-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--voice-line);
  border-radius: 12px;
  background: #fffdf7;
  min-height: 44px;
  padding: 10px 15px;
  cursor: pointer;
  overflow: hidden;
}
.voice-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  padding: 0;
}
.voice-upload:has(input:disabled) {
  opacity: 0.5;
  cursor: default;
}
.voice-upload:focus-within {
  outline: 3px solid #6e9868;
  outline-offset: 3px;
}
.voice-timer {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: #3c5f4b;
}
.voice-intake .voice-speaking-guide {
  margin: 0 0 18px;
  border: 1px solid var(--voice-line);
  border-radius: 14px;
  background: #fffdf7;
  overflow: hidden;
}
.voice-intake .voice-speaking-guide > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.voice-intake .voice-speaking-guide > summary::-webkit-details-marker {
  display: none;
}
.voice-intake .voice-speaking-guide > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.voice-intake .voice-speaking-guide[open] > summary::after {
  content: "−";
}
.voice-intake .voice-speaking-guide > summary:focus-visible {
  outline: 3px solid #6e9868;
  outline-offset: -3px;
  border-radius: 13px;
}
.voice-intake .voice-guide-count {
  color: var(--voice-muted);
  font-size: 14px;
  font-weight: 400;
}
.voice-intake .voice-guide-content {
  padding: 0 16px 16px;
}
.voice-intake .voice-guide-intro {
  margin: 0 0 16px;
  color: var(--voice-muted);
  font-size: 15px;
}
.voice-intake .voice-guide-prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: voice-prompt;
}
.voice-intake .voice-guide-prompts li {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  column-gap: 9px;
  align-content: start;
  margin: 0;
  counter-increment: voice-prompt;
  font-size: 15px;
  line-height: 1.5;
}
.voice-intake .voice-guide-prompts li::before {
  content: counter(voice-prompt);
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #e2edda;
  color: var(--voice-green);
  font-size: 13px;
  font-weight: 650;
}
.voice-intake .voice-guide-prompts strong {
  font-weight: 650;
}
.voice-intake .voice-guide-prompts span {
  color: var(--voice-muted);
}
.voice-intake .voice-guide-extra {
  margin: 16px 0 0;
  color: var(--voice-muted);
  font-size: 14px;
}
.voice-intake .voice-guide-next {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--voice-line);
  font-size: 14px;
}
.voice-audio-review {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.voice-audio-review[hidden] {
  display: none;
}
.voice-audio-review audio {
  width: min(100%, 360px);
  height: 44px;
}
.voice-audio-review button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  padding: 8px;
  color: var(--voice-forest);
}
.voice-text-label {
  display: grid;
  gap: 8px;
  font-weight: 650;
  margin: 0 0 16px;
}
.voice-text-label textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  background: #fffdf7;
  border: 1px solid var(--voice-line);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  font-weight: 400;
  color: var(--voice-forest);
  line-height: 1.6;
}
.voice-text-label textarea::placeholder {
  color: #67776a;
  opacity: 1;
}
.voice-stock-consent,
.voice-match-consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.55;
  margin: 16px 0;
  min-height: 44px;
  cursor: pointer;
}
.voice-stock-consent input,
.voice-match-consent input {
  width: 19px;
  height: 19px;
  min-height: 19px;
  flex: none;
  margin: 3px 0 0;
  accent-color: var(--voice-forest);
}
.voice-intake-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.voice-first-use {
  margin: 12px 0;
  color: var(--voice-muted);
  font-size: 14px;
  line-height: 1.5;
}
.voice-first-use[hidden] { display: none; }
.voice-processing-disclosure { margin-top: 10px; font-size: 14px; color: var(--voice-muted); }
.voice-processing-disclosure > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; width: fit-content; }
.voice-processing-disclosure > p { margin: 0 0 12px; line-height: 1.6; max-width: 70ch; }
.voice-processing-disclosure a { text-decoration: underline; text-underline-offset: 3px; }
.voice-intake .primary,
.voice-stock-editor .primary,
.voice-matches .primary {
  background: var(--voice-forest);
  border: 1px solid var(--voice-forest);
  color: #f4f8ec;
  border-radius: 12px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.voice-limits,
.voice-privacy {
  color: var(--voice-muted);
  font-size: 14px;
  line-height: 1.6;
}
.voice-privacy {
  margin: 14px 0 0;
  max-width: 70ch;
}
.voice-notice {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.55;
}
.voice-notice:empty {
  display: none;
}
.voice-notice.is-error {
  color: #963c2a;
}
.voice-draft-review {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--voice-line);
}
.voice-draft-review[hidden] {
  display: none;
}
.voice-draft-review h3 {
  font-size: 19px;
  margin: 0 0 10px;
}
.voice-draft-summary {
  white-space: pre-wrap;
  margin: 0 0 14px;
}
.voice-draft-gaps {
  font-size: 15px;
  margin: 14px 0;
}
.voice-draft-gaps ul {
  margin: 8px 0;
  padding-left: 22px;
}
.voice-draft-review > button {
  margin-top: 18px;
}
.voice-intake :is(button, input, textarea):focus-visible,
.voice-stock-editor :is(button, input, textarea, select):focus-visible,
.voice-matches :is(button, input, textarea, select, a):focus-visible {
  outline: 3px solid #6e9868;
  outline-offset: 3px;
}
.voice-intake :is(button, input, textarea):disabled,
.voice-stock-editor button:disabled,
.voice-matches button:disabled {
  opacity: 0.55;
  cursor: default;
}
.voice-stock-editor {
  max-width: 900px;
  margin: 24px 0;
}
.voice-stock-editor h2,
.voice-matches h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.voice-stock-items,
.voice-match-grid {
  display: grid;
  gap: 18px;
}
.voice-stock-item,
.voice-match-card,
.voice-stock-review-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--voice-line);
  border-radius: 18px;
  background: #fffdf7;
  margin: 0;
}
.voice-stock-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.voice-stock-title h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}
.voice-stock-title button {
  flex: none;
  padding: 8px 12px;
  border: 1px solid var(--voice-line);
  background: transparent;
  border-radius: 10px;
}
.voice-stock-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.voice-stock-fields label,
.voice-match-form label {
  display: grid;
  gap: 7px;
  font-weight: 650;
  min-width: 0;
  margin: 0;
}
.voice-stock-fields :is(input, textarea, select),
.voice-match-form :is(input, textarea, select) {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--voice-line);
  border-radius: 10px;
  background: #fff;
  padding: 11px 12px;
  color: var(--voice-forest);
  font: inherit;
  font-weight: 400;
}
.voice-stock-fields textarea,
.voice-match-form textarea {
  resize: vertical;
  line-height: 1.55;
}
.voice-stock-item details {
  margin-top: 18px;
}
.voice-stock-item summary,
.voice-matches summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 650;
  padding: 8px 0;
}
.voice-stock-item details > .voice-stock-fields {
  margin-top: 12px;
}
.voice-stock-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.voice-stock-footer button:not(.primary),
.voice-matches button:not(.primary) {
  padding: 10px 15px;
  border: 1px solid var(--voice-line);
  border-radius: 10px;
  background: #f0f5ea;
  color: var(--voice-forest);
}
.voice-stock-note {
  padding: 15px;
  border-radius: 12px;
  background: #edf4e6;
  margin: 16px 0;
  font-size: 15px;
}
.voice-stock-records {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.voice-stock-records h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.voice-stock-records p {
  margin: 8px 0;
}
.voice-match-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.voice-match-tabs a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--voice-line);
  border-radius: 10px;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--voice-forest);
  background: #f0f5ea;
}
.voice-match-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 30px;
}
.voice-match-card h3,
.voice-stock-review-card h3 {
  font-size: 21px;
  line-height: 1.3;
  margin: 14px 0 10px;
}
.voice-match-badge {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 12px;
  background: #e2edda;
  color: #315c43;
  font-size: 14px;
  line-height: 1.4;
}
.voice-match-badge.is-pending {
  background: #f0eddf;
  color: #705a2e;
}
.voice-match-card p {
  margin: 10px 0;
}
.voice-match-card .voice-match-price {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 16px 0 4px;
}
.voice-match-card .voice-match-meta {
  color: var(--voice-muted);
  font-size: 14px;
}
.voice-match-facts {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}
.voice-match-facts div {
  min-width: 0;
}
.voice-match-facts dt {
  color: var(--voice-muted);
  font-size: 14px;
  margin-bottom: 3px;
}
.voice-match-facts dd {
  margin: 0;
  white-space: pre-wrap;
}
.voice-match-form {
  display: grid;
  gap: 14px;
  margin: 14px 0 0;
}
.voice-match-form .voice-match-consent {
  display: flex;
  font-weight: 400;
  margin: 0;
}
.voice-match-note {
  font-size: 15px;
  color: var(--voice-muted);
  line-height: 1.6;
}
.voice-match-empty {
  padding: 24px;
  border: 1px dashed var(--voice-line);
  border-radius: 16px;
  background: #f6f8f1;
  margin: 18px 0 28px;
}
.voice-match-empty p {
  margin: 0;
}
.voice-match-card ul {
  padding-left: 22px;
  margin: 12px 0;
}
.voice-match-card [role="status"],
.voice-stock-editor [role="status"],
.voice-stock-review-card [role="status"] {
  font-size: 15px;
  line-height: 1.55;
  color: #963c2a;
}
.voice-match-card [role="status"]:empty,
.voice-stock-review-card [role="status"]:empty {
  display: none;
}
.voice-matches details > dl {
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .voice-intake {
    padding: 20px 17px;
    border-radius: 18px;
  }
  .voice-intake-heading {
    gap: 11px;
  }
  .voice-intake-heading h2 {
    font-size: 22px;
  }
  .voice-intake-symbol {
    width: 40px;
    height: 40px;
  }
  .voice-input-controls {
    gap: 8px;
  }
  .voice-input-controls > button,
  .voice-upload {
    flex: 1 1 auto;
    padding: 10px 12px;
  }
  .voice-timer {
    flex: 1 1 100%;
    text-align: center;
  }
  .voice-intake .voice-guide-prompts {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .voice-intake-actions {
    gap: 10px;
  }
  .voice-intake-actions .primary {
    width: 100%;
  }
  .voice-stock-fields,
  .voice-match-grid {
    grid-template-columns: 1fr;
  }
  .voice-stock-item,
  .voice-match-card,
  .voice-stock-review-card {
    padding: 20px 17px;
    border-radius: 16px;
  }
  .voice-stock-footer {
    align-items: stretch;
  }
  .voice-stock-footer button {
    flex: 1 1 100%;
  }
  .voice-stock-title {
    align-items: flex-start;
  }
  .voice-match-tabs a {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }
  .voice-match-form button {
    width: 100%;
  }
  .voice-matches h2,
  .voice-stock-editor h2 {
    font-size: 23px;
  }
  .voice-match-card .voice-match-price {
    font-size: 23px;
  }
  .voice-privacy,
  .voice-limits {
    font-size: 14px;
  }
  .voice-match-note {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .voice-intake *,
  .voice-stock-editor *,
  .voice-matches * {
    scroll-behavior: auto;
  }
}

/* A clearly actionable voice entry, without expanding every form. */
.request-voice { border: 1px solid #93b19a; background: #e9f2e5; box-shadow: 0 3px 12px #153e3108; }
.request-voice > summary { flex-wrap: nowrap; gap: 13px; padding: 17px; min-height: 80px; }
.request-voice > summary > .request-voice-mic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: #153e31; color: #f4f8ec; }
.request-voice > summary > .request-voice-copy { display: grid; gap: 3px; flex: 1; min-width: 0; color: #153e31; font-size: 16px; }
.request-voice-copy strong { font-size: 17px; line-height: 1.35; font-weight: 700; }
.request-voice-copy > span { font-size: 14px; line-height: 1.45; color: #435d4b; }
.request-voice > summary::after { content: "⌄"; flex: none; font-size: 25px; margin-left: 0; }
.request-voice[open] > summary::after { content: "⌃"; }
.request-voice > summary:hover { background: #e0eddc; border-radius: 14px; }
.voice-input-controls > [data-voice-record] { background: #153e31; border-color: #153e31; color: #f4f8ec; font-weight: 650; }
.voice-input-controls > [data-voice-record]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c8e6ad; flex: none; }
@media(max-width:640px){ .request-voice > summary { padding: 15px 13px; gap: 10px; } .request-voice-copy strong { font-size: 16px; } .request-voice > summary > .request-voice-mic { width: 42px; height: 42px; } }
