:root{--bg: radial-gradient(circle at 20% 20%, #0e1a2b, #0a1220 40%, #050a16 75%);--panel: rgba(255, 255, 255, .05);--panel-strong: rgba(255, 255, 255, .12);--text: #e7ecff;--muted: #93a4c8;--accent: #7df0c4;--accent-strong: #4fe1a4;--danger: #ff6b6b;--shadow: 0 16px 48px rgba(0, 0, 0, .35);--app-visual-height: 100svh;--app-visual-offset-top: 0px;color-scheme:dark}html{height:100%;width:100%;overflow-x:hidden}*{box-sizing:border-box}body{margin:0;height:100vh;height:100dvh;width:100%;overflow:hidden;overflow-x:hidden;font-family:Space Grotesk,Segoe UI,Helvetica Neue,sans-serif;background:var(--bg);color:var(--text)}a{color:var(--accent)}#root{height:100%;min-height:0;width:100%;overflow-x:hidden;padding:10px;display:flex}.page{width:100%;max-width:100%;min-width:0;height:100%;min-height:0;margin:0;display:flex;flex-direction:column;gap:6px}.code-input.copied{box-shadow:none}.verify-input{display:flex;align-items:center;background:var(--panel-strong);padding:10px 12px;border-radius:4px;border:1px solid rgba(255,255,255,.08)}.verify-input input{width:100%;padding:10px 12px;border-radius:4px;border:1px solid rgba(255,255,255,.18);background:#ffffff14;color:var(--text)}.verify-requests-inline{margin-top:8px;display:flex;flex-direction:column;gap:6px}.verify-row{display:grid;grid-template-columns:auto auto 1fr auto;align-items:center;gap:8px;background:var(--panel-strong);border:1px solid rgba(255,255,255,.08);padding:8px 10px;border-radius:4px}.verify-msg{color:var(--text);font-size:13px}.verify-actions{display:flex;gap:6px}.verify-actions .approve{background:linear-gradient(135deg,#7df0c4,#4fe1a4);color:#04101f;border:1px solid rgba(125,240,196,.55);box-shadow:0 10px 26px #4fe1a459}.verify-actions .secondary{background:#ff6b6b29;color:#ffb5b5;border:1px solid rgba(255,107,107,.45)}.verify-banner{margin-top:8px;padding:10px 12px;border-radius:4px;border:1px solid rgba(255,208,128,.35);background:linear-gradient(90deg,#ffd0802e,#ffa64d29);color:#ffd080;font-weight:700;letter-spacing:.02em;text-align:left;box-shadow:0 10px 24px #0003}.waiting-chip{display:inline-flex;align-items:center;padding:6px 10px;border-radius:4px;font-weight:800;letter-spacing:.02em;background:linear-gradient(90deg,#ffb347,#ff9a2f);color:#1f1400;border:1px solid rgba(255,195,87,.9);box-shadow:0 10px 20px #ffa6364d}.safety-popover{position:fixed;background:linear-gradient(135deg,#0f3d2c,#0d2d21);color:#dff7ea;padding:5px 6px;border-radius:4px;box-shadow:0 10px 22px #00000042;width:max-content;max-width:calc(100vw - 16px);overflow:auto;z-index:999;border:1px solid rgba(120,255,200,.16)}.safety-popover__shield{flex:0 0 16px;width:16px;height:16px;color:#8ff7d1}.safety-popover__code{font-size:13px;font-weight:800;letter-spacing:.12em;margin:0;white-space:nowrap;flex:0 0 auto;font-variant-numeric:tabular-nums}.safety-popover__row{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.safety-popover button.secondary.tiny{background:#78ffc81f;color:#dff7ea;border:1px solid rgba(120,255,200,.3);padding:4px 8px;min-width:unset;height:26px;font-size:12px;flex:0 0 auto}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000a6;display:flex;align-items:flex-start;justify-content:center;padding-top:8vh;z-index:999}.modal-card{background:#090f19f0;border:1px solid rgba(255,255,255,.16);border-radius:4px;padding:16px;width:min(420px,90vw);box-shadow:0 18px 48px #0000007a}.modal-title{font-weight:700;font-size:16px;margin-bottom:8px}.modal-body{display:flex;flex-direction:column;gap:8px;margin-bottom:12px;color:var(--text)}.modal-body input{width:100%;padding:10px 12px;border-radius:4px;border:1px solid rgba(255,255,255,.12);background:#ffffff0f;color:var(--text)}.modal-actions{display:flex;justify-content:flex-end;gap:8px}button{background:linear-gradient(135deg,var(--accent),var(--accent-strong));color:#04101f;border:1px solid rgba(125,240,196,.35);border-radius:4px;padding:9px 12px;font-size:14px;font-weight:700;cursor:pointer;transition:transform .08s ease,box-shadow .12s ease,opacity .12s ease;box-shadow:0 10px 28px #00000059;white-space:nowrap;text-align:center}button:hover{transform:translateY(-1px)}button.secondary{background:#ffffff14;color:var(--text);border:1px solid rgba(255,255,255,.15);box-shadow:none}button.danger{background:#ff6b6b29;color:#ffb5b5;border:1px solid rgba(255,107,107,.45);box-shadow:none}button.tiny{padding:6px 10px;font-size:12px;border-radius:4px}button:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}.user-bar{display:grid;grid-template-columns:2fr 1fr;gap:12px;padding:12px;background:var(--panel);border:1px solid rgba(255,255,255,.08);border-radius:4px;box-shadow:var(--shadow);width:100%;max-width:100%;min-width:0;flex:0 0 auto}.alias-block,.mode-switch{display:flex;flex-direction:column;gap:8px}.label{color:var(--muted);font-size:13px;letter-spacing:.02em}.alias-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.alias-chip{display:inline-flex;align-items:center;gap:6px;background:var(--panel-strong);color:var(--text);padding:6px 10px;border-radius:4px;font-weight:700;letter-spacing:.02em;line-height:1.1;box-shadow:0 8px 18px #00000047;border:1px solid rgba(255,255,255,.08)}.alias-chip--clickable{cursor:pointer;box-shadow:0 8px 18px #00000059,0 0 0 1px #ffffff1f;transition:transform .08s ease,box-shadow .12s ease}.alias-chip--clickable:hover{transform:translateY(-1px)}.alias-chip--tiny{padding:4px 8px;border-radius:4px;font-size:12px}.alias-chip--stacked{display:inline-flex;flex-direction:column;align-items:flex-start;line-height:1.1}.alias-prefix{font-weight:700}.alias-chip--stacked .alias-prefix{font-weight:400;font-size:13px}.alias-suffix{opacity:.8;font-size:11px}.alias-line input{flex:0 0 170px;max-width:170px;padding:8px 10px;border-radius:4px;border:1px solid rgba(255,255,255,.12);background:#ffffff0d;color:var(--text)}.mode-options{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.mode-options label{display:flex;align-items:center;gap:6px;font-size:14px;cursor:pointer}.mode-options input{accent-color:var(--accent)}.layout{display:grid;grid-template-columns:minmax(240px,30%) minmax(0,1fr);gap:6px;flex:1 1 auto;width:100%;max-width:100%;height:0;min-height:0;align-items:stretch;overflow:hidden}.sidebar{background:var(--panel);border:1px solid rgba(255,255,255,.08);border-radius:4px;padding:12px;display:flex;flex-direction:column;gap:12px;min-height:0;max-height:none;height:100%;max-width:100%;min-width:0;overflow:hidden;box-shadow:var(--shadow)}.dropzone{position:relative;border:1px dashed rgba(255,255,255,.25);border-radius:4px;display:flex;align-items:center;justify-content:center;padding:12px 16px;min-height:40px;font:inherit;line-height:1.2;white-space:normal;text-align:center;color:var(--muted);background:#ffffff08;box-shadow:none;transition:border-color .12s ease,background-color .12s ease,color .12s ease}.dropzone:disabled{cursor:default;opacity:1}.dropzone:hover{transform:none}@media (any-hover: hover){.dropzone:not(:disabled,.active):hover{border-color:var(--accent);color:var(--accent);background-color:#7df0c41a}}.dropzone.active{border-color:var(--accent);color:var(--accent);background:#7df0c40f}.dropzone-label[aria-hidden=true]{opacity:0}.dropzone-drag-hint{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding-inline:8px;pointer-events:none}.member-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:4px}.user-card{background:var(--panel-strong);border:1px solid rgba(255,255,255,.08);border-radius:4px;padding:12px;display:flex;flex-direction:column;gap:10px;box-shadow:0 10px 24px #00000059;min-width:0}.user-card__header{display:flex;justify-content:space-between;align-items:center;gap:10px}.user-name{display:flex;align-items:center;gap:8px;font-weight:700;font-size:16px}.pill{background:#7df0c426;color:var(--accent);padding:2px 8px;border-radius:4px;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.pill-admin{background:linear-gradient(135deg,#ffdf7f,#ffb347);color:#3a2600;border:1px solid rgba(255,191,87,.65);box-shadow:0 8px 18px #ffb3474d}.share-count{background:#8fb5ff29;color:#a6c2ff;padding:4px 8px;border-radius:4px;font-size:12px;letter-spacing:.01em}.muted{color:var(--muted);font-size:13px}.file-list{display:flex;flex-direction:column;gap:10px}.file-item{background:#ffffff0a;border:1px solid rgba(255,255,255,.08);border-radius:4px;padding:10px;display:flex;flex-direction:column;gap:6px}.file-row{display:flex;justify-content:space-between;gap:12px;align-items:center;min-width:0}.file-meta{display:flex;flex-direction:column;gap:6px;min-width:0}.file-name-line{display:flex;align-items:center;gap:8px}.file-icon{width:20px;text-align:center;font-size:14px;color:var(--muted)}.file-icon.status-downloading{color:var(--accent-strong)}.file-icon.status-downloaded{color:var(--accent)}.file-icon.status-cancelled{color:var(--danger)}.file-icon.status-shared{color:#8fb5ff}.file-name{font-weight:700;word-break:break-all;font-size:14px}.file-name.downloaded{color:var(--accent)}.muted-text{color:var(--muted)}.file-size{font-size:11px;color:var(--muted)}.progress{width:100%;height:8px;background:#ffffff14;border-radius:4px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(135deg,var(--accent),var(--accent-strong));transition:width .2s ease}.progress-line{display:flex;align-items:center;gap:6px}.progress-line .progress{flex:1;min-width:0}.progress-percent{width:46px;text-align:right;font-variant-numeric:tabular-nums;font-size:12px;color:var(--muted)}.progress-row{display:flex;flex-direction:column;gap:6px;margin-top:4px}.main-column{display:flex;flex-direction:column;gap:6px;min-height:0;max-height:none;height:100%;max-width:100%;min-width:0;overflow:hidden}.section-title{font-size:14px;letter-spacing:.04em;color:#d5ddf7;margin-bottom:6px;text-transform:uppercase}.panel{background:var(--panel);border:1px solid rgba(255,255,255,.08);border-radius:4px;padding:12px;box-shadow:var(--shadow);max-width:100%;min-width:0;min-height:0}.panel h3{margin:0 0 8px;letter-spacing:.02em}.chat-panel{display:flex;flex-direction:column;height:100%;flex:1;min-height:0;overflow:hidden}.chat-window{flex:1;min-height:0;height:auto;max-width:100%;border-radius:4px;border:1px solid rgba(255,255,255,.08);background:#ffffff0a;display:flex;flex-direction:column;overflow:hidden;position:relative}.chat-log{flex:1;min-height:0;max-width:100%;padding:12px;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:10px}.chat-row{display:flex;align-items:flex-start;gap:8px;width:100%;min-width:0;border-radius:4px}.chat-row.self{justify-content:flex-end}.chat-bubble{max-width:70%;min-width:0;padding:10px 12px;border-radius:4px;word-wrap:break-word;font-size:14px;background:#ffffff14;word-break:break-word}.chat-bubble.quote-selectable{cursor:pointer}.chat-bubble.self{align-self:flex-end;margin-left:auto;background:linear-gradient(135deg,var(--accent),var(--accent-strong));color:#0b1221}.chat-bubble.peer{align-self:flex-start}.chat-bubble.peer.mentioned{background:#0f64b5;color:#fffbea;border:1px solid rgba(255,251,234,.26);box-shadow:none}.chat-alias{font-weight:700;margin-bottom:4px;font-size:12px}.chat-alias-mention{flex:0 0 auto;align-self:flex-start;border:1px solid rgba(255,255,255,.08);box-shadow:0 8px 18px #00000047;cursor:pointer;text-align:left}.chat-alias-mention:hover{transform:translateY(-1px)}.chat-alias-mention:focus-visible{outline:2px solid rgba(203,213,255,.86);outline-offset:2px}.chat-input{display:flex;flex-direction:column;position:relative;padding:12px;gap:8px;align-items:stretch;flex:0 0 auto;max-width:100%;min-width:0;border-top:1px solid rgba(255,255,255,.08);background:#00000029}.mention-popover{position:absolute;z-index:6;width:max-content;min-width:0;max-width:min(180px,calc(100% - 16px));max-height:172px;padding:6px;border-radius:4px;border:1px solid rgba(255,255,255,.14);background:#090f19f5;box-shadow:0 14px 36px #0000006b;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;transform:translateY(calc(-100% - 8px));display:flex;flex-direction:column;align-items:stretch}.mention-option{width:100%;max-width:100%;min-width:0;display:flex;align-items:center;min-height:32px;padding:4px 6px;border:0;border-radius:0;background:transparent;color:var(--text);box-shadow:none;text-align:left}.mention-option:hover,.mention-option.selected{transform:none;background:#889eff57;box-shadow:none}.alias-chip--mention{max-width:100%;padding:4px 8px;border-radius:4px;font-size:12px;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:none}.composer-row{display:flex;gap:8px;align-items:flex-end;min-width:0;width:100%}.chat-input textarea{flex:1;min-height:38px;min-width:0;padding:10px 12px;border-radius:4px;border:1px solid rgba(255,255,255,.08);background:#ffffff0f;color:var(--text);font-family:inherit;font-size:15px;line-height:1.4;resize:none;overflow-y:auto;overflow-wrap:anywhere;word-break:break-word;word-wrap:break-word;box-sizing:border-box;field-sizing:content;max-height:7.2em}.composer-needs-intro .chat-log{padding-bottom:42px}.composer-needs-intro .chat-input textarea{border-color:#7df0c4;background:#7df0c424;box-shadow:inset 0 0 0 1px #7df0c459}.composer-needs-intro .chat-input textarea::placeholder{color:#b6f8df;opacity:1}.composer-ready-hint{position:absolute;bottom:100%;left:6px;z-index:2;max-width:calc(100% - 12px);box-sizing:border-box;padding:4px 8px;border-radius:3px;background:#7df0c4;color:#062c20;font-size:13px;font-weight:600;line-height:18px;pointer-events:none}.composer-ready-hint:after{content:"";position:absolute;top:100%;left:14px;border:4px solid transparent;border-top-color:#7df0c4;border-bottom:0}@supports (field-sizing: content){.chat-input textarea{field-sizing:content}}.chat-actions{display:flex;flex-direction:row;gap:8px;flex-wrap:wrap;flex:0 0 auto;min-width:0;align-self:flex-end}.chat-actions button{padding:6px 10px;font-size:13px;min-width:64px;line-height:1.2;align-self:flex-end}.chat-actions .voice-action{padding:4px 8px;min-width:36px;background:#f2c94c;color:#0f172a;border:1px solid rgba(0,0,0,.08);box-shadow:inset 0 1px #ffffff40}.voice-icon,.control-icon{display:block}.chat-actions .maximize-action{display:none}.voice-bubble{display:flex;flex-direction:column;gap:6px}.voice-row{display:flex;align-items:center;gap:10px}.voice-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 9px;min-width:62px;min-height:32px;background:#f2c94c;color:#0f172a;border:1px solid rgba(0,0,0,.08);box-shadow:inset 0 1px #ffffff40}.voice-toggle-icon{display:grid;flex:none;place-items:center;width:12px;height:12px}.voice-toggle-icon:before{content:"";box-sizing:border-box;width:0;height:0;border-block:5px solid transparent;border-inline-start:8px solid currentColor}.voice-toggle-icon.is-playing:before{width:9px;height:10px;border:0;border-inline:3px solid currentColor}.voice-duration{font-weight:400;font-size:12px;letter-spacing:.01em;font-variant-numeric:tabular-nums}.voice-status{color:var(--muted);font-size:12px}.progress.muted{background:#ffffff0d}.progress-fill.play-progress{background:linear-gradient(90deg,#ffd479,#ff9f7a)}.chat-bubble.voice{background:#ffffff14;color:inherit}.quote-note{display:grid;grid-template-columns:3px minmax(0,1fr);align-items:center;column-gap:8px;width:100%;min-width:0;padding:6px 10px;border:1px solid rgba(255,255,255,.08);border-radius:4px;background:#000000b8;color:#cdd4e2c7;font:inherit;font-weight:400;line-height:1.35;text-align:left;box-shadow:none;overflow-wrap:anywhere;word-break:break-word}.quote-note:before{content:"";grid-column:1;grid-row:1;width:3px;height:100%;align-self:stretch;min-height:1.35em;border-radius:4px;background:#b0b8c6ad}.quote-note:hover{transform:none}.quote-text{grid-column:2;min-width:0;width:100%;max-width:100%;overflow:hidden;display:block;max-height:2.7em;line-height:1.35;white-space:normal;overflow-wrap:normal;word-break:normal}.message-quote{margin-top:8px;cursor:pointer}.composer-quote{margin:0;grid-template-columns:3px minmax(0,1fr) 24px}.quote-close{grid-column:3;width:24px;height:24px;min-width:24px;padding:0;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(255,255,255,.08);background:#ffffff14;color:#cdd4e2d9;line-height:1;box-shadow:none}.quote-close:hover{transform:none}.quote-return{position:absolute;right:16px;bottom:86px;z-index:3;max-width:calc(100% - 32px);padding:7px 12px;border-radius:4px;background:#0c1019f0;color:var(--text);border:1px solid rgba(255,255,255,.14);box-shadow:0 10px 28px #00000052;font-size:13px;line-height:1.2}.quote-return:hover{transform:none}.quoted-source-highlight{animation:quote-source-flash .9s ease}@keyframes quote-source-flash{0%,to{background:transparent}30%,70%{background:#ebeef624}}.hint{margin-top:6px;font-size:12px;color:var(--muted)}.hint.error{color:#ff9c9c}.join-requests,.activity-panel{padding:12px;border:1px solid rgba(255,255,255,.1);border-radius:4px;background:#ffffff08;box-shadow:var(--shadow);flex:0 0 auto;min-height:0;max-width:100%;overflow:hidden}.request-list{display:flex;flex-direction:column;gap:10px}.request-card{padding:10px;border-radius:4px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1)}.request-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.request-actions{display:flex;gap:8px}.activity-list{padding:0;display:flex;flex-direction:column;gap:8px;max-height:72px;overflow:auto}.activity-item{display:flex;gap:10px;font-size:13px;color:var(--text)}.activity-time{color:var(--muted);width:62px;flex-shrink:0;font-variant-numeric:tabular-nums}.footer{margin-top:0;flex:0 0 auto;text-align:center;color:var(--muted);font-size:12px;letter-spacing:.04em}@media (max-width: 1080px){#root{padding:10px}.user-bar{grid-template-columns:1fr}.verify-row{grid-template-columns:1fr;justify-items:start;align-items:flex-start}.verify-row .muted{display:none}.verify-row .alias-chip{justify-self:start}.layout{grid-template-columns:minmax(240px,30%) minmax(0,1fr);height:0;min-height:0}.sidebar,.main-column{min-height:0;max-height:none;height:100%;overflow:hidden}.member-scroll{max-height:none}}@media (max-width: 640px){#root{padding:8px}.alias-chip{font-size:13px}.alias-chip--tiny{font-size:11px}.alias-line input{flex:1 1 auto;max-width:120px}.alias-line button{padding:8px 10px;font-size:12px}.verify-row{gap:6px}.verify-row .alias-chip--tiny{font-size:13px;padding:6px 10px}.verify-msg{font-size:14px;line-height:1.4}.verify-actions{width:100%;justify-content:flex-start;gap:8px}.verify-actions button{padding:7px 10px;font-size:12px}.user-name{font-size:14px;flex-wrap:wrap}.file-item{font-size:13px}.chat-panel,.chat-window{min-height:clamp(360px,60vh,520px)}.chat-input{flex-direction:column;align-items:stretch}.chat-actions{align-self:stretch;justify-content:flex-start}.code-input,.verify-input{flex-direction:row;align-items:center;gap:8px;padding:6px 8px}.topbar,.user-bar{padding:8px}.user-card{padding:10px;gap:8px}.dropzone{padding:10px;font-size:13px}}@media (max-width: 640px){html,body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}#root{padding:8px;height:auto;min-height:100vh;min-height:100svh;overflow:visible;overflow-x:hidden}.page{position:relative;height:calc(100vh - 16px);height:calc(100svh - 16px);min-height:0;gap:6px;overflow:visible}.user-bar{grid-template-columns:1fr;flex:0 1 auto;max-height:20vh;max-height:20svh;overflow-y:auto;overflow-x:hidden}.layout{display:flex;flex:1 1 auto;flex-direction:column;height:auto;min-height:0;gap:6px;overflow:hidden}.sidebar{flex:0 0 auto;max-height:24vh;max-height:24svh;height:auto;min-height:0;overflow:hidden;padding:10px}.member-scroll{max-height:none;min-height:0}.main-column{flex:1 1 0;min-height:0;height:auto}.chat-panel,.chat-window{min-height:0;height:100%}.chat-log{padding:8px;gap:8px}.chat-bubble{max-width:84%;font-size:14px}.chat-input{padding:8px}.composer-row{flex-direction:column;align-items:stretch}.chat-input textarea{width:100%;font-size:16px}.chat-actions{align-self:stretch;justify-content:flex-start;flex-wrap:nowrap}.chat-actions button{flex:0 0 auto}.chat-actions .maximize-action{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;min-width:36px;padding:4px 8px;background:#ffffff14;color:var(--text);border:1px solid rgba(255,255,255,.15);box-shadow:none}.quote-return{right:12px;bottom:112px;max-width:calc(100% - 24px)}.activity-panel{position:absolute;top:calc(100% + 8px);left:0;right:0;max-height:132px;overflow:hidden}.activity-list{max-height:96px}.footer{position:absolute;top:calc(100% + 156px);left:0;right:0;margin-top:0;padding:16px 8px calc(16px + env(safe-area-inset-bottom))}body.chat-keyboard-open{overflow:hidden}body.chat-keyboard-open .topbar,body.chat-keyboard-open .user-bar,body.chat-keyboard-open .activity-panel,body.chat-keyboard-open .footer{display:none}body.chat-keyboard-open #root{position:fixed;top:var(--app-visual-offset-top);left:0;right:0;height:var(--app-visual-height);min-height:var(--app-visual-height);padding:8px;overflow:hidden}body.chat-keyboard-open .page{height:calc(var(--app-visual-height) - 16px);min-height:0;gap:0;overflow:hidden}body.chat-keyboard-open .layout{flex:1 1 auto;min-height:0;gap:0;overflow:hidden}body.chat-keyboard-open .sidebar{max-height:20vh;max-height:20svh}body.chat-keyboard-open .chat-input{scroll-margin-bottom:0}body.ios-browser.chat-keyboard-open{overflow-x:hidden;overflow-y:auto}body.ios-browser.chat-keyboard-open #root{position:static;height:auto;min-height:100svh;padding:8px 8px max(280px,50svh);overflow:visible}body.ios-browser.chat-keyboard-open .page{height:calc(100svh - 16px);min-height:0;gap:8px;overflow:visible}body.ios-browser.chat-keyboard-open .layout{flex:1 1 auto;min-height:0;gap:8px;overflow:hidden}body.ios-browser.chat-keyboard-open .chat-input{scroll-margin-bottom:max(80px,12svh)}body.chat-maximized{overflow:hidden}body.chat-maximized .topbar,body.chat-maximized .user-bar,body.chat-maximized .sidebar,body.chat-maximized .activity-panel,body.chat-maximized .footer{display:none}body.chat-maximized #root{position:fixed;top:0;right:0;bottom:0;left:0;height:100vh;height:100dvh;min-height:100dvh;padding:8px;overflow:hidden}body.chat-maximized .page{height:calc(100vh - 16px);height:calc(100dvh - 16px);min-height:0;gap:0;overflow:hidden}body.chat-maximized .layout{flex:1 1 auto;height:100%;min-height:0;gap:0;overflow:hidden}body.chat-maximized .main-column,body.chat-maximized .chat-panel,body.chat-maximized .chat-window{flex:1 1 auto;height:100%;min-height:0}body.chat-maximized .chat-panel{padding:0;border:none;border-radius:0;background:transparent;box-shadow:none}body.chat-maximized .chat-window{border-radius:4px}body.chat-maximized.chat-keyboard-open #root{top:var(--app-visual-offset-top);bottom:auto;height:var(--app-visual-height);min-height:var(--app-visual-height)}body.chat-maximized.chat-keyboard-open .page{height:calc(var(--app-visual-height) - 16px)}body.ios-browser.chat-maximized.chat-keyboard-open{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:var(--app-visual-height);overflow:hidden}body.ios-browser.chat-maximized.chat-keyboard-open #root{position:fixed!important;inset:var(--app-visual-offset-top) 0 auto 0!important;height:var(--app-visual-height)!important;min-height:0!important;max-height:var(--app-visual-height)!important;padding:8px!important;overflow:hidden!important}body.ios-browser.chat-maximized.chat-keyboard-open .page{height:calc(var(--app-visual-height) - 16px)!important;min-height:0!important;max-height:calc(var(--app-visual-height) - 16px)!important;gap:0!important;overflow:hidden!important}body.ios-browser.chat-maximized.chat-keyboard-open .layout{flex:1 1 auto;height:100%!important;min-height:0!important;gap:0!important;overflow:hidden!important}body.ios-browser.chat-maximized.chat-keyboard-open .chat-input{scroll-margin-bottom:0}}.connection-details{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;padding:10px 14px;margin:0 0 12px;border:1px solid #334155;border-radius:10px;background:#182c4138;font-size:13px}.desktop-alerts{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.desktop-alert-label{font-weight:600}.desktop-alerts .compact-button{padding:5px 10px;font-size:12px}.desktop-alerts button[aria-pressed=true]{color:var(--accent);border-color:#8ff7d166}.desktop-alert-note{color:#a9bfd4;font-size:12px}.recovery-countdown{font-variant-numeric:tabular-nums;white-space:nowrap}.member-offline{font-size:12px;color:#f6bd64}.topbar{display:grid;grid-template-columns:132px auto minmax(0,1fr);align-items:center;gap:6px 10px;width:100%;min-width:0;max-width:100%;flex:0 0 auto;padding:6px 8px;border:1px solid rgba(255,255,255,.1);border-radius:4px;background:var(--panel)}.code-input{display:flex;min-width:0;padding:0}.code-input input{width:100%;min-width:0;height:34px;padding:4px 8px;border:1px solid rgba(255,255,255,.18);border-radius:3px;background:#ffffff0d;color:var(--text);font:16px/1.2 ui-monospace,Consolas,monospace;letter-spacing:.04em;text-align:center;font-variant-numeric:tabular-nums}.actions{display:flex;gap:4px;min-width:0}.actions button{display:inline-flex;align-items:center;justify-content:center;gap:4px;height:34px;min-width:60px;padding:4px 8px;font-size:13px;line-height:1;white-space:nowrap;box-shadow:none}.connection-icon{flex:0 0 15px}.status{min-width:0;color:var(--muted);font-size:12px;line-height:1.4;overflow-wrap:anywhere}.connection-details{flex:0 0 auto;padding:5px 8px;margin:0;gap:6px 12px;border-radius:4px}.desktop-alerts{gap:6px}.desktop-alerts .compact-button{padding:4px 7px}.panel,.sidebar,.user-bar,.activity-panel{box-shadow:none}.chat-panel{padding:0;border:0;background:transparent;box-shadow:none}.chat-log{padding:8px;gap:6px}.chat-bubble{padding:7px 9px}.chat-input{padding:6px;gap:6px}.chat-input textarea{padding:7px 8px;border-radius:3px}.chat-actions{gap:5px}.chat-actions button{min-height:32px;min-width:48px;padding:5px 8px}.footer{margin-top:0;padding:2px 0;font-size:12px}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.connection-controls button:focus-visible{outline-offset:-2px}.connection-controls .code-input input:focus-visible{border-color:var(--accent);outline:1px solid var(--accent);outline-offset:-1px}@media (max-width: 640px){.topbar{grid-template-columns:minmax(0,1fr) auto;padding:6px;gap:4px 6px}.actions button{min-width:53px;padding:4px 5px;gap:3px;font-size:12px}.status{grid-column:1 / -1;text-align:left}.connection-details{padding:4px 6px}.safety-code{font-size:12px;letter-spacing:.04em}.panel{padding:6px}.chat-panel{padding:0}.chat-log,.chat-input{padding:6px}.chat-bubble{padding:6px 8px}}.user-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:6px 8px}.alias-block{flex:1 1 auto;min-width:0;gap:6px}.alias-line{gap:6px}.alias-line input{flex:0 1 132px;width:132px;max-width:132px;min-width:70px;height:32px;padding:4px 7px}.alias-line button{height:32px;padding:4px 8px;font-size:12px}.mode-switch{flex:0 0 auto}.mode-options{gap:10px}.mode-options label{gap:4px;font-size:12px}.alias-chip{padding:4px 6px;font-size:13px;box-shadow:none}.alias-chip--tiny{padding:3px 5px;font-size:12px}.sidebar{padding:6px;gap:6px}.dropzone{padding:7px 8px;min-height:32px;font-size:13px;flex:0 0 auto}.member-scroll{display:flex;flex-direction:column;gap:4px;padding-right:2px}.user-card{flex:0 0 auto;padding:6px;gap:6px;box-shadow:none;background:#ffffff0a}.user-card__header{gap:6px}.user-card__header>div{min-width:0}.user-card__header>button{flex:0 0 auto}.user-name{flex-wrap:wrap;gap:4px;font-size:13px}.user-name .alias-chip{max-width:100%;overflow-wrap:anywhere}.pill{padding:2px 4px;border-radius:2px}.file-list{gap:5px}.file-item{padding:6px}.file-row{gap:6px}.file-meta{min-width:0}.activity-panel{padding:6px 8px}.activity-list{max-height:42px;gap:4px}.activity-item{gap:6px;font-size:12px}.activity-time{width:42px}.verify-row{padding:6px;gap:6px}@media (max-width: 640px){.user-bar{padding:5px 6px;max-height:18svh;gap:5px}.alias-line{flex-wrap:nowrap}.alias-line>.alias-chip{flex:0 1 auto;min-width:0;overflow-wrap:anywhere}.alias-line input{flex:1 1 80px;max-width:none;width:80px;font-size:16px}.alias-line button{flex:0 0 auto}.mode-options label{min-height:26px}.sidebar{padding:5px;max-height:22svh}.member-scroll{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;flex:1 1 auto;gap:4px}.user-card{padding:5px}.user-card:has(.file-list){grid-column:1 / -1}.user-card__header{align-items:flex-start}.user-name,.user-name .alias-chip{font-size:12px}.activity-list{max-height:72px}body.chat-maximized .connection-details,body.chat-keyboard-open .connection-details{display:none}}.connection-container{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;flex:0 0 auto;gap:6px 12px;min-width:0;max-width:100%;padding:6px 8px;border:1px solid rgba(255,255,255,.1);border-radius:4px;background:var(--panel)}.connection-container .topbar{flex:1 1 490px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.connection-container .connection-details{flex:0 1 auto;width:max-content;max-width:100%;margin:0 0 0 auto;padding:0;border:0;border-radius:0;background:transparent}.connection-container .desktop-alerts{flex:0 1 auto;gap:6px;font-size:12px}.desktop-alert-label,.desktop-alerts button{white-space:nowrap}.desktop-alert-note{flex-basis:100%}.desktop-alert-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:6px}.unread-badge-slot{display:inline-flex;flex:0 0 28px;width:28px;height:28px}.unread-badge{position:relative;display:inline-grid;place-items:center;width:28px;height:28px;color:#f6bd64}.unread-badge svg{position:absolute;top:0;right:0;bottom:0;left:0;width:28px;height:28px}.unread-badge>span{position:relative;padding-bottom:2px;font-size:10px;line-height:1;font-weight:700;font-variant-numeric:tabular-nums}@media (max-width: 640px){.connection-container{padding:6px;gap:5px}.connection-container .topbar{flex-basis:100%}.connection-container .connection-details{margin-left:0;width:100%}body.chat-maximized .connection-container,body.chat-keyboard-open .connection-container{display:none}}.desktop-alerts .alert-switch{position:relative;display:inline-flex;align-items:center;gap:4px;height:28px;padding:3px 6px;font-size:12px;font-weight:500;line-height:1;border-radius:3px;box-shadow:none}.desktop-alerts .alert-switch[aria-checked=true]{color:var(--accent);border-color:#8ff7d166;background:#7df0c412}.alert-switch-track{position:relative;display:block;flex:0 0 24px;width:24px;height:14px;padding:0;border-radius:3px;background:#ffffff1a;color:var(--muted);font-size:10px}.alert-switch-track:after{content:"";position:absolute;left:3px;top:3px;width:8px;height:8px;border-radius:2px;background:currentColor}.alert-switch[aria-checked=true] .alert-switch-track{color:var(--accent);background:#7df0c429}.alert-switch[aria-checked=true] .alert-switch-track:after{left:13px}.alert-permission{position:absolute;top:-4px;right:-3px;width:12px;height:12px;border-radius:3px;background:#e8b65a;color:#21190d;font-size:10px;font-weight:700;line-height:12px;text-align:center}.connection-container{--connection-code-width: 110px}.connection-container .topbar{grid-template-columns:max-content minmax(0,1fr);flex-basis:440px}.actions.connection-controls{display:grid;grid-template-columns:auto var(--connection-code-width) auto auto;align-items:center;width:max-content;gap:4px;margin:0}.connection-controls .code-input,.connection-controls .code-input input{width:var(--connection-code-width);min-width:var(--connection-code-width);max-width:var(--connection-code-width);flex:none}@media (max-width: 640px){.connection-container .topbar{grid-template-columns:minmax(0,1fr);flex-basis:100%}.connection-container .status{grid-column:1}.actions.connection-controls button{min-width:50px;padding:4px 3px}}.sidebar.sidebar-drop-active,.file-drop-active .chat-window{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.chat-row-image{container-type:inline-size}.quote-content{display:flex;align-items:center;gap:6px;min-width:0}.chat-message-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}.chat-bubble.voice>.chat-message-meta{margin-top:5px}.chat-image-thumbnail{display:block;max-width:100%;min-width:0;padding:0;border:0;border-radius:5px;background:transparent;box-shadow:none;cursor:zoom-in}.chat-image-thumbnail img{display:block;width:auto;height:auto;max-width:240px;max-width:min(240px,calc(70cqw - 18px));max-height:180px;object-fit:contain;border-radius:inherit}.chat-bubble.image-bubble{padding-bottom:3px}.chat-image-quote{padding:2px 4px;min-height:24px;border:0;background:transparent;box-shadow:none;color:#b4c2d1;font-size:.8rem;font-weight:400;line-height:1.2;white-space:nowrap}.image-bubble.self .chat-image-quote{color:#24433f}.chat-image-quote:not(:disabled):hover{transform:none;text-decoration:underline}.chat-image-quote:disabled{background:transparent;color:#8e9caa}.image-bubble.self .chat-image-quote:disabled{color:#46645e}.quote-image,.composer-image img{display:block;max-width:72px;height:44px;object-fit:contain}.quote-image{flex:none;max-width:36px;height:26px}.composer-image-preview{display:block;padding:0;border:0;background:transparent;cursor:zoom-in}.composer-image-preview:not(:disabled):hover{transform:none}.composer-image{display:flex;align-items:flex-start;gap:4px;align-self:flex-start}.image-viewer{box-sizing:border-box;width:90vw;height:min(100dvh,calc(90dvh + 44px));max-width:none;max-height:none;margin:auto;padding:0;border:0;overflow:hidden;color:#f1f5f9;background:transparent}.image-viewer[open]{display:flex;flex-direction:column}.image-viewer::backdrop{background:#050b12f0}.image-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;flex:0 0 44px;padding-inline:6px;gap:4px}.image-viewer-zoom{display:flex;align-items:center;gap:2px}.image-viewer-actions{display:flex;align-items:center;gap:4px}.image-viewer-toolbar button,.image-viewer-overlay button,.image-viewer-save{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:38px;padding:4px 8px;border:1px solid transparent;border-radius:4px;background:#26313b;box-shadow:none;color:inherit;font-size:14px;text-decoration:none;white-space:nowrap;touch-action:manipulation}.image-viewer.image-viewer-mobile{width:100vw;height:100dvh;padding:0;background:#050b12;overscroll-behavior:contain}.image-viewer-overlay{position:absolute;top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));display:flex;gap:8px}.image-viewer-overlay button,.image-viewer-overlay .image-viewer-save{min-width:44px;min-height:44px;background:#121b28e0}.image-viewer-stage{position:relative;flex:1 1 0;min-height:0;overflow:hidden;touch-action:none}.image-viewer-stage img{position:absolute;top:50%;left:50%;max-width:none;max-height:none;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none}.image-viewer-stage img.zoomed{cursor:grab}.image-viewer-stage img.dragging{cursor:grabbing}@media (max-width: 760px),(hover: none) and (pointer: coarse){.image-viewer{width:100vw;height:100dvh;background:#050b12;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.image-viewer-toolbar button,.image-viewer-save{min-height:44px}.chat-image-quote{min-height:28px;padding-inline:6px}}.screenshot-editor{width:min(96vw,1440px);height:min(93dvh,1000px);max-width:none;max-height:none;margin:auto;padding:0;overflow:hidden;border:1px solid rgba(255,255,255,.16);border-radius:8px;color:var(--text);background:#151d2c}.screenshot-editor[open]{display:flex;flex-direction:column}.screenshot-editor::backdrop{background:#050b12d1}.screenshot-editor-toolbar,.screenshot-editor-footer,.screenshot-editor-tools,.screenshot-editor-options,.screenshot-editor-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.screenshot-editor-toolbar,.screenshot-editor-footer{flex:0 0 auto;justify-content:space-between;padding:8px 10px}.screenshot-editor-toolbar button,.screenshot-editor-footer button{min-height:32px;padding:5px 9px;white-space:nowrap}.screenshot-editor-toolbar button[aria-pressed=true]{background:#7df0c424;border-color:#7df0c4a6;color:var(--accent)}.screenshot-editor-toolbar .screenshot-editor-icon,.screenshot-editor-size-picker{display:inline-grid;place-items:center;min-width:32px;height:32px;padding:0}.screenshot-editor-bold{font:700 16px/1 sans-serif}.screenshot-editor-history{display:flex;align-items:center;gap:4px;padding-left:6px;border-left:1px solid rgba(255,255,255,.12)}.screenshot-editor-size-picker{position:relative;width:40px;border:1px solid rgba(255,255,255,.16);border-radius:4px;background:#222d3f}.screenshot-editor-size-picker:hover{border-color:#fff6}.screenshot-editor-size-picker:focus-within{outline:2px solid var(--accent);outline-offset:1px}.screenshot-editor-size-picker select{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;cursor:pointer}.screenshot-editor-options label{display:inline-flex;align-items:center;gap:5px;padding-inline:3px;font-size:13px}.screenshot-editor-options input[type=color],.screenshot-editor-options select{height:32px;border:1px solid rgba(255,255,255,.16);border-radius:4px;background:#222d3f;color:var(--text)}.screenshot-editor-options input[type=color]{width:34px;padding:3px;cursor:pointer}.screenshot-editor-options select{padding:0 5px}.screenshot-editor-workspace{flex:1 1 0;min-height:0;display:grid;place-content:center;overflow:hidden;padding:12px;background:#080e18}.screenshot-editor-surface{position:relative;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none;cursor:crosshair}.screenshot-editor-surface:focus-visible{outline:1px solid rgba(154,247,211,.5);outline-offset:-1px}.screenshot-editor-surface canvas{display:block;width:100%;height:100%}.screenshot-editor-selection{position:absolute;border:1px solid #9af7d3;box-shadow:0 0 0 200vmax #050b12a1;pointer-events:none}.screenshot-editor-surface.can-select{cursor:default}.screenshot-editor-surface.can-pan{cursor:grab}.screenshot-editor-surface.can-pan:active{cursor:grabbing}.screenshot-editor-zoom,.screenshot-editor-size{color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}.screenshot-editor-overlays{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.screenshot-editor-mark-box,.screenshot-editor-inline-text{position:absolute;box-sizing:border-box;outline:1px dashed #9af7d3}.screenshot-editor-handle{position:absolute;display:grid;place-items:center;width:18px;height:18px;transform:translate(-50%,-50%);cursor:crosshair}.screenshot-editor-handle:before{content:"";width:8px;height:8px;box-sizing:border-box;border:1px solid #151d2c;border-radius:2px;background:#9af7d3;box-shadow:0 0 0 1px #9af7d3}.screenshot-editor-handle[data-resize-handle=start]:before,.screenshot-editor-handle[data-resize-handle=end]:before{border-radius:50%}.screenshot-editor-handle[data-resize-handle=nw],.screenshot-editor-handle[data-resize-handle=se]{cursor:nwse-resize}.screenshot-editor-handle[data-resize-handle=ne],.screenshot-editor-handle[data-resize-handle=sw]{cursor:nesw-resize}.screenshot-editor-handle:hover:before{background:#f0fff9}.screenshot-editor-surface.can-pan .screenshot-editor-handle{cursor:grab}.screenshot-editor-inline-text{display:block;margin:0;padding:0;border:0;border-radius:0;min-height:0;resize:none;overflow:hidden;background:transparent;caret-color:currentColor;white-space:pre;pointer-events:auto;-webkit-user-select:text;user-select:text;cursor:text}.screenshot-editor-footer .hint{margin:0}.screenshot-editor-actions{margin-left:auto}.screenshot-editor-mobile{position:fixed;inset:var(--editor-visible-top, 0px) auto auto var(--editor-visible-left, 0px);width:var(--editor-visible-width, 100vw);height:var(--editor-visible-height, 100dvh);margin:0;border:0;border-radius:0}.screenshot-editor-mobile .screenshot-editor-toolbar,.screenshot-editor-mobile .screenshot-editor-footer{flex-direction:column;align-items:stretch;gap:4px;padding-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right))}.screenshot-editor-mobile .screenshot-editor-toolbar{padding-top:max(6px,env(safe-area-inset-top));padding-bottom:4px}.screenshot-editor-mobile .screenshot-editor-footer{padding-top:4px;padding-bottom:max(6px,env(safe-area-inset-bottom))}.screenshot-editor-mobile .screenshot-editor-tools{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}@media (max-width: 375px){.screenshot-editor-mobile .screenshot-editor-tools{grid-template-columns:repeat(4,minmax(0,1fr))}}.screenshot-editor-mobile .screenshot-editor-toolbar button,.screenshot-editor-mobile .screenshot-editor-footer button,.screenshot-editor-mobile .screenshot-editor-size-picker,.screenshot-editor-mobile .screenshot-editor-options input[type=color],.screenshot-editor-mobile .screenshot-editor-options select{min-height:44px}.screenshot-editor-mobile button{touch-action:manipulation}.screenshot-editor-mobile .screenshot-editor-tools .screenshot-editor-icon{width:100%;min-width:0}.screenshot-editor-mobile .screenshot-editor-history{margin-left:auto}.screenshot-editor-mobile .screenshot-editor-workspace{padding:6px}.screenshot-editor-mobile .screenshot-editor-handle{width:34px;height:34px}.screenshot-editor-mobile .screenshot-editor-handle:before{width:10px;height:10px}.screenshot-editor-mobile .screenshot-editor-size{font-size:12px}.screenshot-editor-mobile .screenshot-editor-actions{justify-content:flex-end;margin-left:0}.chat-actions button{display:inline-flex;align-items:center;justify-content:center;height:32px;min-width:48px;padding:0 8px;font-size:13px;line-height:1.2;white-space:nowrap;align-self:flex-end}.chat-actions .screenshot-action,.chat-actions .photo-action,.chat-actions .voice-action{min-width:36px}.chat-actions .screenshot-action:not(:disabled){background:#3468c8;color:#fff}.chat-actions .photo-action:not(:disabled){background:#6159ba;color:#fff}.chat-actions .voice-action:not(:disabled){background:#f2c94c;color:#0f172a}
