/* WCONTRIBUTE: one decision per screen, optimized for an iPad sales conversation. */
.comparison-wizard { max-width: 1180px; margin: auto; }
.wizard-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin-bottom: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.wizard-step { border: 0; border-radius: 0; min-height: 60px; padding: 12px 16px; display: flex; align-items: center; gap: 11px; text-align: left; font-size: 17px; border-bottom: 3px solid transparent; }
.wizard-step + .wizard-step { border-left: 1px solid var(--line); }
.wizard-step:disabled { opacity: 1; color: #748177; cursor: default; background: var(--surface-alt); }
.wizard-step.active { color: var(--green); border-bottom-color: var(--green); background: var(--wash); font-weight: 600; }
.step-number { border: 1px solid #9faa9f; border-radius: 50%; height: 28px; width: 28px; flex-shrink: 0; display: grid; place-items: center; font-size: 14px; }
.active .step-number { color: white; background: var(--green); border-color: var(--green); }
.complete .step-number { color: var(--green); border-color: var(--green); }
.wizard-heading { margin-bottom: 22px; }
.wizard-heading h1:focus { outline: none; }
.wizard-heading .subtitle { max-width: 740px; font-size: 17px; }
.comparison-wizard button, .comparison-wizard input, .comparison-wizard select { min-height: 48px; }
.packaging-setup { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; padding: 30px; }
.setup-fields { display: flex; flex-direction: column; gap: 24px; padding-top: 5px; }
.setup-fields .field { font-size: 16px; }
.setup-fields input { font-size: 19px; min-height: 54px; }
.field-help { font-size: 16px; color: var(--muted); line-height: 1.5; }
.setup-fields > .text { align-self: flex-start; text-align: left; }
.packaging-options { border: 0; margin: 0; padding: 0; min-width: 0; }
.packaging-options legend { font-size: 16px; color: var(--muted); margin-bottom: 10px; }
.packaging-option { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 13px 16px; margin-bottom: 9px; font-size: 19px; min-height: 58px; }
.packaging-option small { margin-left: auto; white-space: nowrap; }
.packaging-option[aria-pressed=true] { background: var(--wash); border-color: var(--green); color: var(--green); }
.choice-dot { width: 20px; height: 20px; border: 1px solid #84978a; border-radius: 50%; flex-shrink: 0; }
[aria-pressed=true] .choice-dot { background: var(--green); box-shadow: inset 0 0 0 4px var(--wash); border-color: var(--green); }
.comparison-wizard .concept-title { padding: 22px 26px; }
.comparison-wizard .concept-title h2 { font-size: 22px; }
.concept-parts { display: grid; }
.concept-parts.two-parts { grid-template-columns: 1fr 1fr; }
.comparison-wizard .part { padding: 24px 26px; }
.comparison-wizard .two-parts .part + .part { border-top: 0; border-left: 1px solid var(--line); }
.comparison-wizard .part-top { gap: 15px; margin-bottom: 20px; }
.comparison-wizard .part-top .field { width: 100%; font-size: 15px; }
.comparison-wizard .part-top input { width: 100%; border: 1px solid var(--control-line); padding: 10px 12px; font-size: 18px; font-weight: 400; }
.comparison-wizard .part-top > span { white-space: nowrap; }
.selected-layer { padding: 16px 0 8px; border-top: 1px solid var(--line); }
.comparison-wizard .layer { grid-template-columns: minmax(0,1fr) 125px 48px; gap: 16px; align-items: center; margin-bottom: 5px; }
.material-choice { text-align: left; padding: 11px 14px; min-height: 66px !important; display: grid; gap: 5px; align-content: center; }
.material-choice strong { font-size: 19px; overflow-wrap: anywhere; }
.material-choice small { font-size: 14px; overflow-wrap: anywhere; }
.layer-weight { display: grid; gap: 6px; text-align: right; }
.layer-weight > strong { font-size: 20px; white-space: nowrap; }
.comparison-wizard .layer > button { width: auto; }
.comparison-wizard .layer > button.danger { min-width: 48px; padding: 7px; font-size: 25px; }
.comparison-wizard .layer .field { font-size: 14px; }
.comparison-wizard .layer-note { align-items: center; font-size: 14px; margin: 0 0 8px; min-height: 30px; }
.comparison-wizard .layer-note button { padding: 5px 0; }
.comparison-wizard .part-actions { gap: 12px; padding-top: 8px; flex-wrap: wrap; }
.comparison-wizard .part-actions button { font-size: 17px; padding: 10px 14px; border: 1px solid var(--line); }
.comparison-wizard .part-actions button:first-child { color: var(--green); border-color: var(--green); }
.comparison-wizard .empty-layer { padding: 28px 22px; font-size: 18px; line-height: 1.6; }
.wizard-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0 12px; margin-top: 14px; }
.wizard-footer .primary { min-width: 180px; min-height: 52px; padding: 12px 24px; font-size: 19px; justify-content: space-between; }
.wizard-footer > div > button { min-width: 110px; }
.wizard-footer .actions > button:not(.primary) { font-size: 18px; }
.comparison-wizard:not(.step-3) .wizard-footer { position: sticky; bottom: 0; z-index: 5; background: var(--paper); border-top: 1px solid var(--line); padding-bottom: max(12px,env(safe-area-inset-bottom)); }
.result-secondary { justify-content: space-between; margin-top: 1px; }
.result-secondary button { font-size: 16px; }
.result-secondary > span { margin-left: auto; }
.comparison-wizard .disclaimer { font-size: 12px; margin-top: 9px; padding-top: 12px; }
.material-browser { width: min(940px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.material-browser .field { font-size: 16px; }
.material-browser input { min-height: 52px; font-size: 18px; }
.material-browser .help { font-size: 16px; }
.material-browser .dialog-body { padding: 22px 26px 28px; }
.category-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; margin: 14px 0; }
.category-breadcrumbs button { font-size: 16px; padding: 10px; min-height: 44px; }
.category-breadcrumbs button:last-child { font-weight: 600; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.category-choice { min-height: 76px; padding: 15px; display: flex; align-items: center; gap: 14px; text-align: left; }
.category-choice .icon { width: 27px; height: 27px; color: var(--green); }
.category-choice > span { display: grid; gap: 4px; }
.category-choice strong { font-size: 19px; overflow-wrap: anywhere; }
.category-choice small { font-size: 14px; }
.category-choice > b { margin-left: auto; color: var(--green); font-size: 23px; }
.picker-materials { border-top: 1px solid var(--line); }
.material-browser .picker-item { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 80px; padding: 15px 10px; }
.picker-item strong { font-size: 19px; }
.picker-item small { font-size: 14px; }
.picker-item > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.picker-material-meta { text-align: right; font-size: 16px; white-space: nowrap; }
.picker-material-meta small { color: var(--green); }
.picker-hint, .picker-count { margin: 18px 0 4px; color: var(--muted); font-size: 16px; }
.picker-more { width: 100%; margin-top: 12px; min-height: 48px; }
.demo-choices { display: grid; gap: 14px; }
.demo-choices button { min-height: 52px; font-size: 18px; }
.demo-box button { min-height: 48px; }
dialog button, dialog .checkbox { min-height: 44px; }
dialog header button { min-width: 44px; }
dialog select { min-height: 48px; font-size: 18px; }
dialog label.checkbox { padding: 7px 0; align-items: flex-start; line-height: 1.4; }
dialog label.checkbox input { width: 22px; height: 22px; min-height: 22px; flex-shrink: 0; }
.dialog-body > form > .field { margin-bottom: 20px; font-size: 16px; }

@media (max-width:1366px) {
  .shell { display: block; }
  .sidebar { position: relative; height: auto; flex-direction: row; align-items: center; gap: 24px; padding: 14px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { flex-shrink: 0; }
  .brand img { width: 140px; max-height: 42px; }
  .brand p { display: none; }
  .nav { flex-direction: row; min-width: 0; flex: 1; overflow-x: auto; gap: 5px; margin: 0; padding: 0; }
  .nav a { white-space: nowrap; font-size: 16px; padding: 10px 13px; min-height: 44px; }
  .nav-label, .sidebar-bottom { display: none; }
  .topbar { height: 52px; padding: 0 24px; background: var(--paper); }
  .topbar .actions { flex-wrap: nowrap; }
  .topbar button { min-height: 44px; }
  .content { padding: 21px 24px; max-width: 1240px; }
  .footer-note { margin-top: 10px; }
}
@media (max-width:1050px) {
  .wizard-steps { margin-bottom: 21px; }
  .wizard-step { min-height: 55px; padding: 9px 12px; font-size: 16px; gap: 8px; }
  .wizard-heading h1 { font-size: 29px; }
  .wizard-heading .subtitle { font-size: 16px; margin-top: 6px; }
  .packaging-setup { gap: 28px; padding: 24px; }
  .concept-parts.two-parts .layer { grid-template-columns: minmax(0,1fr) 85px 44px; gap: 9px; }
  .concept-parts.two-parts .part { padding: 21px 19px; }
  .concept-parts.two-parts .material-choice strong { font-size: 17px; }
}
@media (max-width:850px) {
  .sidebar { gap: 18px; padding: 14px 20px; }
  .brand img { width: 124px; }
  .nav a { font-size: 15px; padding: 10px; }
  .topbar { padding: 0 20px; }
  .topbar > span { display: none; }
  .topbar > .actions { width: 100%; justify-content: space-between; }
  .content { padding: 21px 20px; }
  .wizard-step { gap: 7px; padding: 10px; font-size: 15px; }
  .step-number { width: 25px; height: 25px; font-size: 13px; }
  .wizard-heading { gap: 15px; }
  .wizard-heading h1 { font-size: 27px; }
  .wizard-heading > .actions { max-width: 150px; }
  .concept-parts.two-parts { grid-template-columns: 1fr; }
  .comparison-wizard .two-parts .part + .part { border-left: 0; border-top: 1px solid var(--line); }
  .comparison-wizard .two-parts .layer { grid-template-columns: minmax(0,1fr) 125px 48px; }
}
@media (max-width:650px) {
  .sidebar { display: flex; flex-direction: column; gap: 12px; align-items: stretch; padding: 15px 16px 9px; }
  .brand { display: block; }
  .brand img { width: 130px; }
  .nav { flex: auto; }
  .topbar { height: 48px; padding: 0 16px; }
  .topbar .mode { max-width: 39%; font-size: 10px; }
  .topbar button { min-height: 44px; }
  .content { padding: 19px 16px; }
  .wizard-steps { margin-bottom: 19px; }
  .wizard-step { flex-direction: column; gap: 6px; padding: 10px 4px; font-size: 11px; min-height: 72px; text-align: center; }
  .step-number { width: 25px; height: 25px; }
  .wizard-heading { display: block; }
  .wizard-heading h1 { font-size: 26px; }
  .wizard-heading > .actions { max-width: none; margin-top: 10px; }
  .packaging-setup { grid-template-columns: 1fr; gap: 25px; padding: 20px; }
  .packaging-option { font-size: 17px; padding: 13px; gap: 10px; }
  .comparison-wizard .part { padding: 20px; }
  .comparison-wizard .concept-title { padding: 17px 20px; flex-wrap: wrap; }
  .comparison-wizard .layer, .comparison-wizard .two-parts .layer { grid-template-columns: minmax(0,1fr) 78px 44px; gap: 8px; }
  .material-choice { padding: 10px; }
  .material-choice strong { font-size: 16px; }
  .material-choice small { font-size: 12px; }
  .layer-weight > strong { font-size: 16px; }
  .layer-weight small { font-size: 11px; }
  .comparison-wizard .layer > button.danger { min-width: 44px; }
  .comparison-wizard .part-actions button { font-size: 15px; padding: 10px; }
  .wizard-footer { align-items: flex-end; gap: 10px; }
  .wizard-footer .primary { min-width: 150px; font-size: 17px; padding-inline: 15px; }
  .wizard-footer > div:first-child .small { max-width: 130px; display: block; }
  .wizard-footer .actions { justify-content: flex-end; }
  .wizard-footer > div > button { min-width: 80px; }
  .result-secondary { gap: 0; }
  .result-secondary > span { margin-left: 10px; }
  .material-browser { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .material-browser .dialog-body { padding: 20px 16px; }
  .category-grid { grid-template-columns: 1fr; }
  .material-browser .picker-item { padding: 14px 4px; gap: 10px; }
  .picker-item strong { font-size: 17px; }
  .picker-item small, .picker-material-meta { font-size: 12px; }
}
