/* CSS-only perspective office for the house view. Text labels are never transformed. */
.pilot-view-switch {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.pilot-view-switch [aria-pressed='true'] {
  background: #e1ebe4;
  border-color: #7aa287;
  color: #206347;
}
.house-view {
  margin-top: 15px;
}
.house-floor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.house-station {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #dce4da;
  border-radius: 10px;
}
.house-stage {
  position: relative;
  height: 104px;
  perspective: 640px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(#f2f6f0, #e5ece2);
}
.house-stage::before {
  content: '';
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -16px;
  height: 80px;
  transform: rotateX(64deg);
  transform-origin: bottom center;
  background-image:
    linear-gradient(#c9d6c6 1px, transparent 1px),
    linear-gradient(90deg, #c9d6c6 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.55;
}
.house-desk {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 98px;
  height: 40px;
  margin-left: -49px;
  border-radius: 3px;
  background: #d8c2a2;
  box-shadow: 0 4px 0 #c3ad90;
  transform: rotateX(54deg) rotateZ(-32deg);
}
.house-desk::before {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  top: 9px;
  height: 24px;
  border-left: 5px solid #cbb59a;
  border-right: 5px solid #cbb59a;
  border-radius: 0 0 2px 2px;
}
.house-monitor {
  position: absolute;
  left: 50%;
  bottom: 50px;
  width: 44px;
  height: 29px;
  margin-left: -22px;
  border-radius: 3px;
  background: #3f5a4d;
  box-shadow:
    0 0 0 3px #cbbfa9,
    0 10px 12px -8px rgba(53, 70, 60, 0.5);
}
.house-monitor::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 2px;
  background: linear-gradient(#a9d3b6, #d3dcaa);
  opacity: 0.85;
}
.house-avatar {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e6ece4;
  color: #476650;
  font-size: 11px;
  font-weight: 650;
}
.house-name {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.house-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 7px 0;
}
.house-division,
.house-note {
  color: #62756a;
  font-size: 11px;
}
.house-note {
  margin-bottom: 14px;
}
.house-badge {
  font-size: 11px;
  font-weight: 600;
}
.house-badge-needs_check {
  color: #87571c;
}
.house-badge-busy {
  color: #206347;
}
.pilot-view-switch {
  margin-bottom: 18px;
}
.house-station-busy .house-monitor::after {
  background: linear-gradient(#8ccfa6, #bfe0b4);
}
.house-station-needs_check .house-monitor::after {
  background: linear-gradient(#ecc98d, #f0dcb0);
}
.house-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  margin: 0;
  color: #62756a;
  font-size: 11px;
}
.house-facts dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.house-details {
  font-size: 11px;
  color: #4d6256;
}
.house-details summary {
  cursor: pointer;
  width: fit-content;
}
.house-details dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  margin: 10px 0 0;
}
.house-details dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.house-empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed #cfdace;
  border-radius: 8px;
  color: #62756a;
}
@supports not (perspective: 1px) {
  .house-stage::before,
  .house-desk,
  .house-monitor {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .house-stage *,
  .pilot-view-switch * {
    transition: none;
    animation: none;
  }
}
@media (max-width: 480px) {
  .house-floor {
    grid-template-columns: 1fr;
  }
  .house-stage {
    height: 92px;
  }
}
