.market-workspace { padding-block: clamp(24px, 4vw, 58px) clamp(65px, 8vw, 115px); }
.workspace-mast { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.18fr 1fr; min-height: clamp(195px, 19vw, 261px); overflow: hidden; border-radius: 8px; background: #332821; color: #f9f0e4; box-shadow: 0 11px 26px #442b1719; }
.workspace-mast::after { position: absolute; inset: 0 0 0 41%; pointer-events: none; content: ""; background: linear-gradient(90deg, #332821 0%, #33282155 20%, transparent 53%); }
.workspace-mast-quote { background: #46352a; }
.workspace-mast-quote::after { background: linear-gradient(90deg, #46352a 0%, #46352a66 20%, transparent 53%); }
.workspace-intro { z-index: 1; align-self: center; padding: clamp(23px, 3vw, 42px) clamp(23px, 4.2vw, 58px); }
.workspace-back { display: inline-block; margin-bottom: 10px; color: #e4c3a9; font-size: .88rem; font-weight: 600; text-underline-offset: 4px; }
.workspace-back:hover { color: #fff7ed; }
.workspace-back:focus-visible { outline-color: #e5be9e; }
.workspace-intro h1 { margin-bottom: 9px; font: 400 clamp(43px, 5.2vw, 72px)/1.15 var(--serif); letter-spacing: -.07em; }
.workspace-intro p { max-width: 34ch; color: #ecded1; font-size: clamp(.92rem, 1.3vw, 1.07rem); }
.workspace-mast img { position: absolute; inset: 0 0 0 44%; width: 56%; height: 100%; object-fit: cover; object-position: 52% 42%; }
.workspace-mast-quote img { object-position: 54% 49%; }

.comparison-workspace, .quote-workspace { display: grid; gap: clamp(16px, 2.2vw, 31px); align-items: start; margin-top: clamp(19px, 3vw, 41px); }
.comparison-workspace { grid-template-columns: minmax(235px, .28fr) minmax(0, .72fr); }
.quote-workspace { grid-template-columns: minmax(0, .69fr) minmax(245px, .31fr); }
.quote-workspace-main { display: grid; gap: clamp(17px, 2.05vw, 28px); min-width: 0; }
.workspace-panel { min-width: 0; padding: clamp(17px, 2vw, 28px); border: 1px solid #e4dacf; border-radius: 8px; background: #fcf8f1; box-shadow: 0 5px 18px #442b170c; }
.workspace-panel-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.workspace-panel-title h2 { font: 400 clamp(25px, 3vw, 39px)/1.23 var(--serif); letter-spacing: -.07em; }
.workspace-panel-title [data-compare-count] { border: 1px solid #e4d6c7; border-radius: 50px; padding: 3px 10px; background: #f5ebdc; color: #6b4840; font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.workspace-note { margin: 8px 0 13px; color: var(--muted); font-size: .87rem; }
.workspace-search { display: block; margin: 15px 0 12px; }
.workspace-search input, .quote-select select { width: 100%; min-height: 43px; border: 1px solid #dfd4c7; border-radius: 5px; padding: 8px 10px; background: #fffaf4; color: var(--ink); }
.workspace-search input:focus, .quote-select select:focus { border-color: #96745f; }
.compare-choices { display: grid; gap: 6px; max-height: 431px; overflow-y: auto; padding: 2px 6px 5px 2px; scrollbar-color: #bca18b #f3ecdf; scrollbar-width: thin; }
.comparison-choice { display: grid; grid-template-columns: 42px 1fr 16px; align-items: center; gap: 9px; min-height: 59px; border: 1px solid transparent; border-radius: 5px; padding: 6px; cursor: pointer; transition: background-color 210ms ease, border-color 210ms ease; }
.comparison-choice:hover { background: #f5ecdf; }
.comparison-choice:has(input:checked) { background: #f3e8dc; border-color: #deccba; }
.comparison-choice img { width: 42px; height: 42px; object-fit: cover; border-radius: 3px; }
.comparison-choice strong { display: block; font-size: .86rem; font-weight: 600; line-height: 1.38; }
.comparison-choice small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.35; margin-top: 3px; }
.compare-reset { width: 100%; margin-top: 11px; min-height: 39px; padding-block: 6px; }

.comparison-scroll { overflow: auto; border: 1px solid #e7ded2; border-radius: 6px; scrollbar-color: #a9836c #f3ebdf; scrollbar-width: thin; }
.comparison-table { table-layout: fixed; min-width: 369px; border-collapse: separate; border-spacing: 0; }
.comparison-table:has(thead th:nth-child(4)) { min-width: 498px; }
.comparison-table:has(thead th:nth-child(5)) { min-width: 625px; }
.comparison-table th, .comparison-table td { padding: 12px clamp(9px, 1.18vw, 17px); vertical-align: middle; }
.comparison-table thead th, .comparison-table tbody tr + tr > * { border-bottom: 0; }
.comparison-table tr > * { border-bottom: 1px solid #ebe1d5; }
.comparison-table tbody tr:last-child > * { border-bottom: 0; }
.comparison-table thead th { vertical-align: top; background: #f9f2e9; }
.comparison-table thead th:first-child, .comparison-table tbody th { position: sticky; left: 0; z-index: 1; width: 5.85rem; min-width: 5.85rem; background: #f0e6d9; font-size: .84rem; color: #50392c; }
.comparison-table tbody td { font-size: .86rem; }
.comparison-table tbody tr:first-child td { color: #6e402b; font-size: 1.02rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.comparison-product { display: block; text-decoration: none; font-size: .86rem; line-height: 1.42; }
.comparison-product span { display: block; overflow: hidden; border-radius: 4px; margin-bottom: 8px; }
.comparison-product img { height: clamp(89px, 9.2vw, 132px); object-fit: cover; transition: transform 320ms var(--ease); }
.comparison-product:is(:hover, :focus-visible) { color: var(--accent); }
.comparison-product:is(:hover, :focus-visible) img { transform: scale(1.035); }
.compare-empty { display: grid; justify-items: center; text-align: center; gap: 15px; min-height: 260px; align-content: center; padding: 20px; border: 1px dashed #decec0; border-radius: 6px; background: #f7efe4; color: var(--muted); }
.compare-empty img { width: 104px; height: 80px; border: 4px solid #fffcf5; border-radius: 3px; object-fit: cover; transform: rotate(-5deg); box-shadow: 0 4px 10px #442b1729; }

.quote-picker-preview { display: grid; grid-template-columns: 69px 1fr; align-items: center; gap: 13px; margin: 15px 0 17px; padding: 10px; border: 1px solid #ece1d4; border-radius: 6px; background: #f5ede1; }
.quote-picker-preview img { width: 69px; height: 67px; object-fit: cover; border-radius: 4px; }
.quote-picker-preview figcaption { display: grid; gap: 1px; margin: 0; }
.quote-picker-preview figcaption strong { color: var(--ink); font-size: 1.03rem; font-weight: 600; }
.quote-picker-preview figcaption span { color: var(--muted); }
.quote-inputs { display: grid; grid-template-columns: minmax(0, 1.6fr) auto auto; align-items: end; gap: 10px; }
.quote-inputs label { display: grid; gap: 4px; color: #563d30; font-size: .85rem; font-weight: 600; }
.quote-select { position: relative; }
.quote-select select { appearance: none; padding-right: 29px; }
.quote-select::after { position: absolute; right: 12px; bottom: 19px; width: 6px; height: 6px; border-right: 1px solid #635044; border-bottom: 1px solid #635044; transform: rotate(45deg); pointer-events: none; content: ""; }
.quote-quantity > label { margin-bottom: 4px; }
.quantity-stepper { display: grid; grid-template-columns: 32px 56px 32px; min-height: 43px; overflow: hidden; border: 1px solid #dfd4c7; border-radius: 5px; background: #fffaf4; }
.quantity-stepper input { width: 100%; min-width: 0; padding: 4px; border: 0; border-inline: 1px solid #ebe0d4; border-radius: 0; background: transparent; text-align: center; appearance: textfield; color: var(--ink); font-variant-numeric: tabular-nums; }
.quantity-stepper input::-webkit-inner-spin-button, .quantity-stepper input::-webkit-outer-spin-button { appearance: none; }
.quantity-stepper button { border: 0; background: transparent; color: #694a36; font-weight: 600; transition: background-color 160ms ease; }
.quantity-stepper button:hover:not(:disabled) { background: #eee0d0; }
.quantity-stepper button:disabled { color: #a89a8d; cursor: not-allowed; }
.quantity-stepper :focus-visible { outline-offset: -3px; }
.quote-add { min-height: 43px; padding: 6px 13px; white-space: nowrap; }
[data-quote-range] { margin-bottom: 2px; }
.quote-feedback { min-height: 1.4em; margin-bottom: 0; color: #76513e; }
.quote-items .workspace-panel-title { margin-bottom: 12px; }
.quote-empty { padding: 20px 14px; border: 1px dashed #e2d4c4; border-radius: 5px; color: var(--muted); background: #f8f0e5; font-size: .9rem; }
.quote-lines ul { list-style: none; padding: 0; }
.quote-line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #ebe1d5; }
.quote-line:last-child { border-bottom: 1px solid #ebe1d5; }
.quote-line a { display: flex; gap: 9px; align-items: center; text-decoration: none; }
.quote-line a:hover { color: var(--accent); }
.quote-line a img { width: 43px; height: 43px; object-fit: cover; border-radius: 3px; }
.quote-line a small { display: block; color: var(--muted); font-size: .81rem; }
.quote-line-amount { display: grid; justify-items: end; gap: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.remove-line { padding: 0; border: 0; background: none; color: var(--accent); font-size: .82rem; text-decoration: underline; text-underline-offset: 4px; }
.quote-summary { position: sticky; top: 25px; display: grid; gap: 10px; padding: clamp(19px, 2.6vw, 38px); border: 1px solid #5e493e; border-radius: 8px; background: #352923; color: #fbf0e3; box-shadow: 0 9px 23px #33211726; }
.quote-summary > p:first-child { color: #e9cfb8; font-size: .91rem; }
.quote-summary strong { display: block; margin-top: 5px; color: #fff8ef; font: 600 clamp(33px, 4.1vw, 63px)/1.24 var(--sans); letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.quote-summary > span { font-size: .88rem; color: #f1ded0; }
.quote-summary-note { padding-top: 12px; border-top: 1px solid #695141; margin-top: 4px; color: #e0cbb9; font-size: .85rem; }
.quote-summary .button { width: 100%; margin-top: 2px; }

@media (max-width: 900px) {
  .comparison-workspace { grid-template-columns: 225px minmax(0, 1fr); }
  .quote-inputs { grid-template-columns: minmax(0, 1fr) auto; }
  .quote-add { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .workspace-mast { grid-template-columns: 1fr; min-height: 207px; }
  .workspace-mast img { left: 18%; width: 82%; }
  .workspace-mast::after { inset: 0; background: linear-gradient(90deg, #30241fee 0%, #332821c7 42%, #33282132 100%); }
  .comparison-workspace, .quote-workspace { grid-template-columns: 1fr; }
  .compare-choices { max-height: 213px; }
  .quote-summary { position: static; }
  .comparison-table thead th:first-child, .comparison-table tbody th { width: 4.9rem; min-width: 4.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .comparison-product:is(:hover, :focus-visible) img { transform: none; }
}
