/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}:root{color-scheme:light dark;--ag0:#0b5cad;--ag1:#b3261e;--ag2:#176b3a;--ag3:#8a5a00;--ag4:#7b3fc4;--ag5:#006b70;--bg:#f8fafc;--fg:#0f172a;--card:#fff;--mut:#586274;--line:#e2e8f0;--acc:#2563eb;--on-acc:#fff;--me:#dbeafe;--warn:#b45309;--bad:#dc2626;--danger-fg:#b91c1c;--danger-bg:#b91c1c;--danger-on:#fff;--danger-hover:#fee2e2}@media (prefers-color-scheme: dark){:root{--ag0:#7dbbff;--ag1:#ff9b92;--ag2:#6fdc9c;--ag3:#e6c35a;--ag4:#cfa8ff;--ag5:#62d6d6;--bg:#0b1220;--fg:#e5e7eb;--card:#111827;--mut:#94a3b8;--line:#1f2937;--acc:#60a5fa;--on-acc:#0b1220;--me:#1e3a5f;--warn:#fbbf24;--bad:#f87171;--danger-fg:#fca5a5;--danger-bg:#b91c1c;--danger-on:#fff;--danger-hover:#451a1a}}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--fg);font:15px/1.5 system-ui,-apple-system,Noto Sans KR,sans-serif}button,input,textarea{font:inherit;color:inherit}button{white-space:nowrap;flex-shrink:0;background:var(--acc);color:var(--on-acc);border:0;border-radius:8px;padding:8px 12px;cursor:pointer;min-height:44px}button:disabled{opacity:.5;cursor:default}button.ghost,a.btn.ghost{background:transparent;color:var(--acc);border:1px solid var(--line)}button.danger{background:var(--danger-bg);color:var(--danger-on)}button.ghost.danger,.menu button.ghost.danger,.mgr button.ghost.danger{background:transparent;color:var(--danger-fg);border-color:var(--danger-fg)}button.ghost.danger:hover,button.ghost.danger:focus-visible{background:var(--danger-hover);outline:2px solid var(--danger-fg);outline-offset:-2px}button.danger:hover,button.danger:focus-visible{filter:brightness(1.12);outline:2px solid var(--fg);outline-offset:2px}button.danger:disabled{opacity:.6}input,textarea{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:8px 10px;width:100%}a.btn{display:inline-block;text-align:center;padding:8px 12px;border-radius:8px;text-decoration:none}.login{max-width:320px;margin:15vh auto;display:grid;gap:10px;padding:0 16px}.err{color:var(--bad);margin:0}.shell{display:grid;grid-template-columns:260px minmax(0,1fr);height:100%}aside{border-right:1px solid var(--line);display:flex;flex-direction:column;background:var(--card);min-height:0}aside header,.room>header{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line)}aside header b,.room>header b{flex:1}aside ul{list-style:none;margin:0;padding:0;overflow:auto;flex:1}aside li button{width:100%;text-align:left;background:transparent;color:var(--fg);border-radius:0;display:flex;justify-content:space-between}aside li button.sel{background:var(--me)}.badge{background:var(--acc);color:var(--on-acc);border-radius:10px;padding:0 7px;font-style:normal;font-size:12px}.newroom{display:flex;flex-wrap:wrap;gap:6px;padding:10px}.newroom select{flex:1 1 100%;padding:8px}.push{margin:0 10px 10px}.dot{width:10px;height:10px;border-radius:50%;background:var(--mut)}.dot.online{background:#16a34a}.dot.offline{background:var(--bad)}main{min-width:0;min-height:0;display:flex}.room{min-width:0;display:flex;flex-direction:column;flex:1;min-height:0}.msgs{min-width:0;flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:8px}.msg{max-width:min(720px,92%);padding:8px 12px;border-radius:12px;background:var(--card);border:1px solid var(--line);overflow-wrap:anywhere}.msg.me{align-self:flex-end;background:var(--me)}.msg.queued{opacity:.6}.msg p{margin:0;white-space:pre-wrap}.msg small,.approval small{color:var(--mut);display:block}.code{position:relative;margin:6px 0}.code button{position:absolute;top:4px;right:4px;min-height:44px;min-width:44px;padding:2px 10px;font-size:13px;background:var(--card)}pre{background:#7f7f7f26;padding:8px;border-radius:8px;overflow:auto;margin:4px 0;white-space:pre-wrap}.progress{color:var(--mut);font-style:italic}.approval{border:2px solid var(--warn);border-radius:12px;padding:10px 12px;background:var(--card);max-width:min(720px,96%)}.approval.allow,.approval.allow_session{border-color:#16a34a}.approval.deny,.approval.expired{border-color:var(--mut)}.approval p{margin:4px 0}.approval .row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.composer{display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--card)}.composer textarea{resize:none;max-height:30vh}.warn{color:var(--warn);font-size:13px}.hint{color:var(--mut);padding:10px 12px}.pad{padding:24px}.invite{padding:8px 12px;border-bottom:1px solid var(--line);display:grid;gap:4px}.invite code{word-break:break-all}.back{display:none}@media (max-width: 720px){.shell{grid-template-columns:minmax(0,1fr)}.shell.in-room aside{display:none}.shell:not(.in-room) main{display:none}.back{display:inline-block}}input:focus-visible,textarea:focus-visible,button:focus-visible{outline:2px solid var(--acc);outline-offset:1px}.composer{align-items:flex-end}.composer textarea{min-height:44px}@media (max-width: 720px){.msg{max-width:94%}}.composer .icon{min-width:44px;min-height:44px;padding:0 10px;font-size:18px}.composer .icon.rec{background:var(--bad);color:#fff;border-color:var(--bad)}.chips{display:flex;flex-wrap:wrap;gap:6px;padding:6px 12px 0;align-items:center}.chip{border:1px solid var(--line);background:transparent;color:var(--fg);border-radius:16px;padding:2px 12px;min-height:44px;display:inline-flex;align-items:center;gap:6px;font-size:13px}.chip.on{background:var(--acc);color:var(--on-acc);border-color:var(--acc)}.chip .x{min-height:44px;min-width:44px;padding:0;background:transparent;color:var(--mut);border-radius:50%}.tagbar{display:flex;gap:6px;flex-wrap:wrap;padding:6px 10px;border-bottom:1px solid var(--line)}.search{padding:8px 10px 0;position:relative}.hits{list-style:none;margin:4px 0 0;padding:0;max-height:40vh;overflow:auto;border:1px solid var(--line);border-radius:8px;flex:none}.hits li button{display:grid;gap:2px;width:100%;text-align:left;background:transparent;color:var(--fg);border-radius:0;white-space:normal;min-height:44px}.hits li button span{color:var(--mut);font-size:13px;overflow-wrap:anywhere}aside li.sec{display:block}aside li.sec>ul{overflow:visible}.sech{padding:6px 12px 2px;font-size:12px;color:var(--mut);text-transform:uppercase;letter-spacing:.04em}aside li button .rn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.att{margin-top:6px;display:grid;gap:4px;justify-items:start}.att img{max-width:min(320px,100%);max-height:240px;border-radius:8px;border:1px solid var(--line)}.filebtn{white-space:normal;text-align:left;overflow-wrap:anywhere;min-height:44px}.file{display:inline-block;padding:2px 8px;border:1px solid var(--line);border-radius:8px;margin-right:4px;font-size:13px}.organize{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;padding:8px 12px;border-bottom:1px solid var(--line)}.organize label{display:grid;gap:2px;font-size:13px;color:var(--mut);flex:1;min-width:140px}.room>header{flex-wrap:wrap}.termpanel{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px;padding:8px 12px;overflow:auto}.termbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.tbanner{flex:1 1 220px;padding:6px 10px;border-radius:8px;border:1px solid var(--line);background:var(--card)}.tbanner.input{border-color:var(--warn);color:var(--warn);font-weight:600}.tbanner.off{color:var(--mut)}.termhost{flex:1;min-height:240px;background:#000;border-radius:8px;padding:4px;overflow:hidden}.filepanel,.audit{border:1px solid var(--line);border-radius:8px;padding:8px;max-height:40vh;overflow:auto;background:var(--card)}.filepanel ul{list-style:none;margin:4px 0;padding:0;display:flex;flex-wrap:wrap;gap:4px}.audit table{width:100%;font-size:12px;border-collapse:collapse}.audit td{padding:2px 6px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.termpanel select{width:100%;padding:8px}.menuwrap{position:relative;display:inline-flex}.menu-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:transparent}.menu{position:absolute;top:100%;left:0;z-index:21;min-width:220px;max-width:calc(100vw - 24px);background:var(--card);border:1px solid var(--line);border-radius:8px;padding:6px;box-shadow:0 6px 20px #00000059;display:flex;flex-direction:column;gap:4px}.menu button{min-height:44px;text-align:left}.runnerpanel,.runnerpanel form{display:flex;flex-direction:column;gap:6px}.tokenbox{margin:0;padding:8px;background:var(--bg, #0b1220);border:1px solid var(--line);border-radius:6px;font-size:12px;white-space:pre-wrap;word-break:break-all;-webkit-user-select:all;user-select:all}.menu .runnerlist{list-style:none;margin:0;padding:0;overflow:visible;display:flex;flex-direction:column;gap:4px}.menu .runnerlist li{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:4px 0;border-bottom:1px solid var(--line)}.menu .runnerlist li button{width:auto;flex:1 1 40%;text-align:center}.menu .runnerlist small{white-space:nowrap;overflow-wrap:normal}.menu .runnerlist .rn{flex:1 1 8em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu .runnerlist button{min-height:44px}.menu.menu-right{left:auto;right:0}.only-mobile{display:none}@media (max-width: 720px){.only-mobile{display:inline-flex}}.room>header{flex-wrap:nowrap}.room>header .rname{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room>header .warn{flex:none;font-size:12px;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room>header button,aside header button{flex:none}.msg p{margin:0 0 6px}.msg p:last-child{margin-bottom:0}.msg .code{margin:4px 0}.msg .code pre{margin:0}.msg ul,.msg ol{margin:0 0 6px;padding-left:22px}.msg li{margin:2px 0}.msg blockquote{margin:0 0 6px;padding:2px 10px;border-left:3px solid var(--line);color:var(--mut)}.msg hr{border:0;border-top:1px solid var(--line);margin:8px 0}.msg code{background:#7f7f7f33;padding:1px 5px;border-radius:4px;font-size:.92em}.msg .code code{background:none;padding:0}.msg a{color:var(--acc);text-decoration:underline}.msg .h{font-weight:700}.msg .h1{font-size:1.2em}.msg .h2{font-size:1.1em}.tablewrap{overflow-x:auto;margin:4px 0 6px;max-width:100%}.msg table{border-collapse:collapse;font-size:.95em}.msg th,.msg td{border:1px solid var(--line);padding:4px 8px;vertical-align:top}.msg th{background:#7f7f7f26}.msg.system{align-self:center;background:transparent;border:0;padding:2px 8px}.sysnote{color:var(--mut);font-size:13px;text-align:center}[hidden]{display:none!important}.termhost{min-height:200px}.pairbox{font-size:24px;letter-spacing:4px;text-align:center;font-weight:700}.advanced summary,.runnerpanel details summary{cursor:pointer;color:var(--mut);padding:4px 0}.mgr{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:var(--bg);overflow-y:auto}.mgr-in{max-width:720px;margin:0 auto;padding:12px 16px 40px;display:flex;flex-direction:column;gap:12px;min-width:0}.mgr-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.mgr-grid{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 12px;margin:0}.mgr-grid dt{color:var(--mut)}.mgr-grid dd{margin:0;overflow-wrap:anywhere}.mgr-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.mgr-card{border:1px solid var(--line);border-radius:8px;padding:10px;display:flex;flex-direction:column;gap:8px;min-width:0;margin:8px 0}.mgr-card label{display:flex;flex-direction:column;gap:2px;font-size:13px;color:var(--mut);min-width:0}.mgr-card label.chk{flex-direction:row;align-items:center;gap:6px}.mgr-card input:not([type=checkbox]),.mgr-card select{width:100%;box-sizing:border-box;min-height:40px}.mgr-cwd{display:flex;gap:6px}.mgr-cwd input{flex:1;min-width:0}.mgr-browse{border-top:1px dashed var(--line);padding-top:8px;display:flex;flex-direction:column;gap:6px}.mgr-browse ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;max-height:240px;overflow-y:auto}.mgr-browse li button{width:100%;text-align:left;min-height:40px}.mgr-reauth{border:1px solid var(--bad);border-radius:8px;padding:10px;display:flex;flex-direction:column;gap:8px}.mgr-reauth form{display:flex;gap:6px;flex-wrap:wrap}.mgr-reauth input{flex:1;min-width:0}.mgr-hist{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}.mgr-hist li{border-bottom:1px solid var(--line);padding-bottom:6px;overflow-wrap:anywhere}.mgr-hist .st.applied{color:var(--ok, #3a9d5d)}.mgr-hist .st.rejected{color:var(--bad)}.dlg-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#00000080;display:flex;align-items:center;justify-content:center;padding:16px}.dlg{background:var(--card);color:var(--fg);border:1px solid var(--line);border-radius:12px;padding:16px;width:100%;max-width:420px;max-height:90vh;overflow:auto;display:flex;flex-direction:column;gap:10px}.dlg h2{margin:0;font-size:17px}.dlg .row{display:flex;gap:8px;flex-wrap:wrap}.dlg select{width:100%;min-height:40px}.dlgform{display:flex;flex-direction:column;gap:10px}.dlg label{display:flex;flex-direction:column;gap:4px;font-size:14px}.dlg label.chk{flex-direction:row;align-items:center;gap:8px}.dlg label.chk input{width:auto}.emptycards{padding:24px 16px;display:flex;flex-direction:column;gap:14px;align-items:stretch;max-width:520px;margin:0 auto}.emptycards .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}button.card{background:var(--card);color:var(--fg);border:1px solid var(--line);display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px;white-space:normal;text-align:left;min-height:72px}button.card span{color:var(--mut);font-size:13px}button.card:hover,button.card:focus-visible{border-color:var(--acc)}.newroom-btn{margin:8px 12px}.composer .icon{min-width:44px;min-height:44px}.composer .icon.unsupported{opacity:.6}.composer .icon.rec{color:#fff;background:#b91c1c;border-color:#b91c1c}.micbar{display:flex;align-items:center;gap:8px;padding:8px 12px;border-top:1px solid var(--line);background:var(--card);color:var(--fg)}.micbar .micprev{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fg)}.micbar button{min-height:44px;min-width:44px}.recdot{width:12px;height:12px;border-radius:50%;background:#dc2626;flex:none;animation:recpulse 1.2s ease-in-out infinite}@keyframes recpulse{50%{opacity:.35}}@media (prefers-reduced-motion: reduce){.recdot{animation:none}}.micmsg{display:flex;align-items:flex-start;gap:8px;padding:8px 12px;background:var(--card);color:var(--fg);border-top:1px solid var(--warn);font-size:14px}.micmsg span{flex:1}.micmsg button{min-height:44px;min-width:44px}.voiceset{display:flex;flex-direction:column;gap:10px;padding:8px}.voiceset label{display:flex;flex-direction:column;gap:4px}.voiceset label.chk{flex-direction:row;align-items:center;gap:8px;min-height:44px}.voiceset label.chk input{width:22px;height:22px}.voiceset select{min-height:44px}.recip{padding:6px 12px 0;background:var(--card);border-top:1px solid var(--line)}.recip.toai{border-top:3px solid var(--acc)}.recip-chips{display:flex;flex-wrap:wrap;gap:6px}.chip.rchip{min-height:44px;padding:2px 14px;font-size:14px}.chip.agentchip.on{background:var(--card);color:var(--fg);border:2px solid var(--slot, var(--acc));font-weight:600}.recip-now{font-size:13px;padding:4px 0;color:var(--mut)}.recip-now b{color:var(--fg)}.recip.toai .recip-now b{color:var(--acc)}.composer{border-top:0}.sdot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--mut);flex-shrink:0}.sdot.idle{background:#16a34a}.sdot.running,.sdot.queued{background:var(--warn)}.sdot.offline{background:var(--bad)}.mentions{list-style:none;margin:0;padding:4px 12px;display:flex;gap:6px;flex-wrap:wrap;background:var(--card)}.mentions button{min-height:44px}.infopanel{border-bottom:1px solid var(--line);padding:8px 12px;max-height:45vh;overflow:auto;background:var(--card)}.infopanel h3{margin:8px 0 4px;font-size:14px}.ailist,.plist{list-style:none;margin:0;padding:0;display:grid;gap:8px}.ailist li{display:flex;gap:10px;align-items:flex-start}.aibody{flex:1;min-width:0}.aibody small{display:block;color:var(--mut);overflow-wrap:anywhere}.plist li{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pname{flex:1 1 120px;min-width:0;overflow-wrap:anywhere}.pstate,.badge2{font-size:13px;color:var(--mut)}.badge2{border:1px solid var(--line);border-radius:10px;padding:0 8px}.status{font-size:13px;font-weight:600}.status.running,.status.queued{color:var(--warn)}.status.offline{color:var(--danger-fg)}.avatar{display:inline-flex;align-items:center;justify-content:center;border:2px solid currentColor;border-radius:50%;font-weight:700;font-size:13px;flex-shrink:0}.msg.agent .src{display:flex;align-items:center;gap:6px;color:var(--fg);font-size:13px}.msg.agent .src b{color:var(--slot, var(--fg))}.msg.agent{border-left:4px solid var(--slot, var(--line))}.msg .to{display:block;color:var(--mut);font-size:12px}.progress .prow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-style:normal}.progress .prow button{min-height:44px}.tnotice{margin:8px 12px 0;padding:8px 12px;border:1px solid var(--warn);border-radius:10px;display:flex;gap:8px;align-items:center;background:var(--card)}.tnotice span{flex:1}.typing{padding:0 12px;font-size:13px;color:var(--mut);min-height:18px}.attach-wrap{position:relative;display:inline-flex}.attach-menu{position:absolute;bottom:calc(100% + 6px);left:0;z-index:30;min-width:190px;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:4px;display:flex;flex-direction:column;box-shadow:0 6px 20px #00000040}.attach-menu button{min-height:44px;text-align:left;justify-content:flex-start;border:0}.attach-tray .att-item{max-width:100%}.attach-tray .nm{max-width:14ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attach-tray .thumb{width:36px;height:36px;object-fit:cover;border-radius:6px}.attach-tray progress{width:60px;height:8px}.attach-tray .att-item.error{border-color:var(--bad)}.attach-tray .warnnote{color:var(--warn);white-space:normal}.room.dragging{outline:2px dashed var(--acc);outline-offset:-4px}.dropnote{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;pointer-events:none;background:#2563eb1f;font-weight:600;z-index:20}.room{position:relative}.att .imgbtn{min-width:44px;min-height:44px;padding:0;border:0;background:transparent;cursor:zoom-in;display:block}.lightbox{width:min(92vw,900px);max-width:none;align-items:center}.lightbox img{max-width:100%;max-height:75vh;object-fit:contain}.delivery{font-size:12px;color:var(--mut)}.delivery.fail{color:var(--danger-fg)}.verline{display:block;text-align:center;color:var(--mut, #5b6470);font-size:12px;padding:8px 0 2px}.updbar{position:fixed;left:8px;right:8px;bottom:8px;z-index:50;display:flex;gap:8px;align-items:center;justify-content:space-between;padding:8px 12px;border-radius:10px;background:var(--card, #fff);color:var(--fg, #111);border:1px solid var(--line, #c9ced6);box-shadow:0 2px 10px #0003}.verinfo ul{list-style:none;margin:0;padding:8px;display:grid;gap:6px}.verinfo li span{color:var(--mut);overflow-wrap:anywhere}.verinfo h3{margin:8px;font-size:15px}.msg.other{align-self:flex-start;max-width:min(720px,85%);border-radius:14px 14px 14px 4px}.msg.me{max-width:min(720px,85%);border-radius:14px 14px 4px}.msg.cont.other{border-top-left-radius:14px;margin-top:-4px}.msg.cont.me{border-top-right-radius:14px;margin-top:-4px}.msg.me.cont,.msg.other.cont{border-bottom-right-radius:14px;border-bottom-left-radius:14px}.msg.me:not(.cont),.msg.me.first{border-bottom-right-radius:4px}.msg.other.first{border-bottom-left-radius:4px}.msg.me,.msg.other{overflow:visible;min-width:0}.msg.agent{align-self:center;width:min(820px,100%);max-width:100%;border-radius:10px;overflow:visible;min-width:0}.msg.agent.cont{margin-top:-4px}.msg .who{display:flex;align-items:center;gap:6px;font-size:13px;margin-bottom:2px}.msg .who b{color:var(--uc, var(--fg))}.msg .ini{display:inline-flex;width:22px;height:22px;border-radius:50%;background:var(--uc, var(--mut));color:#fff;align-items:center;justify-content:center;font-style:normal;font-size:12px}.msg{position:relative}.msg .msgmenu{position:absolute;top:2px;right:2px}.msg .msgmenu-btn{min-width:44px;min-height:44px;padding:0;opacity:1;color:var(--fg);background:transparent;border:0;font-size:20px}.msg:hover .msgmenu-btn,.msgmenu-btn:focus-visible{opacity:1}.msgmenu-pop{position:absolute;right:0;top:40px;z-index:5;display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:8px;min-width:110px;box-shadow:0 4px 14px #00000040}.msgmenu-pop button{min-height:44px;text-align:left;padding:0 12px}.msg .quote{display:block;width:100%;text-align:left;border:0;border-left:3px solid var(--acc);background:#7f7f7f26;color:var(--fg);border-radius:4px;padding:4px 8px;margin-bottom:4px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.msg .quote:disabled{cursor:default;color:var(--mut)}.msg.flash{outline:2px solid var(--acc)}.msg .fwdto{color:var(--mut);font-size:12px}.replybar{display:flex;align-items:center;gap:8px;padding:6px 12px;border-top:1px solid var(--line);border-left:3px solid var(--acc);background:var(--card);font-size:13px}.replybar>div{flex:1;min-width:0;display:flex;flex-direction:column}.replybar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--mut)}.replybar small{color:var(--mut)}.lencount{padding:2px 12px;font-size:13px;color:var(--mut)}.lencount.over{color:#c0392b;font-weight:600}.fwdsrc{margin:0 0 8px;padding:4px 10px;border-left:3px solid var(--line);color:var(--mut);max-height:120px;overflow:auto}.fwdpick{border:1px solid var(--line);border-radius:8px;margin:0 0 8px}.fwdpick label{display:flex;align-items:center;gap:6px;min-height:44px}.fwdc{display:block}.fwdc textarea{width:100%;box-sizing:border-box}.typing .dots i{font-style:normal;animation:tdot 1.2s infinite}.typing .dots i:nth-child(2){animation-delay:.2s}.typing .dots i:nth-child(3){animation-delay:.4s}@keyframes tdot{0%,60%,to{opacity:.2}30%{opacity:1}}@media (prefers-reduced-motion: reduce){.typing .dots i{animation:none;opacity:1}}.msg{height:auto;min-height:0;box-sizing:border-box;padding-right:40px}.msg.system{padding-right:8px}.msg .msgmenu{top:0;right:0}.msg .msgmenu-btn{min-width:40px}.msg .code,.msg pre,.msg table{max-width:100%;overflow-x:auto}.msg table{display:block}.msg p,.msg .quote{min-width:0}.msg.agent p{white-space:pre-wrap;overflow-wrap:anywhere}.msgs>*{flex-shrink:0}aside li button{min-height:44px}.msg,.menu,.hint,.infopanel,.dlg,.voiceset,.replybar,.mgr-card{word-break:keep-all;overflow-wrap:anywhere}.msg pre,.msg code,.msg a{word-break:normal;overflow-wrap:anywhere}.msg .code pre{overflow-wrap:normal}.menu{max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain}.msg time.sent{display:block;text-align:right;font-size:11px;color:var(--mut);margin-top:2px}.tochip-wrap{position:relative;flex-shrink:0}.tochip{min-height:44px;min-width:44px;max-width:104px;padding:0 8px;display:inline-flex;align-items:center;gap:2px;border-radius:16px;color:var(--fg);font-size:14px}.tochip.ai{border:2px solid var(--slot, var(--acc))}.tochip.ai .tcl{color:var(--slot, var(--acc));font-weight:600}.tochip .tcl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:78px}.tochip-pop{position:absolute;bottom:calc(100% + 6px);left:0;z-index:30;display:flex;flex-direction:column;min-width:150px;background:var(--card);border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 14px #00000040}.tochip-pop button{min-height:44px;text-align:left;border:0;color:var(--slot, var(--fg))}.tochip-pop button[aria-checked=true]{font-weight:700;background:var(--me)}.tochip{max-width:96px;padding:0 6px;gap:4px;font-size:13px}.tochip .tcl{max-width:56px}.tochip .cdot{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:var(--slot, var(--acc));color:var(--on-acc);font-style:normal;font-size:11px;font-weight:700;flex-shrink:0}.composer{flex-direction:column;align-items:stretch;gap:4px}.composer .tools{display:flex;gap:8px;align-items:center}.composer .inrow{display:flex;gap:8px;align-items:flex-end;min-width:0}.composer .inrow textarea{flex:1;min-width:0}.msg .msgmenu-btn{min-width:44px}.msg{padding-right:44px}.edbadge{min-height:44px;border:0;padding:0 4px;font-size:12px;color:var(--mut)}.stale{color:var(--warn)!important;font-weight:600}.usage{display:block;color:var(--muted, #888);font-size:11px;margin-top:4px;opacity:.8}.edrow{margin-bottom:8px}.code{position:relative}.code .codehead{display:flex;justify-content:flex-end}.code button{position:static;min-height:44px;min-width:44px;margin:0}.msg{user-select:text;-webkit-user-select:text}.msg button{user-select:none;-webkit-user-select:none}.msg .meta{display:flex;justify-content:flex-end;align-items:center;gap:6px;min-height:16px}.msg .meta small{display:inline;font-size:11px}.msg .meta time.sent{display:inline;margin:0}.msg .meta .edbadge{min-height:44px;margin:-14px 0;display:inline-block;font-size:11px;line-height:16px}.copytoast{position:absolute;right:44px;top:10px;background:var(--card);color:var(--fg);border:1px solid var(--line);border-radius:8px;padding:4px 8px;font-size:12px;white-space:nowrap;z-index:6}.room>header button,aside header button,.menuwrap>button,.msgmenu-btn{min-width:44px;min-height:44px}.search input{min-height:44px;box-sizing:border-box}.voiceset input[type=checkbox],label.chk input[type=checkbox]{width:44px;height:44px;margin:0}.mgr-card select{min-height:44px}.composer .tonow{display:none}@media (max-width: 600px){.recip-chips,.recip-now{display:none}.recip{padding:0}.composer{padding-top:6px}.composer .tonow{display:block;flex:1;min-width:0;text-align:right;font-size:13px;color:var(--mut);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer .tonow b{color:var(--fg)}.recip.toai+* .tonow b,.composer:has(.tochip.ai) .tonow b{color:var(--acc)}}.tnotice{position:static}.dlg .fwdpick label{flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;gap:8px}.dlg .fwdpick input[type=radio]{width:24px;height:24px;flex:none;margin:0}.voiceset label.chk,.panel label.chk,.menu label.chk,.dlg label.chk{flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;gap:8px;min-height:44px}.voiceset label.chk input[type=checkbox],.panel label.chk input[type=checkbox],.menu label.chk input[type=checkbox]{flex:none;width:44px;height:44px}.verinfo li{display:flex;flex-wrap:wrap;gap:2px 8px}.verinfo li span{overflow-wrap:anywhere;word-break:normal}.acc-runner h4{margin:12px 0 6px}.acc-card{border:1px solid var(--line, #8884);border-radius:10px;padding:10px;margin:8px 0}.acc-card.old{opacity:.75}.acc-head{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.acc-badge{font-size:12px;padding:2px 8px;border-radius:999px;background:#8883}.acc-badge.warn{background:#c8820033}.acc-email{overflow-wrap:anywhere}.acc-row{display:grid;grid-template-columns:44px 1fr 44px;gap:2px 8px;align-items:center;margin:6px 0}.acc-reset{grid-column:2 / 4;font-size:12px;opacity:.8}.acc-bar{height:10px;border-radius:6px;background:#8883;overflow:hidden;display:block}.acc-bar i{display:block;height:100%;background:#3a9a5b}.acc-bar.mid i{background:#d49a1a}.acc-bar.high i{background:#d1493f}.acc-pct{text-align:right}.acc-panel{width:min(360px,calc(100vw - 36px))}.acc-card .hint,.acc-runner .hint{padding:0;margin:2px 0}.acc-row{grid-template-columns:36px 1fr 56px}.acc-pct{white-space:nowrap}.panel label.chk,.menu label.chk{display:flex}.dlg .fwdpick input[type=radio]{width:44px;height:44px}.dlg .hint,.dlg p.hint{padding:2px 0}.infopanel h3{margin:4px 0}.foldbtn{min-height:44px;font-size:14px;font-weight:600;padding:0 6px;border:0;text-align:left}.acc-top{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;gap:8px;background:var(--bg, Canvas);padding:2px 0}.acc-lbl{white-space:nowrap}.acc-row{grid-template-columns:52px 1fr 52px;margin:3px 0}.acc-card{padding:6px 10px;margin:5px 0}button.acc-email{background:none;border:0;text-align:left;cursor:pointer;min-height:32px;font:inherit;color:inherit}.acc-nodata{grid-column:2 / 4}.runnerpanel .row{display:flex;flex-wrap:wrap;gap:6px}.composer textarea{max-height:140px;overflow-y:auto}button.acc-email{min-height:44px;min-width:44px;max-width:100%;overflow-wrap:anywhere}.menu{overflow-x:hidden;box-sizing:border-box}.acc-panel,.acc-panel *{max-width:100%;box-sizing:border-box}[data-testid=notify-settings] button:disabled{opacity:1;background:transparent;color:var(--mut);border:1px solid var(--line)}.perm-row{display:flex;gap:8px;align-items:flex-start;justify-content:space-between;margin:8px 0;min-height:44px}.perm-row small{display:block}.perm-row.restricted b{color:var(--mut)}.perm-row>span{min-width:0;overflow-wrap:anywhere}.perm-row .perm-why{color:var(--fg)}.perm-panel,.perm-panel *{max-width:100%}.perm-unrep{margin:8px 0}.perm-unrep summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.dlg .row{display:flex;gap:8px;justify-content:flex-end}.perm-row select{min-height:44px;width:auto}.perm-panel{width:min(360px,calc(100vw - 36px))}.mgr,.mgr *{max-width:100%}.mgr code,.mgr dd,.mgr-card label{overflow-wrap:anywhere}.mgr input,.mgr select{min-width:0}.tset{display:flex;flex-direction:column;gap:4px;min-height:44px}.tset small{display:block}.tset select,.tset input[type=number]{min-height:44px}.tset-chk{flex-direction:row;align-items:flex-start;gap:10px}.tset-chk input{width:24px;height:24px;margin-top:8px;flex:none}.organize .tset>b{display:block}.organize{display:flex;flex-direction:column;align-items:stretch;gap:10px}.termbar{flex-wrap:wrap}.organize label.tset-chk{display:flex;flex-direction:row;flex:none;min-width:0}.organize label.tset{flex:none}.termkeys{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.termkeys button{min-height:44px;min-width:44px;padding:0 4px;font-size:14px}
