.scout-workspace .scout-reference-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px 10px;min-width:0;text-align:left}
.scout-workspace .scout-reference-controls>label{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:160px;max-width:100%;font-size:12px;color:#a9bfd3}
.scout-workspace .scout-reference-controls select{min-height:44px;max-width:270px;font-size:14px;color:#e4ecf4}
.scout-workspace .scout-reference-controls>button{min-height:44px;font-size:14px;text-align:left}
.scout-workspace .scout-reference-count{align-self:center;color:#b9cad9;font-size:14px;line-height:1.4}
.scout-reference-editor{min-width:0;text-align:left;color:#e4ecf4;font:14px/1.45 system-ui,sans-serif}
.scout-reference-editor *{box-sizing:border-box}
.scout-reference-editor h3{margin:0;font-size:19px;line-height:1.3;color:#b9ddff;text-align:left}
.scout-reference-editor p{margin:6px 0;color:#b4c4d3;line-height:1.5;text-align:left}
.scout-reference-editor form{display:block!important;margin-top:14px;min-width:0}
.scout-reference-editor label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:14px;text-align:left}
.scout-reference-editor button,.scout-reference-editor input,.scout-reference-editor select{font:inherit;color:inherit}
.scout-reference-editor button,.scout-reference-editor select,.scout-reference-editor input:not([type=checkbox]){border:1px solid #42576a;border-radius:7px;background:#111d29;min-height:44px;max-width:100%;padding:8px 10px}
.scout-reference-editor button{text-align:left;cursor:pointer;white-space:normal;line-height:1.35}
.scout-reference-editor :focus-visible{outline:2px solid #72b7ff;outline-offset:3px}
.scout-reference-editor-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.scout-reference-editor-top input,.scout-reference-editor-top select{width:100%}
.scout-reference-result{display:flex;flex-wrap:wrap;gap:3px 14px;padding:10px 12px;margin:12px 0;border:1px solid #3d5f7a;border-radius:8px;background:#182f43;color:#d4e3ef}
.scout-reference-result strong{font-size:15px;color:#dcefff}
.scout-reference-result>span:last-child{flex-basis:100%;font-size:13px;color:#adc7de}
.scout-reference-editor details{min-width:0;border-top:1px solid #344b5e;margin-top:10px}
.scout-reference-editor details>summary{cursor:pointer;min-height:44px;padding:11px 0;color:#a9d5ff;font-weight:650;text-align:left}
.scout-reference-editor details>label{margin:7px 0}
.scout-reference-editor input[type=search]{width:100%}
.scout-reference-trim-grid{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;gap:8px;align-items:end;margin:10px 0}
.scout-reference-trim-grid input{width:100%}
.scout-reference-selection-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:9px 0}
.scout-reference-selection-actions>span{font-size:13px;color:#b3c5d6}
.scout-reference-member-list{display:flex;flex-direction:column;gap:5px;max-height:min(36dvh,320px);overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;scroll-padding-block:4px;padding:3px;touch-action:pan-y;min-width:0}
.scout-reference-editor label.scout-reference-member{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:start;gap:10px;padding:9px;min-height:62px;background:#111d29;border:1px solid #344b5e;border-radius:7px;cursor:pointer}
.scout-reference-editor label.scout-reference-member.is-included{border-color:#4f7696;background:#172e42}
.scout-reference-member>input{width:20px;height:20px;margin:2px 0;cursor:pointer;accent-color:#72b7ff}
.scout-reference-member>span{min-width:0;overflow-wrap:anywhere;text-align:left}
.scout-reference-member strong{display:block;font-size:14px;font-weight:650;line-height:1.4}
.scout-reference-member small{display:block;color:#b0c2d3;font-size:13px;line-height:1.4;margin-top:2px}
.scout-reference-member small.scout-reference-trimmed{color:#e5bc83}
.scout-reference-member-value{font-variant-numeric:tabular-nums;font-size:14px;color:#b9ddff;max-width:130px}
.scout-reference-member:focus-within{outline:2px solid #72b7ff;outline-offset:1px}
.scout-reference-more{margin-top:9px}
.scout-reference-editor footer{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;margin-top:15px;border-top:1px solid #344b5e;padding-top:12px}
.scout-reference-editor button.scout-reference-save{margin-left:auto;background:#226293;border-color:#77b9ed;font-weight:700;color:#f3faff}
.scout-reference-editor button.scout-reference-delete{color:#ffb7be;border-color:#91525b;background:#371e28}
.scout-reference-editor .scout-reference-error{color:#ffc4c9;border-left:3px solid #f296a0;padding:7px 10px;margin-top:10px}
@media(max-width:600px){
 .scout-reference-editor-top{grid-template-columns:minmax(0,1fr);gap:9px}
 .scout-reference-trim-grid{grid-template-columns:minmax(0,1fr) auto}
 .scout-reference-editor label.scout-reference-member{grid-template-columns:20px minmax(0,1fr);gap:6px 9px}
 .scout-reference-member-value{grid-column:2;max-width:none}
 .scout-reference-member-list{max-height:min(38dvh,320px)}
 .scout-reference-editor button.scout-reference-save{margin-left:0}
 .scout-workspace .scout-reference-controls{align-items:stretch}
 .scout-workspace .scout-reference-controls>label{min-width:0;flex:1 1 160px}
 .scout-workspace .scout-reference-controls select{width:100%;max-width:none}
}
@media(prefers-reduced-motion:reduce){.scout-reference-editor button,.scout-workspace .scout-reference-controls>button{transition:none!important}}
