.channel-workspace{--channel-line:var(--atlas-edge,var(--line));--channel-main:var(--atlas-panel,var(--panel));--channel-well:var(--atlas-well,var(--panel));--channel-accent:var(--atlas-accent,var(--blue));--channel-selected:color-mix(in srgb,var(--channel-accent) 10%,var(--channel-main));min-width:0}
.channel-work-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 15px}
.channel-work-title h1,.channel-pane-head h2,.channel-empty h2,.channel-execution h2{margin:0;font-weight:650}
.channel-work-title p,.channel-pane-head p,.channel-meta{margin:4px 0 0;color:var(--muted);font-size:13px}
.channel-work-tabs{display:flex;gap:19px;border-bottom:1px solid var(--channel-line)}
.channel-work-tabs button{min-height:38px;padding:7px 4px;border-bottom:2px solid transparent;color:var(--muted)}
.channel-work-tabs button[aria-selected=true]{color:var(--ink);border-bottom-color:var(--channel-accent)}
.channel-work-status{margin:0;padding:0;color:var(--muted);font-size:13px}
.channel-work-status:not(:empty){margin:9px 0}
.channel-work-area{margin-top:12px;min-width:0}
.channel-layout{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:450px;height:min(740px,calc(100dvh - 220px));border:1px solid var(--channel-line);border-radius:12px;overflow:hidden;background:var(--channel-main)}
.channel-layout.has-thread{grid-template-columns:190px minmax(0,1fr) minmax(260px,29%)}
.channel-directory{min-width:0;overflow:auto;padding:13px 10px;background:var(--channel-well);border-right:1px solid var(--channel-line)}
.channel-directory header{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:1px 2px 6px}
.channel-directory header h3{margin:0;color:var(--ink);font-size:13px;white-space:nowrap}
.channel-directory h3{margin:18px 4px 5px;font-size:12px;color:var(--muted)}
.channel-directory nav,.channel-source-list,.channel-draft-sources,.channel-execution{display:grid;gap:5px}
.channel-directory nav button,.channel-directory-group>button{display:grid;gap:2px;width:100%;min-height:35px;text-align:left;padding:6px 8px;border-radius:7px;overflow-wrap:anywhere}
.channel-directory nav button:hover,.channel-directory-group>button:hover{background:var(--channel-selected)}
.channel-directory nav button[aria-current=page]{background:var(--channel-selected);color:var(--channel-accent);font-weight:650}
.channel-directory-group>button span{color:var(--muted);font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.channel-main-pane,.channel-thread-pane{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;min-width:0}
.channel-thread-pane{border-left:1px solid var(--channel-line);background:var(--channel-well)}
.channel-pane-head{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:60px;padding:10px 14px;border-bottom:1px solid var(--channel-line)}
.channel-pane-head h2{font-size:18px;overflow-wrap:anywhere}
.channel-pane-head>div{min-width:0}
.channel-pane-head p{overflow-wrap:anywhere}
.channel-feed,.channel-thread-messages,.channel-direct-feed{overflow:auto;overscroll-behavior:contain;min-height:0;padding:7px 9px}
.channel-workspace :is(.channel-directory,.channel-feed,.channel-thread-messages,.channel-direct-feed,.channel-dialog-body,.channel-source-list,.channel-search-results,.channel-invite-picker,.channel-editor textarea){
  scrollbar-width:thin;
  scrollbar-color:color-mix(in srgb,var(--muted) 44%,transparent) transparent;
}
.channel-conversation-state{display:grid;place-content:center;justify-items:center;min-height:100%;gap:6px;padding:14px 10px;text-align:center}
.channel-conversation-state svg{width:24px;height:24px;margin-bottom:3px;color:var(--muted)}
.channel-conversation-state strong{font-size:14px;font-weight:600}
.channel-conversation-state p{margin:0;font-size:13px;color:var(--muted)}
.channel-message{display:flex;align-items:flex-start;gap:9px;padding:8px;border-radius:8px}
.channel-message.is-mine{flex-direction:row-reverse}
.channel-message.channel-highlight{background:var(--channel-selected)}
.channel-avatar{display:grid;place-items:center;flex:0 0 30px;height:30px;overflow:hidden;border-radius:7px;background:var(--channel-well);color:var(--ink);font-size:12px}
.channel-avatar>*{grid-area:1/1}
.channel-avatar img{width:100%;height:100%;object-fit:cover}
.channel-message-content{display:grid;justify-items:start;gap:3px;min-width:0;max-width:min(68ch,calc(100% - 39px))}
.channel-message.is-mine .channel-message-content{justify-items:end}
.channel-message-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;color:var(--muted);font-size:12px}
.channel-message.is-mine .channel-message-meta{justify-content:flex-end}
.channel-message-author{min-width:0;overflow-wrap:anywhere}
.channel-message-meta time{white-space:nowrap}
.channel-message-bubble{min-width:0;max-width:100%;padding:5px 10px;border-radius:3px 8px 8px;background:color-mix(in srgb,var(--channel-main) 92%,var(--ink))}
.channel-message.is-mine .channel-message-bubble{border-radius:8px 3px 8px 8px;background:color-mix(in srgb,var(--channel-main) 84%,#f4ec56)}
.channel-message-content p{margin:4px 0;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}
.channel-mention{color:var(--channel-accent);font-size:12px}
.channel-reference{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;max-width:100%;padding:7px 9px;margin-top:5px;border:1px solid var(--channel-line);border-radius:8px;background:var(--channel-well);overflow-wrap:anywhere}
.channel-reference:hover{background:var(--channel-selected)}
.channel-reference span{font-size:12px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.channel-message-actions{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;max-width:100%}
.channel-message-actions:empty{display:none}
.channel-message.is-mine .channel-message-actions{justify-content:flex-end}
.channel-text-button{color:var(--muted);font-size:12px;min-height:26px;padding:2px 0}
.channel-text-button:hover{color:var(--channel-accent)}
.channel-job{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px 9px;margin-top:6px;border:1px solid var(--channel-line);border-radius:8px;color:var(--muted);font-size:12px}
.channel-job strong{color:var(--ink)}
.channel-job-state{padding:2px 6px;background:var(--channel-selected);color:var(--channel-accent);border-radius:9px}
.channel-thread-count{margin:5px 8px;color:var(--muted);font-size:12px}
.channel-editor{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:4px;
  padding:6px;
  border:1px solid var(--channel-line);
  border-radius:10px;
  background:var(--channel-well);
}
:is(.channel-composer,.channel-direct-compose){margin:8px 12px 12px}
.channel-editor:has(>textarea:focus-visible){
  outline:2px solid color-mix(in srgb,var(--muted) 73%,var(--channel-well));
  outline-offset:-1px;
}
.channel-editor>textarea{
  width:100%;
  min-width:0;
  min-height:46px;
  max-height:min(180px,32dvh);
  field-sizing:content;
  padding:5px 8px;
  border:0;
  background:transparent;
  line-height:1.55;
}
.channel-editor>textarea:focus{outline:none;box-shadow:none}
.channel-compose-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.channel-compose-route{margin:0 8px 3px;overflow-wrap:anywhere}
.channel-compose-actions .primary{margin-inline-start:auto;min-inline-size:64px}
.channel-editor .channel-compose-actions .button.primary:disabled{
  opacity:1;
  color:var(--muted);
  background:var(--channel-main);
  border-color:var(--channel-line);
}
.channel-editor :is(.channel-mention-select,.channel-send-target){
  min-width:0;
  max-width:min(12rem,100%);
  height:32px;
  field-sizing:content;
  padding:0 6px;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  cursor:pointer;
}
.channel-editor select option,.channel-editor select optgroup{color:var(--ink);background:var(--channel-main)}
.channel-editor select:not(:disabled):hover{color:var(--ink);background:var(--channel-main)}
.channel-editor-tools{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:2px;
  min-inline-size:0;
  margin:0;
  padding:0;
  border:0;
}
.channel-editor-tools .channel-mention-select{margin-inline-start:4px}
.channel-icon-action,.channel-quiet-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:32px;
  padding:0 6px;
  color:var(--muted);
  font-size:13px;
  border-radius:var(--atlas-control-radius,8px);
}
.channel-icon-action{width:32px;flex:none;padding:0}
.channel-workspace :is(.channel-icon-action,.channel-quiet-action) svg{flex:none;width:16px;height:16px}
.channel-quiet-action:not(:disabled):hover,.channel-icon-action:not(:disabled):hover{color:var(--ink);background:var(--channel-selected)}
.channel-directory .channel-quiet-action{font-size:12px}
.channel-directory .channel-quiet-action svg{width:13px;height:13px}
.channel-draft-sources>div{display:flex;align-items:center;gap:3px;min-width:0}
.channel-draft-sources .channel-reference{flex:1}
.channel-draft-sources>div>button:last-child{padding:3px 6px}
.channel-draft-sources:empty,.channel-paste-reference:empty{display:none}
.channel-empty{display:grid;align-content:start;justify-items:start;gap:8px;padding:32px 24px}
.channel-empty p{color:var(--muted)}
.channel-execution{padding:12px;border:1px solid var(--channel-line);border-radius:10px;background:var(--channel-main)}
.channel-execution article{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--channel-line)}
.channel-dialog{
  width:min(480px,calc(100vw - 24px));
  max-height:min(720px,calc(100dvh - 24px));
  border:1px solid var(--channel-line);
  border-radius:14px;
  padding:0;
  overflow:hidden;
  background:var(--channel-main);
  color:var(--ink);
}
.channel-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
.channel-dialog::backdrop{background:rgb(10 11 10 / 60%)}
.channel-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px 12px 20px;border-bottom:1px solid var(--channel-line)}
.channel-dialog-heading h2{margin:0;font-size:18px;overflow-wrap:anywhere}
.channel-dialog-body{overflow:auto;overscroll-behavior:contain;padding:16px 20px 20px}
.channel-dialog form,.channel-source-picker,.channel-members,.channel-link-details{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.channel-dialog form label{display:grid;gap:6px;font-size:13px}
.channel-dialog :is(input:not([type=checkbox]),select){min-width:0;max-width:100%;border-color:var(--channel-line);background:var(--channel-well)}
.channel-dialog select{padding-inline:10px}
.channel-dialog form>p[role=status]:empty{display:none}
.channel-dialog-actions,.channel-search-row{display:flex;align-items:center;gap:8px}
.channel-dialog-actions{justify-content:flex-end;flex-wrap:wrap;margin-top:4px;padding-top:12px;border-top:1px solid var(--channel-line)}
.channel-room-delete{display:flex;justify-content:flex-start}
.channel-dialog .button.danger{color:var(--atlas-danger,#ee8b80);border-color:var(--channel-line)}
.channel-dialog .button.danger:hover{background:color-mix(in srgb,var(--atlas-danger,#ee8b80) 14%,var(--channel-main))}
.channel-dialog-error{margin:10px 0 0;font-size:13px;overflow-wrap:anywhere;color:var(--ink)}
.channel-dialog-error:empty{margin:0}
.channel-search-row input{flex:1;min-width:0}
.channel-search-row select{flex:1;min-width:0}
.channel-source-list{max-height:38vh;overflow:auto}
.channel-source-picker footer{justify-self:start}
.channel-source-picker .channel-reference{width:100%;margin-top:0}
.channel-members p{margin:0}
.channel-members h3{margin:0;font-size:14px}
.channel-agent-steps{display:grid;gap:6px;margin:0;padding-inline-start:20px;font-size:13px;color:var(--muted);line-height:1.65}
.channel-agent-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.channel-agent-list li{display:flex;justify-content:space-between;flex-wrap:wrap;gap:2px 8px}
.channel-url,.channel-link-details a,.channel-document-body{overflow-wrap:anywhere;white-space:pre-wrap}
.channel-directory nav .channel-peer{display:flex;align-items:center;gap:8px}
.channel-peer-mark{display:grid;flex:0 0 23px;place-items:center;height:23px;border-radius:6px;background:var(--channel-selected);color:var(--channel-accent);font-size:11px}
.channel-peer>span:last-child{min-width:0}
.channel-direct-send-status{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.channel-direct-send-status:empty{display:none}
.channel-direct-readonly{margin:8px 14px 12px;color:var(--muted);font-size:13px}
@media (max-width:820px){
  .channel-layout,.channel-layout.has-thread{grid-template-columns:minmax(128px,27%) minmax(0,1fr)}
  .channel-layout.has-thread .channel-main-pane{display:none}
  .channel-thread-pane{grid-column:2;grid-row:1}
  .channel-thread-pane{z-index:1}
}
@media (max-width:600px){
  .channel-layout,.channel-layout.has-thread{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  .channel-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:6px;max-height:172px;border-right:0;border-bottom:1px solid var(--channel-line)}
  .channel-directory-group:last-child{grid-column:1/-1}
  .channel-directory-group h3{margin-top:3px}
  .channel-directory header{flex-wrap:wrap;padding-bottom:4px}
  .channel-thread-pane{grid-column:1;grid-row:2}
  .channel-thread-pane{border-left:0}
}

.channel-work-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.channel-search-launch{background:var(--channel-main)}
.channel-search-dialog{width:min(620px,calc(100vw - 24px))}
.channel-search-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.channel-search-filters select{min-width:0;max-width:100%}
.channel-search-notice{margin:1px 0 2px}
.channel-search-results{display:grid;gap:2px;max-height:44dvh;overflow:auto;overscroll-behavior:contain}
.channel-search-hit{display:grid;gap:3px;text-align:left;padding:9px 10px;border:1px solid transparent;border-radius:7px;overflow-wrap:anywhere}
.channel-search-hit:hover,.channel-search-hit:focus-visible{background:var(--channel-selected);border-color:var(--channel-line)}
.channel-search-hit-context{color:var(--channel-accent);font-size:12px;font-weight:650}
.channel-search-hit-excerpt{color:var(--ink);font-size:14px;white-space:pre-wrap}
.channel-search-hit-by{color:var(--muted);font-size:12px}
.channel-search-more{justify-self:start}
.channel-search-more[hidden]{display:none}

.channel-files{display:grid;gap:12px;padding:16px 18px;border:1px solid var(--channel-line);border-radius:12px;background:var(--channel-main)}
.channel-files h2{margin:0;font-size:18px;font-weight:650}
.channel-files-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,180px) auto;gap:8px}
.channel-files-form :is(input,select){min-width:0}
.channel-files-list:empty,.channel-files>p:empty,.channel-files>button[hidden]{display:none}
.channel-files>button{justify-self:start}
.channel-file-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--channel-line);overflow-wrap:anywhere}
.channel-file-actions{display:flex;flex-wrap:wrap;gap:6px}
@media (max-width:600px){
  .channel-work-title{display:grid;grid-template-columns:minmax(0,1fr)}
  .channel-work-actions{justify-content:flex-start}
  .channel-files{padding:12px}
  .channel-files-form{grid-template-columns:minmax(0,1fr) auto}
  .channel-files-form input{grid-column:1/-1}
  .channel-file-row{grid-template-columns:minmax(0,1fr)}
}

.channel-directory nav .channel-directory-room{display:flex;justify-content:space-between;align-items:center;gap:5px}
.channel-directory details{margin:12px 4px 0;color:var(--muted);font-size:12px}
.channel-directory details nav{margin-top:5px}
.channel-unread-count,.channel-invite-tag{display:inline-flex;flex:none;margin-inline-start:auto;padding:1px 6px;border-radius:10px;background:var(--channel-selected);color:var(--channel-accent);font-size:11px;font-weight:650;white-space:nowrap}
.channel-peer-mark{position:relative}
.channel-presence{position:absolute;right:-2px;bottom:-2px;width:8px;height:8px;border:1px solid var(--channel-well);border-radius:50%;background:var(--muted)}
.channel-presence.is-online{background:var(--channel-accent)}
.channel-room-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.channel-join-box{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px}
.channel-action-confirm{display:grid;gap:12px}
.channel-join-box p,.channel-action-confirm p{margin:0;color:var(--muted);font-size:13px}
.channel-invite-picker{display:grid;gap:5px;max-height:160px;overflow:auto;margin:0;padding:7px 9px;border:1px solid var(--channel-line);border-radius:8px}
.channel-dialog form :is(.channel-invite-picker label,label.channel-dot-invite){display:flex;align-items:center;gap:8px;min-height:30px}
.channel-dialog form :is(.channel-invite-picker,label.channel-dot-invite) input[type=checkbox]{
  flex:none;width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:var(--channel-accent)
}
.channel-member-row{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:36px;padding-bottom:6px;border-bottom:1px solid var(--channel-line);overflow-wrap:anywhere}
.channel-member-row>div{display:flex;flex-wrap:wrap;gap:4px}
.channel-rich-body{overflow-wrap:anywhere}
.channel-rich-body ul,.channel-rich-body ol{margin:4px 0;padding-inline-start:22px}
.channel-rich-body code{background:var(--channel-selected);padding:0 3px;border-radius:4px}
.channel-workspace .channel-reaction[aria-pressed=true]{border-color:var(--channel-line);background:var(--channel-selected)}
.channel-emoji-grid{display:flex;flex-wrap:wrap;gap:6px}
.channel-emoji-grid .button{font-size:18px}
.channel-activity>.channel-pane-head{padding:0 0 9px}
.channel-activity-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;border-bottom:1px solid var(--channel-line)}
.channel-activity-row.is-unread{background:var(--channel-selected)}
.channel-activity-row button:first-child{width:100%}
.channel-activity-invites:empty,.channel-activity-list:empty{display:none}
@media(max-width:600px){
  .channel-activity>.channel-pane-head,.channel-member-row{align-items:flex-start;flex-direction:column}
  .channel-activity-row{grid-template-columns:minmax(0,1fr)}
  .channel-activity .channel-room-actions{justify-content:flex-start}
}

.channel-activity-row .channel-rich-body p{margin:3px 0}

@media(max-width:600px){
  .channel-work-tabs{gap:8px;flex-wrap:wrap}
  .channel-layout,.channel-layout.has-thread{height:auto;min-height:0;grid-template-rows:auto auto}
  .channel-directory{max-height:146px}
  .channel-main-pane,.channel-thread-pane{grid-template-rows:auto minmax(160px,28dvh) auto}
  .channel-dialog-heading{padding-inline:14px 10px}
  .channel-dialog-body{padding:14px}
}
