/* PresentTool™ — Web app layout overrides (v3.9)
   Loaded AFTER the shared plugin styles.css. The plugin UI is sized for a fixed
   720×780 SketchUp HtmlDialog; in the browser we let it fill the viewport while
   preserving the internal panel/sidebar layout untouched. */

html, body {
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh;
  overflow: hidden;
}

#pt-root {
  width: 100% !important;
  height: 100vh !important;
  max-width: 1280px;          /* keep the workflow comfortable on wide screens */
  margin: 0 auto;
}

/* On true desktop widths give the canvas room to breathe; the slide-over
   panels (#pt-panel / #pt-offerte-panel) keep their fixed widths and still
   anchor to the right edge of #pt-root. */
@media (min-width: 900px) {
  #pt-root { box-shadow: 0 0 0 1px var(--pt-border); }
}

/* Mobile: stack-friendly — the fixed panel widths would overflow, so cap them. */
@media (max-width: 560px) {
  #pt-panel,
  #pt-offerte-panel { width: 100% !important; }
  #pt-cmd-palette { width: 92% !important; }
}

/* Web scene-upload floating action button (injected by boot.js). */
#pt-web-upload-fab {
  position: fixed;
  left: 16px;
  bottom: 56px;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-family: var(--pt-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--pt-primary);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--pt-shadow-modal);
  cursor: pointer;
}
#pt-web-upload-fab:hover { filter: brightness(1.05); }

/* The web app has no SketchUp drawing to scan — hide that affordance. */
.pt-host-web [onclick*="scanSketchUp"] { display: none !important; }

