.rail > [hidden], .rail.rail-reordered > .rail-rule, .rail.rail-reordered > .rail-spacer { display:none; }
.rail .squad-mark img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.sidebar-head { display:flex; justify-content:space-between; align-items:center; }
.sidebar-head-actions { display:flex; align-items:center; gap:1px; margin-left:auto; }
.sidebar-head-button { width:26px; height:26px; min-width:26px; padding:5px; border:0; background:transparent; color:var(--muted); }
.sidebar-head-button svg,.rail-show-sidebar svg { width:15px; height:15px; }
.rail-show-sidebar { display:none; }
.workspace.rail-folded .rail-show-sidebar { display:grid; }
.sidebar-section-toggle { display:flex; align-items:center; gap:6px; flex:1; min-width:0; height:26px; padding:0; border:0; background:transparent; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.sidebar-section-toggle svg { width:13px; height:13px; flex:0 0 13px; transition:transform .16s ease; }
.sidebar-section-toggle:hover { color:var(--text); }
#sidebar-channels[hidden],#agent-list[hidden] { display:none!important; }
#rail-menu { position:fixed; inset:auto; margin:0; padding:5px; background:var(--panel); color:var(--text); border:1px solid var(--line); border-radius:8px; }
#rail-menu button { display:block; width:100%; text-align:left; border:none; background:transparent; padding:7px 12px; }
#rail-menu button:hover { background:var(--hover); }
.rail-choices { max-height:60dvh; overflow:auto; }
.rail-choice { display:flex; align-items:center; gap:4px; padding:4px; }
.rail-choice label { flex:1; }
.rail-choice input { width:auto; }
#rail-edit label { display:grid; gap:5px; margin:10px 0; }
.sidebar-grip { display:none; }
.main-header h1.header-title{font-weight:800;letter-spacing:-.01em}
.main-header:has(.chat-header-copy){padding-left:16px}
#page-title:has(.chat-header-copy){min-width:0}
.chat-header-copy{display:flex;flex-direction:column;min-width:0}
.chat-header-copy h1{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;font-weight:700;line-height:20.4px}
.chat-header-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;line-height:18.125px}
.chat-header-title-row{display:flex;align-items:center;gap:6px;min-width:0}
.chat-header-title-row .channel-symbol{width:18px;height:18px;flex-basis:18px}
.chat-header-title-row .channel-symbol .icon,.chat-header-title-row .channel-symbol>svg{width:18px;height:18px}
.sidebar-body{padding-right:18px}
.sidebar-body>.agent-link.coordinator{height:63px;min-height:63px;margin-top:0;margin-bottom:10px;padding:8px 7px}
.sidebar-body>.agent-link.coordinator+.sidebar-label{margin-top:10px}
.sidebar-project{margin-top:19px}
.sidebar-project-row{position:relative;display:flex;align-items:center;gap:2px;min-width:0;padding:0 6px}
.sidebar-project-toggle{display:flex;align-items:center;justify-content:flex-start;gap:6px;min-width:0;min-height:26px;flex:1;padding:2px 4px 2px 0;border:0;border-radius:6px;background:transparent;color:var(--muted);font:inherit;font-size:12px;line-height:15.6px;text-align:left;cursor:pointer}
.sidebar-project-toggle{margin-right:24px}
.project-sidebar-menu{right:32px;top:0}
.project-sidebar-menu>summary{width:26px;height:26px}
.sidebar-project-hidden{margin:10px 6px 0}
.sidebar-project-toggle:hover,.sidebar-project-toggle:focus-visible{background:var(--hover);color:var(--text)}
.sidebar-project-chevron{display:grid;place-items:center;flex:0 0 13px}
.sidebar-project-chevron .icon{width:13px;height:13px;transition:transform .16s ease}
.sidebar-project-chevron.open .icon{transform:rotate(90deg)}
.sidebar-project-dot{width:8px;height:8px;flex:0 0 8px;border-radius:3px}
.sidebar-project-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-project-add{flex:0 0 26px;width:26px;height:26px}
.sidebar-project-channels{margin-left:0;padding:4px 0 0;border-left:0}
.sidebar-project-channels .sidebar-channel-row{height:32px;width:100%}
.sidebar-project-channels .sidebar-channel-row>.channel-link{height:32px;padding:5px 8px;font-size:14px;line-height:22px}
.sidebar-project-channels .channel-link .icon{width:16px;height:16px}
.sidebar-channel-options{position:relative;flex:0 0 26px;z-index:6}
.sidebar-channel-options>summary{width:26px;height:26px}
.sidebar-channel-options>summary .icon{width:14px;height:14px}
.sidebar-project+.sidebar-project{margin-top:14px}
.sidebar-body>.sidebar-search{margin-top:18px}
#sidebar-channels:has(.sidebar-project-channels)+.sidebar-search{margin-top:14px}
.sidebar-body>.sidebar-search{margin-left:6px;margin-right:6px}
.sidebar-body>.sidebar-search input{padding-left:28px}
.sidebar-body>.sidebar-search input{height:34px}
.sidebar-search+.sidebar-label{min-height:26px;margin-top:5px}
.sidebar-search+.sidebar-label{margin-bottom:4px}
#agent-list .agent-nav-row{gap:2px}
#agent-list .agent-nav-row>.agent-link{height:46px;min-height:46px;margin:0;padding:4px 7px}
#agent-list .agent-nav-row>.agent-sidebar-menu{position:relative;top:auto;right:auto;flex:0 0 26px}
#agent-list .agent-nav-row>.agent-sidebar-menu>summary{width:26px;height:26px}
@media (min-width:761px) {
  .workspace:has(> .sidebar) { position:relative; grid-template-columns:var(--rail) var(--personal-sidebar,var(--sidebar)) minmax(0,1fr); }
  .workspace.rail-folded > .sidebar { visibility:hidden; overflow:hidden; }
  .workspace.rail-folded > .sidebar-grip { display:none; }
  .workspace > .sidebar-grip { display:block; position:absolute; z-index:5; top:0; bottom:0; left:calc(var(--rail) + var(--personal-sidebar,var(--sidebar)) - 3px); width:7px; min-width:0; padding:0; border:none; border-radius:0; background:transparent; touch-action:none; cursor:col-resize; }
  .workspace > .sidebar-grip:hover,.workspace > .sidebar-grip:focus-visible { background:var(--accent); }
}
