/* AICC office · Codex Style (pixel room v1). Every rule is scoped to .pixel-office.codex-office.
   Room: 1536x1024 art px measured through --u (one art pixel of the current board width). Furniture
   is CSS pixel art drawn inside the node whose floor footprint office-codex.js declares as an obstacle.
   Characters: the existing 6-frame pixel-office-*-v3.png strips (idle 0%, walk 20%/40%, work 60%/80%,
   done 100%), drawn 128 art px square with the feet on the shared actor box's foot line.
   Motion: recorded work, observed walking and rest props only; all of it stops with motion off,
   offline/hidden, a paused replay and reduced motion (unless motion was explicitly enabled). */

/* ---------- Shell ---------- */
.pixel-office.codex-office{--cx-ink:#1d3530;--cx-soft:#4b625b;--cx-paper:#f3f7ef;--cx-card:#fffdf6;--cx-ol:#22332f;--cx-mint:#2f8f74;--cx-wood:#b97a46;color:var(--cx-ink);background:var(--cx-paper);border:3px solid var(--cx-ol);font:14px/1.5 system-ui,-apple-system,'Segoe UI','Apple SD Gothic Neo','Malgun Gothic',sans-serif}
.pixel-office.codex-office .po-header{background:#1f3a34;color:#eafff5;border-bottom:4px solid #6cc9a5;padding:14px 18px}
.pixel-office.codex-office .po-eyebrow{font:700 12px/1.4 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.16em;color:#9ff0cf}
.pixel-office.codex-office .po-title{color:#f4fff9}
.pixel-office.codex-office .po-close{background:#2b4c45;color:#eafff5;border:2px solid #9ff0cf;border-radius:4px;padding:6px 12px}
.pixel-office.codex-office .po-close:hover{background:#356156}
.pixel-office.codex-office button:focus-visible,.pixel-office.codex-office .po-viewport:focus-visible,.pixel-office.codex-office .po-replay-scrub:focus-visible{outline:3px solid #d9822b;outline-offset:3px}
.pixel-office.codex-office .po-status{background:#dcf1e6;color:var(--cx-ink);border-bottom:2px solid var(--cx-ol);border-left:6px solid var(--cx-mint)}
.pixel-office.codex-office.po-offline .po-status{background:#f1e2bd;border-left-color:#8a8178}
.pixel-office.codex-office.po-replaying .po-status{background:#f3e3c8;border-left-color:#c0703a}
.pixel-office.codex-office .po-motion-controls{background:#eaf3ea;border-bottom:1px dashed #8fb5a6}
.pixel-office.codex-office .po-motion-toggle,.pixel-office.codex-office .po-style-option,.pixel-office.codex-office .po-style-auto{background:var(--cx-card);color:var(--cx-ink);border:2px solid var(--cx-ol);border-radius:4px;padding:6px 10px}
.pixel-office.codex-office .po-style-option[aria-pressed=true],.pixel-office.codex-office .po-style-auto[aria-pressed=true]{background:var(--cx-mint);color:#fff}
.pixel-office.codex-office .po-motion-status,.pixel-office.codex-office .po-style-note{color:var(--cx-soft)}

/* ---------- Room box: 3:2, at least 960 px wide (0.625 screen px per art px) ---------- */
.pixel-office.codex-office .po-viewport{background:#172a26}
.pixel-office.codex-office .po-board.po-room{min-width:960px;height:auto!important;aspect-ratio:3/2;container-type:inline-size;--oil-u:calc(100cqw / 1536);--u:calc(100cqw / 1536);background:#2a3b36;background-image:none;box-shadow:none;overflow:hidden}
.pixel-office.codex-office.po-offline .po-board.po-room>:is(.cx-floor,.cx-wall,.cx-rug,.cx-f,.cx-lamp){filter:saturate(.55) brightness(.96)}
.pixel-office.codex-office.po-replaying .po-board.po-room>:is(.cx-floor,.cx-wall,.cx-rug,.cx-f){filter:sepia(.16) saturate(.92)}
.pixel-office.codex-office :is(.cx-floor,.cx-wall,.cx-walls,.cx-rug,.cx-mat,.cx-door,.cx-f,.cx-lamp){position:absolute;pointer-events:none;box-sizing:border-box}
.pixel-office.codex-office :is(.cx-wall,.cx-door,.cx-f)>span{position:absolute;display:block;box-sizing:border-box}

/* Floor: honey wood planks with seams and a faint grain. */
.pixel-office.codex-office .cx-floor{inset:0;z-index:0;background-color:#d39f65;background-image:
  repeating-linear-gradient(180deg,transparent 0 calc(30 * var(--u)),#a5713f calc(30 * var(--u)) calc(32 * var(--u))),
  repeating-linear-gradient(90deg,transparent 0 calc(190 * var(--u)),#b47e4a calc(190 * var(--u)) calc(192 * var(--u))),
  repeating-linear-gradient(180deg,transparent 0 calc(12 * var(--u)),#ffffff12 calc(12 * var(--u)) calc(14 * var(--u))),
  linear-gradient(180deg,#d8a66b,#c8935a)}
/* Side and front walls: thin mint-grey frame. The back wall is its own node (.cx-wall). */
.pixel-office.codex-office .cx-walls{inset:0;z-index:1;box-shadow:inset calc(24 * var(--u)) 0 0 #4f8474,inset calc(-24 * var(--u)) 0 0 #4f8474,inset 0 calc(-24 * var(--u)) 0 #3f6e60}
.pixel-office.codex-office .cx-wall{z-index:1;background:
  linear-gradient(180deg,#2f5a4f 0 calc(8 * var(--u)),transparent calc(8 * var(--u))),
  repeating-linear-gradient(90deg,transparent 0 calc(94 * var(--u)),#5f9c86 calc(94 * var(--u)) calc(96 * var(--u))) 0 100%/100% 36% no-repeat,
  linear-gradient(180deg,transparent 0 62%,#86c6ad 62% 64%,#7bbba2 64%),
  repeating-linear-gradient(180deg,transparent 0 calc(22 * var(--u)),#ffffff1c calc(22 * var(--u)) calc(24 * var(--u))),
  linear-gradient(180deg,#bfe9d5,#a9ddc5 62%)}
.pixel-office.codex-office .cx-wall>.cx-baseboard{background:#3d6b5c;border-top:calc(3 * var(--u)) solid #2a4a40}
.pixel-office.codex-office .cx-window{background:linear-gradient(160deg,#dff6ff 0 30%,#bfe6f3 30% 56%,#a7d8e8 56%);border:calc(7 * var(--u)) solid #f6f2e4;box-shadow:0 0 0 calc(3 * var(--u)) var(--cx-ol),calc(5 * var(--u)) calc(6 * var(--u)) 0 #2f5a4f55}
.pixel-office.codex-office .cx-window:before{content:'';position:absolute;left:50%;top:0;bottom:0;width:calc(5 * var(--u));margin-left:calc(-2.5 * var(--u));background:#f6f2e4}
.pixel-office.codex-office .cx-window:after{content:'';position:absolute;left:0;right:0;top:46%;height:calc(5 * var(--u));background:#f6f2e4}
.pixel-office.codex-office .cx-board{background:#f8fcf7;border:calc(6 * var(--u)) solid #5d7f74;box-shadow:0 0 0 calc(3 * var(--u)) var(--cx-ol);color:#2b5c50;font:800 calc(22 * var(--u))/1 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.2em;padding:calc(10 * var(--u)) calc(12 * var(--u))}
.pixel-office.codex-office .cx-board:before{content:'';position:absolute;left:calc(12 * var(--u));top:calc(44 * var(--u));width:calc(26 * var(--u));height:calc(22 * var(--u));background:#ffe27a;box-shadow:calc(36 * var(--u)) 0 0 #9ff0cf,calc(72 * var(--u)) 0 0 #ffc2a8,calc(108 * var(--u)) calc(4 * var(--u)) 0 #ffe27a}
.pixel-office.codex-office .cx-board:after{content:'';position:absolute;left:calc(12 * var(--u));right:calc(12 * var(--u));top:calc(74 * var(--u));height:calc(3 * var(--u));background:#2f8f74;box-shadow:0 calc(8 * var(--u)) 0 #9cb7ad}
.pixel-office.codex-office .cx-clock{border-radius:50%;background:#fffdf6;border:calc(4 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-clock:before{content:'';position:absolute;left:50%;top:18%;width:calc(3 * var(--u));height:34%;background:var(--cx-ol)}
.pixel-office.codex-office .cx-clock:after{content:'';position:absolute;left:50%;top:48%;width:32%;height:calc(3 * var(--u));background:#d9533f}
.pixel-office.codex-office .cx-poster{background:linear-gradient(180deg,#ffe9b5 0 55%,#2f8f74 55% 75%,#1f3a34 75%);border:calc(4 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-poster:before{content:'';position:absolute;left:28%;top:16%;width:44%;height:30%;background:#f08a5d;border-radius:50%}
.pixel-office.codex-office .cx-vent-wall{background:repeating-linear-gradient(180deg,#d9efe5 0 calc(3 * var(--u)),#5d8b7c calc(3 * var(--u)) calc(6 * var(--u)));border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-rug{z-index:1;border:calc(5 * var(--u)) solid #fffaf0;box-shadow:0 0 0 calc(3 * var(--u)) #2f5a4f66}
.pixel-office.codex-office .cx-rug-meet{background:repeating-linear-gradient(90deg,#7cc6aa 0 calc(24 * var(--u)),#6dbb9e calc(24 * var(--u)) calc(48 * var(--u)))}
.pixel-office.codex-office .cx-rug-lounge{background:repeating-linear-gradient(45deg,#f2c98a 0 calc(16 * var(--u)),#eebd76 calc(16 * var(--u)) calc(32 * var(--u)));border-color:#f9ecd2}
.pixel-office.codex-office .cx-rug-lead{background:#9fd6bf;border-color:#e8f6ee;opacity:.9}
.pixel-office.codex-office .cx-mat{z-index:1;background:repeating-linear-gradient(0deg,#3d5e55 0 calc(6 * var(--u)),#4f7368 calc(6 * var(--u)) calc(12 * var(--u)));border:calc(3 * var(--u)) solid #22332f}
.pixel-office.codex-office .cx-door{z-index:2}
.pixel-office.codex-office .cx-door-leaf{background:linear-gradient(90deg,#8a5a31,#b97a46);border:calc(4 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-door-leaf:after{content:'';position:absolute;left:calc(4 * var(--u));top:48%;width:calc(5 * var(--u));height:calc(10 * var(--u));background:#f2c14e}
.pixel-office.codex-office .cx-exit{background:#2f8f74;border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-exit:after{content:'EXIT';position:absolute;inset:0;color:#eafff5;font:800 calc(10 * var(--u))/calc(14 * var(--u)) ui-monospace,Consolas,monospace;text-align:center}

/* ---------- Furniture: one node per obstacle; top surface + front face + parts ---------- */
.pixel-office.codex-office .cx-f>.cx-shadow{background:#2a1c1033;border-radius:calc(6 * var(--u))}
.pixel-office.codex-office .cx-f>.cx-top{background:#ecc48c;border:calc(3 * var(--u)) solid var(--cx-ol);border-bottom:0;box-shadow:inset 0 calc(4 * var(--u)) 0 #f8dcb0}
.pixel-office.codex-office .cx-f>.cx-front{background:#b97a46;border:calc(3 * var(--u)) solid var(--cx-ol);box-shadow:inset 0 calc(4 * var(--u)) 0 #d59a62,inset 0 calc(-4 * var(--u)) 0 #8a5a31}
/* Desks */
.pixel-office.codex-office .cx-id-lead-desk>.cx-top{background:#cf9459;box-shadow:inset 0 calc(4 * var(--u)) 0 #e3b07a}
.pixel-office.codex-office .cx-id-lead-desk>.cx-front{background:#8d5a33;box-shadow:inset 0 calc(4 * var(--u)) 0 #a96f42,inset 0 calc(-4 * var(--u)) 0 #6c4224}
.pixel-office.codex-office .cx-id-ops-console>.cx-top{background:#d5ebe2;box-shadow:inset 0 calc(4 * var(--u)) 0 #eef8f3}
.pixel-office.codex-office .cx-id-ops-console>.cx-front{background:#5f9282;box-shadow:inset 0 calc(4 * var(--u)) 0 #78ad9b,inset 0 calc(-4 * var(--u)) 0 #477264}
.pixel-office.codex-office .cx-mon{background:#3b4a47;border:calc(3 * var(--u)) solid var(--cx-ol);box-shadow:inset 0 calc(4 * var(--u)) 0 #5a726c,inset calc(-4 * var(--u)) 0 0 #2c3836}
.pixel-office.codex-office .cx-mon:after{content:'';position:absolute;right:calc(6 * var(--u));bottom:calc(5 * var(--u));width:calc(4 * var(--u));height:calc(4 * var(--u));background:#7dffb5}
.pixel-office.codex-office .cx-mon-neck{background:#4c5d59;border-left:calc(2 * var(--u)) solid var(--cx-ol);border-right:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-mon-foot{background:#2f3b38}
.pixel-office.codex-office .cx-kbd{background:#eef3ee repeating-linear-gradient(90deg,transparent 0 calc(4 * var(--u)),#a2b6ae calc(4 * var(--u)) calc(5 * var(--u)));border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-mouse{background:#eef3ee;border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-mug{background:#fffdf6;border:calc(2 * var(--u)) solid var(--cx-ol);box-shadow:calc(4 * var(--u)) calc(2 * var(--u)) 0 calc(-1 * var(--u)) var(--cx-ol)}
.pixel-office.codex-office .cx-mug:before{content:'';position:absolute;inset:calc(1 * var(--u)) calc(1 * var(--u)) auto;height:calc(3 * var(--u));background:#7a4a2a}
.pixel-office.codex-office .cx-paper{background:#fbfaf2;border:calc(2 * var(--u)) solid #8fa39b;box-shadow:inset 0 calc(4 * var(--u)) 0 #fff,inset 0 calc(-3 * var(--u)) 0 #dfe8e3}
.pixel-office.codex-office .cx-drawer{background:#a96f42;border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-drawer:after{content:'';position:absolute;left:35%;right:35%;top:40%;height:calc(3 * var(--u));background:#f2d27a}
.pixel-office.codex-office .cx-lamp-pole{background:#2f3b38}
.pixel-office.codex-office .cx-lamp-head{background:#2f8f74;border:calc(2 * var(--u)) solid var(--cx-ol);border-radius:calc(8 * var(--u)) calc(8 * var(--u)) 0 0}
.pixel-office.codex-office .cx-plate{background:#f1cf6e;border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-plate:after{content:'LEAD';position:absolute;inset:0;font:800 calc(9 * var(--u))/calc(12 * var(--u)) ui-monospace,Consolas,monospace;text-align:center;color:#5a3d16;letter-spacing:.1em}
.pixel-office.codex-office .cx-panel{background:#24302e linear-gradient(90deg,transparent 0 calc(8 * var(--u)),#7dffb5 calc(8 * var(--u)) calc(14 * var(--u)),transparent calc(14 * var(--u)) calc(20 * var(--u)),#f2c14e calc(20 * var(--u)) calc(26 * var(--u)),transparent calc(26 * var(--u)) calc(32 * var(--u)),#7dd3ff calc(32 * var(--u)) calc(38 * var(--u)),transparent calc(38 * var(--u))) 0 50%/100% calc(6 * var(--u)) no-repeat;border:calc(2 * var(--u)) solid var(--cx-ol)}
/* Shelves and archive */
.pixel-office.codex-office .cx-f-shelf>.cx-top{background:#a8703f;box-shadow:inset 0 calc(4 * var(--u)) 0 #c08552}
.pixel-office.codex-office .cx-f-shelf>.cx-front{background:#7c4f2c;box-shadow:inset calc(5 * var(--u)) 0 0 #8f5d35,inset calc(-5 * var(--u)) 0 0 #8f5d35}
.pixel-office.codex-office .cx-books{border-bottom:calc(4 * var(--u)) solid #5b3a20;background:repeating-linear-gradient(90deg,#d0644a 0 calc(8 * var(--u)),#f0c35a calc(8 * var(--u)) calc(14 * var(--u)),#4f9d84 calc(14 * var(--u)) calc(22 * var(--u)),#3e6ea0 calc(22 * var(--u)) calc(28 * var(--u)),#f4efe2 calc(28 * var(--u)) calc(32 * var(--u)),#2e7a5f calc(32 * var(--u)) calc(40 * var(--u)),transparent calc(40 * var(--u)) calc(44 * var(--u)))}
.pixel-office.codex-office .cx-books.cx-b{background:repeating-linear-gradient(90deg,#3e6ea0 0 calc(7 * var(--u)),#f4efe2 calc(7 * var(--u)) calc(12 * var(--u)),#d0644a calc(12 * var(--u)) calc(20 * var(--u)),transparent calc(20 * var(--u)) calc(26 * var(--u)),#f0c35a calc(26 * var(--u)) calc(33 * var(--u)),#4f9d84 calc(33 * var(--u)) calc(40 * var(--u)))}
.pixel-office.codex-office .cx-box{background:#e6c48d;border:calc(2 * var(--u)) solid var(--cx-ol);box-shadow:inset 0 calc(6 * var(--u)) 0 #f3dcb1}
.pixel-office.codex-office .cx-globe{background:radial-gradient(circle at 40% 40%,#9ff0cf 0 30%,#3e8fb0 31%);border:calc(2 * var(--u)) solid var(--cx-ol);border-radius:50%}
.pixel-office.codex-office .cx-f-archive>.cx-top{background:#cfe6dc;box-shadow:inset 0 calc(4 * var(--u)) 0 #eaf6f0}
.pixel-office.codex-office .cx-f-archive>.cx-front{background:#7fa99a}
.pixel-office.codex-office .cx-cab{border:calc(3 * var(--u)) solid var(--cx-ol);background:repeating-linear-gradient(180deg,#b9dacd 0 calc(4 * var(--u)),#a6cdbf calc(4 * var(--u)) calc(33 * var(--u)),#22332f calc(33 * var(--u)) calc(36 * var(--u)))}
.pixel-office.codex-office .cx-cab:before{content:'';position:absolute;left:38%;width:24%;top:calc(20 * var(--u));height:calc(4 * var(--u));background:var(--cx-ol);box-shadow:0 calc(36 * var(--u)) 0 var(--cx-ol),0 calc(72 * var(--u)) 0 var(--cx-ol)}
.pixel-office.codex-office .cx-cab:after{content:'';position:absolute;left:calc(6 * var(--u));top:calc(5 * var(--u));width:calc(16 * var(--u));height:calc(8 * var(--u));background:#fffdf6;box-shadow:0 calc(36 * var(--u)) 0 #fffdf6,0 calc(72 * var(--u)) 0 #fffdf6}
.pixel-office.codex-office .cx-boxes{background:#e6c48d;border:calc(2 * var(--u)) solid var(--cx-ol);box-shadow:inset calc(20 * var(--u)) 0 0 #d6ad6f}
.pixel-office.codex-office .cx-binder{background:#d0644a;border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-binder.cx-b{background:#3e6ea0}
/* Build workbench */
.pixel-office.codex-office .cx-f-bench-work>.cx-top{background:#d8a96d repeating-linear-gradient(90deg,transparent 0 calc(30 * var(--u)),#b98652 calc(30 * var(--u)) calc(32 * var(--u)))}
.pixel-office.codex-office .cx-f-bench-work>.cx-front{background:#6f8a83;box-shadow:inset 0 calc(5 * var(--u)) 0 #8eaaa2,inset 0 calc(-4 * var(--u)) 0 #4c625c}
.pixel-office.codex-office .cx-printer{background:#e9efe9;border:calc(3 * var(--u)) solid var(--cx-ol);box-shadow:inset 0 calc(-12 * var(--u)) 0 #b8c7c1}
.pixel-office.codex-office .cx-printer:before{content:'';position:absolute;left:14%;right:14%;top:14%;height:46%;background:linear-gradient(180deg,#15302a,#1f4a3f);border:calc(2 * var(--u)) solid var(--cx-ol);box-shadow:inset 0 calc(-8 * var(--u)) 0 #2f8f74}
.pixel-office.codex-office .cx-printer:after{content:'';position:absolute;right:calc(8 * var(--u));bottom:calc(3 * var(--u));width:calc(6 * var(--u));height:calc(6 * var(--u));background:#7dffb5;box-shadow:calc(-10 * var(--u)) 0 0 #f2c14e}
.pixel-office.codex-office .cx-laptop{background:#c9d3cf;border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-laptop-lid{background:#2c3836;border:calc(2 * var(--u)) solid var(--cx-ol);box-shadow:inset calc(4 * var(--u)) calc(4 * var(--u)) 0 #3f6e60}
.pixel-office.codex-office .cx-toolbox{background:#d9533f;border:calc(2 * var(--u)) solid var(--cx-ol);box-shadow:inset 0 calc(4 * var(--u)) 0 #ef7a62}
.pixel-office.codex-office .cx-vise{background:#7f8f8a;border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-shelf-under{background:#4c625c}
.pixel-office.codex-office .cx-bin{background:#f2c14e;border:calc(2 * var(--u)) solid var(--cx-ol);box-shadow:inset 0 calc(5 * var(--u)) 0 #f7d77f}
/* Meeting table */
.pixel-office.codex-office .cx-f-table>.cx-top{background:#e6b97e;box-shadow:inset 0 calc(5 * var(--u)) 0 #f5d4a4,inset 0 calc(-5 * var(--u)) 0 #d3a265;border-radius:calc(10 * var(--u)) calc(10 * var(--u)) 0 0}
.pixel-office.codex-office .cx-f-table>.cx-front{background:#a8703f;box-shadow:inset 0 calc(4 * var(--u)) 0 #c08552,inset 0 calc(-4 * var(--u)) 0 #7c4f2c}
.pixel-office.codex-office .cx-leg{background:#7c4f2c;border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-note{background:#ffe27a;border:calc(2 * var(--u)) solid #c9a43a}
.pixel-office.codex-office .cx-pitcher{background:linear-gradient(180deg,#e9f8ff 0 30%,#9fd8ee 30%);border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-cup{background:#fffdf6;border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-papers{background:#fbfaf2;border:calc(2 * var(--u)) solid #8fa39b;box-shadow:calc(5 * var(--u)) calc(-4 * var(--u)) 0 -1px #eef3ee}
/* Server racks and automation unit */
.pixel-office.codex-office .cx-f-rack>.cx-top{background:#4a5b58;box-shadow:inset 0 calc(4 * var(--u)) 0 #61756f}
.pixel-office.codex-office .cx-f-rack>.cx-front{background:#22302d}
.pixel-office.codex-office .cx-rack{border:calc(3 * var(--u)) solid #121a19;background:repeating-linear-gradient(180deg,#3a4b48 0 calc(15 * var(--u)),#1b2624 calc(15 * var(--u)) calc(18 * var(--u)))}
.pixel-office.codex-office .cx-rack:after{content:'';position:absolute;left:calc(50 * var(--u));top:calc(6 * var(--u));width:calc(5 * var(--u));height:calc(4 * var(--u));background:#7dffb5;box-shadow:
  0 calc(18 * var(--u)) 0 #7dffb5,0 calc(36 * var(--u)) 0 #f2c14e,0 calc(54 * var(--u)) 0 #7dffb5,0 calc(72 * var(--u)) 0 #7dffb5,0 calc(90 * var(--u)) 0 #f2c14e,0 calc(108 * var(--u)) 0 #7dffb5,0 calc(126 * var(--u)) 0 #7dd3ff,
  calc(9 * var(--u)) 0 0 #f2c14e,calc(9 * var(--u)) calc(36 * var(--u)) 0 #7dffb5,calc(9 * var(--u)) calc(72 * var(--u)) 0 #7dd3ff,calc(9 * var(--u)) calc(108 * var(--u)) 0 #7dffb5}
.pixel-office.codex-office .cx-rack:before{content:'';position:absolute;left:calc(6 * var(--u));top:calc(4 * var(--u));width:calc(36 * var(--u));bottom:calc(4 * var(--u));background:repeating-linear-gradient(180deg,#506662 0 calc(2 * var(--u)),transparent calc(2 * var(--u)) calc(6 * var(--u)))}
.pixel-office.codex-office .cx-vent{background:repeating-linear-gradient(90deg,#22302d 0 calc(4 * var(--u)),#5c716c calc(4 * var(--u)) calc(6 * var(--u)))}
.pixel-office.codex-office .cx-f-auto>.cx-top{background:#f0d58a;box-shadow:inset 0 calc(4 * var(--u)) 0 #f8e6b4}
.pixel-office.codex-office .cx-f-auto>.cx-front{background:#5f9282;box-shadow:inset 0 calc(4 * var(--u)) 0 #78ad9b}
.pixel-office.codex-office :is(.cx-arm-base,.cx-arm-a,.cx-arm-b,.cx-arm-c){background:#f2c14e;border:calc(3 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-arm-base{background:#4c5d59}
.pixel-office.codex-office .cx-belt{background:repeating-linear-gradient(90deg,#2c3836 0 calc(6 * var(--u)),#53645f calc(6 * var(--u)) calc(9 * var(--u)));border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-crate{background:#d6ad6f;border:calc(2 * var(--u)) solid var(--cx-ol);box-shadow:inset 0 calc(-6 * var(--u)) 0 #b98652}
.pixel-office.codex-office .cx-auto-panel{background:#15302a;border:calc(3 * var(--u)) solid var(--cx-ol);box-shadow:inset 0 calc(-8 * var(--u)) 0 #2f8f74}
/* Lounge */
.pixel-office.codex-office .cx-f-sofa>:is(.cx-top,.cx-front),.pixel-office.codex-office .cx-f-wbench>:is(.cx-top,.cx-front){display:none}
.pixel-office.codex-office .cx-sofa-back{background:#3f8f84;border:calc(3 * var(--u)) solid var(--cx-ol);border-radius:calc(10 * var(--u)) calc(10 * var(--u)) 0 0;box-shadow:inset 0 calc(5 * var(--u)) 0 #5aa99c}
.pixel-office.codex-office .cx-sofa-seat{background:#4fa395 linear-gradient(90deg,transparent 0 33%,#2f7066 33% calc(33% + 2px),transparent calc(33% + 2px) 66%,#2f7066 66% calc(66% + 2px),transparent calc(66% + 2px));border:calc(3 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-sofa-arm{background:#357a70;border:calc(3 * var(--u)) solid var(--cx-ol);border-radius:calc(8 * var(--u)) calc(8 * var(--u)) 0 0;box-shadow:inset 0 calc(5 * var(--u)) 0 #4fa395}
.pixel-office.codex-office .cx-sofa-base{background:#2d675e;border:calc(3 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-pillow{background:#f2c14e;border:calc(3 * var(--u)) solid var(--cx-ol);border-radius:calc(4 * var(--u))}
.pixel-office.codex-office .cx-pillow.cx-b{background:#ef8a6a}
.pixel-office.codex-office .cx-f-table-low>.cx-top{background:#9a6a3f;box-shadow:inset 0 calc(4 * var(--u)) 0 #b98652}
.pixel-office.codex-office .cx-f-table-low>.cx-front{background:#6c4224}
.pixel-office.codex-office .cx-magazine{background:#fffdf6 linear-gradient(90deg,#2f8f74 0 40%,transparent 40%);border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-f-bar>.cx-top{background:#eef4ef;box-shadow:inset 0 calc(4 * var(--u)) 0 #fff,inset 0 calc(-4 * var(--u)) 0 #cfdcd5}
.pixel-office.codex-office .cx-f-bar>.cx-front{background:#5b3a20 repeating-linear-gradient(90deg,transparent 0 calc(24 * var(--u)),#4a2e18 calc(24 * var(--u)) calc(26 * var(--u)))}
.pixel-office.codex-office .cx-espresso{background:#c9d3cf;border:calc(3 * var(--u)) solid var(--cx-ol);box-shadow:inset 0 calc(10 * var(--u)) 0 #2c3836,inset 0 calc(-8 * var(--u)) 0 #8fa39b}
.pixel-office.codex-office .cx-espresso:after{content:'';position:absolute;left:40%;top:calc(16 * var(--u));width:calc(10 * var(--u));height:calc(10 * var(--u));background:#2c3836}
.pixel-office.codex-office .cx-espresso-cup{background:#fffdf6;border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-grinder{background:linear-gradient(180deg,#7a4a2a 0 40%,#2c3836 40%);border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-jar{background:linear-gradient(180deg,#e9f8ff 0 30%,#8a5a31 30%);border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-sign-coffee{background:#2f8f74;border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-sign-coffee:after{content:'COFFEE';position:absolute;inset:0;color:#fffaf0;font:800 calc(12 * var(--u))/calc(18 * var(--u)) ui-monospace,Consolas,monospace;text-align:center;letter-spacing:.14em}
/* Waiting bench and planter */
.pixel-office.codex-office .cx-wb-back{background:repeating-linear-gradient(180deg,#c98f57 0 calc(10 * var(--u)),#8a5a31 calc(10 * var(--u)) calc(14 * var(--u)));border:calc(3 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-wb-seat{background:#d9a46a;border:calc(3 * var(--u)) solid var(--cx-ol);box-shadow:inset 0 calc(4 * var(--u)) 0 #ecc48c}
.pixel-office.codex-office .cx-wb-leg{background:#4b5b57;border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-sign-wait{background:#fffdf6;border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-sign-wait:after{content:'\23F3 WAIT';position:absolute;inset:0;color:#5a3d16;font:800 calc(10 * var(--u))/calc(14 * var(--u)) ui-monospace,Consolas,monospace;text-align:center}
.pixel-office.codex-office .cx-f-planter>.cx-top{background:#5a3d26}
.pixel-office.codex-office .cx-f-planter>.cx-front{background:#7d5a3a repeating-linear-gradient(90deg,transparent 0 calc(38 * var(--u)),#5f4128 calc(38 * var(--u)) calc(40 * var(--u)))}
.pixel-office.codex-office .cx-leaves{border:calc(3 * var(--u)) solid #1f4d33;border-bottom:0;border-radius:calc(14 * var(--u)) calc(14 * var(--u)) 0 0;background:repeating-linear-gradient(90deg,#3f9a5c 0 calc(14 * var(--u)),#2e7a48 calc(14 * var(--u)) calc(22 * var(--u)),#5fb878 calc(22 * var(--u)) calc(30 * var(--u)))}
.pixel-office.codex-office .cx-flower{background:#f28c8c;border:calc(2 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-flower.cx-b{background:#f5d36b}
/* Plants */
.pixel-office.codex-office .cx-f-plant>.cx-top{background:#7a3a20}
.pixel-office.codex-office .cx-f-plant>.cx-front{background:#c8693f;box-shadow:inset 0 calc(4 * var(--u)) 0 #e08a5c}
.pixel-office.codex-office :is(.cx-leaf-a,.cx-leaf-b,.cx-leaf-c){border:calc(3 * var(--u)) solid #1f4d33;border-radius:calc(16 * var(--u)) calc(16 * var(--u)) calc(6 * var(--u)) calc(6 * var(--u))}
.pixel-office.codex-office .cx-leaf-a{background:#2e7a48}
.pixel-office.codex-office .cx-leaf-b{background:#3f9a5c;box-shadow:inset calc(6 * var(--u)) calc(6 * var(--u)) 0 #6cc27e}
.pixel-office.codex-office .cx-leaf-c{background:#4faa69}
/* Chairs: the sitter's own seat, tucked behind the foot anchor. */
.pixel-office.codex-office .cx-chair-back{background:#2f5e57;border:calc(3 * var(--u)) solid var(--cx-ol);border-radius:calc(6 * var(--u)) calc(6 * var(--u)) 0 0;box-shadow:inset 0 calc(5 * var(--u)) 0 #43807a}
.pixel-office.codex-office .cx-chair-seat{background:#3f7a70;border:calc(3 * var(--u)) solid var(--cx-ol)}
.pixel-office.codex-office .cx-chair-post{background:#22332f}
.pixel-office.codex-office .cx-chair-foot{background:#22332f}
/* Zone plaques: the LED lights only while the shared controller marks recorded work in that zone. */
.pixel-office.codex-office .po-furniture.cx-lamp{display:flex;align-items:center;gap:calc(5 * var(--u));width:auto;height:auto;transform:translateX(-50%);padding:calc(3 * var(--u)) calc(8 * var(--u));background:#1f3a34;border:calc(2 * var(--u)) solid #0f1f1b;color:#cfeee0;font:800 max(9px,calc(12 * var(--u)))/1.15 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.12em;white-space:nowrap}
.pixel-office.codex-office .po-station-active:after,.pixel-office.codex-office .cx-lamp:after{content:none}
.pixel-office.codex-office .cx-led{display:block;width:calc(8 * var(--u));height:calc(8 * var(--u));min-width:4px;min-height:4px;background:#3b5a52;border:1px solid #0f1f1b}
.pixel-office.codex-office .cx-lamp.po-station-active{color:#eafff5;border-color:#7dffb5}
.pixel-office.codex-office .cx-lamp.po-station-active .cx-led{background:#7dffb5;box-shadow:0 0 0 2px #7dffb555}

/* ---------- People: shared actor box (100x140 art px, feet at 50,132); depth = --oil-z ---------- */
.pixel-office.codex-office .po-actor,.pixel-office.codex-office .po-actor:hover,.pixel-office.codex-office .po-actor[aria-pressed=true]{position:absolute;display:block;transform:none;width:calc(100 * var(--u));height:calc(140 * var(--u));min-height:0;padding:0;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible;color:var(--cx-ink);z-index:auto!important;--cx-head:26;--cx-f:0}
.pixel-office.codex-office .po-actor:focus-visible{outline:none}
.pixel-office.codex-office .po-actor.oil-seated:not(.po-walking){--cx-head:50}
.pixel-office.codex-office .po-actor.po-automation{--cx-head:70}
/* The 128 px square cell: feet (cell y 236/256) land on the box foot line, centred on x 50. */
.pixel-office.codex-office .cx-avatar{position:absolute;display:block;left:calc(-14 * var(--u));top:calc(14 * var(--u));width:calc(128 * var(--u));height:calc(128 * var(--u));background-color:transparent;background-repeat:no-repeat;background-size:600% 100%;background-position:calc(var(--cx-f,0) * 20%) 0;image-rendering:pixelated;z-index:var(--oil-z)}
.pixel-office.codex-office .cx-cast-leader{background-image:url('pixel-office-leader-v3.png')}
.pixel-office.codex-office .cx-cast-astra{background-image:url('pixel-office-astra-v3.png')}
.pixel-office.codex-office .cx-cast-sol{background-image:url('pixel-office-sol-v3.png')}
.pixel-office.codex-office .cx-cast-luna{background-image:url('pixel-office-luna-v3.png')}
.pixel-office.codex-office .cx-cast-opus{background-image:url('pixel-office-opus-v3.png')}
.pixel-office.codex-office .cx-cast-sonnet{background-image:url('pixel-office-sonnet-v3.png')}
.pixel-office.codex-office .cx-cast-haiku{background-image:url('pixel-office-haiku-v3.png')}
.pixel-office.codex-office .cx-cast-fable{background-image:url('pixel-office-fable-v3.png')}
/* Unrecognised model: a neutral grey figure with a "?" tag, never another model's colours. */
.pixel-office.codex-office .cx-cast-guest{background-image:url('pixel-office-fable-v3.png');filter:grayscale(1) contrast(.85) brightness(1.08)}
.pixel-office.codex-office .cx-avatar.cx-cast-guest:after{content:'?';position:absolute;left:58%;top:4%;width:14px;height:14px;background:#fffdf6;border:2px solid var(--cx-ol);font:800 10px/10px system-ui,sans-serif;text-align:center;color:var(--cx-ol)}
/* 6-frame mapping from the recorded pose (independent of the 5-frame Claude strips):
   0 idle · 1 walk-left · 2 walk-right · 3 work-a · 4 work-b · 5 done. Walking frames come from the
   controller's own animation (room.walkFramePercent 20). */
.pixel-office.codex-office .po-actor[data-pose=work]{--cx-f:3}
.pixel-office.codex-office .po-actor[data-pose=report]{--cx-f:5}
.pixel-office.codex-office .po-actor[data-mode=instruct]{--cx-f:4}
.pixel-office.codex-office .po-actor:is([data-spot^="dev-"],[data-spot^="ops-"],[data-spot=lead-desk]){--cx-f:3}
.pixel-office.codex-office .po-actor:is([data-mode=resting],[data-mode=team-wait]){--cx-f:5}
.pixel-office.codex-office .po-actor:is([data-mode=before],[data-mode=dependency],[data-mode=queued]){--cx-f:0}
.pixel-office.codex-office .po-actor.oil-flip:not(.po-walking) .cx-avatar{scale:-1 1}
/* Seated: the body drops 24 art px; the desk/table/planter in front (higher z) covers the legs. */
.pixel-office.codex-office .po-actor.oil-seated:not(.po-walking) .cx-avatar{translate:0 calc(24 * var(--u))}
.pixel-office.codex-office .po-walking .cx-avatar{scale:none;translate:none}
.pixel-office.codex-office .po-actor[data-tone=stale] .cx-avatar{filter:grayscale(.7);opacity:.85}
.pixel-office.codex-office .po-actor[data-tone=cancelled] .cx-avatar{filter:grayscale(.55)}
.pixel-office.codex-office .po-actor[data-tone=before] .cx-avatar{opacity:.5}
/* Automation: a small CSS robot instead of a person. */
.pixel-office.codex-office .cx-avatar.cx-machine{background:none}
.pixel-office.codex-office .cx-machine:before{content:'';position:absolute;left:calc(38 * var(--u));top:calc(58 * var(--u));width:calc(52 * var(--u));height:calc(56 * var(--u));background:linear-gradient(#15302a,#15302a) 50% 26%/70% 26% no-repeat,linear-gradient(#7dffb5,#7dffb5) 50% 26%/40% 8% no-repeat,#a9cbbf;border:calc(3 * var(--u)) solid var(--cx-ol);border-radius:calc(8 * var(--u)) calc(8 * var(--u)) calc(3 * var(--u)) calc(3 * var(--u));box-shadow:inset 0 calc(-10 * var(--u)) 0 #7fa99a}
.pixel-office.codex-office .cx-avatar.cx-machine:after{content:'';position:absolute;left:calc(62 * var(--u));top:calc(46 * var(--u));width:calc(4 * var(--u));height:calc(12 * var(--u));background:var(--cx-ol);box-shadow:0 calc(-4 * var(--u)) 0 calc(2 * var(--u)) #f2c14e}
/* Floor shadow for people on their feet; sitters use their chair, sofa or bench. */
.pixel-office.codex-office .po-actor:before{content:'';position:absolute;left:calc(30 * var(--u));top:calc(126 * var(--u));width:calc(40 * var(--u));height:calc(10 * var(--u));border-radius:50%;background:#2a1c1044;z-index:calc(var(--oil-z) - 1)}
.pixel-office.codex-office .po-actor.oil-seated:not(.po-walking):before,.pixel-office.codex-office .po-actor.po-automation:before{content:none}
.pixel-office.codex-office .po-actor[aria-pressed=true]:not(.oil-seated):before,.pixel-office.codex-office .po-actor.po-walking[aria-pressed=true]:before{content:'';background:#7dffb566;box-shadow:0 0 0 2px #2f8f74}
/* Status badge beside the head; the visible state text stays the source of truth. */
.pixel-office.codex-office .po-actor:after{content:none;position:absolute;left:calc(66 * var(--u));top:calc(var(--cx-head) * var(--u) - 4px);z-index:calc(var(--oil-z) + 2);width:18px;height:18px;border:2px solid var(--cx-ol);border-radius:3px;background:var(--cx-card);color:var(--cx-ol);font:800 11px/14px system-ui,sans-serif;text-align:center;box-shadow:none}
.pixel-office.codex-office .po-actor[data-tone=attention]:after{content:'!';background:#f2c14e}
.pixel-office.codex-office .po-actor[data-tone=failed]:after{content:'\00D7';background:#b23a2f;color:#fffaf0}
.pixel-office.codex-office .po-actor[data-tone=stale]:after{content:'?';background:#d8dcd6}
.pixel-office.codex-office .po-actor[data-mode=dependency]:after{content:'\23F3';background:#f6e7c8;font-size:10px}
.pixel-office.codex-office .po-actor:is([data-mode=resting],[data-mode=team-wait]):after{content:'\2713';background:#2f8f74;color:#fffaf0}

/* Hand-held props (pixel SVG), at hip height on the facing side. */
.pixel-office.codex-office .po-actor>.oil-prop{display:none;position:absolute;pointer-events:none;z-index:calc(var(--oil-z) + 1);width:calc(20 * var(--u));height:calc(20 * var(--u));left:calc(60 * var(--u));top:calc(78 * var(--u));background:no-repeat center/contain;image-rendering:pixelated}
.pixel-office.codex-office .po-actor>.oil-prop[class*=oil-prop-]{display:block}
.pixel-office.codex-office .po-actor.oil-flip>.oil-prop{left:calc(20 * var(--u))}
.pixel-office.codex-office .po-actor.oil-seated>.oil-prop{top:calc(98 * var(--u))}
.pixel-office.codex-office .po-actor.po-walking>.oil-prop{display:none}
.pixel-office.codex-office .oil-prop-coffee{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cpath fill='%2322332f' d='M1 2h7v7H1zM8 3h2v4H8z'/%3E%3Cpath fill='%23fffdf6' d='M2 3h5v5H2zM8 4h1v2H8z'/%3E%3Cpath fill='%237a4a2a' d='M2 3h5v1H2z'/%3E%3C/svg%3E")}
.pixel-office.codex-office .oil-prop-book{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cpath fill='%2322332f' d='M0 2h10v7H0z'/%3E%3Cpath fill='%23fffdf6' d='M1 3h4v4H1zM5 3h4v4H5z'/%3E%3Cpath fill='%239cb7ad' d='M2 4h2v1H2zM6 4h2v1H6zM2 5h2v1H2z'/%3E%3Cpath fill='%232f8f74' d='M1 7h8v1H1z'/%3E%3C/svg%3E")}
.pixel-office.codex-office .oil-prop-hourglass{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cpath fill='%2322332f' d='M2 0h6v1H2zM2 9h6v1H2zM2 1h6v3H2zM3 4h4v2H3zM2 6h6v3H2z'/%3E%3Cpath fill='%23e9f8ff' d='M3 1h4v2H3zM4 3h2v3H4zM3 6h4v2H3z'/%3E%3Cpath fill='%23f2c14e' d='M4 2h2v1H4zM3 7h4v1H3zM4 6h2v1H4z'/%3E%3C/svg%3E")}
.pixel-office.codex-office .oil-prop-note{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cpath fill='%2322332f' d='M2 0h6v10H2z'/%3E%3Cpath fill='%23fffdf6' d='M3 1h4v8H3z'/%3E%3Cpath fill='%23d9822b' d='M3 3h4v1H3zM3 5h4v1H3zM3 7h2v1H3z'/%3E%3C/svg%3E")}

/* ---------- Name tag and state tag (below the feet; above the head on alternating seats) ---------- */
.pixel-office.codex-office .po-actor-name,.pixel-office.codex-office .po-actor-state{position:absolute;left:50%;transform:translateX(calc(-50% + var(--oil-tag-shift,0px)));display:block;max-width:none;width:max-content;white-space:nowrap;overflow-wrap:normal;z-index:calc(2000 + var(--oil-z));font:700 11px/1.3 system-ui,-apple-system,'Segoe UI','Apple SD Gothic Neo','Malgun Gothic',sans-serif;padding:0 6px;border-radius:3px;pointer-events:auto}
.pixel-office.codex-office .po-actor-name{top:calc(132 * var(--u) + 3px);background:#1f3a34;color:#eafff5;border:1px solid #0f1f1b}
.pixel-office.codex-office .po-actor-state{top:calc(132 * var(--u) + 20px);background:var(--cx-card);color:var(--cx-ink);border:1px solid var(--cx-ol);font-weight:600}
.pixel-office.codex-office .po-actor:is([data-spot=meet-0],[data-spot=meet-2],[data-spot=meet-4],[data-spot=lounge-2],[data-spot=bench-2],[data-spot=bench-4],[data-spot=bench-6]),.pixel-office.codex-office .po-actor.oil-tag-above{--cx-tagup:1}
.pixel-office.codex-office .po-actor:is([data-spot=meet-0],[data-spot=meet-2],[data-spot=meet-4],[data-spot=lounge-2],[data-spot=bench-2],[data-spot=bench-4],[data-spot=bench-6]) .po-actor-name,.pixel-office.codex-office .oil-tag-above .po-actor-name{top:auto;bottom:calc(100% - var(--cx-head) * var(--u) + 21px)}
.pixel-office.codex-office .po-actor:is([data-spot=meet-0],[data-spot=meet-2],[data-spot=meet-4],[data-spot=lounge-2],[data-spot=bench-2],[data-spot=bench-4],[data-spot=bench-6]) .po-actor-state,.pixel-office.codex-office .oil-tag-above .po-actor-state{top:auto;bottom:calc(100% - var(--cx-head) * var(--u) + 3px)}
.pixel-office.codex-office .po-actor[aria-pressed=true] .po-actor-name{background:#d9822b;border-color:#5a3d16;color:#fffaf0}
.pixel-office.codex-office .po-actor:focus-visible .po-actor-name{outline:3px solid #d9822b;outline-offset:2px}
.pixel-office.codex-office .po-actor:is([data-mode=resting],[data-mode=team-wait]) .po-actor-state{background:#dff3ea;border-color:#2f8f74}
.pixel-office.codex-office .po-actor:is([data-mode=dependency],[data-mode=queued]) .po-actor-state{background:#f6e7c8;border-color:#a8742a}
.pixel-office.codex-office .po-actor[data-tone=failed] .po-actor-state{background:#f8dcd8;border-color:#b23a2f}

/* ---------- Speech slip: fixed readable width, always visible, never faded ----------
   Default: above the head. Lanes (--cx-lane, 84 px each) and nudges (--cx-nudge) separate neighbours
   on dense rows; --oil-shift/--oil-raise from a shared collision layout are added on top. Spots that
   would collide upward use a slip below the name tags instead. */
.pixel-office.codex-office .po-action-bubble{position:absolute;left:50%;top:auto;bottom:calc(100% - var(--cx-head) * var(--u) + 8px + var(--cx-lane,0) * 84px + var(--cx-tagup,0) * 40px + var(--oil-raise,0px));transform:translateX(calc(-50% + var(--cx-nudge,0px) + var(--oil-shift,0px)));z-index:calc(3200 + var(--oil-z));display:block;width:176px;max-width:176px;min-width:0;padding:5px 8px 6px;background:var(--cx-card);color:var(--cx-ink);border:2px solid var(--cx-ol);border-radius:3px;box-shadow:3px 3px 0 #22332f40;font:12px/1.38 system-ui,-apple-system,'Segoe UI','Apple SD Gothic Neo','Malgun Gothic',sans-serif;text-align:left;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;cursor:pointer;visibility:visible;opacity:1}
.pixel-office.codex-office .po-action-bubble:after{content:'';position:absolute;left:clamp(12px,calc(50% - var(--cx-nudge,0px) - var(--oil-shift,0px)),calc(100% - 12px));top:auto;bottom:-7px;width:10px;height:10px;margin-left:-5px;background:var(--cx-card);border-right:2px solid var(--cx-ol);border-bottom:2px solid var(--cx-ol);transform:rotate(45deg)}
.pixel-office.codex-office .po-action-bubble[hidden]{display:none}
.pixel-office.codex-office .po-actor .po-action-bubble.po-say-agent{border-left-width:2px;border-color:#2f8f74}
.pixel-office.codex-office .po-actor .po-action-bubble.po-say-agent:before{content:none}
.pixel-office.codex-office .oil-say-icon{float:left;width:16px;height:16px;margin:1px 5px 0 0;background:#dff3ea;border:1px solid #9cc7b6;border-radius:2px;font-size:10px;line-height:14px;text-align:center}
.pixel-office.codex-office .oil-say-now{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;font-weight:600}
.pixel-office.codex-office .oil-say-agent{font-weight:500}
.pixel-office.codex-office .oil-say-agent:before{content:'Agent · ';color:#22785f;font-weight:800}
.pixel-office.codex-office .oil-say-goal{display:block;clear:both;margin-top:3px;padding-top:2px;border-top:1px dashed #b9cfc6;color:var(--cx-soft);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pixel-office.codex-office .po-actor[data-tone=working] .po-action-bubble{border-color:#22785f}
.pixel-office.codex-office .po-actor[data-tone=attention] .po-action-bubble{border-color:#b9791c;background:#fff4dc}
.pixel-office.codex-office .po-actor[data-tone=failed] .po-action-bubble{border-color:#b23a2f}
.pixel-office.codex-office .po-actor[data-tone=stale] .po-action-bubble{background:#eef0ec;color:#3a4744}
.pixel-office.codex-office .po-actor[data-tone=attention] .po-action-bubble:after{background:#fff4dc}
.pixel-office.codex-office .po-actor[data-tone=stale] .po-action-bubble:after{background:#eef0ec}
/* Slips below the tags (desk row neighbours and the near brief row). */
.pixel-office.codex-office .po-actor:is([data-spot=dev-2],[data-spot=dev-4],[data-spot=ops-1],[data-spot=brief-3],[data-spot=brief-4],[data-spot=brief-5],[data-spot=brief-6]):not(.oil-tag-above) .po-action-bubble{bottom:auto;top:calc(132 * var(--u) + 42px + var(--cx-lane,0) * 84px + var(--oil-raise,0px))}
.pixel-office.codex-office .po-actor:is([data-spot=dev-2],[data-spot=dev-4],[data-spot=ops-1],[data-spot=brief-3],[data-spot=brief-4],[data-spot=brief-5],[data-spot=brief-6]):not(.oil-tag-above) .po-action-bubble:after{bottom:auto;top:-7px;transform:rotate(225deg)}
/* Lanes and nudges, tuned at the 960 px minimum board width. */
.pixel-office.codex-office .po-action-bubble{--cx-below:0}
.pixel-office.codex-office .po-actor:is([data-spot=dev-2],[data-spot=dev-4],[data-spot=ops-1],[data-spot=brief-3],[data-spot=brief-4],[data-spot=brief-5],[data-spot=brief-6]):not(.oil-tag-above) .po-action-bubble{--cx-below:1}
.pixel-office.codex-office .po-actor:is([data-spot=lead-stand],[data-spot=git-2],[data-spot=build-2],[data-spot=server-2],[data-spot=auto-2],[data-spot=meet-2],[data-spot=meet-4],[data-spot=bench-2],[data-spot=bench-5],[data-spot=lounge-2],[data-spot=lounge-5],[data-spot=hall-2],[data-spot=hall-4],[data-spot=hall-6],[data-spot=hall-8],[data-spot=brief-5],[data-spot=brief-6]){--cx-lane:1}
.pixel-office.codex-office .po-actor:is([data-spot=meet-0],[data-spot=bench-3],[data-spot=bench-6],[data-spot=lounge-3],[data-spot=lounge-6]){--cx-lane:2}
.pixel-office.codex-office .po-actor:is([data-spot=meet-1],[data-spot=meet-2]){--cx-nudge:-14px}
.pixel-office.codex-office .po-actor:is([data-spot=meet-3],[data-spot=meet-4]){--cx-nudge:14px}
.pixel-office.codex-office .po-actor:is([data-spot=bench-1],[data-spot=bench-2],[data-spot=bench-3],[data-spot=brief-1],[data-spot=brief-5]){--cx-nudge:-30px}
.pixel-office.codex-office .po-actor:is([data-spot=bench-4],[data-spot=bench-5],[data-spot=bench-6],[data-spot=brief-2],[data-spot=brief-6]){--cx-nudge:30px}
.pixel-office.codex-office .po-actor:is([data-spot=server-1],[data-spot=server-2],[data-spot=door-1],[data-spot=door-2],[data-spot=door-3]){--cx-nudge:-44px}
.pixel-office.codex-office .po-actor:is([data-spot=auto-1],[data-spot=auto-2]){--cx-nudge:-52px}
.pixel-office.codex-office .po-actor:is([data-spot=ops-2],[data-spot=meet-6],[data-spot=brief-4]){--cx-nudge:-14px}
/* Never hidden: a shared layout's quiet/compact classes keep the sentence readable here. */
.pixel-office.codex-office .po-actor:is(.oil-quiet,.oil-tag-quiet,.oil-compact) :is(.po-action-bubble,.po-actor-name,.po-actor-state){visibility:visible}
.pixel-office.codex-office .po-actor:is(:hover,:focus-visible,[aria-pressed=true],.po-speech-focus) .po-action-bubble{z-index:5200}
.pixel-office.codex-office .po-actor:is(:hover,:focus-visible,[aria-pressed=true],.po-speech-focus) :is(.po-actor-name,.po-actor-state){z-index:5100}
.pixel-office.codex-office .po-actor:is(:hover,[aria-pressed=true]) .po-action-bubble{border-color:#d9822b}
.pixel-office.codex-office .po-speech-focus .po-action-bubble{outline:3px solid #d9822b;outline-offset:2px}
.pixel-office.codex-office .po-empty{background:var(--cx-card);border:2px solid var(--cx-ol);color:var(--cx-ink);z-index:6000}

/* ---------- Replay, ledger, actor card and speech popup ---------- */
.pixel-office.codex-office .po-replay{background:#e3f0e8;border-top:2px solid var(--cx-ol)}
.pixel-office.codex-office .po-replay button{background:var(--cx-card);color:var(--cx-ink);border:2px solid var(--cx-ol);border-radius:4px;padding:6px 11px}
.pixel-office.codex-office .po-replay .po-replay-start{background:var(--cx-mint);color:#fff}
.pixel-office.codex-office .po-replay-label{color:var(--cx-ink)}
.pixel-office.codex-office .po-replay-scrub{accent-color:var(--cx-mint)}
.pixel-office.codex-office .po-summary{background:var(--cx-paper);border-top:2px solid var(--cx-ol);padding:16px 18px}
.pixel-office.codex-office .po-summary-row{grid-template-columns:40px minmax(0,1fr) auto;grid-template-areas:"face name outcome" "face trace trace" "face place place" "face note note";align-items:center;gap:2px 12px;padding:10px 4px;border-bottom:1px dashed #a9c5b9;color:var(--cx-ink)}
.pixel-office.codex-office .po-summary-row:hover{background:#e6f3ec}
.pixel-office.codex-office .po-summary-row strong{grid-area:name}
.pixel-office.codex-office .po-summary-outcome{grid-area:outcome;justify-self:end;font-size:12px;padding:1px 8px;border:1px solid var(--cx-ol);border-radius:3px;background:var(--cx-card)}
.pixel-office.codex-office .po-summary-trace{grid-area:trace;color:#33504a}
.pixel-office.codex-office .po-summary-place{grid-area:place;color:#22785f;font-size:12px}
.pixel-office.codex-office .po-summary-row small:not(.po-summary-place){grid-area:note;color:var(--cx-soft)}
.pixel-office.codex-office .cx-portrait{grid-area:face;align-self:start;display:block;width:40px;height:40px;border:2px solid var(--cx-ol);border-radius:4px;background-color:#dff3ea;background-repeat:no-repeat;background-size:691px 115px;background-position:-38px -8px;image-rendering:pixelated}
.pixel-office.codex-office .cx-portrait.cx-machine{background:#2f5e57;position:relative}
.pixel-office.codex-office .cx-portrait.cx-machine:after{content:'\2699';position:absolute;inset:0;color:#9ff0cf;font:700 20px/36px system-ui,sans-serif;text-align:center}
.pixel-office.codex-office .po-details{background:var(--cx-card);border-top:2px solid var(--cx-ol);box-shadow:inset 0 5px 0 #6cc9a5;padding:18px 18px 14px}
.pixel-office.codex-office .po-details>p,.pixel-office.codex-office .po-facts dt,.pixel-office.codex-office .po-history time,.pixel-office.codex-office .po-history-state{color:var(--cx-soft)}
.pixel-office.codex-office .po-history-event{display:block;color:#22785f;font-size:12px}
.pixel-office.codex-office .po-actor-open{background:var(--cx-mint);color:#fff;border:2px solid var(--cx-ol);border-radius:4px}
.pixel-office.codex-office .po-note{background:var(--cx-paper);color:var(--cx-soft)}
.pixel-office.codex-office .po-speech-dialog{border-color:var(--cx-ol);background:var(--cx-card);color:var(--cx-ink)}
.pixel-office.codex-office .po-speech-close{background:var(--cx-mint);border-color:var(--cx-ol)}
@media(max-width:650px){.pixel-office.codex-office .po-viewport:after{background:#dcf1e6;color:var(--cx-ink)}}

/* ---------- Motion: recorded work, observed walking and rest props only ---------- */
.pixel-office.codex-office:not(.po-motion-disabled):not(.po-offline):not(.po-replay-paused) .po-working:not(.po-walking) .cx-avatar{animation:cx-work 1.2s steps(1,end) infinite}
.pixel-office.codex-office:not(.po-motion-disabled):not(.po-offline):not(.po-replay-paused) .oil-rest:not(.po-walking)>.oil-prop-coffee{animation:cx-sip 4s steps(1,end) infinite}
.pixel-office.codex-office:not(.po-motion-disabled):not(.po-offline):not(.po-replay-paused) .oil-rest:not(.po-walking)>.oil-prop-book{animation:cx-page 4.4s steps(1,end) infinite}
.pixel-office.codex-office:not(.po-motion-disabled):not(.po-offline):not(.po-replay-paused) .cx-lamp.po-station-active .cx-led{animation:cx-blink 1.4s steps(1,end) infinite}
.pixel-office.codex-office.po-motion-disabled *,.pixel-office.codex-office.po-motion-disabled *:before,.pixel-office.codex-office.po-motion-disabled *:after,
.pixel-office.codex-office.po-offline *,.pixel-office.codex-office.po-offline *:before,.pixel-office.codex-office.po-offline *:after,
.pixel-office.codex-office.po-replay-paused *,.pixel-office.codex-office.po-replay-paused *:before,.pixel-office.codex-office.po-replay-paused *:after{animation:none!important}
@keyframes cx-work{0%{background-position-x:60%}50%{background-position-x:80%}100%{background-position-x:60%}}
@keyframes cx-sip{0%,72%{translate:0 0}73%,92%{translate:0 calc(-6 * var(--u))}93%,100%{translate:0 0}}
@keyframes cx-page{0%,49%{scale:1 1}50%,100%{scale:-1 1}}
@keyframes cx-blink{0%,59%{opacity:1}60%,100%{opacity:.4}}
@media(prefers-reduced-motion:reduce){.pixel-office.codex-office:not(.po-motion-enabled) *,.pixel-office.codex-office:not(.po-motion-enabled) *:before,.pixel-office.codex-office:not(.po-motion-enabled) *:after{animation:none!important;transition:none!important}}
