html,body,#root{height:100%;margin:0}body{-webkit-font-smoothing:antialiased;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f6f7f9;--panel:#fff;--border:#e2e5ea;--text:#1b1f27;--muted:#6b7280;--accent:#5b8cff;--prompt-accent:#b45cf0;--user:#e1e9ff;--assistant:#f1f3f6}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0f1115;--panel:#171a21;--border:#262b36;--text:#e6e8ec;--muted:#8b93a1;--accent:#5b8cff;--prompt-accent:#c084fc;--user:#2b3550;--assistant:#1d2330}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}button:focus,button:focus-visible,a:focus,a:focus-visible,[role=button]:focus,[role=button]:focus-visible{outline:none}.app{background:var(--bg);height:100dvh;color:var(--text);flex-direction:column;display:flex}.topbar{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:.75rem 1.25rem;display:flex}.brand{align-items:center;gap:.5rem;font-weight:600;display:flex}.brand em{color:var(--muted);font-style:normal;font-weight:400}.logo{color:var(--accent);font-size:1.3rem}.pill{border:1px solid var(--border);background:var(--panel);color:var(--text);cursor:pointer;border-radius:999px;align-items:center;gap:.5rem;padding:.35rem .8rem;font-size:.85rem;display:inline-flex}.pill .dot{background:var(--muted);border-radius:50%;width:8px;height:8px}.pill.connected .dot{background:#38d39f}.pill.disconnected .dot{background:#ff5b5b}.pill.checking .dot{background:#f5c451}.chat{flex:1;padding:1.5rem;scroll-padding-top:1rem;overflow-y:auto}.empty{text-align:center;max-width:540px;color:var(--muted);margin:12vh auto 0}.empty h1{color:var(--text);margin-bottom:.5rem}.empty code{color:var(--accent)}.messages{flex-direction:column;gap:1rem;max-width:760px;margin:0 auto;padding:0;list-style:none;display:flex}.msg{flex-direction:column;gap:.25rem;display:flex}.who{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-size:.7rem}.bubble{border-radius:12px;max-width:80%;padding:.7rem .95rem;line-height:1.45}.msg.user .bubble{background:var(--user)}.msg.assistant .bubble{background:var(--assistant);border:1px solid var(--border)}.composer{border-top:1px solid var(--border);flex-direction:column;gap:.5rem;padding:1rem 1.25rem;display:flex}.composer-row{align-items:flex-end;gap:.6rem;display:flex}.composer .attach-btn{width:42px;height:42px;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.composer .attach-btn:hover{color:var(--text)}.composer .attach-btn:disabled{opacity:.4;cursor:not-allowed}.composer .attach-btn .btn-icon{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.bubble-images{flex-wrap:wrap;gap:4px;margin-bottom:.3rem;display:flex}.bubble-image{border-radius:10px;line-height:0;display:inline-block;position:relative;overflow:hidden}.bubble-image img{object-fit:cover;max-width:220px;max-height:220px;display:block}.bubble-image.errored img{filter:brightness(.5)grayscale(.4)}.img-placeholder{background:var(--assistant);width:160px;height:120px;display:inline-block}.img-open{position:absolute;inset:0}.img-overlay{text-align:center;color:#fff;background:#00000059;justify-content:center;align-items:center;padding:.4rem;display:flex;position:absolute;inset:0}.img-overlay.error{background:#7814148c;font-size:.78rem;line-height:1.3}.photo-modal-backdrop{z-index:50;background:#0000008c;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.photo-modal{background:var(--panel);border-radius:16px;flex-direction:column;gap:.75rem;width:100%;max-width:420px;padding:1rem;display:flex;box-shadow:0 10px 40px #00000059}.photo-modal-preview{background:var(--assistant);border-radius:12px;justify-content:center;display:flex;overflow:hidden}.photo-modal-preview img{object-fit:contain;max-width:100%;max-height:50vh}.photo-modal-caption{background:var(--bg);border:1px solid var(--border);color:var(--text);font:inherit;resize:none;border-radius:14px;padding:.6rem .8rem;font-size:.95rem}.photo-modal-actions{justify-content:flex-end;gap:.6rem;display:flex}.photo-modal-actions .pm-cancel{border:1px solid var(--border);color:var(--text);cursor:pointer;background:0 0;border-radius:999px;padding:.45rem 1.1rem}.photo-modal-actions .pm-send{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:999px;padding:.45rem 1.4rem;font-weight:600}.composer textarea{background:var(--panel);border:1px solid var(--border);color:var(--text);font:inherit;resize:none;border-radius:10px;outline:none;flex:1;max-height:9rem;padding:.7rem .9rem;font-size:.95rem;line-height:1.4}.composer textarea:focus{border-color:var(--accent)}.composer button{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:10px;padding:.62rem 1.2rem;font-weight:600}.composer button:disabled{opacity:.4;cursor:not-allowed}.nav{gap:.25rem;display:flex}.tab{color:var(--muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;padding:.35rem .8rem;font-size:.9rem}.tab:hover{color:var(--text)}.tab.active{color:var(--text);background:var(--panel);border-color:var(--border)}.prompts{flex:1;width:100%;max-width:860px;margin:0 auto;padding:1.5rem;overflow-y:auto}.panel-empty{color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:.7rem;display:flex}.spinner{border:2px solid;border-top-color:#0000;border-radius:50%;width:1em;height:1em;animation:.7s linear infinite spin;display:inline-block}.spinner.lg{border-width:3px;width:1.7rem;height:1.7rem}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation-duration:1.6s}}.dot-wave{align-items:flex-end;gap:4px;height:1em;display:inline-flex}.dot-wave span{opacity:.5;background:currentColor;border-radius:50%;width:5px;height:5px;animation:1.2s ease-in-out infinite dot-wave}.dot-wave span:nth-child(2){animation-delay:.16s}.dot-wave span:nth-child(3){animation-delay:.32s}@keyframes dot-wave{0%,60%,to{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-6px)}}@media (prefers-reduced-motion:reduce){.dot-wave span{animation:none}}.banner.error{color:#ffb4b4;background:#ff5b5b1f;border:1px solid #ff5b5b;border-radius:8px;margin-bottom:1rem;padding:.6rem .9rem}.banner.info{color:#b9c8ff;background:#78a0ff1f;border:1px solid #6a8cff;border-radius:8px;margin-bottom:1rem;padding:.6rem .9rem}.prompt-picker{gap:.4rem;margin-bottom:1rem;display:flex}.chip{background:var(--panel);border:1px solid var(--border);color:var(--text);cursor:pointer;border-radius:999px;padding:.3rem .8rem}.chip.active{border-color:var(--accent)}.editor label{color:var(--muted);margin-bottom:.5rem;font-size:.85rem;display:block}.editor label code,.editor code{color:var(--accent)}.editor textarea{resize:vertical;background:var(--panel);border:1px solid var(--border);width:100%;min-height:160px;color:var(--text);border-radius:10px;outline:none;padding:.8rem;font:.9rem/1.5 ui-monospace,Menlo,Consolas,monospace}.editor textarea:focus{border-color:var(--accent)}.editor-actions{align-items:center;gap:.8rem;margin:.7rem 0 1.5rem;display:flex}.editor-actions button{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;padding:.5rem 1rem;font-weight:600}.editor-actions button:disabled{opacity:.4;cursor:not-allowed}.editor-actions .hint{color:var(--muted);font-size:.8rem}.versions h3{margin:0 0 .6rem;font-size:.95rem}.versions ul{flex-direction:column;gap:.6rem;margin:0;padding:0;list-style:none;display:flex}.version{border:1px solid var(--border);background:var(--assistant);border-radius:10px;padding:.7rem .9rem}.version.active{border-color:var(--accent)}.version-head{align-items:center;gap:.6rem;display:flex}.vnum{font-weight:600}.badge{background:var(--accent);color:#fff;border-radius:999px;padding:.1rem .5rem;font-size:.7rem}.vmeta{color:var(--muted);font-size:.8rem}.promote{border:1px solid var(--border);color:var(--text);cursor:pointer;background:0 0;border-radius:8px;margin-left:auto;padding:.25rem .7rem}.promote:hover{border-color:var(--accent)}.vbody{white-space:pre-wrap;color:var(--muted);margin:.5rem 0 0;font:.82rem/1.5 ui-monospace,Menlo,Consolas,monospace}.versions-head{justify-content:space-between;align-items:center;margin-bottom:.6rem;display:flex}.versions-head h3{margin:0}.segmented{border:1px solid var(--border);background:var(--panel);border-radius:999px;display:inline-flex;overflow:hidden}.segmented .seg{color:var(--muted);cursor:pointer;background:0 0;border:none;padding:.3rem .95rem;font-size:.8rem}.segmented .seg+.seg{border-left:1px solid var(--border)}.segmented .seg.active{background:var(--accent);color:#fff}.version-head{cursor:pointer}.version-head .chev{color:var(--muted);flex:none;width:.9rem;font-size:.8rem}.vpreview{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;margin-top:.35rem;padding-left:1.5rem;font:.82rem/1.4 ui-monospace,Menlo,Consolas,monospace;overflow:hidden}.vbody.diff{white-space:normal}.vbody.diff .dl{white-space:pre-wrap;border-radius:3px;padding:0 .3rem}.vbody.diff .dl.same{color:var(--muted)}.vbody.diff .dl.add{color:var(--text);background:#2ea0432e}.vbody.diff .dl.del{color:var(--text);background:#f851492e}.vbody.diff .sign{opacity:.7;width:1ch;margin-right:.5ch;display:inline-block}.diff-empty{color:var(--muted);margin:.5rem 0 0;font-size:.82rem;font-style:italic}.vbody.diff .diff-gap{text-align:left;width:100%;font:inherit;color:var(--muted);background:color-mix(in srgb, var(--accent) 8%, transparent);border:none;border-top:1px dashed var(--border);border-bottom:1px dashed var(--border);cursor:pointer;margin:.1rem 0;padding:.2rem .3rem .2rem 1.5ch;display:block}.vbody.diff .diff-gap:hover{color:var(--text)}.thread-actions{align-items:center;gap:.6rem;display:flex}.model-tag{color:var(--muted);background:var(--assistant);border:1px solid var(--border);border-radius:999px;padding:.2rem .55rem;font:.72rem/1 ui-monospace,Menlo,Consolas,monospace}.editor select{background:var(--panel);border:1px solid var(--border);color:var(--text);border-radius:8px;min-width:240px;padding:.55rem .7rem;font-size:.95rem}.editor select:focus{border-color:var(--accent);outline:none}.status{color:var(--muted);gap:1.5rem;font-size:.85rem;display:flex}.status code{color:var(--accent)}.users{flex:1;width:100%;max-width:680px;margin:0 auto;padding:1.5rem;overflow-y:auto}.new-user{gap:.6rem;margin-bottom:1.25rem;display:flex}.new-user input{background:var(--panel);border:1px solid var(--border);color:var(--text);border-radius:10px;outline:none;flex:1;padding:.6rem .8rem;font-size:.95rem}.new-user input:focus{border-color:var(--accent)}.new-user button{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:10px;padding:0 1.1rem;font-weight:600}.new-user button:disabled{opacity:.4;cursor:not-allowed}.user-list{flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.user-row{background:var(--panel);border:1px solid var(--border);width:100%;color:var(--text);cursor:pointer;border-radius:10px;justify-content:space-between;align-items:center;padding:.8rem 1rem;font-size:.95rem;display:flex}.user-row:hover{border-color:var(--accent)}.user-id{color:var(--muted);font-size:.8rem}.subbar{border-bottom:1px solid var(--border);align-items:center;gap:.8rem;padding:.6rem 1.25rem;display:flex}.back{border:1px solid var(--border);color:var(--text);cursor:pointer;background:0 0;border-radius:8px;padding:.3rem .7rem}.back:hover{border-color:var(--accent)}.subtitle{color:var(--text);font-weight:600}.subtitle code{color:var(--muted);font-size:.8rem;font-weight:400}.login{background:var(--bg);height:100dvh;color:var(--text);place-items:center;padding:1.5rem;display:grid}.login-card{background:var(--panel);border:1px solid var(--border);text-align:center;border-radius:16px;flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:360px;padding:2rem;display:flex}.login-card .hint{margin:0}.gbtn{justify-content:center;min-height:44px;display:flex}.topright{align-items:center;gap:.6rem;display:flex}.theme-toggle{border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:999px;justify-content:center;align-items:center;width:32px;height:32px;font-size:.95rem;line-height:1;display:inline-flex}.theme-toggle:hover{border-color:var(--accent)}.account{border:1px solid var(--border);color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border-radius:999px;padding:.35rem .8rem;font-size:.8rem}.account:hover{color:var(--text);border-color:var(--accent)}.dialog{flex-direction:column;flex:1;min-height:0;display:flex}.convo-notes{background:var(--panel);border:none;border-bottom:1px solid var(--border);width:100%;color:var(--muted);cursor:pointer;align-items:center;gap:.5rem;padding:.55rem 1.25rem;font-size:.85rem;display:flex}.convo-notes.has-unread{color:var(--text)}.convo-notes .count{margin-left:auto}.chev{width:.9em;color:var(--muted);display:inline-block}.badge-dot{background:var(--accent);border-radius:50%;width:8px;height:8px;display:inline-block}.tab-dot{background:var(--accent);vertical-align:middle;border-radius:50%;width:7px;height:7px;margin-left:.35rem;display:inline-block}.user-right{align-items:center;gap:.5rem;display:flex}.msg-meta{align-items:center;gap:.5rem;margin-top:.2rem;display:flex}.msg.user .msg-meta{flex-direction:row-reverse}.sent{color:var(--muted);font-size:.7rem}.chev-btn{border:1px solid var(--border);color:var(--muted);cursor:pointer;background:0 0;border-radius:999px;align-items:center;gap:.3rem;padding:.1rem .5rem;font-size:.72rem;display:inline-flex}.chev-btn.has-unread{border-color:var(--accent);color:var(--text)}.thread{border:1px solid var(--border);background:var(--panel);border-radius:10px;align-self:stretch;width:100%;max-width:760px;margin:.4rem auto 0;padding:.7rem}.thread-empty{color:var(--muted);margin:0 0 .5rem;font-size:.85rem}.thread-list{flex-direction:column;gap:.5rem;margin:0 0 .5rem;padding:0;list-style:none;display:flex}.fb{border-left:2px solid var(--border);padding-left:.6rem}.fb.unread{border-left-color:var(--accent)}.fb-meta{color:var(--muted);gap:.6rem;font-size:.72rem;display:flex}.fb-author{color:var(--text)}.fb-body{white-space:pre-wrap;font-size:.9rem;line-height:1.4}.thread-actions{margin:.3rem 0}.link{color:var(--accent);cursor:pointer;background:0 0;border:none;padding:0;font-size:.8rem}.thread-compose{align-items:flex-end;gap:.4rem;display:flex}.thread-compose textarea{background:var(--bg);border:1px solid var(--border);color:var(--text);font:inherit;resize:none;border-radius:8px;outline:none;flex:1;max-height:7rem;padding:.45rem .6rem;font-size:.9rem;line-height:1.4}.thread-compose textarea:focus{border-color:var(--accent)}.thread-compose button{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;padding:0 .9rem;font-weight:600}.thread-compose button:disabled{opacity:.4;cursor:not-allowed}.version.highlight{border-color:var(--accent);box-shadow:0 0 0 2px #5b8cff59}.notifications{flex:1;width:100%;max-width:720px;margin:0 auto;padding:1.5rem;overflow-y:auto}.notif-list{flex-direction:column;gap:.6rem;margin:0;padding:0;list-style:none;display:flex}.notif{border:1px solid var(--border);background:var(--panel);border-radius:10px;align-items:stretch;gap:.6rem;display:flex;overflow:hidden}.notif.prompt{border-color:var(--prompt-accent);border-left:3px solid var(--prompt-accent);background:color-mix(in srgb, var(--prompt-accent) 9%, var(--panel))}.notif.prompt .notif-ctx{color:var(--prompt-accent)}.notif-open{text-align:left;color:var(--text);cursor:pointer;background:0 0;border:none;flex:1;padding:.7rem .9rem}.notif-ctx{color:var(--muted);margin-top:.3rem;font-size:.72rem}.notif-ctx code{color:var(--accent)}.dismiss{border:none;border-left:1px solid var(--border);color:var(--muted);cursor:pointer;background:0 0;padding:0 .9rem;font-size:.8rem}.dismiss:hover{color:var(--text)}@media (width<=640px){.topbar{flex-wrap:wrap;gap:.5rem;padding:.6rem .9rem}.nav{flex-basis:100%;order:1}.nav .tab{text-align:center;flex:1}.chat,.prompts,.users{padding:1rem}.empty{margin-top:8vh}.composer textarea,.thread-compose textarea,.new-user input,.editor textarea,.editor select{font-size:16px}.composer{padding:.8rem .9rem calc(.8rem + env(safe-area-inset-bottom))}.editor select{width:100%;min-width:0}.editor-actions{flex-wrap:wrap}.status{flex-direction:column;gap:.4rem}.bubble{max-width:88%}.tab,.pill,.back,.composer button,.new-user button,.promote,.user-row,.chip{min-height:42px}}.topbar{justify-content:space-between}.account-wrap{position:relative}.avatar-btn{cursor:pointer;background:0 0;border:none;border-radius:50%;padding:0;line-height:0}.avatar{object-fit:cover;border-radius:50%;width:34px;height:34px;display:block}.avatar-fallback{background:var(--accent);color:#fff;justify-content:center;align-items:center;font-size:.9rem;font-weight:600;display:inline-flex}.menu-backdrop{z-index:40;position:fixed;inset:0}.menu{z-index:50;background:var(--panel);border:1px solid var(--border);border-radius:12px;min-width:210px;position:absolute;top:calc(100% + .4rem);right:0;overflow:hidden;box-shadow:0 10px 28px #00000047}.menu-id{border-bottom:1px solid var(--border);flex-direction:column;gap:.15rem;padding:.7rem .9rem;display:flex}.menu-name{font-size:.9rem;font-weight:600}.menu-email{color:var(--muted);font-size:.78rem}.menu-item{text-align:left;width:100%;color:var(--text);cursor:pointer;background:0 0;border:none;padding:.7rem .9rem;font-size:.9rem;display:block}.menu-item:hover{background:var(--assistant)}.bottom-nav{border-top:1px solid var(--border);background:var(--panel);padding-bottom:env(safe-area-inset-bottom);display:flex}.navi{color:var(--muted);cursor:pointer;background:0 0;border:none;flex-direction:column;flex:1;align-items:center;gap:.15rem;padding:.5rem .25rem;display:flex;position:relative}.navi-icon{font-size:1.2rem;line-height:1}.navi-dot{background:#ff5b5b;border-radius:50%;width:8px;height:8px;position:absolute;top:.35rem;left:calc(50% + .55rem)}.msg{align-items:flex-start;gap:0}.msg.user{align-items:flex-end}.msg .bubble{border-radius:12px;width:fit-content;max-width:80%;padding:.4rem .6rem .28rem;line-height:1.4}.bubble-text{white-space:pre-wrap;overflow-wrap:anywhere;display:block}.bubble-footer{justify-content:flex-end;align-items:center;gap:.35rem;margin-top:.12rem;display:flex}.time{color:var(--muted);font-size:.64rem}.chev-btn{min-height:0;color:var(--muted);cursor:pointer;background:0 0;border:none;align-items:center;gap:.15rem;margin:0;padding:0;font-size:.7rem;display:inline-flex}.chev-btn .chev{width:auto}.chev-btn .count{font-size:.64rem}.day-sep{justify-content:center;margin:.6rem 0;display:flex}.day-sep span{background:var(--panel);border:1px solid var(--border);color:var(--muted);border-radius:999px;padding:.2rem .7rem;font-size:.72rem}.bubble .thread{border:none;border-top:1px solid var(--border);background:0 0;border-radius:0;max-width:none;margin:.4rem 0 0;padding:.5rem 0 0}.user-list{gap:.1rem}.user-row{cursor:pointer;width:100%;color:var(--text);background:0 0;border:none;border-radius:10px;justify-content:flex-start;align-items:center;gap:.7rem;padding:.55rem .6rem;display:flex}.user-row:hover{background:var(--assistant)}.user-avatar{background:var(--accent);color:#fff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:38px;height:38px;font-weight:600;display:inline-flex}.user-name{text-align:left;flex:1;font-size:.95rem}.topbar,.subbar,.convo-notes,.bottom-nav{border:none}.bottom-nav{padding-top:.3rem}.navi{color:var(--muted);gap:.25rem;padding:.5rem .25rem .7rem}.navi.active{color:var(--text)}.navi-icon{border-radius:999px;justify-content:center;align-items:center;width:56px;height:30px;transition:background .15s;display:inline-flex}.navi.active .navi-icon{background:#7d879b33}.navi-svg{width:24px;height:24px}.navi-svg path{fill:none;stroke:currentColor;stroke-width:2px;stroke-linejoin:round;stroke-linecap:round}.navi.active .navi-svg path{fill:currentColor;stroke:none}.navi.active .navi-label{font-weight:600}.navi-dot{top:.4rem;left:calc(50% + .62rem)}.composer textarea,.new-user input{border-radius:20px}.thread-compose textarea{border-radius:16px}.editor textarea{border-radius:14px}.editor select{border-radius:12px}.composer .send-btn,.thread-compose .send-btn,.new-user .add-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.composer .send-btn,.new-user .add-btn{width:42px;height:42px}.thread-compose .send-btn{width:32px;height:32px}.composer .send-btn:disabled,.thread-compose .send-btn:disabled,.new-user .add-btn:disabled{opacity:.4;cursor:not-allowed}.btn-icon{fill:currentColor;width:20px;height:20px;display:block}.thread-compose .send-btn .btn-icon{width:16px;height:16px}.back{color:var(--text);cursor:pointer;background:0 0;border:none;padding:0 .2rem;font-size:1.7rem;line-height:1}.dialog-avatar{color:#fff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:34px;height:34px;font-size:.82rem;font-weight:600;display:inline-flex}.user-row{gap:.75rem;padding:.5rem .6rem}.user-avatar{width:46px;height:46px;font-size:.92rem}.user-main{text-align:left;flex-direction:column;flex:1;gap:.1rem;min-width:0;display:flex}.user-name{white-space:nowrap;text-overflow:ellipsis;flex:none;font-size:1.02rem;font-weight:600;overflow:hidden}.user-preview{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:.8rem;overflow:hidden}.user-phone{color:var(--muted);font-variant-numeric:tabular-nums;direction:ltr;margin-inline-start:.5rem;font-size:.8rem;font-weight:500}.user-phone.pending{opacity:.75;font-style:italic;font-weight:400}.state-pill{color:#fff;white-space:nowrap;vertical-align:middle;border-radius:999px;margin-inline-start:.5rem;padding:.1rem .55rem;font-size:.68rem;font-weight:600}.primary-ref.muted-ref{color:var(--muted);font-variant-numeric:tabular-nums;direction:ltr}.fab-wrap{z-index:60;flex-direction:column;align-items:flex-end;gap:.6rem;display:flex;position:fixed;bottom:5.5rem;right:1.5rem}.fab{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:50%;justify-content:center;align-items:center;width:56px;height:56px;display:flex;box-shadow:0 6px 18px #00000059}.fab .btn-icon{fill:currentColor;width:26px;height:26px;transition:transform .22s}.fab.open .btn-icon{transform:rotate(90deg)}.fab-menu{flex-direction:column;align-items:flex-end;gap:.4rem;display:flex}@keyframes fab-rise{0%{opacity:0;transform:translateY(10px)scale(.96)}to{opacity:1;transform:translateY(0)scale(1)}}.fab-menu-item{background:var(--panel);color:var(--text);border:1px solid var(--border);cursor:pointer;white-space:nowrap;border-radius:999px;align-items:center;gap:.5rem;padding:.45rem .85rem;font-size:.85rem;animation:.18s both fab-rise;display:inline-flex;box-shadow:0 3px 10px #0000004d}@media (prefers-reduced-motion:reduce){.fab .btn-icon,.fab-menu-item{transition:none;animation:none}}.fab-menu-item:hover{border-color:var(--accent)}.state-dot{border-radius:50%;flex:none;width:10px;height:10px;display:inline-block}.modal-overlay{z-index:100;background:#0000008c;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.modal{background:var(--panel);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:.9rem;width:100%;max-width:380px;padding:1.25rem;display:flex;box-shadow:0 10px 40px #00000080}.modal-title{align-items:center;gap:.5rem;margin:0;font-size:1.05rem;display:flex}.modal-field{flex-direction:column;gap:.3rem;font-size:.85rem;display:flex}.modal-field em{color:var(--muted);font-style:normal}.modal-field input,.modal-field select{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:8px;padding:.55rem .7rem;font-size:.95rem}.modal-field input:focus,.modal-field select:focus{border-color:var(--accent);outline:none}.modal-actions{justify-content:flex-end;gap:.5rem;margin-top:.2rem;display:flex}.btn-primary{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;padding:.5rem 1.1rem;font-size:.9rem}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{color:var(--muted);border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:8px;padding:.5rem 1.1rem;font-size:.9rem}.msg .bubble{border:none;position:relative}.msg.assistant .bubble{border:none;border-top-left-radius:0}.msg.user .bubble{border-top-right-radius:0}.msg.assistant .bubble:before{content:"";border:4px solid #0000;border-top-color:var(--assistant);border-right-color:var(--assistant);border-radius:2px;position:absolute;top:0;left:-4px}.msg.user .bubble:before{content:"";border:4px solid #0000;border-top-color:var(--user);border-left-color:var(--user);border-radius:2px;position:absolute;top:0;right:-4px}.bubble .thread{border-top:none}.view{flex-direction:column;flex:1;min-height:0;animation:.24s view-in;display:flex}@keyframes view-in{0%{opacity:0;transform:translate(12px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.view{animation:none}}.navi{-webkit-tap-highlight-color:transparent}.navi:focus,.navi:focus-visible{outline:none}.navi-label{font-size:.8rem}.chev{font-size:.95rem;line-height:1}.env-switcher{align-items:center;gap:6px;margin-left:auto;margin-right:12px;display:flex}.env-dot{border-radius:50%;flex:none;width:9px;height:9px}.env-select{font:inherit;border:1.5px solid var(--border,#ccc);background:var(--bg-element,transparent);color:inherit;cursor:pointer;border-radius:999px;padding:4px 8px;font-size:13px;font-weight:600}.agent-persona{color:var(--muted);border:1px solid var(--border);white-space:nowrap;border-radius:999px;flex:none;margin-inline-start:auto;padding:.25rem .7rem;font-size:.78rem;font-weight:600}.mock-matches-section{border-top:1px solid var(--border);margin-top:1.75rem;padding-top:1rem}.mock-matches-section .section-head{flex-wrap:wrap;align-items:baseline;gap:.6rem;margin-bottom:.6rem;display:flex}.mock-matches-section .section-head h3{margin:0;font-size:.95rem}.mock-matches-section .section-head .hint{color:var(--muted);font-size:.8rem}.user-row.match{border-inline-start:3px solid #0d9488}.tag-mock{color:#0d9488;vertical-align:middle;border:1px solid #0d9488;border-radius:999px;margin-inline-start:.5rem;padding:.1rem .5rem;font-size:.7rem;font-weight:600}.dash{flex-direction:column;flex:1;gap:.9rem;width:100%;max-width:1080px;margin:0 auto;padding:1.25rem;display:flex;overflow-y:auto}.dash-body{flex-direction:column;gap:.9rem;transition:opacity .15s;display:flex}.dash-busy{opacity:.55;pointer-events:none}.range-row{align-items:center;gap:.4rem;display:flex}.range-btn{border:1px solid var(--border);background:var(--panel);color:var(--text);cursor:pointer;border-radius:999px;padding:.25rem .75rem;font-size:.8rem}.range-btn.active{border-color:var(--accent);color:var(--accent);font-weight:600}.dash-refreshed{color:var(--muted);margin-inline-start:auto;font-size:.78rem}.ops-strip{background:var(--panel);border:1px solid var(--border);border-radius:12px;flex-wrap:wrap;gap:.4rem 1.1rem;padding:.55rem .8rem;display:flex}.ops-item{flex-wrap:wrap;align-items:center;gap:.35rem .7rem;display:flex}.status-pill{color:var(--text);white-space:nowrap;align-items:center;gap:.32rem;font-size:.78rem;display:inline-flex}.status-glyph{color:#fff;border-radius:50%;justify-content:center;align-items:center;width:.95rem;height:.95rem;font-size:.6rem;font-weight:700;display:inline-flex}.status-good .status-glyph{background:#0ca30c}.status-warning .status-glyph{color:#1b1f27;background:#fab219}.status-critical .status-glyph{background:#d03b3b}.kpi-row{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.7rem;display:grid}.kpi{background:var(--panel);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:.15rem;min-width:0;padding:.75rem .9rem;display:flex}.kpi-label{color:var(--muted);font-size:.76rem}.kpi-value{font-size:1.55rem;font-weight:600;line-height:1.2}.kpi-hint{color:var(--muted);font-size:.74rem}.dash-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:.7rem;display:grid}.dash-card{background:var(--panel);border:1px solid var(--border);border-radius:12px;min-width:0;padding:.8rem .9rem .5rem}.dash-card-title{color:var(--text);margin:0 0 .5rem;font-size:.85rem;font-weight:600}.dash-card-empty{color:var(--muted);text-align:center;padding:2rem 0;font-size:.82rem}.dash-table-wrap{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:.6rem .9rem}.dash-table-wrap summary{cursor:pointer;color:var(--muted);font-size:.82rem}.dash-table-scroll{margin-top:.6rem;overflow-x:auto}.dash-table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:.8rem}.dash-table th,.dash-table td{text-align:start;border-bottom:1px solid var(--border);white-space:nowrap;padding:.3rem .7rem .3rem 0}.dash-table th{color:var(--muted);font-weight:500}.linklike{color:var(--accent);cursor:pointer;font-size:inherit;background:0 0;border:none;padding:0;text-decoration:underline}.traces{flex-direction:column;gap:.9rem;width:100%;max-width:64rem;margin:0 auto;padding:.9rem;display:flex;overflow-y:auto}.trace-filters{flex-wrap:wrap;align-items:center;gap:.6rem;display:flex}.trace-kind,.trace-conv{background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:.35rem .55rem;font-size:.85rem}.trace-conv{flex:1;min-width:14rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.trace-row{cursor:pointer}.trace-row:hover td{background:var(--assistant)}.trace-muted{color:var(--muted)}.trace-kind-badge{border:1px solid var(--border);background:var(--assistant);color:var(--text);border-radius:999px;padding:.1rem .5rem;font-size:.7rem;display:inline-block}.trace-kind-badge.kind-chat{border-color:var(--accent)}.trace-kind-badge.kind-extraction,.trace-kind-badge.kind-compliance{border-color:var(--prompt-accent)}.trace-more{justify-content:center;display:flex}.trace-detail-head{flex-wrap:wrap;align-items:center;gap:.6rem;display:flex}.trace-detail-id{color:var(--muted);word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.75rem}.trace-facts{grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.7rem;display:grid}.trace-fact{flex-direction:column;gap:.15rem;font-size:.85rem;display:flex}.trace-hash{word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.72rem}.trace-links{flex-wrap:wrap;gap:1rem;margin-top:.8rem;display:flex}.trace-approx{border:1px solid var(--border);color:var(--muted);background:0 0;font-weight:500}.turn-meta{margin-bottom:.4rem;font-size:.78rem}.turn-tree{border-inline-start:2px solid var(--border);flex-direction:column;gap:.3rem;margin:0;padding:0 0 0 .9rem;list-style:none;display:flex}.turn-call-link{color:var(--text);border-radius:8px;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.25rem .4rem;font-size:.82rem;text-decoration:none;display:flex}.turn-call-link:hover{background:var(--assistant)}.turn-call.current>.turn-call-link{background:var(--user)}.turn-call-model{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.75rem}.link-badge{border:1px dashed var(--border);color:var(--muted);border-radius:999px;padding:.05rem .45rem;font-size:.68rem}.link-badge.link-job_id,.link-badge.link-message_id{border-style:solid}.turn-related-title{color:var(--muted);margin:.8rem 0 .3rem;font-size:.8rem;font-weight:500}.trace-summary-toggle{cursor:pointer;color:var(--muted);font-size:.85rem}.trace-pre{background:var(--assistant);border:1px solid var(--border);white-space:pre-wrap;word-break:break-word;border-radius:8px;margin:.5rem 0 0;padding:.6rem .7rem;font-size:.75rem;overflow-x:auto}.trace-prompt{text-align:start;font-family:inherit;font-size:.85rem;line-height:1.45}
