:root {
  color-scheme: light;
  --bg: oklch(0.985 0.004 210);
  --surface: oklch(1 0 0);
  --surface-subtle: oklch(0.965 0.008 210);
  --surface-strong: oklch(0.935 0.015 205);
  --ink: oklch(0.205 0.018 220);
  --muted: oklch(0.455 0.018 220);
  --line: oklch(0.885 0.010 215);
  --primary: oklch(0.500 0.105 200);
  --primary-strong: oklch(0.425 0.110 200);
  --primary-soft: oklch(0.925 0.035 200);
  --amber: oklch(0.735 0.155 68);
  --amber-soft: oklch(0.955 0.040 78);
  --amber-ink: oklch(0.390 0.105 62);
  --danger: oklch(0.575 0.190 27);
  --danger-soft: oklch(0.948 0.038 27);
  --success: oklch(0.555 0.135 150);
  --focus: oklch(0.650 0.150 235);
  --z-sticky: 20;
  --z-toast: 60;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--focus), transparent 55%);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
dt,
fieldset,
legend {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  letter-spacing: 0;
}

p {
  text-wrap: pretty;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: grid;
  grid-template-columns: 310px minmax(240px, 1fr) auto;
  min-height: 72px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--surface), transparent 3%);
  padding: 10px 24px;
}

.brand,
.quote-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--surface);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand strong,
.brand small,
.quote-brand strong,
.quote-brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  font-weight: 750;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.header-title h1 {
  font-size: 19px;
  font-weight: 720;
}

.header-title p {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  padding: 0 14px;
  font-weight: 650;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

.button svg {
  width: 17px;
  height: 17px;
}

.button-primary {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--surface);
}

.button-primary:hover {
  border-color: var(--primary-strong);
  background: var(--primary-strong);
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: color-mix(in oklch, var(--primary), var(--line) 55%);
  background: var(--primary-soft);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 420px) minmax(640px, 1fr);
  gap: 24px;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 24px;
}

.input-panel,
.quote-sheet {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.input-panel {
  align-self: start;
  overflow: hidden;
}

.panel-heading,
.quote-toolbar,
.quote-section-heading,
.tax-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading {
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
  padding: 18px 20px;
}

.panel-heading h2,
.quote-toolbar h2 {
  font-size: 17px;
  font-weight: 700;
}

.panel-heading p,
.quote-toolbar p,
.quote-section-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.live-badge,
.quote-status,
.tax-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 650;
}

.live-badge > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.form-section {
  padding: 20px;
}

.form-section + .form-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.section-heading h3 {
  font-size: 15px;
  font-weight: 700;
}

.section-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.section-icon svg {
  width: 17px;
  height: 17px;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field-grid + .field,
.field + .field-grid,
.mode-fieldset + .field-grid,
.specified-payment + .field-grid,
.field-grid + .computed-strip,
.field-grid + .tax-block {
  margin-top: 14px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.field > span:first-child,
.mode-fieldset legend {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.field > span:first-child small {
  color: var(--muted);
  font-weight: 500;
}

input,
select {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 11px;
  font-variant-numeric: tabular-nums;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}

input:hover,
select:hover {
  border-color: color-mix(in oklch, var(--primary), var(--line) 55%);
}

input[readonly],
input:disabled,
select:disabled {
  cursor: not-allowed;
  background: var(--surface-subtle);
  color: var(--muted);
}

input::placeholder {
  color: color-mix(in oklch, var(--muted), var(--ink) 18%);
}

.input-affix {
  position: relative;
  display: block;
}

.input-affix > span {
  position: absolute;
  top: 50%;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  pointer-events: none;
  transform: translateY(-50%);
}

.input-affix.prefix > span {
  left: 11px;
}

.input-affix.prefix input {
  padding-left: 28px;
}

.emphasis-input input {
  border-color: var(--primary);
  background: var(--primary-soft);
  font-weight: 700;
}

.field-hint,
.field-error {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.field-error {
  color: var(--danger);
  font-weight: 600;
}

.mode-fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
}

.mode-fieldset legend {
  margin-bottom: 7px;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-subtle);
  padding: 3px;
}

.segmented-control label {
  display: block;
  cursor: pointer;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.segmented-control input:checked + span {
  background: var(--surface);
  color: var(--primary-strong);
  box-shadow: 0 1px 3px color-mix(in oklch, var(--ink), transparent 88%);
}

.segmented-control input:focus-visible + span {
  outline: 3px solid color-mix(in oklch, var(--focus), transparent 55%);
  outline-offset: 1px;
}

.specified-payment {
  margin-top: 14px;
  border-radius: 7px;
  background: var(--primary-soft);
  padding: 14px;
}

.computed-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  border-radius: 7px;
  background: var(--surface-subtle);
  padding: 11px 12px;
}

.computed-strip span {
  color: var(--muted);
  font-size: 12px;
}

.computed-strip strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.computed-strip small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
}

.tax-block {
  border-radius: 7px;
  background: var(--surface-subtle);
  padding: 14px;
}

.tax-header {
  align-items: flex-start;
  margin-bottom: 12px;
}

.tax-header strong,
.tax-header small {
  display: block;
}

.tax-header strong {
  font-size: 13px;
}

.tax-header small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 11px;
}

.check-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 550;
}

.check-control input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.quote-workspace {
  min-width: 0;
}

.quote-toolbar {
  min-height: 50px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.quote-sheet {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
}

.quote-header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 22px;
  min-height: 120px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
  padding: 22px 28px;
}

.quote-brand-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--surface);
}

.quote-brand-icon svg {
  width: 39px;
  height: 30px;
}

.quote-brand strong {
  font-size: 17px;
  font-weight: 750;
}

