:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#182b42;background:#f2f5f9;font-size:16px;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,textarea,input{font:inherit}button,a,label{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit}a:focus-visible,button:focus-visible,textarea:focus-visible,label:focus-within{outline:3px solid #78a9ff;outline-offset:3px}.landing{min-height:100dvh;display:grid;place-items:center;background:#fff}.landing main{padding:40px;max-width:640px;width:100%}.brand{font-weight:700;color:#426a99;margin-bottom:40px}.landing h1{font-size:clamp(1.7rem,5vw,2.8rem);letter-spacing:-.05em;line-height:1.35;margin:0 0 36px}.primary{display:inline-flex;align-items:center;justify-content:center;background:#255ad8;border:0;border-radius:12px;color:white;font-weight:600;padding:13px 24px;text-decoration:none}.primary:hover{background:#1749bf}.chat-shell{height:100dvh;max-width:860px;margin:auto;background:#fff;display:flex;flex-direction:column;box-shadow:0 0 60px #1d38650b}header{display:flex;gap:22px;align-items:center;padding:20px 24px;border-bottom:1px solid #e5ebf3}header h1{font-size:1.1rem;margin:0 0 4px}header #connection{font-size:.875rem;color:#66778b}.back{font-size:.875rem;text-decoration:none;color:#426a99}#messages{flex:1;overflow:auto;padding:24px;overscroll-behavior:contain;scroll-behavior:smooth}.quiet{display:block;margin:0 auto 24px;background:#f0f4fa;border:0;border-radius:8px;padding:10px 20px;color:#426a99}.message{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:22px}.message.mine{align-items:flex-end}.bubble{background:#f0f3f8;border-radius:4px 16px 16px;padding:12px 16px;max-width:min(86%,600px);overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.55}.mine .bubble{background:#255ad8;color:#fff;border-radius:16px 4px 16px 16px}.bubble a{display:block;font-weight:600}.bubble img{display:block;max-width:100%;max-height:340px;border-radius:8px;object-fit:contain;margin-bottom:7px}.meta{font-size:.8rem;color:#75859a;margin-top:6px}.retry{border:0;background:transparent;color:#b33142;font-size:.875rem;text-decoration:underline}#composer{padding:16px 20px max(16px,env(safe-area-inset-bottom));display:flex;align-items:flex-end;gap:10px;border-top:1px solid #e5ebf3;background:#fff}textarea{resize:none;max-height:140px;min-height:48px;width:100%;padding:13px 14px;border:1px solid #dce3ed;border-radius:12px;color:inherit;background:#f8fafd;line-height:1.4}#send{min-height:48px;flex-shrink:0;padding:12px 17px}.attach{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:48px;border-radius:10px;color:#486c9b;font-size:1.8rem;cursor:pointer}.attach:hover{background:#f0f4fa}.attach input{position:absolute;width:1px;height:1px;opacity:0}#notice{padding:12px 20px;color:#a62d3e;background:#fff2f3;font-size:.875rem}#attachment{padding:12px 24px;background:#edf3ff;overflow-wrap:anywhere;font-size:.875rem}#attachment button{border:0;background:transparent;color:#315b9b;margin-left:14px} [hidden]{display:none!important}@media(max-width:600px){header{padding:16px}#messages{padding:20px 14px}#composer{padding-left:10px;padding-right:10px;gap:6px}.bubble{max-width:90%}.landing main{padding:28px}}

#push-toggle{margin-left:auto;border:1px solid #dce3ed;border-radius:9px;background:#fff;color:#315b9b;padding:8px 12px;white-space:nowrap;font-size:.875rem}#push-status{padding:10px 20px;background:#edf3ff;color:#315b9b;font-size:.8rem}

.history-status{height:24px;line-height:24px;text-align:center;font-size:.8rem;color:#75859a}
