*{box-sizing:border-box}
body{margin:0;background:#edf5f0;color:#172c2a;font:15px/1.5 system-ui,sans-serif}
main{width:min(100% - 24px,700px);margin:24px auto;background:white;border:1px solid #d8e5df;border-radius:18px;overflow:hidden}
header{background:#145344;color:white;padding:16px 20px}
h1{font-size:20px;margin:0}header p{margin:2px 0 0;color:#d9efe4}
nav{display:flex;gap:18px;padding:8px 20px;border-bottom:1px solid #d8e5df}
a{color:#145b4b}
.chat{background:#f4f8f6;height:min(58vh,550px);min-height:240px;overflow:auto;padding:16px 20px}
.bubble{background:white;border:1px solid #d8e5df;border-radius:13px;padding:10px 13px;margin:0 0 10px;width:fit-content;max-width:95%;white-space:pre-wrap;overflow-wrap:anywhere}
.bubble.user{margin-left:auto;background:#145b4b;color:white;border-color:#145b4b}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
button{cursor:pointer;background:white;color:#145344;border:1px solid #a6c4b8;border-radius:8px;padding:7px 10px;font:inherit}
button:disabled{opacity:.55;cursor:default}
form{display:flex;gap:8px;padding:12px 16px}
form input:not([type=hidden]){flex:1;min-width:0;font:inherit;border:1px solid #a6c4b8;border-radius:8px;padding:8px}
form button{background:#145b4b;color:white;border-color:#145b4b}
.note{padding:18px 20px}
@media(max-width:520px){main{width:100%;margin:0;border-radius:0}.chat{height:60dvh}}
.lookup-image{display:block;width:min(100%,440px);height:auto;margin:0 0 14px;border:1px solid #d8e5df;border-radius:12px;background:#fff}

#member-attachment{grid-column:1/-1;font-size:13px}
#member-attachment[hidden]{display:none}
#member-attachment button{padding:3px 8px}
.member-chat-photo{display:block;max-width:100%;max-height:360px;margin-top:8px;border-radius:6px}
#member-chat{display:grid;grid-template-columns:minmax(0,1fr) auto auto}
#member-attach{background:#e7f2ec;color:#145344}
.member-widget main{display:flex;flex-direction:column;width:100%;height:100dvh;margin:0;border:0;border-radius:0}
.member-widget header{padding:10px 14px}
.member-widget .chat{flex:1;min-height:0;height:auto}
.member-widget form{flex:none;padding:8px 10px}

.account-snapshot-image{display:block;width:100%;max-width:640px;height:auto;margin-top:10px;border:1px solid #d8e5df;border-radius:7px}
.verifying-snapshot-owner .account-verified-result{visibility:hidden}

.chat-typing{
    display:flex;
    align-items:center;
    gap:.25em;
    white-space:nowrap;
    overflow-wrap:normal;
}
.chat-typing::after{
    content:"...";
    flex:0 0 1em;
    white-space:nowrap;
    animation:chat-typing-dots 1.2s steps(3,end) infinite;
}
@keyframes chat-typing-dots{
    from{clip-path:inset(0 100% 0 0)}
    75%,to{clip-path:inset(0)}
}
@media(prefers-reduced-motion:reduce){
    .chat-typing::after{animation:none}
}

.member-topup-guide{width:95%}
.member-topup-guide select{margin:8px 0 0;max-width:100%}
.member-topup-guide ol{padding-left:1.4em;margin-bottom:0}
.member-topup-guide li+li{margin-top:10px}
.member-topup-guide img{display:block;width:100%;height:auto;margin-top:4px;border-radius:6px}
.member-topup-button{display:inline-block;background:#145b4b;color:white;padding:7px 12px;border-radius:6px;text-decoration:none}
