.chat-hub-surface{height:100%;min-height:0}.chat-hub-surface .surface-canvas-scroll{display:flex;flex-direction:column;overflow:hidden}.chat-hub-surface .surface-sidebar{background:var(--bg)}.chat-hub-surface .surface-toolbar{min-height:60px}.chat-hub-history{padding:12px 10px;min-width:0}.chat-hub-history>header{display:flex;align-items:center;justify-content:space-between;padding:0 5px 12px}.chat-hub-history h2{font-size:16px;margin:0}.chat-hub-search{display:flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:8px;padding:0 9px;background:var(--surface);color:var(--muted)}.chat-hub-search input{min-width:0;width:100%;padding:9px 0;background:transparent;border:0;box-shadow:none;font-size:12px;color:var(--ink)}.chat-hub-search:focus-within{outline:2px solid var(--focus);outline-offset:2px}.chat-hub-search input:focus{outline:0}.chat-hub-history-options{margin:10px 0}.chat-hub-history-filter,.chat-hub-history-options{display:flex;align-items:center;gap:5px}.chat-hub-history-filter button{padding:5px 10px;border:0;border-radius:6px;background:none;color:var(--muted);font-size:12px;cursor:pointer}.chat-hub-history-filter button.selected{background:var(--soft);color:var(--ink)}.chat-hub-history-options>.icon-button{margin-left:auto}.chat-hub-history section>h3{font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:20px 8px 8px}.chat-hub-thread{display:flex;align-items:center;gap:9px;width:100%;padding:10px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);text-align:left;cursor:pointer;transition:background .13s,border-color .13s}.chat-hub-thread:hover{background:var(--soft)}.chat-hub-thread[aria-current=page]{background:var(--surface);border-color:var(--border);box-shadow:var(--shadow-card)}.chat-hub-thread>.avatar{width:30px;height:30px;min-width:30px;min-height:30px;flex:0 0 30px;border-radius:8px}.chat-hub-thread>span:not(.avatar):not(.chat-room-avatar):not(.chat-unread){min-width:0;flex:1 1;display:grid;gap:4px}.chat-hub-thread strong{font-size:12px;font-weight:550}.chat-hub-thread small,.chat-hub-thread strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-hub-thread small{font-size:10px;color:var(--muted)}.chat-room-avatar{display:inline-grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:8px;background:color-mix(in srgb,#8c7bd7 13%,var(--surface));color:#9184d8}.chat-unread{min-width:18px;height:18px;padding:0 5px;display:inline-grid;place-items:center;border-radius:9px;background:#547dd1;color:white;font-size:10px}.chat-hub-empty{font-size:12px;line-height:1.6;color:var(--muted);padding:12px 6px}.chat-history-more{display:flex;flex-direction:column;gap:8px;margin:16px 0}.chat-hub-welcome{margin:auto;max-width:480px;padding:32px;text-align:center}.chat-hub-welcome>svg{color:var(--muted);margin-bottom:16px}.chat-hub-welcome h1{font-size:26px;letter-spacing:-.03em;margin:0 0 12px}.chat-hub-welcome p{font-size:14px;color:var(--muted);line-height:1.6;margin:0 0 24px}.chat-create-modes{display:flex;gap:6px;margin-bottom:22px}.chat-create-modes button{flex:1 1;min-height:40px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--muted);font-size:12px;cursor:pointer}.chat-create-modes button.selected{color:var(--ink);border-color:var(--accent);background:var(--soft)}.chat-create-modes button:disabled{cursor:not-allowed;opacity:.62}.shared-chat-main{display:flex;flex-direction:column;flex:1 1;min-height:0;width:100%;overflow:hidden}.shared-chat-messages{flex:1 1;min-height:0;overflow:auto;padding:20px max(24px,calc((100% - 800px)/2));scrollbar-gutter:stable;overscroll-behavior:contain}.shared-chat-history-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 24px}.shared-chat-history-controls>span,.shared-chat-system{font-size:11px;color:var(--muted);line-height:1.5}.shared-chat-system{display:flex;align-items:center;gap:8px;justify-content:center;margin:18px 0}.shared-chat-system>time{font-size:10px}.shared-message{padding:14px 0 18px;max-width:800px;min-width:0}.shared-message>header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 9px;font-size:10px;color:var(--muted)}.shared-message>header .pw-actor{font-size:12px;color:var(--ink);font-weight:550}.shared-message-body{font-size:14px;line-height:1.7;min-width:0;overflow-wrap:anywhere}.shared-message.is-own .shared-message-body{padding:12px 15px;border:1px solid var(--border);border-radius:12px;background:var(--surface-raised)}.shared-message .md-view{font-size:14px}.shared-message-actions{display:flex;align-items:center;gap:10px;margin-top:8px;color:var(--muted)}.shared-message-actions>button{font-size:11px;padding:4px 6px;background:transparent;border:0;color:inherit;cursor:pointer;border-radius:5px}.shared-message-actions>button:hover{background:var(--soft);color:var(--ink)}.shared-reply-reference{font-size:11px;text-align:left;border:0;border-left:2px solid #9184d8;padding:5px 10px;margin-bottom:8px;background:transparent;color:var(--muted);cursor:pointer}.shared-chat-bottom{height:1px;flex:none}.shared-chat-composer{flex:none;max-height:45%;overflow:auto;padding:12px max(24px,calc((100% - 800px)/2)) 20px;background:var(--bg);border-top:1px solid var(--border)}.shared-chat-composer form{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface)}.shared-chat-composer form:focus-within{border-color:var(--accent)}.shared-chat-composer textarea{display:block;width:100%;border:0;box-shadow:none;background:transparent;color:var(--ink);resize:vertical;min-height:70px;max-height:220px;padding:14px;font-family:inherit;font-size:14px;line-height:1.6}.shared-chat-composer textarea:focus{outline:0}.shared-chat-composer form>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 10px 10px}.shared-chat-composer small{font-size:10px;color:var(--muted)}.shared-reply-draft{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:8px}.chat-people{padding:18px;min-width:0}.chat-people>p{font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 18px}.chat-member-form{margin-top:18px;display:grid;gap:14px}.chat-member-form .field,.chat-member-form .resource-picker{margin:0}@media(max-width:760px){.chat-hub-surface .surface-toolbar{min-height:54px}.shared-chat-messages{padding:16px}.shared-chat-composer{padding:10px 12px 12px}.shared-chat-composer textarea{font-size:16px;min-height:68px}.shared-chat-system{flex-wrap:wrap;gap:5px;font-size:10px}.shared-message .md-view,.shared-message-body{font-size:14px}.shared-message-actions>button{min-height:36px}.chat-hub-welcome{padding:22px}.chat-hub-welcome h1{font-size:23px}.shared-chat-surface .conversation-toolbar>div{min-width:0}.shared-chat-surface .conversation-toolbar strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}.chat-people{padding:16px}}@media(prefers-reduced-motion:reduce){.chat-hub-thread{transition:none}.shared-chat-messages{scroll-behavior:auto}}.shared-chat-main>.rg-action{align-self:center;width:max-content;max-width:calc(100% - 32px);margin:0 0 8px;border-radius:999px;box-shadow:var(--shadow-card)}.chat-hub-history-options>.rg-icon-action{margin-left:auto}.chat-hub-history .rg-conversation-directory{border:0;border-radius:0;background:transparent;overflow:visible}.chat-hub-history{display:flex;flex:1 1;flex-direction:column;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.chat-hub-history .rg-conversation-directory>header{padding:0 8px 8px}.chat-hub-history .rg-conversation-directory>header h3{margin:0 0 3px;font-size:14px}.chat-hub-history .rg-chat-search{margin:0 5px 10px}.chat-hub-history .rg-conversation-groups{min-width:0}.chat-hub-history .rg-conversation-group h4{margin:16px 8px 6px;color:var(--muted);font-size:10px;letter-spacing:.05em;text-transform:uppercase}.chat-hub-history .rg-conversation-group:first-child h4{margin-top:10px}.chat-hub-history .rg-conversation-list{max-height:none;overflow:visible;padding:2px 4px}.chat-hub-history .rg-conversation-kind .avatar{width:28px;height:28px;min-width:28px;min-height:28px;border-radius:8px}.chat-hub-history .rg-conversation-copy>strong{font-size:12px;font-weight:550}.chat-hub-history .rg-conversation-excerpt{font-size:10px}.chat-hub-history .rg-conversation-directory .rg-chat-footnote{padding:6px 10px}.shared-chat-surface .conversation-toolbar small{display:block;max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:600px){.shared-chat-surface .conversation-toolbar small{max-width:200px}}.shared-chat-messages .rg-chat-message.is-own .rg-chat-message-body{padding:12px 15px;border:1px solid var(--border);border-radius:12px;background:var(--surface-raised)}.chat-hub-welcome .rg-state-message{flex-direction:column;align-items:center;gap:0;padding:0;text-align:center}.chat-hub-welcome .rg-state-symbol{width:auto;height:auto;border:0;background:transparent;box-shadow:none;margin-bottom:16px}.chat-hub-welcome .rg-state-symbol svg{width:32px;height:32px}.chat-hub-welcome .rg-state-copy{display:grid;justify-items:center;padding:0}.chat-hub-welcome .rg-state-message h1{font-size:26px;letter-spacing:-.03em;margin:0 0 12px}.chat-hub-welcome .rg-state-description{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 24px}.chat-hub-welcome .rg-state-actions{justify-content:center;margin:0}