/* Page 1 furniture geometry: the panels, pills, badges and stamps that share the
   screen with the dials.

   Deliberately a separate stylesheet loaded after landscape.css rather than an
   edit to it: the dials, arcs and their labels are owned elsewhere, and nothing
   in here touches them. Every number was converged against boxes measured in a
   real browser by tools/qa_landscape.py, and tests/test_landscape_pages.py keeps
   the invariants honest.

   Daily totals, device status and display prefs share one reserved column in
   the bottom-left corner — the only margin the Grid, Home and Battery rims
   all leave. A max height plus overflow clipping means neither panel can grow
   into a dial. */

:root {
  --furn-left: clamp(10px, 2.2vw, 40px);
  --furn-col-w: clamp(168px, 14vw, 252px);
  --furn-rail-w: clamp(150px, 11vw, 200px);
}

.landscape-summary-bar {
  left: var(--furn-left);
  right: auto;
  top: auto;
  bottom: 12px;
  transform: none;
  width: var(--furn-col-w);
  height: auto;
  max-height: min(58vh, 480px);
  overflow: hidden;
}

/* The USB block used to sit in the bottom-right corner, where opening its
   confirmation grew it upwards into the Battery rim by 7.5px. Park it in the
   vertical rail outside the satellite rims instead. */
.landscape-utilities {
  right: 10px;
  bottom: 12px;
  align-items: flex-end;
  max-width: var(--furn-rail-w);
}
.usb-reset-confirm,
.usb-reset-status {
  width: var(--furn-rail-w);
  max-width: var(--furn-rail-w);
}

.landscape-build-watermark {
  right: auto;
  left: var(--furn-left);
  bottom: 7px;
  text-align: left;
}

/* 1024x768 TV: Home's left rim sits around 202px, so the column must stay
   narrower and hug the left edge under the Grid dial. */
@media (min-width: 1000px) and (max-width: 1100px) and (min-height: 700px) and (max-height: 820px) {
  .landscape-summary-bar {
    left: 8px;
    bottom: 8px;
    width: 168px;
    max-height: 360px;
  }
}

/* Narrow or short screens: three dials and a full set of furniture do not both
   fit. The display pills, the USB block and the build stamp all exist on the
   settings page, so page 1 hands the room to the dials and keeps the summary
   column. The 1920x1080 TV this is built for keeps everything. */
@media (max-width: 1699px), (max-height: 949px) {
  .landscape-utilities,
  .landscape-build-watermark {
    display: none;
  }
}
