#workplace { position:absolute; inset:0; z-index:55; display:flex; flex-direction:column; pointer-events:auto; box-sizing:border-box; padding:calc(var(--st) + 6px) calc(var(--sr) + 10px) calc(var(--sb) + 5px) calc(var(--sl) + 10px); background:#181821; color:#fff4df; font:14px/1.3 -apple-system,"PingFang SC",sans-serif; }
#workplace[hidden] { display:none; }
#workplace button { font:inherit; cursor:pointer; }
.wp-header { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); flex:none; align-items:center; gap:12px; min-height:36px; }
.wp-header > button { justify-self:start; }
.wp-header h2 { margin:0; font-size:20px; white-space:nowrap; }
.wp-header button,.wp-footer button { border:1px solid #a38766; border-radius:9px; padding:6px 11px; color:#604126; background:#fff0d6; }
.wp-header button:disabled { opacity:.4; cursor:default; }
.wp-viewport { position:relative; flex:1; min-height:0; overflow:hidden; }
.wp-stage { position:absolute; left:50%; top:50%; transform-origin:center; }
.wp-background,.wp-foreground { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; image-rendering:pixelated; }
.wp-background { z-index:0; }
.wp-person { position:absolute; padding:0; border:0; background:none; image-rendering:pixelated; }
.wp-person canvas { display:block; width:100%; height:100%; image-rendering:pixelated; pointer-events:none; }
.wp-person-name { position:absolute; left:50%; top:9px; transform:translate(-50%,-100%); font-size:28px; padding:2px 9px; border:2px solid #89633e; border-radius:9px; background:#fff3dc; color:#604126; white-space:nowrap; pointer-events:none; }
.wp-person[aria-pressed=true] .wp-person-name { background:#ffd482; border-color:#ed981e; }
.wp-prop { position:absolute; pointer-events:none; transform-origin:50% 80%; }
.wp-prop[hidden] { display:none; }
.wp-person[data-pose=bartend] .wp-prop { right:-14px; top:58%; width:22px; height:40px; border:3px solid #5a4b4b; border-radius:6px 6px 9px 9px; background:linear-gradient(90deg,#979696,#fff7e9 45%,#a19b91); box-shadow:inset 0 6px #ddd2be; }
.wp-person[data-pose=teach] .wp-prop { left:80%; top:45%; width:7px; height:65px; border:2px solid #765027; border-radius:3px; background:#dba15e; transform-origin:50% 100%; }
.wp-loading { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); padding:10px 16px; border-radius:10px; background:#24212bea; color:#fff4df; }
.wp-loading[hidden] { display:none; }
#workplace:not([data-state=ready]) .wp-stage,#workplace:not([data-state=ready]) .wp-footer { visibility:hidden; }
.wp-retry { position:absolute;left:50%;top:calc(50% + 48px);transform:translateX(-50%);padding:8px 18px;border:1px solid #a38766;border-radius:9px;background:#fff0d6;color:#604126; }
.wp-retry[hidden] { display:none; }
.wp-footer { display:flex; flex:none; min-height:30px; gap:15px; align-items:center; justify-content:center; font-size:12px; }
.wp-residents { display:flex; gap:5px; overflow-x:auto; max-width:60%; }
.wp-footer button { padding:3px 9px; white-space:nowrap; }
#ui:has(#workplace:not([hidden])) #profile.on { z-index:56; }
#ui:has(#workplace:not([hidden])) #subtitle { z-index:57; }
#workplace button:focus-visible { outline:3px solid #ffd089; outline-offset:2px; }
@media (max-height:480px) { .wp-header { min-height:30px; } .wp-header h2 { font-size:16px; } .wp-header button { font-size:12px; padding:5px 9px; } .wp-footer { min-height:25px; font-size:11px; } }
@media (max-width:600px) { .wp-header { gap:5px; } .wp-footer { gap:6px; } }
