/* Private Fungi Farm floor plan. The shared map template stays unchanged. */
html { color-scheme: dark; }
body { background: #0b120d; }
.hdr, .mhead, .farms, .lyr-row, .legend-row, .hud, .hint, .day, body > footer,
.swipe, .zoomb, .scalebar, .stubnote, .tip, .toasts { display: none !important; }

main {
  width: 100%;
  padding: clamp(8px, 1vw, 20px);
}
.rooms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 3px 4px 12px;
}
.rooms-header h1 {
  font-size: clamp(21px, 2.2vw, 32px);
  font-weight: 650;
  line-height: 1.1;
}
.rooms-actions, .rooms-language {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.rooms-language { gap: 3px; }
.rooms-actions button {
  cursor: pointer;
  min-height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: #141e17;
  padding: 6px 9px;
  font: 600 12px/1.2 var(--sans);
}
#rooms-refresh { min-width: 36px; font-size: 18px; }
.rooms-actions button:hover, .rooms-actions button[aria-pressed="true"] {
  color: var(--accent);
  border-color: #5e7342;
}
.rooms-actions button:disabled { cursor: wait; color: var(--muted); }
#rooms-connection { color: var(--warn); font-size: 12px; }

.rooms-energy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #141e17;
  font-size: 12px;
}
.rooms-energy h2 { margin: 0; font-size: 13px; color: var(--accent); }
.rooms-energy dl { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
.rooms-energy dl div { display: flex; flex-wrap: wrap; gap: 3px 6px; }
.rooms-energy dt, #rooms-energy-status { color: var(--muted); }
.rooms-energy dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.rooms-energy[data-stale] #rooms-energy-status { color: var(--warn); }

.mapsec { padding: 0; background: transparent; }
.center { max-width: none; }
.fpanel { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.frame {
  height: auto;
  min-height: 0;
  max-height: none;
  border: 1px solid var(--line-2);
  border-radius: 15px;
  aspect-ratio: auto;
  background: #0c150f;
  overflow: hidden;
}
.mscroll {
  position: relative;
  overflow: auto hidden;
  scrollbar-width: thin;
  scrollbar-color: #587244 #152018;
}
.mscroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mscroll::-webkit-scrollbar { display: block; height: 8px; }
#farm {
  width: 100%;
  height: auto;
  min-width: 1180px;
  aspect-ratio: 1260 / 562;
  background: transparent;
}
.frame .card { top: 12px; max-height: calc(100% - 24px); }
@media (max-width: 980px) {
  .frame .card { top: auto; position: fixed; max-height: 54svh; }
}
@media (max-width: 540px) {
  #rooms-connection { flex-basis: 100%; order: 1; }
}

#farm .ff-room .room-tile { fill: #1b2920; stroke: #3b4c40; }
#farm .ff-room:hover .room-tile, #farm .ff-room:focus-visible .room-tile,
#farm .ff-room.sel .room-tile { stroke: var(--accent); stroke-width: 1.7; }
#farm .ff-room .room-rule { stroke: rgba(243, 241, 233, .12); }
#farm .ff-room .room-number { font-size: 29px; font-weight: 700; fill: var(--ink); }
#farm .ff-room .room-label { font-size: 12px; fill: #aebdb1; }
#farm .ff-room .room-value { font-size: 19px; font-weight: 650; fill: var(--ink); }
#farm .ff-room .room-value.humidity { fill: var(--ice); }
#farm .ff-room .room-value[data-missing] { fill: #aebdb1; }
#farm .ff-room .room-time { font-size: 12px; fill: #c4cec4; font-variant-numeric: tabular-nums; }
#farm .ff-room .room-value { font-variant-numeric: tabular-nums; }
#farm .ff-room .room-packing { fill: #232921; stroke: #5d6351; }
#farm .ff-room .room-packing-label { font-size: 15px; font-weight: 600; fill: #e3d8b4; }
#farm .corridor-label { fill: #b1bbad; font-size: 13px; font-weight: 600; letter-spacing: .18em; }
