:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:#eef3ff;background:#0b1020;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 78% 0,#202b58 0,#0b1020 45%);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.shell{max-width:1120px;margin:auto;padding:0 22px}.top{display:flex;justify-content:space-between;align-items:center;padding:25px 0;border-bottom:1px solid #273252}.brand{font-weight:800;letter-spacing:-.03em;display:flex;gap:10px;align-items:center;font-size:23px}.brand small{display:block;color:#8391b2;letter-spacing:.17em;font-size:10px;margin-top:1px}.mark{display:inline-grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#8bd8ac;color:#091421}.chip,.tag{border:1px solid #33415e;border-radius:30px;padding:7px 11px;font-size:11px;color:#a9b8d2}.hero{display:flex;justify-content:space-between;gap:20px;align-items:end;padding:40px 0 27px}.hero h1{font-size:clamp(34px,5vw,60px);line-height:1.09;letter-spacing:-.055em;margin:8px 0 16px}.hero em{font-style:normal;color:#94e0b6}.hero p{color:#a3b1cd;max-width:470px;line-height:1.55}.eyebrow{color:#97e3b9!important;letter-spacing:.14em;font-size:11px;font-weight:800}.hero-stat{text-align:center;min-width:130px;background:#18213a;border:1px solid #33405f;border-radius:18px;padding:22px}.hero-stat span{font-size:40px;font-weight:800;display:block}.hero-stat small{color:#a6b3c9}.tabs{display:flex;gap:8px;border-bottom:1px solid #2b3754;margin-bottom:22px}.tabs button{background:none;color:#97a5c2;border:0;padding:14px 19px;border-bottom:2px solid transparent}.tabs button.active{color:#9be2b9;border-color:#9be2b9}.panel{display:none}.panel.active{display:block}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.card{background:#161f35;border:1px solid #2c3955;border-radius:20px;padding:22px;margin-bottom:18px}.card-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.card h2{font-size:19px;letter-spacing:-.02em;margin:0 0 20px}.tag{margin-bottom:19px}.upload{display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:175px;border:2px dashed #435474;border-radius:15px;background:#1a2740;cursor:pointer;margin-bottom:12px}.upload-icon{font-size:32px;color:#8ce3b1}.upload small{color:#96a8c1;margin-top:8px}.muted{color:#9baac4;font-size:13px;line-height:1.5}label{display:block;font-size:13px;font-weight:650;margin:16px 0 8px;color:#d7e0f2}input:not([type=file]),textarea,select{display:block;width:100%;padding:13px 14px;background:#0f172a;border:1px solid #37455e;border-radius:11px;color:#f5f7ff;outline-offset:3px}textarea{resize:vertical}input:focus,textarea:focus,select:focus{border-color:#9ee6bd}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.primary,.secondary{border-radius:11px;padding:12px 17px;border:1px solid #9fe3b9;font-weight:750;margin-top:15px}.primary{background:#9de5bb;color:#071827}.secondary{background:transparent;color:#d8ede1;border-color:#50677a}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}video,#thumbnailPreview{max-width:100%;max-height:250px;border-radius:12px;margin-top:10px}#thumbnailDownload{color:#a6ebc1;font-size:13px}#queueList article{border-bottom:1px solid #36425c;padding:14px 0}#queueList article p{color:#a7b3cf;overflow-wrap:anywhere}#queueList article button{background:transparent;border:1px solid #4b5870;color:#fff;padding:7px 10px;border-radius:7px}footer{text-align:center;color:#71809c;padding:28px;font-size:12px}@media(max-width:680px){.shell{padding:0 14px}.top{padding:17px 0}.brand{font-size:19px}.chip{font-size:10px}.hero{align-items:start;padding-top:30px}.hero-stat{display:none}.grid{grid-template-columns:1fr}.card{padding:17px}.two{grid-template-columns:1fr 1fr}.tabs button{flex:1}}
.planner-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}
#queueList article .actions{margin:8px 0 14px}
#queueList article .actions button{margin-top:0}
.import-label{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;margin:15px 0 0}
.calendar-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px}
.calendar-controls strong{min-width:145px;text-align:center}
.calendar-controls button{margin:0}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.calendar-weekday{text-align:center;color:#a8b9d0;font-size:11px;padding:7px 0}
.calendar-day{min-height:74px;border:1px solid #34405e;border-radius:9px;padding:9px 5px;display:flex;flex-direction:column;gap:9px;align-items:start}
.calendar-day span{font-size:13px}
.calendar-day small{font-size:10px;color:#a1eabc}
.calendar-day.has-drafts{background:#193a39;border-color:#5ea88f}
@media(max-width:680px){.planner-filters{grid-template-columns:1fr 1fr}.planner-filters>div:first-child{grid-column:1/-1}.calendar-day{min-height:51px;padding:6px 3px}.calendar-day small{font-size:9px}}

/* Original lightweight pixel-office, designed for mobile Chrome. */
.pixel-office-card{overflow:hidden}
.office-statusbar{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 15px}
.office-statusbar span{border:1px solid #4a5978;background:#192b45;color:#d8edfa;padding:7px 11px;border-radius:8px;font:600 12px/1.25 ui-monospace,monospace}
.office-canvas-wrap{background:#0f182b;border:3px solid #344867;box-shadow:5px 5px 0 #0a1324;overflow:hidden;margin-bottom:20px}
#officeCanvas{display:block;max-width:100%;width:100%;height:auto;aspect-ratio:720/424;image-rendering:pixelated;touch-action:manipulation}
.office-bot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.office-bot{display:flex;flex-direction:column;gap:7px;text-align:left;color:#dae5f2;background:#1a2b44;border:2px solid #394866;border-radius:6px;padding:11px;min-height:76px}
.office-bot strong{font-size:12px;line-height:1.3}
.office-bot.selected{outline:2px solid #94e4b4;border-color:#9fe7c0}
.office-state{font-size:11px;color:#b3c1d7}
.office-state.working{color:#c9f9a0}
.office-state.complete{color:#97ebbb}
.office-state.error{color:#ffacb3}
.office-state.unavailable{color:#aeb7c7}
.office-details{padding:12px;background:#102138;border-left:3px solid #8deab5;color:#d9e7fa;line-height:1.55;font-size:13px;margin:14px 0}
@media(max-width:640px){.office-bot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.office-bot{min-height:68px}.office-statusbar span{font-size:10px}.tabs button{padding:13px 5px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.office-bot{transition:none}}

.team-result{background:#0f1b2e;border:1px solid #405570;padding:14px;border-radius:12px;margin-top:16px}
.team-result h3{margin:0 0 10px;font-size:15px}
.team-result pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.55;color:#b5ebc9;max-height:420px;overflow:auto}
.team-history-row{padding:12px 0;border-bottom:1px solid #33415a;display:flex;flex-direction:column;gap:5px}
.team-history-row strong{font-size:13px;text-transform:capitalize}
.team-history-row span{font-size:12px;color:#9aaac5;overflow-wrap:anywhere}

/* Approved per-user AI task ledger, mobile-first and screen-reader friendly. */
.tabs{overflow-x:auto;scrollbar-width:thin}
.tabs button{white-space:nowrap;flex:0 0 auto}
.task-record{background:#101b30;border:1px solid #354969;border-radius:13px;padding:15px;margin:14px 0}
.task-record strong{font-size:13px;letter-spacing:.015em}
.task-brief{white-space:pre-wrap;overflow-wrap:anywhere;color:#dae7f9;font-size:13px;line-height:1.5}
.task-record .actions button{margin:0}
.task-record details{margin:12px 0;color:#a6e7c2}
.task-record details summary{cursor:pointer;font-weight:600;font-size:13px}
.task-json{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;font-size:12px;line-height:1.5;color:#c6e6d4}
.task-error{color:#ffb0ba;overflow-wrap:anywhere;font-size:13px}
@media(max-width:680px){.tabs button{flex:0 0 auto;padding:13px 12px}}

/* Phase 8: The office IS the interface. All workflows live in in-world drawers. */
html,body{margin:0;min-height:100%;overflow:hidden}
body{background:#080f20}
body.station-open{overflow:hidden}
.game-shell{height:100vh;height:100dvh;max-width:none;width:100%;padding:0;display:flex;flex-direction:column;overflow:hidden}
.game-hud{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px clamp(11px,2.5vw,28px);border-bottom:2px solid #334560;background:linear-gradient(100deg,#152842,#0c1b30);z-index:5;min-height:62px}
.game-brand{display:flex;align-items:center;gap:11px;min-width:0}
.game-brand strong{display:block;letter-spacing:.035em;font-family:ui-monospace,monospace;font-size:clamp(12px,2vw,17px)}
.game-brand small{display:block;color:#92bcb5;font-size:10px;letter-spacing:.13em;margin-top:3px}
.hud-right{display:flex;align-items:center;gap:10px}
.game-hud-btn{background:#213d52;border:1px solid #769e9e;color:#f2f7f5;padding:10px 12px;border-radius:8px;font-size:12px}
.game-world{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;background:radial-gradient(ellipse at 45% 20%,#1c3953 0,#0a1526 68%)}
.office-scene{flex:1;min-height:0;display:flex;flex-direction:column;padding:8px clamp(9px,2vw,24px) 10px;gap:7px}
.scene-topline{display:flex;justify-content:space-between;gap:10px;align-items:center}
.scene-topline>div:first-child{display:flex;flex-direction:column;gap:3px}
.scene-topline strong{font-family:ui-monospace,monospace;font-size:clamp(11px,1.7vw,15px);color:#bcebc7}
.scene-topline span{font-size:11px;color:#94aac5}
.scene-topline .office-statusbar{margin:0;gap:6px}
.scene-topline .office-statusbar span{font-size:10px;white-space:nowrap}
.office-scene .office-canvas-wrap{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;width:min(100%,1050px);max-height:calc(100% - 40px);aspect-ratio:720/424;margin:auto;border:3px solid #425979;background:#0f182b;box-shadow:0 8px 0 #08111f,0 0 30px #65ccba16;overflow:hidden}
.office-scene #officeCanvas{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;aspect-ratio:720/424;image-rendering:pixelated;cursor:pointer}
.scene-controls{display:flex;align-items:center;gap:12px;justify-content:space-between;min-height:36px}
.scene-controls .office-details{margin:0;padding:7px 10px;font-size:11px;flex:1;max-height:50px;overflow:auto}
.roster{position:relative;flex:0 0 auto;max-width:50%}
.roster>summary{cursor:pointer;border:1px solid #47667b;background:#1c3449;border-radius:7px;padding:8px 10px;color:#c9f0de;font-size:11px;white-space:nowrap}
.roster[open] .office-bot-grid{position:absolute;z-index:9;bottom:35px;right:0;width:min(430px,83vw);max-height:300px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;background:#101f33;border:2px solid #49667c;border-radius:9px;box-shadow:0 14px 25px #000a}
.roster:not([open]) .office-bot-grid{display:none}
.game-toolbar{flex:0 0 auto;display:flex;justify-content:center;gap:6px;padding:9px 12px max(9px,env(safe-area-inset-bottom));background:#0c1b30;border-top:2px solid #39536d;box-shadow:0 -12px 30px #070d19a1}
.game-toolbar button{flex:1;min-width:0;max-width:190px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;background:#1e394b;border:1px solid #5a8b88;color:#e2f6e9;border-radius:9px;padding:7px 3px;font-size:11px;min-height:53px}
.game-toolbar button:first-child{background:#336050;border-color:#84e0a8}
.game-toolbar button>span{font-size:20px;line-height:1.1}
.game-toolbar button>strong{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.game-toolbar button:active{transform:translateY(1px)}
.game-overlay[hidden]{display:none!important}
.game-overlay{position:fixed;inset:0;z-index:35;display:flex;justify-content:flex-end;align-items:stretch}
.drawer-scrim{position:absolute;inset:0;border:0;background:rgba(4,10,22,.72);cursor:pointer}
.game-drawer{position:relative;z-index:1;display:flex;flex-direction:column;width:min(600px,100%);min-height:0;height:100%;background:#111e33;box-shadow:-12px 0 40px #0009;border-left:2px solid #507c82}
.drawer-titlebar{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #426273;background:#1a3145}
.drawer-titlebar small{font:10px ui-monospace,monospace;letter-spacing:.12em;color:#9fcebc}
.drawer-titlebar h2{font-size:20px;margin:3px 0 0}
#drawerClose{border:1px solid #6f9a9c;color:#e9f8f3;background:#294759;border-radius:8px;font-weight:700;min-width:44px;min-height:44px}
.drawer-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 18px max(20px,env(safe-area-inset-bottom))}
.drawer-body .panel{display:none}
.drawer-body .panel.active{display:block}
.drawer-body .card{border-radius:12px}
.game-chat-transcript{display:flex;flex-direction:column;gap:12px;background:#0b1528;border:1px solid #395672;border-radius:12px;padding:12px;min-height:200px;max-height:43vh;overflow-y:auto}
.game-chat-intro{color:#9dc3c5;font-size:12px}
.game-chat-bubble{padding:11px;border-radius:12px;background:#1c334a;max-width:92%;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.game-chat-bubble.user{align-self:flex-end;background:#315b50}
.game-chat-bubble.assistant{align-self:flex-start}
.game-chat-bubble strong{font-size:11px;color:#a8e9be}
.game-chat-bubble p{white-space:pre-wrap;margin:6px 0 0}
.chat-speech-option{display:flex;align-items:center;gap:10px;font-weight:400;color:#b8d0db}
.chat-speech-option input{width:auto!important}
.game-chat-card .actions{gap:7px}
@media(max-width:650px){
 .game-hud{min-height:54px;padding:6px 10px}
 .game-hud .chip{display:none}
 .scene-topline{display:block}
 .scene-topline .office-statusbar{margin-top:5px}
 .scene-topline .office-statusbar span{font-size:9px;padding:4px 6px}
 .scene-topline>div:first-child span{display:none}
 .office-scene{padding:6px 5px 7px}
 .office-scene .office-canvas-wrap{width:100%;max-height:none}
 .scene-controls .office-details{font-size:10px}
 .game-toolbar{gap:4px;padding:7px 5px max(7px,env(safe-area-inset-bottom))}
 .game-toolbar button{font-size:9px;min-height:49px;border-radius:7px}
 .game-toolbar button>span{font-size:17px}
 .game-drawer{width:100%;height:min(92dvh,100%);align-self:flex-end;border-left:0;border-top:2px solid #507c82;border-radius:16px 16px 0 0}
 .drawer-body{padding:10px}
 .drawer-titlebar{padding:11px 14px}
 .drawer-titlebar h2{font-size:17px}
 .game-chat-transcript{min-height:170px;max-height:36dvh}
}
@media(max-width:360px){.game-toolbar button>strong{font-size:8px}.roster>summary{padding:7px 6px}}
