/* B: one photographic selection scene for administrators and customers. */
.selection-header { display: none; }
.is-selecting :is(.workspace-header,.bottom-nav,.preview-label) { display: none; }
.is-selecting .selection-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 84px; padding: 0 5vw; position: sticky; top: 0; z-index: 10;
  background: var(--ui-bg); border-bottom: 1px solid var(--ui-line);
}
#selection-context { display: flex; flex-direction: column; align-items: center; min-width: 0; gap: 4px; }
#selection-context b { font-size: 14px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
#selection-context span { font-size: 12px; color: var(--ui-muted); }
.is-selecting #workspace-content { padding-top: 0!important; padding-bottom: 120px!important; }
.stepnav { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 26px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 84px; z-index: 8; border-bottom: 1px solid var(--ui-line); background: var(--ui-bg); padding: 0; margin: 0 0 8px; }
.is-selecting .stepnav .btn { flex-shrink: 0; min-height: 58px; padding: 14px 0; border: 0; border-radius: 0; background: none; color: var(--ui-muted); position: relative; font-size: 13px; }
.stepnav .btn::after { content: ''; height: 2px; position: absolute; bottom: 0; left: 0; right: 0; background: var(--ui-accent); transform: scaleX(0); transition: transform var(--ui-transition) var(--ui-ease); }
.is-selecting .stepnav .btn.active { color: var(--ui-accent); font-weight: 600; }
.stepnav .btn.active::after { transform: scaleX(1); }
.scroll-config { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: 54px; align-items: start; }
.stage-sticky { position: sticky; top: 180px; align-self: start; min-width: 0; padding: 18px 0; }
.stage-sticky .product-art { width: 100%; height: clamp(280px,40vw,450px); border-radius: var(--radius-card); overflow: hidden; padding: 0; margin: 0; background: var(--ui-image); }
.stage-sticky .equipment-image img { padding: 10%; }
.stage-caption { margin-top: 22px; }
.stage-caption>span { font-size: 12px; color: var(--ui-muted); }
.stage-caption h2 { font-size: clamp(26px,2.9vw,38px); font-weight: 450; letter-spacing: -.03em; line-height: 1.25; margin: 8px 0; overflow-wrap: anywhere; }
.scroll-chapter { min-height: 72vh; padding: 42px 0 64px; scroll-margin-top: 160px; border-bottom: 1px solid var(--ui-line); }
.scroll-chapter h2 { font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1.35; margin: 10px 0 28px; }
.scroll-chapter input[data-selection-filter] { width: 100%; padding: 11px 12px; border: 1px solid var(--ui-line); margin-bottom: 16px; }
.option { padding: 22px 0; border: 0; border-bottom: 1px solid var(--ui-line); background: transparent; margin: 0; border-radius: 0; position: relative; transition: background var(--ui-feedback),border-color var(--ui-feedback); }
.option.selected { border-color: #9ca68c; }
.option.selected::before { content: ''; position: absolute; width: 3px; height: 22px; left: -13px; top: 27px; background: var(--ui-accent); }
.option .equipment-thumb { display: none; }
.option .row { gap: 15px; flex-wrap: nowrap; }
.option .choose { padding: 0; text-align: left; flex: 1; min-width: 0; color: var(--ui-text); }
.option .choose strong { font-size: 18px; font-weight: 550; line-height: 1.45; display: block; overflow-wrap: anywhere; }
.option .choose:disabled { color: inherit; opacity: 1; }
.option-meta { margin-top: 14px; align-items: start; }
.option .label { font-size: 12px; line-height: 1.8; color: var(--ui-muted); }
.option-price { font-size: 13px; white-space: nowrap; }
.selection-change { font-size: 12px; color: var(--ui-accent); line-height: 1.8; margin: 14px 0 0; }
.selection-card-notice { font-size: 12px; color: var(--ui-warning); line-height: 1.8; }
.option .parameter-toggle { display: flex; gap: 9px; align-items: center; padding: 10px 0 0; color: var(--ui-muted); font-size: 12px; }
.parameters-content { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 220ms var(--ui-ease),opacity 180ms; }
.parameters-content>div { min-height: 0; overflow: hidden; }
.parameters-content p { margin: 12px 0 0; padding: 12px 14px; background: var(--ui-tint); font-size: 13px; line-height: 1.8; color: var(--ui-text); border-radius: var(--radius-card); overflow-wrap: anywhere; }
.parameters-open .parameters-content { grid-template-rows: 1fr; opacity: 1; }
.selection-chapter-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.is-selecting .selection-chapter-actions .btn { background: none; border: 0; padding: 8px 0; color: var(--ui-accent); font-size: 12px; white-space: normal; }
.is-selecting .selection-chapter-actions .btn:last-child { color: var(--ui-muted); }
.summarybar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px max(5vw,calc((100vw - 1188px)/2)); padding-bottom: max(18px,env(safe-area-inset-bottom)); background: var(--ui-surface); border-top: 1px solid var(--ui-line); }
.summarybar b { font-size: 14px; font-weight: 550; }
.summarybar .label { font-size: 12px; margin-top: 3px; color: var(--ui-muted); }
.summarybar .right { display: flex; align-items: center; gap: 24px; flex-wrap: nowrap; }
.selection-estimate { text-align:right; }
.selection-estimate small { display:block; color:var(--ui-muted); font-size:11px; }
.summarybar .selection-estimate b { font-size:18px; font-weight:550; }
.review-group.review-group-empty { margin:0; padding:8px 0; border:0; }
#overlay[data-scene=catalog] .review-group h3 { font-size: 17px; }
#overlay[data-scene=catalog] .review-project b { font-size: 20px; font-weight: 550; }
#overlay[data-scene=catalog] .review-line { font-size: 13px; }
#overlay[data-scene=catalog] .review-actions { background: var(--ui-surface); }
@media(max-width:1050px) {
  .scroll-config { gap: 32px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .stepnav { gap: 22px; }
  .option .choose strong { font-size: 17px; }
}
@media(max-width:650px) {
  .is-selecting .selection-header { height: 88px; padding: 10px 18px; gap: 10px; }
  .selection-header>.textbtn { font-size: 11px; white-space: nowrap; }
  .is-selecting .selection-header>.btn { padding: 8px 10px; font-size: 11px; }
  #selection-context { align-items: start; }
  #selection-context b { font-size: 13px; }
  #selection-context span { font-size: 10px; line-height: 1.6; white-space: normal; }
  .stepnav { top: 88px; gap: 22px; }
  .is-selecting .stepnav .btn { min-height: 53px; font-size: 13px; }
  .scroll-config { display: block; }
  .stage-sticky { display: none; }
  .scroll-chapter { min-height: 0; padding: 30px 0 40px; scroll-margin-top: 154px; }
  .scroll-chapter h2 { font-size: 28px; margin: 7px 0 22px; }
  .option { padding: 0 0 22px; margin: 0 0 24px; }
  .option .equipment-thumb { display: block; padding: 0; width: 100%; aspect-ratio: 1.48; margin-bottom: 18px; border-radius: var(--radius-card); overflow: hidden; }
  .option .equipment-thumb img { padding: 10%; }
  .option.selected::before { top: auto; bottom: -1px; left: 0; width: 44px; height: 2px; }
  .option .row { gap: 12px; }
  .option .choose strong { font-size: 17px; }
  .option .label { font-size: 12px; }
  .option-price { font-size: 12px; }
  .option[data-supply-card] { padding: 20px 0; }
  .summarybar { padding: 14px 18px max(14px,env(safe-area-inset-bottom)); gap: 12px; }
  .summarybar .label { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .summarybar .right { gap: 10px; }
  .summarybar .label { display:none; }
  .summarybar .right { flex:1; justify-content:space-between; }
  .summarybar .selection-estimate b { font-size:16px; }
  .selection-estimate small { font-size:10px; }
  .summarybar>div:first-child { max-width:76px; }
  .summarybar [data-selection-count] { font-size:12px; }
  .is-selecting #workspace-content { padding-bottom: 110px!important; }
}
