
*{box-sizing:border-box}body{margin:0;background:#efeeeb;color:#201b2c;font:16px -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo",sans-serif;--p:#5035c8}button,input{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #008b83;outline-offset:2px}button{border:0;background:none}main{display:flex;justify-content:center;align-items:center;min-height:100dvh}.phone{width:min(390px,100vw);height:min(790px,100dvh);background:white;display:flex;flex-direction:column;overflow:hidden;border-radius:24px;border:1px solid #ceccd0}.sys{padding:13px 22px 9px;display:flex;justify-content:space-between;font-size:13px;font-weight:700}.sys span{letter-spacing:2px}header{height:62px;display:flex;align-items:center;gap:11px;padding:0 17px;border-bottom:1px solid #eeedf1}header b{font-size:18px}header small,.row small{display:block;color:#726c7e;font-size:12px;margin-top:3px}.back{font-size:31px;padding:0 5px}.body{flex:1;overflow:auto;padding:22px 18px}.chat{background:#f4f3f7;padding:10px 14px}.day{text-align:center;font-size:11px;color:#81798a;margin:7px 0 20px}.av,.badge{display:inline-block;border-radius:50%;position:relative;flex:none}.av{width:46px;height:46px}.av.large{width:80px;height:80px}.badge{position:absolute;bottom:-2px;right:-2px;width:42%;height:42%;border:2px solid white}.portrait{position:absolute;inset:0;overflow:hidden;border-radius:50%;background:#e7e2ef}.portrait img{position:absolute;top:0;left:0;width:200%;height:200%;max-width:none}.portrait.b img,.portrait.y img{left:-100%}.portrait.m img,.portrait.y img{top:-100%}.line{display:flex;align-items:flex-start;gap:8px;margin:15px 0}.line .av{width:38px;height:38px}.line section{max-width:80%}.line small{display:block;font-size:12px;color:#585262;margin:0 0 4px 2px}.bubble{padding:11px 13px;background:white;border-radius:3px 15px 15px 15px;line-height:1.5;font-size:15px;overflow-wrap:anywhere}.mine{justify-content:flex-end}.mine .bubble{background:var(--p);color:white;border-radius:15px 3px 15px 15px;max-width:82%}.textbtn{color:var(--p);font-weight:650;padding:7px 2px}.bubble .textbtn{display:block;width:100%;border-top:1px solid #e9e5ef;margin-top:9px;padding-top:10px}.foot{background:white;padding:12px 14px 15px;border-top:1px solid #eceaf0}.entry{display:flex;align-items:center;gap:8px}.entry input,input.name{min-width:0;background:#f3f2f5;border:0;border-radius:14px;padding:12px;flex:1;width:100%}.send{border-radius:50%;background:var(--p);color:white;font-size:18px;width:37px;height:37px}.primary{background:var(--p);color:white;width:100%;border-radius:12px;padding:14px;font-weight:650}.homebar{width:92px;height:4px;border-radius:3px;margin:4px auto 7px;background:#211c2b}.row{width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:14px 0;border-bottom:1px solid #efeef0}.row b{flex:1}.row i{color:#8f8996}.hint{font-size:13px;color:#726d7a;line-height:1.55}.brand{color:var(--p);font-size:16px;font-weight:800}.big{font-size:28px;letter-spacing:-1.1px;margin:20px 0 12px}.choose{display:flex;gap:16px;margin:24px 0}.choose button{padding:4px;border-radius:50%;display:flex}.picked{outline:3px solid var(--p)}label{display:block;font-size:14px;font-weight:650;margin:25px 0 9px}.strip{background:white;color:#413950;border-bottom:1px solid #eeedf0;padding:12px 16px;font-size:14px}.preview{border-left:3px solid var(--p);padding:5px 10px;margin:0 0 12px;line-height:1.4;font-size:14px}.preview small{display:block;color:var(--p);margin-bottom:4px}.tabs{display:flex;justify-content:space-around}.tabs button{min-height:42px}.active{color:var(--p);font-weight:750}.actions{display:flex;align-items:center;gap:8px;border-top:1px solid #e9e5ef;margin-top:9px;padding-top:3px}.bubble .actions button{flex:0 0 auto;width:auto;min-height:44px;padding:0 5px;margin:0;border:0;white-space:nowrap}.muted{color:#696071}@media(max-width:500px){.phone{width:100vw;height:100dvh;border:0;border-radius:0}}

main{width:100%;max-width:580px;height:100dvh;min-height:0;background:white;margin:auto;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}
header{flex:none;min-height:57px;height:auto;padding:10px 15px}header .heading{flex:1;min-width:0}header b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header .av{width:34px;height:34px}
#content{min-height:0;flex:1;overflow-y:auto;padding:18px;overscroll-behavior:contain}#content.chat{background:#f4f3f7;padding:14px}#notice:not(:empty){background:#fff3df;padding:10px 16px;font-size:14px}#foot{padding:10px 14px max(12px,env(safe-area-inset-bottom));border-top:1px solid #eee;background:white}#foot:empty{display:none}
.bubble,.preview{white-space:pre-wrap;overflow-wrap:anywhere}.row b{min-width:0;overflow-wrap:anywhere}.row small{font-weight:400}.actions button{min-width:48px}.entry button{flex:none}.bubble .actions{flex-wrap:wrap}.tabs button{flex:1}.entry input{font-size:16px}.brand{font-size:14px}.space{margin-top:20px}.barbtn{color:var(--p);font-weight:650;min-height:44px}.choose{margin:10px 0 22px}.hint{overflow-wrap:anywhere}button:disabled{opacity:.55}.empty{color:#736e7d;line-height:1.6}.pending{display:block;color:var(--p);padding:8px 0;text-align:left}.av.no-owner{background-position:0 100%}.tag{font-size:12px;color:var(--p)}.strip{margin-bottom:14px;border-radius:10px}.note{font-size:13px;color:#655c72;white-space:pre-wrap}.busy{color:#716c7d;font-size:13px;margin:8px 0}

.mine section{text-align:right}.mine section .bubble{max-width:100%;text-align:left}.chatdate{text-align:center;font-size:12px;color:#696173;margin:12px 0}
.bubble .sent-status:disabled{background:#efeff1;color:#595960;opacity:1;border:0;border-radius:8px;padding:9px;cursor:default}
.forwardSend{background:var(--p);color:white;border-radius:12px;padding:12px;font-weight:650}
.recipient{display:block;max-width:100%;padding:8px 10px;margin-bottom:5px;color:var(--p);font-size:14px;font-weight:650;text-align:left;overflow-wrap:anywhere}
#activity:not(:empty){flex:none;background:#efebfb;color:#47339d;padding:9px 16px;font-size:14px;font-weight:650;overflow-wrap:anywhere}#activity:not(:empty)::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;background:currentColor}
.own-agent .bubble{background:var(--p);color:white}.own-agent .actions button{color:white}.peer-agent{flex-direction:row-reverse}.peer-agent small{text-align:right}.peer-agent .bubble{border-radius:15px 3px 15px 15px}
.line.own-agent section,.line.peer-agent section{max-width:min(70%,calc(100% - 112px))}

.chat-members{display:flex;gap:5px;flex:none}
.chat-member{display:flex;flex-direction:column;align-items:center;gap:5px;width:43px;font-size:12px;font-weight:600}
.chat-member .av{width:35px;height:35px}
.chat-member>span:last-child,.chat-preview{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.chat-pair b{font-size:15px;font-weight:550}
.chat-pair small{color:var(--p);margin-top:6px}
