.chat-preview-page{height:100vh;height:100dvh;overflow:hidden}
.chat-preview-banner{height:52px;padding:10px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#e5d6bf;border-bottom:1px solid var(--line);font-size:12px;position:relative;z-index:2}
.chat-preview-banner a{white-space:nowrap;font-size:11px;text-underline-offset:4px}
.chat-preview-site{display:block;border:0;width:100%;height:calc(100vh - 52px);height:calc(100dvh - 52px)}
.chat-launcher{position:fixed;right:28px;bottom:22px;z-index:50;display:flex;align-items:center;gap:11px;min-height:54px;padding:13px 20px;border-radius:32px;background:var(--green);color:#fff;font-size:14px;box-shadow:0 5px 24px #283b322b;border:1px solid #ffffff30}
.chat-launcher:hover{background:#354c34}
.chat-launcher svg{width:23px;height:23px}
.practice-chat{position:fixed;z-index:51;right:28px;bottom:92px;width:394px;max-width:calc(100% - 32px);height:min(694px,calc(100dvh - 162px));min-height:360px;display:flex;flex-direction:column;overflow:hidden;border:1px solid #c9bea9;border-radius:18px;background:var(--warm-surface);box-shadow:0 18px 60px #283b3233;font-size:14px;line-height:1.55}
.practice-chat[hidden]{display:none}
.chat-header{display:flex;align-items:center;gap:12px;padding:20px;background:var(--green);color:#fff;flex-shrink:0}
.chat-avatar{background:#fbf6ec;border-radius:50%;width:46px;height:46px;display:grid;place-items:center;flex-shrink:0}
.chat-avatar img{width:24px;height:32px;object-fit:contain}
.chat-header h1{font:400 25px/1.12 var(--serif);letter-spacing:-.5px;margin:0 0 5px}
.chat-header p{margin:0;font-size:11px;color:#e7eadf}
.chat-header button{margin-left:auto;min-width:40px;min-height:40px;color:#fff;border-radius:50%;font-size:29px;line-height:1}
.chat-header button:hover{background:#ffffff16}
.chat-preview-status{margin:0;padding:11px 18px;background:#eee1cc;color:#52604f;font-size:11px;border-bottom:1px solid var(--line);flex-shrink:0}
.chat-preview-status>span{font-size:9px;font-weight:700;letter-spacing:1px;display:block;margin-bottom:3px;color:#655334}
.chat-log{padding:20px 18px 12px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:100px;scroll-behavior:smooth}
.chat-message{max-width:95%;padding:14px 16px;margin-bottom:13px;border-radius:14px;font-size:13px;overflow-wrap:anywhere}
.chat-message.assistant{border:1px solid var(--line);background:#f1e8da;border-top-left-radius:4px}
.chat-message.user{margin-left:auto;background:var(--green);color:#fff;border-bottom-right-radius:4px}
.chat-message-name{display:block;font-size:10px;font-weight:600;color:var(--muted);margin-bottom:6px}
.chat-message.user .chat-message-name{color:#e0e8db}
.chat-message p{margin:0 0 10px}
.chat-message p:last-child{margin-bottom:0}
.chat-message a{display:inline-block;color:var(--green);font-weight:600;text-underline-offset:4px;margin-top:5px;min-height:26px}
.chat-examples{display:flex;flex-wrap:wrap;gap:7px;padding:8px 18px 16px;flex-shrink:0}
.chat-examples button{min-height:40px;text-align:left;padding:8px 12px;border:1px solid #a8ad96;border-radius:18px;font-size:11px;background:#fbf6ec;color:#384f35}
.chat-examples button:hover{background:#e8ddcc}
.chat-composer{padding:14px 18px 9px;border-top:1px solid var(--line);flex-shrink:0;background:#fcf8f0}
.chat-composer label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.chat-composer>div{display:flex;align-items:center;border:1px solid #d2c7b4;border-radius:25px;background:#f1ebe1;padding:3px 4px 3px 14px}
.chat-composer input{width:100%;min-width:0;min-height:38px;border:0;background:none;font-size:16px;color:#657067;opacity:1;-webkit-text-fill-color:#657067}
.chat-composer input::placeholder{color:#657067;opacity:1}
.chat-composer button{border-radius:50%;width:36px;min-width:36px;height:36px;background:#ddd7c9;color:#52604f}
.chat-composer svg{width:19px;height:19px;margin:auto}
.chat-composer p{font-size:10px;color:var(--muted);margin:7px 0 0;text-align:center}
.chat-help{display:flex;justify-content:center;align-items:center;gap:3px 9px;flex-wrap:wrap;padding:6px 16px;font-size:10px;color:var(--muted);flex-shrink:0}
.chat-help>a{color:var(--green);font-weight:600;text-underline-offset:3px}
.chat-help>span:last-child{flex-basis:100%;text-align:center}
.chat-reset{font-size:10px;color:var(--muted);text-decoration:underline;text-underline-offset:3px;min-height:34px;flex-shrink:0}
.chat-noscript{position:fixed;bottom:0;left:0;z-index:60;background:var(--paper);padding:15px;margin:0}
@media(max-width:600px){.chat-preview-banner{height:68px;padding:8px 12px;font-size:11px;gap:8px;align-items:center}.chat-preview-banner>span>span{display:block}.chat-preview-banner a{font-size:10px;max-width:80px;white-space:normal}.chat-preview-site{height:calc(100dvh - 68px)}.practice-chat{right:10px;bottom:82px;width:calc(100% - 20px);max-width:none;height:calc(100dvh - 160px);min-height:0;border-radius:14px}.chat-launcher{right:12px;bottom:14px;min-height:50px;padding:11px 17px}.chat-header{padding:14px 16px}.chat-header h1{font-size:23px}.chat-log{padding:14px 12px 4px}.chat-examples{padding:8px 12px 12px;gap:6px}.chat-examples button{font-size:11px}.chat-message{padding:12px 13px}.chat-composer{padding:10px 12px 7px}}
@media(prefers-reduced-motion:reduce){.chat-log{scroll-behavior:auto}}

.chat-composer .chat-privacy-note{margin:0 0 11px;font-size:11px;line-height:1.45;text-align:left;color:#52604f}.chat-privacy-note strong{display:block;color:#384f35;margin-bottom:3px}
@media(max-width:600px){.chat-examples{flex-wrap:nowrap;overflow-x:auto}.chat-examples button{flex:0 0 auto;white-space:nowrap}}
@media(max-height:650px){.practice-chat{overflow-y:auto}.chat-log{flex:1 0 100px}}
