/*!
 * Mi Linea Pura — "Sketch your space" planner, v3
 * Loads after /assets/style.css. Everything here is scoped to .inquiry-page
 * and to ip-* classes, so the rest of the site is not affected.
 */

.inquiry-page {
  --ip-ink: var(--graphite, #232729);
  --ip-ink-soft: #3A4043;
  --ip-muted: #5F6566;
  --ip-faint: #8C9192;
  --ip-line: #CDD0CC;
  --ip-line-strong: #A9AEAB;
  --ip-paper: #FCFCFA;
  --ip-plaster: var(--plaster, #F7F7F5);
  --ip-stone: #E6E7E3;
  --ip-desk: #ECEDE9;
  --ip-timber: var(--timber, #C29B6A);
  --ip-timber-deep: #8A6A42;
  --ip-danger: #9E3B2F;
  --ip-serif: var(--serif, 'Italiana', 'Didot', 'Bodoni 72', Georgia, serif);
  --ip-sans: var(--sans, 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif);
  --ip-radius: 2px;
  --ip-focus: 0 0 0 2px var(--ip-paper), 0 0 0 4px var(--ip-timber-deep);
  background: var(--ip-plaster);
}

.inquiry-header { position: relative; background: var(--ip-ink); }

/* Neutralise site-wide label styling on the planner's own elements. */
.ip-main :is(h1, h2, p, label, legend, button, dt, dd, span, small, strong, output, select, input, textarea, a) {
  text-transform: none;
  letter-spacing: normal;
}

.ip-main [hidden] { display: none !important; }

.ip-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ intro */

.ip-intro {
  padding: clamp(36px, 5.2vw, 80px) 0 clamp(28px, 3.4vw, 48px);
  background: var(--ip-plaster);
  color: var(--ip-ink);
}
.ip-intro-grid { display: grid; gap: 20px 56px; }
.ip-title {
  margin: 0;
  font-family: var(--ip-serif);
  font-weight: 400;
  font-size: clamp(50px, 6.6vw, 100px);
  line-height: .9;
  letter-spacing: -.02em !important;
}
.ip-intro-copy { max-width: 36rem; }
.ip-lede {
  margin: 0 0 12px;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.5;
  color: var(--ip-ink);
}
.ip-intro-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ip-muted); }

@media (min-width: 900px) {
  .ip-intro-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; }
  .ip-intro-copy { padding-bottom: 10px; }
}

/* ---------------------------------------------------------------- planner */

.ip-planner {
  padding: 12px 0 clamp(56px, 8vw, 104px);
  background: var(--ip-desk);
  border-top: 1px solid var(--ip-line);
  color: var(--ip-ink);
  font-family: var(--ip-sans);
}
.ip-planner:focus { outline: none; }

.ip-noscript {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--ip-paper);
  border-left: 3px solid var(--ip-timber);
  font-size: 15px;
}

/* Steps */
.ip-steps-nav { margin-bottom: 16px; }
.ip-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--ip-line-strong);
}
.ip-steps li { margin: 0; }
.ip-step-btn {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 10px 4px 12px 0;
  border: 0; border-radius: 0;
  background: none;
  color: var(--ip-muted);
  font: 500 15px/1.2 var(--ip-sans);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ip-step-num {
  display: inline-grid; place-items: center;
  flex: none;
  width: 26px; height: 26px;
  border: 1px solid var(--ip-line-strong);
  border-radius: 50%;
  font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color .2s, border-color .2s, color .2s;
}
.ip-step-btn::after {
  content: "";
  position: absolute; left: 0; right: 12px; bottom: -1px;
  height: 2px;
  background: transparent;
  transition: background-color .2s;
}
.ip-step-btn:hover:not(:disabled) { color: var(--ip-ink); }
.ip-step-btn[aria-current="step"] { color: var(--ip-ink); font-weight: 600; }
.ip-step-btn[aria-current="step"] .ip-step-num { background: var(--ip-ink); border-color: var(--ip-ink); color: #fff; }
.ip-step-btn[aria-current="step"]::after { background: var(--ip-timber-deep); }
.ip-step-btn.is-done .ip-step-num { background: var(--ip-timber); border-color: var(--ip-timber); color: var(--ip-ink); }
.ip-step-btn:disabled { color: var(--ip-faint); cursor: default; }
.ip-step-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ip-timber-deep); }

