/* Bespoke Wardrobes — configurator layout and controls.
   Rev 11 Nov 2026: big room view on the left, one step panel on the right, a price bar fixed along the bottom.
   Nothing under 15 px. */
.cfg-page { display: flex; flex-direction: column; min-height: 100vh; --bar-h: 92px; --step-h: 72px; padding-bottom: var(--bar-h); }
.cfg-page .nav { position: relative; }
.cfg-page .nav .container, .cfg-main, .cfg-steps, .cfg-bar-in { max-width: 1560px; }

/* step bar */
.cfg-stepbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.cfg-steps { margin: 0 auto; padding: 0 32px; height: var(--step-h); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.cfg-steps .step { position: relative; display: flex; align-items: center; gap: 14px; padding: 0 8px; border: none; background: transparent; color: var(--muted); cursor: pointer; text-align: left; min-width: 0; transition: color .2s; }
.cfg-steps .step::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--line); border-radius: 3px 3px 0 0; transition: background .3s; }
.cfg-steps .step.done::after { background: var(--green); }
.cfg-steps .step.cur::after { background: var(--copper); }
.cfg-steps .step i { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: 16px; border: 1.5px solid #C6C0B3; color: var(--muted); background: var(--paper); transition: all .25s; }
.cfg-steps .step i svg { width: 18px; height: 18px; }
.cfg-steps .step.done i { background: var(--green-deep); border-color: var(--green-deep); color: var(--chalk); }
.cfg-steps .step.cur i { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
.cfg-steps .step span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.cfg-steps .step b { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--muted); }
.cfg-steps .step.cur b, .cfg-steps .step.done b, .cfg-steps .step:hover b { color: var(--ink); }
.cfg-steps .step small { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* main layout */
.cfg-main { flex: 1; width: 100%; margin: 0 auto; padding: 24px 32px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); gap: 28px; align-items: start; }
.cfg-view { position: sticky; top: calc(var(--step-h) + 20px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cfg-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cfg-toolset { display: flex; gap: 8px; align-items: center; }
.seg-wrap { display: inline-flex; border: 1px solid #CFCABD; background: var(--paper); border-radius: 999px; padding: 4px; gap: 2px; }
.seg { padding: 11px 22px; border-radius: 999px; font-size: 16px; font-weight: 600; cursor: pointer; border: none; background: transparent; color: var(--ink); transition: all .2s; }
.seg.on { background: var(--green-deep); color: var(--chalk); }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; min-width: 46px; padding: 0 12px; border-radius: 999px; border: 1px solid #CFCABD; background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer; transition: all .2s; }
.tool svg { width: 20px; height: 20px; }
.tool.wide { padding: 0 18px 0 14px; }
.tool:hover:not(:disabled) { border-color: var(--ink); }
.tool:disabled { opacity: .35; cursor: default; }
.tool.on { background: var(--green-soft); border-color: var(--green-deep); color: var(--green-ink); }
.cfg-stage { position: relative; height: calc(100vh - var(--step-h) - var(--bar-h) - 170px); min-height: 400px; max-height: 860px; border-radius: 22px; overflow: hidden; background: #EDE7DB; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.cfg-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cfg-stage text { font-family: var(--font-head); font-weight: 600; paint-order: stroke; stroke: #F6F3EC; stroke-linejoin: round; stroke-linecap: round; }
.cfg-stage .bayhit { cursor: pointer; outline: none; }
.cfg-stage .bayhit:hover > rect:first-child { fill: rgba(201,162,126,.12); }
.cfg-stage .bayhit:focus-visible > rect:first-child { fill: rgba(201,162,126,.22); stroke: var(--copper); stroke-width: 12; }
.cfg-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 15px; color: var(--muted); }
.cfg-meta .ok { display: inline-flex; align-items: center; gap: 8px; color: var(--green-deep); font-weight: 600; }
.cfg-meta .ok svg { width: 18px; height: 18px; }
.cfg-meta .linkbtn { margin-left: auto; }
.linkbtn { border: none; background: none; color: var(--green-deep); font-weight: 600; cursor: pointer; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }

/* step panel */
.cfg-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cfg-head { display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 6px; }
.cfg-head h1 { font-size: 38px; letter-spacing: -.03em; }
.cfg-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; animation: cfgIn .35s var(--ease); }
@keyframes cfgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cfg-panel .lab, .cfg-panel .field label { font-size: 17px; font-weight: 600; color: var(--ink); font-family: var(--font-head); }
.cfg-panel .hint { font-size: 15px; color: var(--muted); line-height: 1.45; }
.cfg-tip { background: var(--green-soft); border-radius: var(--radius); padding: 22px 24px; font-size: 16px; }
.cfg-tip strong { font-family: var(--font-head); font-size: 18px; }
.cfg-tip ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; color: #36413B; }
.unit { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: var(--muted); }
.unit input { width: 108px; padding: 10px 12px; border: 1px solid #CFCABD; border-radius: 10px; font-weight: 600; font-size: 19px; font-family: var(--font-head); text-align: right; background: var(--paper); }
.unit input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(111,130,117,.2); }
.cfg-panel input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.cfg-panel input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: var(--line); }
.cfg-panel input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
.cfg-panel input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--green-deep); border: 4px solid var(--paper); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.cfg-panel input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--green-deep); border: 4px solid var(--paper); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border-radius: 999px; font-size: 16px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); transition: all .2s; }
.pill:hover { border-color: var(--green); }
.pill.on { background: var(--green-deep); border-color: var(--green-deep); color: var(--chalk); }
.pill i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); flex-shrink: 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #CFCABD; border-radius: 999px; overflow: hidden; background: var(--paper); }
.stepper button { width: 50px; height: 48px; border: none; background: transparent; font-size: 24px; cursor: pointer; color: var(--ink); line-height: 1; }
.stepper button:hover:not(:disabled) { background: var(--green-soft); }
.stepper button:disabled { color: #C2BCB0; cursor: default; }
.stepper b { min-width: 34px; text-align: center; font-family: var(--font-head); font-size: 21px; }
.stepper.small button { width: 42px; height: 42px; font-size: 22px; }
.stepper.small b { font-size: 19px; min-width: 28px; }
.stepper.small input { width: 64px; border: none; text-align: center; font-weight: 600; font-size: 17px; padding: 4px 0; background: transparent; }
.baytabs { display: flex; gap: 8px; flex-wrap: wrap; }
.baytab { flex: 1 1 110px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; text-align: left; transition: all .2s; }
.baytab b { font-family: var(--font-head); font-size: 17px; }
.baytab small { font-size: 15px; color: var(--muted); }
.baytab:hover { border-color: var(--green); }
.baytab.on { border-color: var(--copper-deep); background: var(--copper-soft); box-shadow: inset 0 0 0 1px var(--copper-deep); }
.presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.preset { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; transition: all .2s; }
.preset svg { width: 40px; height: 60px; color: var(--green-deep); }
.preset:hover { border-color: var(--green); }
.preset.on { border-color: var(--green-deep); background: var(--green-soft); }
.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.counter { border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--muted); }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; line-height: 1.4; }
.checks li { padding: 12px 14px 12px 44px; border-radius: 12px; background: var(--green-soft); position: relative; color: #36413B; }
.checks li::before { content: "✓"; position: absolute; left: 14px; top: 11px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-deep); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.checks li.warn { background: #FBEDE4; color: #6B3A1E; }
.checks li.warn::before { content: "!"; background: #B5562A; }
.checks b { color: var(--ink); }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; border-radius: 14px; cursor: pointer; text-align: left; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); transition: all .2s; }
.opt:hover { border-color: var(--green); }
.opt.on { border-color: var(--green-deep); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-deep); }
.opt span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.opt b { font-size: 17px; font-weight: 600; font-family: var(--font-head); }
.opt small { font-size: 15px; color: var(--muted); line-height: 1.3; }
.opt em { font-style: normal; font-size: 16px; font-weight: 600; white-space: nowrap; }
.opt .tick { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; border: 1.5px solid #B9B2A7; background: var(--paper); display: grid; place-items: center; }
.opt.on .tick { background: var(--green-deep); border-color: var(--green-deep); }
.opt.on .tick::after { content: ""; width: 12px; height: 6px; border-left: 2.5px solid var(--chalk); border-bottom: 2.5px solid var(--chalk); transform: rotate(-45deg) translate(1px, -1px); }
.extra.on .opt { border-radius: 14px 14px 0 0; }
.dim { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px 12px 54px; background: var(--green-soft); border: 1.5px solid var(--green-deep); border-top: none; border-radius: 0 0 14px 14px; font-size: 16px; box-shadow: inset 1px 0 0 var(--green-deep), inset -1px 0 0 var(--green-deep), inset 0 -1px 0 var(--green-deep); }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sw { display: flex; flex-direction: column; gap: 6px; padding: 0; border: none; background: none; cursor: pointer; text-align: left; color: var(--ink); }
.sw i { display: block; aspect-ratio: 1; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.16); transition: transform .2s, box-shadow .2s; }
.sw span { font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--muted); }
.sw:hover i { transform: scale(1.04); }
.sw.on i { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--green-deep); }
.sw.on span { color: var(--ink); font-weight: 600; }
.chosen { font-size: 16px; color: var(--muted); padding-top: 4px; border-top: 1px solid var(--line-soft); }
.chosen b { color: var(--ink); font-family: var(--font-head); font-size: 18px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 6px; border-radius: 14px; cursor: pointer; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); transition: all .2s; }
.tile-btn b { font-size: 16px; font-family: var(--font-head); }
.tile-btn small { font-size: 15px; color: var(--muted); }
.tile-btn:hover { border-color: var(--green); }
.tile-btn.on { border-color: var(--green-deep); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-deep); }
.included { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 16px; color: var(--muted); }
.included b { color: var(--green-deep); }

