:root{--navy:#14213d;--teal:#0f766e;--bg:#f4f6f9;--line:#dde3ea;--text:#1b2430;--muted:#6b7684}*{box-sizing:border-box}html,body{background:var(--bg);height:100%;color:var(--text);margin:0;font-family:-apple-system,BlinkMacSystemFont,Hiragino Sans,Hiragino Kaku Gothic ProN,Noto Sans JP,sans-serif}button{font:inherit;cursor:pointer}.center{justify-content:center;align-items:center;height:100dvh;display:flex}.muted{color:var(--muted)}.err{color:#b42318}.avatar{background:var(--navy);color:#fff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:40px;height:40px;font-weight:700;display:flex}.avatar.big{width:84px;height:84px;margin:0 auto 12px;font-size:36px}.avatar.sm{width:30px;height:30px;margin-top:2px;font-size:14px}.login{text-align:center;max-width:380px;margin:0 auto;padding:18vh 24px 0}.login h1{color:var(--navy);margin:0 0 8px;font-size:26px}.login form{flex-direction:column;gap:10px;margin-top:20px;display:flex}.login input{border:1px solid var(--line);text-align:center;border-radius:12px;padding:14px;font-size:17px}.login button,.composer button{background:var(--teal);color:#fff;border:0;border-radius:12px;padding:13px 18px;font-weight:700}.login button:disabled,.composer button:disabled{opacity:.45}.chat{background:#fff;flex-direction:column;max-width:760px;height:100dvh;margin:0 auto;display:flex}header{background:var(--navy);color:#fff;align-items:center;gap:10px;padding:10px 14px;display:flex}header .who{flex-direction:column;flex:1;min-width:0;display:flex}header .who b{font-size:17px}header .who span{opacity:.75;white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}header .avatar{color:var(--navy);background:#fff}.ghost{color:#fff;background:0 0;border:1px solid #ffffff80;border-radius:999px;flex:none;padding:6px 12px;font-size:13px}.log{background:var(--bg);flex:1;padding:16px 12px 8px;overflow-y:auto}.row{gap:8px;margin:0 0 14px;display:flex}.row.user{justify-content:flex-end}.bubble{word-break:break-word;border-radius:16px;max-width:86%;padding:11px 14px;font-size:15.5px;line-height:1.75}.bubble.ai{border:1px solid var(--line);background:#fff;border-top-left-radius:4px}.bubble.me{background:var(--teal);color:#fff;white-space:pre-wrap;border-top-right-radius:4px}.bubble p{margin:0 0 .7em}.bubble p:last-child{margin-bottom:0}.bubble ul,.bubble ol{margin:.2em 0 .7em;padding-left:1.3em}.bubble h1,.bubble h2,.bubble h3{margin:.6em 0 .3em;font-size:16px}.hello{margin-bottom:10px}.hello .bubble{max-width:100%;margin-bottom:12px}.examples{flex-direction:column;gap:8px;display:flex}.examples button{text-align:left;border:1px solid var(--line);color:var(--navy);background:#fff;border-radius:12px;padding:10px 12px;font-size:14px}.composer{border-top:1px solid var(--line);background:#fff;gap:8px;padding:10px 12px;display:flex}.composer textarea{resize:none;field-sizing:content;min-height:46px;max-height:160px;font:inherit;border:1px solid var(--line);border-radius:12px;flex:1;padding:12px;font-size:16px}.foot{color:var(--muted);text-align:center;background:#fff;margin:0;padding:0 12px 10px;font-size:11px}.dots{gap:4px;display:inline-flex}.dots i{background:#9aa5b1;border-radius:50%;width:7px;height:7px;animation:1.2s infinite b}.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}@keyframes b{0%,80%,to{opacity:.3}40%{opacity:1}}
