.sch-chat-tabs{display:flex;gap:8px;overflow:auto}
.sch-chat-tabs button{position:relative;white-space:nowrap;border:0;border-bottom:3px solid transparent;background:transparent;padding:11px 16px;color:var(--clid-blue);font:inherit;cursor:pointer}
.sch-chat-tabs button.active{border-bottom-color:var(--clid-yellow);color:var(--clid-ink);font-weight:750}
.sch-chat-tabs b,.sch-chat-badge{display:inline-grid;place-items:center;min-width:19px;height:19px;border-radius:12px;background:var(--clid-yellow);color:var(--clid-ink);font-size:11px;padding:0 4px}
.sch-chat-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(300px,1fr) minmax(230px,290px);min-height:610px;height:calc(100vh - 244px);margin:12px 14px 20px;border:1px solid var(--clid-border);border-radius:var(--clid-card-radius);background:#fff;overflow:hidden}
.sch-chat-rooms,.sch-chat-thread,.sch-chat-context{display:flex;flex-direction:column;min-width:0;min-height:0}
.sch-chat-rooms,.sch-chat-thread{border-right:1px solid var(--clid-border)}
.sch-chat-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:63px;padding:10px 14px;border-bottom:1px solid var(--clid-border)}
.sch-chat-panel-head h2{margin:0;font-size:16px}
.sch-chat-panel-head small{display:block;color:var(--clid-muted);font-size:11px}
.sch-chat-rooms>.sch-search{margin:10px 12px;width:calc(100% - 24px)}
.sch-chat-room-list{overflow:auto;min-height:0}
.sch-chat-room{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;padding:11px 12px;border:0;border-bottom:1px solid var(--clid-border);background:#fff;text-align:left;color:var(--clid-ink);cursor:pointer}
.sch-chat-room:hover{background:var(--clid-paper-soft)}
.sch-chat-room.active{background:#fff8d7;border-left:3px solid var(--clid-yellow);padding-left:9px}
.sch-chat-room strong,.sch-chat-room small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sch-chat-room strong{font-size:13px}
.sch-chat-room small{font-size:11px;color:var(--clid-muted)}
.sch-chat-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e7edf4;color:var(--clid-ink);font-size:11px;font-weight:800}
.sch-chat-messages{flex:1;min-height:0;overflow:auto;padding:16px;background:#f9fbfd}
.sch-chat-message{max-width:87%;width:max-content;margin:0 0 13px;padding:10px 12px;border:1px solid var(--clid-border);border-radius:8px;background:#fff;box-shadow:var(--clid-shadow)}
.sch-chat-message.mine{margin-left:auto;background:#fff8d7;border-color:#f1df92}
.sch-chat-message-meta{display:flex;gap:12px;align-items:center;color:var(--clid-muted);font-size:11px}
.sch-chat-message-meta strong{color:var(--clid-ink)}
.sch-chat-message p{margin:5px 0 7px;white-space:pre-wrap;overflow-wrap:anywhere}
.sch-chat-message-actions{display:flex;gap:10px;margin-top:6px}
.sch-chat-shared-task{display:grid;gap:2px;margin:8px 0;padding:9px;border:1px solid var(--clid-border);border-left:3px solid var(--clid-yellow);border-radius:4px;background:#fff;color:var(--clid-ink)}
.sch-chat-shared-task small{font-size:10px;letter-spacing:.05em;color:var(--clid-blue)}
.sch-chat-shared-task strong{font-size:12px}
.sch-chat-shared-task span{font-size:11px;color:var(--clid-muted)}
.sch-chat-message-actions button,.sch-chat-contextlink,.sch-chat-task-actions button{border:0;background:transparent;padding:3px;color:var(--clid-blue);font:inherit;font-size:11px;text-align:left;cursor:pointer}
.sch-chat-contextlink{display:block}
.sch-chat-compose{padding:10px 12px;border-top:1px solid var(--clid-border);background:#fff}
.sch-chat-compose textarea,.sch-chat-new input,.sch-chat-new select,.sch-chat-task-form input,.sch-chat-task-form select,.sch-chat-task-form textarea{width:100%;min-width:0;border:1px solid var(--clid-border-strong);border-radius:5px;background:#fff;padding:8px;color:var(--clid-ink);font:inherit}
.sch-chat-compose textarea{resize:vertical;max-height:150px}
.sch-chat-attach-context{margin-top:7px;padding:5px 8px;border:1px solid var(--clid-border);border-radius:5px}
.sch-chat-attach-context summary{color:var(--clid-blue);font-size:12px;cursor:pointer}
.sch-chat-attach-context>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}
.sch-chat-attach-context label{display:block;font-size:11px;font-weight:650}
.sch-chat-attach-context select{width:100%;min-width:0;margin-top:3px;padding:6px;border:1px solid var(--clid-border);border-radius:4px;background:#fff}
.sch-chat-toast{position:fixed;z-index:40;right:18px;top:85px;display:flex;align-items:center;gap:12px;max-width:350px;padding:12px 15px;border:1px solid #e2c441;border-left:5px solid var(--clid-yellow);border-radius:6px;background:#fff;box-shadow:0 8px 24px #12202b25}
.sch-chat-toast button{border:0;background:transparent;color:var(--clid-blue);font:inherit;cursor:pointer}
.sch-chat-compose-row{display:flex;gap:6px;align-items:center;margin-top:7px}
.sch-chat-compose-row select{min-width:0;max-width:28%;padding:7px;border:1px solid var(--clid-border);border-radius:5px;background:#fff;color:var(--clid-ink)}
.sch-chat-compose-row button{margin-left:auto;white-space:nowrap}
.sch-chat-context section{padding:12px 14px;border-bottom:1px solid var(--clid-border)}
.sch-chat-context h3{margin:0 0 9px;font-size:13px}
.sch-chat-task-link{display:block;width:100%;border:1px solid var(--clid-border);border-radius:5px;margin:5px 0;padding:8px;background:#fff;text-align:left;color:var(--clid-ink)}
.sch-chat-task-link small{display:block;color:var(--clid-muted)}
.sch-chat-new{position:relative;margin:12px 14px;padding:15px;box-shadow:0 6px 24px #12202b22}
.sch-chat-new h2{margin:0 0 12px;font-size:16px}
.sch-chat-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}
.sch-chat-form-grid label,.sch-chat-task-form label{display:block;font-size:12px;font-weight:650}
.sch-chat-task-form{padding:12px;border-top:1px solid var(--clid-border)}
.sch-chat-task-form h3{margin:0 0 8px}
.sch-chat-task-form>label{margin-bottom:8px}
.sch-chat-task-filters{display:flex;gap:7px;overflow:auto;margin-bottom:12px}
.sch-chat-task-filters button{white-space:nowrap;border:1px solid var(--clid-border);border-radius:5px;background:#fff;padding:7px 11px;color:var(--clid-ink);cursor:pointer}
.sch-chat-task-filters button.active{background:var(--clid-yellow);border-color:var(--clid-yellow);font-weight:750}
.sch-chat-task-filters select{margin-left:auto;min-width:165px;border:1px solid var(--clid-border);border-radius:5px;background:#fff;padding:7px;color:var(--clid-ink)}
.sch-chat-task-board{padding:0 16px}
.sch-chat-task-item{display:flex;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid var(--clid-border)}
.sch-chat-task-item strong,.sch-chat-task-item small{display:block;margin-top:4px}
.sch-chat-task-item small{color:var(--clid-muted)}
.sch-chat-task-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:140px}
.sch-chat-task-actions select{border:1px solid var(--clid-border);border-radius:5px;padding:6px;background:#fff}
.sch-chat-notes{padding:8px 16px}
.sch-chat-note{display:flex;justify-content:space-between;width:100%;border:0;border-bottom:1px solid var(--clid-border);padding:12px 4px;background:#fff;color:var(--clid-ink);text-align:left;cursor:pointer}
.sch-chat-note.unread{font-weight:750}
.sch-chat-status{margin:8px 14px;padding:10px;border-radius:5px;background:#eaf3fa}
.sch-chat-status.error{background:#fde8e9;color:#a11f28}
.sch-chat-mobile-back{display:none;border:0;background:transparent;font-size:18px}
@media(max-width:1200px){.sch-chat-layout{grid-template-columns:minmax(180px,240px) minmax(260px,1fr) minmax(180px,230px)}}
@media(max-width:1150px){.sch-chat-layout{grid-template-columns:220px minmax(0,1fr)}.sch-chat-context{display:none}.sch-chat-layout[data-chat-pane-state="context"]{grid-template-columns:220px minmax(0,1fr)}.sch-chat-layout[data-chat-pane-state="context"] .sch-chat-thread{display:none}.sch-chat-layout[data-chat-pane-state="context"] .sch-chat-context{display:flex}}
@media(max-width:700px){#mainNavigation{grid-template-columns:repeat(6,minmax(0,1fr))}.sch-chat-layout{display:block;height:calc(100dvh - 344px);min-height:360px;margin:8px 0 14px}.sch-chat-layout>.sch-chat-rooms,.sch-chat-layout>.sch-chat-thread,.sch-chat-layout>.sch-chat-context{display:none;height:100%;border:0}.sch-chat-layout[data-chat-pane-state="rooms"]>.sch-chat-rooms,.sch-chat-layout[data-chat-pane-state="thread"]>.sch-chat-thread,.sch-chat-layout[data-chat-pane-state="context"]>.sch-chat-context{display:flex}.sch-chat-mobile-back{display:block}.sch-chat-compose-row{flex-wrap:wrap}.sch-chat-compose-row select{max-width:none;flex:1 1 45%}.sch-chat-compose-row button{flex:1 1 100%}.sch-chat-message{max-width:95%}.sch-chat-task-item{display:block}.sch-chat-task-actions{align-items:flex-start}}
@media(max-width:390px){.sch-chat-form-grid{grid-template-columns:1fr}.sch-chat-tabs button{padding:10px 9px;font-size:12px}}
@media(min-width:701px) and (max-width:1150px){.sch-chat-layout{min-height:0}}
.sch-chat-toast span{min-width:0;flex:1}
.sch-chat-toast small,.sch-chat-note span small{display:block;color:var(--clid-muted);font-size:11px;overflow-wrap:anywhere}
.sch-chat-context{overflow-y:auto}
.sch-page-head:has(+.sch-chat-tabs){padding:18px 24px 4px}
.sch-page-head:has(+.sch-chat-tabs) h1{font-size:26px;margin-bottom:8px}
.sch-page-head:has(+.sch-chat-tabs) p{font-size:13px;margin-bottom:10px}
.sch-chat-layout{min-height:320px;height:calc(100dvh - 340px);border-radius:12px}
.sch-chat-layout.is-creating{grid-template-columns:minmax(220px,280px) minmax(0,1fr)}
.sch-chat-sidebar{gap:12px;padding:12px;background:#f5f8fb}
.sch-chat-search-label{display:grid;gap:5px;font-size:11px;color:var(--clid-muted);flex:none}
.sch-chat-search-label .sch-search{width:100%;margin:0;padding:8px;border:1px solid var(--clid-border);border-radius:7px;font:inherit;font-size:12px;background:#fff}
.sch-chat-nav-card{display:flex;flex:1 1 0;flex-direction:column;min-height:0;border:1px solid var(--clid-border);border-radius:10px;overflow:hidden;background:#fff}
.sch-chat-nav-card:has(.sch-chat-room-list[hidden]){flex:0 0 auto}
.sch-chat-nav-card>header{display:flex;align-items:center;gap:5px;padding:11px 10px;border-bottom:1px solid var(--clid-border);flex:none}
.sch-chat-nav-card h2{margin:0;flex:1;font-size:14px;font-weight:700}
.sch-chat-plus,.sch-chat-collapse{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:30px;border:1px solid var(--clid-border);border-radius:7px;background:#f5f8fc;color:var(--brand-primary,var(--clid-blue));font:inherit;font-size:13px;cursor:pointer}
.sch-chat-plus{font-weight:700;padding:3px 7px}
.sch-chat-collapse{font-size:16px;border-color:transparent;background:transparent}
.sch-chat-nav-card .sch-chat-room-list{flex:1;overscroll-behavior:contain}
.sch-chat-nav-card [hidden],.sch-chat-people [hidden]{display:none!important}
.sch-chat-empty{padding:12px;font-size:12px;line-height:1.5;color:var(--clid-muted);margin:0}
.sch-chat-nav-card .sch-chat-room{grid-template-columns:32px minmax(0,1fr) auto;gap:8px;padding:12px 9px;border-bottom-color:#edf0f4;min-height:67px}
.sch-chat-nav-card .sch-chat-room.active{background:color-mix(in srgb,var(--brand-primary,#285675) 9%,white);border-left:3px solid var(--brand-primary,#285675);padding-left:6px}
.sch-chat-nav-card .sch-chat-avatar{width:31px;height:31px;font-size:10px;background:#e9f0f7}
.sch-chat-nav-card .sch-chat-avatar.group{border-radius:9px;background:#edf0eb;color:#3d5f53}
.sch-chat-room-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:30px}
.sch-chat-room-meta time{font-size:10px;color:var(--clid-muted);white-space:nowrap}
.sch-chat-start-form{display:flex;flex:1;flex-direction:column;min-height:0;padding:0!important;margin:0!important}
.sch-chat-start-fields{flex:0 1 auto;max-height:58%;overflow:auto;padding:18px;border-bottom:1px solid var(--clid-border)}
.sch-chat-start-fields>label{display:grid;gap:6px;margin:0 0 12px;font-size:12px;font-weight:650}
.sch-chat-start-fields input:not([type=checkbox]),.sch-chat-start-fields select{width:100%;min-width:0;margin:0;border:1px solid var(--clid-border);border-radius:7px;background:#fff;padding:9px;color:var(--clid-ink);font:inherit;font-size:13px;font-weight:400}
.sch-chat-people{max-height:155px;overflow:auto;border:1px solid var(--clid-border);border-radius:8px;margin:0;padding:8px 10px}
.sch-chat-people legend{font-size:11px;color:var(--clid-muted);padding:0 5px}
.sch-chat-people label{display:flex;align-items:center;gap:9px;padding:7px 4px;font-size:13px;font-weight:400;cursor:pointer}
.sch-chat-people input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:var(--brand-primary,#285675)}
#chat-participant-count{font-size:11px;margin:7px 0 0}
.sch-chat-new-empty{flex:1;min-height:38px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:12px;color:var(--clid-muted);text-align:center;font-size:12px}
.sch-chat-new-empty span{font-size:14px;font-weight:650;color:var(--clid-blue)}
.sch-chat-new-empty p{margin:7px 0;max-width:330px}
.sch-chat-start-compose{flex:none}
.sch-chat-start-compose small{font-size:10px;color:var(--clid-muted)}
.sch-chat-start-compose button:disabled{opacity:.6;cursor:wait}
@media(min-width:701px) and (max-width:1150px){.sch-chat-layout.is-creating{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:700px){.sch-chat-layout,.sch-chat-layout.is-creating{display:block;min-height:320px;height:calc(100dvh - 420px);margin:8px 0}.sch-chat-start-fields{padding:12px}.sch-chat-start-compose small{display:none}.sch-chat-sidebar{height:100%;padding:10px}.sch-chat-start-form .sch-chat-compose-row button{flex:0 1 auto}.sch-chat-people{max-height:140px}}
#chat-context-form{padding-bottom:28px}