@media (max-width: 599px) {
  .ip-step-btn { flex-direction: column; justify-content: center; gap: 6px; padding: 8px 2px 10px; text-align: center; font-size: 13px; }
  .ip-step-btn::after { right: 8px; left: 8px; }
}

/* Workspace */
.ip-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "sheet" "insp" "nav";
  gap: 20px;
  align-items: start;
}
.ip-sheet { grid-area: sheet; }
.ip-inspector { grid-area: insp; min-width: 0; }
.ip-nav { grid-area: nav; }

@media (min-width: 960px) {
  .ip-workspace {
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-rows: auto 1fr;
    grid-template-areas: "sheet insp" "sheet nav";
    gap: 0 32px;
  }
  .ip-sheet { position: sticky; top: 20px; }
  .ip-nav { align-self: start; }
}
@media (min-width: 1240px) {
  .ip-workspace { grid-template-columns: minmax(0, 1fr) 392px; gap: 0 44px; }
}

/* ------------------------------------------------------------------ sheet */

/* The sheet sizes its views and title block from its own width (container
   queries), so it reads well wherever the workspace places it. */
.ip-sheet {
  container: ip-sheet / inline-size;
  margin: 0;
  padding: 6px;
  background: var(--ip-paper);
  border: 1px solid var(--ip-line-strong);
  box-shadow: 0 1px 0 rgba(35, 39, 41, .04), 0 28px 60px -36px rgba(35, 39, 41, .42);
}
@media (min-width: 600px) {
  .ip-sheet { padding: 10px; }
}

.ip-views {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0; min-height: 0;
  border: 1px solid var(--ip-ink);
  background: var(--ip-paper);
}
.ip-view { position: relative; min-width: 0; min-height: 0; aspect-ratio: 6 / 5; }
.ip-views[data-layout="plan"] .ip-view-axo,
.ip-views[data-layout="axo"] .ip-view-plan { display: none; }
.ip-views[data-layout="both"] .ip-view-axo { order: -1; }
.ip-views[data-layout="both"] .ip-view-plan { border-top: 1px solid var(--ip-line); }

@container ip-sheet (min-width: 520px) {
  .ip-view { aspect-ratio: 5 / 4; }
  .ip-views[data-layout="both"] .ip-view { aspect-ratio: 2 / 1; }
}
@container ip-sheet (min-width: 680px) {
  .ip-views[data-layout="both"] { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); aspect-ratio: 16 / 10; max-height: min(74vh, 780px); }
  .ip-views[data-layout="both"] .ip-view { aspect-ratio: auto; }
  .ip-views[data-layout="both"] .ip-view-plan { border-top: 0; border-left: 1px solid var(--ip-line); }
}
/* Beside the inspector, a single view takes a landscape sheet that never
   grows taller than the window. */
@media (min-width: 960px) {
  .ip-views:not([data-layout="both"]) .ip-view { aspect-ratio: 4 / 3; max-height: min(74vh, 780px); }
}

.ip-board, .ip-axo {
  position: absolute; inset: 0;
  display: block;
  width: 100%; height: 100%;
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.ip-board.is-interactive { touch-action: none; cursor: crosshair; }
.ip-board.is-dragging { cursor: grabbing; }
.ip-board:focus { outline: none; }
.ip-board:focus-visible { outline: 2px solid var(--ip-timber-deep); outline-offset: -3px; }
.ip-board.is-pointer:focus-visible { outline: none; }

.ip-caption {
  position: absolute; right: 12px; bottom: 9px;
  margin: 0;
  font-size: 12px; font-weight: 600;
  color: var(--ip-muted);
  pointer-events: none;
}

.ip-view-btn {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--ip-line-strong);
  border-radius: var(--ip-radius);
  background: rgba(252, 252, 250, .92);
  color: var(--ip-ink);
  font: 500 13px/1 var(--ip-sans);
  cursor: pointer;
}
.ip-view-btn:hover { border-color: var(--ip-ink); }
.ip-view-btn:focus-visible { outline: none; box-shadow: var(--ip-focus); }

