#selectionStudio{margin:0 0 18px;border:1px solid var(--wb-border);border-left:4px solid var(--wb-primary);border-radius:8px;background:var(--wb-surface)}#selectionStudio>summary{padding:16px;font-weight:650;cursor:pointer}#selectionStudio summary small{font-weight:400;color:var(--wb-placeholder);margin-left:12px}.ss-body{padding:0 16px 20px}.ss-toolbar,.ss-tabs{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:12px 0}.ss-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px}.ss-fields label{display:flex;flex-direction:column;gap:6px}.ss-fields label.ss-check{flex-direction:row;align-items:center}.ss-tabs{border-bottom:1px solid var(--wb-border);padding-bottom:8px}.ss-tabs button{background:var(--wb-info-bg);color:var(--wb-secondary)}.ss-tabs button.active{background:var(--wb-primary);color:var(--wb-on-primary)}.ss-candidate{margin:14px 0;padding:14px;border:1px solid var(--wb-border);border-radius:8px}.ss-candidate p{margin:8px 0;line-height:1.65}.ss-candidate table{width:100%;font-size:13px}.ss-candidate th,.ss-candidate td{padding:8px;text-align:left}.ss-warning{color:var(--wb-warning)}.ss-images{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.ss-images a{width:130px;text-decoration:none}.ss-images img{width:130px;height:130px;object-fit:contain;background:var(--wb-canvas);display:block}.ss-scroll{overflow:auto}.ss-panel[hidden]{display:none!important}#ssMessage{background:var(--wb-success-bg);padding:12px;white-space:pre-wrap}#selectionStudio input[type=checkbox]{width:auto}#selectionStudio textarea{min-height:72px}#selectionStudio button:disabled{opacity:.5}@media(max-width:750px){.ss-candidate{overflow:auto}.ss-candidate table{min-width:640px}}

/* Keep the decision surface compact; full reasons and quote forms are explicitly expanded. */
#selectionStudio .ss-candidate{margin:6px 0;padding:8px 10px;border-radius:5px}#selectionStudio .ss-candidate>.ss-toolbar{margin:0;gap:8px;font-size:13px}#selectionStudio .ss-candidate>.ss-toolbar b{flex:1;min-width:180px}#selectionStudio .ss-role{font-weight:650;color:var(--wb-secondary)}#selectionStudio .ss-candidate-detail>summary{font-size:12px;color:var(--wb-secondary);cursor:pointer;padding:5px 0}#selectionStudio .ss-summary{background:var(--wb-success-bg);border:1px solid var(--wb-border);padding:10px;line-height:1.6}#selectionStudio .ss-diagnostics{border:1px solid var(--wb-border);padding:8px 10px;margin:8px 0;font-size:13px}#selectionStudio .ss-diagnostics>summary{cursor:pointer}#selectionStudio #ssExclusionRows{max-height:300px;overflow:auto}#selectionStudio #ssExclusionRows p{margin:6px 0}#selectionStudio #ssShortages{font-size:13px;line-height:1.6;color:var(--wb-warning)}#selectionStudio label[hidden]{display:none!important}

