/* Navigation uses the same face, size and weight in groups, rows and flyouts. */
#nav .nav-item,#nav .nav-subitem.active,#nav .nav-collaboration-toggle.active-parent,.collaboration-flyout .collaboration-flyout-item{font-family:Geometria,Arial,sans-serif;font-weight:400!important}
#nav .nav-item span,.collaboration-flyout-item span{font:inherit}
.chat-page .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.chat-page{min-width:0}.chat-workspace{display:grid;grid-template-columns:minmax(240px,29%) minmax(0,1fr);height:calc(100dvh - 210px);min-height:420px;border:1px solid var(--line,#dce0d7);border-radius:16px;overflow:hidden;background:#fff}
.chat-sidebar{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-right:1px solid var(--line,#dce0d7)}
.chat-sidebar .registry-tabs{flex-shrink:0;margin:0;padding:8px 12px}.chat-sidebar .registry-tabs button{font-weight:400}.chat-sidebar [aria-pressed=true]{color:#4e7000;border-bottom-color:#8cc600}
.chat-search{padding:12px;display:block}.chat-search input,.chat-picker>input{width:100%;box-sizing:border-box;border:1px solid var(--line,#dce0d7);border-radius:9px;padding:12px;font:inherit}
.chat-list{overflow:auto;flex:1}.chat-list-item{display:flex;text-align:left;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:16px;border:0;border-bottom:1px solid #eef0ec;background:none;color:inherit;font:inherit}
.chat-list-item>span:first-child{display:grid;gap:7px;min-width:0}.chat-list-item b{font-weight:500}.chat-list-item small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#73796f}.chat-list-item[aria-pressed=true]{background:#f0f6e4}.chat-unread{background:#547b00;color:white;min-width:24px;border-radius:12px;text-align:center;font-size:12px;padding:3px}
.chat-main{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-header{display:flex;align-items:center;gap:14px;padding:16px 20px;border-bottom:1px solid #eef0ec}.chat-header>div{flex:1;min-width:0}.chat-header h2{margin:0;font-size:20px;overflow-wrap:anywhere}.chat-header small{color:#73796f}.chat-header .button{font-weight:400;flex-shrink:0;display:inline-flex;align-items:center;gap:8px}.chat-header img{width:18px}
.chat-context{padding:10px 20px;color:#66705f;border-bottom:1px solid #eef0ec;max-height:140px;overflow:auto;flex-shrink:0}.chat-context summary{cursor:pointer}.chat-context>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.chat-context button,.chat-context span{font:inherit;font-size:13px;padding:6px 10px;background:#f5f7f1;border:0;border-radius:8px;color:inherit}
.chat-feed{flex:1;min-height:0;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:14px;scroll-behavior:auto}.chat-message{max-width:85%;align-self:flex-start;padding:12px 16px;background:#f4f5f2;border-radius:12px;overflow-wrap:anywhere}.chat-message.mine{align-self:flex-end;background:#eef5e1}.chat-message header{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:#66705f}.chat-message p{white-space:pre-wrap;margin:7px 0 0;font-size:14px;line-height:1.5}.chat-message .button{margin-top:10px;font-weight:400;font-size:13px}.chat-status{color:#815700;margin:0 20px;font-size:12px}
.chat-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:16px;border-top:1px solid #eef0ec}.chat-composer textarea{font:inherit;border:1px solid #dce0d7;border-radius:10px;padding:12px;resize:vertical;min-height:62px;max-height:160px;width:100%;box-sizing:border-box}.chat-composer .form-error{grid-column:1/-1;margin:0}.chat-composer .button{font-weight:400;align-self:end}.chat-back{display:none!important}.chat-older{align-self:center;font-weight:400;font-size:12px;margin-top:8px}
.chat-create [data-chat-client-fields]{display:grid;gap:16px}.chat-create [hidden]{display:none!important}.chat-create label .button{font-weight:400;justify-content:flex-start;text-align:left;white-space:normal}.chat-picker{display:grid;gap:16px;padding:24px;max-height:75dvh;grid-template-rows:auto minmax(80px,1fr) auto auto auto}.chat-picker-list{overflow:auto;display:grid;align-content:start;gap:4px}.chat-picker-list label{display:flex;align-items:center;gap:12px;padding:10px;border-radius:8px;cursor:pointer}.chat-picker-list label:hover{background:#f4f7ef}.chat-picker-list input{width:18px;height:18px;flex-shrink:0}.chat-picker-list span{display:grid;gap:4px}.chat-picker-list small{color:#73796f}.chat-picker footer{display:flex;justify-content:flex-end}
@media(max-width:900px){.chat-workspace{grid-template-columns:minmax(190px,33%) minmax(0,1fr)}.chat-header{padding:12px}.chat-header h2{font-size:17px}.chat-feed{padding:12px}.chat-message{max-width:95%}}
@media(max-width:650px){.chat-workspace{display:flex;height:calc(100dvh - 180px);min-height:400px}.chat-sidebar{width:100%;border:0}.chat-main{display:none;width:100%}.chat-selected .chat-sidebar{display:none}.chat-selected .chat-main{display:flex}.chat-back{display:inline-flex!important}.chat-context{padding:10px 12px}.chat-header{gap:8px}.chat-header .button{padding:8px;font-size:12px}.chat-composer{padding:10px;gap:6px}.chat-composer .button{padding:10px;font-size:12px}.chat-picker{padding:14px}}
.chat-sidebar .registry-tabs{display:flex;gap:2px;flex-wrap:wrap;margin:0;padding:8px 10px 0}
.chat-sidebar .registry-tabs button{padding:10px 8px;font-size:13px;font-weight:400}
.chat-empty{padding:32px;max-width:480px;margin:auto;color:var(--muted);line-height:1.6}
.chat-empty h2{font-size:20px;font-weight:500;color:var(--ink)}
