*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:#f4f6fb;color:#202124;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Segoe UI",Roboto,"Noto Sans KR",sans-serif}
#app{height:100%;display:flex;flex-direction:column;max-width:640px;margin:0 auto}
button{font:inherit;cursor:pointer;border:0}
select{font:inherit}
.center{flex:1;display:flex;flex-direction:column;justify-content:center;padding:28px 22px calc(28px + env(safe-area-inset-bottom));gap:18px}
.logo{width:76px;height:76px;margin:0 auto}
h1{font-size:28px;margin:0;text-align:center;line-height:1.2}
.sub{font-size:17px;color:#5f6368;text-align:center;line-height:1.45;margin:0}
.field{display:flex;flex-direction:column;gap:8px}
.field label{font-size:15px;color:#5f6368}
.langs{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.langs button{grid-column:span 2}.langs button:nth-child(n+4){grid-column:span 3}
.langs button{flex:1;padding:14px 6px;border-radius:14px;background:#fff;border:2px solid #dadce0;font-size:17px;font-weight:600;color:#202124}
.langs button.on{border-color:#1a73e8;background:#e8f0fe;color:#1a73e8}
.big{width:100%;padding:20px;border-radius:18px;background:#1a73e8;color:#fff;font-size:21px;font-weight:700;box-shadow:0 4px 14px rgba(26,115,232,.35)}
.big:active{transform:scale(.98)}
.big:disabled{opacity:.6}
.ghost{width:100%;padding:15px;border-radius:14px;background:#fff;color:#1a73e8;font-size:17px;font-weight:600;border:2px solid #d2e3fc}
.top{display:flex;align-items:center;gap:8px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;background:#fff;border-bottom:1px solid #e3e6ec}
.status{flex:1;display:flex;align-items:center;gap:8px;font-size:15px;color:#5f6368;min-width:0}
.status span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dot{width:10px;height:10px;border-radius:50%;background:#dadce0;flex:none}
.dot.ok{background:#34a853}.dot.wait{background:#fbbc04}.dot.bad{background:#ea4335}
.icon-btn{padding:9px 12px;border-radius:12px;background:#f1f3f4;font-size:15px;font-weight:600;color:#202124;white-space:nowrap}
.icon-btn.blue{background:#e8f0fe;color:#1a73e8}
.top select{padding:8px;border-radius:12px;border:1px solid #dadce0;background:#fff;font-size:15px}
.msgs{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px 12px;display:flex;flex-direction:column;gap:12px}
.hint{margin:auto;text-align:center;color:#80868b;font-size:17px;line-height:1.5;padding:20px}
.b{max-width:88%;padding:12px 15px;border-radius:20px;line-height:1.35;word-wrap:break-word}
.b.them{align-self:flex-start;background:#fff;border:1px solid #e3e6ec;border-bottom-left-radius:6px}
.b.me{align-self:flex-end;background:#1a73e8;color:#fff;border-bottom-right-radius:6px}
.b .main{font-size:23px;font-weight:600}
.b .second{font-size:16px;margin-top:6px;opacity:.75}
.b.them .second{color:#5f6368;opacity:1}
.b .pend{font-style:italic}
.dock{background:#fff;border-top:1px solid #e3e6ec;padding:10px 12px calc(12px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px}
.live{min-height:24px;font-size:18px;color:#1a73e8;text-align:center;padding:0 6px}
.ptt{width:100%;height:110px;border-radius:26px;background:#1a73e8;color:#fff;font-size:22px;font-weight:700;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;box-shadow:0 4px 16px rgba(26,115,232,.35);transition:transform .08s,background .15s}
.ptt small{font-size:14px;font-weight:500;opacity:.85}
.ptt.rec{background:#ea4335;transform:scale(.97);box-shadow:0 0 0 8px rgba(234,67,53,.18)}
.ptt.busy{background:#5f6368}
.typer{display:flex;gap:8px}
.typer input{flex:1;min-width:0;padding:13px 14px;border-radius:14px;border:1px solid #dadce0;font-size:17px;background:#f8f9fa}
.typer button{padding:0 16px;border-radius:14px;background:#e8f0fe;color:#1a73e8;font-weight:700;font-size:16px}
.sheet{position:fixed;inset:0;background:rgba(32,33,36,.55);display:flex;align-items:flex-end;justify-content:center;z-index:10}
.sheet .card{background:#fff;width:100%;max-width:640px;border-radius:24px 24px 0 0;padding:22px 20px calc(22px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px;max-height:100%;overflow:auto}
.qr{background:#fff;padding:8px;border-radius:16px;align-self:center;width:min(78vw,340px)}
.qr svg{width:100%;height:auto;display:block}
.link{font-size:15px;color:#1a73e8;text-align:center;word-break:break-all;user-select:all;-webkit-user-select:all}
.row{display:flex;gap:8px}.row>*{flex:1}
.toast{position:fixed;left:50%;bottom:calc(150px + env(safe-area-inset-bottom));transform:translateX(-50%);background:#202124;color:#fff;padding:10px 16px;border-radius:12px;font-size:15px;z-index:20;max-width:90%;text-align:center}

.ptt.hf{background:#188038;box-shadow:0 4px 16px rgba(24,128,56,.35)}
.ptt.hf.rec{background:#ea4335}
.b.typing{opacity:.75;border-style:dashed}
.b .retry{margin-top:8px;padding:8px 12px;border-radius:12px;background:#fce8e6;color:#c5221f;font-size:15px;font-weight:600}
.diag{font:11px/1.3 ui-monospace,monospace;color:#888;white-space:pre-wrap;text-align:center;padding:2px 6px}
