/* PaperOS research floor. Pixel artwork stays local; all metrics use public records. */
.agent-office {
  border: 1px solid var(--os-strong-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--os-inset);
  box-shadow: 0 16px 48px #0000000c;
}
.office-room-head,
.office-room-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.office-room-head {
  justify-content: space-between;
  min-height: 58px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--os-line);
}
.office-brand-mark {
  color: var(--bi-primary);
  font-size: 23px;
}
.office-room-head strong {
  font-size: 12px;
  font-weight: 550;
}
.office-room-mode {
  color: var(--bi-primary);
  border: 1px solid color-mix(in srgb, var(--bi-primary) 25%, transparent);
  border-radius: 4px;
  padding: 4px 6px;
  font: 8px var(--font-mono, monospace);
  letter-spacing: 1px;
}
.office-room-count {
  color: var(--bi-muted);
  font-size: 10px;
}
.office-page-controls:empty {
  display: none;
}
.office-page-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 18px;
  color: var(--bi-muted);
  border-bottom: 1px solid var(--os-line);
  font-size: 10px;
}
.office-page-controls > div {
  display: flex;
  gap: 8px;
}
.office-page-controls button {
  border: 1px solid var(--os-strong-line);
  background: var(--bi-panel);
  color: var(--bi-fg);
  border-radius: 5px;
  min-width: 36px;
  min-height: 32px;
}
.office-page-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}
.office-scene {
  position: relative;
  overflow: hidden;
  background: #1c1d24;
}
.office-pan-hint {
  display: none;
}
.office-scene canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.office-scene-caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 20px;
  color: #a79aa5;
  background: linear-gradient(transparent, #171820b3);
  font: 8px var(--font-mono, monospace);
  letter-spacing: 0.7px;
  pointer-events: none;
}
.office-agent-seats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--os-strong-line);
}
button.office-agent-seat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 78px;
  min-width: 0;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--os-strong-line);
  border-bottom: 1px solid var(--os-line);
  border-radius: 0;
  background: transparent;
  color: var(--bi-fg);
  text-align: left;
  transition: background 0.18s ease;
}
button.office-agent-seat:nth-child(4n) {
  border-right: 0;
}
.office-vacant-seat .office-seat-name strong {
  color: var(--bi-muted);
  font-weight: 400;
}
.office-vacant-seat .office-seat-pnl {
  color: var(--bi-muted);
  font-size: 18px;
}
.office-vacancy-note {
  align-self: center;
  padding: 20px;
  border: 1px dashed var(--os-strong-line);
  border-radius: 10px;
}
.office-vacancy-note > span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bi-primary-tint);
  color: var(--bi-primary);
  margin-right: 10px;
}
.office-vacancy-note strong {
  font-size: 11px;
  font-weight: 500;
}
.office-vacancy-note p {
  color: var(--bi-muted);
  font-size: 10px;
  line-height: 1.8;
  margin: 12px 0 0;
}
button.office-agent-seat:hover {
  background: color-mix(in srgb, var(--seat-color) 5%, transparent);
}
button.office-agent-seat[aria-pressed='true'] {
  background: color-mix(in srgb, var(--seat-color) 8%, transparent);
}
button.office-agent-seat[aria-pressed='true']::after {
  content: '';
  position: absolute;
  inset: 0 18px auto;
  height: 2px;
  background: var(--seat-color);
}
.office-seat-index {
  font: 11px var(--font-mono, monospace);
  color: var(--seat-color);
  opacity: 0.7;
}
.office-seat-name {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}
.office-seat-name strong {
  font-size: 11px;
  font-weight: 550;
  line-height: 1.4;
}
.office-seat-name small {
  color: var(--bi-muted);
  font-size: 9px;
}
.office-seat-pnl {
  flex-shrink: 0;
  font: 11px var(--font-mono, monospace);
  font-variant-numeric: tabular-nums;
}
.office-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 28px;
}
.office-detail-eyebrow {
  color: var(--bi-primary);
  font: 8px var(--font-mono, monospace);
  letter-spacing: 1.5px;
}
.office-strategy-copy h3 {
  margin: 12px 0 9px;
  color: var(--bi-fg);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
}
.office-strategy-copy p {
  color: var(--bi-muted);
  font-size: 11px;
  line-height: 1.8;
  max-width: 430px;
  margin: 0 0 18px;
}
.office-strategy-copy .os-secondary {
  min-height: 34px;
  font-size: 10px;
}
.office-detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 24px;
  margin: 0;
}
.office-detail-metrics > div {
  min-width: 0;
}
.office-detail-metrics dt {
  color: var(--bi-muted);
  font-size: 9px;
  margin-bottom: 9px;
}
.office-detail-metrics dd {
  color: var(--bi-fg);
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.office-detail-metrics > div:first-child dd {
  font: 22px var(--font-mono, monospace);
  letter-spacing: -0.7px;
}
.agent-office .positive {
  color: var(--bi-profit);
}
.agent-office .negative {
  color: var(--bi-loss);
}
.office-footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 15px;
  padding: 14px 22px;
  border-top: 1px solid var(--os-line);
  color: var(--bi-muted);
  font-size: 9px;
  line-height: 1.7;
}
.office-footnote > span {
  flex: 1 1 300px;
}
.office-footnote a {
  color: var(--bi-muted);
  text-decoration: none;
}
.office-footnote a:hover {
  color: var(--bi-primary);
}
:root[data-theme='light'] .office-scene-caption {
  color: #6f5a51;
  background: linear-gradient(transparent, #ddd0bfe0);
}
@container app-window (max-width: 850px) {
  .office-agent-seats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  button.office-agent-seat:nth-child(2n) {
    border-right: 0;
  }
  button.office-agent-seat {
    padding: 15px 12px;
    gap: 7px;
    flex-wrap: wrap;
  }
  .office-seat-pnl {
    margin-left: 23px;
  }
  .office-selection {
    gap: 24px;
    padding: 24px;
  }
}
@media (max-width: 700px) {
  .office-pan-hint {
    display: block;
    margin: 0;
    padding: 10px 14px;
    color: var(--bi-muted);
    font-size: 10px;
  }
  .office-room-head {
    padding: 12px 14px;
    gap: 8px;
    align-items: flex-start;
  }
  .office-room-head > div {
    gap: 7px;
  }
  .office-room-head strong {
    font-size: 11px;
  }
  .office-room-count {
    max-width: 100px;
    text-align: right;
    line-height: 1.7;
  }
  .office-scene {
    overflow-x: auto;
  }
  .office-scene canvas {
    width: 760px;
    max-width: none;
  }
  .office-scene-caption {
    position: sticky;
    width: 760px;
    margin-top: -28px;
    padding-inline: 14px;
  }
  .office-agent-seats {
    grid-template-columns: 1fr;
  }
  button.office-agent-seat {
    min-height: 68px;
    border-right: 0;
    border-bottom: 1px solid var(--os-line);
    padding: 14px;
  }
  button.office-agent-seat:last-child {
    border-bottom: 0;
  }
  .office-seat-pnl {
    margin-left: 0;
  }
  .office-selection {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 22px 18px;
  }
  .office-detail-metrics {
    border-top: 1px solid var(--os-line);
    padding-top: 22px;
  }
  .office-footnote {
    padding: 14px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button.office-agent-seat {
    transition: none;
  }
}
.office-assessment {
  grid-column: 1 / -1;
  border-top: 1px solid var(--os-line);
  padding-top: 20px;
  font-size: 12px;
  line-height: 1.8;
}
.office-assessment strong {
  font-weight: 500;
  color: var(--bi-fg);
}
.office-assessment p {
  margin: 8px 0 0;
  color: var(--bi-muted);
  overflow-wrap: anywhere;
}
