*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#111;color:#fff}.calc-shell{max-width:430px;min-height:100vh;margin:auto;padding:20px 18px 24px;display:flex;flex-direction:column;justify-content:flex-end}.calc-top{font-size:14px;color:#888;display:flex;justify-content:space-between;padding:10px}.dot{width:7px;height:7px;border-radius:50%;background:#555}.calc-display{height:145px;font-size:62px;text-align:right;padding:30px 8px;overflow:hidden}.keys{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.keys button{height:76px;border:0;border-radius:50%;background:#303030;color:#fff;font-size:27px}.keys .light{background:#aaa;color:#111}.keys .op,.keys .equals{background:#ff9f0a}.keys .zero{grid-column:span 2;border-radius:40px;text-align:left;padding-left:29px}.keys .equals{border-radius:40px}.overlay{position:fixed;inset:0;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:20px}.hidden{display:none!important}.unlock-card{width:min(360px,100%);background:#fff;color:#111;border-radius:26px;padding:28px;text-align:center;box-shadow:0 20px 60px #000}.heart{font-size:30px}.unlock-card h2{margin:8px 0 4px}.unlock-card p{color:#777}.unlock-card input{width:100%;padding:15px;border:1px solid #ddd;border-radius:14px;font-size:25px;text-align:center}.hint{font-size:12px;color:#777;margin:12px 0 14px}.primary{width:100%;padding:14px;border:0;border-radius:14px;background:#111;color:#fff;font-size:16px}.unlock-card #err{height:20px;color:#d00;margin-top:8px;font-size:13px}
.chat-body{height:100vh;background:#f3f3f3;color:#111;display:flex;flex-direction:column}.chat-head{height:68px;background:#fff;display:flex;align-items:center;padding:10px 15px;border-bottom:1px solid #ddd;position:relative}.avatar{width:43px;height:43px;border-radius:50%;background:#111;color:#fff;display:grid;place-items:center}.head-info{margin-left:11px;flex:1}.head-info small{display:block;color:#777;font-size:11px}.head-info i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#3aa655;margin-right:4px}.icon-btn{border:0;background:none;font-size:26px}.menu-box{display:none;position:absolute;right:12px;top:57px;background:#fff;border:1px solid #ddd;border-radius:12px;box-shadow:0 8px 25px #bbb;overflow:hidden;z-index:4}.menu-box.show{display:block}.menu-box button,.menu-box a{display:block;border:0;background:#fff;padding:12px 16px;text-decoration:none;color:#111;font-size:14px}.chat-body main{flex:1;overflow:auto;padding:15px 12px}.row{display:flex;margin:7px 0}.mine{justify-content:flex-end}.bubble{max-width:78%;padding:10px 13px;border-radius:18px;background:#fff;box-shadow:0 1px 2px #ccc;white-space:pre-wrap;word-break:break-word}.mine .bubble{background:#dcf8c6}.bubble small{display:block;text-align:right;color:#777;font-size:9px;margin-top:4px}.typing{font-size:11px;color:#777;padding:0 16px 5px}.chat-body form{display:flex;gap:7px;background:#fff;padding:9px}.chat-body input{flex:1;border:1px solid #ddd;border-radius:25px;padding:12px 15px;font-size:16px;outline:none}.round,.send{border:0;width:44px;height:44px;border-radius:50%;font-size:20px}.round{background:#eee}.send{background:#111;color:#fff}.chat-body #toast{position:fixed;bottom:75px;left:50%;transform:translateX(-50%) translateY(20px);background:#111;color:#fff;padding:9px 14px;border-radius:20px;opacity:0;transition:.2s;font-size:12px}.chat-body #toast.show{opacity:1;transform:translateX(-50%)}
@media(max-width:380px){.keys button{height:65px}.calc-display{height:120px;font-size:50px}}
.chat-image{display:block;max-width:230px;max-height:300px;border-radius:13px;object-fit:cover;margin-bottom:3px}.chat-audio{max-width:230px;height:38px}.msg-text{white-space:pre-wrap}.emoji-panel{position:fixed;bottom:63px;left:8px;right:8px;max-width:500px;margin:auto;background:#fff;border:1px solid #ddd;border-radius:16px;padding:12px;line-height:2;font-size:25px;box-shadow:0 8px 30px #bbb;z-index:5;word-spacing:5px}.attach{display:grid;place-items:center;cursor:pointer}.mic{font-size:12px}.mic.recording{background:#d33;color:#fff;animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.45}}
.call-panel{position:fixed;inset:0;background:#111;z-index:20;display:flex;align-items:center;justify-content:center}
.call-panel #remoteVideo{width:100%;height:100%;object-fit:cover;background:#111}
.call-panel #localVideo{position:absolute;right:14px;top:78px;width:110px;height:155px;object-fit:cover;border-radius:14px;border:2px solid #fff;background:#222}
.call-top{position:absolute;top:17px;left:18px;right:18px;color:#fff;display:flex;justify-content:space-between;z-index:2}
.call-controls{position:absolute;bottom:28px;left:0;right:0;display:flex;justify-content:center;gap:16px;z-index:3}
.call-controls button{width:55px;height:55px;border:0;border-radius:50%;font-size:20px;background:#fff}
.call-controls .hang{background:#d33;color:#fff;transform:rotate(135deg)}
.incoming{position:fixed;left:50%;top:75px;transform:translateX(-50%);z-index:25;background:#fff;color:#111;padding:17px 20px;border-radius:17px;box-shadow:0 10px 35px #555;text-align:center}
.incoming button{border:0;border-radius:10px;padding:9px 16px;margin:12px 4px 0}
.incoming #accept{background:#111;color:#fff}.incoming #decline{background:#eee}

.emoji-panel .emoji-item{border:0;background:transparent;padding:3px 4px;margin:0;cursor:pointer;font-size:25px;line-height:1.35;border-radius:8px}.emoji-panel .emoji-item:hover{background:#eee}

html,body{width:100%;max-width:100%;overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-width:0}
img,video{max-width:100%}
.chat,.app,.calculator,.screen,.container{max-width:100%;min-width:0}
input,button,textarea{font-size:16px}
@media (max-width:600px){
  .chat-head{padding:10px 12px}
  .chat-head .icon-btn{padding:7px}
  #messages{padding:10px 8px}
  .bubble{max-width:82vw}
  #composer{width:100%;padding:7px;gap:5px}
  #composer #text{min-width:0;width:100%}
  .emoji-panel{left:6px;right:6px;bottom:64px;max-height:42vh;overflow-y:auto;font-size:23px;padding:8px}
  .emoji-panel .emoji-item{font-size:23px;padding:2px}
  .call-panel #localVideo{width:88px;height:124px;right:10px;top:68px}
  .call-controls{bottom:20px;gap:10px}
  .call-controls button{width:50px;height:50px}
}

.v61-typing-indicator{display:none;padding:3px 12px;min-height:20px;font-size:12px;line-height:18px;opacity:.72;font-style:italic;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:600px){.v61-typing-indicator{padding:3px 10px;font-size:12px}}

#v63AudioCallButton{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

/* v6.4 WhatsApp-style reply UI */
.v64-reply-bar{
  display:none;
  align-items:center;
  gap:8px;
  width:100%;
  box-sizing:border-box;
  padding:7px 10px;
  background:rgba(128,128,128,.10);
  border-left:3px solid currentColor;
}
.v64-reply-preview{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  font-size:12px;
}
.v64-reply-preview span{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  opacity:.75;
}
.v64-reply-bar button{
  border:0;
  background:transparent;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  padding:4px 8px;
}
.v64-selected-message{
  outline:2px solid currentColor;
  outline-offset:2px;
  border-radius:8px;
}
