/* Doors 1 and 2: request form, voice note, "what we understood". Shares the tokens and field styles of site.css. */
form.intake{max-width:760px}
form.intake fieldset{border:1px solid var(--line);border-radius:var(--r);background:var(--surface);margin:0 0 16px;padding:8px 16px 12px;min-width:0}
form.intake legend{font-weight:700;padding:0 6px;color:var(--navy)}
.fgrid.three{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
.opts{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.opt{display:inline-flex;align-items:center;gap:8px;border:1px solid #CDBFA9;border-radius:999px;padding:10px 16px;min-height:44px;background:#fff;cursor:pointer}
.opt:has(input:checked){border-color:var(--navy);background:var(--amber-bg);font-weight:600}
.opt input{width:20px;height:20px;accent-color:var(--orange)}
.opts.bad .opt{border-color:var(--red)}
.field .lbl{font-weight:600;font-size:15px}
.field .hint{color:var(--muted);font-size:13px}
.field.bad input,.field.bad select,.field.bad textarea{border-color:var(--red);background:var(--err-bg)}
.fmsg{margin:2px 0 0;color:#8A1424;font-size:14px;font-weight:600}
.consent.bad{outline:2px solid var(--red);outline-offset:4px;border-radius:6px}
input[data-check],input.check{border-color:var(--orange);box-shadow:0 0 0 3px var(--amber-bg)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
details.more{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:8px 16px 12px;margin:0 0 16px}
details.more summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}
.btn.small{min-height:36px;padding:4px 14px;font-size:14px;margin-top:6px;align-self:flex-start}
.ai{margin:8px 0}
/* voice note */
.card{margin:0 0 16px}
.recrow{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0}
.time{font-variant-numeric:tabular-nums;font-size:20px;font-weight:700;min-width:96px}
meter{width:140px;height:14px}
audio{width:100%;max-width:420px;margin:8px 0}
.status{min-height:1.5em;color:var(--navy);font-weight:600}
.status.busy::before{content:'';display:inline-block;width:.9em;height:.9em;margin-right:.5em;vertical-align:-.1em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:tmspin .8s linear infinite}
@keyframes tmspin{to{transform:rotate(360deg)}}
.warn{background:var(--amber-bg);color:var(--amber-ink);border-radius:8px;padding:10px 12px;margin:10px 0}
/* what we understood */
.understood{border-left:4px solid var(--orange);max-width:760px}
.heard{background:#FFFBF4;border:1px dashed #E9C48B;border-radius:8px;padding:10px 12px;margin:8px 0;font-size:17px}
.heard mark{background:#FFE2A8;color:inherit;border-radius:3px;padding:0 2px}
ul.slots{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
ul.slots li{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;border-radius:8px;padding:6px 10px;background:#fff;border:1px solid var(--line)}
ul.slots .k{color:var(--muted);font-size:14px;min-width:96px}
ul.slots li.chk{border-color:var(--orange);background:var(--amber-bg)}
ul.slots .tag{font-size:12px;font-weight:700;border-radius:999px;padding:1px 8px;background:var(--ok-bg);color:var(--ok-ink)}
ul.slots li.chk .tag{background:var(--orange);color:var(--navy)}
ul.slots em{color:var(--muted);font-size:14px}
/* success */
.ref{font-size:1.15em;letter-spacing:.04em;background:var(--ok-bg);color:var(--ok-ink);padding:2px 10px;border-radius:6px}
ol.next{max-width:60ch;padding-left:22px}ol.next li{margin:10px 0}
#result form.intake,#result .understood{max-width:none}
/* v0.3.8: required (red asterisk) and optional marks, the one-line legend */
.req{color:var(--red);font-weight:700}
.optm{color:var(--muted);font-weight:400;font-size:13px}
.legend-note{margin:4px 0 12px;color:var(--muted);font-size:14px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
