/* floorplan3d: tokens first, so a host skin can override them on .fp or any parent */
.fp {
  --fp-bg: #14161a;
  --fp-text: #e9e6df;
  --fp-muted: #b9bcc1;
  --fp-line: #e9e6df;
  --fp-wall: #efebe4;
  --fp-cap: #2a2d33;
  --fp-glass: #cfe3ef;
  --fp-accent: #b8735a;
  --fp-floor-hall: #f1ede6;
  --fp-floor-closet: #efeae0;
  --fp-floor-bath: #e4e9ee;
  --fp-floor-living: #f0e4d8;
  --fp-floor-kitchen: #e9eef0;
  --fp-floor-bed: #ece5ea;
  --fp-floor-deck: #6f655a;
  /* furniture colours (palette from the design bible: oak, warm white, charcoal sofa, rust throw, oatmeal bedding) */
  --fp-furn-fabric: #45484e;
  --fp-furn-fabric2: #55585f;
  --fp-furn-rust: #a65a3c;
  --fp-furn-linen: #c9bcaa;
  --fp-furn-bedding: #e8e1d5;
  --fp-furn-duvet: #ddd3c3;
  --fp-furn-pillow: #f3eee6;
  --fp-furn-oak: #b48c5f;
  --fp-furn-walnut: #6e4b33;
  --fp-furn-white: #f5f3ef;
  --fp-furn-white2: #e4dfd6;
  --fp-furn-metal: #26282c;
  --fp-furn-screen: #121316;
  --fp-furn-rug: #bdb5a8;

  position: relative;
  background: var(--fp-bg);
  color: var(--fp-text);
  font-family: Inter, system-ui, sans-serif;
  border-radius: 14px;
  overflow: hidden;
}
.fp-stage { position: relative; width: 100%; aspect-ratio: 16 / 10; }
.fp-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.fp-canvas:active { cursor: grabbing; }
.fp-canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--fp-accent); }
.fp-labels { position: absolute; inset: 0; pointer-events: none; }
.fp-label {
  position: absolute; left: 0; top: 0;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  color: #1d2025; background: rgb(255 255 255 / 0.82);
  padding: 3px 8px; border-radius: 999px;
  opacity: 0; will-change: transform;
}
.fp-label--out { color: var(--fp-text); background: rgb(20 22 26 / 0.7); }
.fp-honest {
  position: absolute; left: 16px; bottom: 12px; margin: 0;
  font-size: 12px; color: var(--fp-muted); pointer-events: none;
}
.fp-bar { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid rgb(255 255 255 / 0.08); }
.fp-btn {
  font: inherit; font-size: 14px; color: var(--fp-text);
  background: transparent; border: 1px solid rgb(255 255 255 / 0.22); border-radius: 999px;
  padding: 8px 16px; min-height: 40px; cursor: pointer;
}
.fp-btn:hover { border-color: rgb(255 255 255 / 0.5); }
.fp-btn:focus-visible { outline: 2px solid var(--fp-accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .fp-stage { aspect-ratio: 4 / 5; }
  .fp-label { font-size: 12px; }
}
