/* R9-02: visual hierarchy and accessible choices, no contract change. */
#wizard-state[data-question-ui-version="2"]{min-width:0}
#wizard-state .progress-track{margin:12px 0 24px}
#wizard-state #question-text{font-size:clamp(23px,2.75vw,32px);line-height:1.38;font-weight:800;letter-spacing:-.025em;margin-bottom:10px;overflow-wrap:anywhere}
#wizard-state #question-help{font-size:14px;line-height:1.6;min-height:0;margin:0 0 15px;color:#565d64}
#wizard-state .question-details{margin:-3px 0 17px;border:1px solid #e2e4e5;border-radius:9px;padding:10px 12px}
#wizard-state .question-details summary{cursor:pointer;color:#49525c;font-size:13px;font-weight:650;min-height:26px}
#wizard-state .question-details p{color:#4f5963;line-height:1.75;font-size:13px;margin:8px 0 0;overflow-wrap:anywhere}
#wizard-state .question-icon{width:30px;height:30px;flex:none;color:#94500f}
#wizard-state .option-list{max-height:none;overflow:visible;padding:1px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#wizard-state .answer-option{display:flex;min-width:0;min-height:78px;border-radius:12px;padding:12px;gap:8px;flex-wrap:wrap;align-items:center;background:#fff;position:relative}
#wizard-state .answer-option .answer-text{font-size:14px;font-weight:650;line-height:1.5;flex:1 1 58px;overflow-wrap:anywhere}
#wizard-state .answer-option .answer-index{display:none}
#wizard-state .answer-option .answer-selected{display:none;color:#8d4009;font-size:12px;font-weight:800;line-height:1.2;flex-basis:100%;text-align:right}
#wizard-state .answer-option:has(input:checked){background:#fff6eb;border:2px solid #a84c00;padding:11px}
#wizard-state .answer-option:has(input:checked) .answer-selected{display:block}
#wizard-state .answer-option:focus-within{outline:3px solid #955014;outline-offset:2px}
#wizard-state .option-list[data-visual-kind="services"]{grid-template-columns:repeat(3,minmax(0,1fr))}
#wizard-state .option-list[data-visual-kind="services"] .answer-option{flex-direction:column;align-items:flex-start;justify-content:center;min-height:112px}
#wizard-state .option-list[data-visual-kind="services"] .answer-option .answer-text{flex:0 1 auto;width:100%}
#wizard-state .option-list[data-visual-kind="services"] .answer-option input{position:absolute;top:12px;right:12px}
/* A selected marker must be a normal-height row, visibly inset on every viewport. */
#wizard-state .option-list[data-visual-kind="services"] .answer-option .answer-selected{flex:0 0 auto;align-self:stretch;box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin-top:4px;padding:6px 2px 1px;border-top:1px solid #dfbd9f;text-align:left;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
#wizard-state .number-wrapper{min-height:68px;max-width:360px;position:relative;display:flex;align-items:center}
#wizard-state .number-wrapper .question-icon{position:absolute;left:15px;z-index:1;pointer-events:none}
#wizard-state .number-wrapper .number-field{height:68px;padding-left:60px;border-radius:10px;font-size:23px;font-weight:750}
#wizard-state .number-wrapper .number-unit{top:auto;right:16px;pointer-events:none}
#wizard-state .guided-area-row{border:1px solid #e4e5e4;border-radius:10px;padding:10px;background:#fff;min-width:0}
#wizard-state .light-field{gap:10px}
#wizard-state .light-scene-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;min-width:0;margin:0 0 10px}
#wizard-state .light-scene-choice{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;align-items:center;min-height:64px;border:1px solid #d7dce0;border-radius:9px;padding:8px;cursor:pointer;background:#fff}
#wizard-state .light-scene-choice .question-icon{width:25px;height:25px}
#wizard-state .light-scene-choice .scene-label{font-size:12px;line-height:1.45;color:#41484f;overflow-wrap:anywhere}
#wizard-state .light-scene-choice[aria-pressed="true"]{border:2px solid #9b4608;background:#fff6eb;padding:7px}
#wizard-state .light-scene-choice:focus-visible{outline:3px solid #955014;outline-offset:2px}
#wizard-state .light-scene-select-label{font-size:12px;color:#56616b;display:block;margin:2px 0 6px}
#wizard-state .wizard-actions button{min-height:44px}
#wizard-state #wizard-error:not(:empty){padding:10px 12px;border-radius:8px;background:#fff0ed;border-left:3px solid #b12617;color:#8d2115;font-weight:600}
@media(max-width:700px){#wizard-state .option-list[data-visual-kind="services"]{grid-template-columns:repeat(2,minmax(0,1fr))}#wizard-state .light-scene-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:490px){#wizard-state .option-list{gap:8px}#wizard-state .answer-option{padding:9px;gap:7px}#wizard-state .answer-option:has(input:checked){padding:8px}#wizard-state .answer-option .answer-text{font-size:13px}#wizard-state .answer-option .question-icon{width:26px;height:26px}#wizard-state .option-list[data-visual-kind="services"] .answer-option{min-height:100px}#wizard-state #question-text{font-size:clamp(21px,6.5vw,27px)}#wizard-state #question-help{font-size:13px}}
@media(max-width:350px){#wizard-state .light-scene-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#wizard-state .answer-option .answer-text{font-size:12px}}

/* Multi-site card retains accessible, native checkbox state. */
#wizard-state .light-multi-scene{margin:0;padding:0;border:0;min-width:0;width:100%}
#wizard-state .light-multi-scene legend{margin-bottom:10px}
#wizard-state .light-scene-choice-multi{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}
#wizard-state .light-scene-choice-multi input{accent-color:#8d4009;width:18px;height:18px;flex:none}
#wizard-state .light-scene-choice-multi .scene-label{flex:1;min-width:44px;font-size:13px}
#wizard-state .light-scene-choice-multi:has(input:checked){background:#fff6eb;border:2px solid #9b4608;padding:7px}
#wizard-state .light-scene-choice-multi:focus-within{outline:3px solid #955014;outline-offset:2px}

/* Design A: keep semantic native input controls while avoiding cramped narrow cards. */
@media(max-width:490px){
 #wizard-state .option-list[data-visual-kind="services"]{grid-template-columns:minmax(0,1fr)}
 #wizard-state .option-list[data-visual-kind="services"] .answer-option{min-height:78px;flex-direction:row;align-items:center;gap:10px;padding:12px 46px 12px 12px}
 #wizard-state .option-list[data-visual-kind="services"] .answer-option:has(input:checked){padding:11px 45px 11px 11px}
 #wizard-state .option-list[data-visual-kind="services"] .answer-option .answer-text{font-size:14px;line-height:1.5;min-width:0;flex:1 1 90px}
 #wizard-state .option-list[data-visual-kind="services"] .answer-option .question-icon{flex:none}
 #wizard-state .option-list[data-visual-kind="services"] .answer-option .answer-selected{flex-basis:100%;margin-top:4px;padding:6px 0 0}
 #wizard-state .option-list[data-visual-kind="services"] .answer-option input{top:14px;right:15px}
 #wizard-state .wizard-actions{gap:8px}
 #wizard-state .wizard-actions button{min-height:44px}
}

/* UX-176: distinct Wi-Fi layout/peak-basis pictograms, never replace native select. */
#wizard-state .light-field[data-field="layout"] .light-scene-grid,
#wizard-state .light-field[data-field="usageMode"] .light-scene-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px
}
#wizard-state .light-field[data-field="layout"] .light-scene-choice,
#wizard-state .light-field[data-field="usageMode"] .light-scene-choice{
  min-width:0;min-height:88px;grid-template-columns:36px minmax(0,1fr);
  align-items:center;gap:10px;padding:12px;
}
#wizard-state .light-field[data-field="layout"] .light-scene-choice .question-icon,
#wizard-state .light-field[data-field="usageMode"] .light-scene-choice .question-icon{
  width:32px;height:32px;color:#995018
}
#wizard-state .light-field[data-field="layout"] .scene-label,
#wizard-state .light-field[data-field="usageMode"] .scene-label{
  font-size:14px;line-height:1.55;overflow-wrap:anywhere
}
#wizard-state .light-field[data-field="layout"] .light-scene-choice[aria-pressed="true"],
#wizard-state .light-field[data-field="usageMode"] .light-scene-choice[aria-pressed="true"]{
  border:2px solid #9b4608;padding:11px;background:#fff6eb
}
#wizard-state .light-field[data-field="layout"] .light-control,
#wizard-state .light-field[data-field="usageMode"] .light-control{
  display:block;min-height:48px;width:100%;font-size:16px
}
#wizard-state .remediation-camera-row{min-width:0}
#wizard-state .remediation-camera-row .light-field{min-width:0}
#wizard-state .remediation-camera-row .light-label{line-height:1.55}
#wizard-state .remediation-question-diagram{min-width:0;max-width:100%}
#wizard-state .remediation-question-diagram-status{line-height:1.65;overflow-wrap:anywhere}
@media(max-width:390px){
 #wizard-state .light-field[data-field="layout"] .light-scene-grid,
 #wizard-state .light-field[data-field="usageMode"] .light-scene-grid{gap:7px}
 #wizard-state .light-field[data-field="layout"] .light-scene-choice,
 #wizard-state .light-field[data-field="usageMode"] .light-scene-choice{
   min-height:84px;grid-template-columns:28px minmax(0,1fr);gap:6px;padding:9px
 }
 #wizard-state .light-field[data-field="layout"] .scene-label,
 #wizard-state .light-field[data-field="usageMode"] .scene-label{font-size:13px}
 #wizard-state .light-field[data-field="layout"] .light-scene-choice .question-icon,
 #wizard-state .light-field[data-field="usageMode"] .light-scene-choice .question-icon{width:26px;height:26px}
}
@media(max-width:330px){
 #wizard-state .light-field[data-field="layout"] .light-scene-grid,
 #wizard-state .light-field[data-field="usageMode"] .light-scene-grid{grid-template-columns:minmax(0,1fr)}
}

/* HFB002: one native-radio card group; no duplicate visible select. */
#wizard-state select.light-control[hidden]{display:none!important}
#wizard-state .light-choice-group{border:0;margin:0;padding:0;min-width:0}
#wizard-state .light-choice-group legend{padding:0;margin:0 0 9px}
#wizard-state .light-scene-choice-radio{position:relative}
#wizard-state .light-scene-choice-radio input[type=radio]{width:18px;height:18px;accent-color:#9b4608;margin:0}
#wizard-state .light-scene-choice-radio:has(input:checked){border:2px solid #9b4608;background:#fff6eb;padding:7px}
#wizard-state .light-scene-choice-radio:has(input:focus-visible){outline:3px solid #955014;outline-offset:2px}
#wizard-state .light-scene-choice-radio:has(input:disabled){opacity:.65;cursor:not-allowed}
