/* On touch screens, a native option sheet cannot preserve wrapped optgroup indentation. */
#part-picker-trigger{display:none}
body.camera-component-picker-open{overflow:hidden}
#component-picker{position:fixed;inset:0;margin:auto;width:min(560px,calc(100vw - 24px));max-width:none;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #b8c8d5;border-radius:6px;background:#fff;color:#203644;box-shadow:0 18px 70px #10233055}
#component-picker[open]{display:flex;flex-direction:column}
#component-picker::backdrop{background:#102330a3}
.component-picker-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-bottom:1px solid #cbd6de;flex-shrink:0}
.component-picker-head h2{font-size:19px;line-height:1.35;margin:0}
.component-picker-head button{font-size:14px;min-height:44px;padding:8px 12px;white-space:nowrap}
.component-picker-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:18px 18px max(20px,env(safe-area-inset-bottom))}
.component-choice-group+.component-choice-group{margin-top:22px}
.component-choice-group h3{margin:0 0 8px;font-size:13px;line-height:1.45;font-weight:750;color:#476577}
.component-choice-group ul{list-style:none;margin:0;padding:0 0 0 12px;border-left:2px solid #d7e2eb}
.component-choice-group li{margin:0;padding:0}
#component-picker .component-choice{display:grid;grid-template-columns:minmax(0,1fr) 20px;align-items:center;gap:12px;width:100%;padding:12px 10px;min-height:48px;border:0;border-bottom:1px solid #e0e7ec;border-radius:0;text-align:left;font-size:16px;font-weight:500;line-height:1.45;background:#fff;color:#203644}
#component-picker .component-choice>span:first-child{min-width:0;overflow-wrap:anywhere}
#component-picker .component-choice[aria-pressed=true]{background:#edf5ff;color:#12599d;font-weight:650}
#component-picker .component-choice:hover{background:#f1f6fa}
.component-choice-mark{display:flex;align-items:center;justify-content:center;width:19px;height:19px;border:1px solid #9baeba;border-radius:50%;font-size:13px;line-height:1;color:#fff}
.component-choice[aria-pressed=true] .component-choice-mark{background:#0965cf;border-color:#0965cf}
.camera-model-tools{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 12px;background:#f6f8fa;border-bottom:1px solid #ced8e0;color:#496375}
.camera-model-tools>span{font-size:12px;font-weight:650}
.camera-model-tools button{font-size:13px;min-height:44px;padding:8px 13px;border:1px solid #b5c6d3;background:#fff;color:#234f70;font-weight:650;white-space:nowrap}
.camera-model-tools button[aria-pressed=true]{background:#e7f1fb;border-color:#3a78ae;color:#174f7e}
@media(max-width:800px),(pointer:coarse){
 .component-toolbar[data-custom-picker=true] #part-select{display:none}
 .component-toolbar[data-custom-picker=true] #part-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;min-width:0;min-height:44px;padding:9px 11px;font-size:14px;font-weight:500;line-height:1.4;text-align:left;color:#15394e;background:#fff;border:1px solid #b8c7d3}
 #part-picker-trigger>[data-component-value]{min-width:0;overflow-wrap:anywhere}
 #part-picker-trigger>.component-picker-chevron{width:8px;height:8px;border-right:2px solid #557287;border-bottom:2px solid #557287;transform:rotate(45deg);flex:none;margin:-4px 3px 0 0}
 .mechanism-preview .component-toolbar{padding:8px 10px;gap:8px}
 .component-toolbar label{flex-basis:100%;font-size:12px}
 .mechanism-preview .component-toolbar #clear-part{min-height:44px;font-size:12px;padding:8px}
 #model-tip{display:none}
}
