:root{--bg:#0c1022;--card:#171c3a;--ink:#eef0ff;--mute:#8e94bb;--red:#ff5f6d;--yellow:#ffc857;--green:#3ddc84}
*{box-sizing:border-box;margin:0}html,body{height:100%}
body{background:var(--bg) url(bg.svg) bottom/cover no-repeat fixed;color:var(--ink);font:16px/1.4 system-ui,-apple-system,sans-serif}
#app{display:flex;flex-direction:column;height:100dvh}
main{flex:1;overflow:auto;padding:calc(env(safe-area-inset-top) + 20px) 20px 20px}
nav{display:flex;padding-bottom:env(safe-area-inset-bottom);background:#0c1022ee;border-top:1px solid #ffffff14}
nav button{flex:1;padding:16px 0;background:none;border:0;color:var(--mute);font:inherit}nav .on{color:var(--ink);font-weight:700}
button{cursor:pointer;font:inherit;color:inherit}
h1{font-size:1.7rem}.sub{color:var(--mute);margin:6px 0 18px}
.big{display:flex;flex-direction:column;gap:14px;margin:24px 0}
.s{height:21vh;min-height:100px;border:0;border-radius:28px;font-size:1.6rem;font-weight:800;color:#10142b;opacity:.45;transition:.15s}
.s.sel{opacity:1;transform:scale(1.02)}.s.green{background:var(--green)}.s.yellow{background:var(--yellow)}.s.red{background:var(--red)}
.s.green.sel{box-shadow:0 0 40px #3ddc8466}.s.yellow.sel{box-shadow:0 0 40px #ffc85766}.s.red.sel{box-shadow:0 0 40px #ff5f6d66}
header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.plus{width:48px;height:48px;border-radius:50%;border:0;background:var(--green);color:#10142b;font-size:2rem;line-height:1}
.chips{display:flex;gap:8px;overflow-x:auto;margin-bottom:14px}
.chip{padding:8px 16px;border-radius:20px;border:1px solid #ffffff22;background:none;white-space:nowrap}.chip.on{background:var(--card);border-color:var(--ink)}
.row{display:flex;align-items:center;gap:12px;background:var(--card);border-radius:16px;padding:14px;margin-bottom:8px;width:100%;border:0;text-align:left}
.dot{width:14px;height:14px;border-radius:50%;flex:none}.dot.green{background:var(--green)}.dot.yellow{background:var(--yellow)}.dot.red{background:var(--red)}
.grow{flex:1}.mute{color:var(--mute);font-size:.9rem}
.pill{padding:8px 14px;border-radius:14px;border:1px solid #ffffff2a;background:none}
.pings{display:flex;gap:8px;margin:10px 0 16px;flex-wrap:wrap}.pings .pill{background:var(--card)}
.bub{max-width:80%;padding:10px 14px;border-radius:18px;background:var(--card);margin:6px 0;word-wrap:break-word}
.bub.me{margin-left:auto;background:#2f3a8a}.bub.ping{border:1px solid var(--green)}.bub small{display:block;color:var(--mute)}
.send{display:flex;gap:8px;margin-top:12px}input{flex:1;padding:14px;border-radius:14px;border:1px solid #ffffff2a;background:var(--card);color:var(--ink);font:inherit;width:100%}
.btn{padding:14px 18px;border-radius:14px;border:0;background:var(--green);color:#10142b;font-weight:700}
form{display:flex;flex-direction:column;gap:12px;margin-top:30vh}form .btn{width:100%}
#toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:var(--ink);color:#10142b;padding:10px 18px;border-radius:20px;opacity:0;transition:.2s;pointer-events:none}#toast.on{opacity:1}
