/* Pehlebaad · DS-059 · .pb- prefixed */
.pb {
  position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden;
  border-radius: 14px; border: 1px solid #2A3142; cursor: ew-resize;
  touch-action: none; font: 600 12px/1 ui-sans-serif, system-ui, sans-serif;
  user-select: none;
}
.pb-pane { position: absolute; inset: 0; }
.pb-b { background: linear-gradient(135deg, #3A4152 0%, #232A3A 100%); }
.pb-a {
  background: linear-gradient(135deg, #F59E0B 0%, #B45309 100%);
  clip-path: inset(0 0 0 50%);
}
/* demo skin: dull grey room → warm renovated room */
.pb-b::after, .pb-a::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(80px 60px at 30% 60%, rgba(255,255,255,.06), transparent),
    radial-gradient(120px 90px at 70% 30%, rgba(255,255,255,.04), transparent);
}
.pb-tag {
  position: absolute; top: 12px; padding: 5px 10px; border-radius: 6px;
  background: rgba(11,14,20,.75); color: #F5F1E8; font: 700 11px/1 inherit;
  letter-spacing: .06em; text-transform: uppercase;
  transition: opacity .2s; pointer-events: none;
}
.pb-tb { left: 12px; }
.pb-ta { right: 12px; }
.pb-line {
  position: absolute; top: 0; bottom: 0; width: 3px; left: 50%;
  background: #F5F1E8; transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0,0,0,.5); pointer-events: none;
}
.pb-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 38px; height: 38px; border-radius: 50%; background: #F5F1E8;
  display: grid; place-items: center; pointer-events: auto; cursor: ew-resize;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.pb-grip:focus-visible { outline: 2px solid #F9A8D4; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .pb-tag { transition: none; } }

/* phone view: demo stage is designed ~900px wide — zoom the page down on small screens */
@media (max-width: 430px) { body { zoom: .40; } }
@media (min-width: 431px) and (max-width: 560px) { body { zoom: .52; } }
@media (min-width: 561px) and (max-width: 720px) { body { zoom: .65; } }
@media (min-width: 721px) and (max-width: 860px) { body { zoom: .78; } }