/* Title block. Hairlines between cells come from the 1px grid gap. */
.ip-titleblock {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--ip-ink);
  border-top: 0;
}
.ip-tb-brand {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ip-ink);
}
.ip-tb-mark { font-family: var(--ip-serif); font-size: 22px; line-height: 1; color: var(--ip-ink); white-space: nowrap; }
.ip-tb-sub { font-size: 12px; color: var(--ip-muted); }
.ip-tb-cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--ip-line);
}
.ip-tb-cell { min-width: 0; padding: 8px 12px 9px; background: var(--ip-paper); }
.ip-tb-cell:last-child { display: none; }
.ip-tb-cell dt { margin: 0 0 2px; font-size: 11px; font-weight: 500; color: var(--ip-muted); white-space: nowrap; }
.ip-tb-cell dd {
  margin: 0;
  font-size: 14px; font-weight: 600; color: var(--ip-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ip-tb-cell dd.is-empty { color: var(--ip-faint); font-weight: 500; }

@container ip-sheet (min-width: 520px) {
  .ip-titleblock { grid-template-columns: auto minmax(0, 1fr); }
  .ip-tb-brand { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 16px; border-bottom: 0; border-right: 1px solid var(--ip-ink); }
  .ip-tb-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ip-tb-cell:first-child { grid-column: span 2; }
  .ip-tb-cell:last-child { display: block; }
}
@container ip-sheet (min-width: 820px) {
  .ip-tb-cells { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, .9fr) auto; }
  .ip-tb-cell:first-child { grid-column: auto; }
}

/* -------------------------------------------------------------- inspector */

.ip-panel { padding-top: 2px; }
.ip-panel-title {
  margin: 0 0 10px;
  font-family: var(--ip-serif);
  font-weight: 400;
  font-size: clamp(32px, 3.2vw, 42px);
  line-height: 1.02;
  color: var(--ip-ink);
}
.ip-panel-title:focus { outline: none; }
.ip-help { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--ip-muted); max-width: 38rem; }
.ip-help strong { color: var(--ip-ink); font-weight: 600; word-break: break-all; }

.ip-field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.ip-label {
  display: block;
  margin: 0 0 7px; padding: 0;
  font-size: 14px; font-weight: 600;
  color: var(--ip-ink);
}
.ip-optional { font-weight: 400; color: var(--ip-faint); margin-left: 4px; }
.ip-hint { margin: 7px 0 0; font-size: 13px; line-height: 1.5; color: var(--ip-muted); }
.ip-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ip-label-row .ip-label { margin-bottom: 0; }

/* Text inputs */
.ip-input,
.ip-unit input,
.ip-select select {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--ip-line-strong);
  border-radius: var(--ip-radius);
  background: #fff;
  color: var(--ip-ink);
  font: 400 16px/1.3 var(--ip-sans);
  box-shadow: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s;
}
.ip-textarea { min-height: 112px; padding: 11px 12px; line-height: 1.5; resize: vertical; }
.ip-input::placeholder, .ip-unit input::placeholder { color: var(--ip-faint); opacity: 1; }
.ip-input:hover, .ip-unit input:hover, .ip-select select:hover { border-color: var(--ip-muted); }
.ip-input:focus, .ip-unit input:focus, .ip-select select:focus { outline: none; border-color: var(--ip-ink); box-shadow: var(--ip-focus); }
.ip-input[aria-invalid="true"] { border-color: var(--ip-danger); }

.ip-unit { position: relative; }
.ip-unit input { padding-right: 34px; font-variant-numeric: tabular-nums; }
.ip-unit span {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px; color: var(--ip-muted);
  pointer-events: none;
}

.ip-select { position: relative; }
.ip-select select { padding-right: 40px; cursor: pointer; }
.ip-select::after {
  content: "";
  position: absolute; right: 16px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--ip-ink);
  border-bottom: 1.5px solid var(--ip-ink);
  transform: rotate(45deg);
  pointer-events: none;
}

.ip-dims {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 0 10px;
  margin-bottom: 20px;
}
.ip-dims .ip-field { margin: 0; }
.ip-times { padding-bottom: 12px; font-size: 16px; color: var(--ip-muted); }

.ip-error { margin: 7px 0 0; font-size: 13px; font-weight: 600; color: var(--ip-danger); }

