/* AIWORK V5 - premium operations interface; additive, no API or worker modifications */
:root{--aw5-gold:#e8bd57;--aw5-electric:#49bfe9;--aw5-stroke:#234358;--aw5-surface:#0a1826}
body{background:#050a11}
.app{background:radial-gradient(ellipse at 73% -11%,#16324a50,transparent 60%),#050a11}
.topbar{min-height:75px!important;border-bottom:1px solid #77551d!important;background:linear-gradient(90deg,#060e17,#132236 45%,#101a26 64%,#060d15)!important;box-shadow:0 4px 22px #000c!important}
.topbar:before{content:"";position:absolute;left:34%;width:32%;top:0;height:100%;background:repeating-linear-gradient(105deg,transparent 0 17px,#cc973218 18px,transparent 19px 37px);opacity:.09;pointer-events:none}
.sidebar{background:linear-gradient(180deg,#081421 0%,#07101c 38%,#050910)!important;border-right:1px solid #38506a!important}
.sidebar .nav-item{min-height:40px;letter-spacing:.1px}
.sidebar .nav-item.active{border-radius:9px;box-shadow:inset 0 0 0 1px #f6cf64aa,0 0 20px #d8a8442a!important}
.main{background:linear-gradient(180deg,#071321 0%,#071019 300px,#060d15 100%)}
.aw2-toolbar{background:linear-gradient(110deg,#101d2d,#0a1a2b 48%,#101821)!important;border:1px solid #40617c!important;box-shadow:0 6px 25px #000b,inset 0 1px #ffffff0c!important;padding:12px 13px!important;margin:0 0 8px!important}
.aw2-brand{min-width:220px}
.aw2-brand img{height:47px!important;width:47px!important;border:2px solid #bb902f!important;box-shadow:0 0 18px #c79b3e40}
.aw2-brand b{color:#fcf7e8!important;font-size:17px!important;line-height:1.15}
.aw2-brand small{font-size:10px!important;color:#dec48e!important}
.aw2-btn{border-radius:9px!important;background:linear-gradient(180deg,#102b40,#091a2a)!important;border:1px solid #2d5370!important;min-height:39px!important;box-shadow:inset 0 1px #ffffff08;transition:border-color .15s,background .15s,box-shadow .15s}
.aw2-btn:hover,.aw2-btn:focus-visible{background:#154365!important;border-color:#61cbed!important}
.aw2-btn[aria-pressed=true],.aw2-btn.aw2-gold{background:linear-gradient(180deg,#ffd56d,#b98429)!important;color:#19130b!important;border-color:#ffde82!important;box-shadow:0 1px 20px #d8a74a3c}
.aw2-info{background:#07182a!important;border-color:#1e5771!important;color:#8ac8e2!important;padding:7px 11px!important;margin-bottom:10px!important}
.p1-hero{border:0!important;padding-top:6px!important;padding-bottom:3px!important}
.p1-title{letter-spacing:.5px!important}
.p1-chips{gap:5px!important}
.p1-chips .chip{background:#071524!important;border:1px solid #233d52!important}
.stats{gap:9px!important;margin:6px 0 14px!important}
.stats>.stat{position:relative;min-width:0;overflow:hidden;min-height:90px;border-color:#29485f!important;background:radial-gradient(ellipse at 100% 0%,#32618d2d,transparent 75%),linear-gradient(150deg,#0b1b2b,#0a1621)!important;box-shadow:0 6px 19px #0009,inset 0 1px #ffffff13!important}
.stats>.stat:before{content:"";position:absolute;right:9px;top:14px;font-size:22px;opacity:.72;line-height:1}
.stats>.stat:nth-child(1):before{content:"♙";color:#34b3ff}
.stats>.stat:nth-child(2):before{content:"↗";color:#58eaba}
.stats>.stat:nth-child(3):before{content:"◷";color:#d7a5f4}
.stats>.stat:nth-child(4):before{content:"✓";color:#64efc2}
.stats>.stat:nth-child(5):before{content:"!";color:#f27c81}
.stats>.stat:nth-child(6):before{content:"▤";color:#56e5ca}
.stats>.stat .val{font-weight:800;color:#d8f6ff;font-size:27px;letter-spacing:.25px}
.vhq-hero-card{border-color:#a87b2e!important;box-shadow:0 0 0 1px #d4a34030,0 15px 55px #000b!important;background:linear-gradient(180deg,#0e1c2d,#07121e)!important}
.vhq-head{background:linear-gradient(125deg,#12243a 0%,#071724 75%)!important;padding:10px 13px!important;border-bottom:1px solid #284e6b!important}
.vhq-head h2{font-size:17px!important;font-weight:800!important;color:#f0c466!important}
.vhq-head p{color:#90b2c7!important}
.vhq-head .chips .chip{background:#0c2637;border-color:#294d65}
.aw3-hq{grid-template-columns:minmax(0,1.85fr) minmax(300px,.67fr)!important;gap:12px!important;padding:12px!important;background:linear-gradient(150deg,#071a2b,#071321 55%,#060f1b)!important;min-height:0!important}
.aw3-stage{gap:8px!important}
.aw3-scene-top{padding:2px 0 1px}
.aw3-scene-top .aw3-title{color:#faf4e9!important;font-size:20px!important}
.aw3-eyebrow{letter-spacing:1.5px;color:#e3b855!important}
.aw3-hq .aw3-controls{gap:5px}
.aw3-tiny{background:linear-gradient(#102e47,#0b1a2b)!important;border-color:#305773!important;color:#d0eafa!important;padding:8px 10px!important;min-height:35px!important}
.aw3-tiny.gold,.aw4-three-toggle{background:linear-gradient(180deg,#ffda72,#ae7f2d)!important;color:#1c160e!important;border-color:#ffd973!important}
.aw4-wrap{height:clamp(470px,43vw,680px)!important;border:1px solid #bb8b39!important;background:radial-gradient(ellipse at 50% 0%,#112f4a,#04121f 65%)!important;box-shadow:inset 0 0 60px #0006,0 8px 35px #000b,0 0 0 1px #c4993d36!important}
.aw4-head{background:#061522d9!important;border:1px solid #a9812e!important;max-width:45%!important}
.aw4-head strong{font-size:13px!important}
.aw4-room-link{backdrop-filter:blur(5px);background:#071827d9!important;border:1px solid #346582!important;box-shadow:0 5px 16px #000b!important;max-width:165px;white-space:normal!important;text-align:center!important;padding:7px 8px!important}
.aw4-room-link b{font-size:10px!important;letter-spacing:.3px!important;line-height:1.2}
.aw4-room-link small{font-size:9px!important}
.aw4-room-link[data-active=true]{background:#3b2c17e8!important;border-color:#e2b45e!important}
.aw4-room-link:hover{border-color:#ffdb73!important;background:#124866ef!important}
.aw4-room-link[data-hidden=true]{display:none}
.aw4-navhint{font-size:10px!important;background:#061421df!important}
.aw3-sidebar{display:flex!important;flex-direction:column;gap:10px!important}
.aw3-panel{background:linear-gradient(135deg,#10263b,#081725)!important;border:1px solid #31536d!important;border-radius:11px!important;padding:11px 12px!important;box-shadow:inset 0 1px #ffffff10}
.aw3-panel h3{font-size:15px!important}
.aw3-agent-list{max-height:160px!important}
.aw3-agent-item{padding:7px!important}
#aw3Focus{scroll-margin-top:70px}
.aw5-agent-visual{position:relative;overflow:hidden;border:1px solid #326581;border-radius:10px;min-height:185px;background:radial-gradient(ellipse at 65% 22%,#2175a14a,transparent 58%),repeating-linear-gradient(90deg,#183c5140 0 2px,transparent 3px 31px),linear-gradient(150deg,#081b2e,#040d17)}
.aw5-agent-visual:before{content:"";position:absolute;left:5%;right:5%;top:12%;bottom:12%;border:1px solid #316a90;border-radius:8px;background:linear-gradient(120deg,transparent,#28a3d012,transparent),repeating-linear-gradient(0deg,#23587546 0 1px,transparent 2px 19px)}
.aw5-agent-visual:after{content:"RBMCC • SYSTEMS";position:absolute;top:9px;right:10px;color:#e2b764;font-size:9px;letter-spacing:1.5px;font-weight:800}
.aw5-agent-visual img{display:block;width:100%;height:205px;object-fit:cover;object-position:center;position:relative;z-index:1}
.aw5-robot{position:absolute;z-index:2;bottom:5px;left:40%;height:90px;width:55px;filter:drop-shadow(0 0 22px #43bffe66);pointer-events:none}
.aw5-robot:before{content:"";position:absolute;top:0;left:8px;width:42px;height:40px;border-radius:50% 50% 36% 36%;border:2px solid #bfcfe0;background:radial-gradient(circle at 32% 24%,#f7f4ec,#acbfca 23%,#22364d 70%)}
.aw5-robot:after{content:"● ●";position:absolute;top:13px;left:14px;color:#69e6ff;text-shadow:0 0 12px #18bcee;font-size:14px;letter-spacing:3px}
.aw5-robot-body{position:absolute;left:5px;bottom:0;width:53px;height:48px;border:2px solid #9ac9e7;border-radius:24px 24px 10px 10px;background:linear-gradient(100deg,#1b3045,#d3e4e9 40%,#18304c 78%);box-shadow:0 0 12px #259ad355}
.aw5-robot-body:after{content:"RBMCC";position:absolute;left:7px;top:21px;color:#d1ad59;font-size:9px;font-weight:900}
.aw5-agent-details{position:absolute;z-index:3;left:10px;bottom:8px;color:#daeeff;background:#051624dc;padding:6px 8px;border:1px solid #347ca0;border-radius:6px;font-size:10px;max-width:46%}
.aw5-panel{border:1px solid #326080;border-radius:12px;overflow:hidden;background:linear-gradient(150deg,#0b2032,#091625);box-shadow:0 8px 24px #0009}
.aw5-panel-hd{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:9px;border-bottom:1px solid #285776}
.aw5-panel-hd h3{font-size:14px;font-weight:800;color:#f8e1b1;margin:0}
.aw5-panel-hd small{font-size:10px;color:#8db2c9}
.aw5-badge{border-radius:15px;padding:4px 7px;font-size:10px;font-weight:800;background:#0b3429;color:#80ebbf;border:1px solid #267a5f}
.aw5-badge[data-online=false]{background:#2d1920;color:#f7acb3;border-color:#a45f6b}
.aw5-preview{margin:10px 11px 0}
.aw5-tabs{padding:9px 10px 5px;display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin}
.aw5-tab{font-size:10px!important;min-height:34px;flex:1 0 auto!important;border:1px solid #2b506a;background:#0a2238;color:#cee9fa;border-radius:7px;cursor:pointer;padding:6px}
.aw5-tab[aria-selected=true]{background:linear-gradient(#ecbf5c,#a57a27);color:#17130b;font-weight:800;border-color:#f2cd67}
.aw5-tab:focus-visible{outline:2px solid #e4c05f}
.aw5-content{padding:7px 11px 9px;min-height:96px;color:#bed6e7;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.aw5-content .aw5-label{color:#e1b65c;text-transform:uppercase;letter-spacing:.7px;font-size:10px;font-weight:800}
.aw5-content .aw5-data{margin-top:6px;border-radius:8px;background:#071727;border:1px solid #1c4665;padding:8px;max-height:90px;overflow:auto}
.aw5-panel-actions{padding:9px 11px 12px;display:grid;grid-template-columns:1.25fr .85fr;gap:7px}
.aw5-action{border:1px solid #346181;border-radius:8px;background:linear-gradient(#10324b,#092038);color:#e3f4fd;padding:9px 8px;min-height:38px;font-weight:800;font-size:11px;cursor:pointer}
.aw5-action.primary{background:linear-gradient(#f0cd70,#aa7c25);color:#1a140b;border-color:#e7bb55}
.aw5-action:hover{filter:brightness(1.12)}
.aw5-note{margin:0 11px 11px;color:#7f9eb2;font-size:10px}
.aw5-hero-title{border-bottom:1px solid #2d5269;margin:0 11px 11px;padding:0 0 8px}
.aw5-hero-title strong{color:#f4c66e;letter-spacing:1px;font-weight:800}
.aw5-hero-title small{color:#9ac2d8}
.aw5-hq-tools{display:flex;gap:6px;flex-wrap:wrap;margin:5px 0}
.aw5-mini-status{color:#4de6ae;font-size:11px;font-weight:800}
@media(max-width:1270px){
 .aw3-hq{grid-template-columns:minmax(0,1.6fr) minmax(270px,.8fr)!important}
 .aw2-brand{min-width:160px}
 .aw2-brand b{font-size:13px!important}
 .aw2-links{gap:5px}
 .aw2-btn{font-size:11px!important;padding:7px 9px!important}
}
@media(max-width:1050px){
 .aw3-hq{grid-template-columns:1fr!important}
 .aw3-sidebar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start}
 .aw5-panel{grid-column:1/-1}
 .aw3-panel{min-width:0}
 .aw4-wrap{height:520px!important}
}
@media(max-width:899px){
 .aw2-toolbar{padding:9px!important;gap:8px!important}
 .aw2-brand{min-width:0}
 .aw2-links{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:visible!important}
 .aw2-btn{white-space:normal!important;font-size:10px!important;min-height:42px!important;line-height:1.15!important}
 .main{padding:9px 10px 130px!important}
 .aw3-hq{padding:8px!important}
 .aw3-sidebar{grid-template-columns:1fr!important}
 .aw4-wrap{height:min(55vh,540px)!important;min-height:370px!important}
 .aw4-room-link{padding:5px!important;max-width:115px;line-height:1.15}
 .aw4-room-link b{font-size:9px!important}
 .aw4-room-link small{display:none}
 .aw4-head{max-width:52%!important}
 .aw4-head strong{font-size:10px!important}
 .aw4-head span{font-size:9px}
 .aw3-scene-top .aw3-title{font-size:18px!important}
 .stats>.stat{min-height:75px!important}
 .stats>.stat .val{font-size:21px!important}
 .aw5-agent-visual img{height:200px}
}
@media(max-width:560px){
 .aw2-toolbar{margin-bottom:6px!important}
 .aw2-brand img{height:38px!important;width:38px!important}
 .aw2-brand b{font-size:14px!important}
 .aw2-info{font-size:10px!important}
 .aw4-wrap{height:400px!important;min-height:0!important}
 .aw4-room-link{padding:4px!important;max-width:105px}
 .aw4-room-link b{font-size:8px!important}
 .aw4-navhint{max-width:84%;font-size:9px!important}
 .aw4-zoom button{min-height:32px}
 .aw3-hq .aw3-scene-top{align-items:start}
 .aw3-scene-top .aw3-title{font-size:17px!important}
 .aw3-sidebar{grid-template-columns:1fr!important}
 .aw5-panel{grid-column:auto}
 .vhq-head{padding:9px!important}
 .vhq-head h2{font-size:13px!important}
 #aw2InOffice{min-height:38px}
 .main{padding-bottom:140px!important}
}
@media(prefers-reduced-motion:reduce){.aw2-btn,.aw3-room,.aw5-action{transition:none!important}}
#aw5Panel .aw5-robot{display:none}#aw5Panel .aw5-agent-visual img{height:205px;object-fit:cover;object-position:center;filter:saturate(1.08) contrast(1.08)}

/* V5 phone priority: put the LIVE OFFICE within the first screen, keep all links. */
@media (min-width:391px) and (max-width:899px){
 .aw2-links{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .aw2-links .aw2-btn{padding:7px 4px!important;font-size:9.6px!important}
}
@media(max-width:899px){
 .p1-hero{display:none!important}
 .aw2-toolbar{padding:8px!important;gap:5px!important}
 .aw2-brand img{height:34px!important;width:34px!important}
 .aw2-brand b{font-size:13px!important}
 .aw2-brand small{font-size:9px!important}
 .aw2-btn{min-height:37px!important}
 .aw2-info{margin-bottom:5px!important;padding:5px 7px!important;font-size:10px!important;line-height:1.3}
 .stats{margin:5px 0 8px!important;padding-bottom:3px!important}
 .stats>.stat{min-height:65px!important;flex-basis:116px!important;width:116px!important;padding:7px 8px!important}
 .stats>.stat .lbl{font-size:9px!important}
 .stats>.stat .val{font-size:19px!important}
 .vhq-head{padding:8px!important}
 .vhq-head .brand p{display:none}
 .vhq-head h2{font-size:13px!important}
 .aw3-hq{padding:7px!important}
 .aw3-scene-top .aw3-title{font-size:16px!important}
 .aw4-wrap{height:390px!important}
}

