:root{--bg: #0a0a0b;--surface: #17171a;--surface-2: #26262b;--line: #34343a;--text: #f5f5f4;--muted: #b4b4b8;--dim: #85858c;--accent: #e3825e;--accent-press: #c96a47;--green: #22c55e;--green-press: #15803d;--red: #ef4444;--red-press: #b91c1c;--amber: #f5b14a;--blue: #93c5fd}html{font-size:6.25vw}@media(min-width:480px){html{font-size:20px}#app{max-width:16rem;margin:0 auto}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#app{height:100%;margin:0}body{background:var(--bg);color:var(--text);font:1rem/1.3 system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,sans-serif;overflow:hidden;-webkit-user-select:none;user-select:none}button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer}button:disabled{opacity:.45}svg{flex:none}.screen{display:flex;flex-direction:column;height:100%;padding:.45rem .5rem .5rem}.screen.center{align-items:center;justify-content:center;text-align:center}.top{display:flex;align-items:center;min-height:2.8rem}.title{flex:1;font-size:1.2rem;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.muted{max-width:13rem;margin-top:.6rem;color:var(--muted);font-size:1rem}.body{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;margin:.4rem 0 .2rem;padding:0 .2rem}.hint{margin-top:.5rem;color:var(--dim);font-size:1rem}.chip{flex:1;min-width:0;height:2.8rem;padding:0 .6rem;border-radius:1.4rem;background:var(--surface);display:flex;align-items:center;text-align:left}.chip-lines{flex:1;min-width:0;line-height:1.1}.chip-text{display:block;font-size:1.05rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chip-host{display:block;margin-top:.1rem;font-size:.68rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chip-host.off{color:#fca5a5}.dot{flex:none;width:.55rem;height:.55rem;margin-right:.45rem;border-radius:50%;background:var(--green);box-shadow:0 0 0 .18rem #22c55e33}.dot.off{background:var(--red);box-shadow:0 0 0 .18rem #ef444433}.dot.big{width:1rem;height:1rem;margin:0}.iconbtn{flex:none;width:2.8rem;height:2.8rem;margin-left:.35rem;border-radius:50%;background:var(--surface);display:flex;align-items:center;justify-content:center}.iconbtn.first{margin-left:0;margin-right:.5rem}.iconbtn:active,.chip:active,.mode-pill:active{background:var(--surface-2)}.mode-pill{flex:none;height:2.8rem;min-width:3.6rem;margin-left:.35rem;padding:0 .5rem;border-radius:1.4rem;background:var(--surface);color:var(--muted);font-size:.8rem;font-weight:800;letter-spacing:.04em}.mode-pill.mode-default{background:#f5b14a2e;color:var(--amber)}.mode-pill.mode-acceptEdits{background:#e3825e2e;color:var(--accent)}.mode-pill.mode-plan{background:#93c5fd29;color:var(--blue)}.you{color:var(--dim);font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status{display:flex;align-items:center;margin-top:.45rem;color:var(--accent);font-size:1.05rem;font-weight:600}.status-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reply{margin-top:.35rem;font-size:1.15rem;line-height:1.3;-webkit-user-select:text;user-select:text}.reply.error{color:#fca5a5}.heard{margin-top:.3rem;color:var(--muted);font-size:1.15rem}.spinner{flex:none;width:.8rem;height:.8rem;margin-right:.45rem;border-radius:50%;border:.13rem solid rgba(227,130,94,.28);border-top-color:var(--accent);animation:spin .8s linear infinite}.spinner.big{width:2.2rem;height:2.2rem;margin:0;border-width:.2rem}.preview{margin-top:.2rem;padding:.6rem;border-radius:.8rem;background:var(--surface)}.preview-text{font-size:1.1rem}.bar{height:.2rem;margin:.55rem 0;border-radius:.1rem;background:var(--surface-2);overflow:hidden}.bar-fill{height:100%;background:var(--accent);animation:drain linear forwards}.preview-actions{display:flex}.pill{flex:1;height:3rem;border-radius:1.5rem;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:1rem;font-weight:700}.pill+.pill{margin-left:.4rem}.pill svg{margin-right:.25rem}.pill.accent{background:var(--accent)}.reply.md{font-size:1rem;line-height:1.38}.md>:first-child{margin-top:0}.md p{margin:.45rem 0}.md strong{font-weight:700}.md code{font-family:ui-monospace,Consolas,Roboto Mono,monospace;font-size:.86em;background:var(--surface-2);border-radius:.25rem;padding:.05rem .25rem}.md pre{margin:.5rem 0;padding:.5rem .6rem;background:var(--surface);border:1px solid var(--line);border-radius:.5rem;overflow-x:auto}.md pre code{background:none;padding:0;font-size:.8rem;white-space:pre}.md ul,.md ol{margin:.4rem 0;padding-left:1.2rem}.md li{margin:.2rem 0}.md li.md-sub{margin-left:1rem}.md-h{font-weight:700;margin:.7rem 0 .3rem}.md-h1{font-size:1.2rem}.md-h2{font-size:1.1rem}.md blockquote{margin:.5rem 0;padding-left:.6rem;border-left:.2rem solid var(--line);color:var(--muted)}.md hr{border:0;border-top:1px solid var(--line);margin:.7rem 0}.md-link{color:var(--accent);text-decoration:underline}.md-table{overflow-x:auto;margin:.5rem 0}.md table{border-collapse:collapse;font-size:.85rem}.md th,.md td{border:1px solid var(--line);padding:.2rem .4rem;text-align:left;vertical-align:top}.md th{background:var(--surface)}.caption{flex:none;text-align:center;font-size:.8rem;color:var(--muted)}button.caption{width:100%;padding:.35rem 0 .1rem}.caption.talk{color:var(--accent)}.btn{flex:1;height:4.6rem;border-radius:1.1rem;color:#fff;font-size:1.6rem;font-weight:800}.list{margin-top:.5rem}.row{display:block;width:100%;min-height:3.6rem;margin-bottom:.35rem;padding:.6rem .75rem;border-radius:.8rem;background:var(--surface);text-align:left}a.row{color:inherit;text-decoration:none}.row:active{background:var(--surface-2)}.row.active{box-shadow:inset 0 0 0 .15rem var(--accent)}.row.setting{margin-top:.5rem;background:none;box-shadow:inset 0 0 0 .08rem var(--line)}.size-row{display:flex;align-items:center;padding:.4rem .4rem .4rem .75rem}.size-label{flex:1;min-width:0;text-align:left}.size-btn{flex:none;width:3rem;height:3rem;margin-left:.35rem;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;justify-content:center}.size-btn:active{background:var(--line)}.row-title{font-size:1.05rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-sub{margin-top:.15rem;color:var(--muted);font-size:.8rem}.primary{flex:none;height:3.4rem;border-radius:.9rem;background:var(--accent);display:flex;align-items:center;justify-content:center;font-size:1.1rem;font-weight:800}.primary svg{margin-right:.3rem}.primary:active{background:var(--accent-press)}.input{flex:1;margin:.5rem 0;padding:.5rem;border-radius:.7rem;border:.08rem solid var(--line);background:var(--surface);color:var(--text);font-family:inherit;font-size:1.1rem;line-height:1.3;resize:none;outline:none;-webkit-user-select:text;user-select:text}.input:focus{border-color:var(--accent)}.pair{align-items:center;text-align:center}.pair .title{flex:none}.pair .sub{margin:.15rem 0 .4rem;color:var(--muted);font-size:.8rem}.digits{display:flex;justify-content:center;margin-bottom:.45rem}.digit{width:2.15rem;height:2.5rem;margin:0 .15rem;border-radius:.55rem;background:var(--surface);font-size:1.45rem;font-weight:800;line-height:2.5rem}.digit.filled{box-shadow:inset 0 0 0 .12rem var(--accent)}.keypad{display:grid;flex:1;width:100%;grid-template-columns:repeat(3,1fr);grid-auto-rows:1fr;grid-gap:.3rem}.keypad button{border-radius:.8rem;background:var(--surface);font-size:1.5rem;font-weight:700;display:flex;align-items:center;justify-content:center}.keypad button:active{background:var(--surface-2)}.keypad .key-fn{background:none;color:var(--muted)}.keypad .ok{background:var(--green);color:#fff}.toast{position:fixed;top:.5rem;left:.5rem;right:.5rem;z-index:20;padding:.6rem .7rem;border-radius:.8rem;background:#3f3f46;font-size:.95rem;box-shadow:0 .3rem 1rem #00000080;animation:rise .15s ease-out}@keyframes spin{to{transform:rotate(360deg)}}@keyframes drain{0%{width:100%}to{width:0}}@keyframes rise{0%{transform:translateY(.4rem);opacity:0}to{transform:none;opacity:1}}
