/* ==========================================================================
   DESIGN STUDIO: planner styles
   Self-contained (every class starts with .pl-). Colours and fonts come from
   planner/config.js as --pl-* custom properties, so re-skinning needs no CSS.
   Square corners, thin rules, serif headings: matches the host site.
   ========================================================================== */

.planner {
  --pl-gutter: var(--gutter, 40px);
  --pl-header: var(--header-height-scrolled, 72px);
  --pl-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pl-dur: 0.35s;
  padding: 48px var(--pl-gutter) 96px;
  background-color: var(--pl-bg, #F9F6F1);
  color: var(--pl-ink, #1C1C1C);
  font-family: var(--pl-font-body, sans-serif);
}

.pl {
  max-width: 1440px;
  margin-inline: auto;
}

.pl *,
.pl *::before,
.pl *::after {
  box-sizing: border-box;
}

.pl-vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pl [hidden] {
  display: none !important;
}

.pl :focus-visible {
  outline: 2px solid var(--pl-accent);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.pl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 40px;
}

.pl-head__text {
  max-width: 720px;
}

.pl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pl-accent-text);
}

.pl-eyebrow::after {
  content: "";
  width: 56px;
  height: 1px;
  background-color: var(--pl-accent);
}

.pl-head__title {
  margin: 0;
  font-family: var(--pl-font-heading);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.08;
}

.pl-head__title:focus {
  outline: none;
}

.pl-head__intro {
  margin: 20px 0 0;
  max-width: 620px;
  font-size: 17px;
  color: var(--pl-muted);
}

[data-view="workspace"] .pl-head {
  margin-bottom: 28px;
}

[data-view="workspace"] .pl-head__title {
  font-size: 40px;
}

.pl-notice {
  margin: -12px 0 28px;
  padding: 12px 16px;
  border-left: 2px solid var(--pl-accent);
  background-color: var(--pl-accent-tint);
  font-size: 14px;
}

/* ---------- Text link button ---------- */
.pl-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--pl-ink);
  cursor: pointer;
}

.pl-link span {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: color var(--pl-dur) var(--pl-ease), border-color var(--pl-dur) var(--pl-ease);
}

.pl-link:hover span {
  color: var(--pl-accent-text);
  border-color: var(--pl-accent);
}

.pl-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.pl-summary__edit .pl-link {
  min-height: 32px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
}

/* ---------- Project type cards (step 0) ---------- */
.pl-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pl-types[hidden] {
  display: none;
}

.pl-type {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid var(--pl-border);
  background-color: var(--pl-surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--pl-dur) var(--pl-ease), box-shadow var(--pl-dur) var(--pl-ease);
}

.pl-type:hover {
  border-color: var(--pl-accent);
  box-shadow: 0 10px 30px rgba(28, 28, 28, 0.08);
}

.pl-type__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--pl-surface-alt);
}

.pl-type__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--pl-ease);
}

.pl-type:hover .pl-type__media img {
  transform: scale(1.04);
}

.pl-type__body {
  display: block;
  padding: 22px 64px 24px 24px;
}

.pl-type__label {
  display: block;
  font-family: var(--pl-font-heading);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}

.pl-type__text {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--pl-muted);
}

.pl-type__arrow {
  position: absolute;
  right: 24px;
  bottom: 28px;
  display: inline-flex;
  color: var(--pl-accent-text);
  transition: transform var(--pl-dur) var(--pl-ease);
}

.pl-type:hover .pl-type__arrow {
  transform: translateX(4px);
}

.pl-type__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 10px;
  background-color: var(--pl-surface);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--pl-accent-text);
}

/* ---------- Workspace: stage left, steps right ---------- */
.pl-workspace {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(380px, 2fr);
  gap: 24px;
  align-items: start;
}

.pl-workspace[hidden] {
  display: none;
}

