:root{--bg: #f7f5f2;--ink: #1f2933;--muted: #5c6b7a;--card: #ffffff;--accent: #0b5d8a;--client: #0b5d8a;--agent: #eef2f6;--line: #d8dee5;color-scheme:light dark}@media(prefers-color-scheme:dark){:root{--bg: #11181f;--ink: #e8eef5;--muted: #a4b3c2;--card: #172029;--accent: #4fa8d8;--client: #1f5f85;--agent: #1d2731;--line: #2b3742}}*{box-sizing:border-box}html,body{height:100%}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}.layout{display:grid;grid-template-columns:minmax(0,1fr) 20rem;gap:1.5rem;max-width:74rem;margin:0 auto;padding:1.5rem 1rem;align-items:start;height:100vh}.chat-column{display:flex;flex-direction:column;gap:.85rem;min-width:0;height:100%;min-height:0}header{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex:0 0 auto}h1{font-size:1.2rem;margin:0}h2{font-size:.95rem;margin:0;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.card{background:var(--card);border:1px solid var(--line);border-radius:.75rem;padding:1rem}.consent{max-width:34rem}.consent p{margin:0 0 1rem;color:var(--muted)}.chat{flex:1 1 auto;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:.5rem;padding:.25rem .25rem .25rem 0;scroll-behavior:smooth}.messages{display:flex;flex-direction:column;gap:.5rem}.bubble{padding:.65rem .9rem;border-radius:.9rem;max-width:85%;white-space:pre-wrap}.bubble.client{align-self:flex-end;background:var(--client);color:#fff}.bubble.agent{align-self:flex-start;background:var(--agent)}.thinking{color:var(--muted);font-style:italic;margin:0}.composer{display:flex;gap:.5rem;flex:0 0 auto}.composer input{flex:1;padding:.7rem .9rem;border-radius:.6rem;border:1px solid var(--line);background:var(--card);color:inherit;font:inherit}button{font:inherit;cursor:pointer}.primary{background:var(--accent);color:#fff;border:none;border-radius:.6rem;padding:.7rem 1.1rem}.primary:disabled{opacity:.5;cursor:not-allowed}.link{background:none;border:none;color:var(--accent);text-decoration:underline}.notice{margin:0;padding:.6rem .9rem;border-left:3px solid var(--accent);background:var(--agent);border-radius:.4rem;flex:0 0 auto}.choices{display:flex;flex-direction:column;gap:.4rem;flex:0 0 auto}.choices-hint{margin:0;color:var(--muted);font-size:.85rem}.choice-row{display:flex;flex-wrap:wrap;gap:.5rem}.choice{padding:.6rem 1rem;border-radius:999px;border:1px solid var(--accent);background:var(--card);color:var(--accent);font:inherit;cursor:pointer;transition:background-color .12s ease,color .12s ease}.choice:hover:not(:disabled),.choice:focus-visible{background:var(--accent);color:#fff}.choice:disabled{opacity:.5;cursor:not-allowed}.choice-other{border-style:dashed;border-color:var(--line);color:var(--muted)}.progress-column{position:sticky;top:1.5rem;max-height:calc(100vh - 3rem);overflow-y:auto}.panel{background:var(--card);border:1px solid var(--line);border-radius:.75rem;padding:1rem;display:flex;flex-direction:column;gap:.6rem;font-size:.9rem}.panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}.pct{font-size:1.15rem;font-weight:600;color:var(--accent)}.screening{margin:0;color:var(--muted)}.topics{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.3rem}.topics li{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;padding-bottom:.25rem;border-bottom:1px solid var(--line)}.topics li:last-child{border-bottom:none}.topics li[data-status=confirmed] .topic-name,.topics li[data-status=covered] .topic-name{color:var(--muted)}.topic-name{min-width:0;overflow-wrap:anywhere}.topic-count{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}.topic-state{display:none}.muted{margin:0;color:var(--muted);font-size:.8rem}.deposit{display:inline-block;font-weight:600;color:var(--accent);text-decoration:none}.hint{margin:0;color:var(--muted);font-size:.8rem}.reset{margin-top:.4rem;align-self:flex-start;background:none;border:none;padding:0;color:var(--muted);font-size:.8rem;text-decoration:underline}.reset:hover:not(:disabled){color:var(--accent)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.header-actions{display:flex;align-items:center;gap:.75rem}.voice-start:disabled{opacity:.5;cursor:not-allowed}.voice-bar{display:flex;align-items:center;gap:.6rem;padding:.6rem .8rem;border:1px solid var(--line);border-radius:.6rem;background:var(--card);font-size:.9rem}.voice-state{font-weight:600;white-space:nowrap}.voice-caption{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.voice-pulse{width:.6rem;height:.6rem;flex:none;border-radius:50%;background:var(--muted)}.voice-pulse.listening{background:var(--accent);animation:voice-pulse 1.6s ease-in-out infinite}.voice-pulse.speaking{background:var(--accent);animation:voice-pulse .8s ease-in-out infinite}@keyframes voice-pulse{0%,to{opacity:.35}50%{opacity:1}}@media(prefers-reduced-motion:reduce){.voice-pulse.listening,.voice-pulse.speaking{animation:none;opacity:.8}}@media(max-width:60rem){.layout{grid-template-columns:minmax(0,1fr);height:auto;min-height:100vh}.chat-column{height:auto;min-height:60vh}.chat{max-height:60vh}.progress-column{position:static;max-height:none;overflow:visible}}