/* Metrics */
.ip-metrics { margin: 0 0 20px; border-top: 1px solid var(--ip-line-strong); }
.ip-metrics > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 0 9px;
  border-bottom: 1px solid var(--ip-line);
}
.ip-metrics dt { margin: 0; font-size: 14px; color: var(--ip-muted); }
.ip-metrics dd {
  margin: 0;
  font-family: var(--ip-serif);
  font-size: 28px; line-height: 1;
  color: var(--ip-ink);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.ip-metrics dd small { margin-left: 4px; font-family: var(--ip-sans); font-size: 13px; color: var(--ip-muted); }

.ip-metrics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ip-metrics-grid > div { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 12px 12px 12px 0; }
.ip-metrics-grid > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--ip-line); }

/* Notes */
.ip-note {
  margin: 0 0 20px;
  padding: 11px 14px;
  border-left: 2px solid var(--ip-timber);
  background: rgba(252, 252, 250, .75);
  font-size: 14px; line-height: 1.5;
  color: var(--ip-ink);
}
.ip-note:empty { margin: 0; padding: 0; border: 0; }
.ip-note.is-warn { border-left-color: var(--ip-danger); }

.ip-link {
  display: inline;
  margin: 0; padding: 0;
  border: 0; background: none;
  color: var(--ip-ink);
  font: inherit; font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ip-timber-deep);
  text-underline-offset: 3px;
  cursor: pointer;
}
.ip-link:hover { text-decoration-thickness: 2px; }
.ip-link:focus-visible { outline: 2px solid var(--ip-timber-deep); outline-offset: 2px; }

/* Buttons */
.ip-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--ip-radius);
  font: 600 15px/1.1 var(--ip-sans);
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.ip-btn:focus-visible { outline: none; box-shadow: var(--ip-focus); }
.ip-btn:disabled { cursor: not-allowed; opacity: .55; }
.ip-btn-primary { background: var(--ip-ink); border-color: var(--ip-ink); color: #fff; }
.ip-btn-primary:hover:not(:disabled) { background: var(--ip-ink-soft); border-color: var(--ip-ink-soft); }
.ip-btn-ghost { background: transparent; border-color: var(--ip-line-strong); color: var(--ip-ink); }
.ip-btn-ghost:hover:not(:disabled) { border-color: var(--ip-ink); }
.ip-btn-quiet {
  min-height: 42px;
  padding: 0 14px;
  background: transparent;
  border-color: var(--ip-line-strong);
  color: var(--ip-ink);
  font-weight: 500; font-size: 14px;
}
.ip-btn-quiet:hover:not(:disabled) { border-color: var(--ip-ink); background: rgba(255, 255, 255, .5); }

.ip-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.ip-tools-stack { flex-direction: column; align-items: stretch; margin-top: 8px; }

/* Stepper */
.ip-stepper {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  border: 1px solid var(--ip-line-strong);
  border-radius: var(--ip-radius);
  background: #fff;
}
.ip-stepper-btn {
  display: grid; place-items: center;
  width: 48px; height: 56px;
  margin: 0; padding: 0;
  border: 0; background: none;
  color: var(--ip-ink);
  cursor: pointer;
}
.ip-stepper-btn:first-child { border-right: 1px solid var(--ip-line); }
.ip-stepper-btn:last-child { border-left: 1px solid var(--ip-line); }
.ip-stepper-btn:hover:not(:disabled) { background: var(--ip-plaster); }
.ip-stepper-btn:disabled { color: var(--ip-line-strong); cursor: not-allowed; }
.ip-stepper-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ip-timber-deep); }
.ip-stepper-value { margin: 0; text-align: center; font-size: 14px; color: var(--ip-muted); }
.ip-stepper-value output { font-family: var(--ip-serif); font-size: 34px; line-height: 1; color: var(--ip-ink); font-variant-numeric: lining-nums; vertical-align: -3px; margin-right: 2px; }