/* price bar */
.cfg-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--green-night); color: var(--chalk); box-shadow: 0 -14px 40px -14px rgba(0,0,0,.4); }
.cfg-bar-in { margin: 0 auto; height: var(--bar-h); padding: 0 32px; display: flex; align-items: center; gap: 24px; }
.cfg-price { display: grid; grid-template-columns: auto auto; column-gap: 16px; align-items: center; background: none; border: none; color: inherit; cursor: pointer; text-align: left; padding: 0; }
.cfg-price small { grid-column: 1 / -1; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--copper); }
.cfg-price b { font-family: var(--font-head); font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.cfg-price span { font-size: 15px; color: #B9C3BC; max-width: 22em; line-height: 1.3; }
.cfg-bar .btn.ghost { color: var(--chalk); border-color: rgba(244,242,236,.35); }
.cfg-bar .btn.ghost:hover { border-color: var(--chalk); background: rgba(244,242,236,.08); }
.cfg-bar .btn.primary { background: var(--chalk); color: var(--green-ink); }
.cfg-bar .btn.primary:hover { background: #fff; }
.cfg-bar .btn { width: auto; }
.cfg-bar .btn svg { flex-shrink: 0; }
.cfg-price { min-width: 0; }
.cfg-bar-nav { margin-left: auto; display: flex; gap: 10px; }

/* summary sheet */
.cfg-sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.cfg-sheet-wrap[hidden] { display: none; }
.cfg-sheet-back { position: absolute; inset: 0; background: rgba(20,26,22,.5); backdrop-filter: blur(3px); animation: fadeIn .25s; }
.cfg-sheet { position: absolute; right: 0; top: 0; bottom: 0; width: min(520px, 100%); background: var(--chalk); padding: 30px; overflow: auto; display: flex; flex-direction: column; gap: 20px; box-shadow: -30px 0 80px -30px rgba(0,0,0,.5); animation: sheetIn .35s var(--ease); }
@keyframes sheetIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cfg-sheet header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cfg-sheet header h2 { font-size: 48px; margin-top: 8px; }
.cfg-sheet header h2 small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; font-family: var(--font-body); }
.cfg-sheet h3 { font-size: 21px; }
.cfg-sheet .lines { margin: 0; padding: 20px 22px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 12px; font-size: 17px; }
.cfg-sheet .lines li { display: flex; justify-content: space-between; gap: 16px; }
.cfg-sheet .lines li.sub { color: var(--muted); font-size: 16px; }
.cfg-sheet .lines li.sub b { font-weight: 500; }
.cfg-sheet .lines li.tot { border-top: 1px solid var(--line); padding-top: 12px; font-family: var(--font-head); font-size: 21px; font-weight: 700; }
.specl { margin: 0; display: grid; gap: 0; font-size: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px; }
.specl div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.specl div:last-child { border-bottom: none; }
.specl dt { color: var(--muted); }
.specl dd { margin: 0; font-weight: 500; }
.cfg-sheet .notice svg { color: var(--green-deep); }
.cfg-sheet .btn svg { width: 18px; height: 18px; }
body.sheet-open { overflow: hidden; }

/* toast */
.cfg-toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 18px); transform: translate(-50%, 16px); background: var(--ink); color: var(--chalk); padding: 14px 22px; border-radius: 999px; font-size: 16px; font-weight: 500; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); z-index: 70; max-width: calc(100vw - 32px); text-align: center; }
.cfg-toast.on { opacity: 1; transform: translate(-50%, 0); }
.cfg-toast.act { pointer-events: auto; display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 22px; }
.cfg-toast button { border: none; border-radius: 999px; background: var(--copper); color: var(--ink); font-weight: 700; font-size: 16px; padding: 10px 20px; cursor: pointer; }
.cfg-toast button:hover { background: #D6B08C; }
.tool.reset { color: #8A3B1C; border-color: #E2C3B2; }
.tool.reset:hover:not(:disabled) { border-color: #8A3B1C; background: #FBEDE4; }
.cfg-resetlink { align-self: center; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 14px 22px; border-radius: 999px; border: 1.5px solid #E2C3B2; background: transparent; color: #8A3B1C; font-size: 16px; font-weight: 600; cursor: pointer; transition: all .2s; }
.cfg-resetlink svg { width: 18px; height: 18px; }
.cfg-resetlink:hover { border-color: #8A3B1C; background: #FBEDE4; }

/* quote page reuses these */
.cfg-size { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--muted); }
.price-card { background: var(--green-ink); color: var(--chalk); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.price-card .big-price { font-family: var(--font-head); font-weight: 700; font-size: 44px; letter-spacing: -0.02em; line-height: 1; }
.price-card .muted-l { font-size: 15px; color: #C5CDC7; }
.price-card ul { margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid rgba(244,242,236,.14); display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.price-card li { display: flex; justify-content: space-between; gap: 12px; }
.price-card li span:first-child { color: #C5CDC7; }
.price-card .btn { width: 100%; }
.spec { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.spec h3 { font-size: 19px; }
.spec div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
.spec div:last-child { border-bottom: none; padding-bottom: 0; }
.spec div span:first-child { color: var(--muted); }
.spec div span:last-child { text-align: right; }

.cfg-print { display: none; }

/* responsive */
@media (max-width: 1180px) {
  .cfg-steps .step small { display: none; }
  .cfg-main { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: 20px; padding: 20px 24px 32px; }
  .cfg-break { display: none; }
  .tool.wide:not(.keep) span { display: none; }
  .tool.wide:not(.keep) { padding: 0 12px; }
}
@media (max-width: 1000px) {
  .cfg-page { --bar-h: 84px; --step-h: 62px; }
  .cfg-main { grid-template-columns: 1fr; padding: 0 18px 28px; gap: 14px; }
  /* the drawing stays in view while the options scroll underneath it */
  .cfg-view { position: sticky; top: var(--step-h); z-index: 30; background: var(--chalk); padding: 12px 0 10px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; gap: 10px; box-shadow: 0 12px 18px -14px rgba(27,31,28,.35); }
  .cfg-stage { height: min(40vh, 72vw); min-height: 230px; border-radius: 16px; }
  .cfg-meta { display: none; }
  .tool.wide[data-print] { display: none; }
  .seg { padding: 10px 16px; }
  .tool { height: 42px; min-width: 42px; }
  .cfg-steps { padding: 0 10px; gap: 2px; }
  .cfg-steps .step { flex-direction: column; justify-content: center; gap: 3px; padding: 0; text-align: center; }
  .cfg-steps .step i { width: 28px; height: 28px; font-size: 15px; }
  .cfg-steps .step b { font-size: 15px; }
  .cfg-bar-in { padding: 0 18px; gap: 12px; }
  .cfg-price b { font-size: 32px; }
  .cfg-price span { display: none; }
  .cfg-head h1 { font-size: 32px; }
}
@media (max-width: 560px) {
  .cfg-price small { font-size: 15px; letter-spacing: .04em; text-transform: none; }
  .cfg-price b { font-size: 28px; }
  .cfg-bar .btn { padding: 16px 20px; font-size: 16px; }
  .cfg-bar [data-back] span { display: none; }
  .cfg-bar [data-back] { padding: 16px; }
  .presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cfg-panel { padding: 18px; }
  .tool.wide.keep span { display: none; }
  .tool.wide.keep { padding: 0 12px; }
  .cfg-sheet { padding: 22px 18px; }
  .cfg-sheet header h2 { font-size: 40px; }
  .seg { padding: 10px 16px; }
}

/* print: the drawing, the specification and the price on one sheet */
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  body.cfg-page { background: #fff; padding: 0; min-height: 0; display: block; }
  .nav, .cfg-stepbar, .cfg-side, .cfg-bar, .cfg-tools, .cfg-meta, .cfg-toast, .cfg-sheet-wrap { display: none !important; }
  .cfg-main { display: block; padding: 0; max-width: none; }
  .cfg-view { position: static; }
  .cfg-stage { height: 118mm; min-height: 0; border-radius: 4mm; box-shadow: none; border: .3mm solid #999; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cfg-print { display: block; color: #111; font-size: 10.5pt; }
  .cfg-print header { display: flex; align-items: center; gap: 6mm; margin-bottom: 5mm; }
  .cfg-print header img { width: 24mm; height: 24mm; }
  .cfg-print header h1 { font-size: 22pt; }
  .cfg-print header p { color: #444; font-size: 10pt; }
  .cfg-print header strong { margin-left: auto; font-family: var(--font-head); font-size: 24pt; text-align: right; line-height: 1; }
  .cfg-print header strong small { display: block; font-size: 9pt; font-weight: 500; color: #444; margin-top: 1.5mm; font-family: var(--font-body); }
  .cfg-print .cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8mm; margin-top: 6mm; }
  .cfg-print h2 { font-size: 13pt; margin-bottom: 2mm; }
  .cfg-print dl { margin: 0; }
  .cfg-print dl div { display: grid; grid-template-columns: 30mm 1fr; gap: 3mm; padding: 1.4mm 0; border-bottom: .2mm solid #ccc; }
  .cfg-print .cols > div:last-child dl div { grid-template-columns: 1fr auto; }
  .cfg-print dt { color: #555; }
  .cfg-print dd { margin: 0; font-weight: 600; }
  .cfg-print .tot { font-size: 12pt; border-bottom: .4mm solid #111; }
  .cfg-print p { margin-top: 3mm; color: #444; font-size: 9pt; }
  body.cfg-page { display: flex; flex-direction: column; }
  .cfg-print { order: -1; }
}
