.adjustment-grid {
  grid-template-columns: 1.45fr .55fr 1.15fr 1.8fr 1.45fr;
}
.adjustment-grid input,
.adjustment-grid select {
  padding: 8px;
  font-size: 13px;
}
.adjustment-grid .factor-note {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.adjustment-grid .insufficient {
  color: var(--danger);
  font-weight: 700;
}
.readonly-price {
  background: #fff;
  border: 1px solid #f4c7b3;
  border-radius: 7px;
  font-weight: 800;
  padding: 5px 9px;
}
.market-tier-group {
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
}
.market-tier-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  background: #f8fafc;
}
.market-tier-group > summary::-webkit-details-marker { display: none; }
.market-tier-group > summary span { display: grid; gap: 3px; }
.market-tier-group > summary small { color: #667085; font-weight: 500; }
.market-tier-group > summary b {
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 9px;
  background: #fff;
  color: #344054;
}
.market-tier-group.tier-a { border-color: #a6f4c5; }
.market-tier-group.tier-a > summary { background: #ecfdf3; }
.market-tier-group.tier-b { border-color: #b2ccff; }
.market-tier-group.tier-b > summary { background: #f5f8ff; }
.market-tier-group.tier-c { border-color: #fedf89; }
.market-tier-group.tier-c > summary { background: #fffaeb; }
.market-tier-group.tier-d { border-color: #fda29b; }
.market-tier-group.tier-d > summary { background: #fff4ed; }
.market-tier-badge {
  display: inline-flex;
  width: max-content;
  margin: 5px 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 10px;
  font-weight: 900;
}
.market-tier-badge.tier-a { background: #dcfae6; color: #067647; }
.market-tier-badge.tier-c { background: #eff8ff; color: #175cd3; }
.market-tier-badge.tier-d { background: #fee4e2; color: #b42318; }
.market-listing-grid {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
}
.market-listing-card {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-left: 4px solid #98a2b3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .04);
}
.market-listing-card.tier-a { border-left-color: #12b76a; }
.market-listing-card.tier-b { border-left-color: #528bff; }
.market-listing-card.tier-c { border-left-color: #f79009; }
.market-listing-card.tier-d,
.market-listing-card.tier-t { border-left-color: #f04438; }
.market-listing-card.is-selected {
  border-color: #7cd4a3;
  border-left-color: #12b76a;
  box-shadow: 0 0 0 2px rgba(18, 183, 106, .1);
}
.market-listing-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 17px 14px;
}
.market-listing-select {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  background: #fff;
  white-space: nowrap;
  cursor: pointer;
}
.market-listing-select input { width: auto; accent-color: #12b76a; }
.market-listing-select span { font-size: 11px; font-weight: 800; }
.market-listing-select:has(input:disabled) { opacity: .58; cursor: not-allowed; }
.market-listing-identity { min-width: 0; }
.market-listing-identity h3 { margin: 6px 0 2px; font-size: 17px; line-height: 1.3; }
.market-listing-identity p { margin: 0; color: #667085; font-size: 12px; }
.market-listing-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.market-listing-badges .market-tier-badge { margin: 0; }
.market-recommended-badge,
.market-readiness {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}
.market-recommended-badge { background: #fff1e9; color: #c94415; }
.market-readiness.ready { background: #dcfae6; color: #067647; }
.market-readiness.needs-review { background: #fffaeb; color: #b54708; }
.market-readiness.blocked { background: #fee4e2; color: #b42318; }
.market-listing-price { min-width: 155px; text-align: right; }
.market-listing-price span { display: block; color: #667085; font-size: 10px; text-transform: uppercase; }
.market-listing-price strong { display: block; margin-top: 3px; color: #c94415; font-size: 17px; }
.market-listing-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid #e4e7ec;
  border-bottom: 1px solid #e4e7ec;
  background: #f9fafb;
}
.market-listing-facts > div { min-width: 0; padding: 11px 13px; }
.market-listing-facts > div + div { border-left: 1px solid #e4e7ec; }
.market-listing-facts span,
.market-listing-summary span {
  display: block;
  margin-bottom: 3px;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.market-listing-facts strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.market-listing-summary {
  display: grid;
  grid-template-columns: 1.25fr 1fr .75fr;
  gap: 0;
  margin: 0 17px;
  padding: 14px 0;
}
.market-listing-summary section { min-width: 0; padding: 0 14px; }
.market-listing-summary section:first-child { padding-left: 0; }
.market-listing-summary section:last-child { padding-right: 0; }
.market-listing-summary section + section { border-left: 1px solid #e4e7ec; }
.market-listing-summary strong { display: block; color: #344054; font-size: 12px; line-height: 1.45; }
.market-listing-summary p { margin: 3px 0 0; color: #667085; font-size: 11px; }
.market-listing-evidence {
  margin: 0 17px;
  padding: 10px 0;
  border-top: 1px solid #e4e7ec;
}
.market-listing-evidence > summary { color: #475467; font-size: 11px; font-weight: 800; cursor: pointer; }
.market-listing-evidence > p { margin: 8px 0 0; color: #475467; font-size: 11px; }
.market-listing-source {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 17px;
  border-top: 1px solid #e4e7ec;
  background: #fcfcfd;
}
.market-listing-source-title {
  display: -webkit-box;
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: #667085;
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.market-listing-source a { flex: 0 0 auto; font-size: 12px; font-weight: 800; text-decoration: none; }
.market-listing-source a:hover { text-decoration: underline; }
.market-listing-card > .alert,
.market-listing-card > .variant-difference { margin: 0 17px 12px; }
.market-listing-review {
  padding: 14px 17px 17px;
  border-top: 1px solid #fedf89;
  background: #fffcf5;
}
.market-listing-review-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.market-listing-review-label strong { color: #93370d; font-size: 13px; }
.market-listing-review-label span { color: #b54708; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.market-listing-review .listing-identity-resolution-workspace,
.market-listing-review .condition-review-workspace,
.market-listing-review .identity-resolution-workspace,
.market-listing-review .origin-resolution-workspace { max-width: none; margin-top: 10px; }
@media(max-width:950px) {
  .market-listing-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-listing-facts > div:nth-child(4) { border-left: 0; }
  .market-listing-facts > div:nth-child(n+4) { border-top: 1px solid #e4e7ec; }
}
@media(max-width:700px) {
  .market-listing-head { grid-template-columns: 1fr; }
  .market-listing-select { width: max-content; }
  .market-listing-price { text-align: left; }
  .market-listing-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-listing-facts > div:nth-child(odd) { border-left: 0; }
  .market-listing-facts > div:nth-child(n+3) { border-top: 1px solid #e4e7ec; }
  .market-listing-summary { grid-template-columns: 1fr; }
  .market-listing-summary section { padding: 11px 0; }
  .market-listing-summary section + section { border-top: 1px solid #e4e7ec; border-left: 0; }
  .market-listing-source,
  .market-listing-review-label { align-items: flex-start; flex-direction: column; }
}
.listing-identity-resolution-workspace {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #b2ccff;
  border-radius: 14px;
  background: #f8faff;
  max-width: 760px;
}
.identity-resolution-table-row > td {
  padding: 0 14px 16px;
  border-top: 0;
  background: #fff;
}
.listing-identity-resolution-workspace.is-skipped {
  opacity: .62;
  background: #f8fafc;
}
.identity-decision-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.identity-decision-head > span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf0ff;
  color: #175cd3;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.identity-decision-head p {
  margin: 3px 0 0;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
}
.identity-decision-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.identity-decision-facts span {
  padding: 4px 8px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}
.identity-decision-actions,
.identity-alternate-options > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.identity-decision-option {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 11px;
  background: #fff;
  color: #344054;
  text-align: left;
  cursor: pointer;
}
.identity-decision-option:hover {
  border-color: #84adff;
  background: #f5f8ff;
}
.identity-decision-option:focus-visible,
.identity-decision-skip:focus-visible,
.identity-alternate-options > summary:focus-visible,
.identity-decision-evidence > summary:focus-visible,
.deferred-resolution > summary:focus-visible {
  outline: 3px solid rgba(23, 92, 211, .18);
  outline-offset: 2px;
}
.identity-decision-option.is-primary {
  border-color: #84adff;
  background: #eef4ff;
  color: #1849a9;
}
.identity-decision-option strong,
.identity-decision-option small { display: block; }
.identity-decision-option small {
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
  font-weight: 500;
}
.identity-decision-skip {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #667085;
  font-weight: 700;
  cursor: pointer;
}
.identity-alternate-options,
.identity-decision-evidence,
.deferred-resolution {
  border: 0;
}
.identity-alternate-options > summary,
.identity-decision-evidence > summary,
.deferred-resolution > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.identity-alternate-options > div { margin-top: 8px; }
.identity-decision-evidence {
  padding-top: 2px;
  border-top: 1px solid #e4e7ec;
}
.identity-decision-evidence p {
  margin: 6px 0;
  color: #475467;
  font-size: 11px;
}
.identity-decision-evidence a { color: #175cd3; font-size: 12px; font-weight: 700; }
.deferred-resolution {
  margin-top: 12px;
  padding: 0 13px;
  border: 1px solid #fedf89;
  border-radius: 12px;
  background: #fffcf5;
}
.deferred-resolution > summary { justify-content: space-between; }
.deferred-resolution > summary span { display: grid; gap: 2px; }
.deferred-resolution > summary small { color: #93370d; font-weight: 500; }
.manual-adjustment-fields {
  display: grid;
  gap: 10px;
  padding: 0 0 13px;
}
.condition-review-table-row > td {
  padding: 0 14px 16px;
  border-top: 0;
  background: #fff;
}
@media(max-width:700px) {
  .identity-decision-actions,
  .identity-alternate-options > div { grid-template-columns: 1fr; }
  .identity-decision-head { display: grid; }
}
.condition-review-workspace {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #fdb7a0;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff8f4, #fff);
  box-shadow: 0 6px 18px rgba(16, 24, 40, .06);
}
.condition-review-workspace.is-confirmed {
  border-color: #a6f4c5;
  background: linear-gradient(145deg, #f3fff8, #fff);
}
.condition-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.condition-review-head p { margin: 3px 0 0; color: #667085; font-size: 12px; }
.condition-review-head > span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff1e9;
  color: #c94415;
  font-size: 10px;
  font-weight: 900;
}
.condition-review-workspace.is-confirmed .condition-review-head > span {
  background: #dcfae6;
  color: #067647;
}
.condition-review-claims { display: grid; gap: 6px; }
.condition-review-claims blockquote {
  margin: 0;
  padding: 9px 11px;
  border-left: 3px solid #f15a24;
  border-radius: 0 9px 9px 0;
  background: #fff;
  color: #344054;
  font-size: 12px;
}
.condition-review-claims blockquote span {
  display: block;
  margin-bottom: 2px;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.condition-review-fields { display: grid; gap: 10px; }
.condition-review-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.condition-review-field legend { margin-bottom: 6px; color: #344054; font-size: 12px; font-weight: 800; }
.condition-review-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d0d5dd;
  border-radius: 11px;
  background: #fff;
}
.condition-review-choice { margin: 0; cursor: pointer; }
.condition-review-choice + .condition-review-choice { border-left: 1px solid #d0d5dd; }
.condition-review-choice input { position: absolute; opacity: 0; pointer-events: none; }
.condition-review-choice span {
  display: grid;
  align-content: center;
  min-height: 58px;
  padding: 7px 9px;
  text-align: center;
}
.condition-review-choice strong { font-size: 11px; }
.condition-review-choice small { margin-top: 2px; color: #667085; font-size: 9px; line-height: 1.3; }
.condition-review-choice input:checked + span {
  background: #ecfdf3;
  color: #027a48;
  box-shadow: inset 0 0 0 2px #12b76a;
}
.condition-review-choice input:focus-visible + span {
  outline: 3px solid rgba(18, 183, 106, .24);
  outline-offset: -3px;
}
.condition-review-actions { display: flex; align-items: center; gap: 10px; }
.condition-review-actions a { color: #0563c1; font-size: 12px; font-weight: 800; text-decoration: none; }
.condition-review-actions a:hover { color: #004b91; text-decoration: underline; }
.condition-review-actions small { margin-right: auto; color: #667085; }
.mileage-review-workspace .condition-review-choices {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.valuation-stability-card {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #a6f4c5;
  border-radius: 14px;
  background: #f3fff8;
}
.valuation-stability-card > div { display: flex; justify-content: space-between; gap: 12px; }
.valuation-stability-card span,
.valuation-stability-card small { color: #667085; }
.valuation-stability-card p { margin: 0; }
.valuation-stability-card.review { border-color: #fedf89; background: #fffaeb; }
.valuation-stability-card.blocked { border-color: #fecdca; background: #fff4f2; }
.valuation-stability-card.blocked strong { color: #b42318; }
.valuation-stability-card .valuation-stability-reason {
  display: block;
  padding-top: 7px;
  border-top: 1px solid #fecdca;
  color: #7a271a;
  line-height: 1.5;
}
.core-conflict-warning,
.adjustment-failure { grid-column: 1 / -1; }
@media(max-width:850px) {
  .adjustment-grid { grid-template-columns: 1fr; }
  .condition-review-choices { grid-template-columns: 1fr; }
  .condition-review-choice + .condition-review-choice { border-left: 0; border-top: 1px solid #d0d5dd; }
  .condition-review-actions { align-items: stretch; flex-direction: column; }
  .condition-review-actions small { margin: 0; }
}

/* Step 5 review workspace: one clear decision flow, with technical evidence
   available on demand instead of competing with the primary action. */
.step-panel[data-panel="5"] .adjustment-guide {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #fff 0%, #fff8f3 100%);
  border-color: #fed7c3;
}
.adjustment-guide-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fff1e9;
  color: #c94415;
  font-size: 21px;
  font-weight: 900;
}
.adjustment-guide-copy p { margin: 4px 0 10px; }
.review-meter {
  width: min(460px, 100%);
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f6;
}
.review-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f15a24, #12b76a);
  transition: width .25s ease;
}
.step-panel[data-panel="5"] .review-status {
  white-space: nowrap;
  background: #fff;
  border: 1px solid #fed7c3;
}
.step-panel[data-panel="5"] .adjustment-card {
  border: 1px solid #dce2ea;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
  overflow: hidden;
}
.step-panel[data-panel="5"] .adjustment-head.adjustment-comparable-summary {
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  gap: 9px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fff6f0 0%, #fff 100%);
  border-bottom: 1px solid #f1e4dd;
}
.adjustment-comparable-topline,
.adjustment-comparable-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.adjustment-vehicle-index {
  width: max-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f15a24;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
}
.adjustment-comparable-fit {
  color: #067647;
  font-size: 11px;
  font-weight: 800;
}
.adjustment-comparable-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}
.adjustment-comparable-name {
  margin: 0;
  color: #172033;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.25;
}
.adjustment-comparable-identity p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 12px;
}
.adjustment-comparable-price {
  display: grid;
  min-width: 158px;
  padding: 8px 11px;
  border: 1px solid #fed7c3;
  border-radius: 10px;
  background: rgba(255,255,255,.88);
  text-align: right;
}
.adjustment-comparable-price span,
.adjustment-comparable-price small {
  color: #667085;
  font-size: 10px;
}
.adjustment-comparable-price strong {
  margin: 1px 0;
  color: #c2410c;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.adjustment-comparable-quick-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid rgba(228, 231, 236, .9);
  border-bottom: 1px solid rgba(228, 231, 236, .9);
}
.adjustment-comparable-facts {
  display: flex;
  align-items: stretch;
  min-width: 0;
  gap: 0;
  margin: 0;
}
.adjustment-comparable-facts > div {
  min-width: 0;
  flex: 1 1 0;
  padding: 2px 10px;
  border-left: 1px solid #e4e7ec;
}
.adjustment-comparable-facts > div:first-child { padding-left: 0; border-left: 0; }
.adjustment-comparable-facts dt {
  margin: 0 0 2px;
  color: #667085;
  font-size: 9px;
}
.adjustment-comparable-facts dd {
  margin: 0;
  color: #1d2939;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
}
.adjustment-comparable-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  max-width: 310px;
}
.adjustment-comparable-specs span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 10px;
  font-weight: 700;
}
.adjustment-listing-title,
.adjustment-listing-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.adjustment-listing-link {
  padding: 7px 9px;
  border: 1px solid #b2ccff;
  color: #0563c1;
  text-decoration: none;
  border-radius: 8px;
  outline-offset: 4px;
}
.adjustment-listing-link > span {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.adjustment-listing-link:hover {
  border-color: #528bff;
  background: #eff4ff;
  color: #004b91;
}
.adjustment-listing-link:focus-visible {
  outline: 3px solid rgba(5, 99, 193, .22);
}
.adjustment-listing-original {
  min-width: 0;
  color: #667085;
  font-size: 11px;
}
.adjustment-listing-original summary {
  cursor: pointer;
  font-weight: 700;
}
.adjustment-listing-original p {
  max-width: 720px;
  margin: 7px 0 0;
  color: #475467;
  line-height: 1.45;
}
.adjustment-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}
.custom-adjustment-manager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-color: #d6dbe3;
  box-shadow: 0 4px 16px rgba(16, 24, 40, .05);
}
.custom-adjustment-manager h3,
.custom-adjustment-manager p { margin: 0; }
.custom-adjustment-manager .eyebrow { margin-bottom: 3px; }
.custom-adjustment-active {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 12px;
  border: 1px solid #abefc6;
  border-radius: 12px;
  background: #ecfdf3;
}
.custom-adjustment-active span { display: grid; gap: 1px; }
.custom-adjustment-active small { color: #027a48; font-size: 10px; }
.custom-adjustment-active strong { color: #05603a; font-size: 13px; }
.custom-adjustment-active .remove-custom-adjustment {
  border-color: #fda29b;
  background: #fff;
  color: #b42318;
}
.custom-adjustment-active .remove-custom-adjustment:hover { background: #fef3f2; }
.custom-adjustment-dialog { width: min(720px, calc(100vw - 32px)); }
.custom-adjustment-dialog .dialog-head h3 { margin-bottom: 4px; }
.custom-adjustment-dialog .dialog-head p { margin: 0; }
.custom-adjustment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.custom-adjustment-comparable-values {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e4e7ec;
}
.custom-adjustment-comparable-values label {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 12px;
}
.custom-adjustment-comparison {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}
.custom-adjustment-comparison span {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #f8fafc;
}
.custom-adjustment-comparison small { color: #667085; font-size: 10px; }
.custom-adjustment-comparison strong { color: #344054; font-size: 12px; }
.custom-adjustment-dialog .button.danger { background: #b42318; color: #fff; }
.custom-adjustment-dialog .button.danger:hover { background: #912018; }
.adjustment-card-status {
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  border: 1px solid #e4e7ec;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
}
.step-panel[data-panel="5"] .adjustment-list {
  gap: 8px;
  margin: 0;
  padding: 12px;
  background: #f8fafc;
}
.adjustment-card .adjustment-item {
  gap: 12px 18px;
  padding: 15px 16px;
  border-radius: 13px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.adjustment-card .adjustment-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 7px 18px rgba(16, 24, 40, .06);
  transform: translateY(-1px);
}
.adjustment-card .adjustment-item.accepted {
  border-left: 4px solid #12b76a;
  background: linear-gradient(90deg, #f6fef9 0, #fff 24%);
}
.adjustment-card .adjustment-item.rejected {
  border-left: 4px solid #98a2b3;
  background: #f8fafc;
  opacity: 1;
}
.adjustment-card .adjustment-main {
  gap: 7px 14px;
}
.adjustment-factor-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}
.adjustment-factor-code {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 32px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #f8fafc;
  color: #475467;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
}
.adjustment-factor-copy {
  min-width: 0;
  padding-top: 3px;
}
.adjustment-factor-copy .adjustment-label > strong {
  color: #172033;
  font-size: 15px;
  line-height: 1.35;
}
.adjustment-rate-box {
  display: grid;
  justify-items: end;
  align-content: center;
  min-width: 158px;
  padding: 9px 11px;
  border: 1px solid #e4e7ec;
  border-radius: 11px;
  background: #f8fafc;
}
.adjustment-rate-box > span {
  color: #667085;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.adjustment-rate-box > strong {
  margin: 2px 0;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.adjustment-rate-box > small {
  max-width: 190px;
  color: #667085;
  font-size: 10px;
  text-align: right;
}
.decision-status {
  order: -1;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.decision-status.accepted { background: #ecfdf3; color: #027a48; }
.decision-status.rejected { background: #f2f4f7; color: #475467; }
.decision-status.waiting,
.decision-status.proposed { background: #fff4ed; color: #c4320a; }
.adjustment-reason {
  color: #344054;
  font-size: 13px;
}
.adjustment-basis {
  grid-column: 1 / -1;
  width: max-content;
  max-width: 100%;
  color: #667085;
  font-size: 12px;
}
.adjustment-basis summary {
  cursor: pointer;
  color: #475467;
  font-weight: 700;
}
.adjustment-basis p {
  margin: 7px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
}
.adjustment-warning { grid-column: 1 / -1; margin: 2px 0 0; }
.step-panel[data-panel="5"] .adjustment-actions {
  min-width: 220px;
}
.step-panel[data-panel="5"] .adjustment-actions .mini-button {
  border-radius: 9px;
  padding: 8px 11px;
  color: #344054;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.step-panel[data-panel="5"] .accept-adjustment.is-selected {
  border-color: #12b76a;
  background: #ecfdf3;
  color: #027a48;
  box-shadow: 0 0 0 2px rgba(18, 183, 106, .10);
}
.step-panel[data-panel="5"] .reject-adjustment.is-selected {
  border-color: #98a2b3;
  background: #f2f4f7;
  color: #344054;
  box-shadow: 0 0 0 2px rgba(152, 162, 179, .10);
}
.step-panel[data-panel="5"] .adjustment-next-actions {
  padding: 16px 18px;
  border-color: #fed7c3;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.step-panel[data-panel="5"] .adjustment-next-actions .button {
  min-width: 300px;
  box-shadow: 0 8px 18px rgba(241, 90, 36, .22);
}
.step-panel[data-panel="5"] .adjustment-item.missing-required {
  border-color: #f04438;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, .10);
}
.step-panel[data-panel="5"] .adjustment-item.missing-required .adjustment-edit {
  border-top-color: #fda29b;
}

@media(max-width:900px) {
  .step-panel[data-panel="5"] .adjustment-guide { grid-template-columns: auto 1fr; }
  .step-panel[data-panel="5"] .review-status { grid-column: 2; width: max-content; }
  .step-panel[data-panel="5"] .adjustment-item,
  .step-panel[data-panel="5"] .adjustment-main { grid-template-columns: 1fr; }
  .step-panel[data-panel="5"] .adjustment-actions { min-width: 0; justify-content: flex-start; }
  .step-panel[data-panel="5"] .suggested-rate { text-align: left; }
  .adjustment-comparable-quick-facts { grid-template-columns: 1fr; }
  .adjustment-comparable-specs { justify-content: flex-start; max-width: none; }
  .adjustment-rate-box { justify-items: start; }
  .adjustment-rate-box > small { text-align: left; }
}
@media(max-width:650px) {
  .step-panel[data-panel="5"] .adjustment-guide { grid-template-columns: 1fr; }
  .adjustment-guide-icon { width: 36px; height: 36px; }
  .step-panel[data-panel="5"] .review-status { grid-column: auto; }
  .adjustment-comparable-identity,
  .adjustment-comparable-quick-facts { grid-template-columns: 1fr; }
  .adjustment-comparable-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adjustment-comparable-facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .adjustment-comparable-price { min-width: 0; text-align: left; }
  .adjustment-comparable-footer { align-items: flex-start; flex-direction: column; }
  .adjustment-head-actions { width: 100%; justify-content: flex-start; }
  .custom-adjustment-manager,
  .custom-adjustment-active { align-items: stretch; flex-direction: column; }
  .custom-adjustment-form-grid,
  .custom-adjustment-comparison { grid-template-columns: 1fr; }
  .custom-adjustment-comparable-values label { grid-template-columns: 1fr; }
  .adjustment-factor-heading { align-items: center; }
  .step-panel[data-panel="5"] .adjustment-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .step-panel[data-panel="5"] .adjustment-actions .reject-adjustment { grid-column: 1 / -1; }
  .step-panel[data-panel="5"] .adjustment-next-actions .button { min-width: 0; width: 100%; }
}
@media(prefers-reduced-motion:reduce) {
  .review-meter span,
  .adjustment-card .adjustment-item { transition: none; }
  .adjustment-card .adjustment-item:hover { transform: none; }
}
