:root{font-family:Segoe UI,Arial,sans-serif;color:#243d3b;background:#f4f6f2;font-size:19px;line-height:1.6;--green:#285f53}*{box-sizing:border-box}body{margin:0}header{max-width:1260px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:30px 32px}.brand{display:flex;align-items:center;gap:14px}.brand small{display:block;color:#617571;font-size:.75rem}.mark{background:var(--green);color:white;width:46px;height:46px;display:grid;place-items:center;border-radius:16px;font-family:Georgia;font-size:30px}main{max-width:1200px;margin:25px auto;padding:0 24px}h1,h2,p{margin-top:0}h1{font-family:Georgia,serif;font-weight:400;font-size:2.3rem;line-height:1.2}h2{font-size:1.15rem}.card{background:white;border:1px solid #dae3db;border-radius:22px;padding:32px;box-shadow:0 5px 20px #244b3910}#welcome{max-width:820px;margin:30px auto}#welcome h1{max-width:560px}.eyebrow{font-size:.7rem;letter-spacing:.14em;color:#5b746b;font-weight:700}.notice{background:#eef4ef;padding:22px;border-radius:12px;margin:26px 0}.notice p{margin-bottom:0}.consent{display:flex;gap:12px;margin:24px 0;font-size:.85rem}input[type=checkbox]{width:24px;height:24px;flex-shrink:0}button{font:inherit;font-size:.85rem;padding:13px 20px;border:1px solid transparent;border-radius:10px;background:var(--green);color:white;cursor:pointer;min-height:48px}button:hover{filter:brightness(.93)}button:disabled{opacity:.5;cursor:wait}.secondary{background:#eaf0eb;color:#254c40;border-color:#bdcec2}.quiet{background:transparent;color:var(--green)}button:focus-visible,textarea:focus-visible,input:focus-visible{outline:3px solid #c48c2f;outline-offset:3px}.progress-head,.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-head h1{font-size:1.7rem;margin:0}progress{width:100%;height:8px;accent-color:var(--green);display:block;margin:10px 0 26px}.layout{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}.conversation{margin-bottom:18px}#history{max-height:510px;overflow:auto;padding-top:28px}.message{white-space:pre-wrap;padding:18px 22px;border-radius:14px;margin-bottom:14px;background:#eff4ef}.message.user{background:#285f53;color:white;margin-left:40px}.message small{display:block;font-size:.65rem;opacity:.75;margin-bottom:7px}.composer label{display:block;font-weight:600;margin-bottom:10px}textarea{width:100%;font:inherit;resize:vertical;border:1px solid #b5c8bd;border-radius:12px;padding:16px;color:inherit;background:#fdfefc}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}aside{align-self:start}aside p{font-size:.8rem;color:#617571}.answer-row{border-top:1px solid #e1e8e2;padding:12px 0;font-size:.78rem;overflow-wrap:anywhere}.answer-row button{padding:6px 0;min-height:42px}.answer-row span{display:block}.prototype,#draft,#status{font-size:.8rem;color:#627269}#error{color:#a33726}footer{text-align:center;font-size:.7rem;color:#6c7d74;padding:32px}[hidden]{display:none!important}html[data-text-size="large"]{font-size:23px}html[data-text-size="largest"]{font-size:27px}@media(max-width:850px){.layout{grid-template-columns:1fr}.card{padding:22px}header{padding:20px}h1{font-size:1.9rem}main{padding:0 14px}.brand small{max-width:190px}.section-head{flex-wrap:wrap}.message.user{margin-left:16px}}

#counter,.question-number{font-size:1.65rem;font-weight:700;line-height:1.25;margin:0 0 8px}#completed,.question-completed{font-size:.8rem;color:#617571;margin:0 0 14px}.message .question-number{font-size:1.65rem;opacity:1}.message .question-completed{white-space:normal}.layout{max-width:920px;margin:auto}.progress-head{align-items:flex-start}


header,main{width:100%;max-width:1600px}header{flex-wrap:wrap;gap:16px}.brand{min-width:0}main{padding:0 clamp(14px,2vw,32px)}.layout{max-width:none;width:100%}#welcome{max-width:1100px}#welcome h1{max-width:none}.card{min-width:0;padding:clamp(16px,2.4vw,36px)}.message{max-width:85ch;overflow-wrap:anywhere}.message.user{margin-left:auto;max-width:78ch}button{display:inline-flex;align-items:center;justify-content:center;gap:.45em;max-width:100%;white-space:normal;overflow-wrap:anywhere}.button-icon{width:1.2em;height:1.2em;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.recording{color:#a33726;border-color:#a33726}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}textarea{min-width:0;max-width:100%}.brand strong{overflow-wrap:anywhere}@media(max-width:600px){header{padding:16px 14px}.brand{width:100%}h1{font-size:1.6rem}.actions button{flex:1 1 12rem}.message{padding:14px}.message.user{margin-left:12px}.progress-head{flex-wrap:wrap}#welcome{margin:12px auto}.consent{align-items:flex-start}.card{border-radius:16px}}

.composer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}.composer-head label{margin-bottom:0}.message-playback{float:right;margin:0 0 8px 12px;padding:6px 10px;font-size:.75rem}.message-text{clear:both;white-space:pre-wrap;margin:0}.message:after{content:"";display:block;clear:both}.speaking{background:#dceade;color:#244c40;border-color:#85a68e}@media(max-width:600px){.composer-head .playback{width:100%}.message-playback{float:none;margin:0 0 10px;padding:8px 10px}}

/* Four actions keep a shared shape and distinct descending green fills. */
#send{background:#285f53;color:#fff;border-color:#285f53}
#record{background:#a8ccba;color:#193d32;border-color:#789e89}
#explain{background:#d1e4d8;color:#193d32;border-color:#8eae9b}
#decline{background:#edf5ef;color:#193d32;border-color:#9cb7a7}
#record.recording{color:#8e241b;border-color:#a33726}
.actions button{padding:13px 20px;min-height:48px}
