:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #282624;
  background: #f7f5f0;
  font-synthesis: none;
  --muted: #89857e;
  --line: #e4e0d8;
  --orange: #d35b37;
  --dark: #35342d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
summary,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary,
select {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d35b3780;
  outline-offset: 3px;
}
.eyebrow,
.unit,
.preview-title {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.preview-title i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7d9075;
  display: inline-block;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 20px 38px 28px;
}
.eyebrow {
  color: var(--orange);
  margin: 0 0 17px;
  font-size: 10px;
  font-weight: 600;
}
.workshop {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.controls {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffefa;
  padding: 24px;
  box-shadow: 0 3px 12px #40362403;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 19px;
}
.section-heading h2 {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
}
.step {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: #eeece5;
  border-radius: 50%;
  font-family: monospace;
  font-size: 10px;
  color: #777269;
}
.unit {
  font-size: 8px;
  margin-left: auto;
  color: #a09b91;
  letter-spacing: 0.8px;
}
.upload {
  height: 140px;
  border: 1px dashed #cfc8bc;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f6f0;
  gap: 7px;
  position: relative;
  cursor: pointer;
}
.upload:hover,
.upload.drag {
  background: #f8ede3;
  border-color: var(--orange);
}
.upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.upload:focus-within {
  outline: 2px solid var(--orange);
}
.upload-symbol {
  font-size: 25px;
  color: var(--orange);
  margin-bottom: 3px;
}
.upload strong {
  font-size: 12px;
  font-weight: 500;
}
.upload > span:last-child {
  font-size: 10px;
  color: var(--muted);
}
.file-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 0 0;
  min-height: 54px;
}
.file-row > div {
  min-width: 0;
  flex: 1;
}
.file-row strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}
.file-row small {
  display: block;
  font-size: 9px;
  color: #979087;
  margin-top: 4px;
}
.file-icon {
  color: #9b8b71;
  font-size: 20px;
}
.text-button {
  background: none;
  border: 0;
  font-size: 10px;
  color: var(--orange);
  padding: 0;
  white-space: nowrap;
}
.middle {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 19px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fields label,
.full-field {
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #68635c;
}
.input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #e1dcd2;
  border-radius: 5px;
  height: 39px;
  background: white;
  padding-right: 11px;
}
.input-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: none;
  padding: 10px;
  font-size: 12px;
  outline: none;
}
.input-wrap:focus-within {
  border-color: var(--orange);
}
.input-wrap > span {
  font-size: 10px;
  color: #aaa196;
}
.full-field {
  margin-top: 19px;
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid #e1dcd2;
  padding: 0 32px 0 12px;
  height: 39px;
  border-radius: 6px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2389857e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 14px 14px;
  color: #35342d;
  font-size: 11px;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
select:hover {
  border-color: #c5baa6;
}
select:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 3px #d35b3726;
}
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f7f5f0;
}
.field-note {
  font-size: 10px;
  line-height: 1.7;
  color: #969084;
  margin: 9px 0 14px;
}
details {
  border-top: 1px solid var(--line);
  margin-top: 17px;
}
summary {
  font-size: 11px;
  font-weight: 500;
  padding: 17px 0 0;
  list-style: none;
  position: relative;
  padding-right: 18px;
}
summary:after {
  content: '+';
  position: absolute;
  right: 0;
  color: #8f8474;
}
details[open] > summary:after {
  content: '−';
}
summary span {
  display: block;
  color: #a2998c;
  font-size: 9px;
  font-weight: 400;
  margin-top: 4px;
}
.detail-fields {
  margin-top: 15px;
}
.build-actions {
  margin-top: 24px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: var(--orange);
  color: #fffaf4;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  padding: 15px 18px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
button.primary {
  width: 100%;
}
.primary:hover {
  background: #b84b2c;
}
.primary span {
  font-size: 18px;
  line-height: 10px;
}
.private-note {
  text-align: center;
  font-size: 9px;
  color: #a0998d;
  margin: 12px 0 0;
}
.secondary {
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px;
  font-size: 11px;
  width: 100%;
  border-radius: 6px;
  margin-top: 10px;
}
[hidden] {
  display: none !important;
}
.viewport {
  height: 510px;
  border: 1px solid #e6e1d7;
  background: #eeece4;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.viewer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  top: 19px;
}
.preview-title {
  font-size: 9px;
  letter-spacing: 1.3px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #847d70;
}
.preview-title i {
  width: 5px;
  height: 5px;
  background: #9c9c83;
}
.view-tabs {
  display: flex;
  background: #e3e0d7;
  padding: 3px;
  border-radius: 6px;
}
.view-tabs button {
  border: 0;
  background: none;
  padding: 7px 11px;
  border-radius: 4px;
  font-size: 10px;
  color: #928b7f;
}
.view-tabs button.active {
  background: #faf8f2;
  box-shadow: 0 1px 4px #0000000b;
  color: #524b42;
}
#canvas-host {
  position: absolute;
  inset: 0;
  touch-action: none;
}
#canvas-host canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.model-tag {
  position: absolute;
  left: 23px;
  bottom: 63px;
  pointer-events: none;
}
.model-tag > span {
  display: block;
  font-family: Georgia, serif;
  font-size: 17px;
  color: #5a5247;
}
.model-tag strong {
  font-family: monospace;
  font-size: 8px;
  letter-spacing: 1px;
  color: #a19a8d;
  display: block;
  margin-top: 9px;
  font-weight: 400;
}
.viewer-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 43px;
  border-top: 1px solid #dbd6cb80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 9px;
  color: #a09789;
  background: #eeeae180;
}
.dot {
  padding: 0 5px;
}
.viewer-bottom button {
  border: 0;
  background: none;
  color: #82796b;
  font-size: 9px;
}
.explode-control {
  position: absolute;
  bottom: 62px;
  right: 23px;
  width: 133px;
  padding: 9px 11px;
  border-radius: 7px;
  background: #faf8f2d9;
}
.explode-control label {
  font-size: 9px;
  color: #766c5e;
}
.explode-control input {
  width: 100%;
  height: 14px;
  accent-color: var(--orange);
  margin-top: 6px;
}
.process-status {
  display: flex;
  gap: 12px;
  padding: 20px 3px;
}
.status-icon {
  font-size: 24px;
  color: #a1947a;
}
.process-status strong {
  font-size: 12px;
  font-weight: 500;
}
.process-status p {
  font-size: 11px;
  color: #9a9183;
  margin: 6px 0 0;
  line-height: 1.6;
}
.process-status.error .status-icon,
.process-status.error strong {
  color: #b7422c;
}
progress {
  width: 100%;
  height: 5px;
  accent-color: var(--orange);
  display: block;
  margin: 0 0 16px;
}
#results {
  border: 1px solid var(--line);
  background: #fffdf7;
  border-radius: 9px;
  padding: 22px;
  margin-bottom: 25px;
}
.result-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.result-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 8px;
}
.result-heading h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 23px;
  margin: 0;
}
.result-heading .primary {
  font-size: 10px;
  padding: 12px;
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 23px 0;
}
.stats span {
  display: block;
  color: #9a9183;
  font-size: 9px;
}
.stats strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 7px;
}
.report-details summary {
  padding-top: 15px;
}
.report-details ul {
  padding-left: 17px;
  font-size: 11px;
  color: #8b7c68;
  line-height: 1.8;
}
.report-details li {
  padding-bottom: 7px;
}
#viewer-error {
  position: absolute;
  inset: 35% 12%;
  font-size: 13px;
  line-height: 1.8;
  color: #7c6c58;
  text-align: center;
}
.busy .status-icon {
  animation: pulse 1s infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 0.3;
  }
}
@media (min-width: 1300px) {
  .viewport {
    height: 540px;
  }
  .workshop {
    grid-template-columns: 370px minmax(0, 1fr);
    gap: 32px;
  }
}
@media (max-width: 850px) {
  main {
    padding: 0 24px;
  }
  .workshop {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 18px;
  }
  .controls {
    padding: 19px;
  }
  .viewport {
    height: 470px;
  }
  .view-tabs button {
    padding: 6px;
  }
  .model-tag {
    left: 17px;
  }
  .viewer-top {
    left: 16px;
    right: 16px;
  }
  .preview-title {
    font-size: 8px;
  }
  .explode-control {
    bottom: 125px;
    right: 15px;
  }
}
@media (max-width: 680px) {
  main {
    padding: 16px 18px 24px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .workshop {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .controls,
  .preview-column {
    width: 100%;
  }
  .controls {
    padding: 22px;
  }
  .viewport {
    height: 430px;
  }
  .preview-title {
    font-size: 9px;
  }
  .view-tabs button {
    padding: 7px 10px;
  }
  .file-row strong {
    max-width: 190px;
  }
  .explode-control {
    bottom: 62px;
  }
  .result-heading {
    align-items: flex-start;
  }
  .result-heading h2 {
    font-size: 20px;
  }
  .stats {
    gap: 7px;
  }
  .stats strong {
    font-size: 10px;
  }
  .result-heading .primary {
    gap: 6px;
    padding: 10px;
    font-size: 9px;
  }
}
.selection-fields {
  margin-top: 17px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.selection-fields label {
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #68635c;
}
.hole-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}
.placement-button {
  border: 1px solid #d9c7b3;
  border-radius: 5px;
  background: #f6efe4;
  color: #9a6740;
  padding: 10px 11px;
  font-size: 10px;
}
.placement-button.active {
  background: #d35b37;
  color: white;
  border-color: #d35b37;
}
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  color: #68635c;
  margin-top: 17px;
}
.checkbox-field input {
  accent-color: var(--orange);
  margin: 0;
  width: 14px;
  height: 14px;
}
.checkbox-field small {
  display: block;
  color: #a2998c;
  font-size: 9px;
  margin-top: 5px;
}
.hole-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.hole-chip {
  border: 1px solid #e2d5bf;
  background: #f6eee0;
  border-radius: 4px;
  color: #9d7550;
  padding: 5px 7px;
  font-size: 9px;
}
.placement-hint {
  position: absolute;
  z-index: 3;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  text-align: center;
  background: #fff8edee;
  color: #a25b33;
  padding: 10px 13px;
  border: 1px solid #dec9b0;
  border-radius: 6px;
  font-size: 10px;
  pointer-events: none;
}
#canvas-host.placing {
  cursor: crosshair;
}
.hole-feedback {
  color: #b34e32 !important;
}
.draft-status {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #8c806e;
  padding: 13px 3px;
  line-height: 1.6;
}
.draft-status > span:first-child {
  height: 6px;
  width: 6px;
  flex: none;
  background: #c5baa6;
  border-radius: 50%;
}
.draft-status.updating > span:first-child {
  background: var(--orange);
  animation: pulse 1s infinite alternate;
}
.draft-status.failed {
  color: #b34e32;
}
.wall-summary {
  border: 1px solid #d9dfce;
  border-radius: 8px;
  padding: 18px 20px;
  background: #f1f3eb;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 9px;
}
.wall-summary.thin {
  background: #fff0e7;
  border-color: #e8c2a6;
}
.wall-summary .eyebrow {
  display: block;
  font-size: 8px;
  margin-bottom: 10px;
  color: #839075;
}
.wall-summary strong {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  display: inline-block;
  margin-right: 10px;
}
.wall-summary #wall-state {
  font-size: 10px;
  color: #8a806c;
}
.wall-summary p {
  grid-column: 1/-1;
  font-size: 10px;
  line-height: 1.7;
  color: #8a806c;
  margin: 0;
}
.wall-summary .field-note {
  font-size: 9px;
}
.view-tabs button {
  padding-left: 9px;
  padding-right: 9px;
}
@media (max-width: 850px) and (min-width: 681px) {
  .preview-title {
    display: none;
  }
}
@media (max-width: 680px) {
  .view-tabs button {
    padding-left: 8px;
    padding-right: 8px;
  }
  .wall-summary {
    padding: 16px;
  }
  .wall-summary strong {
    font-size: 23px;
  }
}
.diagnosis {
  border: 1px solid #e7b5a4;
  background: #fff1e9;
  padding: 21px;
  border-radius: 9px;
  margin: 12px 0 20px;
}
.diagnosis .eyebrow {
  font-size: 8px;
  margin-bottom: 12px;
}
.diagnosis h2 {
  font:
    24px Georgia,
    serif;
  margin: 0 0 14px;
  line-height: 1.3;
  color: #9e452e;
}
.diagnosis p,
.diagnosis li {
  font-size: 11px;
  line-height: 1.8;
  color: #92745f;
}
.diagnosis h3 {
  font-size: 12px;
  font-weight: 500;
  margin: 20px 0 9px;
}
.diagnosis ul {
  padding-left: 17px;
}
.diagnosis-legend {
  display: flex;
  align-items: center;
  gap: 8px;
}
.diagnosis-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5492e;
}
.fragment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.fragment-list button,
.repair-actions button {
  font-size: 10px;
  line-height: 1.5;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid #dfb6a2;
  background: #fff9f1;
  color: #a35439;
  border-radius: 5px;
}
.fragment-list button:hover,
.repair-actions button:hover {
  background: #f5dfcf;
}
.repair-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}
.diagnosis #download-diagnosis {
  font-size: 10px;
  color: #ac5537;
  display: inline-block;
  margin-top: 10px;
}
.diagnosis .field-note {
  font-size: 10px;
}
.quick-download {
  margin-top: 20px;
  font-size: 11px;
  justify-content: center;
}
.advanced-settings {
  margin-top: 22px;
}
.advanced-settings > summary {
  font-size: 12px;
}
.advanced-settings .middle {
  margin-top: 15px;
  padding-top: 18px;
}
.recommendation {
  background: #eef2e8;
  border: 1px solid #dce4ce;
  border-radius: 10px;
  padding: 23px;
  margin-bottom: 18px;
}
.recommendation h2 {
  font:
    26px Georgia,
    serif;
  margin: 0 0 10px;
}
.recommendation p {
  font-size: 11px;
  line-height: 1.7;
  color: #7a806f;
}
.recommendation .eyebrow {
  color: #839074;
}
.verified-checks {
  font-size: 10px;
  color: #758465;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.recommendation .field-note {
  font-size: 9px;
  margin-bottom: 0;
}
.option-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.option-list button {
  background: #fffdf5;
  border: 1px solid #d5ddca;
  border-radius: 5px;
  padding: 9px 11px;
  text-align: left;
  font-size: 10px;
  color: #738265;
}
.fill-offer,
.fill-review {
  background: #fff3d8;
  border: 1px solid #e5c988;
  border-radius: 7px;
  padding: 17px;
  margin-top: 18px;
}
.fill-offer h3 {
  margin-top: 0;
}
.fill-review {
  margin: 15px 0;
}
.fill-review .eyebrow {
  color: #a18138;
  margin-bottom: 10px;
}
.fill-review strong {
  font-size: 12px;
  font-weight: 500;
}
.fill-review p {
  font-size: 11px;
  color: #9a8056;
  line-height: 1.8;
}
.fill-review button {
  margin-top: 4px;
}

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