/*
 * PHARAON Room Visualizer — component styles. Everything is scoped to .phrv.
 *
 * Brand tokens come from the live site: --themeht-primary-color #273791,
 * --themeht-text-color #200043, homepage accent #F5901F. The orange is darkened
 * where it carries white text (#D9700B, 3.35:1, AA large) or is used as text on
 * white (#DC7410, 3.2:1 at 40px+), because #F5901F/white is only 2.3:1.
 * No font-family is declared except the theme's own heading variable.
 */
.phrv {
  --phrv-navy: var(--themeht-text-color, #200043);
  --phrv-blue: var(--themeht-primary-color, #273791);
  --phrv-blue-50: #eef1fb;
  --phrv-orange: #d9700b;
  --phrv-orange-text: #dc7410;
  --phrv-ink: #1d2233;
  --phrv-muted: #5a6074;
  --phrv-line: #dde2ee;
  --phrv-soft: #f3f5fa;
  --phrv-card: #fff;
  --phrv-r-lg: 18px;
  --phrv-r: 12px;
  --phrv-r-sm: 8px;
  --phrv-shadow: 0 10px 30px -12px rgba(32, 0, 67, .18), 0 2px 6px rgba(32, 0, 67, .05);
  --phrv-head: var(--themeht-typography-secondary-font-family, inherit);
  --phrv-gap: clamp(16px, 2.2vw, 28px);
  color: var(--phrv-ink);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 clamp(32px, 5vw, 64px);
}
.phrv *, .phrv *::before, .phrv *::after { box-sizing: border-box; }
.phrv [hidden] { display: none !important; }
.phrv img { max-width: 100%; }
.phrv button { font: inherit; color: inherit; cursor: pointer; }
.phrv button:disabled { cursor: not-allowed; opacity: .45; }
/* renvo base.css removes outlines with !important on a/button/input: restore a visible focus ring */
.phrv :focus-visible,
.phrv a:focus-visible, .phrv button:focus-visible, .phrv input:focus-visible, .phrv textarea:focus-visible, .phrv [tabindex]:focus-visible {
  outline: 3px solid var(--phrv-orange) !important;
  outline-offset: 2px;
}
.phrv-ico { flex: none; display: block; }

/* ---------------------------------------------------------------- hero */
.phrv-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
  background: linear-gradient(100deg, #f6f8fc 0%, #f6f8fc 50%, #eef2f9 100%);
  overflow: hidden;
  min-height: clamp(180px, 16vw, 250px);
}
.phrv-hero__text {
  padding: clamp(22px, 3vw, 40px) var(--phrv-gap) clamp(20px, 2.6vw, 34px) max(var(--phrv-gap), calc((100vw - 1440px) / 2 + 40px));
  align-self: center;
}
.phrv-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--phrv-muted); margin-bottom: 10px; flex-wrap: wrap; }
.phrv-crumbs a { color: var(--phrv-muted); text-decoration: underline; text-underline-offset: 3px; }
.phrv-crumbs a:hover { color: var(--phrv-blue); }
.phrv .phrv-hero__title {
  font-family: var(--phrv-head);
  font-size: clamp(30px, 3.5vw, 56px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--phrv-navy);
  margin: 0 0 8px;
}
.phrv-hero__title em { font-style: normal; color: var(--phrv-orange-text); margin-left: .26em; } /* markup whitespace is minified away */
.phrv-hero__sub { font-family: var(--phrv-head); font-size: clamp(18px, 1.9vw, 28px); font-weight: 700; color: var(--phrv-navy); margin: 0 0 6px; line-height: 1.25; }
.phrv-hero__intro { font-size: clamp(14px, 1.15vw, 17px); color: var(--phrv-muted); margin: 0; max-width: 46ch; }
.phrv-hero__media { position: relative; margin: 0; min-height: 100%; }
.phrv-hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
          mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.phrv-hero__tag {
  position: absolute; right: clamp(16px, 4vw, 64px); top: 50%; transform: translateY(-50%) rotate(-6deg);
  max-width: 13ch; color: #fff; font-family: var(--phrv-head); font-style: italic; font-weight: 300;
  font-size: clamp(20px, 2.4vw, 38px); line-height: 1.15; text-align: right;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .4);
}

.phrv-hero__note {
  position: absolute; right: 12px; bottom: 10px; font-size: 11.5px; color: #fff; background: rgba(29, 34, 51, .62);
  padding: 3px 8px; border-radius: 6px; letter-spacing: .01em;
}

