:root{font-family:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#183036;background:#eaf0f1;color-scheme:light;font-synthesis:none;font-weight:400;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button,textarea{font:inherit}button{-webkit-tap-highlight-color:transparent}
.conversation{width:100%;height:var(--chat-height,100dvh);margin:0 auto;display:flex;flex-direction:column;background:#f5f7f8;overflow:hidden}
.chat-header{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:calc(18px + env(safe-area-inset-top)) 20px 18px;border-bottom:1px solid #e6ecec;background:#fff}
.conversation-mark{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:13px;background:#e5f3ef;color:#067b73}.conversation-mark svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.conversation-heading{flex:1;min-width:0}.conversation-heading h1{font-size:16px;font-weight:650;letter-spacing:-.025em;line-height:1.3;margin:0 0 5px}.connection{display:flex;align-items:center;gap:6px;min-width:0}#status{font-size:11px;line-height:1.3;color:#53696b;white-space:nowrap}.connection-dot{width:5px;height:5px;background:#a6b4b7;flex-shrink:0;border-radius:50%}body[data-connection="online"] .connection-dot{background:#119880}body[data-connection="offline"] .connection-dot{background:#d99b40}
#music-toggle{display:flex;align-items:center;justify-content:center;gap:7px;height:40px;padding:0 12px;flex-shrink:0;border:1px solid #e1e9e8;border-radius:12px;background:#fff;color:#415d60;font-size:12px;font-weight:500;cursor:pointer;transition:background .15s,border-color .15s}#music-toggle:hover{background:#f2f8f6;border-color:#bfd8d0}#music-toggle[data-playing="true"]{color:#067b73;background:#f0f8f5;border-color:#d3e8e0}.music-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:10px;padding:22px 18px;scrollbar-width:thin;scrollbar-color:#d1dedd transparent}
.empty{margin:auto;padding:28px 8px;text-align:center;max-width:340px}.empty-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 20px;border:1px solid #e1eae7;border-radius:20px;background:#fff;box-shadow:0 5px 18px #24443a04;color:#6faaa0}.empty-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.empty h2{margin:0 0 10px;font-size:17px;font-weight:600;letter-spacing:-.035em;color:#304b50}.empty p{margin:0;font-size:13px;line-height:1.8;color:#53696b}
.date-label{align-self:center;margin:9px 0 13px;font-size:10px;letter-spacing:.035em;color:#53696b;padding:5px 11px;border:1px solid #e8eeee;border-radius:20px;background:#fafbfb}
.bubble{max-width:85%;align-self:flex-start;padding:11px 14px 8px;border:1px solid #e3ebea;border-radius:4px 16px 16px;background:white;box-shadow:0 2px 3px #123d3003;overflow-wrap:anywhere}.bubble.mine{align-self:flex-end;background:#067b73;color:#fff;border-color:transparent;border-radius:16px 4px 16px 16px}.bubble p{white-space:pre-wrap;font-size:15px;line-height:1.55;margin:0 0 5px}.bubble time{display:block;text-align:right;font-size:10px;color:#53696b;line-height:1.3;font-variant-numeric:tabular-nums}.bubble.mine time{color:#effaf5}
#notice{flex-shrink:0;margin:0;background:#fff6e7;color:#8b601f;font-size:12px;line-height:1.6}#notice:not(:empty){padding:11px 20px;border-top:1px solid #f1e7d3}
#composer{display:flex;align-items:flex-end;gap:10px;flex-shrink:0;padding:14px max(16px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:#fff;border-top:1px solid #e6ecec}.composer-field{flex:1;min-width:0;display:flex;background:#f5f7f8;border:1px solid #e7eded;border-radius:14px;transition:border-color .15s,box-shadow .15s}.composer-field:focus-within{border-color:#a8cec4;box-shadow:0 0 0 3px #e9f4ef}textarea{width:100%;min-width:0;min-height:48px;max-height:130px;resize:none;border:0;border-radius:14px;padding:12px 14px;outline:0;font-size:16px;line-height:24px;background:transparent;color:#183036}textarea::placeholder{color:#53696b;font-size:14px}#send{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border:0;border-radius:14px;background:#067b73;color:#fff;cursor:pointer;transition:background .15s,transform .15s}#send:hover{background:#05665f}#send:active{transform:scale(.96)}#send:disabled{opacity:.5;cursor:wait}#send svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}button:focus-visible{outline:3px solid #8fbdb1;outline-offset:3px}
@media(min-width:761px){body{padding:24px}.conversation{max-width:960px;height:calc(var(--chat-height,100dvh) - 48px);border:1px solid #dde7e6;border-radius:22px;box-shadow:0 20px 70px #294f4210}.chat-header{padding:22px 28px}.conversation-heading h1{font-size:17px}#status{font-size:12px}#messages{padding:28px 32px}.bubble{max-width:72%}#composer{padding:18px 28px}.empty-icon{width:74px;height:74px;border-radius:23px}.empty h2{font-size:20px}.empty p{font-size:14px}}
@media(max-width:370px){.chat-header{padding-right:14px;padding-left:14px;gap:9px}.conversation-mark{width:36px;height:36px;border-radius:11px}#music-toggle{padding:0 9px;gap:5px;font-size:11px}#status{font-size:10px}#messages{padding:18px 12px}.bubble{max-width:90%}#composer{padding-left:12px;padding-right:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
