:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#233341;background:#f5f7f9;font-synthesis:none;--ink:#233341;--muted:#788591;--line:#e8edf1;--blue:#1b70a3;--navy:#162b3a}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #3b96d7;outline-offset:3px}button{border:0}svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}#app{display:flex;min-height:100vh}.rail{position:fixed;inset:0 auto 0 0;width:80px;background:var(--navy);display:flex;align-items:center;flex-direction:column;gap:15px;padding:26px 0;z-index:3}.brand-mark{width:39px;height:39px;border:2px solid #a8def5;border-radius:11px;display:grid;place-items:center;font-size:25px;color:#a8def5;text-decoration:none;font-weight:600}.rail .brand-mark{margin-bottom:39px}.rail-btn{background:transparent;color:#89a0af;width:45px;height:45px;border-radius:12px;display:grid;place-items:center}.rail-btn:hover,.rail-btn.active{background:#2e4656;color:#d0efff}.rail-bottom{margin-top:auto;display:grid;justify-items:center;gap:24px}.owner-avatar{display:grid;place-items:center;width:35px;height:35px;background:#bfd9df;color:#274955;border-radius:50%;font-size:14px;font-weight:700}main{width:calc(100% - 80px);margin-left:80px;padding:0 35px;max-width:1900px}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.breadcrumb{font-size:12px;letter-spacing:1.1px;color:var(--muted)}.breadcrumb span{margin:0 16px;color:#b9c3cb}.breadcrumb strong{color:#425565;letter-spacing:0;font-size:14px;font-weight:500}.top-actions{display:flex;align-items:center;gap:24px;font-size:13px;color:var(--muted)}.mode{display:flex;align-items:center;gap:7px;background:#edf1f4;padding:8px 12px;border-radius:20px}.mode span{width:6px;height:6px;background:#c29241;border-radius:50%}.heading{display:flex;justify-content:space-between;align-items:center;padding:31px 0 26px}.eyebrow{font-size:12px;font-weight:600;letter-spacing:2px;color:#7a8c99;margin:0 0 12px}h1{font-size:35px;letter-spacing:-1.4px;margin:0 0 10px;font-weight:600}h1 span{font-weight:350;color:#718696}.heading p:not(.eyebrow){margin:0;font-size:14px;color:var(--muted)}.primary{background:var(--navy);color:#fff;padding:13px 20px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:12px;font-weight:500;font-size:14px}.primary:hover{background:#294b61}.primary span{font-size:22px;font-weight:300}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:22px}.office-panel,.detail-panel,.task-panel,.activity-panel{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.scene-top{height:67px;display:flex;align-items:center;justify-content:space-between;padding:0 23px;border-bottom:1px solid var(--line)}.scene-top>div{display:flex;align-items:center;gap:12px}.floor-tag{font-size:12px;color:#577280;background:#eef4f6;padding:7px;border-radius:5px}.scene-top strong{font-size:14px;font-weight:600}.scene-caption{font-size:12px;color:#91a0aa;margin-left:5px}.quiet{background:#f2f5f7;color:#526777;padding:10px 13px;border-radius:7px;font-size:14px}.quiet:hover{background:#e7edf1}#scene{position:relative;height:540px;background:linear-gradient(#eef4f8,#e5edf2);overflow:hidden}#scene canvas{display:block;width:100%;height:100%;touch-action:none}#labels{position:absolute;inset:0;pointer-events:none}.agent-label{position:absolute;display:flex;align-items:center;gap:5px;background:rgba(255,255,255,.92);border:1px solid #dbe6ed;box-shadow:0 2px 8px #243d5010;border-radius:5px;padding:5px 8px;transform:translate(-50%,-50%);font-size:12px;color:#526877;white-space:nowrap;pointer-events:auto;cursor:pointer}.agent-label.selected{background:#203f54;color:#fff;border-color:#203f54}.agent-label b{font-size:10px;font-weight:400;color:#8b9ba7}.agent-label.selected b{color:#a4cadf}.scene-hint{position:absolute;left:20px;bottom:18px;font-size:12px;color:#6c8192;pointer-events:none}.scene-controls{position:absolute;right:18px;bottom:16px;display:flex;border:1px solid #d7e1e9;border-radius:8px;overflow:hidden;box-shadow:0 3px 10px #233e4e0a}.scene-controls button{background:#fff;width:36px;height:36px;font-size:20px;color:#526877;border-right:1px solid #e8edf1}.scene-controls button:last-child{border:0}.scene-footer{padding:16px 23px;display:flex;gap:23px;font-size:12px;color:#7b8994;align-items:center}.scene-footer>span{display:flex;align-items:center;gap:7px}.scene-footer>span:last-child{margin-left:auto}.key-dot{width:7px;height:7px;border-radius:50%;display:inline-block}.idle{background:#89aab7}.waiting{background:#d9af65}.panel-title{display:flex;align-items:center;justify-content:space-between;padding:23px 20px 17px}.panel-title h2{margin:0;font-size:16px;font-weight:600;letter-spacing:-.3px}.panel-title>span{font-size:12px;color:#80909c}.panel-title .eyebrow{font-size:10px;margin-bottom:8px}.detail-panel .panel-title>span{padding:4px 8px;background:#edf3f6;border-radius:5px}.team-item{display:flex;align-items:center;width:calc(100% - 20px);text-align:left;background:#fff;margin:0 10px;padding:11px 10px;border-radius:8px;gap:11px}.team-item:hover,.team-item.selected{background:#f0f5f8}.avatar{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;color:#fff;font-size:12px;font-weight:600;flex-shrink:0}.team-info{min-width:0;flex:1}.team-info strong{font-size:14px;display:block;font-weight:550}.team-info small{display:block;color:#91a0ab;font-size:12px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.team-state{width:6px;height:6px;border-radius:50%;background:#89aab7;margin-right:5px}.team-state.waiting{background:#d9af65}.add-agent{border:1px dashed #cedbe4;width:calc(100% - 40px);margin:17px 20px;background:transparent;padding:11px;font-size:13px;color:#6c8291;border-radius:7px}.lower-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;margin-top:22px}.notice{margin:0 20px 16px;font-size:13px;line-height:1.6;color:#7c8b97}.empty-state{min-height:115px;display:flex;align-items:center;justify-content:center;gap:15px;color:#93a2ac;padding:20px}.empty-state strong{display:block;font-size:14px;color:#718591;font-weight:500;margin-bottom:6px}.empty-state p{font-size:13px;margin:0}.empty-icon{background:#f2f6f8;border-radius:12px;padding:13px;color:#a0b3c0}.task-row{display:flex;align-items:center;gap:12px;padding:15px 20px;border-top:1px solid #eef2f4;width:100%;background:#fff;text-align:left}.task-row:hover{background:#f7f9fb}.task-row .task-info{min-width:0;flex:1}.task-info strong{display:block;font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-info small{display:block;margin-top:5px;font-size:12px;color:#8a9aa6}.task-badge{font-size:12px;padding:6px 9px;background:#fbf4e7;color:#ab853e;border-radius:5px;white-space:nowrap}.task-badge.cancelled{background:#eff2f4;color:#8e9ba5}.activity-item{margin:0 20px;padding:12px 0;display:flex;gap:11px;border-top:1px solid #eef2f4;font-size:13px;line-height:1.5;color:#778997}.activity-item:first-child{border:0}.activity-item .activity-dot{flex-shrink:0;width:6px;height:6px;background:#b2c8d4;border-radius:50%;margin-top:6px}.activity-item small{font-size:11px;color:#a1aeb7;display:block;margin-top:4px}.small-label{font-size:10px!important;letter-spacing:1px}.page-footer{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1px;color:#a0adb7;padding:24px 0}.page-footer span:last-child{letter-spacing:0;font-size:12px}dialog{border:1px solid #e0e9ef;border-radius:16px;padding:28px;width:min(480px,calc(100% - 30px));max-height:90vh;overflow:auto;color:var(--ink);box-shadow:0 25px 100px #122b3c35}dialog::backdrop{background:#112b3a65;backdrop-filter:blur(4px)}dialog h2{font-size:25px;letter-spacing:-.7px;font-weight:550;margin:15px 0 25px}.dialog-top{display:flex;justify-content:space-between;align-items:center}.dialog-top .eyebrow{margin:0}.close{background:transparent;color:#8b9ca7;font-size:28px}.large-avatar{margin-top:20px;border-radius:16px;width:65px;height:65px;display:grid;place-items:center;color:white;font-size:23px}label{display:block;font-size:14px;font-weight:500;margin:0 0 18px}input,textarea,select{display:block;width:100%;margin-top:8px;border:1px solid #dce5eb;border-radius:8px;padding:12px;background:#f9fbfc;color:var(--ink);outline:none;font-size:16px}input:focus,textarea:focus,select:focus{border-color:#5a9cc4;box-shadow:0 0 0 3px #3984b215}textarea{resize:vertical}dialog .notice{margin:0 0 22px}.dialog-buttons{display:flex;justify-content:space-between;gap:12px}.full{width:100%}.instructions{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:15px;padding:16px;background:#f4f7f9;border-radius:8px}#detail-meta{font-size:13px;color:#8a9aa6}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);background:#1e3d51;color:#fff;padding:13px 22px;border-radius:9px;font-size:14px;box-shadow:0 8px 30px #15324730;z-index:10;opacity:0;pointer-events:none;transition:.2s;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}.login-screen{position:fixed;inset:0;z-index:20;background:#edf3f6;display:grid;place-items:center}.login-card{background:#fff;padding:36px;border:1px solid var(--line);border-radius:18px;width:min(420px,90vw)}.login-card .brand-mark{background:var(--navy);margin-bottom:25px}.login-card h1{font-size:28px}.login-card p{font-size:14px;color:#84939f;line-height:1.5}.login-card .primary{width:100%}#login-error{color:#ad4747}#scene-error{position:absolute;inset:25% 15%;padding:25px;background:#fff;border-radius:15px;color:#6b808e;line-height:1.7;z-index:2}#tasks{max-height:350px;overflow:auto}
@media(min-width:1550px){#scene{height:620px}.workspace-grid{grid-template-columns:minmax(0,1fr) 300px}.team-item{padding:14px 10px}}
@media(max-width:1150px){main{padding:0 22px}.workspace-grid{grid-template-columns:minmax(0,1fr) 240px}.scene-caption{display:none}#scene{height:510px}.lower-grid{grid-template-columns:minmax(0,1fr) 280px}.scene-hint{max-width:60%;line-height:1.5}}
@media(max-width:850px){.rail{width:60px;padding-top:20px}.rail-btn{width:40px}main{margin-left:60px;width:calc(100% - 60px);padding:0 16px}.topbar{height:65px}.breadcrumb{font-size:10px}.breadcrumb span{margin:0 8px}.top-actions #clock{display:none}.mode{font-size:11px;padding:7px 9px}.heading{padding:24px 0}.heading p:not(.eyebrow){max-width:230px;line-height:1.6}.heading h1{font-size:30px}.eyebrow{font-size:10px}.workspace-grid{grid-template-columns:1fr}.detail-panel #team{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 8px}.team-item{width:100%;margin:0}.detail-panel .add-agent{width:calc(100% - 40px)}.lower-grid{grid-template-columns:1fr}#scene{height:490px}.page-footer span:last-child{display:none}.scene-top{padding:0 15px}.scene-footer{padding:14px;font-size:11px;gap:12px}}
@media(max-width:480px){.rail{width:49px}.rail .brand-mark{width:30px;height:30px;font-size:20px}.rail-btn{width:35px;height:40px}.owner-avatar{width:29px;height:29px}main{margin-left:49px;width:calc(100% - 49px);padding:0 10px}.breadcrumb{letter-spacing:.5px}.breadcrumb strong{font-size:12px}.breadcrumb{font-size:9px}.top-actions{gap:0}.mode{font-size:10px;padding:6px}.heading{gap:10px}.heading h1{font-size:27px}.heading .primary{padding:11px 12px;gap:6px;font-size:12px;white-space:nowrap}.heading .eyebrow{font-size:8px}.heading p:not(.eyebrow){font-size:12px}.scene-top{padding:0 10px;height:58px}.scene-top>div{gap:8px}.scene-top strong{font-size:12px}.scene-top .quiet{font-size:11px;padding:9px}#scene{height:390px}.scene-hint{font-size:10px;left:12px;bottom:15px;max-width:50%}.scene-controls{right:10px;bottom:13px}.scene-controls button{width:30px;height:30px}.scene-footer>span:last-child{display:none}.agent-label{font-size:10px;padding:4px 6px}.team-info strong{font-size:12px}.team-info small{font-size:11px}.team-item{gap:7px;padding:10px 5px}.avatar{width:29px;height:29px}.task-row{padding:13px 12px;gap:8px}.task-badge{font-size:10px;padding:6px}.panel-title{padding:19px 15px 14px}.notice{margin-left:15px;margin-right:15px}.empty-state{padding:15px}.empty-state p{font-size:12px}}
