.tc-app,.tc-guest{--tc-accent:#1677db;--tc-bg:#fff;--tc-soft:#f3f6fa;--tc-text:#182a42;--tc-border:#dfe6ef;box-sizing:border-box;color:var(--tc-text);background:var(--tc-bg);font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;border:1px solid var(--tc-border);border-radius:14px;overflow:hidden;max-width:1400px;margin:24px auto}.tc-app *{box-sizing:border-box}.tc-app.tc-dark{--tc-bg:#152235;--tc-soft:#1c2d43;--tc-text:#e9eff7;--tc-border:#34445b}.tc-app button,.tc-app input,.tc-app textarea,.tc-app select{font:inherit}.tc-app button,.tc-app a,.tc-guest a{touch-action:manipulation}.tc-app button{cursor:pointer;border:1px solid var(--tc-border);border-radius:7px;background:var(--tc-bg);color:var(--tc-text);padding:7px 10px;box-shadow:none;text-transform:none;letter-spacing:normal}.tc-app button:hover{background:var(--tc-soft)}.tc-app button:disabled{opacity:.5;cursor:wait}.tc-app button:focus-visible,.tc-app a:focus-visible,.tc-app input:focus-visible,.tc-app textarea:focus-visible{outline:3px solid var(--tc-accent);outline-offset:2px}.tc-header{display:flex;align-items:center;gap:12px;background:#102b4d;color:#fff;padding:16px 20px}.tc-header strong{font-size:22px}.tc-header button{background:transparent;color:#fff;border-color:#5e738e}.tc-header a{color:#fff;font-size:13px}.tc-spacer{flex:1}.tc-logo{height:34px;max-width:120px;object-fit:contain}.tc-tabs{display:flex;gap:7px;background:var(--tc-soft);padding:10px 16px;border-bottom:1px solid var(--tc-border)}.tc-tabs button.active{background:var(--tc-accent);color:white}.tc-layout{display:grid;grid-template-columns:220px minmax(0,1fr) 210px;min-height:580px;height:70vh;max-height:850px}.tc-sidebar,.tc-online{overflow:auto;background:var(--tc-soft);padding:15px 10px}.tc-sidebar{border-right:1px solid var(--tc-border)}.tc-online{border-left:1px solid var(--tc-border)}.tc-app h3{font-size:15px;margin:0 8px 16px;color:var(--tc-text)}.tc-app h2{font-size:19px;margin:0;color:var(--tc-text);line-height:1.4}.tc-list-item{display:flex!important;align-items:center;gap:9px;width:100%;text-align:left;margin-bottom:6px;padding:10px!important;border:0!important;background:transparent!important}.tc-list-item.active,.tc-list-item:hover{background:var(--tc-bg)!important}.tc-list-item>span:not(.tc-avatar){flex:1;overflow-wrap:anywhere}.tc-list-item small{margin-left:auto}.tc-room-icon{font-size:25px;font-weight:700;color:var(--tc-accent);flex:0!important}.tc-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;flex-shrink:0}.tc-initial{display:inline-flex;align-items:center;justify-content:center;background:#dceafb;color:#1a4a79;font-weight:700}.tc-dot{width:7px;height:7px;background:#29b477;border-radius:50%;flex-shrink:0}.tc-conversation{display:flex;flex-direction:column;min-height:0;min-width:0}.tc-room-head{display:flex;gap:10px;padding:17px 20px;border-bottom:1px solid var(--tc-border);min-height:76px}.tc-description{opacity:.75;display:block}.tc-back{display:none}.tc-status{padding:0 16px;font-size:13px;background:var(--tc-soft)}.tc-status:not(:empty){padding:8px 16px}.tc-error{color:#d03939}.tc-feed{flex:1;overflow:auto;padding:12px 20px;overscroll-behavior:contain;min-height:100px}.tc-message{display:flex;gap:11px;padding:12px 0;border-bottom:1px solid var(--tc-border)}.tc-avatar-button{padding:0!important;border:0!important;background:none!important;align-self:flex-start}.tc-msg-content{min-width:0;flex:1}.tc-msg-content header{display:flex;align-items:center;gap:10px}.tc-msg-content header button{border:0;padding:0;font-weight:650;background:none}.tc-msg-content time{font-size:11px;opacity:.6}.tc-msg-content p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--tc-text)}.tc-mine .tc-msg-content{border-left:3px solid var(--tc-accent);padding-left:10px}.tc-msg-actions{display:flex;gap:10px}.tc-msg-actions button{font-size:11px!important;opacity:.7;border:0;padding:1px 0;background:none}.tc-quote{opacity:.7}.tc-photo{display:block;max-width:100%;max-height:260px;border-radius:10px;object-fit:contain}.tc-compose{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:14px;background:var(--tc-bg);border-top:1px solid var(--tc-border);margin:0}.tc-compose textarea{flex:1;min-width:80px;resize:vertical;max-height:140px;height:50px;padding:10px;background:var(--tc-soft);color:var(--tc-text);border:1px solid var(--tc-border);border-radius:8px}.tc-primary,.tc-app button.tc-primary{background:var(--tc-accent);color:#fff;border:0;border-radius:8px;padding:10px 15px;text-decoration:none;display:inline-block}.tc-app button.tc-primary:hover{filter:brightness(.93);background:var(--tc-accent)}.tc-attach{cursor:pointer;font-size:26px}.tc-file-name{width:100%;font-size:11px;overflow-wrap:anywhere}.tc-file-name:empty{display:none}.tc-reply{padding:7px 16px;background:var(--tc-soft);cursor:pointer;font-size:12px}.tc-load{align-self:center;font-size:12px!important;margin:6px}.tc-load[hidden],.tc-reply[hidden]{display:none}.tc-empty{padding:40px 10px;text-align:center;opacity:.65}.tc-footer{border-top:1px solid var(--tc-border);font-size:11px;text-align:center;padding:8px;background:var(--tc-soft);opacity:.8}.tc-dialog{width:min(480px,calc(100% - 30px));border:1px solid var(--tc-border);border-radius:16px;padding:30px;background:var(--tc-bg);color:var(--tc-text);max-height:85vh;overflow:auto}.tc-dialog::backdrop{background:#071a3299}.tc-close{position:absolute;right:8px;top:8px;padding:2px 9px!important;font-size:20px!important}.tc-profile{text-align:center}.tc-profile>.tc-avatar{height:110px;width:110px;font-size:36px}.tc-profile p{white-space:pre-wrap;overflow-wrap:anywhere}.tc-dialog label{display:block;font-size:13px;margin:10px 0}.tc-dialog input:not([type=checkbox]),.tc-dialog textarea{display:block;width:100%;margin-top:4px;background:var(--tc-soft);color:var(--tc-text);border:1px solid var(--tc-border);border-radius:6px;padding:8px}.tc-check{display:flex!important;gap:8px;align-items:center}.tc-danger{color:#c73535!important}.tc-dialog-status{color:#c73535}.tc-guest{padding:40px;text-align:center}.tc-count{background:var(--tc-accent);color:white;border-radius:12px;padding:1px 6px}.tc-app p{color:inherit}.tc-app [hidden]{display:none!important}
@media(max-width:1050px){.tc-layout{grid-template-columns:200px minmax(0,1fr)}.tc-online{display:none}}
@media(max-width:650px){.tc-app{border-radius:0;margin:0;border-left:0;border-right:0}.tc-header{padding:12px;gap:8px}.tc-header strong{font-size:19px}.tc-header button,.tc-header a{font-size:11px;padding:6px}.tc-layout{display:block;height:72dvh;min-height:460px;max-height:none}.tc-sidebar{height:100%;border:0}.tc-conversation{display:none;height:100%}.tc-mobile-conversation .tc-sidebar{display:none}.tc-mobile-conversation .tc-conversation{display:flex}.tc-back{display:block;align-self:center}.tc-room-head{padding:12px}.tc-feed{padding:8px 12px}.tc-compose{padding:10px;gap:6px}.tc-compose .tc-primary{font-size:12px;padding:12px 10px}.tc-tabs{justify-content:space-around;padding:8px}.tc-tabs button{flex:1;font-size:13px}.tc-header .tc-logo{max-width:45px}.tc-dialog{padding:30px 20px}.tc-msg-actions button{padding:7px 0}.tc-app h2{font-size:17px}}
/* Adapt to the available theme column as well as the viewport. */
.tc-app{container-type:inline-size}
@container(max-width:1050px){.tc-layout{grid-template-columns:200px minmax(0,1fr)}.tc-online{display:none}}
@container(max-width:650px){.tc-layout{display:block;height:72dvh;min-height:460px;max-height:none}.tc-sidebar{height:100%;border:0}.tc-conversation{display:none;height:100%}.tc-mobile-conversation .tc-sidebar{display:none}.tc-mobile-conversation .tc-conversation{display:flex}.tc-back{display:block;align-self:center}.tc-room-head{padding:12px}.tc-feed{padding:8px 12px}.tc-compose{padding:10px;gap:6px}.tc-compose .tc-primary{font-size:12px;padding:12px 10px}.tc-tabs{justify-content:space-around;padding:8px}.tc-tabs button{flex:1;font-size:13px}.tc-header{padding:12px;gap:8px}.tc-header strong{font-size:19px}.tc-header button,.tc-header a{font-size:11px;padding:6px}.tc-header .tc-logo{max-width:45px}.tc-app h2{font-size:17px}}
/* rc.2: isolate controls from theme-wide form widths and minimum sizes. */
.tc-app{width:100%;min-width:0}.tc-app button,.tc-app input,.tc-app textarea,.tc-app label{max-width:100%;min-width:0}.tc-app button{width:auto;min-height:0}.tc-compose{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;flex:none;width:100%;min-width:0;gap:6px}.tc-compose:has(.tc-attach){grid-template-columns:auto minmax(0,1fr) auto auto}.tc-compose:not(:has(.tc-attach)){grid-template-columns:auto minmax(0,1fr) auto}.tc-compose textarea{display:block;width:100%!important;min-width:0!important;min-height:48px!important;height:54px;max-height:120px;margin:0!important;font-size:16px!important;line-height:1.4;resize:vertical;text-indent:0;scroll-margin:12px}.tc-compose>button{width:auto!important;margin:0!important;white-space:nowrap;flex:none}.tc-compose>.tc-attach{display:flex;align-items:center;justify-content:center;width:26px;margin:0!important;line-height:1}.tc-file-name{grid-column:1/-1}.tc-compose>.tc-primary{padding:10px!important}.tc-msg-content header{flex-wrap:wrap}.tc-room-head>div{min-width:0;overflow-wrap:anywhere}.tc-room-icon{display:grid;place-items:center;flex:0 0 30px!important;width:30px;height:30px;border-radius:9px;background:#dceafb;font-size:21px}.tc-main-label{display:block;font-size:10px;opacity:.7}.tc-create-room{display:block;width:100%!important;margin:0 0 12px}.tc-app button.tc-quote{display:flex;gap:10px;text-align:left;width:100%;padding:8px 10px;background:var(--tc-soft);border:0;border-left:3px solid var(--tc-accent);margin:7px 0}.tc-quote>span,.tc-reply-preview>span{display:block;min-width:0}.tc-quote strong,.tc-quote span span,.tc-reply-preview strong,.tc-reply-preview span span{display:block;overflow-wrap:anywhere;white-space:pre-wrap;font-size:12px}.tc-quote-image{width:44px;height:44px;object-fit:cover;border-radius:6px;flex:none}.tc-reply{display:flex;gap:8px;align-items:center;cursor:default}.tc-reply-preview{display:flex;gap:8px;flex:1;min-width:0;max-height:90px;overflow:auto}.tc-highlight{background:#ffecaa55}.tc-profile>.tc-avatar{display:flex;margin:0 auto 14px;width:160px;height:160px;max-width:100%;object-fit:cover}.tc-profile h2{margin:8px 0}.tc-profile small{opacity:.65}.tc-logout{margin:0!important;display:inline-flex;width:auto}.tc-header .tc-logout button{font-size:12px}.tc-auth{max-width:460px;padding:30px;text-align:left}.tc-auth *{box-sizing:border-box}.tc-auth h2,.tc-auth h3{text-align:center}.tc-auth label{display:block;margin:14px 0}.tc-auth input:not([type=checkbox]){display:block;width:100%;padding:12px;border:1px solid var(--tc-border);border-radius:8px;font:inherit;font-size:16px;background:var(--tc-soft);color:var(--tc-text)}.tc-auth input[type=checkbox]{width:auto}.tc-auth .tc-primary{cursor:pointer;font:inherit}.tc-auth form{margin:0}.tc-auth-nav{display:flex;gap:16px;flex-wrap:wrap;margin-top:20px;font-size:14px}.tc-auth p{font-size:14px}.tc-keyboard-open{overflow:hidden}.tc-app.tc-keyboard{position:fixed!important;z-index:99999;top:var(--tc-vtop,0)!important;left:var(--tc-vleft,0)!important;width:var(--tc-vwidth,100%)!important;max-width:none!important;height:var(--tc-vh,100dvh)!important;margin:0!important;border-radius:0;display:flex;flex-direction:column}.tc-keyboard .tc-header,.tc-keyboard .tc-tabs,.tc-keyboard .tc-footer{display:none}.tc-keyboard .tc-layout{flex:1;min-height:0!important;height:auto!important;max-height:none}.tc-keyboard .tc-conversation{height:100%;min-height:0}.tc-keyboard .tc-feed{min-height:0}.tc-keyboard .tc-room-head{min-height:48px;padding:6px 10px}.tc-keyboard .tc-compose{padding:8px 8px max(8px,env(safe-area-inset-bottom));}.tc-keyboard .tc-compose textarea{resize:none;min-height:54px!important;height:64px}.tc-keyboard .tc-status{flex:none}.tc-keyboard .tc-reply{flex:none}
@media(max-width:650px){.tc-app .tc-compose>button{font-size:12px;padding:9px 7px!important}.tc-compose>button[data-act=emoji]{width:32px!important;padding:5px!important}.tc-app .tc-compose{padding:8px;gap:4px}.tc-app .tc-compose textarea{padding:8px!important}.tc-layout{min-height:350px}.tc-header strong{overflow-wrap:anywhere}.tc-guest.tc-auth{margin:12px auto;width:100%;padding:22px}.tc-dialog{max-height:80dvh}.tc-msg-content header button{overflow-wrap:anywhere;text-align:left}}

/* Emoji palette available in both editions. */
.tc-compose{position:relative}.tc-emoji-picker{position:absolute;bottom:calc(100% + 6px);left:8px;z-index:20;width:min(330px,calc(100% - 16px));max-height:240px;overflow:auto;overscroll-behavior:contain;padding:10px;background:var(--tc-bg);color:var(--tc-text);border:1px solid var(--tc-border);border-radius:12px;box-shadow:0 6px 24px #102b4d26}.tc-emoji-picker h3{font-size:12px;margin:8px 0}.tc-emoji-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}.tc-emoji-grid button{font-size:23px!important;line-height:1.3;padding:5px!important;border:0;min-height:36px}.tc-emoji-grid button:focus-visible{outline:2px solid var(--tc-accent);outline-offset:-2px}.tc-emoji-picker[hidden]{display:none!important}
