*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;background:#fff}
body{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Helvetica,Arial,sans-serif;color:#0d0d0d;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
.app{display:flex;flex-direction:column;height:100vh;height:100dvh}
.top{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;height:52px;flex:none;background:#fff}
.who{display:flex;align-items:center;gap:8px;font-weight:600;font-size:17px;color:#0d0d0d}
.chev{color:#8f8f8f;font-size:16px;transform:translateY(-3px)}
.legal-lnk{font-size:13px;color:#8f8f8f;text-decoration:none}
.ava{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#0d0d0d;color:#fff;font-size:13px;font-weight:700;flex:none}
.ava.sm{width:28px;height:28px;margin-top:2px;border:1px solid #e5e5e5;background:#fff;color:#0d0d0d}
.log{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
.col{max-width:768px;margin:0 auto;padding:0 16px}
.log .col{padding-top:12px;padding-bottom:24px}
.msg{display:flex;gap:12px;margin:0 0 22px;animation:in .25s ease-out}
@keyframes in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.msg.bot .body{flex:1;min-width:0;padding-top:3px}
.msg.bot .body p{margin:0 0 12px}
.msg.bot .body p:last-child{margin-bottom:0}
.msg.bot strong{font-weight:650}
.msg.me{justify-content:flex-end}
.msg.me .bub{background:#f4f4f4;border-radius:22px;padding:9px 18px;max-width:78%;white-space:pre-wrap;word-break:break-word}
.caret{display:inline-block;width:9px;height:9px;border-radius:50%;background:#0d0d0d;margin-left:4px;vertical-align:middle}
.dots{display:inline-flex;gap:4px;padding-top:9px}
.dots i{width:7px;height:7px;border-radius:50%;background:#b4b4b4;animation:b 1s infinite}
.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}
@keyframes b{0%,80%,100%{opacity:.35;transform:scale(.85)}40%{opacity:1;transform:scale(1)}}
.msg.cal{display:block}
#cal{min-width:280px;height:760px;margin:4px 0 8px;border:1px solid #ececec;border-radius:16px;overflow:hidden}
.after{font-size:14px;color:#5d5d5d}
.after a{color:#0d0d0d;font-weight:600}
.dock{flex:none;background:#fff;padding-bottom:max(10px,env(safe-area-inset-bottom))}
.chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;padding:0 0 10px}
.chip{font:inherit;font-size:15px;background:#fff;border:1px solid #d9d9d9;border-radius:999px;padding:8px 16px;cursor:pointer;color:#0d0d0d;transition:background .15s}
.chip:hover{background:#f4f4f4}
.cmp{display:flex;align-items:flex-end;gap:8px;background:#f4f4f4;border-radius:28px;padding:8px 8px 8px 20px;box-shadow:0 0 0 1px rgba(0,0,0,.04)}
.cmp input,.cmp textarea{flex:1;border:0;background:transparent;font:inherit;font-size:16px;outline:none;padding:7px 0;color:#0d0d0d;resize:none;min-width:0}
.cmp input:disabled{color:#8f8f8f}
.cmp button{width:36px;height:36px;border-radius:50%;border:0;background:#0d0d0d;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.cmp button:disabled{background:#d7d7d7;cursor:default}
.fine{font-size:11px;color:#8f8f8f;text-align:center;padding:8px 0 0;line-height:1.4}
.fine a{color:#8f8f8f}

.ava.ph{position:relative;background:#eee;border:0;overflow:visible}
.ava.ph img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.ava .on{position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:50%;background:#19c37d;border:2px solid #fff}
.top .ava.ph{width:34px;height:34px}
.nm{display:flex;flex-direction:column;line-height:1.15}
.nm small{font-size:12px;font-weight:400;color:#19a46b}
.nm small.ty{color:#8f8f8f;font-style:italic}
.msg.me .bub{position:relative}
.tap{position:absolute;left:-10px;top:-12px;background:#fff;border:1px solid #ececec;border-radius:999px;font-size:14px;line-height:1;padding:4px 5px;box-shadow:0 2px 6px rgba(0,0,0,.08);animation:pop .35s cubic-bezier(.3,1.6,.5,1)}
@keyframes pop{from{transform:scale(0)}to{transform:scale(1)}}
.left{display:inline-block;margin-top:8px;font-size:12px;color:#6b6b6b;background:#f4f4f4;border-radius:999px;padding:2px 10px}
.win{display:flex;align-items:center;gap:14px;margin:0 0 18px 40px;padding:14px 18px;border-radius:18px;background:linear-gradient(135deg,#fff4e5,#ffe9ea);border:1px solid #ffd9d9;animation:pop .45s cubic-bezier(.3,1.6,.5,1)}
.win .big{font-size:30px}
.win b{display:block;font-size:17px}
.win span{font-size:14px;color:#5d5d5d}
.confetti{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:50}