.pl-stage {
  position: sticky;
  top: calc(var(--pl-header) + 20px);
  height: calc(100vh - var(--pl-header) - 40px);
  height: calc(100svh - var(--pl-header) - 40px);
  min-height: 520px;
  max-height: 860px;
  overflow: hidden;
  border: 1px solid var(--pl-border);
  background-color: var(--pl-surface-alt);
}

.pl-stage__canvas {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: none;
}

.pl-stage__canvas:active {
  cursor: grabbing;
}

.pl-stage__canvas:focus-visible {
  outline-offset: -4px;
}

.pl-stage__canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.pl-stage [hidden] {
  display: none !important;
}

.pl-stage__photo {
  position: absolute;
  inset: 0;
  margin: 0;
}

.pl-stage__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pl-stage__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px;
  color: var(--pl-accent);
  text-align: center;
}

.pl-stage__fallback p {
  max-width: 360px;
  margin: 0;
  font-size: 14px;
  color: var(--pl-muted);
}

.pl-fallback__art {
  width: min(360px, 80%);
  height: auto;
}

.pl-stage__loading {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  background-color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pl-spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--pl-border-strong);
  border-top-color: var(--pl-accent);
  border-radius: 50%;
  animation: pl-spin 0.9s linear infinite;
}

@keyframes pl-spin {
  to { transform: rotate(360deg); }
}

/* Lighting toggle and reset */
.pl-stage__tools {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.pl-stage__tools > * {
  pointer-events: auto;
}

.pl-segment {
  display: inline-flex;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--pl-border);
  background-color: rgba(255, 255, 255, 0.94);
  min-width: 0;
}

.pl-segment__item {
  position: relative;
  cursor: pointer;
}

.pl-segment__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pl-segment__item span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pl-ink);
  transition: background-color var(--pl-dur) var(--pl-ease), color var(--pl-dur) var(--pl-ease);
}

.pl-segment__item input:checked + span {
  background-color: var(--pl-ink);
  color: var(--pl-bg);
}

.pl-segment__item input:focus-visible + span {
  outline: 2px solid var(--pl-accent);
  outline-offset: 1px;
}

.pl-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--pl-border);
  background-color: rgba(255, 255, 255, 0.94);
  color: var(--pl-ink);
  cursor: pointer;
}

.pl-icon-btn:hover {
  border-color: var(--pl-accent);
}

.pl-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.pl-stage__hint {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  color: var(--pl-ink);
  pointer-events: none;
  transition: opacity 0.6s var(--pl-ease);
}

.pl-stage__hint.is-hidden {
  opacity: 0;
}

/* ---------- Step panel ---------- */
.pl-panel {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--pl-header) - 40px);
  min-height: calc(100svh - var(--pl-header) - 40px);
  padding: 36px 40px 32px;
  border: 1px solid var(--pl-border);
  background-color: var(--pl-surface);
}

.pl-progress {
  margin-bottom: 28px;
}

.pl-progress__count {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pl-accent-text);
}

.pl-progress__label {
  color: var(--pl-muted);
}

.pl-progress__bar {
  height: 1px;
  background-color: var(--pl-border);
}

.pl-progress__bar span {
  display: block;
  height: 1px;
  background-color: var(--pl-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--pl-ease);
}

.pl-form {
  flex: 1 1 auto;
}

.pl-step {
  animation: pl-step-in 0.45s var(--pl-ease);
}

@keyframes pl-step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.pl-step__title {
  margin: 0 0 10px;
  font-family: var(--pl-font-heading);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.12;
}

.pl-step__title:focus {
  outline: none;
}

.pl-step__text {
  margin: 0 0 28px;
  color: var(--pl-muted);
}

.pl-fieldset {
  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.pl-sublegend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pl-ink);
}

/* ---------- Option cards ---------- */
.pl-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pl-options--swatches {
  grid-template-columns: repeat(2, 1fr);
}

.pl-options--two {
  grid-template-columns: repeat(2, 1fr);
}

