/* Office Virtual - Mission Control */
#officeContainer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0f0f23;
  font-family: 'Courier New', monospace;
  color: #e0d6c8;
}
#officeContainer.show {
  display: flex;
}
#officeContainer #officeMain {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
#officeContainer canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: crosshair;
  border: 3px solid #3a3a5c;
  border-radius: 6px;
  box-shadow: 0 0 40px rgba(74,144,217,0.15);
  max-width: 100%;
  max-height: calc(100vh - 60px);
}
#officeContainer #officeSidebar {
  width: 310px;
  background: #12152a;
  border-left: 3px solid #3a3a5c;
  padding: 14px;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}
#officeContainer #officeAgentList {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
#officeContainer #officeSidebar h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #e94560;
  border-bottom: 2px solid #2a2a4c;
  padding-bottom: 6px;
  margin-bottom: 2px;
}
#officeContainer .agent-card {
  background: #1a1a2e;
  border: 2px solid #2a2a4c;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: all .2s;
}
#officeContainer .agent-card:hover {
  border-color: #e94560;
  background: #1e1e36;
}
#officeContainer .ac-top { display: flex; gap: 10px; align-items: center; }
#officeContainer .ac-sprite { width: 36px; height: 36px; border-radius: 6px; flex-shrink: 0; position: relative; overflow: hidden; }
#officeContainer .ac-info { flex: 1; }
#officeContainer .ac-name { font-weight: bold; font-size: 13px; }
#officeContainer .ac-role { font-size: 10px; color: #888; }
#officeContainer .ac-task { font-size: 11px; color: #aaa; margin-top: 4px; }
#officeContainer .ac-zone { font-size: 10px; color: #e94560; margin-top: 2px; }
#officeContainer .ac-progress { margin-top: 6px; height: 6px; background: #1a1a2e; border-radius: 3px; overflow: hidden; border: 1px solid #333; }
#officeContainer .ac-progress-bar { height: 100%; border-radius: 3px; transition: width 1s; }
#officeContainer .activity-log { font-size: 10px; color: #666; margin-top: 4px; height: 140px; min-height: 140px; flex-shrink: 0; overflow-y: auto; border: 1px solid #222; border-radius: 4px; padding: 6px; background: #0d0d1a; }
#officeContainer .activity-log div { padding: 2px 0; border-bottom: 1px solid #1a1a2e; }
#officeContainer .activity-log .time { color: #555; }
#officeContainer #officeClock { position: absolute; top: 12px; left: 12px; font-size: 11px; color: #555; }
#officeContainer #officeTitleBar { text-align: center; margin-bottom: 6px; }
#officeContainer #officeTitleBar h1 { font-size: 15px; color: #e94560; letter-spacing: 3px; }
#officeContainer #officeTitleBar p { font-size: 10px; color: #444; }
#officeContainer .office-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  z-index: 10;
}
#officeContainer .office-close-btn:hover { background: #ff6b81; }

/* Office modal */
#officeModalOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
#officeModalOverlay.show { display: flex; }
#officeModal {
  background: #12152a;
  border: 3px solid #e94560;
  border-radius: 10px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 30px rgba(233,69,96,0.3);
}
#officeModal h3 { color: #e94560; margin-bottom: 8px; }
#officeModal .close { position: absolute; top: 8px; right: 12px; cursor: pointer; font-size: 20px; color: #888; }
#officeModal .close:hover { color: #fff; }
#officeModal p { font-size: 12px; margin: 4px 0; color: #ccc; }
#officeModal .label { color: #666; }

/* Responsive */
@media (max-width: 900px) {
  #officeContainer #officeSidebar { width: 220px; }
}
@media (max-width: 600px) {
  #officeContainer { flex-direction: column; }
  #officeContainer #officeSidebar { width: 100%; max-height: 200px; border-left: none; border-top: 3px solid #3a3a5c; }
}