.quote-brand small {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.quote-heading {
  min-width: 0;
  text-align: center;
}

.quote-heading > span {
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 650;
}

.quote-heading h2 {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 22px;
  font-weight: 750;
}

.quote-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.quote-date {
  text-align: right;
}

.quote-date span,
.quote-date strong {
  display: block;
}

.quote-date span {
  color: var(--muted);
  font-size: 10px;
}

.quote-date strong {
  margin-top: 3px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.metric-item {
  display: grid;
  min-height: 122px;
  align-content: center;
  gap: 4px;
  padding: 20px 24px;
}

.metric-item + .metric-item {
  border-left: 1px solid var(--line);
}

.metric-item > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.metric-item strong {
  font-size: 27px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.metric-item small {
  color: var(--muted);
  font-size: 10px;
}

.metric-primary {
  background: var(--primary-soft);
}

.metric-primary strong {
  color: var(--primary-strong);
}

.specified-note {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid color-mix(in oklch, var(--primary), var(--line) 60%);
  background: var(--primary-soft);
  color: var(--primary-strong);
  padding: 12px 28px;
  font-size: 11px;
}

.specified-note[hidden] {
  display: none;
}

.specified-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.repayment-section,
.detail-section,
.quote-footer {
  padding: 26px 28px;
}

.quote-section-heading h3 {
  font-size: 16px;
  font-weight: 720;
}

.quote-section-heading > span {
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 10px;
}

.repayment-timeline {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.stage-row {
  display: grid;
  grid-template-columns: 42px minmax(190px, 1fr) minmax(180px, 0.9fr) 116px;
  min-height: 116px;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

.stage-row + .stage-row {
  border-top: 1px solid var(--line);
}

.stage-transition {
  background: var(--amber-soft);
}

.stage-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--surface);
  font-weight: 750;
}

.stage-transition .stage-marker {
  background: var(--amber);
  color: var(--amber-ink);
}

.stage-normal .stage-marker {
  background: var(--surface-strong);
  color: var(--primary-strong);
}

.stage-copy > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.stage-copy h4 {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 720;
}

.stage-copy p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.stage-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.stage-formula span {
  border-radius: 5px;
  background: color-mix(in oklch, var(--surface), transparent 8%);
  padding: 5px 7px;
  font-variant-numeric: tabular-nums;
}

.stage-formula b {
  color: var(--ink);
}

.stage-total {
  justify-self: end;
  color: var(--primary-strong);
  font-size: 21px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stage-transition .stage-total {
  color: var(--amber-ink);
}

.detail-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
}

.quote-section-heading.compact {
  display: block;
}

.detail-list {
  margin-top: 14px;
}

.detail-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 33px;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-size: 11px;
}

.detail-list dd {
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.detail-list .detail-total {
  min-height: 40px;
  border-bottom: 0;
}

.detail-list .detail-total dt,
.detail-list .detail-total dd {
  color: var(--ink);
  font-weight: 750;
}

.detail-list .detail-total dd {
  color: var(--primary-strong);
  font-size: 16px;
}

.quote-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.quote-footer strong {
  font-size: 11px;
}

.quote-footer p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: var(--z-toast);
  max-width: min(360px, calc(100vw - 24px));
  border-radius: 7px;
  background: var(--ink);
  color: var(--surface);
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 600;
}

.export-stage {
  position: fixed;
  top: 0;
  left: -12000px;
  width: 920px;
  background: #ffffff;
}

.export-clone {
  width: 920px !important;
  max-width: none !important;
  --bg: #f1f6f3;
  --surface: #ffffff;
  --surface-subtle: #f9fbfa;
  --surface-strong: #e8f0ec;
  --ink: #07100d;
  --muted: #66736f;
  --line: #d9e2de;
  --primary: #12d982;
  --primary-strong: #007b4d;
  --primary-soft: #eff7f3;
  --amber: #12d982;
  --amber-soft: #eff7f3;
  --amber-ink: #007b4d;
  --danger: #c8382d;
  --success: #23835b;
}

.export-clone .stage-formula span {
  background: #ffffff;
}

.export-clone .specified-note {
  border-bottom-color: #b8dfe1;
}

@media (max-width: 1180px) {
  .app-header {
    grid-template-columns: 250px 1fr auto;
  }

  .header-title p,
  .header-actions .button-secondary span {
    display: none;
  }

  .workspace {
    grid-template-columns: 370px minmax(580px, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .quote-header {
    grid-template-columns: 160px minmax(0, 1fr) 100px;
    padding-inline: 22px;
  }

  .metric-item {
    padding-inline: 18px;
  }

  .stage-row {
    grid-template-columns: 38px minmax(170px, 1fr) minmax(150px, 0.8fr) 105px;
    gap: 10px;
    padding-inline: 16px;
  }
}

@media (max-width: 920px) {
  .app-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 16px;
  }

  .header-title {
    display: none;
  }

  .workspace {
    grid-template-columns: 1fr;
    width: min(100%, 760px);
  }

  .quote-workspace {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .app-header {
    min-height: 62px;
    padding: 8px 12px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small,
  .header-actions .button span {
    display: none;
  }

  .header-actions {
    gap: 5px;
  }

  .header-actions .button {
    width: 38px;
    padding: 0;
  }

  .workspace {
    gap: 18px;
    padding: 12px;
  }

  .panel-heading,
  .form-section {
    padding: 16px;
  }

  .two-columns {
    grid-template-columns: 1fr;
  }

  .segmented-control {
    grid-template-columns: 1fr 1.35fr;
  }

  .quote-toolbar {
    align-items: flex-start;
  }

  .quote-toolbar p,
  .quote-status {
    display: none;
  }

  .quote-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 18px;
  }

  .quote-brand-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .quote-brand-icon svg {
    width: 34px;
  }

  .quote-brand strong {
    font-size: 15px;
  }

  .quote-heading {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .quote-heading h2 {
    font-size: 19px;
  }

  .metric-band {
    grid-template-columns: 1fr 1fr;
  }

  .metric-item {
    min-height: 104px;
    padding: 15px 17px;
  }

  .metric-item:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .metric-item strong {
    font-size: 22px;
  }

  .specified-note,
  .repayment-section,
  .detail-section,
  .quote-footer {
    padding-inline: 17px;
  }

  .quote-section-heading {
    align-items: flex-start;
  }

  .stage-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    min-height: 132px;
    gap: 10px;
    padding: 15px 13px;
  }

  .stage-marker {
    width: 30px;
    height: 30px;
  }

  .stage-copy {
    min-width: 0;
  }

  .stage-copy p {
    max-width: 30ch;
  }

  .stage-formula {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .stage-total {
    grid-column: 3;
    grid-row: 1;
    font-size: 18px;
  }

  .detail-section,
  .quote-footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Reference visual pass: green showroom worksheet + vertical customer quote */
:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --surface-subtle: #f6f7f9;
  --surface-strong: #e9edf2;
  --ink: #202a38;
  --muted: #5a6676;
  --line: #d7dde5;
  --primary: #3c7c6d;
  --primary-strong: #2f6257;
  --primary-soft: #e9f2ef;
  --navy: #3b4758;
  --navy-soft: #4b596b;
  --amber: #bf8a32;
  --amber-soft: #faf3e6;
  --amber-ink: #6b4f1e;
  --danger: #c63832;
  --focus: #2e9cff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: 0;
  height: 6px;
  background: #d8dde3;
  content: "";
  pointer-events: none;
}

.app-header {
  display: none;
}

.workspace {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(500px, 0.83fr) minmax(760px, 1.17fr);
  gap: 32px;
  width: min(100%, 1780px);
  padding: 20px 24px 42px;
}

.input-panel,
.quote-workspace {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: none;
}

.input-panel {
  overflow: hidden;
}

.panel-heading {
  position: relative;
  min-height: 104px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 28px 34px 22px 42px;
}

.panel-heading::before {
  position: absolute;
  left: 30px;
  top: 50%;
  width: 8px;
  height: 42px;
  border-radius: 8px;
  background: var(--primary);
  content: "";
  transform: translateY(-50%);
}

.panel-heading h2 {
  font-size: 27px;
  font-weight: 760;
  letter-spacing: 0;
}

.panel-heading p {
  display: none;
}

.live-badge {
  border: 1px solid #c8ded7;
  background: #f3f8f6;
  color: var(--primary-strong);
  padding: 9px 17px;
  font-size: 17px;
  font-weight: 700;
}

.live-badge > span {
  display: none;
}

.form-section {
  padding: 28px 34px 30px;
}

.form-section + .form-section {
  border-top: 1px solid var(--line);
}

.form-section:first-of-type {
  padding-top: 26px;
}

.form-section:first-of-type .section-heading {
  display: none;
}

.form-section:first-of-type > .field-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 22px;
}

.field:has(#customerName) {
  display: none;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h3 {
  font-size: 20px;
  font-weight: 750;
}

.section-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.field-grid,
.installment-term-block {
  gap: 22px;
}

.field-grid + .field,
.field + .field-grid,
.mode-fieldset + .field-grid,
.specified-payment + .field-grid,
.field-grid + .computed-strip,
.field-grid + .tax-block {
  margin-top: 22px;
}

.field {
  gap: 9px;
}

.field > span:first-child,
.mode-fieldset legend {
  color: #53637b;
  font-size: 17px;
  font-weight: 700;
}

.field > span:first-child::before {
  display: inline-block;
  margin-right: 10px;
  border-radius: 7px;
  background: #eef3f8;
  color: #53637b;
  padding: 6px 9px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  content: "填写";
}

.field:has(select) > span:first-child::before,
.mode-fieldset legend::before {
  background: #edf1f5;
  color: #53637b;
  content: "下拉";
}

.field:has(#downPayment) > span:first-child::before,
.field:has(#purchaseTax) > span:first-child::before,
.field:has(#customServiceTerm) > span:first-child::before {
  background: #e3f0ec;
  color: var(--primary-strong);
  content: "可手动修改";
}

.field:has(#msrp) > span:first-child::before,
.field:has(#insuranceFee) > span:first-child::before,
.field:has(#gpsFee) > span:first-child::before {
  content: "填写";
}

input,
select {
  height: 58px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--surface-subtle);
  color: var(--ink);
  padding-inline: 16px;
  font-size: 20px;
  font-weight: 700;
}

input:hover,
select:hover {
  border-color: #b8c9db;
}

input:focus,
select:focus {
  border-color: #76a99c;
  background: var(--surface);
}

.input-affix.prefix > span {
  left: 16px;
  font-size: 17px;
}

.input-affix.prefix input {
  padding-left: 38px;
}

.emphasis-input input,
.field:has(#downPayment) input,
.field:has(#purchaseTax) input[readonly] {
  border-color: #9fc8bd;
  background: #f1f7f5;
  color: var(--primary-strong);
}

input::placeholder {
  color: #697586;
  opacity: 1;
}

.field-hint,
.field-error {
  font-size: 13px;
}

.mode-fieldset {
  margin-bottom: 2px;
}

.mode-fieldset legend {
  margin-bottom: 10px;
}

.segmented-control {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f7fb;
  padding: 4px;
}

.segmented-control span {
  min-height: 42px;
  border-radius: 10px;
  font-size: 15px;
}

.segmented-control input:checked + span {
  background: var(--surface);
  color: var(--primary-strong);
  box-shadow: 0 2px 5px rgba(16, 24, 44, 0.12);
}

.specified-payment,
.tax-block,
.computed-strip,
.installment-term-block {
  border-radius: 16px;
}

.specified-payment {
  border: 1px solid #c7ddd6;
  background: #f3f8f6;
  padding: 18px;
}

.computed-strip {
  grid-template-columns: 1fr auto;
  gap: 5px 16px;
  border: 2px solid #a2c5bb;
  background: #f1f7f5;
  padding: 14px 17px;
}

.computed-strip span {
  color: #4d806f;
  font-size: 17px;
  font-weight: 700;
}

.computed-strip strong {
  color: var(--primary-strong);
  font-size: 25px;
}

.computed-strip small {
  color: #5d8f80;
  font-size: 12px;
}

.installment-term-block {
  border: 1px solid #e4d1a8;
  background: #fbf6ea;
  padding: 18px;
}

.tax-block {
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  padding: 18px;
}

.tax-header strong {
  font-size: 17px;
}

.tax-header small {
  font-size: 12px;
}

.tax-status {
  background: #edf6f3;
  color: var(--primary-strong);
  padding: 7px 10px;
  font-size: 13px;
}

.check-row {
  margin-top: 15px;
  gap: 12px 20px;
}

.check-control {
  font-size: 15px;
}

.check-control input {
  width: 20px;
  height: 20px;
}

.quote-workspace {
  padding: 28px 30px 34px;
}

.quote-toolbar {
  min-height: 72px;
  margin-bottom: 20px;
  padding: 0;
}

.quote-toolbar h2 {
  font-size: 28px;
  font-weight: 780;
}

.quote-toolbar p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
}

.quote-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.toolbar-brand {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c7ddd6;
  border-radius: 12px;
  background: #f3f8f6;
  color: var(--primary-strong);
  padding: 13px 18px;
  font-size: 18px;
  font-weight: 750;
  white-space: nowrap;
}

.toolbar-brand strong {
  color: var(--ink);
}

.header-actions {
  gap: 10px;
}

.button {
  min-height: 52px;
  border-radius: 15px;
  padding-inline: 18px;
  font-size: 17px;
  font-weight: 750;
}

.button-secondary {
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-primary {
  border: 0;
  background: var(--primary);
  box-shadow: none;
}

.quote-sheet {
  display: flex;
  flex-direction: column;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.quote-sheet > .quote-header {
  display: none;
}

.quote-sheet:not(.export-clone) .export-summary {
  display: none;
}

.quote-sheet > .metric-band {
  order: 1;
}

.quote-sheet > .specified-note {
  order: 2;
}

.quote-sheet > .detail-section {
  order: 3;
}

.quote-sheet > .repayment-section {
  order: 4;
}

.quote-sheet > .quote-footer {
  order: 5;
}

.metric-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.metric-item,
.metric-item + .metric-item {
  min-height: 250px;
  align-content: start;
  gap: 12px;
  border: 0;
  border-radius: 16px;
  background: #f3f5f7;
  padding: 30px 28px;
}

.metric-item > span {
  color: #596678;
  font-size: 20px;
  font-weight: 700;
}

.metric-item > span::first-letter {
  color: #596678;
}

.metric-item strong {
  margin-top: 22px;
  color: #2d3848;
  font-size: 56px;
  font-weight: 790;
  line-height: 1;
}

.metric-item small {
  margin-top: auto;
  border-top: 1px solid #dce1e7;
  padding-top: 18px;
  color: #687487;
  font-size: 16px;
}

.metric-item:nth-child(1)::after,
.metric-item:nth-child(2)::after,
.metric-item:nth-child(3)::after {
  position: absolute;
  top: 30px;
  right: 26px;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 700;
}

.metric-item {
  position: relative;
}

.metric-item:nth-child(1)::after {
  background: #e5eeeb;
  color: var(--primary-strong);
  content: "占比 15.0%";
}

.metric-item:nth-child(2)::after {
  border: 1px solid #b9d2cb;
  background: #edf5f2;
  color: var(--primary-strong);
  content: "60期";
}

.metric-item:nth-child(3)::after {
  border: 1px solid #e4d1a8;
  background: #f9f2e4;
  color: var(--amber-ink);
  content: "12期免息";
}

.metric-primary,
.metric-primary strong,
.metric-primary > span,
.metric-primary small {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.metric-item:nth-child(3) strong {
  color: var(--amber-ink);
}

.detail-section {
  display: block;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 17px 22px;
}

.loan-breakdown {
  display: none;
}

.fee-breakdown .quote-section-heading {
  align-items: center;
}

.fee-breakdown .quote-section-heading h3 {
  font-size: 19px;
}

.fee-breakdown .quote-section-heading p {
  display: none;
}

.fee-breakdown .detail-list {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.fee-breakdown .detail-list > div {
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 13px;
  padding: 0 17px;
}

.fee-breakdown .detail-list dt,
.fee-breakdown .detail-list dd {
  font-size: 16px;
}

.fee-breakdown .detail-list .detail-total {
  margin-left: auto;
  border: 0;
  padding: 0;
}

.fee-breakdown .detail-list .detail-total dt {
  color: var(--ink);
  font-weight: 750;
}

.fee-breakdown .detail-list .detail-total dd {
  color: var(--primary);
  font-size: 21px;
}

.repayment-section {
  margin-top: 26px;
  border-radius: 16px;
  background: #f3f5f7;
  color: var(--ink);
  padding: 30px 34px 34px;
}

.repayment-section .quote-section-heading h3 {
  color: var(--ink);
  font-size: 24px;
}

.repayment-section .quote-section-heading p {
  color: var(--muted);
  font-size: 15px;
}

.repayment-section .quote-section-heading > span {
  border: 1px solid #c8d3da;
  background: #ffffff;
  color: var(--muted);
  font-size: 15px;
}

.repayment-timeline {
  gap: 12px;
  margin-top: 22px;
}

.export-later-heading {
  display: none;
}

.stage-row,
.stage-row + .stage-row {
  border: 0;
  border-radius: 12px;
  background: #e8efed;
  padding: 24px 26px;
}

.stage-first {
  min-height: 285px;
  grid-template-columns: 1fr auto;
  gap: 18px 24px;
}

.stage-first .stage-marker {
  display: none;
}

.stage-first .stage-copy {
  grid-column: 1 / -1;
}

.stage-first .stage-copy > span,
.stage-first .stage-copy p {
  color: #5d6d6a;
  font-size: 16px;
}

.stage-first .stage-copy h4 {
  margin-top: 8px;
  color: #24332f;
  font-size: 24px;
}

.stage-first .stage-formula {
  grid-column: 1;
  align-self: end;
}

.stage-first .stage-formula span {
  background: #dce8e4;
  color: #465c56;
  font-size: 17px;
}

.stage-first .stage-total {
  grid-column: 2;
  align-self: end;
  color: var(--primary-strong);
  font-size: 64px;
}

.stage-transition,
.stage-normal {
  color: var(--ink);
}

.stage-transition {
  background: var(--amber-soft);
}

.stage-normal {
  background: #e9edf2;
}

.stage-transition .stage-copy > span,
.stage-normal .stage-copy > span {
  color: #717c92;
  font-size: 15px;
}

.stage-transition .stage-copy h4,
.stage-normal .stage-copy h4 {
  font-size: 21px;
}

.stage-transition .stage-copy p,
.stage-normal .stage-copy p {
  color: #69768a;
  font-size: 14px;
}

.stage-transition .stage-total {
  color: var(--amber-ink);
  font-size: 30px;
}

.stage-normal .stage-total {
  color: var(--ink);
  font-size: 30px;
}

.stage-transition .stage-marker {
  background: var(--amber);
  color: var(--amber-ink);
}

.stage-normal .stage-marker {
  background: #dfe4ed;
  color: #6d788b;
}

.quote-footer {
  border-top: 1px dashed var(--line);
  background: var(--surface);
  padding: 22px 4px 0;
}

.quote-footer p {
  font-size: 13px;
}

/* Export-only vertical quotation */
.export-clone {
  display: block !important;
  width: 920px !important;
  min-height: 1480px;
  border: 2px solid #dbe4ee !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  padding: 46px 52px 34px !important;
  color: #121a2d !important;
}

.export-clone .quote-header {
  position: relative;
  display: block !important;
  min-height: 0;
  padding: 0 0 28px;
  border-bottom: 2px solid #edf1f6;
  background: #ffffff;
}

.export-clone .quote-brand {
  display: block;
  width: fit-content;
  margin-top: 58px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.export-clone .quote-brand-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 86px;
  height: 86px;
  border-radius: 16px;
  background: var(--navy);
  color: #b7d8cf;
}

.export-clone .quote-brand-icon svg {
  width: 58px;
  height: 44px;
}

.export-clone .quote-brand strong {
  color: var(--ink);
  font-size: 24px;
}

.export-clone .quote-brand small {
  color: var(--primary-strong);
  font-size: 14px;
}

.export-clone .quote-brand > span:last-child {
  display: inline-block;
  border: 1px solid #c9dcd7;
  border-radius: 12px;
  background: #f1f6f4;
  padding: 12px 20px;
}

.export-clone .quote-heading {
  margin-top: 45px;
  text-align: left;
}

.export-clone .quote-heading > span {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--primary-strong);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.export-clone .quote-heading h2 {
  margin-top: 20px;
  color: var(--ink);
  font-size: 42px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.22;
  text-wrap: balance;
}

.export-clone .quote-heading p {
  margin-top: 9px;
  color: #526276;
  font-size: 21px;
}

.export-clone .quote-date {
  display: none;
}

.export-clone .quote-header::before {
  display: block;
  color: var(--primary-strong);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  content: "AUTOMOBILE QUOTATION";
}

.export-clone .quote-header::after {
  position: absolute;
  top: 58px;
  left: 0;
  border: 1px solid #c9dcd7;
  border-radius: 12px;
  background: #f1f6f4;
  color: var(--primary-strong);
  padding: 12px 20px;
  font-size: 22px;
  font-weight: 800;
  content: "一程车 · 新能源订阅中心";
}

.export-clone .quote-brand {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  margin: 0;
}

.export-clone .quote-brand-icon {
  position: static;
}

.export-clone .quote-brand > span:last-child,
.export-clone .quote-heading > span {
  display: none;
}

.export-clone .quote-heading {
  margin-top: 104px;
}

.export-clone .export-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 36px 0 34px;
  overflow: hidden;
  border: 2px solid #e8eef4;
  border-radius: 14px;
  background: #f8fafc;
}

.export-clone .export-summary > div,
.export-clone .export-summary > div:last-child {
  min-height: 92px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e5ebf2;
  background: transparent;
  padding: 20px 26px;
}

.export-clone .export-summary > div:nth-child(3) {
  display: none;
}

.export-clone .export-summary > div:last-child {
  border-bottom: 0;
}

.export-clone .export-summary span,
.export-clone .export-summary small {
  color: #536276;
  font-size: 21px;
}

.export-clone .export-summary strong {
  color: var(--ink);
  font-size: 28px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.export-clone .export-summary small {
  grid-column: 2;
  grid-row: 2;
  margin-top: -12px;
  font-size: 15px;
}

.export-clone .metric-band,
.export-clone .specified-note,
.export-clone .detail-section {
  display: none !important;
}

.export-clone .repayment-section {
  margin-top: 0;
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  padding: 0;
}

.export-clone .repayment-section .quote-section-heading {
  display: none;
}

.export-clone .repayment-section .quote-section-heading h3 {
  color: var(--ink);
  font-size: 28px;
}

.export-clone .repayment-section .quote-section-heading p {
  display: none;
}

.export-clone .repayment-section .quote-section-heading > span {
  display: none;
}

.export-clone .repayment-timeline {
  display: grid;
  gap: 18px;
  margin-top: 0;
}

.export-clone .export-later-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 12px 2px 2px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 740;
}

.export-clone .export-later-heading svg {
  width: 31px;
  height: 31px;
  color: var(--primary);
}

.export-clone .stage-first {
  display: grid !important;
  min-height: 276px;
  grid-template-columns: 1fr auto;
  border-radius: 16px;
  background: var(--navy);
  color: #ffffff;
  padding: 36px 38px 32px;
}

.export-clone .stage-first .stage-copy > span {
  color: #d2dae5;
  font-size: 23px;
}

.export-clone .stage-first .stage-copy h4 {
  margin-top: 11px;
  color: #f9fbff;
  font-size: 31px;
}

.export-clone .stage-first .stage-copy p {
  display: none;
}

.export-clone .stage-first .stage-formula span {
  background: transparent;
  padding: 0;
  color: #e7ecf3;
  font-size: 22px;
}

.export-clone .stage-first .stage-formula b {
  display: none;
}

.export-clone .stage-first .stage-total {
  color: #c4e1d9;
  font-size: 62px;
  font-variant-numeric: tabular-nums;
}

.export-clone .stage-transition,
.export-clone .stage-normal {
  display: grid;
  min-height: 154px;
  grid-template-columns: 1fr auto;
  border-radius: 14px;
  padding: 28px 30px;
}

.export-clone .stage-transition {
  background: var(--amber-soft);
}

.export-clone .stage-normal {
  background: #f6f8fb;
}

.export-clone .stage-transition .stage-marker,
.export-clone .stage-normal .stage-marker,
.export-clone .stage-transition .stage-formula,
.export-clone .stage-normal .stage-formula {
  display: none;
}

.export-clone .stage-transition .stage-copy h4,
.export-clone .stage-normal .stage-copy h4 {
  margin-top: 8px;
  font-size: 29px;
}

.export-clone .stage-transition .stage-copy p,
.export-clone .stage-normal .stage-copy p {
  margin-top: 6px;
  color: #4e5d70;
  font-size: 21px;
  line-height: 1.45;
}

.export-clone .stage-transition .stage-total,
.export-clone .stage-normal .stage-total {
  align-self: center;
  font-size: 36px;
  font-variant-numeric: tabular-nums;
}

.export-clone .stage-transition .stage-total::after,
.export-clone .stage-normal .stage-total::after {
  margin-left: 2px;
  font-size: 20px;
  font-weight: 700;
  content: "/月";
}

.export-clone .quote-footer {
  display: block;
  border-top: 2px dashed #e2e9f1;
  margin-top: 30px;
  padding: 22px 0 0;
  text-align: center;
}

.export-clone .quote-footer > div {
  display: none;
}

.export-clone .quote-footer > p {
  color: #5f6d80;
  font-size: 19px;
  line-height: 1.55;
}

@media (max-width: 1380px) {
  .workspace {
    grid-template-columns: minmax(430px, 0.9fr) minmax(620px, 1.1fr);
    gap: 20px;
    padding-inline: 16px;
  }

  .quote-workspace {
    padding-inline: 22px;
  }

  .toolbar-brand {
    display: none;
  }

  .metric-item,
  .metric-item + .metric-item {
    padding-inline: 22px;
  }

  .metric-item strong {
    font-size: 45px;
  }
}

@media (max-width: 920px) {
  .workspace {
    grid-template-columns: 1fr;
    width: min(100%, 780px);
    padding: 16px;
  }

  .quote-workspace {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  body::before {
    height: 4px;
  }

  .workspace {
    gap: 16px;
    padding: 12px;
  }

  .input-panel,
  .quote-workspace {
    border-radius: 20px;
  }

  .panel-heading {
    min-height: 82px;
    padding: 22px 20px 18px 34px;
  }

  .panel-heading::before {
    left: 22px;
    width: 6px;
    height: 34px;
  }

  .panel-heading h2 {
    font-size: 23px;
  }

  .live-badge {
    padding: 7px 10px;
    font-size: 13px;
  }

  .form-section {
    padding: 22px 18px 24px;
  }

  .two-columns,
  .installment-term-block {
    grid-template-columns: 1fr;
  }

  input,
  select {
    height: 52px;
    font-size: 18px;
  }

  .quote-workspace {
    padding: 18px 14px 24px;
  }

  .quote-toolbar {
    min-height: 60px;
    align-items: flex-start;
  }

  .quote-toolbar h2 {
    font-size: 22px;
  }

  .quote-toolbar p,
  .button-secondary span {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .button {
    min-height: 42px;
    width: 42px;
    padding: 0;
  }

  .button-primary {
    width: 48px;
  }

  .metric-band {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metric-item,
  .metric-item + .metric-item {
    min-height: 190px;
  }

  .metric-item strong {
    font-size: 45px;
  }

  .detail-section {
    padding: 14px;
  }

  .fee-breakdown .detail-list {
    flex-wrap: wrap;
  }

  .fee-breakdown .detail-list .detail-total {
    width: 100%;
    justify-content: space-between;
  }

  .repayment-section {
    padding: 22px 16px 20px;
  }

  .stage-first {
    min-height: 240px;
    grid-template-columns: 1fr;
  }

  .stage-first .stage-total {
    grid-column: 1;
    font-size: 51px;
  }

  .stage-first .stage-formula {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 0px) {
/* Legacy Apple-inspired product surface, retained for reference only. */
:root {
  --bg: oklch(0.972 0.004 260);
  --surface: oklch(1 0 0);
  --surface-subtle: oklch(0.965 0.006 260);
  --surface-strong: oklch(0.925 0.008 260);
  --ink: oklch(0.220 0.006 270);
  --muted: oklch(0.500 0.012 260);
  --line: oklch(0.860 0.008 260);
  --primary: oklch(0.565 0.205 253);
  --primary-strong: oklch(0.505 0.190 253);
  --primary-soft: oklch(0.945 0.030 250);
  --amber: oklch(0.760 0.175 70);
  --amber-soft: oklch(0.960 0.040 75);
  --amber-ink: oklch(0.390 0.105 62);
  --danger: oklch(0.570 0.210 25);
  --success: oklch(0.600 0.155 150);
  --focus: oklch(0.650 0.180 245);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.app-header {
  min-height: 76px;
  border-bottom: 0;
  background: color-mix(in oklch, var(--surface), transparent 4%);
  box-shadow: 0 1px 0 color-mix(in oklch, var(--ink), transparent 91%);
  padding-inline: 32px;
}

.brand-mark,
.quote-brand-icon {
  border-radius: 12px;
  background: var(--ink);
}

.brand strong,
.quote-brand strong {
  font-weight: 720;
}

.header-title h1 {
  font-size: 20px;
  font-weight: 720;
}

.button {
  min-height: 40px;
  border-radius: 999px;
  padding-inline: 17px;
  font-weight: 650;
}

.button-primary {
  border: 0;
  background: var(--primary);
}

.button-primary:hover {
  border: 0;
  background: var(--primary-strong);
}

.button-secondary {
  border: 0;
  background: var(--surface-strong);
}

.button-secondary:hover {
  border: 0;
  background: color-mix(in oklch, var(--surface-strong), var(--ink) 5%);
}

.workspace {
  grid-template-columns: minmax(380px, 430px) minmax(640px, 1fr);
  gap: 28px;
  width: min(100%, 1520px);
  padding: 30px 32px 48px;
}

.input-panel,
.quote-sheet {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 2px 8px color-mix(in oklch, var(--ink), transparent 93%);
}

.panel-heading {
  border-bottom: 0;
  background: var(--surface);
  padding: 24px 24px 18px;
}

.panel-heading h2,
.quote-toolbar h2 {
  font-size: 18px;
  font-weight: 720;
}

.live-badge,
.quote-status,
.tax-status {
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  padding: 6px 10px;
}

.form-section {
  padding: 22px 24px 24px;
}

.form-section + .form-section {
  border-top: 1px solid color-mix(in oklch, var(--line), transparent 35%);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h3 {
  font-size: 16px;
  font-weight: 690;
}

.section-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}

input,
select {
  height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface-subtle);
  padding-inline: 13px;
}

input:hover,
select:hover {
  border-color: var(--line);
}

input:focus,
select:focus {
  border-color: var(--primary);
  background: var(--surface);
}

input[readonly],
input:disabled,
select:disabled {
  border-color: transparent;
  background: var(--surface-strong);
}

.input-affix.prefix > span {
  left: 13px;
}

.input-affix.prefix input {
  padding-left: 30px;
}

.input-affix.suffix > span {
  right: 13px;
}

.input-affix.suffix input {
  padding-right: 34px;
}

.emphasis-input input {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.segmented-control {
  border: 0;
  border-radius: 12px;
  background: var(--surface-strong);
  padding: 4px;
}

.segmented-control span {
  min-height: 36px;
  border-radius: 9px;
}

.segmented-control input:checked + span {
  color: var(--ink);
  box-shadow: 0 1px 3px color-mix(in oklch, var(--ink), transparent 82%);
}

.specified-payment,
.tax-block,
.computed-strip {
  border-radius: 14px;
}

.specified-payment,
.computed-strip {
  background: var(--primary-soft);
}

.computed-strip {
  padding: 14px 15px;
}

.tax-block {
  background: var(--surface-subtle);
  padding: 16px;
}

.installment-term-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  border-radius: 14px;
  background: var(--primary-soft);
  padding: 14px;
}

.check-control input {
  accent-color: var(--primary);
}

.quote-toolbar {
  min-height: 54px;
  margin-bottom: 12px;
}

.quote-sheet {
  max-width: 1000px;
}

.quote-header {
  min-height: 132px;
  border-bottom: 0;
  background: var(--surface);
  padding: 26px 30px 20px;
}

.quote-heading > span {
  color: var(--primary);
}

.quote-heading h2 {
  font-size: 24px;
  font-weight: 730;
}

.export-summary {
  display: none;
}

.metric-band {
  margin: 0 24px 24px;
  border-bottom: 0;
  border-radius: 16px;
  background: var(--surface-subtle);
  overflow: hidden;
}

.metric-item {
  min-height: 120px;
  padding: 22px 24px;
}

.metric-item + .metric-item {
  border-left-color: var(--surface);
}

.metric-primary {
  background: var(--primary);
  color: var(--surface);
}

.metric-primary > span,
.metric-primary strong,
.metric-primary small {
  color: var(--surface);
}

.specified-note {
  margin: 0 24px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  padding: 13px 15px;
}

.repayment-section {
  padding: 24px 24px 30px;
}

.quote-section-heading h3 {
  font-size: 18px;
  font-weight: 710;
}

.quote-section-heading > span {
  background: var(--surface-subtle);
  padding: 7px 11px;
}

.repayment-timeline {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.stage-row {
  border-radius: 14px;
  background: var(--surface-subtle);
  padding: 20px 22px;
}

.stage-row + .stage-row {
  border-top: 0;
}

.stage-transition {
  background: var(--primary-soft);
}

.stage-marker,
.stage-transition .stage-marker {
  background: var(--primary);
  color: var(--surface);
}

.stage-normal .stage-marker {
  background: var(--surface-strong);
  color: var(--muted);
}

.stage-total,
.stage-transition .stage-total {
  color: var(--primary);
  font-weight: 730;
}

.detail-section {
  border-top: 0;
  background: var(--surface-subtle);
  padding: 28px 30px;
}

.detail-list .detail-total dd {
  color: var(--primary);
}

.quote-footer {
  border-top-color: var(--line);
  border-radius: 0 0 16px 16px;
}

.toast {
  border-radius: 12px;
  background: color-mix(in oklch, var(--ink), transparent 4%);
  padding: 12px 16px;
}

.export-clone {
  border-radius: 16px !important;
  box-shadow: none !important;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-subtle: #f2f2f7;
  --surface-strong: #e8e8ed;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --primary: #0071e3;
  --primary-strong: #0066cc;
  --primary-soft: #eaf3ff;
  --amber: #ff9f0a;
  --amber-soft: #fff5e3;
  --amber-ink: #6a4708;
  --danger: #ff3b30;
  --success: #34c759;
}

.export-clone .metric-band,
.export-clone .specified-note,
.export-clone .stage-first,
.export-clone .detail-section,
.export-clone .quote-footer {
  display: none !important;
}

.export-clone .export-summary {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.4fr;
  gap: 1px;
  margin: 0 28px 12px;
  border-radius: 16px;
  background: #d2d2d7;
  overflow: hidden;
}

.export-clone .export-summary > div {
  display: grid;
  min-height: 122px;
  align-content: center;
  gap: 5px;
  background: #f2f2f7;
  padding: 20px 22px;
}

.export-clone .export-summary > div:last-child {
  background: #eaf3ff;
}

.export-clone .export-summary span,
.export-clone .export-summary small {
  color: #6e6e73;
  font-size: 11px;
}

.export-clone .export-summary strong {
  color: #1d1d1f;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.export-clone .repayment-section {
  padding-top: 22px;
}

.export-clone .repayment-timeline {
  grid-template-columns: 1fr;
}

@media (max-width: 920px) {
  .workspace {
    grid-template-columns: 1fr;
    width: min(100%, 780px);
    padding: 20px;
  }
}

@media (max-width: 620px) {
  .app-header {
    min-height: 64px;
    padding-inline: 12px;
  }

  .workspace {
    padding: 12px;
  }

  .input-panel,
  .quote-sheet {
    border-radius: 16px;
  }

  .panel-heading,
  .form-section {
    padding-inline: 18px;
  }

  .installment-term-block {
    grid-template-columns: 1fr;
  }

  .quote-header {
    padding: 20px;
  }

  .metric-band {
    margin-inline: 14px;
  }

  .specified-note {
    margin-inline: 14px;
  }

  .repayment-section {
    padding-inline: 14px;
  }

  .stage-row {
    padding: 16px 14px;
  }
}
}

/* Final reference alignment: lightEV green, stable responsive grid, readable quote export. */
:root {
  --bg: #f1f6f3;
  --surface: #ffffff;
  --surface-subtle: #f9fbfa;
  --surface-strong: #e8f0ec;
  --ink: #07100d;
  --muted: #66736f;
  --line: #d9e2de;
  --primary: #12d982;
  --primary-strong: #007b4d;
  --primary-soft: #eff7f3;
  --navy: #07100d;
  --navy-soft: #10241c;
  --amber: #12d982;
  --amber-soft: #eff7f3;
  --amber-ink: #007b4d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
}

body::before {
  height: 4px;
  background: var(--primary);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  width: min(100%, 1600px);
  padding: 24px 20px 44px;
}

.input-panel,
.quote-workspace {
  min-width: 0;
  border: 1px solid rgba(8, 17, 14, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 12px rgba(8, 17, 14, 0.04);
}

.input-panel {
  overflow: hidden;
}

.panel-heading {
  min-height: 86px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 22px 28px;
}

.panel-heading::before {
  left: 22px;
  width: 6px;
  height: 34px;
  border-radius: 6px;
  background: var(--primary);
}

.panel-heading h2 {
  margin-left: 12px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
}

.live-badge {
  border: 1px solid rgba(18, 217, 130, 0.28);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
}

.form-section {
  padding: 24px 28px 28px;
}

.form-section + .form-section {
  border-top: 1px solid var(--line);
}

.form-section:first-of-type {
  padding-top: 22px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h3 {
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
}

.section-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.field-grid,
.installment-term-block {
  gap: 16px;
}

.field-grid + .field,
.field + .field-grid,
.mode-fieldset + .field-grid,
.specified-payment + .field-grid,
.field-grid + .computed-strip,
.field-grid + .tax-block {
  margin-top: 18px;
}

.field {
  min-width: 0;
  gap: 7px;
}

.field > span:first-child,
.mode-fieldset legend {
  color: #40534b;
  font-size: 14px;
  font-weight: 800;
}

.field > span:first-child::before,
.field:has(select) > span:first-child::before,
.mode-fieldset legend::before,
.field:has(#downPayment) > span:first-child::before,
.field:has(#purchaseTax) > span:first-child::before,
.field:has(#customServiceTerm) > span:first-child::before {
  display: none;
}

input,
select {
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  min-width: 0;
  border: 1px solid rgba(8, 17, 14, 0.1);
  border-radius: 14px;
  background: #f9fbfa;
  color: var(--ink);
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 750;
}

input:hover,
select:hover {
  border-color: rgba(0, 123, 77, 0.35);
}

input:focus,
select:focus {
  border-color: var(--primary-strong);
  outline: 3px solid rgba(18, 217, 130, 0.18);
  background: #ffffff;
}

input::placeholder {
  color: #78847f;
  opacity: 1;
}

.input-affix.prefix > span {
  left: 14px;
  color: var(--muted);
  font-size: 16px;
}

.input-affix.prefix input {
  padding-left: 34px;
}

.emphasis-input input,
.field:has(#downPayment) input,
.field:has(#purchaseTax) input[readonly],
.computed-strip {
  border-color: rgba(0, 123, 77, 0.16);
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.computed-strip {
  border-width: 1px;
  border-radius: 14px;
  padding: 13px 15px;
}

.computed-strip span,
.computed-strip small {
  color: var(--primary-strong);
}

.computed-strip strong {
  color: var(--primary-strong);
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}

.mode-fieldset legend {
  margin-bottom: 9px;
}

.segmented-control {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f4f8f6;
  padding: 4px;
}

.segmented-control label {
  min-width: 0;
  border-radius: 11px;
  color: #40534b;
  padding: 11px 10px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.segmented-control label:has(input:checked) {
  background: var(--navy);
  color: #ffffff;
}

.installment-term-block {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8fbf9;
  padding: 15px;
}

.tax-status {
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.button {
  min-height: 46px;
  border-radius: 999px;
  padding-inline: 16px;
  font-size: 14px;
  font-weight: 800;
}

.button-secondary {
  border: 1px solid rgba(8, 17, 14, 0.12);
  background: #ffffff;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: rgba(0, 123, 77, 0.35);
  background: var(--primary-soft);
}

.button-primary {
  border: 0;
  background: var(--navy);
  box-shadow: none;
}

.quote-workspace {
  overflow: hidden;
}

.quote-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 24px 28px 22px;
}

.quote-title-editor {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.quote-title-editor > span {
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 850;
}

.quote-title-editor #vehicleName {
  height: 62px;
  border: 1px solid rgba(0, 123, 77, 0.24);
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--ink);
  padding: 0 18px;
  font-size: 27px;
  font-weight: 850;
}

.quote-title-editor #vehicleName:focus {
  border-color: var(--primary-strong);
  outline: 3px solid rgba(18, 217, 130, 0.2);
}

.quote-title-editor small {
  color: var(--muted);
  font-size: 12px;
}

.quote-toolbar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 0;
}

.toolbar-brand {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(18, 217, 130, 0.28);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.toolbar-brand strong {
  color: var(--ink);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.quote-sheet > .metric-band,
.quote-sheet > .specified-note,
.quote-sheet > .detail-section,
.quote-sheet > .repayment-section,
.quote-sheet > .quote-footer {
  margin-left: 28px;
  margin-right: 28px;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 22px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.metric-item,
.metric-item + .metric-item {
  min-width: 0;
  min-height: 166px;
  border: 1px solid rgba(8, 17, 14, 0.1);
  border-radius: 16px;
  background: #f9fbfa;
  padding: 21px 20px;
}

.metric-item > span {
  color: #53635c;
  font-size: 14px;
  font-weight: 800;
}

.metric-item strong {
  display: block;
  margin-top: 24px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 40px;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-item small {
  display: block;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.metric-item:nth-child(1)::after,
.metric-item:nth-child(2)::after,
.metric-item:nth-child(3)::after {
  top: 18px;
  right: 18px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
}

.metric-item:nth-child(1)::after,
.metric-item:nth-child(2)::after {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.metric-item:nth-child(3)::after {
  background: var(--navy);
  color: var(--primary);
}

.metric-primary,
.metric-primary strong,
.metric-primary > span,
.metric-primary small {
  background: var(--navy);
  color: #ffffff;
}

.metric-primary small {
  border-top-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
}

.metric-band .metric-item.metric-primary {
  background: var(--navy);
}

.metric-band .metric-item.metric-primary > span,
.metric-band .metric-item.metric-primary strong,
.metric-band .metric-item.metric-primary small {
  background: transparent;
}

.metric-item:nth-child(3) {
  background: var(--primary-soft);
}

.metric-item:nth-child(3) strong {
  color: var(--primary-strong);
}

.detail-section {
  margin-top: 18px;
  border: 1px solid rgba(8, 17, 14, 0.1);
  border-radius: 16px;
  background: #ffffff;
  padding: 18px 20px;
}

.fee-breakdown .detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.fee-breakdown .detail-list > div {
  min-width: 0;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbfa;
  padding: 10px 12px;
}

.fee-breakdown .detail-list dt,
.fee-breakdown .detail-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.fee-breakdown .detail-list dd {
  color: var(--ink);
  font-weight: 800;
}

.fee-breakdown .detail-list .detail-total {
  margin-left: 0;
  border-color: rgba(0, 123, 77, 0.2);
  background: var(--primary-soft);
}

.fee-breakdown .detail-list .detail-total dd {
  color: var(--primary-strong);
  font-size: 18px;
}

.repayment-section {
  margin-top: 18px;
  border: 1px solid rgba(8, 17, 14, 0.1);
  border-radius: 22px;
  background: #ffffff;
  color: var(--ink);
  padding: 24px;
}

.repayment-section .quote-section-heading h3 {
  color: var(--ink);
  font-size: 22px;
}

.repayment-section .quote-section-heading p {
  color: var(--muted);
  font-size: 14px;
}

.repayment-section .quote-section-heading > span {
  border: 1px solid rgba(18, 217, 130, 0.3);
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 13px;
}

.repayment-timeline {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.stage-row,
.stage-row + .stage-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 6px 16px;
  min-width: 0;
  border: 1px solid rgba(8, 17, 14, 0.08);
  border-radius: 16px;
  background: #f4f8f6;
  padding: 20px 22px;
}

.stage-marker {
  display: flex;
  grid-column: 1;
  grid-row: 1 / 3;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--navy);
  font-weight: 850;
}

.stage-copy {
  grid-column: 2;
  min-width: 0;
}

.stage-copy > span,
.stage-copy p {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
}

.stage-copy h4 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
}

.stage-copy p {
  margin-top: 5px;
  color: #53635c;
  font-size: 14px;
  line-height: 1.4;
}

.stage-formula {
  display: flex;
  grid-column: 2;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #40534b;
}

.stage-formula span {
  max-width: 100%;
  overflow-wrap: anywhere;
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 13px;
}

.stage-total {
  display: flex;
  grid-column: 3;
  grid-row: 1 / 3;
  align-items: center;
  align-self: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--primary-strong);
  font-size: 38px;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.stage-first {
  min-height: 0;
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.stage-first .stage-marker {
  background: var(--primary);
  color: var(--navy);
}

.stage-first .stage-copy > span,
.stage-first .stage-copy p {
  color: rgba(255, 255, 255, 0.68);
}

.stage-first .stage-copy h4 {
  color: #ffffff;
}

.stage-first .stage-formula,
.stage-first .stage-formula span {
  color: rgba(255, 255, 255, 0.82);
}

.stage-first .stage-total {
  color: var(--primary);
}

.stage-transition {
  background: var(--primary-soft);
  border-color: rgba(0, 123, 77, 0.14);
}

.stage-transition .stage-marker {
  background: var(--primary-strong);
  color: #ffffff;
}

.stage-transition .stage-total {
  color: var(--primary-strong);
}

.stage-normal {
  background: #f4f7f5;
}

.stage-normal .stage-marker {
  background: #dce7e2;
  color: #53635c;
}

.stage-normal .stage-total {
  color: var(--ink);
}

.quote-footer {
  border-top-color: var(--line);
  background: #ffffff;
  padding-top: 18px;
}

/* Customer-facing export uses the same black / green / porcelain palette. */
.export-clone {
  width: 920px !important;
  min-height: 0 !important;
  border: 1px solid rgba(8, 17, 14, 0.12) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  padding: 42px 50px 34px !important;
  color: var(--ink) !important;
}

.export-clone .quote-header {
  min-height: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.export-clone .quote-header::before {
  color: var(--primary-strong);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
  content: "一程车 · 新能源订阅中心";
}

.export-clone .quote-header::after,
.export-clone .quote-brand > span:last-child,
.export-clone .quote-heading > span {
  display: none;
}

.export-clone .quote-brand {
  top: 0;
  right: 0;
  margin: 0;
}

.export-clone .quote-brand-icon {
  position: static;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--primary);
}

.export-clone .quote-brand-icon svg {
  width: 48px;
  height: 34px;
}

.export-clone .quote-heading {
  margin-top: 40px;
  padding-right: 90px;
  text-align: left;
}

.export-clone .quote-heading h2 {
  margin-top: 0;
  max-width: 700px;
  color: var(--ink);
  font-size: 44px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.export-clone .quote-heading p {
  margin-top: 12px;
  color: #53635c;
  font-size: 18px;
  line-height: 1.45;
}

.export-clone .export-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 26px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.export-clone .export-summary > div,
.export-clone .export-summary > div:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 124px;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(0, 123, 77, 0.16);
  border-radius: 16px;
  background: var(--primary-soft);
  padding: 20px 24px;
}

.export-clone .export-summary > div:nth-child(3) {
  display: none;
}

.export-clone .export-summary span {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--primary-strong);
  font-size: 19px;
  font-weight: 750;
}

.export-clone .export-summary strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 34px;
  font-weight: 850;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.export-clone .export-summary > div:nth-child(2) strong {
  font-size: 28px;
  line-height: 1.25;
}

.export-clone .repayment-section {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  padding: 0;
}

.export-clone .repayment-timeline {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.export-clone .export-later-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 2px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 850;
}

.export-clone .export-later-heading svg {
  width: 28px;
  height: 28px;
  color: var(--primary-strong);
}

.export-clone .stage-first {
  display: grid !important;
  min-height: 250px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 9px 18px;
  border: 0;
  border-radius: 18px;
  background: var(--navy);
  padding: 32px 34px;
}

.export-clone .stage-first .stage-marker {
  display: flex;
  grid-column: 1;
  grid-row: 1 / 3;
}

.export-clone .stage-first .stage-copy {
  grid-column: 2;
}

.export-clone .stage-first .stage-copy > span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 20px;
}

.export-clone .stage-first .stage-copy h4 {
  margin-top: 7px;
  color: #ffffff;
  font-size: 31px;
}

.export-clone .stage-first .stage-copy p {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.export-clone .stage-first .stage-formula {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.86);
}

.export-clone .stage-first .stage-formula span {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 20px;
}

.export-clone .stage-first .stage-total {
  display: flex;
  grid-column: 3;
  grid-row: 1 / 3;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  color: var(--primary);
  font-size: 58px;
}

.export-clone .stage-first .stage-total::before {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  font-weight: 750;
  content: "提车应付";
}

.export-clone .stage-transition,
.export-clone .stage-normal {
  display: grid;
  min-height: 142px;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(8, 17, 14, 0.08);
  border-radius: 16px;
  padding: 24px 28px;
}

.export-clone .stage-transition {
  background: var(--primary-soft);
  border-color: rgba(0, 123, 77, 0.14);
}

.export-clone .stage-normal {
  background: #f4f7f5;
}

.export-clone .stage-transition .stage-marker,
.export-clone .stage-normal .stage-marker,
.export-clone .stage-transition .stage-formula,
.export-clone .stage-normal .stage-formula {
  display: none;
}

.export-clone .stage-transition .stage-copy h4,
.export-clone .stage-normal .stage-copy h4 {
  margin-top: 7px;
  font-size: 28px;
}

.export-clone .stage-transition .stage-copy,
.export-clone .stage-normal .stage-copy {
  grid-column: 1;
  min-width: 0;
}

.export-clone .stage-transition .stage-copy > span,
.export-clone .stage-normal .stage-copy > span {
  color: #53635c;
  font-size: 19px;
}

.export-clone .stage-transition .stage-copy p,
.export-clone .stage-normal .stage-copy p {
  display: block;
  margin-top: 7px;
  color: #53635c;
  font-size: 18px;
  line-height: 1.45;
}

.export-clone .stage-transition .stage-total,
.export-clone .stage-normal .stage-total {
  display: block;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--primary-strong);
  font-size: 37px;
  white-space: nowrap;
}

.export-clone .stage-normal .stage-total {
  color: var(--ink);
}

.export-clone .stage-transition .stage-total::after,
.export-clone .stage-normal .stage-total::after {
  margin-left: 4px;
  color: inherit;
  font-size: 20px;
  font-weight: 750;
  content: "/月";
}

.export-clone .quote-footer {
  margin: 28px 0 0;
  border-top: 1px dashed var(--line);
  padding: 20px 0 0;
  text-align: center;
}

.export-clone .quote-footer > p {
  color: #66736f;
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 1400px) {
  .quote-toolbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .quote-toolbar-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .toolbar-brand {
    display: none;
  }

  .metric-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-item strong {
    font-size: 31px;
    white-space: nowrap;
  }

  .fee-breakdown .detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fee-breakdown .detail-list .detail-total {
    grid-column: span 2;
  }
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: 1fr;
    width: min(100%, 820px);
    padding: 18px 16px 36px;
  }

  .quote-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .workspace {
    gap: 14px;
    padding: 12px 10px 28px;
  }

  .input-panel,
  .quote-workspace {
    border-radius: 18px;
  }

  .panel-heading {
    min-height: 72px;
    padding: 18px 20px 18px 38px;
  }

  .panel-heading::before {
    left: 20px;
    width: 5px;
    height: 30px;
  }

  .panel-heading h2 {
    margin-left: 0;
    font-size: 22px;
  }

  .live-badge {
    padding: 7px 10px;
    font-size: 12px;
  }

  .form-section {
    padding: 20px 18px 22px;
  }

  .two-columns,
  .installment-term-block {
    grid-template-columns: 1fr;
  }

  input,
  select {
    height: 48px;
    font-size: 16px;
  }

  .quote-toolbar {
    padding: 18px 16px 16px;
  }

  .quote-title-editor #vehicleName {
    height: 56px;
    font-size: 22px;
  }

  .quote-toolbar-actions {
    align-items: stretch;
  }

  .header-actions {
    justify-content: stretch;
  }

  .button {
    min-height: 44px;
  }

  .button-secondary,
  .button-primary {
    flex: 1 1 0;
    min-width: 0;
  }

  .button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .quote-sheet > .metric-band,
  .quote-sheet > .specified-note,
  .quote-sheet > .detail-section,
  .quote-sheet > .repayment-section,
  .quote-sheet > .quote-footer {
    margin-left: 14px;
    margin-right: 14px;
  }

  .metric-band {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .metric-item,
  .metric-item + .metric-item {
    min-height: 124px;
    padding: 18px;
  }

  .metric-item strong {
    margin-top: 18px;
    font-size: 32px;
  }

  .metric-item small {
    margin-top: 12px;
    padding-top: 9px;
  }

  .detail-section,
  .repayment-section {
    padding: 16px;
  }

  .fee-breakdown .detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fee-breakdown .detail-list .detail-total {
    grid-column: span 2;
  }

  .repayment-section .quote-section-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .stage-row,
  .stage-row + .stage-row {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 7px 12px;
    padding: 18px 16px;
  }

  .stage-marker {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 30px;
    height: 30px;
  }

  .stage-copy,
  .stage-formula,
  .stage-total {
    grid-column: 2;
  }

  .stage-copy {
    grid-row: 1;
  }

  .stage-formula {
    grid-row: 2;
  }

  .stage-total {
    grid-row: 3;
    justify-self: start;
    font-size: 32px;
    text-align: left;
  }

  .stage-first .stage-copy,
  .stage-first .stage-formula,
  .stage-first .stage-total {
    grid-column: 2;
  }

  .stage-first .stage-total {
    align-items: flex-start;
  }

}

/* Web-only corrections: keep the monthly card uniform and protect stage-one space. */
.quote-sheet:not(.export-clone) .metric-primary > span,
.quote-sheet:not(.export-clone) .metric-primary strong,
.quote-sheet:not(.export-clone) .metric-primary small,
.quote-sheet:not(.export-clone) .metric-item:nth-child(2)::after {
  color: #ffffff;
}

.quote-sheet:not(.export-clone) .metric-primary > span::first-letter {
  color: #ffffff;
}

.quote-sheet:not(.export-clone) .metric-item:nth-child(2)::after {
  background: rgba(255, 255, 255, 0.14);
}

.quote-sheet:not(.export-clone) .stage-first .stage-formula span {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 5px 8px;
  font-size: 15px;
  white-space: nowrap;
}

.quote-sheet:not(.export-clone) .stage-first .stage-formula b {
  color: #ffffff;
}

@media (min-width: 701px) {
  .quote-sheet:not(.export-clone) .stage-first {
    grid-template-columns: 40px minmax(0, 1fr) minmax(132px, auto);
  }

  .quote-sheet:not(.export-clone) .stage-first .stage-marker {
    display: flex;
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .quote-sheet:not(.export-clone) .stage-first .stage-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .quote-sheet:not(.export-clone) .stage-first .stage-formula {
    grid-column: 2;
    grid-row: 2;
    align-self: auto;
  }

  .quote-sheet:not(.export-clone) .stage-first .stage-total {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
    font-size: 38px;
  }
}

@media (max-width: 700px) {
  .quote-sheet:not(.export-clone) .stage-first {
    min-height: 0;
  }

  .quote-sheet:not(.export-clone) .stage-first .stage-formula {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 5px;
  }

  .quote-sheet:not(.export-clone) .stage-first .stage-formula span {
    width: 100%;
    text-align: center;
  }

  .quote-sheet:not(.export-clone) .stage-first .stage-formula b {
    justify-self: center;
  }

  .quote-sheet:not(.export-clone) .stage-first .stage-total {
    font-size: 32px;
    line-height: 1;
  }
}