.pl-options--three {
  grid-template-columns: repeat(3, 1fr);
}

.pl-options--list {
  gap: 8px;
}

.pl-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 44px 14px 16px;
  border: 1px solid var(--pl-border);
  background-color: var(--pl-surface);
  cursor: pointer;
  transition:
    border-color var(--pl-dur) var(--pl-ease),
    background-color var(--pl-dur) var(--pl-ease),
    box-shadow var(--pl-dur) var(--pl-ease);
}

.pl-option:hover {
  border-color: var(--pl-border-strong);
}

.pl-option__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.pl-option:has(.pl-option__input:checked) {
  border-color: var(--pl-accent);
  background-color: var(--pl-accent-tint);
  box-shadow: inset 0 0 0 1px var(--pl-accent);
}

.pl-option:has(.pl-option__input:focus-visible) {
  outline: 2px solid var(--pl-accent);
  outline-offset: 2px;
}

.pl-option__body {
  display: block;
  min-width: 0;
}

.pl-option__label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.pl-option__text {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--pl-muted);
}

.pl-option__check {
  position: absolute;
  top: 50%;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--pl-border-strong);
  background-color: var(--pl-surface);
  transform: translateY(-50%);
  transition: background-color var(--pl-dur) var(--pl-ease), border-color var(--pl-dur) var(--pl-ease);
}

.pl-option__check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: transparent;
  stroke-width: 2;
}

.pl-option:has(.pl-option__input:checked) .pl-option__check {
  border-color: var(--pl-accent);
  background-color: var(--pl-button);
}

.pl-option:has(.pl-option__input:checked) .pl-option__check svg {
  stroke: var(--pl-button-text);
}

.pl-option__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--pl-accent);
}

.pl-option__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

/* Swatch cards: picture on top, label below */
.pl-options--swatches .pl-option {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 10px 10px 14px;
}

.pl-options--swatches .pl-option__check {
  top: 18px;
  right: 18px;
  transform: none;
}

.pl-option__swatch {
  display: block;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-position: center;
  background-size: 260%;
}

.pl-options--three .pl-option__swatch {
  aspect-ratio: 1;
  background-size: 400%;
}

.pl-options--swatches .pl-option__body {
  padding-inline: 4px;
}

.pl-options--three .pl-option__label {
  font-size: 14px;
}

/* ---------- Room size ---------- */
.pl-size {
  margin-bottom: 28px;
}

.pl-size__value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 0 0 16px;
}

.pl-size__value output {
  font-family: var(--pl-font-heading);
  font-size: 56px;
  line-height: 1;
}

.pl-size__unit {
  margin-left: -10px;
  font-size: 22px;
}

.pl-size__dims {
  font-size: 14px;
  color: var(--pl-muted);
}

.pl-range {
  --pl-fill: 50%;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.pl-range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, var(--pl-accent) var(--pl-fill), var(--pl-border) var(--pl-fill));
}

.pl-range::-moz-range-track {
  height: 2px;
  background: linear-gradient(to right, var(--pl-accent) var(--pl-fill), var(--pl-border) var(--pl-fill));
}

.pl-range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -10px;
  border: 2px solid var(--pl-surface);
  background-color: var(--pl-button);
  box-shadow: 0 0 0 1px var(--pl-button);
  transform: rotate(45deg);
  -webkit-appearance: none;
  appearance: none;
}

.pl-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--pl-surface);
  border-radius: 0;
  background-color: var(--pl-button);
  box-shadow: 0 0 0 1px var(--pl-button);
  transform: rotate(45deg);
}

.pl-range:focus-visible {
  outline-offset: 6px;
}

.pl-range__scale {
  display: flex;
  justify-content: space-between;
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--pl-muted);
}

.pl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pl-chip {
  position: relative;
  cursor: pointer;
}