/* ---------------------------------------------------------------- layout */
.phrv-main {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: var(--phrv-gap);
  max-width: 1440px;
  margin: var(--phrv-gap) auto 0;
  padding: 0 var(--phrv-gap);
  align-items: start;
}
.phrv-col { min-width: 0; }

/* ---------------------------------------------------------------- modes */
.phrv-modes { display: inline-flex; gap: 4px; padding: 4px; background: var(--phrv-soft); border-radius: 999px; margin-bottom: 12px; }
.phrv-mode { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--phrv-muted); min-height: 40px; }
.phrv-mode[aria-selected="true"] { background: #fff; color: var(--phrv-navy); box-shadow: 0 1px 4px rgba(32, 0, 67, .12); }

/* ---------------------------------------------------------------- stage */
.phrv-stage { position: relative; }
.phrv-stage__frame {
  position: relative; border-radius: var(--phrv-r-lg); overflow: hidden; background: #e9ecf3;
  aspect-ratio: 1264 / 848; box-shadow: var(--phrv-shadow); touch-action: pan-y; user-select: none; -webkit-user-select: none;
  margin-inline: auto; /* centred when narrowed for a portrait photo */
}
.phrv-stage__before, .phrv-stage__after, .phrv-stage__editor { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.phrv-stage__before { object-fit: fill; }
.phrv-stage__after { will-change: clip-path; }
.phrv-stage__editor { z-index: 3; touch-action: none; overflow: visible; }
.phrv-badge {
  position: absolute; top: 14px; z-index: 4; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  pointer-events: none; color: #fff;
}
.phrv-badge--before { left: 14px; background: rgba(29, 34, 51, .82); }
.phrv-badge--after { right: 14px; background: var(--phrv-orange); }
.phrv.is-upload .phrv-badge--before { opacity: 0; }
.phrv-compare { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; z-index: 5; outline: none; }
.phrv-compare__line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .35); pointer-events: none; }
.phrv-compare__knob {
  position: absolute; top: 50%; left: 0; width: 48px; height: 48px; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--phrv-navy);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25); cursor: ew-resize; touch-action: none;
}
.phrv-compare:focus-visible .phrv-compare__knob { outline: 3px solid var(--phrv-orange); outline-offset: 2px; }
.phrv-stage__status {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 6; max-width: calc(100% - 32px);
  background: rgba(29, 34, 51, .86); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 13.5px; text-align: center;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.phrv-stage__status.is-on { opacity: 1; }
.phrv-stage__status.is-error { background: #9b1c1c; }
.phrv-stage__empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  aspect-ratio: 1264 / 848; border: 2px dashed #b8c1d8; border-radius: var(--phrv-r-lg); background: var(--phrv-soft); padding: 24px; color: var(--phrv-muted);
}
.phrv-stage__empty .phrv-ico { color: var(--phrv-blue); }
.phrv-stage__empty-title { font-weight: 700; color: var(--phrv-navy); font-size: 17px; margin: 0; }
.phrv-stage__empty p { margin: 0; }
.phrv-caption { font-size: 13px; color: var(--phrv-muted); margin: 8px 2px 0; min-height: 1.5em; }

/* editor overlay */
.phrv-ed-quad { fill: rgba(39, 55, 145, .08); stroke: #fff; stroke-dasharray: 8 6; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)); pointer-events: none; }
.phrv-ed-ex polygon { fill: rgba(220, 116, 16, .28); stroke: #fff; pointer-events: none; }
.phrv-ed-pend polyline { fill: none; stroke: #fff; stroke-dasharray: 5 4; pointer-events: none; }
.phrv-ed-pend circle { fill: #fff; stroke: var(--phrv-orange); stroke-width: 2px; pointer-events: none; }
.phrv-ed-pend circle.is-first { fill: var(--phrv-orange); }
.phrv-ed-h { cursor: grab; outline: none; }
.phrv-ed-h__hit { fill: transparent; }
.phrv-ed-h__dot { fill: #fff; stroke: var(--phrv-blue); stroke-width: 3px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.phrv-ed-h:focus-visible .phrv-ed-h__dot { stroke: var(--phrv-orange); stroke-width: 4px; }
.phrv-stage__editor[data-tool="exclude"] { cursor: crosshair; }

/* tools */
.phrv-tools { margin-top: 12px; padding: 14px; border: 1px solid var(--phrv-line); border-radius: var(--phrv-r); background: #fff; }
.phrv-tools__hint { margin: 0 0 10px; font-weight: 600; color: var(--phrv-navy); font-size: 14px; }
.phrv-tools__row { display: flex; flex-wrap: wrap; gap: 8px; }
.phrv-tools__auto { margin-top: 10px; align-items: center; gap: 16px; }
.phrv-range { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--phrv-muted); }

/* rooms carousel */
.phrv-rooms { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 8px; margin-top: 14px; }
.phrv-rooms__nav {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--phrv-line); background: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(32, 0, 67, .08);
}
.phrv-rooms__list {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 12px) / 5); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 6px;
}
.phrv-rooms__list::-webkit-scrollbar { display: none; }
.phrv-room { border: 0; background: none; padding: 0; text-align: center; scroll-snap-align: start; min-width: 0; }
.phrv-room__img { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 2px solid transparent; aspect-ratio: 360 / 242; background: var(--phrv-soft); }
.phrv-room__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.phrv-room:hover .phrv-room__img img { transform: scale(1.04); }
.phrv-room.is-on .phrv-room__img { border-color: var(--phrv-blue); box-shadow: 0 0 0 2px rgba(39, 55, 145, .18); }
.phrv-room__tick { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--phrv-blue); display: none; }
.phrv-room__tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.phrv-room.is-on .phrv-room__tick { display: block; }
.phrv-room__label { display: block; font-size: 13px; margin-top: 6px; line-height: 1.3; color: var(--phrv-muted); }
.phrv-room.is-on .phrv-room__label { color: var(--phrv-navy); font-weight: 700; }
.phrv-zones { margin: 12px 0 0; padding: 10px 14px; border: 1px solid var(--phrv-line); border-radius: var(--phrv-r); display: block; }
.phrv-zones legend { font-weight: 700; font-size: 13.5px; color: var(--phrv-navy); padding: 0 6px; width: auto; margin: 0; float: none; }
.phrv-zones > div { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------------------------------------------------------------- panel */
.phrv-panel { background: var(--phrv-card); border-radius: var(--phrv-r-lg); box-shadow: var(--phrv-shadow); padding: clamp(16px, 1.8vw, 26px); border: 1px solid #eef0f6; }
.phrv-step { margin-bottom: 18px; min-width: 0; }
.phrv-step__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.phrv .phrv-step__title {
  display: flex; align-items: center; gap: 10px; font-family: var(--phrv-head); font-size: 16px; line-height: 1.3; font-weight: 700;
  color: var(--phrv-navy); margin: 0 0 10px;
}
.phrv-step__num { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--phrv-navy); color: #fff; font-size: 13px; display: grid; place-items: center; }
.phrv-link { background: none; border: 0; padding: 4px 0; min-height: 40px; /* touch target */ color: var(--phrv-blue); font-weight: 600; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.phrv-link:hover { color: var(--phrv-navy); }
.phrv-link--danger { color: #9b1c1c; }

.phrv-series { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.phrv-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 6px 8px; border: 1.5px solid var(--phrv-line);
  border-radius: var(--phrv-r); background: #fff; text-align: center; min-width: 0; transition: border-color .15s, box-shadow .15s;
}
.phrv-card:hover { border-color: #aab4d4; }
.phrv-card.is-on { border-color: var(--phrv-blue); box-shadow: 0 0 0 2px rgba(39, 55, 145, .15); background: var(--phrv-blue-50); }
.phrv-card__img { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--phrv-soft); overflow: hidden; }
.phrv-card__img img { width: 100%; height: 100%; object-fit: cover; }
.phrv-card__img--product { background: #fff; }
.phrv-card__img--product img { object-fit: contain; padding: 2px; } /* real product cross-section: show it whole */
.phrv-card__label { font-weight: 700; font-size: 14px; color: var(--phrv-navy); line-height: 1.25; margin-top: 4px; }
.phrv-card.is-on .phrv-card__label { color: var(--phrv-blue); }
.phrv-card__meta { font-size: 11.5px; color: var(--phrv-muted); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phrv-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.phrv-pill, .phrv-chip {
  border: 1.5px solid var(--phrv-line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600;
  color: var(--phrv-ink); min-height: 36px; display: inline-flex; align-items: center; gap: 6px; line-height: 1.2; text-align: left;
}
.phrv-pill.is-on, .phrv-chip[aria-pressed="true"] { border-color: var(--phrv-blue); background: var(--phrv-blue-50); color: var(--phrv-blue); }
.phrv-chip__n { font-size: 11px; font-weight: 700; background: var(--phrv-soft); border-radius: 999px; padding: 1px 7px; color: var(--phrv-muted); }
.phrv-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.phrv-swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.phrv-swatches.is-expanded { max-height: 340px; overflow-y: auto; padding: 2px 4px 2px 2px; overscroll-behavior: contain; }
.phrv-swatch { position: relative; border: 0; background: none; padding: 0; min-width: 0; text-align: center; }
.phrv-swatch__img { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 2px solid var(--phrv-line); }
.phrv-swatch__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phrv-swatch.is-on .phrv-swatch__img { border-color: var(--phrv-blue); box-shadow: 0 0 0 2px rgba(39, 55, 145, .2); }
.phrv-swatch__code { display: block; font-size: 12px; margin-top: 4px; color: var(--phrv-ink); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.phrv-swatch.is-muted .phrv-swatch__img { filter: grayscale(.7) opacity(.6); }
.phrv-swatch__badge { position: absolute; top: 4px; left: 4px; background: rgba(29, 34, 51, .85); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }

.phrv-step-pair { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 16px; }
.phrv-step-pair--io { margin-top: 2px; align-items: stretch; }
.phrv-dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phrv-opt {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 1.5px solid var(--phrv-line); border-radius: var(--phrv-r);
  background: #fff; font-weight: 600; font-size: 14px; padding: 6px 8px;
}
.phrv-opt.is-on { border-color: var(--phrv-blue); color: var(--phrv-blue); background: var(--phrv-blue-50); }
.phrv-spaces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.phrv-space {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border: 1.5px solid var(--phrv-line); border-radius: var(--phrv-r);
  background: #fff; font-size: 11px; line-height: 1.2; min-height: 64px; color: var(--phrv-muted); text-align: center;
}
.phrv-space .phrv-ico { color: var(--phrv-navy); }
.phrv-space.is-on { border-color: var(--phrv-blue); color: var(--phrv-blue); background: var(--phrv-blue-50); font-weight: 700; }
.phrv-space.is-on .phrv-ico { color: var(--phrv-blue); }

.phrv-upload { min-width: 0; }
.phrv-upload__btn {
  width: 100%; height: 100%; min-height: 96px; display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left;
  border: 1.5px dashed #9fb0d9; border-radius: var(--phrv-r); background: #f6f8fe;
}
.phrv-upload__btn:hover { border-color: var(--phrv-blue); background: var(--phrv-blue-50); }
.phrv-upload__btn strong { display: block; color: var(--phrv-navy); font-size: 14px; line-height: 1.3; }
.phrv-upload__btn small { display: block; color: var(--phrv-muted); font-size: 12px; margin-top: 2px; }
.phrv-upload__ico { position: relative; color: var(--phrv-navy); flex: none; }
.phrv-upload__plus { position: absolute; right: -6px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--phrv-orange); color: #fff; font-weight: 700; font-size: 14px; line-height: 18px; text-align: center; }

.phrv-dims { margin: 0; padding: 0; border: 0; min-width: 0; }
.phrv-dims legend { font-size: 13px; font-weight: 600; color: var(--phrv-ink); margin-bottom: 6px; padding: 0; float: none; width: auto; }
.phrv-dims__grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 8px; }
.phrv-field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--phrv-muted); margin: 0; min-width: 0; }
.phrv-field input, .phrv-field textarea, .phrv-copy input {
  width: 100%; min-height: 40px; border: 1.5px solid var(--phrv-line); border-radius: var(--phrv-r-sm); padding: 7px 10px; font-size: 15px;
  color: var(--phrv-ink); background: #fff; font-family: inherit; margin: 0;
}
.phrv-field input:focus, .phrv-field textarea:focus { border-color: var(--phrv-blue); }
.phrv-field input[aria-invalid="true"] { border-color: #b42318; }
.phrv-field__err { font-style: normal; color: #b42318; font-size: 12px; min-height: 0; }
.phrv-area { display: flex; flex-direction: column; justify-content: center; background: var(--phrv-soft); border-radius: var(--phrv-r-sm); padding: 6px 10px; font-size: 12px; color: var(--phrv-muted); }
.phrv-area strong { font-size: 18px; color: var(--phrv-navy); font-weight: 800; white-space: nowrap; }
.phrv-openings { margin-top: 8px; font-size: 13px; }
.phrv-openings summary { cursor: pointer; color: var(--phrv-blue); font-weight: 600; }
.phrv-opening { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; align-items: end; margin: 8px 0; }
.phrv-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--phrv-line); background: #fff; display: grid; place-items: center; font-size: 20px; line-height: 1; padding: 0; }
.phrv-panels { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--phrv-blue); background: var(--phrv-blue-50); border-radius: 0 var(--phrv-r-sm) var(--phrv-r-sm) 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.phrv-panels strong { color: var(--phrv-navy); }
.phrv-panels__n { font-size: 16px; font-weight: 800; color: var(--phrv-navy); }
.phrv-panels small { color: var(--phrv-muted); font-size: 11.5px; line-height: 1.4; margin-top: 4px; }
.phrv-panels .is-warn { color: #8a4b00; font-weight: 600; }

.phrv-ctas { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 10px; margin-top: 18px; }
.phrv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 16px; border-radius: var(--phrv-r);
  font-weight: 700; font-size: 15px; border: 1.5px solid transparent; text-decoration: none; line-height: 1.2; text-align: center;
}
.phrv-btn--primary { background: var(--phrv-orange); color: #fff; box-shadow: 0 8px 18px -8px rgba(217, 112, 11, .7); }
.phrv-btn--primary:hover { background: #c3640a; }
.phrv-btn--lg { font-size: 18px; }
.phrv-btn--outline { background: #fff; border-color: var(--phrv-navy); color: var(--phrv-navy); }
.phrv-btn--outline:hover { background: var(--phrv-navy); color: #fff; }
.phrv-btn--soft { background: var(--phrv-soft); color: var(--phrv-navy); border-color: var(--phrv-line); }
.phrv-btn--soft:hover { border-color: var(--phrv-navy); }
.phrv-subactions { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; }
.phrv-note { font-size: 12.5px; color: var(--phrv-muted); margin: 8px 0 0; line-height: 1.45; }
.phrv-error { color: #b42318; font-size: 13px; margin: 8px 0 0; }
.phrv-flash { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--phrv-r-sm); background: var(--phrv-blue-50); color: var(--phrv-navy); font-size: 13.5px; }
.phrv-flash.is-error { background: #fdecec; color: #8f1d1d; }
.phrv-check { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 13.5px; cursor: pointer; line-height: 1.4; }
.phrv-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--phrv-blue); }

/* mobile: jump back to the preview after a change (sticky cannot work: body has overflow-x:hidden) */
.phrv-jump {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 98;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px;
  background: var(--themeht-text-color, #200043); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 10px 24px -8px rgba(32, 0, 67, .55);
  cursor: pointer; /* lives under <body>, outside .phrv: no component tokens here */
}
.phrv-jump[hidden] { display: none; }
.phrv-jump:focus-visible { outline: 3px solid #d9700b !important; outline-offset: 2px; }
@media (min-width: 901px) { .phrv-jump { display: none !important; } }

/* ---------------------------------------------------------------- features */
.phrv-features {
  list-style: none; margin: clamp(24px, 3vw, 40px) 0 0; padding: clamp(18px, 2vw, 26px) max(var(--phrv-gap), calc((100vw - 1440px) / 2 + 40px));
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; background: #eef2fa;
}
.phrv-features li { display: flex; align-items: center; gap: 14px; padding: 4px 12px; border-right: 1px solid #cdd5e6; margin: 0; min-width: 0; }
.phrv-features li:last-child { border-right: 0; }
.phrv-features .phrv-ico { color: var(--phrv-navy); }
.phrv-features strong { display: block; font-family: var(--phrv-head); color: var(--phrv-navy); font-size: 15.5px; line-height: 1.3; }
.phrv-features span { display: block; font-size: 13px; color: var(--phrv-muted); line-height: 1.35; }
.phrv-disclaimer { max-width: 1440px; margin: 14px auto 0; padding: 0 var(--phrv-gap); font-size: 12.5px; color: var(--phrv-muted); font-style: italic; }

/* ---------------------------------------------------------------- dialogs */
.phrv-dialog {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; border: 0; border-radius: var(--phrv-r-lg);
  padding: clamp(18px, 3vw, 28px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); color: var(--phrv-ink); background: #fff;
  overscroll-behavior: contain;
}
.phrv-dialog::backdrop { background: rgba(20, 16, 40, .55); }
.phrv-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.phrv .phrv-dialog h2 { font-family: var(--phrv-head); font-size: 20px; margin: 0; color: var(--phrv-navy); line-height: 1.3; }
.phrv-form { display: flex; flex-direction: column; gap: 10px; }
.phrv-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phrv-summary { margin: 0; padding: 10px 12px 10px 28px; background: var(--phrv-soft); border-radius: var(--phrv-r-sm); font-size: 13px; color: var(--phrv-ink); }
.phrv-summary li { margin: 2px 0; }
.phrv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.phrv-dialog__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.phrv-dialog__foot .phrv-note { margin: 0; flex: 1 1 200px; }
.phrv-done { padding: 12px 0 0; }
.phrv-done p { font-size: 16px; color: var(--phrv-navy); font-weight: 600; }
.phrv-copy { display: flex; gap: 8px; margin: 8px 0; }
.phrv-copy input { flex: 1; font-size: 13px; }
.phrv-copy .phrv-btn { min-height: 40px; }
.phrv-code { font-size: 14px; }
.phrv-code span { color: var(--phrv-muted); }
.phrv-share { margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--phrv-line); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  .phrv-series { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phrv-card { flex-direction: row; align-items: center; text-align: left; gap: 10px; padding: 6px; }
  .phrv-card__img { width: 64px; flex: none; aspect-ratio: 4 / 3; }
  .phrv-card__label { margin-top: 0; }
  .phrv-card > .phrv-card__label, .phrv-card > .phrv-card__meta { display: block; }
  .phrv-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; }
  .phrv-card__img { grid-row: 1 / 3; }
  .phrv-swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .phrv-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phrv-features li:nth-child(3) { border-right: 0; }
}
@media (max-width: 1100px) {
  .phrv-step-pair { grid-template-columns: 1fr; }
  .phrv-ctas { grid-template-columns: 1fr 1fr; }
  .phrv-ctas .phrv-btn--primary { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .phrv-hero { grid-template-columns: 1fr; }
  .phrv-hero__media { min-height: 0; height: 150px; }
  .phrv-hero__media img { -webkit-mask-image: none; mask-image: none; }
  .phrv-hero__text { padding-left: var(--phrv-gap); }
  .phrv-main { grid-template-columns: 1fr; }
  .phrv-step-pair { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .phrv-series { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .phrv-card { display: flex; flex-direction: column; text-align: center; }
  .phrv-card__img { width: auto; aspect-ratio: 16 / 9; }
  .phrv-rooms__list { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
  .phrv-swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .phrv { font-size: 14.5px; }
  .phrv-hero__text { padding-top: 18px; padding-bottom: 14px; }
  .phrv-hero__media { height: 120px; }
  .phrv-hero__tag { font-size: 20px; }
  .phrv-step-pair { grid-template-columns: 1fr; }
  .phrv-series { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phrv-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); text-align: left; }
  .phrv-card__img { width: 52px; aspect-ratio: 4 / 3; grid-row: 1 / 3; }
  .phrv-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .phrv-rooms { grid-template-columns: minmax(0, 1fr); }
  .phrv-rooms__nav { display: none; }
  .phrv-rooms__list { grid-auto-columns: 38%; }
  .phrv-badge { top: 10px; padding: 4px 12px; font-size: 13px; }
  .phrv-badge--before { left: 10px; }
  .phrv-badge--after { right: 10px; }
  .phrv-compare__knob { width: 44px; height: 44px; }
  .phrv-ctas { grid-template-columns: 1fr 1fr; }
  .phrv-dims__grid { grid-template-columns: 1fr 1fr; }
  .phrv-area { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .phrv-features { grid-template-columns: 1fr 1fr; }
  .phrv-features li { border-right: 0; padding: 4px 0; }
  .phrv-features li:last-child { grid-column: 1 / -1; }
  .phrv-form__row { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .phrv-spaces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phrv-ctas { grid-template-columns: 1fr; }
  .phrv-features { grid-template-columns: 1fr; }
  .phrv-btn--lg { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .phrv *, .phrv *::before, .phrv *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
