:root {
  --ink: #192932;
  --muted: #546570;
  --line: #d7e0e4;
  --paper: #fff;
  --wash: #f3f6f7;
  --blue: #1c5f8a;
  --blued: #154a6c;
  --bluewash: #eaf2f8;
  --amber: #885919;
  --amberwash: #fbf0de;
  --green: #2c6b52;
  --radius: 6px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Archivo, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--wash);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
button,
a {
  transition:
    background 0.18s,
    color 0.18s;
}
button {
  color: inherit;
}
a {
  color: var(--blue);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 22px;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--muted);
}
button svg,
a svg {
  width: 18px;
  height: 18px;
  flex: none;
}
button svg {
  pointer-events: none;
}
.num {
  font-variant-numeric: tabular-nums;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
.app-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.app-header {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 10px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.035em;
}
.brand img {
  width: 29px;
  height: 34px;
}
.project-title {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.project-title b {
  display: block;
  font-size: 14px;
}
.project-title small {
  font-size: 12px;
}
.header-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.sample-tag {
  font-size: 12px;
  color: var(--muted);
}
.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid #bfccd3;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  font-size: 13px;
}
.button:hover,
.icon-button:hover {
  background: var(--wash);
  color: var(--blued);
}
.button.primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.button.primary:hover {
  background: var(--blued);
}
.button.active {
  background: var(--bluewash);
  border-color: var(--blue);
  color: var(--blued);
}
.icon-button {
  width: 40px;
  padding: 8px;
}
.app-nav {
  display: flex;
  padding: 0 24px;
  gap: 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.app-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 52px;
  padding: 0 3px;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
.app-nav a[aria-current="page"] {
  border-color: var(--blue);
  color: var(--blue);
}
.app-nav a:hover {
  color: var(--blued);
  background: var(--wash);
}
.workspace {
  flex: 1;
  min-width: 0;
}
.screen-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
}
.screen-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.heading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  border-top: 1px solid var(--line);
  min-height: 590px;
}
.model-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.viewport {
  position: relative;
  min-height: 420px;
  flex: 1;
  background: #e8ece9;
  overflow: hidden;
}
.viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  touch-action: none;
}
.viewport-tools {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 32px);
}
.viewport-tools .button {
  box-shadow: 0 2px 8px #1929320c;
  background: #fff;
}
.viewport-tools .button.active {
  background: var(--blue);
  color: white;
}
.viewport-caption {
  position: absolute;
  bottom: 15px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.viewport-caption > span {
  padding: 7px 10px;
  background: #ffffffed;
  border-radius: 4px;
  font-size: 12px;
  max-width: 65%;
}
.viewport-caption .compass {
  font-family: var(--mono);
  font-size: 11px;
  background: #fffffff0;
}
.model-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #edf0ed;
  gap: 10px;
  padding: 24px;
  text-align: center;
  z-index: 5;
}
.model-loading p {
  max-width: 45ch;
  color: var(--muted);
}
.loading-line {
  height: 3px;
  width: 160px;
  background: var(--line);
  overflow: hidden;
}
.loading-line:after {
  content: "";
  display: block;
  background: var(--blue);
  height: 100%;
  width: 40%;
  animation: loading 1.2s ease-in-out infinite;
}
@keyframes loading {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(350%);
  }
}
.inspector {
  border-left: 1px solid var(--line);
  background: #fff;
  min-width: 0;
}
.inspector-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.inspector-section > p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 13px;
}
.stage-index {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 12px;
  margin-bottom: 10px;
}
.stage-index i {
  font-style: normal;
  background: var(--bluewash);
  padding: 5px 8px;
  border-radius: 4px;
  font-family: var(--mono);
}
.stage-cost {
  font-size: 30px;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 15px 0 0;
}
.fact-list {
  margin: 16px 0 0;
}
.fact-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.fact-list dt {
  color: var(--muted);
}
.fact-list dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.inspector-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.timeline {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 16px 24px 20px;
}
.timeline-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.timeline-top .play-progress {
  flex: 1;
  min-width: 60px;
  accent-color: var(--blue);
}
.timeline-top .note {
  margin-left: auto;
}
.stage-list {
  display: grid;
  grid-template-columns: repeat(11, minmax(108px, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding: 3px 3px 9px;
}
.stage-button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 11px 10px;
  text-align: left;
  min-height: 99px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stage-button:hover {
  background: var(--bluewash);
  border-color: var(--blue);
}
.stage-button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.stage-button span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.stage-button strong {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
}
.stage-button small {
  font-size: 11px;
  margin-top: auto;
}
.stage-button.active span,
.stage-button.active small {
  color: #e0edf6;
}
.under-model {
  background: #fff;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.revision-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.revision-label b {
  background: var(--ink);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--mono);
}
.revision-label.proposed b {
  background: var(--blue);
}
.comparison-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.comparison-strip > div:last-child {
  text-align: right;
}
.comparison-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
.comparison-strip small {
  font-size: 12px;
}
.comparison-strip .revision-label.proposed {
  justify-content: flex-end;
}
.wipe-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px #19293235;
  pointer-events: none;
  z-index: 1;
}
.wipe-line span {
  position: absolute;
  top: 50%;
  left: -20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px #19293225;
}
.wipe-input {
  flex: 1;
  min-width: 80px;
  accent-color: var(--blue);
}
.compare-totals {
  padding: 18px 20px;
  background: var(--amberwash);
  border-bottom: 1px solid var(--line);
}
.compare-totals h2 {
  font-size: 17px;
}
.delta-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.delta-line strong {
  font-variant-numeric: tabular-nums;
}
.change-list {
  max-height: 540px;
  overflow: auto;
}
.change-item {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.change-title {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.change-title input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  flex: none;
  margin: 2px 0 0;
}
.change-item p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}
.change-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  font-size: 12px;
  margin: 12px 0 7px;
}
.change-prices span {
  color: var(--muted);
}
.change-prices b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.change-meta {
  font-size: 12px;
  color: var(--amber);
}
.text-button {
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--blue);
  font-weight: 500;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.change-item details {
  margin-top: 6px;
}
.change-item summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--blue);
  padding: 5px 0;
}
.change-item blockquote {
  margin: 8px 0;
  background: var(--wash);
  padding: 10px;
  font-size: 12px;
}
.change-item textarea {
  width: 100%;
  min-height: 72px;
  padding: 8px;
  border: 1px solid #bfccd3;
  border-radius: 4px;
  font-size: 12px;
  resize: vertical;
}
.change-item textarea + small {
  font-size: 11px;
}
.delivery-panel {
  padding: 24px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.delivery-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.delivery-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
th {
  color: var(--muted);
  font-weight: 500;
  background: var(--wash);
  font-size: 12px;
}
td,
th {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}
td:first-child {
  font-weight: 500;
}
td input {
  width: 70px;
  padding: 6px;
  border: 1px solid #b8c8d1;
  border-radius: 4px;
}
td .schedule-bar {
  display: block;
  height: 5px;
  margin-top: 4px;
  background: var(--blue);
  min-width: 3px;
}
tfoot td {
  font-weight: 600;
}
.room-list {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  gap: 4px;
}
.room-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 11px 10px;
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #fff;
  font-size: 13px;
}
.room-button span {
  font-size: 12px;
  color: var(--muted);
}
.room-button.active {
  background: var(--bluewash);
  border-color: #bad0df;
  color: var(--blue);
  font-weight: 600;
}
.room-button:hover {
  background: var(--wash);
}
.room-plan {
  width: 100%;
  height: 190px;
  display: block;
  margin: 18px 0 12px;
}
.room-plan rect {
  fill: #e5e6df;
  stroke: white;
  stroke-width: 2;
}
.room-plan .selected {
  fill: #aac7d6;
}
.room-plan text {
  font-size: 8px;
  fill: #253b47;
  pointer-events: none;
}
.room-plan a:hover rect {
  fill: #bfd6df;
}
.room-plan .camera-point {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 1.5;
}
.walk-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.walk-description {
  flex: 1;
}
.walk-description b {
  display: block;
  font-size: 14px;
}
.walk-description small {
  font-size: 12px;
}
.walk-pad {
  position: absolute;
  bottom: 70px;
  right: 16px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 36px);
  gap: 4px;
}
.walk-pad button {
  min-height: 36px;
  width: 36px;
  border: 1px solid #bfccd3;
  background: #fff;
  border-radius: 5px;
}
.walk-pad button:first-child {
  grid-column: 2;
}
.walk-pad button:nth-child(2) {
  grid-row: 2;
}
.walk-pad button:nth-child(3) {
  grid-row: 2;
  grid-column: 2;
}
.walk-pad button:nth-child(4) {
  grid-row: 2;
  grid-column: 3;
}
.import-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px 40px;
}
.import-path {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: center;
  margin: 8px 0 30px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.path-step {
  display: flex;
  align-items: center;
  gap: 13px;
}
.path-step > svg {
  width: 32px;
  height: 32px;
  color: var(--blue);
}
.path-step b {
  font-size: 15px;
  display: block;
}
.path-step small {
  display: block;
  font-size: 12px;
  margin-top: 3px;
}
.path-arrow {
  color: var(--muted);
}
.import-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}
.source-picker {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
.dropzone {
  position: relative;
  padding: 36px 24px;
  text-align: center;
  border: 1px dashed #8ba6b6;
  border-radius: 10px;
  background: #fff;
  transition: background 0.2s;
}
.dropzone.dragging {
  background: var(--bluewash);
  border-color: var(--blue);
}
.dropzone > svg {
  width: 36px;
  height: 36px;
  color: var(--blue);
  margin-bottom: 12px;
}
.dropzone p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 18px;
}
.dropzone input {
  display: block;
  margin: 12px auto;
  max-width: 100%;
  font-size: 12px;
}
.import-help {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.import-help a {
  font-weight: 500;
}
.import-feedback {
  margin-top: 18px;
  background: #fff;
  padding: 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.import-feedback h3 {
  margin-bottom: 8px;
}
.import-feedback p {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.import-feedback .button {
  margin-top: 14px;
}
.library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.library-image {
  width: 100%;
  height: 235px;
  object-fit: cover;
  border-radius: 8px;
  background: #dce3e4;
}
.library-detail {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.library-detail h3 {
  font-size: 18px;
}
.library-detail p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 14px;
}
.library-variants {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.import-report {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.import-report ol {
  list-style: none;
  padding: 0;
}
.import-report li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.import-report li b {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--blue);
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  color: var(--muted);
  font-size: 11px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 5px 24px #19293225;
  border-radius: 6px;
  max-width: calc(100% - 32px);
  width: max-content;
  z-index: 20;
  font-size: 13px;
}
.state-message {
  padding: 22px;
  background: var(--bluewash);
  border-bottom: 1px solid var(--line);
}
.state-message p {
  margin-top: 5px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr) 390px;
  }
  .viewport {
    min-height: 570px;
  }
  .change-list {
    max-height: 650px;
  }
}
@media (max-width: 1000px) {
  .header-end .sample-tag {
    display: none;
  }
  .project-title {
    padding-left: 14px;
  }
  .app-header {
    gap: 14px;
    padding: 10px 18px;
  }
  .work-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .stage-list {
    grid-template-columns: repeat(11, 115px);
  }
  .app-nav {
    gap: 20px;
  }
  .viewport-tools {
    left: 12px;
    top: 12px;
    gap: 4px;
  }
  .viewport-tools .button {
    font-size: 12px;
    padding: 7px 9px;
  }
  .viewport {
    min-height: 450px;
  }
  .import-grid {
    gap: 24px;
  }
}
@media (max-width: 720px) {
  .app-header {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 10px;
  }
  .brand {
    font-size: 19px;
  }
  .project-title {
    margin-left: auto;
  }
  .project-title small {
    display: none;
  }
  .header-end {
    width: 100%;
    justify-content: space-between;
  }
  .header-end .sample-tag {
    display: block;
  }
  .header-end .button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
  }
  .app-nav {
    padding: 0 16px;
    gap: 20px;
  }
  .app-nav a {
    font-size: 13px;
    min-height: 48px;
  }
  .app-nav a svg {
    display: none;
  }
  .screen-heading {
    padding: 18px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .screen-heading h1 {
    font-size: 21px;
  }
  .work-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .viewport {
    min-height: 440px;
    flex: none;
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .inspector-section {
    padding: 18px 16px;
  }
  .inspector-section .room-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .inspector-section .room-plan {
    height: 210px;
  }
  .timeline {
    padding: 16px;
  }
  .timeline-top {
    flex-wrap: wrap;
  }
  .timeline-top .note {
    width: 100%;
    margin: 0;
  }
  .stage-list {
    grid-template-columns: repeat(11, 124px);
  }
  .change-list {
    max-height: none;
  }
  .compare-totals {
    padding: 18px 16px;
  }
  .comparison-strip {
    padding: 14px 16px;
  }
  .comparison-strip strong {
    font-size: 19px;
  }
  .comparison-strip small {
    font-size: 11px;
  }
  .comparison-strip .revision-label {
    font-size: 12px;
  }
  .delivery-panel {
    padding: 22px 16px;
  }
  .delivery-heading {
    flex-direction: column;
  }
  .import-layout {
    padding: 0 16px 28px;
  }
  .import-path {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 22px;
    padding: 10px 0 22px;
  }
  .path-arrow {
    transform: rotate(90deg);
    margin-left: 8px;
    width: 20px;
    height: 20px;
  }
  .path-step b {
    font-size: 14px;
  }
  .import-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .library-image {
    height: auto;
    max-height: 300px;
  }
  .app-footer {
    padding: 12px 16px;
    flex-direction: column;
    gap: 4px;
  }
  .under-model {
    padding: 12px 16px;
  }
  .room-plan {
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
  }
  .walk-controls .button {
    padding: 8px 10px;
  }
  .viewport-caption > span {
    font-size: 11px;
    max-width: 78%;
  }
  .walk-pad {
    bottom: 76px;
  }
  .import-path .path-step:last-child {
    margin-top: 0;
  }
}
@media (max-width: 360px) {
  .brand {
    font-size: 17px;
  }
  .brand img {
    width: 23px;
  }
  .project-title {
    padding-left: 9px;
  }
  .project-title b {
    font-size: 12px;
  }
  .viewport-tools .button {
    font-size: 11px;
    padding: 6px 7px;
  }
  .viewport {
    min-height: 390px;
  }
  .source-picker {
    flex-wrap: wrap;
  }
  .comparison-strip {
    gap: 8px;
  }
  .revision-label {
    gap: 5px;
  }
  .app-nav {
    gap: 15px;
  }
  .under-model .revision-label {
    font-size: 12px;
  }
  .room-button {
    padding: 9px 6px;
    font-size: 12px;
  }
  .app-header {
    padding: 12px;
  }
  .heading-actions .button {
    font-size: 12px;
  }
  .import-layout {
    padding-left: 12px;
    padding-right: 12px;
  }
  .dropzone {
    padding: 25px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.wipe-line {
  pointer-events: auto;
  cursor: ew-resize;
  touch-action: none;
  width: 10px;
  margin-left: -5px;
  background: linear-gradient(
    90deg,
    transparent 4px,
    #fff 4px,
    #fff 6px,
    transparent 6px
  );
  box-shadow: none;
}
.wipe-line span {
  left: -16px;
}
.viewport-caption > span {
  background: #fff;
}
.app-nav a {
  border-radius: 0;
}

.mobile-stage {
  display: none;
}
@media (max-width: 720px) {
  body[data-screen="buildup"] #main {
    display: flex;
    flex-direction: column;
  }
  body[data-screen="buildup"] .work-grid {
    display: contents;
  }
  body[data-screen="buildup"] .screen-heading {
    order: 0;
  }
  body[data-screen="buildup"] .model-column {
    order: 1;
  }
  body[data-screen="buildup"] .timeline {
    order: 2;
  }
  body[data-screen="buildup"] .inspector {
    order: 3;
  }
  body[data-screen="buildup"] .delivery-panel {
    order: 4;
  }
  .mobile-stage {
    display: block;
    flex: 1;
    min-width: 100px;
    max-width: 100%;
    min-height: 42px;
    border: 1px solid #bfccd3;
    border-radius: 6px;
    padding: 8px;
    background: #fff;
    font-size: 13px;
    color: var(--ink);
  }
  .timeline-top .play-progress,
  .timeline-top #stage-position,
  .timeline .stage-list {
    display: none;
  }
  .timeline-top {
    margin-bottom: 0;
    gap: 8px;
  }
  .timeline {
    padding: 12px 16px;
  }
  .timeline-top .note {
    font-size: 11px;
  }
  .timeline .button {
    font-size: 12px;
    padding: 9px 11px;
  }
}
@media (max-width: 720px) {
  body[data-screen="buildup"] .viewport {
    min-height: 370px;
  }
  body[data-screen="buildup"] .under-model .note {
    display: none;
  }
  .timeline-top .note {
    display: none;
  }
}

/* The overview's pinned comparison fits its frame so wheel input can keep
   moving the parent page. Full app screens retain their delivery ledger. */
.embedded-comparison .app-shell {
  height: 100svh;
  min-height: 0;
  overflow: hidden;
}
.embedded-comparison .workspace {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.embedded-comparison .work-grid {
  flex: 1;
  min-height: 0;
}
.embedded-comparison .viewport {
  min-height: 0;
}
.embedded-comparison .inspector {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.embedded-comparison .change-list {
  max-height: none;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.embedded-comparison .compare-totals {
  flex: none;
}
.embedded-comparison .delivery-panel,
.embedded-comparison .app-footer {
  display: none;
}
.embedded-comparison .screen-heading {
  padding: 12px 20px;
}

/* Architectural options use the same compact controls as the build stages. */
.comparison-views {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px 0;
  background: var(--paper);
}
.proposal-presets {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.proposal-presets h2 {
  margin-bottom: 12px;
}
.proposal-presets > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
button.text-button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: var(--blue);
  cursor: pointer;
  text-align: left;
}
.change-item > button.text-button {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 40px;
  margin-bottom: 4px;
}
.change-item > a.text-button {
  display: inline-block;
  margin-bottom: 12px;
}
.proposal-picker .proposal-option {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.proposal-picker label {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  cursor: pointer;
}
.proposal-picker input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--blue);
}
.proposal-picker .proposal-option button {
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 40px;
}
.proposal-picker > a {
  display: inline-block;
  margin-top: 14px;
}
.change-title small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
@media (max-width: 720px) {
  .comparison-views {
    gap: 5px;
    padding: 10px 8px 0;
  }
  .comparison-views .button {
    flex: 1;
    padding: 8px 6px;
    font-size: 11px;
    min-height: 44px;
  }
  .proposal-presets {
    padding: 16px;
  }
}
