:root{--green:#125942;--dark:#103e33;--muted:#64748b;--border:#dce5df}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8bd4ab;outline-offset:2px}.topbar{background:var(--dark);padding:14px clamp(16px,3vw,42px);display:flex;align-items:center;justify-content:space-between;gap:12px}.brandmark{height:54px;width:54px;border-radius:17px;display:grid;place-items:center;background:var(--green);color:white;flex-shrink:0}.brandmark.small{width:42px;height:42px;background:#ffffff18;border-radius:13px}.brandmark.light{background:#e6f3eb;color:var(--green);height:44px;width:44px}.brandmark svg{width:25px;height:25px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.13em;color:var(--green)}.primary,.secondary,.ghost{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;padding:11px 15px;font-weight:700;font-size:14px;min-height:43px;transition:background .15s}.primary{background:var(--green);color:white;border:1px solid var(--green)}.primary:hover:not(:disabled){background:#0d4634}.secondary{background:white;border:1px solid var(--border);color:var(--dark)}.secondary:hover:not(:disabled){background:#edf5ef}.ghost{background:#ffffff10;color:white;border:1px solid #ffffff30}.primary svg,.secondary svg,.ghost svg{width:17px;height:17px}.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:#34463e}.field input,.field select,.composer textarea{background:white;border:1px solid #d4dfd7;border-radius:11px;padding:11px 12px;color:#172d24;width:100%;font-size:14px}.panel{background:white;border:1px solid var(--border);border-radius:20px;box-shadow:0 4px 18px #1a382a08;min-width:0}.avatar{height:42px;width:42px;background:#e7f3ed;border-radius:50%;display:grid;place-items:center;color:var(--green);flex-shrink:0}.avatar svg{width:20px}.pill{font-size:12px;font-weight:700;background:#e8f3eb;color:var(--green);border-radius:99px;padding:7px 12px;white-space:nowrap}.context{background:#f2f7f3;margin:12px 14px 0;border:1px solid #e0eae1;border-radius:10px;padding:10px 12px;font-size:12px;line-height:1.6;color:#465c4f}.messages{height:clamp(310px,47vh,580px);overflow-y:auto;padding:20px 15px;display:flex;flex-direction:column;gap:14px;background:#fafcfb}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;flex:1;color:var(--muted);min-height:200px;padding:25px}.empty.compact{min-height:280px}.empty svg{width:38px;height:38px;color:#8baa98;stroke-width:1.4}.empty h3{font-weight:700;color:#34483d}.empty p{font-size:13px;max-width:270px}.bubblewrap{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.bubblewrap.admin{align-items:flex-end}.bubble{max-width:88%;padding:12px 15px;background:#fff;border:1px solid #dce5df;border-radius:5px 16px 16px 16px;font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.admin .bubble{background:#dcefe2;border-color:#cde4d4;border-radius:16px 5px 16px 16px}.bubblemeta{font-size:10px;color:#64748b;font-weight:700}.composer{padding:14px;border-top:1px solid var(--border)}.composer textarea{resize:vertical;min-height:80px;max-height:220px}.notice{padding:12px 14px;background:#fff5df;border:1px solid #ead7ad;color:#78510c;border-radius:11px;font-size:13px}.scorebox{background:#eff7f1;border:1px solid #d9eadc;border-radius:15px;padding:15px;margin:18px 0;display:flex;align-items:center;gap:15px}.score{font-size:38px;font-weight:800;line-height:1;color:var(--green)}.bar{height:7px;border-radius:6px;background:#edf1ee;overflow:hidden}.bar span{display:block;height:100%;background:#21875c;border-radius:6px}.coachsection{padding:13px 0;border-top:1px solid #e4eae5}.coachsection h3{font-size:13px;font-weight:800;color:#34483d;margin-bottom:7px}.coachsection p,.coachsection li{font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.coachsection ul{list-style:disc;padding-left:20px}.ideal{background:#f0f7f2;border:1px solid #d7e8dc;border-radius:12px;padding:12px}.dialog{padding:24px;width:min(650px,94vw);max-height:85vh;overflow:auto;margin:auto}.dialog::backdrop{background:#0b211ab0}.historyrow{padding:12px 0;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:12px}.historyrow p{font-size:12px;color:var(--muted)}.finished{padding:10px 13px;border-radius:10px;background:#e8f3eb;color:var(--green);font-weight:700;font-size:13px;margin-top:12px}.typing{padding:10px 0;color:var(--muted);font-size:13px;animation:pulse 1.2s ease-in-out infinite}@keyframes pulse{50%{opacity:.45}}@media(max-width:640px){.bubble{max-width:94%}.primary,.secondary{padding:10px 12px;font-size:13px}.messages{height:380px}.dialog{padding:16px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
