/* Price estimator refinement. Loaded after precision.css. Presentation only. */
.ns-root.tool-page { background: var(--p-steel); }
.ns-root.tool-page .qe-body { background: var(--p-steel); padding: 1.5rem 0 7.5rem; color: var(--p-ink); }
@media (min-width: 768px) { .ns-root.tool-page .qe-body { padding: 2.5rem 0 4.5rem; } }
.ns-root.tool-page .qe-wrap { max-width: var(--p-wrap); padding: 0 var(--p-pad); }

/* Hero */
.ns-root.tool-page .qe-hero { background: var(--p-graphite); padding: calc(var(--hdr-h, 64px) + 28px) 0 1.75rem; border-bottom: 3px solid var(--p-red); }
@media (min-width: 768px) { .ns-root.tool-page .qe-hero { padding: calc(var(--hdr-h, 72px) + 44px) 0 2.5rem; } }
.ns-root.tool-page .qe-hero .qe-eyebrow { color: var(--p-red-on-dark); font-family: var(--p-f-mono); font-size: var(--p-t-label); letter-spacing: .2em; }
.ns-root.tool-page .qe-hero .qe-proto { border-radius: var(--p-radius); border-color: var(--p-rule-dark); color: var(--p-on-dark-2); font-family: var(--p-f-mono); font-size: .68rem; }
.ns-root.tool-page .qe-hero .qe-h1 { font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.4rem); line-height: 1.08; max-width: 22ch; margin: .75rem 0 .85rem; text-wrap: balance; color: var(--p-on-dark); }
.ns-root.tool-page .qe-hero .qe-lead { color: var(--p-on-dark-2); font-size: var(--p-t-body); max-width: 46rem; }
.ns-root.tool-page .qe-steps-nav { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 0; margin-top: 1.4rem; border: 1px solid var(--p-rule-dark); border-radius: var(--p-radius); overflow: hidden; width: fit-content; max-width: 100%; }
.ns-root.tool-page .qe-steps-nav li + li { border-left: 1px solid var(--p-rule-dark); }
.ns-root.tool-page .qe-steps-nav a { border: 0; border-radius: 0; min-height: 44px; padding: .5rem .8rem; gap: .5rem; font-size: .8125rem; color: var(--p-on-dark); background: transparent; }
.ns-root.tool-page .qe-steps-nav a:hover, .ns-root.tool-page .qe-steps-nav a:focus-visible { background: rgba(255,255,255,.06); }
.ns-root.tool-page .qe-n { width: 1.4rem; height: 1.4rem; border-radius: 2px; background: var(--p-red); }
@media (max-width: 420px) {
  .ns-root.tool-page .qe-steps-nav { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ns-root.tool-page .qe-steps-nav a { flex-direction: column; gap: .2rem; justify-content: center; padding: .45rem .25rem; font-size: .75rem; text-align: center; }
}

/* Panels */
.ns-root.tool-page .qe-layout { gap: 1.25rem; }
@media (min-width: 1024px) { .ns-root.tool-page .qe-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 1.75rem; } }
.ns-root.tool-page .qe-card { background: var(--p-white); border: 1px solid var(--p-metal); border-radius: var(--p-radius); padding: 1.1rem 1rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .ns-root.tool-page .qe-card { padding: 1.75rem 2rem; margin-bottom: 1.5rem; } }
.ns-root.tool-page .qe-card-head { gap: .85rem; margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--p-rule); align-items: center; }
.ns-root.tool-page .qe-num { width: 2.25rem; height: 2.25rem; border-radius: var(--p-radius); background: var(--p-graphite); color: #fff; font-family: var(--p-f-display); font-size: 1.05rem; box-shadow: inset 0 -3px 0 var(--p-red); }
.ns-root.tool-page .qe-h2 { font-family: var(--p-f-display); font-size: 1.3rem; letter-spacing: -.005em; color: var(--p-ink); }
.ns-root.tool-page .qe-small, .ns-root.tool-page .qe-opt { color: var(--p-ink-2); }
.ns-root.tool-page .qe-small { font-size: .875rem; }

/* Selectors */
.ns-root.tool-page .qe-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem .75rem; }
.ns-root.tool-page .qe-fields .qe-field:nth-child(-n+2) { grid-column: 1 / -1; }
@media (min-width: 640px) { .ns-root.tool-page .qe-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ns-root.tool-page .qe-fields .qe-field:nth-child(-n+2) { grid-column: auto; } }
@media (min-width: 640px) and (max-width: 1100px) { .ns-root.tool-page .qe-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ns-root.tool-page .qe-field > label { font-family: var(--p-f-mono); font-size: var(--p-t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--p-ink-2); font-weight: 500; }
.ns-root.tool-page .qe-field select, .ns-root.tool-page .qe-field input[type="search"] { border-radius: var(--p-radius); border: 1px solid var(--p-metal); background-color: var(--p-silver); min-height: 48px; font-size: 1rem; }
.ns-root.tool-page .qe-field select:disabled { background-color: var(--p-steel); color: var(--p-ink-2); }
.ns-root.tool-page .qe-field select:focus-visible, .ns-root.tool-page .qe-field input:focus-visible { outline: 2px solid var(--p-red); outline-offset: 1px; background-color: #fff; }

/* Sub sections */
.ns-root.tool-page .qe-sub { margin: 1.6rem 0 .75rem; padding: .6rem .8rem; background: var(--p-graphite); border-radius: var(--p-radius); gap: .35rem .75rem; }
.ns-root.tool-page .qe-sub h3 { font-family: var(--p-f-display); font-size: 1rem; letter-spacing: .06em; color: var(--p-on-dark); }
.ns-root.tool-page .qe-tag { border-radius: 2px; background: transparent; color: var(--p-on-dark-2); border: 1px solid var(--p-rule-dark); font-family: var(--p-f-mono); font-size: .66rem; font-weight: 500; letter-spacing: .06em; padding: .25rem .5rem; }
.ns-root.tool-page .qe-tag-est { background: transparent; color: var(--p-on-dark-2); border-color: var(--p-rule-dark); }
.ns-root.tool-page .qe-fieldset { margin: 0 0 1.1rem; }
.ns-root.tool-page .qe-legend { font-family: var(--p-f-mono); font-size: var(--p-t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--p-ink-2); font-weight: 500; margin-bottom: .35rem; }

/* Option rows: one ruled list, not a stack of cards */
.ns-root.tool-page .qe-grid-2, .ns-root.tool-page .qe-group-list { gap: 0 1.75rem; border-top: 1px solid var(--p-rule); }
.ns-root.tool-page .qe-group-list li { border-bottom: 1px solid var(--p-rule); }
.ns-root.tool-page .qe-group-list li .qe-opt-card { border-bottom: 0; }
.ns-root.tool-page .qe-opt-card { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: .75rem; align-items: center; min-height: 52px; padding: .55rem .5rem; border: 0; border-bottom: 1px solid var(--p-rule); border-radius: 0; background: transparent; box-shadow: none; }
.ns-root.tool-page .qe-opt-card input[type="radio"], .ns-root.tool-page .qe-opt-card input[type="checkbox"] { width: 22px; height: 22px; margin: 0; grid-row: 1; }
.ns-root.tool-page .qe-opt-body { gap: .1rem; }
.ns-root.tool-page .qe-opt-name { font-size: .975rem; font-weight: 600; color: var(--p-ink); }
.ns-root.tool-page .qe-opt-meta { font-size: .78rem; color: var(--p-ink-2); }
.ns-root.tool-page .qe-opt-price { font-family: var(--p-f-display); font-size: 1.02rem; font-weight: 600; text-align: right; padding-left: .25rem; }
.ns-root.tool-page .qe-opt-price.is-pending { font-family: var(--p-f-body); font-size: .75rem; font-weight: 500; color: var(--p-ink-2); white-space: normal; max-width: 7.5rem; line-height: 1.25; }
.ns-root.tool-page .qe-opt-card.is-checked { background: rgba(200,16,46,.06); border-color: var(--p-rule); box-shadow: inset 3px 0 0 var(--p-red); }
.ns-root.tool-page .qe-opt-card:focus-within { outline: 2px solid var(--p-red); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .ns-root.tool-page .qe-opt-card:hover { background: var(--p-silver); border-color: var(--p-rule); } .ns-root.tool-page .qe-opt-card.is-checked:hover { background: rgba(200,16,46,.09); } }
@media (min-width: 640px) { .ns-root.tool-page .qe-opt-meta { font-size: .8125rem; } }

/* Repair filter and groups */
.ns-root.tool-page .qe-filter { gap: .75rem; padding: .85rem; background: var(--p-silver); border: 1px solid var(--p-rule); border-radius: var(--p-radius); margin-bottom: .25rem; }
.ns-root.tool-page .qe-field > label[for="rep-search"] { margin-bottom: 0; }
.ns-root.tool-page .qe-chips { flex-wrap: nowrap; overflow-x: auto; gap: .4rem; padding-bottom: 2px; scrollbar-width: thin; }
@media (min-width: 900px) { .ns-root.tool-page .qe-chips { flex-wrap: wrap; overflow: visible; } }
.ns-root.tool-page .qe-chip { flex: none; border-radius: var(--p-radius); border-color: var(--p-metal); background: #fff; min-height: 44px; padding: .4rem .85rem; font-size: .8125rem; }
.ns-root.tool-page .qe-chip[aria-pressed="true"] { background: var(--p-graphite); border-color: var(--p-graphite); color: #fff; box-shadow: inset 0 -2px 0 var(--p-red); }
.ns-root.tool-page .qe-group { margin-top: 1.25rem; }
.ns-root.tool-page .qe-group h4 { display: flex; align-items: center; gap: .75rem; font-family: var(--p-f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; color: var(--p-ink); margin-bottom: .4rem; }
.ns-root.tool-page .qe-group h4::before { content: ""; width: 14px; height: 3px; background: var(--p-red); flex: none; }
.ns-root.tool-page .qe-group h4::after { content: ""; flex: 1; height: 1px; background: var(--p-rule); }

/* Summary: graphite instrument panel */
.ns-root.tool-page .qe-sum { background: var(--p-graphite); color: var(--p-on-dark); border: 1px solid var(--p-rule-dark); border-top: 3px solid var(--p-red); padding: 1.1rem 1rem; margin-bottom: 0; }
@media (min-width: 768px) { .ns-root.tool-page .qe-sum { padding: 1.5rem; } }
.ns-root.tool-page .qe-sum .qe-h2 { color: var(--p-on-dark); font-size: 1.2rem; padding-bottom: .75rem; border-bottom: 1px solid var(--p-rule-dark); margin-bottom: 0; }
.ns-root.tool-page .qe-sum-empty { border: 1px dashed var(--p-rule-dark); border-radius: var(--p-radius); color: var(--p-on-dark-2); }
.ns-root.tool-page .qe-car { color: var(--p-on-dark-2); font-family: var(--p-f-mono); font-size: var(--p-t-label); letter-spacing: .08em; text-transform: uppercase; }
.ns-root.tool-page .qe-car strong { color: var(--p-on-dark); font-family: var(--p-f-body); font-size: 1.05rem; letter-spacing: 0; text-transform: none; margin-top: .15rem; }
.ns-root.tool-page .qe-sum-h { color: var(--p-on-dark-2); font-family: var(--p-f-mono); font-size: var(--p-t-label); font-weight: 500; letter-spacing: .14em; margin-top: 1.1rem; }
.ns-root.tool-page .qe-list li { border-bottom: 1px solid var(--p-rule-dark); color: var(--p-on-dark); font-size: .9rem; }
.ns-root.tool-page .qe-list .qe-amt, .ns-root.tool-page .qe-subtotal { color: var(--p-on-dark); }
.ns-root.tool-page .qe-list .qe-amt-pending, .ns-root.tool-page .qe-adjust { color: var(--p-on-dark-2); }
.ns-root.tool-page .qe-subtotal { font-size: .875rem; }
.ns-root.tool-page .qe-total { background: var(--p-carbon); border-radius: var(--p-radius); border-left: 3px solid var(--p-red); padding: .9rem 1rem; margin-top: 1.1rem; }
.ns-root.tool-page .qe-total-label { font-family: var(--p-f-mono); font-size: var(--p-t-label); font-weight: 500; letter-spacing: .14em; color: var(--p-on-dark-2); }
.ns-root.tool-page .qe-total-val { font-family: var(--p-f-display); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.15rem); white-space: normal; overflow-wrap: anywhere; }
.ns-root.tool-page .qe-total-sub { color: var(--p-on-dark-2); }
.ns-root.tool-page .qe-note { color: var(--p-on-dark-2); font-size: .8125rem; margin: .85rem 0; }
.ns-root.tool-page .qe-btn { border-radius: var(--p-radius); min-height: 48px; letter-spacing: .06em; }
.ns-root.tool-page .qe-btn-primary { background: var(--p-red); border-color: var(--p-red); }
.ns-root.tool-page .qe-btn-ghost { background: transparent; border-color: var(--p-metal); color: var(--p-on-dark); }
@media (hover: hover) and (pointer: fine) { .ns-root.tool-page .qe-btn-primary:hover { background: var(--p-red-hover); border-color: var(--p-red-hover); } .ns-root.tool-page .qe-btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; } }
.ns-root.tool-page .qe-btn:focus-visible { outline-color: var(--p-red-on-dark); }

@media (min-width: 1024px) {
  .ns-root.tool-page .qe-aside { top: calc(var(--hdr-h, 72px) + 16px); }
  .ns-root.tool-page .qe-sum { display: flex; flex-direction: column; max-height: calc(100vh - var(--hdr-h, 72px) - 32px); }
  .ns-root.tool-page .qe-sum #sum-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: var(--p-rule-dark) transparent; }
  .ns-root.tool-page .qe-sum .qe-total, .ns-root.tool-page .qe-sum .qe-note, .ns-root.tool-page .qe-sum .qe-actions { flex: none; }
}

/* Mobile pill */
.ns-root.tool-page .qe-pill a { border-radius: var(--p-radius); background: var(--p-graphite); border: 1px solid var(--p-rule-dark); border-bottom: 2px solid var(--p-red); box-shadow: 0 6px 18px rgba(17,21,25,.3); }
.ns-root.tool-page .qe-pill-val { font-family: var(--p-f-display); }
@media (min-width: 768px) and (max-width: 1023px) { .ns-root.tool-page .qe-pill { display: none; } .ns-root.tool-page .qe-pill.is-on { display: flex !important; } }
@media (min-width: 1024px) { .ns-root.tool-page .qe-pill, .ns-root.tool-page .qe-pill.is-on { display: none !important; } }
.ns-root.tool-page .qe-field select { margin-top: auto; }
.ns-root.tool-page .qe-group-list { grid-template-columns: minmax(0, 1fr); }
.ns-root.tool-page .qe-opt-body { display: contents; }
.ns-root.tool-page .qe-opt-card input { grid-column: 1; grid-row: 1 / span 2; }
.ns-root.tool-page .qe-opt-name { grid-column: 2; grid-row: 1; align-self: end; }
.ns-root.tool-page .qe-opt-meta { grid-column: 2 / -1; grid-row: 2; align-self: start; }
.ns-root.tool-page .qe-opt-price { grid-column: 3; grid-row: 1; align-self: end; }
.ns-root.tool-page .qe-opt-card { row-gap: .1rem; }

/* ==========================================================================
   Usability layer (estimator-ui.js): section index, selected strip, progress,
   price legend, search status, two-column repairs, review bar and sheet.
   Presentation only.
   ========================================================================== */
.qe-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.qe-jump[hidden], .qe-picks[hidden], .qe-review[hidden], .qe-drawer[hidden], .qe-nudge[hidden], .qe-empty[hidden], .qe-clear[hidden], .qe-jc[hidden] { display: none !important; }
@media (min-width: 1380px) { .ns-root.tool-page .qe-wrap { max-width: 1400px; } }

/* Hero progress */
.ns-root.tool-page .qe-steps-nav li[data-state="done"] .qe-n { background: var(--p-on-dark); color: var(--p-graphite); }
.ns-root.tool-page .qe-steps-nav li[data-state="todo"] .qe-n { background: var(--p-rule-dark); color: var(--p-on-dark-2); }
.ns-root.tool-page .qe-steps-nav li[data-state="current"] a { box-shadow: inset 0 -3px 0 var(--p-red); }
.ns-root.tool-page .qe-steps-nav a:focus-visible { outline: 2px solid var(--p-red-on-dark); outline-offset: -3px; }

/* Sticky section index */
.ns-root.tool-page .qe-sticky { position: sticky; top: var(--hdr-h, 64px); z-index: 40; background: var(--p-steel); margin: 0 0 .75rem; padding: .5rem 0; box-shadow: 0 1px 0 var(--p-metal); }
.ns-root.tool-page .qe-jump, .ns-root.tool-page .qe-picks { position: relative; }
.ns-root.tool-page .qe-jump { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ns-root.tool-page .qe-jump::-webkit-scrollbar { display: none; }
.ns-root.tool-page .qe-jump-list { display: flex; flex-wrap: nowrap; gap: .35rem; list-style: none; margin: 0; padding: 0 1px; width: max-content; }
.ns-root.tool-page .qe-jump-list li:not(.is-sub) + li.is-sub { margin-left: .4rem; padding-left: .55rem; border-left: 1px solid var(--p-metal); }
.ns-root.tool-page .qe-jump a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .8rem; background: var(--p-white); border: 1px solid var(--p-metal); border-radius: var(--p-radius); color: var(--p-ink); font-size: .8125rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ns-root.tool-page .qe-jump a[aria-current] { background: var(--p-graphite); border-color: var(--p-graphite); color: #fff; box-shadow: inset 0 -3px 0 var(--p-red); }
.ns-root.tool-page .qe-jump a:focus-visible { outline: 2px solid var(--p-red); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .ns-root.tool-page .qe-jump a:not([aria-current]):hover { background: var(--p-silver); border-color: var(--p-ink-2); } }
.ns-root.tool-page .qe-jc { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 2px; background: var(--p-red); color: #fff; font-family: var(--p-f-mono); font-size: .7rem; font-weight: 600; line-height: 1; }
.ns-root.tool-page #step-car, .ns-root.tool-page #svc, .ns-root.tool-page #qe-addons, .ns-root.tool-page #rep, .ns-root.tool-page .qe-group, .ns-root.tool-page #step-need { scroll-margin-top: var(--qe-sticky-h, 60px); }
.ns-root.tool-page #qe-addons:focus, .ns-root.tool-page .qe-group:focus, .ns-root.tool-page #svc:focus, .ns-root.tool-page #rep:focus, .ns-root.tool-page #step-car:focus { outline: none; }
.qe-body, .qe-body .qe-wrap, .qe-layout, .qe-steps { overflow: visible; }

/* Selected strip, tablet widths only (phones use the review bar, desktop the panel) */
.ns-root.tool-page .qe-picks { display: none; }
@media (min-width: 768px) and (max-width: 1023.98px) {
  .ns-root.tool-page .qe-picks { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; overflow-x: auto; scrollbar-width: none; }
  .ns-root.tool-page .qe-picks[hidden] { display: none; }
}
.ns-root.tool-page .qe-picks-h { flex: none; font-family: var(--p-f-mono); font-size: var(--p-t-label); letter-spacing: .1em; text-transform: uppercase; color: var(--p-ink-2); }
.ns-root.tool-page .qe-picks-list { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.ns-root.tool-page .qe-pick { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .3rem .7rem; background: var(--p-white); border: 1px solid var(--p-ink-2); border-radius: var(--p-radius); font: inherit; font-size: .8125rem; font-weight: 600; color: var(--p-ink); white-space: nowrap; cursor: pointer; }
.ns-root.tool-page span.qe-pick { cursor: default; border-style: solid; background: var(--p-silver); }
.ns-root.tool-page .qe-pick.is-est { border-style: dashed; }
.ns-root.tool-page .qe-pick-x { font-size: 1.1rem; line-height: 1; color: var(--p-red); }
.ns-root.tool-page .qe-pick:focus-visible { outline: 2px solid var(--p-red); outline-offset: 2px; }

/* Price legend and fixed vs estimate styling */
.ns-root.tool-page .qe-key { display: grid; gap: .6rem 1.25rem; margin: 0 0 1.1rem; padding: .8rem .9rem; background: var(--p-silver); border: 1px solid var(--p-rule); border-radius: var(--p-radius); }
@media (min-width: 720px) { .ns-root.tool-page .qe-key { grid-template-columns: 1fr 1fr; } }
.ns-root.tool-page .qe-key-item { display: flex; align-items: flex-start; gap: .7rem; margin: 0; font-size: .8125rem; line-height: 1.4; color: var(--p-ink-2); }
.ns-root.tool-page .qe-key-item strong { color: var(--p-ink); }
.ns-root.tool-page .qe-key-sample { flex: none; min-width: 6.4rem; padding: .25rem .5rem; border-radius: 2px; text-align: center; font-family: var(--p-f-display); font-weight: 600; font-size: .85rem; color: var(--p-ink); white-space: nowrap; }
.ns-root.tool-page .qe-key-fixed, .ns-root.tool-page .qe-price-fixed { border: 1px solid var(--p-ink); background: var(--p-white); }
.ns-root.tool-page .qe-key-est { border: 1px dashed var(--p-ink-2); background: var(--p-steel); }
.ns-root.tool-page #oil-cards .qe-opt-price, .ns-root.tool-page #addon-cards .qe-opt-price,
.ns-root.tool-page #repair-groups .qe-opt-price:not(.is-pending) { display: inline-flex; flex-direction: column; align-items: flex-end; gap: .1rem; padding: .2rem .5rem; border-radius: 2px; white-space: nowrap; line-height: 1.15; }
.ns-root.tool-page #oil-cards .qe-opt-price, .ns-root.tool-page #addon-cards .qe-opt-price { border: 1px solid var(--p-ink); background: var(--p-white); }
.ns-root.tool-page #repair-groups .qe-opt-price:not(.is-pending) { border: 1px dashed var(--p-ink-2); background: var(--p-silver); }
.ns-root.tool-page #oil-cards .qe-opt-price::before, .ns-root.tool-page #addon-cards .qe-opt-price::before { content: "FIXED"; }
.ns-root.tool-page #repair-groups .qe-opt-price:not(.is-pending)::before { content: "ESTIMATE"; }
.ns-root.tool-page #oil-cards .qe-opt-price::before, .ns-root.tool-page #addon-cards .qe-opt-price::before, .ns-root.tool-page #repair-groups .qe-opt-price:not(.is-pending)::before { font-family: var(--p-f-mono); font-size: .56rem; font-weight: 600; letter-spacing: .12em; color: var(--p-ink-2); }
.ns-root.tool-page .qe-opt-card.is-checked .qe-opt-price { background: var(--p-white); }
.ns-root.tool-page .qe-sum-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ns-root.tool-page .qe-sum-h.is-fixed::after, .ns-root.tool-page .qe-sum-h.is-est::after { font-size: .6rem; letter-spacing: .12em; padding: .1rem .4rem; border-radius: 2px; color: var(--p-on-dark); border: 1px solid var(--p-on-dark-2); }
.ns-root.tool-page .qe-sum-h.is-fixed::after { content: "FIXED PRICE"; }
.ns-root.tool-page .qe-sum-h.is-est::after { content: "ESTIMATE"; border-style: dashed; }
.ns-root.tool-page .qe-list.is-est .qe-amt { border-bottom: 1px dashed var(--p-on-dark-2); }

/* Search */
.ns-root.tool-page .qe-searchbox { position: relative; }
.ns-root.tool-page .qe-searchbox input[type="search"] { padding-right: 3rem; }
.ns-root.tool-page .qe-searchbox input[type="search"]::-webkit-search-cancel-button { display: none; }
.ns-root.tool-page .qe-clear { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--p-ink); font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: var(--p-radius); }
.ns-root.tool-page .qe-clear:focus-visible, .ns-root.tool-page .qe-linkbtn:focus-visible { outline: 2px solid var(--p-red); outline-offset: 2px; }
.ns-root.tool-page .qe-status { margin: .35rem 0 0; min-height: 1.2em; font-size: .8125rem; color: var(--p-ink-2); }
.ns-root.tool-page .qe-empty { margin-top: 1rem; padding: 1rem; border: 1px dashed var(--p-ink-2); border-radius: var(--p-radius); background: var(--p-silver); }
.ns-root.tool-page .qe-linkbtn { min-height: 44px; min-width: 44px; padding: .4rem .2rem; border: 0; background: none; color: var(--p-red-hover); font: inherit; font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Two-column repairs list when the card is wide enough (about 1380px+ screens) */
.ns-root.tool-page #step-need { container-type: inline-size; }
@container (min-width: 740px) {
  .ns-root.tool-page #repair-groups { columns: 2; column-gap: 2.25rem; }
  .ns-root.tool-page #repair-groups .qe-group { break-inside: avoid; margin-top: 0; margin-bottom: 1.25rem; padding-top: .25rem; }
}

/* Estimate panel */
.ns-root.tool-page .qe-sum .qe-h2 { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.ns-root.tool-page .qe-sum-count { font-family: var(--p-f-mono); font-size: var(--p-t-label); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--p-on-dark-2); }
.ns-root.tool-page .qe-prog { display: flex; gap: .25rem; list-style: none; margin: .85rem 0 0; padding: 0; }
.ns-root.tool-page .qe-prog li { flex: 1; display: flex; align-items: center; gap: .4rem; min-width: 0; padding-top: .5rem; border-top: 2px solid var(--p-rule-dark); font-family: var(--p-f-mono); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; color: var(--p-on-dark-2); }
.ns-root.tool-page .qe-prog li[data-state="done"] { border-top-color: var(--p-on-dark); color: var(--p-on-dark); }
.ns-root.tool-page .qe-prog li[data-state="current"] { border-top-color: var(--p-red); color: var(--p-on-dark); }
.ns-root.tool-page .qe-prog-dot { flex: none; display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 2px; background: var(--p-rule-dark); font-size: .65rem; }
.ns-root.tool-page .qe-prog li[data-state="done"] .qe-prog-dot { background: var(--p-on-dark); color: var(--p-graphite); }
.ns-root.tool-page .qe-prog li[data-state="current"] .qe-prog-dot { background: var(--p-red); color: #fff; }
.ns-root.tool-page .qe-nudge { margin: .75rem 0 0; font-size: .8125rem; color: var(--p-on-dark-2); }
.ns-root.tool-page .qe-nudge a { color: var(--p-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.ns-root.tool-page .qe-nudge a:focus-visible { outline: 2px solid var(--p-red-on-dark); outline-offset: 2px; }
@media (min-width: 1024px) {
  .ns-root.tool-page .qe-total-val { font-size: clamp(2rem, 1.4rem + 1.2vw, 2.5rem); }
  .ns-root.tool-page .qe-sum .qe-actions { grid-template-columns: 1fr; }
}

/* Mobile review bar */
.qe-review { position: fixed; left: 12px; right: 12px; bottom: calc(var(--quick-h, 58px) + env(safe-area-inset-bottom, 0px) + 10px); z-index: 90; display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: .6rem 1rem; background: var(--p-graphite, #242B31); color: var(--p-on-dark, #F1F3F4); border: 1px solid var(--p-rule-dark, #3A444C); border-bottom: 3px solid var(--p-red, #C8102E); border-radius: var(--p-radius, 4px); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; box-shadow: 0 8px 24px rgba(17,21,25,.35); }
.qe-review-v { font-family: var(--p-f-display); font-variant-numeric: tabular-nums; }
.qe-review-dot { color: var(--p-on-dark-2, #B4BEC5); }
.qe-review:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.qe-review:active { transform: scale(.98); }
@media (min-width: 1024px) { .qe-review, .qe-drawer { display: none !important; } }
html.qe-ui .ns-root.tool-page .qe-pill, html.qe-ui .ns-root.tool-page .qe-pill.is-on { display: none !important; }
html.qe-has-bar { scroll-padding-bottom: calc(var(--quick-h, 58px) + 96px); }
html.qe-lock { overflow: hidden; }

/* Review sheet */
.qe-drawer { position: fixed; inset: 0; z-index: 320; }
.qe-drawer-backdrop { position: absolute; inset: 0; background: rgba(17,21,25,.6); opacity: 0; }
.qe-drawer-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; background: var(--p-silver, #F1F3F4); border-top: 3px solid var(--p-red, #C8102E); border-radius: 8px 8px 0 0; transform: translateY(100%); outline: none; }
@media (min-width: 640px) { .qe-drawer-panel { left: 50%; right: auto; width: min(560px, 100%); margin-left: calc(min(560px, 100%) / -2); } }
@media (prefers-reduced-motion: no-preference) {
  .qe-drawer-backdrop { transition: opacity .2s ease-out; }
  .qe-drawer-panel { transition: transform .25s var(--p-ease, ease-out); }
}
.qe-drawer.is-open .qe-drawer-backdrop { opacity: 1; }
.qe-drawer.is-open .qe-drawer-panel { transform: none; }
.qe-dr-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .5rem .5rem 1rem; border-bottom: 1px solid var(--p-rule, #CDD4D9); }
.qe-dr-head h2 { margin: 0; font-family: var(--p-f-display); font-size: 1.15rem; color: var(--p-ink, #14191E); }
.qe-dr-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; font-size: 1.75rem; line-height: 1; color: var(--p-ink); cursor: pointer; border-radius: var(--p-radius); }
.qe-dr-x:focus-visible, .qe-dr-rm:focus-visible { outline: 2px solid var(--p-red); outline-offset: 2px; }
.qe-dr-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .75rem 1rem 1rem; }
.qe-dr-car { margin: 0 0 .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .6rem; font-size: .8125rem; color: var(--p-ink-2); }
.qe-dr-car span { font-family: var(--p-f-mono); font-size: var(--p-t-label); letter-spacing: .1em; text-transform: uppercase; }
.qe-dr-car strong { font-size: 1rem; color: var(--p-ink); }
.qe-dr-empty { margin: 1rem 0; color: var(--p-ink-2); }
.qe-dr-h { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 .15rem; font-family: var(--p-f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--p-ink); }
.qe-dr-h::before { content: ""; width: 14px; height: 3px; background: var(--p-red); }
.qe-dr-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--p-rule); }
.qe-dr-row { display: flex; align-items: center; gap: .6rem; min-height: 52px; padding: .35rem 0; border-bottom: 1px solid var(--p-rule); }
.qe-dr-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .75rem; }
.qe-dr-name { font-weight: 600; font-size: .9375rem; color: var(--p-ink); }
.qe-dr-name em { font-style: normal; font-weight: 500; color: var(--p-ink-2); font-size: .8125rem; }
.qe-dr-price { font-family: var(--p-f-display); font-weight: 600; font-size: .9375rem; color: var(--p-ink); font-variant-numeric: tabular-nums; }
.qe-dr-row.is-est .qe-dr-price { border-bottom: 1px dashed var(--p-ink-2); }
.qe-dr-rm { flex: none; min-height: 44px; min-width: 44px; padding: .3rem .7rem; background: var(--p-white); border: 1px solid var(--p-metal); border-radius: var(--p-radius); font: inherit; font-size: .8125rem; font-weight: 600; color: var(--p-ink); cursor: pointer; }
.qe-dr-rm span { color: var(--p-red); font-size: 1rem; }
.qe-dr-foot { flex: none; padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom, 0px)); background: var(--p-graphite); color: var(--p-on-dark); }
.qe-dr-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 .75rem; margin-bottom: .75rem; }
.qe-dr-tl { font-family: var(--p-f-mono); font-size: var(--p-t-label); letter-spacing: .12em; text-transform: uppercase; color: var(--p-on-dark-2); }
.qe-dr-total strong { font-family: var(--p-f-display); font-size: 1.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.qe-dr-ts { grid-column: 1 / -1; font-size: .8125rem; color: var(--p-on-dark-2); }
.qe-dr-actions { display: grid; gap: .5rem; }
@media (min-width: 420px) { .qe-dr-actions { grid-template-columns: 1fr 1fr; } }
.qe-drawer .qe-btn { border-radius: var(--p-radius); min-height: 48px; letter-spacing: .04em; font-size: .75rem; }
.qe-drawer .qe-btn-primary { background: var(--p-red); border-color: var(--p-red); color: #fff; }
.qe-drawer .qe-btn-ghost { background: transparent; border-color: var(--p-metal); color: var(--p-on-dark); }
.qe-drawer .qe-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .qe-review:active { transform: none; } }

/* The site header hides on scroll down; let the section index take its place. */
.ns-root.tool-page:has(.site-header.is-hidden) .qe-sticky { top: 0; }
@media (prefers-reduced-motion: no-preference) { .ns-root.tool-page .qe-sticky { transition: top .3s var(--p-ease, ease-out); } }
