dialog[data-sale] {
  height: min(89svh, 720px);
  max-height: none;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -16px 60px #0a301e38;
}
dialog[data-sale]::backdrop { background: #0b261bc2; }
dialog[data-sale] .sheet-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(15px, 2.7vw, 25px) var(--gutter) calc(12px + env(safe-area-inset-bottom));
}
dialog[data-sale] .sheet-top, dialog[data-sale] .sale-progress, dialog[data-sale] .sheet-buttons { flex-shrink: 0; }
.sale-sheet-stage, .sale-sheet-stage > form { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.sale-sheet-stage .sale-step-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 3px 4px 14px; }
.sale-sheet-stage .sheet-buttons { position: static; margin-block: 7px 0; }
.sale-sheet-stage [data-sale-form] .sheet-buttons { position: static; }
dialog[data-sale] .sheet-top { margin-bottom: clamp(10px, 2.1vw, 18px); }
dialog[data-sale] .sheet-top h1 { color: var(--action); font-size: clamp(24px, 5vw, 33px); letter-spacing: -.03em; }
dialog[data-sale] .sheet-top h1:focus { outline: none; }
dialog[data-sale] .sheet-top .icon { margin: 0; background: var(--mint); color: var(--action); }
.sale-sheet-stage .sale-mode-step {
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto;
  gap: clamp(14px, 2.4svh, 22px);
  padding: 5px 0 12px;
}
.sale-mode-options { display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.sale-mode-options legend { padding: 0; margin-bottom: 11px; font-size: 17px; font-weight: 780; }
.sale-mode-grid { display: grid; flex: 1; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(10px, 2.4vw, 18px); }
.sale-mode-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(78px, 1fr) auto minmax(2lh, auto);
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding: clamp(22px, 3.4vw, 32px) clamp(8px, 1.8vw, 15px) clamp(12px, 2.8vw, 22px);
  border: 1px solid #d7e3d9;
  border-radius: 13px;
  background: #f7faf7;
  text-align: center;
  word-break: keep-all;
  cursor: pointer;
  box-shadow: 0 3px 8px #18391c0b;
}
.sale-mode-card input {
  appearance: none;
  position: absolute;
  display: grid;
  place-items: center;
  inset: 9px auto auto 9px;
  width: 19px;
  height: 19px;
  margin: 0;
  border: 1px solid #83a08b;
  border-radius: 5px;
  background: white;
  cursor: pointer;
}
.sale-mode-card input:checked { border-color: var(--action); background: var(--action); }
.sale-mode-card input:checked::after { content: ''; width: 9px; height: 5px; border: solid white; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.sale-mode-card:has(input:checked) { border-color: var(--action); background: #e9f8ed; box-shadow: inset 0 0 0 1px var(--action); }
.sale-mode-card:hover { border-color: var(--action); }
.sale-mode-card img { width: 100%; height: 100%; min-height: 0; contain: size; object-fit: contain; mix-blend-mode: multiply; }
.sale-mode-card strong { font-size: clamp(20px, 3vw, 27px); line-height: 1.2; }
.sale-mode-card span { align-self: start; color: #42574b; font-size: clamp(13px, 2.9vw, 15px); line-height: 1.4; }
.sale-mode-card:has(input:checked) strong { color: var(--action); }
.sale-mode-guide { padding: 15px 16px; border: 1px solid #e0ebe2; border-radius: 12px; background: #f5f9f6; }
.sale-mode-guide h2 { font-size: 16px; line-height: 1.3; }
.sale-mode-guide ul { display: grid; gap: 5px; padding: 0; margin-top: 7px; list-style: none; }
.sale-mode-guide li { display: flex; align-items: center; gap: 8px; min-height: 27px; color: #42574b; font-size: 14px; word-break: keep-all; }
.sale-mode-guide svg { width: 16px; height: 16px; color: var(--action); }
.sale-mode-footer button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 49px; }
.sale-mode-footer svg { width: 17px; height: 17px; }
.sale-existing-quote { display: block; margin-top: 4px; color: var(--action); font-size: 13px; font-weight: 620; word-break: keep-all; }
.sale-progress {
  padding: 9px 12px 10px;
  border: 1px solid #d9eddf;
  border-radius: 10px;
  background: var(--mint);
}
.sale-progress .progress-label { color: var(--action); font-weight: 700; font-variant-numeric: tabular-nums; }
.sale-progress progress { height: 6px; margin-top: 7px; background: #d5ecdf; accent-color: var(--accent); }
.sale-progress progress::-webkit-progress-bar { background: #d5ecdf; }
.sale-progress progress::-webkit-progress-value { background: var(--accent); }
.sale-progress progress::-moz-progress-bar { background: var(--accent); }
[data-sale-form] .wizard-step {
  margin-top: clamp(13px, 3.1vw, 20px);
  font-size: clamp(23px, 5.8vw, 32px);
  letter-spacing: -.032em;
  line-height: 1.24;
}
[data-sale-form] .wizard-step + .quiet { margin-top: 6px; }
.sale-step-heading { display: flex; align-items: flex-start; gap: clamp(9px, 2.7vw, 14px); margin-block: clamp(13px, 3.3vw, 20px) clamp(10px, 2.7vw, 16px); }
.sale-step-heading > div { flex: 1; min-width: 0; }
.sale-step-heading .wizard-step { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.sale-step-heading .quiet { line-height: 1.45; }
.sale-step-icon, .sale-action-icon { flex: none; object-fit: contain; }
.sale-step-icon { width: clamp(36px, 10vw, 44px); height: clamp(36px, 10vw, 44px); }
.sale-action-icon { width: 28px; height: 28px; }
.sale-contact-heading { display: flex; align-items: center; gap: 8px; margin-block: 15px 9px; font-size: 19px; }
.sale-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
[data-sale-intake] .field { gap: 6px; margin: 0; font-weight: 670; }
[data-sale-intake] .field :is(input, select) { min-height: 44px; border-color: #cde2d5; border-radius: 8px; font-size: 16px; }
.sale-contact-fields :is(.sale-consent, .sheet-error) { grid-column: 1 / -1; }
.sale-consent { display: flex; align-items: flex-start; min-height: 44px; gap: 8px; padding-block: 9px; line-height: 1.45; cursor: pointer; }
.sale-consent input { flex: none; margin: 3px 0 0; accent-color: var(--action); }
.sale-consent a { color: var(--action); text-decoration: underline; }
[data-sale-form] .field { gap: 6px; margin: 12px 0 10px; font-weight: 670; }
[data-sale-form] .field :is(input, select, textarea) {
  min-height: 48px;
  border-color: #cde2d5;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
}
[data-sale-form] .field :is(input, select, textarea):focus { border-color: var(--action); outline-offset: 0; }
[data-sale-step="location"] > .sale-step-body > .field { max-width: 540px; }
[data-sale-form] :is(.sale-brands, .sale-models) {
  grid-auto-rows: max-content;
  gap: clamp(7px, 1.5vw, 11px);
  padding: 4px;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
[data-sale-form] .sale-brands { max-height: clamp(164px, 34svh, 294px); }
[data-sale-form] .sale-models { max-height: clamp(170px, 42svh, 345px); }
.sale-sheet-stage [data-sale-step="brand"] .sale-step-body,
.sale-sheet-stage [data-sale-step="model"] .sale-step-body { display: flex; flex-direction: column; }
.sale-sheet-stage :is([data-sale-step="brand"], [data-sale-step="model"]) .sale-step-body > :not(.sale-brands, .sale-models) { flex-shrink: 0; }
.sale-sheet-stage :is(.sale-brands, .sale-models) { min-height: 0; flex: 0 1 auto; }
[data-sale-form] :is(.brand-option, .model-option) { border-color: #dceae1; min-width: 0; min-height: 60px; line-height: 1.26; }
[data-sale-form] .brand-option { flex-direction: column; gap: 6px; min-height: 65px; }
[data-sale-form] .brand-option img { width: 52px; height: 23px; }
[data-sale-form] :is(.brand-option, .model-option) span { overflow-wrap: anywhere; }
[data-sale-form] :is(.brand-option, .model-option):is(:hover, [aria-pressed=true]) { background: var(--mint); border-color: #8acda3; }
[data-sale-form] .sale-step-body > .text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--action); font-weight: 730; }
[data-sale-form] .sale-option-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
[data-sale-form] .sale-option-tabs .chip { min-height: 44px; padding-inline: 6px; line-height: 1.25; }
[data-sale-form] .sale-option-tabs [aria-pressed=true] { color: var(--action); background: var(--mint); border-color: #8acda3; }
.sale-sheet-stage [data-sale-step="note"] .sale-step-body:has(> .sale-option-tabs > [data-option-mode="memo"][aria-pressed="true"]) {
  display: grid;
  grid-template-rows: auto auto minmax(min-content, 1fr) auto;
}
.sale-sheet-stage .sale-option-tabs:has(> [data-option-mode="memo"][aria-pressed="true"]) + .field {
  grid-template-rows: auto minmax(120px, 1fr);
  margin-bottom: 0;
}
.sale-sheet-stage .sale-option-tabs:has(> [data-option-mode="memo"][aria-pressed="true"]) + .field textarea { resize: none; }
.service-sale .sale-option-tabs:has(> [data-option-mode="memo"][aria-pressed="true"]) + .field textarea {
  min-height: clamp(180px, 45svh, 420px);
}
[data-sale-form] .option-checks label { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 7px; overflow-wrap: anywhere; }
[data-sale-form] .option-checks input { accent-color: var(--action); }
[data-sale-form] .photo-picker { min-height: 92px; margin-block: 0; border-color: #75c196; background: var(--mint); color: var(--action); }
[data-sale-form] .photo-picker > span { flex-direction: column; gap: 5px; }
[data-sale-form] .photo-picker input { height: 100%; margin: 0; }
[data-sale-form] .photo-picker:focus-within { outline-color: var(--action); }
[data-sale-form] .method { gap: 9px; margin: 0 0 12px; }
[data-sale-form] .method label { align-items: center; gap: 9px; min-height: 64px; padding: 10px 12px; border-color: #d9e9df; }
[data-sale-form] .method label > span { display: block; min-width: 0; }
[data-sale-form] .method label > span:has(> .sale-action-icon) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 9px; }
[data-sale-form] .method input { flex: none; margin: 0; }
[data-sale-form] .method label:has(:checked) { border-color: #77c392; background: var(--mint); }
[data-sale-form] .method small { margin-top: 3px; line-height: 1.45; }
[data-sale-form] .sheet-buttons {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: 10px;
  padding: 10px 0 2px;
  background: white;
  border-top: 1px solid var(--line);
}
dialog[data-sale] .sheet-buttons { gap: 9px; }
dialog[data-sale] .sheet-buttons :is(.primary, .secondary) { min-height: 48px; padding-inline: 11px; border-radius: 10px; }
dialog[data-sale] .sheet-buttons .primary:hover { background: #10d468; }

.sale-step-body .model-option:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 7px;
  padding: clamp(6px, 1.8vw, 10px);
  text-align: center;
}
.sale-model-art { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; max-height: 116px; overflow: hidden; border-radius: 7px; background: #f3f7f4; }
.sale-model-art img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border-radius: inherit; object-fit: contain; }
.sale-model-name { display: block; min-width: 0; padding: 1px 2px 3px; line-height: 1.34; word-break: keep-all; }
.sale-step-body .model-option-text:not([hidden]) { align-content: center; padding-inline: 10px; }
.sale-step-body .sale-no-models { padding-block: 6px; }
.sale-step-body :is(.field :is(input, select, textarea)[aria-invalid=true], .method label:has([aria-invalid=true])) { border-color: #ab352a; outline-color: #ab352a; }
.sale-step-body .sheet-error:not(:empty) { margin: 5px 0 10px; font-weight: 700; word-break: keep-all; }
.sale-factory, .sale-guidance { margin-block: 12px; padding: 15px; border: 1px solid #cae4d4; border-radius: 12px; background: var(--mint); }
.sale-factory a, .sale-option-group a { color: var(--action); text-decoration: underline; }
.sale-factory ul, .sale-option-group ul { padding: 9px 0 9px 18px; font-size: .88rem; line-height: 1.55; }
.sale-factory summary, .sale-option-group summary { padding: 9px 0; cursor: pointer; color: var(--action); font-weight: 720; }
.sale-option-heading { margin-top: 13px; }
.sale-option-group { margin-top: 7px; padding: 3px 10px; border: 1px solid #dceae1; border-radius: 9px; }
.sale-option-group .option-checks { padding-bottom: 8px; }
.sale-photo-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block: 3px 10px; }
.sale-step-body .sale-photos { padding-top: 7px; }
.sale-step-body .sale-photos > div { flex-basis: 108px; height: 90px; }
.sale-photos button.sale-photo-cover { inset: auto 0 0; width: 100%; height: 27px; border-radius: 0; font-size: 11px; }
.sale-guidance strong { display: block; margin-bottom: 6px; color: var(--action); }
.sale-success { display: grid; align-content: center; justify-items: center; gap: 9px; text-align: center; word-break: keep-all; }
.sale-success h2 { color: var(--action); }
[data-sale-intake] .sale-summary { padding-inline: 12px; border: 1px solid #dceae1; border-radius: 11px; }
[data-sale-intake] .sale-summary > div { grid-template-columns: minmax(66px, 22%) minmax(0, 1fr); }
[data-sale-intake] .sale-summary > div:last-child { border-bottom: 0; }
[data-sale-intake] .sheet-buttons { flex-wrap: wrap; padding-top: 9px; border-top: 1px solid var(--line); }
.sale-submit-status { flex: 0 0 100%; color: var(--action); font-weight: 700; }

@media (min-width: 620px) {
  dialog[data-sale] .sale-models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) and (min-height: 700px) {
  .sale-sheet-stage .sale-mode-step { gap: 23px; padding-block: 12px 19px; }
  .sale-mode-options legend { margin-bottom: 15px; }
  .sale-mode-guide { min-height: 151px; padding-block: 19px; }
  .sale-mode-guide li { min-height: 34px; }
}

@media (max-height: 620px) {
  .sale-sheet-stage .sale-mode-step { gap: 12px; padding-bottom: 7px; }
  .sale-mode-options legend { margin-bottom: 7px; }
  .sale-mode-card { grid-template-rows: minmax(62px, 1fr) auto minmax(32px, auto); padding-block: 16px 10px; gap: 5px; }
  .sale-mode-guide { padding: 10px 12px; }
  .sale-mode-guide li { min-height: 21px; font-size: 13px; }
}

@media (max-width: 350px) {
  .sale-contact-fields { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  [data-sale-form] .option-checks { grid-template-columns: minmax(0, 1fr); }
}
