/* REMIXERZ Multi-LLM — Build 5 */
.r-multi-llm { --accent-soft:#fff3ee; --accent-line:#ffd7c7; display:flex; flex-direction:column; height:100%; min-height:0; container:multi-llm / inline-size; color:#303845; font:13px system-ui; }
.r-multi-llm * { box-sizing:border-box; }
.r-multi-llm .dreamteam-stage { display:flex; flex:1; min-height:0; }
.r-multi-llm .dream-thread { flex-direction:column; }
.r-multi-llm .composer { display:flex; flex-direction:column; border:1px solid #e4e8ed; }
.r-multi-llm textarea { width:100%; border:0; resize:none; outline:none; font:inherit; }
.r-multi-llm .composer:focus-within { border-color:var(--session-color); }
.r-multi-llm .composer-footer { display:flex; align-items:center; }
.r-multi-llm .footer-spacer { flex:1; }
.r-multi-llm .composer-footer button { width:28px; height:28px; border:0; border-radius:6px; cursor:pointer; }
.r-multi-llm .send-button { color:white; }
.r-multi-llm .dream-workspace { flex:0 0 36%; min-width:260px; overflow:auto; }
.r-multi-llm.workspace-hidden .dream-workspace { display:none; }
.r-multi-llm button:focus-visible { outline:2px solid #b65d36; outline-offset:2px; }
.r-multi-llm [hidden] { display:none !important; }
/* Explicit controlled layouts are opt-in; existing B004 hosts retain their rules. */
.r-multi-llm.standardized.debates-mode[data-session-layout="single"] .room-toolbar { display:none; }
.r-multi-llm.standardized.debates-mode:is([data-session-layout="single"],[data-session-layout="tabs"]) .dream-thread:not(.room-selected) { display:none; }
.r-multi-llm.standardized.debates-mode:is([data-session-layout="single"],[data-session-layout="tabs"]) .dream-thread.room-selected { flex:1 1 100%; min-width:0; }
.r-multi-llm[data-session-layout="tabs"] .room-heading { display:none; }
.r-multi-llm[data-session-layout][data-session-count="1"] .room-session-nav { display:none; }
.r-multi-llm .room-session-status { flex:0 0 auto; max-width:100%; padding:3px 6px; border-radius:4px; background:#eef3f7; color:#536274; font-size:10px; overflow-wrap:anywhere; }
.r-multi-llm .dream-scroll p { white-space:pre-wrap; overflow-wrap:anywhere; }
.room-toolbar { display:none; }
.dreamteam-shell.standardized .room-chat-region { display:flex; flex-direction:column; flex:1 1 0; width:0; min-width:0; min-height:0; overflow:hidden; order:0; container:room-chat / inline-size; }
.dreamteam-shell.standardized .dreamteam-stage .room-chat-region > .dreamteam-columns { width:100%; max-width:100%; min-width:0; flex:1 1 0; }
.r-multi-llm .dream-workspace { order:2; }
.r-multi-llm.workspace-swapped .room-chat-region { order:2; }
.r-multi-llm.workspace-swapped .dream-workspace { order:0; }
.dreamteam-shell.standardized.debates-mode .dream-thread.feed-pane { scrollbar-gutter:auto; }
.dreamteam-shell.standardized.debates-mode .dream-composer.task-composer { display:flex; flex-direction:column; inset:auto; gap:0; }
.dreamteam-shell.debates-mode .room-toolbar { display:flex; flex:0 0 auto; min-height:48px; align-items:end; flex-wrap:wrap; gap:6px 16px; padding:6px 12px 0; border-bottom:1px solid #cbd3dd; background:#edf1f5; }
.room-heading { display:grid; gap:2px; flex-shrink:0; }
.room-heading strong { font-size:13px; color:#292d34; }
.room-heading span { color:#7a818b; font-size:10px; }
.room-session-nav,.room-actions { display:flex; gap:4px; align-items:center; }
.room-session-nav { overflow-x:auto; overflow-y:hidden; min-width:0; align-self:stretch; align-items:end; gap:3px; scrollbar-width:none; }
.room-session-nav::-webkit-scrollbar { display:none; }
.room-actions { margin-left:auto; align-self:center; padding-bottom:6px; }
.room-heading { align-self:center; padding-bottom:6px; }
.room-toolbar button { height:29px; padding:0 10px; border:1px solid transparent; background:transparent; border-radius:6px; color:#68717d; font:500 11px system-ui; white-space:nowrap; cursor:pointer; }
.room-toolbar button:hover { background:#f2f4f6; color:#262c35; }
.room-toolbar button[aria-pressed="true"] { background:var(--accent-soft); border-color:var(--accent-line); color:#9d492d; }
.room-session-nav button { position:relative; flex:0 0 auto; height:36px; min-height:36px; padding:0 14px; border:1px solid transparent; border-bottom:0; border-radius:7px 7px 0 0; color:#4e5b6b; font-size:12px; font-weight:550; }
.room-session-nav button:hover { background:#e1e7ee; color:#243345; }
.room-session-nav button[aria-pressed="true"] { background:#fff; border-color:#cbd3dd; color:#843e27; box-shadow:inset 0 2px 0 #b65d36; font-weight:650; }
.room-session-nav button:focus-visible { outline:2px solid #b65d36; outline-offset:-3px; }
.room-actions button { display:inline-flex; align-items:center; justify-content:center; width:32px; min-width:32px; padding:0; border-color:#e4e7eb; }
.room-actions .room-action-icon { display:block; width:16px; height:16px; flex:0 0 16px; }
.room-actions .room-action-icon, .room-actions .room-action-icon * { fill:currentColor; stroke:none; }
.dreamteam-shell.standardized.debates-mode .dreamteam-columns { display:flex; flex:1 1 0; width:0; min-height:0; padding:12px; gap:10px; overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; scroll-snap-type:x proximity; background:#f3f5f7; border-bottom:0; }
.dreamteam-shell.standardized.debates-mode .dream-pane-resizer { display:none; }
.dreamteam-shell.standardized.debates-mode .dream-thread.feed-pane { display:flex; flex:1 0 272px; width:auto; min-width:272px; max-width:none; height:100%; padding:0; border:1px solid #dfe4ea; border-radius:10px; overflow:hidden; background:#fff; scroll-snap-align:start; box-shadow:0 2px 5px #18213205; }
.dreamteam-shell.standardized.debates-mode .dream-thread.feed-pane.room-selected { border-color:var(--session-color); box-shadow:0 0 0 1px color-mix(in srgb,var(--session-color) 14%,transparent); }
.dreamteam-shell.standardized.debates-mode .dream-thread-title { display:flex; align-items:center; min-height:59px; height:59px; flex-shrink:0; gap:9px; padding:10px; border-bottom:1px solid #edf0f3; box-shadow:none; color:#2b333e; background:#fff; }
.room-agent-mark { display:flex; flex:0 0 28px; height:28px; align-items:center; justify-content:center; border-radius:7px; font-size:11px; font-weight:650; background:color-mix(in srgb,var(--session-color) 10%,white); color:var(--session-color); }
.room-agent-identity { display:grid; gap:4px; min-width:0; flex:1; }
.room-agent-identity strong { font-size:12px; font-weight:650; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dream-thread-title .room-agent-identity small { font-size:10px; margin:0; color:#7a8490; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dream-thread-title .room-model { flex:0 0 auto; color:#626c79; border:1px solid #e7ebf0; border-radius:5px; padding:3px 5px; font-size:10px; }
.dreamteam-shell.standardized.debates-mode .dream-scroll { flex:1; min-height:0; padding:14px 12px; overflow:auto; scrollbar-width:thin; }
.dreamteam-shell.standardized.debates-mode .dream-scroll .assistant-copy { font-size:13px; line-height:1.65; color:#586371; }
.dreamteam-shell.standardized.debates-mode .user-message { padding:10px 12px; border-radius:9px; font-size:12px; line-height:1.55; background:#f1f4f7; color:#384351; }
.dreamteam-shell.standardized.debates-mode .run-log { font-size:11px; line-height:1.6; color:#86919e; }
.dreamteam-shell.standardized.debates-mode .dream-composer.task-composer { position:relative; flex:0 0 158px; width:calc(100% - 16px); height:158px !important; min-height:158px; margin:8px; padding:0 8px 8px; border-radius:8px; box-shadow:none; background:#fff; }
.dreamteam-shell.standardized.debates-mode .dream-composer > .project-picker { height:27px; min-height:27px; font-size:10px; }
.dreamteam-shell.standardized.debates-mode .dream-composer .prompt-context-strip { height:24px; min-height:24px; overflow:hidden; }
.dreamteam-shell.standardized.debates-mode .dream-composer textarea { flex:1; min-height:42px; max-height:58px; margin:0; padding:8px 2px; font-size:12px; }
.dreamteam-shell.standardized.debates-mode .dream-composer .composer-footer { flex:0 0 28px; min-height:28px; height:28px; padding:0; gap:3px; overflow:visible; }
.dreamteam-shell.standardized.debates-mode .dream-composer .approval-trigger { width:26px; min-width:26px; max-width:26px; padding:0; font-size:16px; text-align:center; justify-content:center; }
.dreamteam-shell.standardized.debates-mode .dream-composer .model-trigger { padding:0 5px; min-width:0; font-size:10px; }
.dreamteam-shell.standardized.debates-mode .dream-composer .send-button { display:flex; justify-content:center; align-items:center; font-size:17px; background:var(--session-color); }
.dreamteam-shell.standardized.debates-mode.room-focus-one .dream-thread:not(.room-selected) { display:none; }
.dreamteam-shell.standardized.debates-mode.room-focus-one .dream-thread.room-selected { flex:1 1 100%; max-width:none; }
.room-surface .sidebar,.room-surface .sidebar-resizer,.room-surface .topbar { display:none !important; }
.room-surface .main { width:100%; }
@container room-chat (max-width:760px) {
  .dreamteam-shell.debates-mode .room-toolbar { gap:6px; padding:6px 8px 0; }
  .room-heading { margin-right:auto; }
  .room-session-nav { order:2; width:100%; }
  .room-session-nav button { flex:1 0 auto; padding:0 9px; font-size:11px; }
  .room-actions { gap:2px; }
}
/* A plugin can be narrow even when its host browser is wide. */
@container multi-llm (max-width:700px) {
  .r-multi-llm .dreamteam-stage { flex-direction:column; }
  .r-multi-llm.standardized .room-chat-region { width:100%; flex:1 1 0; }
  .r-multi-llm .dream-workspace { flex:0 0 36%; width:100%; min-width:0; min-height:0; }
}
@media(max-width:700px) {
  .r-multi-llm .dreamteam-stage { flex-direction:column; }
  .r-multi-llm.standardized .room-chat-region { width:100%; flex:1 1 0; }
  .r-multi-llm .dream-workspace { flex:0 0 36%; width:100%; min-width:0; min-height:0; }
  .r-multi-llm.standardized.debates-mode .dreamteam-columns { width:100%; }
  .dreamteam-shell.debates-mode .room-toolbar { gap:6px; padding:6px 8px 0; }
  .room-heading { margin-right:auto; }
  .room-session-nav { order:2; width:100%; }
  .room-session-nav button { flex:1 0 auto; padding:0 9px; font-size:11px; }
  .room-actions { gap:2px; }
  .room-actions button { padding:0 6px; font-size:10px; }
  .dreamteam-shell.standardized.debates-mode .dream-thread.feed-pane { flex:0 0 calc(100% - 12px); min-width:260px; }
  .dreamteam-shell.standardized.debates-mode .dreamteam-columns { padding:8px; gap:8px; }
  .dreamteam-shell.standardized.debates-mode.workspace-hidden .dreamteam-columns { flex:1 1 100% !important; }
}