.pl-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pl-chip span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--pl-border);
  background-color: var(--pl-surface);
  font-size: 14px;
  font-weight: 500;
  transition: border-color var(--pl-dur) var(--pl-ease), background-color var(--pl-dur) var(--pl-ease);
}

.pl-chip small {
  font-size: 12px;
  font-weight: 400;
  color: var(--pl-muted);
}

.pl-chip:hover span {
  border-color: var(--pl-border-strong);
}

.pl-chip input:checked + span {
  border-color: var(--pl-accent);
  background-color: var(--pl-accent-tint);
  box-shadow: inset 0 0 0 1px var(--pl-accent);
}

.pl-chip input:focus-visible + span {
  outline: 2px solid var(--pl-accent);
  outline-offset: 2px;
}

/* ---------- Fields ---------- */
.pl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.pl-field {
  margin-bottom: 20px;
}

.pl-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
}

.pl-req {
  color: var(--pl-accent-text);
}

.pl-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--pl-border);
  border-radius: 0;
  background-color: var(--pl-bg);
  color: var(--pl-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color var(--pl-dur) var(--pl-ease), background-color var(--pl-dur) var(--pl-ease);
}

.pl-input:hover {
  border-color: var(--pl-border-strong);
}

.pl-input:focus {
  border-color: var(--pl-accent);
  background-color: var(--pl-surface);
}

.pl-input:focus-visible {
  outline: 2px solid var(--pl-accent);
  outline-offset: 0;
}

textarea.pl-input {
  min-height: 120px;
  resize: vertical;
}

.pl-input[aria-invalid="true"] {
  border-color: var(--pl-error);
}

.pl-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--pl-error);
}

.pl-error[hidden] {
  display: none;
}

.pl-error--block {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-left: 2px solid var(--pl-error);
  background-color: rgba(161, 52, 42, 0.06);
  font-size: 14px;
}

.pl-error--info {
  border-left-color: var(--pl-accent);
  background-color: var(--pl-accent-tint);
  color: var(--pl-ink);
}

.pl-error--block:focus {
  outline: none;
}

.pl-note,
.pl-privacy {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--pl-muted);
}

.pl-privacy {
  margin: 20px 0 0;
  font-size: 12px;
}

.pl-note a,
.pl-privacy a {
  color: var(--pl-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--pl-dur) var(--pl-ease);
}

.pl-note a:hover,
.pl-privacy a:hover {
  color: var(--pl-accent-text);
}

.pl-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Summary ---------- */
.pl-snapshot {
  margin: 0 0 24px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--pl-border);
  background-color: var(--pl-surface-alt);
}

.pl-snapshot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pl-snapshot__placeholder,
.pl-snapshot__none {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--pl-accent);
}

.pl-snapshot__none svg {
  width: 60%;
}

.pl-summary {
  margin: 0 0 24px;
  border-top: 1px solid var(--pl-border);
}

.pl-summary__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--pl-border);
  font-size: 14px;
}

.pl-summary dt {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pl-muted);
}

.pl-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.pl-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

/* ---------- Buttons ---------- */
.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--pl-dur) var(--pl-ease),
    border-color var(--pl-dur) var(--pl-ease),
    color var(--pl-dur) var(--pl-ease);
}

.pl-btn[hidden] {
  display: none;
}

.pl-btn__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform var(--pl-dur) var(--pl-ease);
}

.pl-btn:hover .pl-btn__arrow {
  transform: translateX(4px);
}

.pl-btn:hover .pl-btn__arrow--back {
  transform: translateX(-4px);
}

.pl-btn--primary {
  border-color: var(--pl-button);
  background-color: var(--pl-button);
  color: var(--pl-button-text);
}

.pl-btn--primary:hover {
  border-color: var(--pl-button-hover);
  background-color: var(--pl-button-hover);
}

.pl-btn--ghost {
  border-color: var(--pl-ink);
  background-color: transparent;
  color: var(--pl-ink);
}

