/* The office is a canvas world. These are camera controls and accessible game HUDs. */
#office-view {position:relative;min-width:0;color:#edf2df}
.office-game-layout {display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px;align-items:stretch}
.office-game-viewport {position:relative;min-width:0;width:100%;height:76vh;height:76svh;min-height:400px;max-height:1100px;overflow:hidden;border:1px solid #647c73;border-radius:16px;background:#15272b;box-shadow:0 20px 60px #0005;isolation:isolate}
#office-game-canvas {display:block;width:100%;height:100%;image-rendering:pixelated;image-rendering:crisp-edges;touch-action:none;cursor:grab;outline-offset:-4px}
#office-game-canvas:active {cursor:grabbing}
.office-game-hud,.office-game-controls {position:absolute;top:14px;z-index:2;display:flex;align-items:center;gap:12px;border:1px solid #d4e8c833;background:#132d2cdd;backdrop-filter:blur(10px);box-shadow:0 3px 12px #06151444;border-radius:9px;min-height:42px}
.office-game-hud {left:14px;padding:8px 13px;max-width:calc(100% - 300px);flex-wrap:wrap;gap:4px 14px;pointer-events:none;font:13px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}
.office-game-badge {display:flex;align-items:center;gap:8px;font-weight:750;letter-spacing:.1em;color:#fae4af}
.office-game-badge i {width:5px;height:5px;background:#fae4af;box-shadow:0 0 6px #fae4af55}
#office-overflow {color:#ffdb9d}
#office-overflow:empty {display:none}
.office-game-controls {right:14px;gap:3px;padding:4px}
.office-game-controls button {min-width:36px;min-height:34px;padding:5px 9px;background:transparent;border:1px solid transparent;border-radius:5px;color:#ecf0dc;font:600 13px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace}
.office-game-controls button:hover,.office-game-controls button[aria-pressed=true] {background:#4d6b5c;border-color:#c7db9a88}
#office-view button:focus-visible,#office-game-canvas:focus-visible,#office-view summary:focus-visible {outline:3px solid #ffdf8e;outline-offset:3px}
#office-game-canvas:focus-visible {outline-offset:-5px}
.office-tooltip {position:absolute;z-index:4;pointer-events:none;width:min(320px,calc(100% - 16px));padding:13px 15px;border:1px solid #c1d7aa;border-radius:10px;background:#173331f5;color:#edf4e2;box-shadow:0 10px 28px #0007;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.office-tooltip strong {display:block;color:#ffe3a6;font-size:15px;margin-bottom:5px}
.office-tooltip span,.office-tooltip small {display:block;margin-top:3px}
.office-tooltip small {font-size:13px;color:#c9d8c8}
.office-tooltip span:nth-of-type(2) {color:#c7ded1}
.office-game-idle {position:absolute;bottom:18px;left:50%;transform:translateX(-50%);max-width:90%;padding:7px 13px;border-radius:7px;background:#173331c9;color:#ecdfb9;pointer-events:none;text-align:center;font:13px/1.5 ui-monospace,monospace}
.office-game-error {position:absolute;inset:35% 12% auto;padding:20px;background:#173331f5;border:1px solid #f2c288;border-radius:10px;color:#ffe1ae;z-index:5;text-align:center}
.office-game-underbar {display:flex;justify-content:space-between;gap:12px;margin:8px 2px;font-size:13px;color:#b9cabc;align-items:flex-start}
#office-game-help {margin:0;font-size:13px}
#office-game-help span {display:block;color:#a8bcb4}
.office-game-health {position:relative;max-width:min(510px,100%);font-size:13px}
.office-game-health summary {display:flex;gap:10px;align-items:center;cursor:pointer;list-style:revert}
.office-game-health summary span {display:inline-flex;gap:6px;align-items:center;color:#edc789}
.office-game-health summary span::before,.office-health-dot {content:'';display:inline-block;width:7px;height:7px;flex-shrink:0;border-radius:2px;background:#e6b96d}
.office-game-health summary span[data-state=up] {color:#a8e0b6}
.office-game-health summary span[data-state=down] {color:#ffac9e}
.office-game-health summary span[data-state=up]::before,.office-health-dot[data-state=up] {background:#83d6a0}
.office-game-health summary span[data-state=down]::before,.office-health-dot[data-state=down] {background:#f38f80}
.office-game-health ul {padding:12px 0 4px;margin:0;list-style:none;display:grid;gap:8px}
.office-game-health li {display:flex;align-items:baseline;gap:9px;overflow-wrap:anywhere}
.office-game-health small {font-size:13px;color:#acbeb4}
.office-game-roster {display:flex;flex-direction:column;min-width:0;height:76vh;height:76svh;min-height:400px;max-height:1100px;border:1px solid #647c73;border-radius:14px;background:#142b29;color:#dce8d7;overflow:hidden;font-size:13px;box-shadow:0 12px 36px #0003}
.office-roster-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 14px 7px}
.office-roster-heading h3 {margin:0;color:#ffe3a6;font-size:16px;letter-spacing:.02em}
.office-roster-heading button {display:none;background:#29493b;color:#edf2df;border:1px solid #647c73;font-size:13px;padding:7px 10px}
.office-roster-help {margin:0;padding:0 14px 10px;color:#adbfaf;font-size:12px;line-height:1.5}
.office-roster-overflow {margin:0;padding:8px 14px;color:#ffdb9d;background:#4b3c253d;border-top:1px solid #8d7c553d;border-bottom:1px solid #8d7c553d}
.office-roster-overflow:empty {display:none}
.office-roster-filters {display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;padding:8px 12px;border-bottom:1px solid #3d6253}
.office-roster-filters label {display:grid;gap:3px;min-width:0;flex:0 1 72px;color:#c3d8c7;font-size:12px}
.office-roster-filters label+label {flex:1 1 94px}
.office-roster-filters select,#office-view .office-roster-filters button {min-height:34px;padding:4px 6px;border:1px solid #759678;border-radius:5px;background:#203b34;color:#edf2df;font-size:13px}
.office-roster-filters select {width:100%;min-width:0;color-scheme:dark;text-overflow:ellipsis}
.office-roster-empty {margin:0;padding:20px 14px;color:#c4d4c8}
.office-game-roster ul {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;list-style:none;margin:0;padding:8px;display:flex;flex-direction:column;gap:8px}
.office-bot-card {flex-shrink:0;min-width:0;padding:8px 10px 10px;border:1px solid #3d6253;border-radius:9px;background:#1a3530;overflow-wrap:anywhere}
.office-bot-card.is-selected {border-color:#efd291;background:#29493b;box-shadow:inset 3px 0 #efd291}
.office-bot-card[data-mode=lounge] {border-style:dashed;background:#2d3533}
.office-bot-card[data-mode=lounge] .office-bot-status {color:#e9cd9a}
.office-bot-card[data-mode=leaving] {opacity:.75}
#office-view .office-bot-select {display:flex;align-items:center;gap:10px;width:100%;padding:0;margin:0 0 6px;background:transparent;border:0;border-radius:3px;text-align:left;color:inherit;box-shadow:none;white-space:normal;cursor:pointer;font:inherit}
.office-bot-portrait {flex:none;display:block;width:48px;height:64px;image-rendering:pixelated;image-rendering:crisp-edges;background:#122b27;border-radius:5px}
.office-bot-identity {display:block;min-width:0}
.office-bot-task {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#fff0ca;font-size:14px;line-height:1.35}
.office-bot-session,.office-bot-status {display:block;margin-top:4px;line-height:1.3;font-size:12px}
.office-bot-session {color:#c3d8c7}
.office-bot-status {color:#b8d9d0}
.office-bot-runtime,.office-bot-route,.office-bot-runner,.office-bot-activity {display:block;margin-top:5px;font-size:12px;line-height:1.4}
.office-bot-runtime {font-variant-numeric:tabular-nums;color:#e7d9b6}
.office-bot-route,.office-bot-runner {color:#aebfb6}
.office-bot-activity {color:#d8e8d8}
#office-view .office-bot-live {display:block;width:auto;min-height:30px;margin:9px 0 0 auto;padding:4px 9px;background:#284b40;border:1px solid #759678;border-radius:5px;color:#f0e5c5;font-size:12px;text-align:center}
#office-view .office-bot-live:hover {background:#3a6050;border-color:#efd291}
#office-view.office-game-expanded {position:fixed;inset:0;z-index:19;background:#112320;padding:10px;overflow:auto}
.office-game-expanded .office-game-viewport,.office-game-expanded .office-game-roster {height:calc(100svh - 100px);min-height:240px;max-height:none}
@media(min-width:1001px) and (max-width:1500px) {
  .office-game-hud {max-width:calc(100% - 28px)}
  .office-game-badge {display:none}
  .office-game-controls {top:64px}
}
@media(max-width:1000px) {
  .office-game-layout {grid-template-columns:minmax(0,1fr)}
  .office-game-roster,.office-game-expanded .office-game-roster {height:auto;min-height:0;max-height:480px}
  .office-game-roster ul {max-height:360px;flex-basis:auto}
  .office-roster-heading button {display:block}
  .office-roster-collapsed .office-game-roster ul,.office-roster-collapsed .office-roster-help,.office-roster-collapsed .office-roster-filters,.office-roster-collapsed .office-roster-empty {display:none}
  .office-roster-collapsed .office-roster-heading {padding-bottom:14px}
  .office-game-hud {max-width:calc(100% - 210px)}
  .office-game-badge {display:none}
  .office-game-controls {gap:0;right:10px;top:10px}
  .office-game-controls button {padding:5px 7px;min-width:32px}
  .office-game-hud {left:10px;top:10px;padding:8px 10px}
}
@media(max-width:640px) {
  .office-game-viewport {height:72svh;min-height:390px;border-radius:10px}
  .office-game-hud {max-width:calc(100% - 20px);font-size:13px;top:10px;min-height:34px;padding:6px 9px}
  .office-game-controls {top:54px;right:10px;min-height:38px}
  .office-game-controls button {min-height:34px;min-width:36px}
  .office-game-underbar {flex-wrap:wrap;gap:8px}
  .office-game-health {width:100%;max-width:100%}
  .office-game-error {inset:35% 5% auto}
  .office-game-expanded .office-game-viewport {height:calc(100svh - 140px)}
}
@media(prefers-reduced-motion:reduce) {
  #office-view *,#office-view *::before,#office-view *::after {animation:none!important;transition:none!important}
}

.office-bot-card[data-status=active] {border-color:#43ed83;box-shadow:inset 4px 0 #43ed83}
.office-bot-card[data-status=active] .office-bot-status {color:#43ed83}
.office-bot-card[data-status=completed] {border-color:#ff6069;box-shadow:inset 4px 0 #ff6069}
.office-bot-card[data-status=completed] .office-bot-status {color:#ff6069}
.office-bot-card[data-status=failed] {border-color:#ffb64f;box-shadow:inset 4px 0 #ffb64f}
.office-bot-card[data-status=failed] .office-bot-status {color:#ffb64f}