/* Photography: one compact import summary, with pictures grouped by auction lot. */
#selectionStudio .ss-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0}#selectionStudio .ss-photo-heading h3{margin:0 0 5px;font-size:20px}#selectionStudio .ss-photo-heading p{margin:0;color:var(--wb-placeholder);font-size:13px}
#selectionStudio .ss-photo-session{padding:12px 0;border-top:1px solid var(--wb-border)}#selectionStudio .ss-photo-session label{display:flex;align-items:center;gap:8px;flex:1;min-width:280px}#selectionStudio .ss-photo-session select{flex:1;min-width:0}#selectionStudio .ss-photo-session button{padding:8px 12px;font-size:13px}
#selectionStudio .ss-photo-import{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:end;padding:18px;background:var(--wb-canvas);border:1px solid var(--wb-border);border-radius:8px}#selectionStudio .ss-photo-import label{display:grid;gap:8px;font-size:13px;color:var(--wb-secondary);min-width:0}#selectionStudio .ss-photo-import input{width:100%;box-sizing:border-box;font-size:13px}
#selectionStudio .ss-photo-hint{font-size:12px;line-height:1.6;color:var(--wb-placeholder);margin:10px 0}#selectionStudio .ss-import-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;border:1px solid var(--wb-border);background:var(--wb-success-bg);border-radius:6px;font-size:13px}#selectionStudio .ss-import-details{margin:8px 0 16px;font-size:12px;color:var(--wb-placeholder)}#selectionStudio .ss-import-details>summary{cursor:pointer;padding:8px 0}#selectionStudio .ss-import-groups{display:flex;flex-wrap:wrap;gap:6px 20px;max-height:140px;overflow:auto}#selectionStudio .ss-import-groups p{margin:2px 0}#selectionStudio .ss-import-paths{max-height:200px;overflow:auto;background:var(--wb-canvas);padding:10px;margin-top:8px;overflow-wrap:anywhere}#selectionStudio .ss-import-paths p{margin:4px 0;line-height:1.4}
#selectionStudio #ssUploadProgress{width:100%;height:8px;accent-color:var(--wb-primary)}#selectionStudio #ssUploadStatus{font-size:13px;margin:10px 0;line-height:1.5}#selectionStudio .ss-photo-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--wb-border);padding:14px 0 16px;margin-bottom:18px}#selectionStudio .ss-photo-actions button{font-size:13px;padding:9px 12px}#selectionStudio #ssPhotoSelectedCount{margin-right:auto;min-width:70px;color:var(--wb-secondary);font-size:13px}
#selectionStudio .ss-photo-card{padding:20px;margin:0 0 22px;border:1px solid var(--wb-border);border-radius:9px;background:var(--wb-surface)}#selectionStudio .ss-photo-card-heading{display:flex;gap:14px;justify-content:space-between;align-items:flex-start}#selectionStudio .ss-photo-card-heading label{display:flex;gap:8px;align-items:baseline;font-size:15px;line-height:1.5}#selectionStudio .ss-photo-card-heading b{white-space:nowrap;font-size:16px;color:var(--wb-secondary)}#selectionStudio .ss-photo-state{font-size:12px;white-space:nowrap;border-radius:4px;background:var(--wb-info-bg);padding:5px 8px;color:var(--wb-secondary)}#selectionStudio .ss-photo-scene{font-size:12px;color:var(--wb-placeholder);margin:8px 0 16px;line-height:1.6}#selectionStudio .ss-photo-scene button{padding:3px 8px;background:var(--wb-info-bg);color:var(--wb-success);font-size:12px;margin-left:8px}
#selectionStudio .ss-photo-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}#selectionStudio .ss-photo-slot{position:relative;min-width:0;border:1px solid var(--wb-border);border-radius:6px;background:var(--wb-table-head);padding:7px;display:flex;flex-direction:column;gap:5px;min-height:140px}#selectionStudio .ss-photo-slot[draggable=true]{cursor:grab}#selectionStudio .ss-photo-slot a{display:block;aspect-ratio:4/3;background:var(--wb-surface);border-radius:3px;overflow:hidden}#selectionStudio .ss-photo-slot img{display:block;width:100%;height:100%;object-fit:contain}#selectionStudio .ss-photo-slot-label{font-size:11px;color:var(--wb-secondary);font-weight:650}#selectionStudio .ss-photo-name{font-size:11px;color:var(--wb-placeholder);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#selectionStudio .ss-photo-slot button{padding:4px 7px;font-size:11px;background:var(--wb-info-bg);color:var(--wb-success);border-radius:3px}#selectionStudio .ss-photo-empty{display:grid;place-items:center;flex:1;min-height:90px;color:var(--wb-disabled-border);font-size:12px}#selectionStudio .ss-photo-material{background:var(--wb-canvas);border-color:var(--wb-border)}#selectionStudio .ss-photo-material .ss-photo-slot-label{color:var(--wb-placeholder)}#selectionStudio .ss-photo-material-heading{font-size:12px;color:var(--wb-placeholder);border-top:1px dashed var(--wb-border);padding-top:13px;margin:15px 0 10px}
#selectionStudio .ss-photo-card-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0;font-size:12px;color:var(--wb-placeholder)}#selectionStudio .ss-photo-card-tools button{padding:6px 10px;font-size:12px}#selectionStudio .ss-photo-meta{font-size:12px;color:var(--wb-placeholder);border-top:1px solid var(--wb-border);padding:10px 0}#selectionStudio .ss-photo-meta>summary{cursor:pointer}#selectionStudio .ss-photo-meta p{line-height:1.8;margin:9px 0}#selectionStudio .ss-photo-meta button{font-size:12px;padding:5px 8px;margin:4px}#selectionStudio .ss-photo-checks{font-size:12px;line-height:1.5;margin:7px 0}#selectionStudio .ss-photo-card-footer{display:flex;align-items:center;flex-wrap:wrap;gap:10px;border-top:1px solid var(--wb-border);padding-top:14px;margin-top:8px}#selectionStudio .ss-photo-card-footer label{display:flex;align-items:center;gap:7px;font-size:13px;margin-right:auto}#selectionStudio .ss-photo-card-footer button{padding:8px 12px;font-size:12px}#selectionStudio .ss-photo-card-footer .ss-photo-cancel{background:var(--wb-canvas);color:var(--wb-placeholder)}#selectionStudio .ss-photo-move-dialog{width:min(360px,85vw);border:1px solid var(--wb-success-border);border-radius:8px;padding:22px}#selectionStudio .ss-photo-move-dialog label{display:grid;gap:10px}
@media(max-width:850px){#selectionStudio .ss-photo-import{grid-template-columns:1fr}#selectionStudio .ss-photo-card{padding:14px}#selectionStudio .ss-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#selectionStudio .ss-photo-card-heading{flex-direction:column}#selectionStudio .ss-photo-slot{min-height:110px}}
@media(max-width:480px){#selectionStudio .ss-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#selectionStudio .ss-photo-session label{min-width:0;width:100%;flex-basis:100%}}

/* The shared gallery lives outside selectionStudio; long source names never size its cards. */
dialog.jd-gallery{box-sizing:border-box;width:min(1080px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:92vh;padding:0;border:1px solid var(--wb-border);border-radius:10px;overflow:hidden;color:var(--wb-text);background:var(--wb-surface)}
.jd-gallery[open]{display:flex;flex-direction:column}.jd-gallery-header,.jd-gallery-footer{flex-shrink:0;padding:16px 20px}.jd-gallery-header{border-bottom:1px solid var(--wb-border)}.jd-gallery-header h3{margin:0 0 6px;font-size:19px}.jd-gallery-header p{margin:0;font-size:13px;color:var(--wb-placeholder);line-height:1.5}.jd-gallery-body{min-height:0;overflow-y:auto;overflow-x:hidden;padding:16px 20px}.jd-gallery-entry{min-width:0;margin-bottom:16px}.jd-gallery-entry:last-child{margin-bottom:0}.jd-gallery-entry>summary{overflow-wrap:anywhere;font-size:14px;font-weight:600;line-height:1.5;cursor:pointer}.jd-gallery-meta{margin:6px 0 12px;font-size:12px;color:var(--wb-placeholder);line-height:1.5;overflow-wrap:anywhere}
.jd-gallery-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.jd-gallery-card{min-width:0;margin:0;padding:7px;border:1px solid var(--wb-border);border-radius:6px;background:var(--wb-table-head)}.jd-gallery-choice{display:flex;align-items:center;gap:6px;min-width:0;padding:0 0 7px;font-size:12px;cursor:pointer}.jd-gallery-choice input[type=checkbox]{flex:none;width:16px;height:16px;margin:0}.jd-gallery-number{font-weight:700;font-variant-numeric:tabular-nums;color:var(--wb-secondary)}.jd-gallery-card a{display:block;min-width:0;width:100%;background:var(--wb-surface);border-radius:3px}.jd-gallery-card img{display:block;box-sizing:border-box;width:100%;max-width:100%;height:clamp(90px,15vh,150px);object-fit:contain}.jd-gallery-footer{border-top:1px solid var(--wb-border);background:var(--wb-surface)}.jd-gallery-footer p{margin:0;font-size:13px;color:var(--wb-warning);overflow-wrap:anywhere}.jd-gallery-footer p:not(:empty){margin-bottom:10px}.jd-gallery-footer>div{display:flex;justify-content:flex-end;gap:10px}.jd-gallery-upload{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin-top:16px}.jd-gallery-upload label{display:grid;gap:6px;min-width:0;font-size:13px}
/* 第55批：图库删图/换图——当前图组可改，历史版本只读 */
.jd-gallery-group{min-width:0;margin-bottom:18px}.jd-gallery-group:last-of-type{margin-bottom:0}.jd-gallery-card-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.jd-gallery-card-actions button{flex:1 1 auto;min-width:0}.jd-gallery-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:12px;font-size:12px;color:var(--wb-placeholder);line-height:1.5}.jd-gallery-tools span{min-width:0;overflow-wrap:anywhere}.jd-gallery-history{min-width:0;margin-top:10px;padding:8px 10px;border:1px dashed var(--wb-border);border-radius:6px;background:var(--wb-table-head)}.jd-gallery-history>summary{font-size:13px;color:var(--wb-placeholder);cursor:pointer}.jd-gallery-history .jd-gallery-entry{margin:10px 0 0}
@media(max-width:800px){.jd-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.jd-gallery-header,.jd-gallery-footer{padding:12px 14px}.jd-gallery-body{padding:12px 14px}}
@media(max-width:480px){.jd-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}

#selectionStudio .ss-photo-members{margin:12px 0 18px;font-size:13px}#selectionStudio .ss-photo-members p{margin:8px 0;color:var(--wb-secondary)}#selectionStudio .ss-photo-members-scroll{overflow-x:auto}#selectionStudio .ss-photo-members table{width:100%;min-width:640px}#selectionStudio .ss-photo-members th,#selectionStudio .ss-photo-members td{text-align:left;vertical-align:top;padding:8px;white-space:normal}#selectionStudio .ss-photo-members td:nth-last-child(-n+2){text-align:right;font-variant-numeric:tabular-nums}
/* TY2: 综合选品模式、同场单品+组合快捷配比栏与需拍照精准筛选栏 */
#selectionStudio .ss-mode-switch{display:inline-flex;gap:6px;margin-left:auto}#selectionStudio .ss-mode-switch button{font-size:12px;padding:6px 10px;background:var(--wb-info-bg);color:var(--wb-secondary);border:1px solid var(--wb-border);border-radius:5px}#selectionStudio .ss-mode-switch button.active{background:var(--wb-primary);color:var(--wb-on-primary);font-weight:600}
#selectionStudio .ss-quick-ratio-bar{background:var(--wb-success-bg);border:1px solid var(--wb-success-border);padding:10px 12px;border-radius:6px;margin:8px 0 14px;font-size:13px}#selectionStudio .ss-quick-ratio-bar button{font-size:12px;padding:5px 10px;background:var(--wb-success-bg);color:var(--wb-success);border:1px solid var(--wb-success-border);border-radius:4px}
#selectionStudio .ss-candidate-quick-actions{display:inline-flex;gap:6px;flex-wrap:wrap;align-items:center}#selectionStudio .ss-candidate-quick-actions button{font-size:12px;padding:4px 8px}
#selectionStudio .ss-photo-cat-bar{background:var(--wb-table-head);border:1px solid var(--wb-border);padding:8px 12px;border-radius:6px;margin:6px 0 14px}#selectionStudio .ss-photo-cat-bar button{font-size:12px;padding:6px 11px;background:var(--wb-info-bg);color:var(--wb-secondary);border:1px solid var(--wb-border);border-radius:5px}#selectionStudio .ss-photo-cat-bar button.active{background:var(--wb-primary);color:var(--wb-on-primary);font-weight:600}
#selectionStudio .ss-photo-card-head-right{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}#selectionStudio .ss-photo-card-head-right button{font-size:12px;padding:4px 9px}