.pl-btn--ghost:hover {
  background-color: var(--pl-ink);
  color: var(--pl-bg);
}

.pl-btn--wide {
  width: 100%;
}

.pl-btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.pl-nav {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 28px -40px -32px;
  padding: 16px 40px 20px;
  border-top: 1px solid var(--pl-border);
  background-color: var(--pl-surface);
}

.pl-nav[hidden] {
  display: none;
}

.pl-nav .pl-btn--ghost {
  border-color: transparent;
  padding-inline: 4px;
}

.pl-nav .pl-btn--ghost:hover {
  background-color: transparent;
  color: var(--pl-accent-text);
}

.pl-success .pl-eyebrow {
  margin-bottom: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .pl-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  }

  .pl-panel {
    padding: 32px 28px 28px;
  }

  .pl-nav {
    margin: 28px -28px -28px;
    padding-inline: 28px;
  }

  .pl-types {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 899px) {
  .planner {
    padding: 32px var(--pl-gutter) 64px;
  }

  .pl-head__title {
    font-size: 40px;
  }

  [data-view="workspace"] .pl-head__title {
    font-size: 30px;
  }

  [data-view="workspace"] .pl-head {
    margin-bottom: 20px;
  }

  .pl-head__intro {
    font-size: 16px;
  }

  /* Scene on top, steps below, Back / Next fixed to the bottom */
  .pl-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-inline: calc(-1 * var(--pl-gutter));
  }

  .pl-stage {
    top: var(--pl-header);
    z-index: 5;
    height: 45vh;
    height: 45svh;
    min-height: 260px;
    max-height: 460px;
    border-inline: 0;
  }

  /* After the design steps the room is done: give the form the screen */
  .pl[data-mode="bathroom3d"]:not(.is-design-step) .pl-stage,
  .pl[data-mode="brief"]:not([data-step="brief"]) .pl-stage {
    display: none;
  }

  .pl[data-mode="brief"] .pl-stage {
    position: relative;
    top: auto;
    height: 26vh;
    min-height: 180px;
  }

  .pl-panel {
    min-height: 0;
    padding: 28px var(--pl-gutter) 24px;
    border-inline: 0;
    border-top: 0;
  }

  .pl-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    margin: 0;
    padding: 12px var(--pl-gutter) calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--pl-border);
    background-color: var(--pl-surface);
    box-shadow: 0 -6px 24px rgba(28, 28, 28, 0.06);
  }

  .pl-nav .pl-btn--primary {
    flex: 1 1 auto;
    max-width: 260px;
  }

  [data-view="workspace"].pl {
    padding-bottom: 72px;
  }

  .pl-step__title {
    font-size: 30px;
  }

  .pl-stage__tools {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .pl-segment__item span {
    min-height: 36px;
    padding: 0 12px;
  }

  .pl-icon-btn {
    width: 44px;
    height: 44px;
  }

  .pl-stage__hint {
    left: 10px;
    bottom: 10px;
  }
}

@media (max-width: 599px) {
  .pl-types {
    gap: 12px;
  }

  .pl-type__body {
    padding: 14px 14px 16px;
  }

  .pl-type__label {
    font-size: 21px;
  }

  .pl-type__text,
  .pl-type__arrow {
    display: none;
  }

  .pl-type__badge {
    top: 8px;
    left: 8px;
  }

  .pl-row {
    grid-template-columns: 1fr;
  }

  .pl-options--two:not(.pl-options--swatches) {
    grid-template-columns: 1fr;
  }

  .pl-options--three {
    gap: 8px;
  }

  .pl-options--three .pl-option {
    padding: 8px 8px 12px;
  }

  .pl-options--three .pl-option__check {
    top: 14px;
    right: 14px;
  }

  .pl-summary__row {
    grid-template-columns: 96px minmax(0, 1fr) auto;
  }

  .pl-size__value output {
    font-size: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pl *,
  .pl *::before,
  .pl *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
