.coach-chat{font-family:Arial,Helvetica,sans-serif;color:#203326;position:relative;z-index:20}
.coach-chat [hidden]{display:none!important}
.chat-launcher{position:fixed;right:24px;bottom:24px;display:flex;align-items:center;gap:12px;min-height:52px;padding:14px 21px;border:1px solid #d5ffe2;border-radius:30px;background:#bbf5ce;color:#183820;font:700 14px Arial,sans-serif;box-shadow:0 8px 28px #0004;cursor:pointer}
.chat-launcher span{font-size:23px}
.coach-chat dialog{position:fixed;inset:auto 24px 24px auto;margin:0;padding:0;width:420px;max-width:calc(100% - 24px);max-height:calc(100dvh - 32px);border:1px solid #7f9a83;border-radius:16px;background:#f6f8f0;color:#203326;box-shadow:0 20px 70px #0005;overflow:hidden}
.coach-chat dialog::backdrop{background:#08171055}
.chat-shell{display:flex;flex-direction:column;height:min(740px,calc(100dvh - 34px));min-height:0;overflow:auto}
.chat-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#203d2c;padding:20px;color:#f1f6ea;flex-shrink:0}
.chat-heading h2{font-size:22px;letter-spacing:-.5px;margin:0 0 5px}
.chat-heading p{font-size:11px;line-height:1.5;color:#c6dacb;margin:0}
.chat-close{width:38px;height:38px;border:1px solid #6d9375;background:transparent;color:#f1f6ea;border-radius:50%;font-size:26px;cursor:pointer}
.chat-mode{font-size:11px;padding:10px 20px;background:#e0ebdc;line-height:1.4;flex-shrink:0}
.chat-scroll{flex:1;min-height:100px;overflow:auto;overscroll-behavior:contain;padding:18px 18px 10px}
.chat-welcome{font-size:14px;line-height:1.6;margin:0 0 8px}
.chat-tip{font-size:11px;line-height:1.5;color:#576d5b;margin:0 0 14px}
.chat-suggestions{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:18px}
.chat-suggestions button{border:1px solid #a8bda8;border-radius:14px;padding:10px 12px;font-size:12px;line-height:1.4;background:#fffef9;color:#294b33;cursor:pointer;text-align:left}
.chat-suggestions button:hover{background:#d8efdc;border-color:#597e60}
.chat-message{max-width:94%;border-radius:12px;padding:12px 14px;margin:12px 0;background:#e4edde;overflow-wrap:anywhere}
.chat-message-user{background:#294b36;color:#f1f7eb;margin-left:auto}
.chat-message-label{display:block;font-size:9px;letter-spacing:.3px;opacity:.8;margin-bottom:5px}
.chat-message p{font-size:13px;line-height:1.65;white-space:pre-wrap;margin:0}
.chat-message a{display:inline-block;font-size:11px;text-decoration:underline;text-underline-offset:3px;line-height:1.7;margin-top:10px}
.chat-connect{padding:10px 18px;border-top:1px solid #c8d5c5;background:#edf1e6}
.chat-connect p{font-size:10px;line-height:1.5;margin:0 0 8px}
.chat-enable{padding:9px 13px;border:0;border-radius:5px;background:#264b33;color:#fff;font-size:12px;cursor:pointer}
.chat-verification{padding-inline:18px;flex-shrink:0}
.coach-chat .chat-form{background:transparent;padding:10px 18px 0;border-radius:0;flex-shrink:0}
.coach-chat .chat-form label{font-size:11px;font-weight:500;margin:0 0 5px}
.chat-input-row{display:flex;gap:8px;align-items:stretch}
.coach-chat .chat-form textarea{margin:0;min-width:0;min-height:58px;max-height:90px;resize:none;font-size:13px;padding:10px;border-color:#aec1ae;border-radius:8px;background:#fffef9;color:#213c29}
.chat-send{width:44px;flex-shrink:0;border:0;border-radius:8px;background:#294b36;color:#fff;font-size:25px;cursor:pointer}
.coach-chat button:disabled{opacity:.5;cursor:not-allowed}
.chat-status{font-size:10px;line-height:1.5;padding:0 18px;margin:7px 0;min-height:15px;color:#466249;flex-shrink:0}
.chat-bottom{padding:6px 18px 10px;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-shrink:0}
.chat-handoff{font-size:12px;font-weight:bold;text-decoration:underline;text-underline-offset:3px}
.chat-clear{border:0;background:transparent;color:#526955;font-size:10px;text-decoration:underline;padding:6px 0;cursor:pointer}
.chat-disclaimer{font-size:9px;line-height:1.5;padding:0 18px 12px;margin:0;color:#5a6b59;flex-shrink:0}
@media(max-width:480px){.chat-launcher{right:14px;bottom:14px;padding:12px 17px;font-size:12px}.coach-chat dialog{inset:auto 12px 12px auto;width:calc(100% - 24px)}.chat-heading{padding:15px 18px}.chat-heading h2{font-size:20px}.chat-shell{height:calc(100dvh - 26px)}.chat-bottom{gap:8px}.chat-scroll{min-height:70px}}