/* Range */
.ip-range-out { font-family: var(--ip-serif); font-size: 26px; line-height: 1; color: var(--ip-ink); }
.ip-range {
  --fill: 28.6%;
  display: block;
  width: 100%;
  height: 32px;
  margin: 6px 0 2px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.ip-range:focus { outline: none; }
.ip-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--ip-ink) var(--fill), var(--ip-line) var(--fill));
}
.ip-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px;
  margin-top: -10px;
  border: 2px solid var(--ip-ink);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(35, 39, 41, .25);
}
.ip-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--ip-line); }
.ip-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ip-ink); }
.ip-range::-moz-range-thumb {
  width: 20px; height: 20px;
  border: 2px solid var(--ip-ink);
  border-radius: 50%;
  background: #fff;
}
.ip-range:focus-visible::-webkit-slider-thumb { box-shadow: var(--ip-focus); }
.ip-range:focus-visible::-moz-range-thumb { box-shadow: var(--ip-focus); }
.ip-range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ip-muted); }

/* Segmented control and chips share the hidden-radio pattern. */
.ip-seg-opt, .ip-chip { position: relative; display: block; margin: 0; cursor: pointer; }
.ip-seg-opt input, .ip-chip input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.ip-seg-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--ip-line-strong);
  border-radius: var(--ip-radius);
  background: #fff;
}
.ip-seg-opt span {
  display: flex; align-items: center; justify-content: center;
  min-height: 42px;
  border-radius: 1px;
  font-size: 15px; font-weight: 500;
  color: var(--ip-muted);
  transition: background-color .15s, color .15s;
}
.ip-seg-opt:hover span { color: var(--ip-ink); }
.ip-seg-opt.is-checked span,
.ip-seg-opt input:checked + span { background: var(--ip-ink); color: #fff; font-weight: 600; }
.ip-seg-opt input:focus-visible + span { box-shadow: var(--ip-focus); }

.ip-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ip-chip span {
  display: inline-flex; align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ip-line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 14px; font-weight: 500;
  color: var(--ip-ink);
  transition: background-color .15s, border-color .15s, color .15s;
}
.ip-chip:hover span { border-color: var(--ip-ink); }
.ip-chip input:checked + span { background: var(--ip-ink); border-color: var(--ip-ink); color: #fff; }
.ip-chip input:focus-visible + span { box-shadow: var(--ip-focus); }

/* Form */
.ip-form { margin: 0 0 16px; }
.ip-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ip-status { margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
.ip-status:empty { margin: 0; }
.ip-status.is-error { padding: 11px 14px; border-left: 3px solid var(--ip-danger); background: #F6ECEA; color: var(--ip-danger); font-weight: 600; }
.ip-fine { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ip-muted); }
.ip-fine a, .ip-intro a, .ip-noscript a { color: var(--ip-ink); text-decoration-color: var(--ip-timber-deep); text-underline-offset: 3px; }

.ip-sent .ip-panel-title { font-size: clamp(40px, 4vw, 56px); }

/* Live model preview (steps 1 and 2, large screens) */
.ip-preview {
  display: none;
  margin-top: 28px;
  border: 1px solid var(--ip-line-strong);
  background: var(--ip-paper);
}
.ip-preview-label { margin: 0; padding: 10px 12px 0; font-size: 12px; font-weight: 600; color: var(--ip-muted); }
.ip-preview-svg { display: block; width: 100%; aspect-ratio: 16 / 10; }
@media (min-width: 960px) {
  .ip-preview { display: block; }
}

/* Navigation */
.ip-nav { display: flex; gap: 10px; }
.ip-nav .ip-btn-primary { flex: 1 1 auto; }
.ip-nav .ip-btn-ghost { flex: 0 0 auto; }

@media (min-width: 960px) {
  .ip-nav { padding-top: 24px; border-top: 1px solid var(--ip-line-strong); margin-top: 4px; }
}
@media (max-width: 959px) {
  .ip-nav {
    position: sticky; bottom: 0; z-index: 5;
    margin-top: -4px;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(236, 237, 233, .94);
    border-top: 1px solid var(--ip-line-strong);
    box-shadow: 0 0 0 100vmax rgba(236, 237, 233, .94);
    clip-path: inset(0 -100vmax);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
}

/* ----------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  .ip-main *, .ip-main *::before, .ip-main *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .inquiry-header, .site-footer, .ip-intro, .ip-steps-nav, .ip-inspector, .ip-nav, .ip-view-btn { display: none !important; }
  .ip-planner { background: none; padding: 0; }
  .ip-workspace { display: block; }
  .ip-sheet { box-shadow: none; border: 0; }
}
