:root { --g: #25a455; --gl: #d9fdd3; --bg: #fff; --card: #f2f2f2; --line: #e6e6e6; --sub: #6b6b6b; --txt: #000; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: #e9e9e9; color: var(--txt); font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; display: flex; justify-content: center; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
#phone { position: relative; width: 100%; max-width: 430px; height: 100dvh; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; }
#screen { flex: 1; overflow-y: auto; }
.page { padding: 12px 16px 90px; }
.top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.top-right { display: flex; gap: 10px; }
.round { width: 38px; height: 38px; border-radius: 50%; background: var(--card); font-size: 18px; display: grid; place-items: center; }
.round svg { width: 20px; fill: currentColor; }
.round.green { background: var(--g); color: #fff; }
.title { font-size: 34px; font-weight: 800; margin: 4px 0 14px; }
h2 { font-size: 18px; margin: 20px 0 6px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 12px; padding: 0 12px; margin-bottom: 12px; }
.search svg { width: 20px; fill: var(--sub); }
.search input { flex: 1; background: none; border: 0; color: var(--txt); padding: 11px 0; font-size: 16px; outline: 0; }
.pills { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 8px; }
.pill { padding: 7px 14px; border: 1px solid var(--line); border-radius: 20px; white-space: nowrap; }
.pill.on { background: var(--gl); border-color: #a8e6a0; color: #0b5a2a; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.row.small { padding: 8px 0 8px 60px; color: var(--sub); }
.row.profile { padding-bottom: 20px; }
.row.muted { color: var(--sub); }
.chat { border-bottom: 1px solid var(--line); cursor: pointer; }
.grow { flex: 1; min-width: 0; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.line.pad { margin-top: 12px; }
.line .more { background: var(--card); padding: 6px 14px; border-radius: 16px; }
.sub { color: var(--sub); font-size: 15px; line-height: 1.35; }
.row .sub { white-space: normal; }
.time { color: var(--sub); font-size: 13px; }
.time.g { color: var(--g); }
.red { color: #ff4d6d; }
.badge { background: var(--g); color: #fff; border-radius: 12px; min-width: 22px; padding: 2px 7px; font-size: 13px; text-align: center; font-weight: bold; }
.avatar { flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: bold; }
.avatar.plain { width: 52px; height: 52px; background: none; }
.avatar.ring { outline: 3px solid var(--g); outline-offset: 2px; }
.ic { width: 38px; height: 38px; display: grid; place-items: center; }
.ic svg { width: 24px; fill: var(--txt); }
.join { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; background: var(--gl); color: #0b5a2a; padding: 10px 18px; border-radius: 20px; font-weight: bold; }
.join svg { width: 20px; fill: #0b5a2a; }
.join.wide { width: 100%; justify-content: center; margin-top: 16px; }
.card { background: var(--card); border-radius: 16px; padding: 8px 14px; margin-bottom: 12px; }
#fab { position: absolute; right: 18px; bottom: 90px; }
.big { width: 56px; height: 56px; font-size: 30px; border-radius: 18px; }
#nav { display: flex; background: #f7f7f7; border-top: 1px solid var(--line); padding: 8px 0 14px; }
#nav[hidden] { display: none; }
#nav button { flex: 1; font-size: 11px; color: var(--sub); display: flex; flex-direction: column; align-items: center; gap: 2px; }
#nav button span { font-size: 22px; }
#nav button.on { color: #000; font-weight: bold; }
.chat-screen { display: flex; flex-direction: column; height: 100dvh; }
.bar { display: flex; align-items: center; gap: 8px; padding: 10px 8px; background: #f7f7f7; border-bottom: 1px solid var(--line); }
.msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.day { align-self: center; background: var(--card); color: var(--sub); font-size: 12px; padding: 4px 12px; border-radius: 10px; }
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 14px; word-break: break-word; }
.bubble.in { align-self: flex-start; background: #f0f0f0; }
.bubble.out { align-self: flex-end; background: var(--gl); }
.compose { display: flex; gap: 8px; padding: 10px; background: #f7f7f7; }
.compose input { flex: 1; background: var(--card); border: 0; color: var(--txt); border-radius: 22px; padding: 11px 16px; font-size: 16px; outline: 0; }
.call { color: #fff; position: absolute; inset: 0; background: linear-gradient(#06210f, #000); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 80px 20px 50px; z-index: 5; text-align: center; }
.call[hidden] { display: none; }
.call .avatar { margin: 0 auto; }
.call.video { background: linear-gradient(#0d3a22, #050505); }
.self { position: absolute; right: 16px; top: 60px; width: 90px; height: 130px; border-radius: 12px; background: #222; border: 2px solid var(--g); display: grid; place-items: center; font-size: 13px; }
.ctrls { display: flex; gap: 18px; }
.cbtn { width: 60px; height: 60px; border-radius: 50%; background: #1e1e1e; color: #fff; font-size: 24px; }
.cbtn.on { background: #fff; }
.cbtn.end { background: #e5384f; transform: rotate(135deg); }

.chat { align-items: flex-start; padding: 12px 0; }
.chat b { font-size: 17px; font-weight: 600; }
.avatar.sq { border-radius: 14px; position: relative; margin-left: 8px; }
.avatar.sq::before { content: ""; position: absolute; left: -8px; top: 5px; width: 100%; height: 100%; border-radius: 14px; background: #ddd; z-index: -1; }
.chev { width: 22px; height: 22px; border: 1.5px solid #bbb; border-radius: 50%; display: grid; place-items: center; color: #999; font-size: 13px; }
.top .round { background: var(--card); }
.pill { background: #fff; font-size: 16px; }
.row.muted b { font-weight: 600; font-size: 17px; color: #555; }
.ai { position: absolute; right: 16px; bottom: 92px; width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px #0003; display: grid; place-items: center; }
.ai::after { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 5px solid transparent; background: linear-gradient(#fff,#fff) padding-box, conic-gradient(#2d7cff,#b04bff,#ff4b8b,#2dd4ff,#2d7cff) border-box; }
#nav svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; }
#nav button.on svg { fill: currentColor; }
#nav button { font-size: 11px; }
#nav .dot { position: relative; }
.home-bar { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 140px; height: 5px; border-radius: 3px; background: #000; pointer-events: none; z-index: 9; }
[hidden] { display: none !important; }
.top .round.green { background: var(--g); }
.status { display: flex; justify-content: space-between; padding: 12px 28px 0; font-size: 16px; }
.status span { font-size: 11px; letter-spacing: 1px; }
.page { padding-top: 24px; }
.round svg { fill: #000; }
.round.green svg { fill: #fff; }
.title { font-size: 36px; }
.ic svg[style*="stroke"] { fill: none; }
#nav button.on svg { fill: none; stroke-width: 2.600; }
#nav button.on[data-tab=chats] svg, #nav button.on[data-tab=calls] svg { fill: currentColor; }
.row { padding: 12px 0; }

.chat-screen { background: #efeae2 radial-gradient(#0000000d 1.500px, transparent 1.600px) 0 0 / 22px 22px; }
.chat-screen .status { background: #f7f7f7; padding-bottom: 4px; }
.bar { gap: 8px; }
.bar b { font-size: 18px; font-weight: 600; }
.notice { align-self: center; background: #fdf0d5; border-radius: 12px; padding: 10px 14px; font-size: 14px; text-align: center; margin: 4px 8px; }
.bubble { position: relative; padding: 8px 12px 8px 12px; font-size: 18px; }
.bubble.in { background: #fff; border-radius: 14px 14px 14px 4px; }
.bubble.out { border-radius: 14px 14px 4px 14px; background: #d9fdd3; }
.bubble .meta { float: right; margin: 8px 0 -4px 12px; font-size: 12px; color: var(--sub); display: inline-flex; gap: 3px; align-items: center; }
.tk { width: 16px; height: 14px; fill: none; stroke: #6b6b6b; stroke-width: 2; }
.callb { display: flex; align-items: center; gap: 12px; min-width: 70%; padding: 10px; }
.callb.in { background: #f4f4f4; border: 3px solid #fff; }
.cic { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.cic svg { width: 22px; }
.callb .sub { font-size: 16px; }
.callb .meta { position: absolute; right: 12px; bottom: 6px; margin: 0; }
.compose { background: transparent; align-items: center; padding: 8px 10px 22px; }
.compose .field { flex: 1; display: flex; align-items: center; background: #fff; border-radius: 22px; padding-right: 12px; }
.compose .field svg { width: 24px; }
.compose .field input { background: none; flex: 1; }
.compose .ic svg { fill: #000; }
.compose .ic svg[fill="none"] { fill: none; }
#scan { position: absolute; inset: 0; background: #0a0a0a; z-index: 6; color: #fff; }
.sbar { display: flex; justify-content: space-between; padding: 60px 24px 0; font-size: 26px; color: #ddd; }
.frame { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; transform: translate(-50%, -60%); }
.frame i { position: absolute; width: 36px; height: 36px; border: 4px solid var(--g); }
.frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.sbot { position: absolute; bottom: 40px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; font-size: 26px; }
.mycode { background: #222; padding: 8px 18px; border-radius: 18px; font-size: 16px; color: #888; }
.dialog { position: absolute; left: 50%; top: 45%; width: 82%; transform: translate(-50%, -50%); background: #fff; color: #000; border-radius: 20px; padding: 22px; text-align: center; }
.dialog p { margin: 0 0 14px; font-size: 16px; }
.qrs { position: relative; height: 130px; margin-bottom: 16px; }
.q1, .q2 { position: absolute; border-radius: 10px; background: repeating-linear-gradient(45deg, #333 0 3px, #fff 3px 6px); }
.q1 { left: 22%; top: 20px; width: 60px; height: 80px; opacity: .25; }
.q2 { left: 40%; top: 6px; width: 70px; height: 120px; background: #333; box-shadow: 0 4px 12px #0006; }
.okbtn { width: 100%; padding: 14px; border-radius: 12px; background: var(--g); color: #fff; font-weight: bold; font-size: 17px; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; color: #000; border-radius: 20px 20px 0 0; padding: 18px 16px 40px; }
.callb { padding-bottom: 22px; }
.sbar button { font-size: 34px; line-height: 1; color: #ddd; }

.signup { padding-top: 60px; }
.signup .sub { font-size: 16px; margin-bottom: 20px; }
.signup form { display: flex; flex-direction: column; gap: 12px; }
.field-in { border: 1px solid #ccc; border-radius: 12px; padding: 14px; font-size: 17px; background: #fff; color: #000; outline: 0; }
.field-in:focus { border-color: var(--g); }
.empty { color: var(--sub); font-size: 15px; padding: 16px 0; }

#scan.contact { background: #f2f2f2; color: #000; }
.cbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 17px; }
.cbar button { color: #000; font-size: 17px; }
.cbar #done { font-weight: bold; color: var(--g); }
.cbody { padding: 8px 16px; display: flex; flex-direction: column; gap: 20px; }
.group { background: #fff; border-radius: 14px; padding: 4px 16px; }
.group input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; font-size: 17px; outline: 0; background: none; color: #000; }
.group input:last-of-type { border-bottom: 0; }
.crow { display: flex; align-items: center; gap: 16px; }
.crow span { font-weight: 600; }
.crow input { border: 0 !important; }
.hint { margin: 0 0 10px; font-size: 13px; color: var(--sub); }
.hint.good { color: var(--g); }
.hint.bad { color: #e5384f; }
.scanlink { color: var(--g); font-weight: 600; font-size: 16px; text-align: left; padding: 0 4px; }

.mailcard { background: var(--card); border-radius: 14px; padding: 18px; margin: 16px 0; display: flex; flex-direction: column; gap: 8px; word-break: break-all; }
.mailcard .ok { color: var(--g); font-weight: 600; }

#pop { position: absolute; inset: 0; z-index: 9; }
#pop .shade { position: absolute; inset: 0; background: #0006; }
#pop .sheet h3 { margin: 0 0 12px; }
#pop .sheet p { margin: 0 0 8px; }
#pop .okbtn { margin-top: 12px; }
.mi { display: block; width: 100%; text-align: start; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
.mi.cur { color: var(--g); font-weight: bold; }
.viewfinder { height: 220px; background: #111; border-radius: 14px; display: grid; place-items: center; }
.viewfinder svg { width: 56px; fill: #fff6; }
.toast { position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 16px; border-radius: 20px; z-index: 12; font-size: 14px; }
.stk { display: grid; place-items: center; padding: 0; }
.row[data-chatname], .row[data-status], .row[data-profile], .row[data-info], .row[data-langs], .row[data-cycle], .row[data-mystatus], .row[data-openai] { cursor: pointer; }
