/* Entorno de trabajo: right rail and private shared office. Scoped to #team-rail, #team-rail-mobile and #team-office. */
:root{--team-top:90px;--team-rail:52px;--to-bg:#0f1820;--to-panel:#16222c;--to-line:#2d3f4b;--to-muted:#a6b8c4;--to-accent:#1bd5dc}
.to-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* Rail: collapsed icons reserve a fixed width; the expanded rail overlays content so the 3D campus never reflows. */
body.team-rail-on .layout{margin-right:var(--team-rail)}
#team-rail{position:fixed;top:var(--team-top);right:0;bottom:0;width:var(--team-rail);z-index:18;display:flex;flex-direction:column;gap:6px;padding:8px 6px;background:#121c24;border-left:1px solid var(--to-line);transition:width .18s ease;box-sizing:border-box}
#team-rail.expanded{width:212px;box-shadow:-12px 0 28px #0008}
#team-rail button{display:flex;align-items:center;gap:10px;width:100%;margin:0;padding:10px;border:1px solid transparent;border-radius:9px;background:none;color:var(--to-muted);font-size:13px;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden}
#team-rail button:hover{background:#1d2c37;color:#e8f1f5}
#team-rail button:focus-visible,#team-rail-mobile:focus-visible,#team-office :focus-visible{outline:2px solid var(--lime,#c1f58b);outline-offset:2px}
#team-rail [aria-current=page]{background:#183a3e;border-color:#2b6b70;color:#dffcff}
#team-rail .tr-toggle{justify-content:center;color:#cfe0e8}
#team-rail.expanded .tr-toggle{justify-content:flex-start}
#team-rail .tr-chevron{display:inline-block;font-size:18px;line-height:1;transition:transform .18s}
#team-rail.expanded .tr-chevron{transform:rotate(180deg)}
#team-rail .tr-icon{flex:none;width:26px;text-align:center;font-size:17px}
#team-rail .tr-label{opacity:0;transition:opacity .12s}
#team-rail.expanded .tr-label{opacity:1}
#team-rail .tr-items{display:flex;flex-direction:column;gap:6px}
#team-rail-mobile{display:none}

/* Office overlay: same page, below the ATLAS top bar, left of the rail. */
#team-office{position:fixed;top:var(--team-top);left:0;right:var(--team-rail);bottom:0;z-index:17;display:flex;flex-direction:column;background:radial-gradient(1200px 600px at 70% -10%,#17313a 0,transparent 60%),var(--to-bg);color:#e8f0f4;overflow:hidden;font-size:14px}
#team-office[hidden],#team-office [hidden]{display:none!important}
#team-office button{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;margin:0;padding:8px 12px;border:1px solid #3a5160;border-radius:8px;background:#1b2a35;color:#e8f0f4;font:inherit;font-size:13px;cursor:pointer;text-align:center}
#team-office button:hover{background:#24394a}
#team-office button.light{background:var(--lime,#c1f58b);border-color:var(--lime,#c1f58b);color:#1a2a14;font-weight:600}
#team-office button:disabled{opacity:.55;cursor:not-allowed}
#team-office.busy{cursor:progress}
/* The ATLAS stylesheet gives every <header> a fixed height; the office header must size to its content. */
#team-office>.to-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;height:auto;min-height:0;flex:none;margin:0;padding:12px 18px;border-bottom:1px solid var(--to-line);background:#111d25d9;position:static}
.to-title{flex:1 1 260px;min-width:0}
.to-title h1{margin:2px 0;font-size:21px;letter-spacing:-.3px}
.to-title h1:focus{outline:none}
.to-title p{margin:0;color:var(--to-muted);font-size:12px}
.to-eyebrow{font-size:10px;letter-spacing:1.6px;color:var(--to-accent)}
.to-connector .to-dot{width:9px;height:9px;border-radius:50%;background:#8a98a3;display:inline-block}
.to-conn-online .to-dot{background:#59e08b;box-shadow:0 0 0 3px #59e08b33}
.to-conn-offline .to-dot,.to-conn-never .to-dot,.to-conn-not-configured .to-dot{background:#f0b45a}
.to-tabs{display:flex;gap:4px;padding:3px;border:1px solid var(--to-line);border-radius:10px;background:#0d161c}
#team-office .to-tabs button{border:0;background:none;padding:7px 12px}
#team-office .to-tabs button[aria-selected=true]{background:#24414a;color:#fff}
.to-actions{display:flex;gap:8px;flex-wrap:wrap}
.to-sync,.to-notice{margin:0;padding:4px 18px;font-size:12px;color:var(--to-muted);min-height:0}
.to-notice:empty{display:none}
.to-notice{color:#bfe9c8}
.to-notice.error{color:#ffb4b4}
.to-stale{color:#f0c27a}
.to-main{flex:1;min-height:0;overflow:auto;padding:12px 18px 24px}
.to-empty{color:var(--to-muted);text-align:center;padding:30px 10px}
.to-note{color:var(--to-muted);font-size:12px;line-height:1.5}

/* Floor plan: one large shared room. */
.to-floor{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;padding:14px;border:1px solid #29404c;border-radius:18px;background:repeating-linear-gradient(0deg,#ffffff05 0 1px,transparent 1px 44px),repeating-linear-gradient(90deg,#ffffff05 0 1px,transparent 1px 44px),#12202a}
.to-zone{min-width:0;padding:12px;border:1px solid #2f4653;border-radius:14px;background:#15232dcc}
.to-zone h2{margin:0;font-size:15px}
.to-zone h3{margin:14px 0 6px;font-size:13px}
.to-zone-sub{margin:2px 0 10px;color:var(--to-muted);font-size:11px}
.to-people{grid-column:span 6;background:#162a2ecc;border-color:#2b5a5e}
.to-zone-coordination,.to-zone-quality{grid-column:span 3}
.to-zone-research{grid-column:span 2;opacity:.92}
.to-summary{grid-column:span 4}
.to-zone-coordination{border-top:3px solid #4fb6e6}
.to-zone-quality{border-top:3px solid #3ea36a}
.to-zone-research{border-top:3px solid #9b3a44}
.to-desks{display:flex;flex-wrap:wrap;gap:10px}
#team-office .to-desk{display:flex;align-items:center;justify-content:flex-start;gap:10px;text-align:left;flex:1 1 200px;min-width:0;padding:10px;border-radius:12px;background:#1a2b36;border:1px solid #33495a}
#team-office .to-desk-lead{flex-basis:100%;background:#1d3240}
#team-office .to-desk-prepared{border-style:dashed}
#team-office .to-desk-pending{border-style:dashed;filter:saturate(.75)}
.to-desk-avatar{flex:none;display:grid}
.to-desk-info{display:flex;flex-direction:column;gap:3px;min-width:0}
.to-desk-info b{font-size:14px}
.to-desk-info small{color:var(--to-muted);font-size:11px;line-height:1.35}
.to-counts{display:flex;flex-wrap:wrap;gap:4px}
.to-count{font-size:11px;padding:2px 6px;border-radius:6px;background:#0f1a21;color:#cfdde5}
.to-count-in_progress{background:#163a4a}.to-count-blocked{background:#4a1e24}.to-count-review{background:#3a3416}
.to-pill{display:inline-block;width:max-content;max-width:100%;padding:2px 8px;border-radius:999px;font-size:11px;border:1px solid #47606f;background:#13212a;color:#dbe7ed}
.to-pill-connected{border-color:#3f9d66;color:#a9f2c4}
.to-pill-disconnected{border-color:#a8792f;color:#f6d39a}
.to-pill-prepared{border-color:#5b6f7c;color:#c3d1d9;border-style:dashed}
.to-pill-pending{border-color:#7c3640;color:#f1b7bf;border-style:dashed}
.to-pill-in_progress{border-color:#3e8db5}.to-pill-blocked{border-color:#b54a55;color:#ffc2c8}.to-pill-review{border-color:#b59a3e;color:#f3e3a8}.to-pill-done{border-color:#3f9d66;color:#a9f2c4}
.to-pill-prio-high{border-color:#c2843a}.to-pill-prio-urgent{border-color:#d4505c;color:#ffc2c8}.to-pill-changes{border-color:#d4505c}
.to-pill-run-running{border-color:#3e8db5}.to-pill-run-failed{border-color:#b54a55}.to-pill-run-succeeded{border-color:#3f9d66}
.to-totals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
#team-office .to-total{flex-direction:column;padding:8px 4px}
.to-total b{font-size:20px}
.to-total span{font-size:11px}
.to-locks{margin:0;padding-left:18px;font-size:12px}
.to-avatar-agent .to-holo{transform-origin:32px 32px}
@media (prefers-reduced-motion:no-preference){#team-office:not([hidden]) .to-desk-connected .to-holo{animation:to-spin 24s linear infinite}}
@keyframes to-spin{to{transform:rotate(360deg)}}

/* Board */
.to-board{display:grid;grid-template-columns:repeat(5,minmax(220px,1fr));gap:10px;overflow-x:auto;padding-bottom:6px}
.to-col{min-width:0;padding:10px;border:1px solid var(--to-line);border-radius:12px;background:var(--to-panel)}
.to-col h2{display:flex;justify-content:space-between;margin:0 0 8px;font-size:14px}
.to-col ul,.to-roster,.to-tasklist,.to-runs,.to-chat-log,.to-integrations{list-style:none;margin:0;padding:0}
.to-col li{margin-bottom:8px}
#team-office .to-card{display:flex;flex-direction:column;align-items:stretch;gap:5px;width:100%;text-align:left;padding:10px;border-radius:10px;background:#1b2a35;border-left:3px solid #47606f}
#team-office .to-prio-high{border-left-color:#c2843a}#team-office .to-prio-urgent{border-left-color:#d4505c}#team-office .to-prio-low{border-left-color:#3d5563}
.to-card-top{display:flex;gap:4px;flex-wrap:wrap}
.to-card-title{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.to-card-who{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--to-muted)}
.to-card-blocker,.to-card-result,.to-card-run,.to-card-files{font-size:11px;color:#cfdde5;overflow-wrap:anywhere}
.to-card-blocker{color:#ffc2c8}

/* List */
.to-list{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.to-list section{min-width:0}
.to-list h2{font-size:15px;margin:0 0 8px}
.to-list-tasks{grid-column:1/-1}
#team-office .to-roster button{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;margin-bottom:6px;text-align:left}
.to-roster small{color:var(--to-muted);margin-left:auto;font-size:11px;text-align:right}
.to-table{width:100%;border-collapse:collapse;font-size:12px}
.to-table th,.to-table td{padding:8px;border-bottom:1px solid var(--to-line);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.to-td-label{display:none}
#team-office .to-link{display:inline;padding:0;border:0;background:none;color:#8fe3ff;text-decoration:underline;text-align:left;font-size:inherit}

/* Drawer */
.to-drawer{position:absolute;top:0;right:0;bottom:0;width:min(460px,100%);z-index:2;display:flex;flex-direction:column;background:#111c24;border-left:1px solid #3a5160;box-shadow:-18px 0 40px #000a}
.to-drawer[hidden]{display:none}
.to-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-bottom:1px solid var(--to-line)}
.to-drawer-head h2{margin:0;font-size:18px}
.to-drawer-head h2:focus{outline:none}
#team-office .to-drawer-head button{width:40px;height:40px;font-size:22px;padding:0}
.to-drawer-body{flex:1;min-height:0;overflow:auto;padding:14px 16px 28px;line-height:1.55}
.to-drawer-body h3{font-size:14px;margin:18px 0 6px}
.to-drawer-body ul{padding-left:18px;margin:0}
.to-profile{display:flex;gap:14px;align-items:center}
.to-role{margin:0 0 6px;font-weight:600}
.to-dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 12px;margin:14px 0;font-size:13px}
.to-dl dt{color:var(--to-muted)}
.to-dl dd{margin:0;overflow-wrap:anywhere}
.to-pre{white-space:pre-wrap;overflow-wrap:anywhere}
.to-original{padding:10px;border:1px solid #4a4a2a;border-radius:10px;background:#1d1d14}
.to-drawer form{display:flex;flex-direction:column;gap:8px;margin-top:10px;padding:10px;border:1px solid var(--to-line);border-radius:10px;background:#14212a}
.to-drawer label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#cfdde5}
.to-drawer label.to-check{flex-direction:row;align-items:flex-start;gap:8px}
.to-drawer input:not([type=checkbox]),.to-drawer textarea,.to-drawer select{width:100%;box-sizing:border-box;padding:8px;border:1px solid #3a5160;border-radius:7px;background:#0d161c;color:#e8f0f4;font:inherit;font-size:13px}
.to-buttons{display:flex;flex-wrap:wrap;gap:6px}
.to-runs li{padding:8px 0;border-bottom:1px solid var(--to-line);font-size:12px}
.to-chat-log{max-height:260px;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:8px;border:1px solid var(--to-line);border-radius:10px;background:#0d161c}
.to-msg{max-width:88%;padding:8px 10px;border-radius:10px;background:#1b2a35;font-size:13px}
.to-msg-to-agent{align-self:flex-end;background:#1d3a32}
.to-msg p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.to-msg-meta{font-size:11px;color:var(--to-muted)}
.to-token{padding:10px;border:1px solid #b59a3e;border-radius:10px;background:#2a2512}
.to-token code{display:block;margin:8px 0;padding:8px;background:#0d161c;border-radius:6px;overflow-wrap:anywhere;user-select:all}

/* Tablet */
@media(max-width:1050px){.to-zone-coordination,.to-zone-quality{grid-column:span 6}.to-zone-research,.to-summary{grid-column:span 3}}
/* Phone: no reserved rail width; a floating button opens the rail as a drawer. */
@media(max-width:720px){
 body.team-rail-on .layout{margin-right:0}
 #team-rail{width:min(260px,80vw);transform:translateX(100%);transition:transform .2s ease;box-shadow:-12px 0 28px #000a;top:var(--team-top)}
 #team-rail.mobile-open{transform:none}
 #team-rail .tr-toggle{display:none}
 #team-rail .tr-label{opacity:1}
 #team-rail-mobile{display:flex;align-items:center;justify-content:center;position:fixed;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:19;width:48px;height:48px;margin:0;padding:0;border-radius:50%;border:1px solid #3a5160;background:#183a3e;color:#e8f0f4;font-size:20px;box-shadow:0 6px 18px #000a}
 #team-office{right:0}
 #team-office>.to-head{padding:10px 12px;gap:8px}
 .to-title{flex-basis:100%}
 .to-title h1{font-size:18px}
 .to-tabs{order:3;flex:1 1 100%}
 #team-office .to-tabs button{flex:1}
 .to-actions{flex:1 1 100%}
 #team-office .to-actions button{flex:1}
 .to-main{padding:10px 10px 80px}
 .to-floor{grid-template-columns:minmax(0,1fr);padding:8px;gap:10px}
 .to-people,.to-zone-coordination,.to-zone-quality,.to-zone-research,.to-summary{grid-column:1}
 .to-totals{grid-template-columns:repeat(3,minmax(0,1fr))}
 .to-board{grid-template-columns:repeat(5,minmax(240px,82vw));scroll-snap-type:x mandatory}
 .to-col{scroll-snap-align:start}
 .to-list{grid-template-columns:minmax(0,1fr)}
 .to-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .to-table,.to-table tbody,.to-table tr,.to-table th,.to-table td{display:block;width:auto}
 .to-table tr{padding:8px 0;border-bottom:1px solid var(--to-line)}
 .to-table th,.to-table td{border:0;padding:3px 0}
 .to-td-label{display:inline;color:var(--to-muted)}
 .to-drawer{width:100%}
 .to-dl{grid-template-columns:minmax(0,1fr)}
}
/* Landscape phones: keep the header compact so content remains usable after rotation. */
@media(max-height:500px) and (orientation:landscape){.to-title p,.to-sync,.to-eyebrow{display:none}#team-office>.to-head{padding:6px 12px;gap:6px}.to-title{flex:1 1 auto}.to-title h1{font-size:16px}.to-tabs,.to-actions{order:0;flex:0 1 auto}#team-office .to-tabs button,#team-office .to-actions button{flex:none;padding:6px 10px}}

/* Isometric office plan: SVG drawing plus a layer of real buttons placed over each character. */
.to-plan-scroll{overflow-x:auto;border:1px solid #29404c;border-radius:18px;background:#0c151b}
.to-plan{position:relative;min-width:720px;aspect-ratio:1000/640}
.to-plan-svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.to-plan-layer{position:absolute;inset:0}
#team-office .to-char{position:absolute;display:flex;flex-direction:column;align-items:center;gap:0;width:9%;min-width:84px;padding:0;margin:0;border:0;background:none;transform:translate(-50%,-78%);text-align:center}
#team-office .to-char:hover{background:none}
#team-office .to-char-lead{width:10%}
.to-char-hit{display:block;width:62%;aspect-ratio:1/1.35;border-radius:40% 40% 12px 12px}
#team-office .to-char:hover .to-char-hit,#team-office .to-char:focus-visible .to-char-hit{box-shadow:0 0 0 2px #c1f58b,0 0 18px #c1f58b55}
#team-office .to-char:focus-visible{outline:none}
.to-char-tag{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:clamp(18px,4.2vw,40px);padding:3px 6px;border-radius:8px;background:#0b141ae6;border:1px solid #2f4653;font-size:clamp(9px,1vw,12px);line-height:1.2;max-width:150%;white-space:nowrap}
.to-char-tag .to-pill{font-size:clamp(8px,.85vw,10px);padding:1px 6px}
.to-char-tag .to-counts{justify-content:center}
.to-char-tag .to-count{font-size:clamp(8px,.85vw,10px);padding:1px 4px}
#team-office .to-plan-board{position:absolute;padding:0;background:transparent;border:0;border-radius:6px}
#team-office .to-plan-board:hover,#team-office .to-plan-board:focus-visible{background:#4fd0e014;box-shadow:0 0 0 2px #4fd0e0}
.to-pill-person{border-color:#1bd5dc;color:#bff6f8}
.to-station-prepared,.to-station-pending{opacity:.86}
.to-station-pending{filter:saturate(.7)}
@media (prefers-reduced-motion:no-preference){#team-office:not([hidden]) .to-station-connected .to-screen{animation:to-glow 3.2s ease-in-out infinite}}
@keyframes to-glow{50%{opacity:.7}}
.to-floor-notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.to-seen-list{margin:0;padding-left:18px;font-size:12px;color:#cfdde5}
#team-office .to-back{flex:none;white-space:nowrap;font-size:13px;padding:6px 10px}
.to-drawer-head h2{flex:1;min-width:0}
/* Fit the whole room on desktop screens; phones scroll the plan horizontally. */
.to-plan{width:min(100%,max(720px,calc((100dvh - var(--team-top) - 150px) * 1.5625)));margin:0 auto}
@media(max-width:1050px){.to-floor-notes{grid-template-columns:minmax(0,1fr)}}
.to-pill-run-uncertain{border-color:#d48a2e;color:#ffd59a;border-style:dashed}
.to-resolve{margin-top:8px}
.to-resolve h4{margin:0;font-size:13px}

/* ---- Visual v2: bright 3D office (light work area, ATLAS bars unchanged) ---- */
#team-office.to-light-office{background:linear-gradient(180deg,#f4f8f9,#e8eff1)}
#team-office.to-light-office>.to-head{background:#111d25}
#team-office.to-light-office .to-sync{color:#5a6b74}
#team-office.to-light-office .to-main{padding:10px 14px 20px}
.to-scene{position:relative;height:max(440px,calc(100dvh - var(--team-top) - 112px));border-radius:18px;overflow:hidden;background:#eef3f4;box-shadow:0 1px 0 #ffffff inset,0 10px 30px #1b2b3322;border:1px solid #d6e0e3}
.to-scene-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:grab;touch-action:none;outline:none}
.to-scene-canvas:active{cursor:grabbing}
.to-scene-canvas:focus-visible{box-shadow:inset 0 0 0 3px #1bb5bd}
.to-scene-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden}
#team-office .to-tag{position:absolute;left:0;top:0;pointer-events:auto;display:inline-flex;align-items:center;gap:5px;padding:3px 9px 3px 7px;margin:0;border:1px solid #ffffffcc;border-radius:999px;background:#ffffffe6;color:#16303a;font-size:12px;font-weight:600;line-height:1.3;white-space:nowrap;box-shadow:0 2px 8px #1b2b3333;backdrop-filter:blur(4px);will-change:transform}
#team-office .to-tag:hover,#team-office .to-tag:focus-visible{background:#fff;box-shadow:0 0 0 2px #1bb5bd,0 4px 12px #1b2b3344;outline:none}
.to-tag[hidden]{display:none!important}
.to-tag-dot{width:8px;height:8px;border-radius:50%;flex:none;box-shadow:0 0 0 2px #fff}
.to-tag-n{min-width:16px;padding:0 4px;border-radius:8px;background:#2c8fbf;color:#fff;font-size:10px;text-align:center}
#team-office .to-tag-zone{pointer-events:none;background:#ffffffa6;border-color:transparent;color:#3d5a66;font-weight:600;font-size:11px;letter-spacing:.2px;box-shadow:none;transform-origin:0 0}
#team-office .to-tag-board{background:#16303ae6;color:#fff;border-color:#16303a}
.to-scene-tools{position:absolute;right:12px;bottom:12px;display:flex;gap:6px;z-index:1}
#team-office .to-scene-tools button{background:#ffffffee;color:#16303a;border:1px solid #d0dbdf;box-shadow:0 2px 8px #1b2b3326;min-width:36px;height:36px;padding:0 10px;font-weight:600}
#team-office .to-scene-tools button:hover{background:#fff}
#team-office.to-light-office .to-floor-notes .to-zone{background:#ffffff;border-color:#d6e0e3;color:#22343c}
#team-office.to-light-office .to-floor-notes .to-note,#team-office.to-light-office .to-seen-list{color:#4d616a}
#team-office.to-light-office .to-floor-notes code{color:#16303a}
@media(max-width:720px){.to-scene{height:58vh;min-height:340px;border-radius:14px}#team-office .to-tag{font-size:11px;padding:2px 7px 2px 6px}#team-office .to-tag-zone{display:none}}
@media(max-height:500px) and (orientation:landscape){.to-scene{height:calc(100dvh - var(--team-top) - 60px);min-height:240px}#team-office .to-tag-zone{display:none}#team-office .to-tag{font-size:10px;padding:1px 6px 1px 5px}}
.to-pill-proposed{border-color:#8a6ad1;color:#d9ccf5;border-style:dashed}
/* Direct access to the three real section leads, including narrow screens. */
#team-lead-dock{position:fixed;top:calc(var(--team-top) + 8px);right:3px;z-index:20;width:58px;display:flex;flex-direction:column;gap:9px;padding:5px 0;border-radius:18px;background:#14232df2;box-shadow:0 5px 18px #0005}
#team-lead-dock button{position:relative;display:flex;align-items:center;flex-direction:column;justify-content:center;width:58px;min-height:64px;padding:3px;margin:0;border:0;border-radius:14px;background:transparent;color:#edf5f8;cursor:pointer}
#team-lead-dock button:hover{background:#2c4859}
#team-lead-dock button:focus-visible{outline:2px solid #c1f58b;outline-offset:-2px}
#team-lead-dock .to-lead-name{font:10px Segoe UI,sans-serif;margin-top:2px}
#team-lead-dock .to-avatar{flex:none}
.to-lead-dot{position:absolute;top:34px;right:7px;width:8px;height:8px;border:2px solid #14232d;border-radius:50%;background:#8899a3}
[data-connection=connected] .to-lead-dot{background:#55d8ac}
[data-connection=disconnected] .to-lead-dot{background:#e4ad51}
:root{--team-rail:64px}
#team-rail{padding-top:236px}
@media(max-width:720px){#team-office{right:64px}#team-rail{padding-top:236px}#team-lead-dock{right:3px}.to-drawer{max-width:100%}.to-head{gap:6px!important;padding:10px!important}.to-title{flex-basis:180px}}
.to-portrait{display:inline-block;object-fit:cover;object-position:center top;border-radius:50%;border:1px solid #466577;box-shadow:0 2px 10px #0006;flex:none}
.to-portrait-vision{object-position:35% center}
.to-motion-control{display:flex;align-items:center;gap:12px;padding:10px 2px;color:#536772;font-size:13px;flex-wrap:wrap}.to-motion-control button{background:#e7f0ed;color:#203c47;border:1px solid #b9cfca;border-radius:9px;padding:8px 12px;cursor:pointer}.to-motion-control button[aria-pressed="false"]{background:#f3f5f6}
.to-portrait-ultron{object-position:43% center}
#team-lead-dock{background:linear-gradient(160deg,#213746f5,#10212bf5);border:1px solid #38515e;box-shadow:0 8px 24px #0005}
#team-lead-dock .to-portrait{width:44px;height:44px}
#team-office .to-drawer-head .to-back{width:auto;min-width:64px;max-width:90px;font-size:13px;padding:6px 10px;flex:none}
#team-office .to-drawer-head h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#atlas-preview-banner{left:0!important;right:0!important;bottom:0!important;transform:none!important;border-radius:0!important;text-align:center;font-size:10px!important;padding:3px 6px!important}
body:has(#atlas-preview-banner) #team-office{bottom:22px}

.to-model-controls{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.to-model-controls button{padding:7px 10px}

/* Shared conversation retains each participant’s readable text color. */
.to-general-people{padding:10px 0;line-height:1.8}.to-general-log .to-msg p{color:inherit;white-space:pre-wrap}.to-general-log .to-msg-meta{color:inherit}.to-general-log{max-height:48vh;overflow:auto}

/* Shared conversations use a light surface, including embedded agent chats. */
#team-office .to-chat-log{background:#edf3f5;border-color:#cbdbe2;color:#172d3b}
#team-office .to-msg{background:#fff;border:1px solid #d2dfe5;color:#172d3b!important}
#team-office .to-msg-to-agent{background:#dcf2ec;border-color:#b5d8cc}
#team-office .to-msg-meta,#team-office .to-chat-log .to-note,#team-office .to-msg small{color:#506877}
#team-office .to-drawer.to-chat-light,#team-office .to-chat-light .to-drawer-head,#team-office .to-chat-light .to-drawer-body{background:#f4f7f9;color:#172d3b;--to-muted:#506877;--to-line:#cad9e1}
#team-office .to-chat-light button{background:#fff;color:#173d4a;border-color:#b6cbd5}
#team-office .to-chat-light .to-role,#team-office .to-chat-light .to-note{color:#395667}
#team-office .to-drawer form.to-chat-form{background:#fff;border-color:#cbdbe2;color:#172d3b}
#team-office .to-chat-form label{color:#29495a}
#team-office .to-chat-form textarea,#team-office .to-chat-form select{background:#fff;color:#172d3b;border-color:#9eb7c5}
#team-office .to-chat-form textarea::placeholder{color:#607987}
