:root{--green:#1F4D3A;--dark:#163A2B;--sage:#EEF4EF;--gold:#F2B544;--ink:#1D2A24;--line:#9DB5A6}
*{box-sizing:border-box}
body{margin:0;font-family:'DM Sans',system-ui,-apple-system,sans-serif;font-size:19px;line-height:1.55;color:var(--ink);background:var(--sage)}
.top{background:var(--dark);padding:16px 24px;display:flex;justify-content:space-between;align-items:center}
.logo{font-weight:800;font-size:28px;letter-spacing:-.02em}.logo .w{color:#fff}.logo .y{color:var(--gold)}
main{max-width:640px;margin:0 auto;padding:32px 20px 64px}
.card{background:#fff;border-radius:24px;padding:28px;display:flex;flex-direction:column;gap:16px}
h1{margin:0;font-size:32px;line-height:1.15;color:var(--dark)}
p{margin:0}
form{display:flex;flex-direction:column;gap:18px}
label{display:flex;flex-direction:column;gap:6px;font-weight:700}
input[type=email],input[type=text],textarea{font:inherit;font-weight:400;padding:12px 14px;border:2px solid var(--line);border-radius:12px;background:#fff}
input:focus,textarea:focus,button:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
legend{font-weight:700;padding:0 0 6px}
.checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:4px 16px}
label.check{flex-direction:row;align-items:center;gap:10px;font-weight:400;min-height:44px}
label.check input{width:22px;height:22px;accent-color:var(--green)}
.conduct ul{margin:0;padding-left:22px}
.btn{font:inherit;font-weight:700;background:var(--gold);color:var(--ink);border:0;border-radius:999px;padding:14px 26px;cursor:pointer;min-height:48px}
.btn.secondary{background:transparent;border:2px solid var(--green);color:var(--green);align-self:flex-start}
.btn[disabled]{opacity:.6;cursor:wait}
.link{background:none;border:0;color:#fff;font:inherit;text-decoration:underline;cursor:pointer;min-height:44px;padding:0}
.link.dark{color:var(--green)}
.note{background:var(--sage);border-radius:12px;padding:12px 14px}
.note.error{background:#fbebeb}
.muted{color:#3F5249}
.help{margin-top:20px;font-size:16px;color:#3F5249;text-align:center}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- Chat ---------- */
main:has(.chat){max-width:760px}
.chat-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.chat-head h1{font-size:28px}
.btn.video{background:var(--green);color:#fff}
.messages{list-style:none;margin:0;padding:16px;display:flex;flex-direction:column;gap:10px;background:var(--sage);border-radius:16px;height:52vh;min-height:280px;overflow-y:auto}
.messages .empty{color:#3F5249;text-align:center;margin:auto}
.msg{max-width:80%;padding:10px 14px;border-radius:18px;background:#fff;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere}
.msg.mine{background:var(--green);color:#fff;align-self:flex-end}
.msg .when{display:block;font-size:14px;opacity:.75;margin-top:2px}
.day{align-self:center;font-size:15px;color:#3F5249;font-weight:700;margin-top:6px}
.send{flex-direction:row;align-items:flex-end;gap:10px}
.send textarea{flex:1;resize:vertical;min-height:56px}
.chat-foot{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;border-top:1px solid #dfe8e2;padding-top:12px}
.report summary{cursor:pointer;color:#8a2b2b;text-decoration:underline;min-height:44px;display:flex;align-items:center}
.report form{margin-top:10px}
.end-box{display:flex;flex-direction:column;gap:12px;margin-top:10px;max-width:420px}
.end-actions{display:flex;gap:10px;flex-wrap:wrap}
.btn.danger{background:#8a2b2b;color:#fff}
.video-panel{display:flex;flex-direction:column;gap:12px}
.video-panel iframe{width:100%;height:60vh;min-height:360px;border:0;border-radius:16px;background:#000}
