.quote-hero .breadcrumbs {
  margin-bottom: 24px;
}
.quote-hero {
  padding-block: 68px 42px;
  max-width: 1000px;
}
.quote-hero h1 {
  font-size: clamp(48px, 5.8vw, 80px);
  margin-block: 18px 22px;
  line-height: 1.02;
}
.quote-hero h1 span {
  color: var(--accent);
}
.quote-hero > p:not(.eyebrow) {
  font-size: 18px;
  max-width: 610px;
}
.quote-journey {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  font-size: 13px;
}
.quote-journey a {
  color: var(--text);
}
.quote-journey a:hover {
  color: var(--accent);
}
.quote-journey > span {
  color: var(--muted);
}
.quote-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  align-items: start;
  gap: 28px;
  padding-bottom: 62px;
}
.quote-form {
  min-width: 0;
  display: grid;
  gap: 24px;
}
.quote-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  scroll-margin-top: 110px;
}
.quote-step-heading {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.step-number {
  font: 500 12px var(--font-mono);
  color: var(--accent);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  flex-shrink: 0;
}
.quote-step-heading h2,
.quote-receipt h2 {
  font-size: 27px;
  letter-spacing: -0.035em;
}
.quote-step-heading p {
  font-size: 13px;
  margin-top: 8px;
}
.design-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  gap: 24px;
}
.design-tabs button {
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 13px;
}
.design-tabs button.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.file-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: rgba(var(--accent-rgb), 0.0157);
  min-height: 204px;
  padding: 24px 15px;
  cursor: pointer;
}
.file-zone:hover,
.file-zone.is-dragover,
.file-zone:focus-within {
  background: rgba(var(--accent-rgb), 0.0471);
  border-color: var(--accent);
}
.file-zone strong {
  font-size: 16px;
  font-weight: 500;
  margin-top: 10px;
}
.file-zone > span:not(.file-symbol) {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.file-zone small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 16px;
}
.file-symbol {
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
}
.file-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.sample-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  margin-top: 16px;
}
.sample-row > span {
  color: var(--muted);
}
.sample-row button,
.rate-details .text-link {
  background: none;
  border: 0;
  padding: 4px 0;
}
.sample-row .text-link {
  font-size: 12px;
  gap: 12px;
}
.file-status {
  font-size: 12px;
  margin-top: 18px;
  overflow-wrap: anywhere;
}
.file-status.is-error {
  color: var(--amber);
}
.geometry-controls {
  display: flex;
  align-items: end;
  gap: 18px;
  margin-block: 20px;
}
.geometry-controls > p {
  font-size: 11px;
  max-width: 225px;
  margin-bottom: 8px;
}
.quote-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
}
.quote-field > span {
  color: var(--text);
}
.quote-field input,
.quote-field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  border-radius: 5px;
  min-height: 45px;
  padding: 10px 12px;
  font-size: 14px;
}
.quote-field input:focus,
.quote-field select:focus {
  border-color: var(--accent);
}
.quote-field input[aria-invalid="true"] {
  border-color: var(--amber);
}
.quote-field input::placeholder {
  color: var(--muted);
}
.unit-field {
  flex-shrink: 0;
  width: 190px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.dimensions-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.full-width {
  grid-column: 1/-1;
}
.quote-details {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  font-size: 12px;
}
.quote-details summary {
  padding-top: 17px;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.quote-details summary:after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
}
.quote-details[open] summary:after {
  content: "−";
}
.quote-details summary::-webkit-details-marker {
  display: none;
}
.quote-details > div {
  padding-top: 17px;
}
.quote-details p + p {
  margin-top: 12px;
}
.quote-details p strong {
  color: var(--text);
  font-weight: 500;
}
.quote-details .field-grid {
  margin-top: 0;
}
.volume-details .quote-field {
  max-width: 230px;
  margin-bottom: 10px;
}
.part-preview {
  border: 1px solid var(--line);
  background:
    radial-gradient(
      ellipse at 50% 45%,
      rgba(var(--surface-rgb), 0.333),
      transparent 65%
    ),
    var(--bg);
  border-radius: 7px;
  overflow: hidden;
  margin-top: 22px;
}
.preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  font: 10px var(--font-mono);
  color: var(--muted);
}
.preview-topline > span {
  max-width: 70%;
  overflow-wrap: anywhere;
}
.preview-topline button {
  font: 11px var(--font-body);
  color: var(--text);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 6px 11px;
}
.preview-topline button:hover {
  border-color: var(--accent);
}
#part-canvas {
  width: 100%;
  height: 230px;
  touch-action: pan-y;
  cursor: grab;
}
#part-canvas:active {
  cursor: grabbing;
}
.geometry-readout {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
}
.geometry-readout span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.geometry-readout small {
  font: 10px var(--font-mono);
  color: var(--muted);
}
.geometry-readout strong {
  font-weight: 500;
  font-size: 13px;
}
.preview-hint {
  text-align: center;
  font-size: 10px;
  padding: 0 12px 12px;
}
.process-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.process-options button {
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 20px 18px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.process-options button.is-active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.0314);
}
.process-options svg {
  width: 38px;
  height: 38px;
  stroke: var(--accent);
  stroke-width: 1.4;
  fill: none;
  margin-bottom: 16px;
}
.process-options strong {
  font-size: 15px;
  font-weight: 500;
}
.process-options button > span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.quote-checkbox {
  display: flex;
  gap: 12px;
  align-items: start;
  margin-top: 23px;
  font-size: 13px;
  cursor: pointer;
}
.quote-checkbox input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}
.quote-checkbox small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.rate-notice {
  padding: 12px 14px;
  border-left: 2px solid var(--amber);
  background: rgba(var(--amber-rgb), 0.0314);
  color: var(--amber);
}
.formula-explanation {
  font-size: 11px;
  line-height: 1.9;
  margin-block: 18px;
  color: var(--muted);
}
.formula-explanation strong {
  color: var(--text);
  font-weight: 500;
}
.rate-grid {
  margin-bottom: 18px;
}
.rate-details .text-link {
  margin-top: 14px;
  color: var(--accent);
  font-size: 12px;
}
.quote-receipt {
  position: sticky;
  top: 108px;
  background: var(--surface);
  color: var(--muted);
  border-radius: 12px 12px 0 0;
  padding: 28px 28px 26px;
  scroll-margin-top: 108px;
}
.receipt-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.quote-receipt .step-number {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--muted);
}
.receipt-badge {
  font: 11px var(--font-mono);
  color: var(--muted);
}
.quote-receipt h2 {
  font-size: 30px;
}
.estimate-label {
  margin-top: 8px;
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 30px;
  padding: 4px 10px;
}
.receipt-summary {
  color: var(--muted);
  margin-top: 22px;
  font-size: 13px;
}
.geometry-basis {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}
.receipt-lines {
  margin: 21px 0 17px;
  padding-bottom: 17px;
  border-bottom: 1px dashed var(--line);
}
.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  font-size: 12px;
}
.receipt-line dt {
  color: var(--muted);
}
.receipt-line dd {
  margin: 0;
  white-space: nowrap;
  font: 500 12px var(--font-mono);
}
.receipt-subtotal,
.receipt-tax {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin-top: 11px;
  color: var(--muted);
}
.receipt-subtotal strong,
.receipt-tax strong {
  font: 500 12px var(--font-mono);
  color: var(--muted);
}
.receipt-total {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.receipt-total > span {
  font-size: 12px;
  color: var(--muted);
}
.receipt-total strong {
  font-family: var(--font-heading);
  font-size: clamp(31px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}
.per-part {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.receipt-usage {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin-block: 18px;
}
.review-button {
  width: 100%;
  min-height: 50px;
  background: var(--accent);
  color: var(--on-accent);
  gap: 14px;
}
.review-button:hover {
  background: var(--accent-hover);
}
.email-note {
  color: var(--muted);
  font-size: 10px;
  margin-top: 9px;
  text-align: center;
}
.receipt-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}
.receipt-actions button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  padding: 3px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.receipt-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
  margin-top: 24px;
}
.receipt-tear {
  position: absolute;
  inset: auto 0 -10px;
  height: 11px;
  background:
    linear-gradient(135deg, var(--surface) 25%, transparent 25%) -8px 0/16px
      16px,
    linear-gradient(225deg, var(--surface) 25%, transparent 25%) -8px 0/16px
      16px;
}
#receipt-empty {
  padding-block: 36px 12px;
  text-align: center;
}
#receipt-empty h3 {
  font-size: 22px;
  margin-top: 24px;
}
#receipt-empty > p {
  color: var(--muted);
  font-size: 12px;
  max-width: 235px;
  margin: 12px auto 23px;
}
#receipt-empty .button {
  border-color: var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  gap: 12px;
}
.empty-receipt-icon {
  width: 73px;
  height: 88px;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  font: 32px/1.5 var(--font-heading);
  color: var(--muted);
  padding-top: 9px;
  transform: rotate(-6deg);
}
.empty-receipt-icon span {
  display: block;
  font: 11px var(--font-mono);
  margin-top: 7px;
  color: var(--muted);
}
.quote-error {
  font-size: 12px;
  padding: 12px;
  border: 1px solid var(--danger);
  background: var(--soft-amber);
  color: var(--danger);
  border-radius: 5px;
  margin-top: 18px;
}
.quote-notice {
  padding: 20px;
  border: 1px solid var(--line);
  margin-bottom: 30px;
}
.quote-notice a {
  text-decoration: underline;
}
.quote-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding-block: 38px 65px;
  border-top: 1px solid var(--line);
}
.quote-help h2 {
  font-size: 28px;
}
.quote-help p {
  font-size: 13px;
  max-width: 520px;
  margin-top: 12px;
}
.quote-help .button {
  flex-shrink: 0;
}
.quotation-page .site-footer {
  margin-top: 0;
}
@media (min-width: 1500px) {
  .quote-workspace {
    grid-template-columns: minmax(0, 1.5fr) minmax(350px, 1fr);
    gap: 36px;
  }
}
@media (max-width: 1100px) {
  .quote-workspace {
    gap: 20px;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr);
  }
  .quote-card {
    padding: 24px;
  }
  .quote-receipt {
    padding: 25px 22px;
  }
  .geometry-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }
  .geometry-controls > p {
    max-width: none;
    margin: 0;
  }
  .unit-field {
    width: 100%;
  }
  .quote-journey {
    gap: 14px;
    font-size: 12px;
  }
  .dimensions-grid {
    gap: 10px;
  }
  .process-options button {
    padding: 17px 13px;
  }
}
@media (max-width: 800px) {
  .quote-hero {
    padding-block: 44px 32px;
  }
  .quote-hero > p:not(.eyebrow) {
    font-size: 16px;
  }
  .quote-workspace {
    grid-template-columns: 1fr;
    gap: 27px;
    padding-bottom: 44px;
  }
  .quote-receipt {
    position: relative;
    top: 0;
    margin-bottom: 15px;
  }
  .quote-journey {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
    font-size: 11px;
  }
  .quote-hero h1 {
    font-size: 56px;
  }
  .quote-help {
    align-items: start;
    flex-direction: column;
    padding-block: 32px 46px;
    gap: 24px;
  }
  .quote-help h2 {
    font-size: 26px;
  }
  .geometry-controls {
    flex-direction: row;
    align-items: end;
    gap: 18px;
  }
  .unit-field {
    width: 190px;
  }
  .geometry-controls > p {
    max-width: 245px;
    margin-bottom: 7px;
  }
  .quote-receipt h2 {
    font-size: 29px;
  }
  .receipt-total strong {
    font-size: 42px;
  }
  .quote-receipt {
    padding: 28px;
  }
  .quote-card {
    padding: 25px;
  }
  .receipt-line,
  .receipt-subtotal,
  .receipt-tax {
    font-size: 13px;
  }
  .receipt-line dd,
  .receipt-subtotal strong,
  .receipt-tax strong {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .quote-hero h1 {
    font-size: 48px;
  }
  .quote-hero > p:not(.eyebrow) {
    font-size: 15px;
  }
  .desktop-break {
    display: none;
  }
  .quote-journey {
    row-gap: 10px;
    column-gap: 9px;
  }
  .quote-journey > span:last-of-type {
    display: none;
  }
  .quote-journey a:last-child {
    width: 100%;
  }
  .quote-card {
    padding: 20px;
  }
  .quote-step-heading {
    gap: 12px;
  }
  .quote-step-heading h2 {
    font-size: 23px;
  }
  .quote-step-heading p {
    font-size: 12px;
  }
  .step-number {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .design-tabs {
    gap: 20px;
  }
  .design-tabs button {
    font-size: 12px;
  }
  .file-zone {
    min-height: 195px;
  }
  .file-zone small {
    font-size: 9px;
  }
  .sample-row {
    font-size: 11px;
    gap: 10px;
  }
  .sample-row .text-link {
    font-size: 11px;
  }
  .geometry-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }
  .geometry-controls > p {
    max-width: none;
    margin: 0;
  }
  .unit-field {
    width: 100%;
  }
  .quote-field {
    font-size: 11px;
  }
  .quote-field input,
  .quote-field select {
    padding-inline: 10px;
  }
  .dimensions-grid {
    gap: 8px;
  }
  .dimensions-grid .quote-field > span {
    font-size: 10px;
  }
  .process-options {
    gap: 10px;
  }
  .process-options button {
    padding: 15px 12px;
  }
  .process-options strong {
    font-size: 14px;
  }
  .process-options button > span {
    font-size: 9px;
  }
  .geometry-readout {
    flex-wrap: wrap;
  }
  .geometry-readout strong {
    font-size: 12px;
  }
  .quote-receipt {
    padding: 24px;
  }
  .field-grid {
    gap: 13px;
  }
  .quote-details summary {
    font-size: 11px;
    gap: 10px;
  }
  .quote-help h2 {
    font-size: 25px;
  }
  #part-canvas {
    height: 200px;
  }
}
@media print {
  html {
    color-scheme: light;
  }
  body {
    background: white !important;
    color: #111 !important;
  }
  .site-header,
  .site-footer,
  .quote-hero,
  .quote-form,
  .quote-help,
  .receipt-actions,
  .review-button,
  .email-note,
  .receipt-tear,
  .skip-link,
  #receipt-empty {
    display: none !important;
  }
  .container {
    padding: 0 !important;
  }
  .quote-workspace {
    display: block !important;
    padding: 0 !important;
  }
  .quote-receipt {
    position: static !important;
    background: white !important;
    max-width: 650px;
    margin: 0 auto;
    padding: 30px !important;
    border: 1px solid #aaa;
    color: #111 !important;
  }
  .quote-receipt * {
    color: #222 !important;
    box-shadow: none !important;
  }
  .quote-receipt .step-number {
    display: none;
  }
  .receipt-total strong {
    font-size: 38px;
  }
  .receipt-heading {
    justify-content: flex-end;
  }
  .receipt-note {
    font-size: 11px;
  }
}
.quote-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 32px;
  max-width: 655px;
}
.quote-mode-switch button {
  display: grid;
  grid-template-columns: 35px 1fr;
  column-gap: 13px;
  align-items: center;
  text-align: left;
  padding: 18px 19px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
}
.quote-mode-switch button.is-active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.0392);
}
.quote-mode-switch button > span {
  grid-row: 1/3;
  font: 32px/1 var(--font-heading);
  color: var(--accent);
}
.quote-mode-switch strong {
  font-size: 14px;
  font-weight: 500;
}
.quote-mode-switch small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.complexity-guide {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding: 22px 18px;
  background:
    radial-gradient(
      ellipse at left,
      rgba(var(--accent-rgb), 0.2),
      transparent 80%
    ),
    var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.complexity-guide svg {
  width: 90px;
  height: 85px;
  stroke: var(--accent);
  stroke-width: 1.3;
  fill: rgba(var(--accent-rgb), 0.0275);
  flex-shrink: 0;
}
.complexity-guide strong {
  font-size: 13px;
  font-weight: 500;
}
.complexity-guide p {
  font-size: 12px;
  margin-top: 6px;
  max-width: 310px;
}
.complexity-guide span {
  font: 10px var(--font-mono);
  color: var(--accent);
  display: block;
  margin-top: 13px;
}
.design-reference {
  margin-top: 24px;
}
.design-reference input {
  font-size: 11px;
  padding: 8px;
}
.design-reference input::file-selector-button {
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font: 11px var(--font-body);
  padding: 7px 10px;
  border-radius: 3px;
  margin-right: 12px;
  cursor: pointer;
}
.quote-field small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.design-scope-note {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.receipt-line small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.quotation-page .quote-receipt :focus-visible {
  outline-color: var(--accent);
}
@media (max-width: 480px) {
  .quote-mode-switch {
    gap: 10px;
    margin-top: 27px;
  }
  .quote-mode-switch button {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 15px 12px;
    gap: 8px;
  }
  .quote-mode-switch button > span {
    font-size: 26px;
  }
  .quote-mode-switch strong {
    font-size: 12px;
  }
  .quote-mode-switch small {
    font-size: 10px;
    line-height: 1.5;
    margin: 0;
  }
  .complexity-guide {
    padding: 18px 12px;
    gap: 13px;
  }
  .complexity-guide svg {
    width: 65px;
    height: 70px;
  }
  .complexity-guide strong {
    font-size: 12px;
  }
  .complexity-guide p {
    font-size: 11px;
  }
  .complexity-guide span {
    font-size: 9px;
  }
}
@media print {
  .quote-mode-switch,
  #design-form {
    display: none !important;
  }
}

.receipt-summary,
.receipt-usage,
.geometry-basis {
  overflow-wrap: anywhere;
}
