.multi-store-switch{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:#42534c}
.multi-store-switch select{border:1px solid #cbd8d0;border-radius:12px;background:#fff;color:#102c20;padding:9px 12px;font:inherit;min-width:140px}
.reference-form{display:grid;grid-template-columns:minmax(180px,1fr) minmax(250px,2fr) auto;align-items:end;gap:14px;margin-top:18px}
.reference-form label{display:flex;flex-direction:column;gap:7px;color:#314c40;font-size:13px;font-weight:700}
.reference-form input,.reference-form select{width:100%;box-sizing:border-box;min-height:43px;border:1px solid #c9d6cf;border-radius:10px;padding:10px;background:#fff;font:inherit;color:#173426}
#referencesGrid{display:grid;gap:14px;padding:15px 0}
.reference-card{display:grid;grid-template-columns:150px 1fr;gap:15px;padding:14px;border:1px solid #e0e7e3;border-radius:14px}
.reference-card img,.reference-image-missing{width:150px;height:135px;border-radius:12px;object-fit:contain;background:#f5f7f5;display:grid;place-items:center}
.reference-card b{font-size:16px}.reference-card p{margin:7px 0;color:#526358;font-size:13px}.reference-card a{color:#176645;text-decoration:underline;font-size:13px}
#referenceStatus{padding:12px 0;min-height:30px;color:#345542}
@media(max-width:900px){.reference-form{grid-template-columns:1fr}.reference-card{grid-template-columns:100px 1fr}.reference-card img,.reference-image-missing{width:100px;height:110px}.top-actions{flex-wrap:wrap}.multi-store-switch select{min-width:120px}}

/* v13 · research workspace */
.reference-card{grid-template-columns:145px minmax(0,1fr);align-items:start}
.reference-card-top{display:flex;gap:12px;flex-wrap:wrap;align-items:baseline;justify-content:space-between}
.reference-card-copy{min-width:0}.reference-card-top strong{font-size:16px;line-height:1.35}
.reference-card .reference-cost{background:#f3f7f5;padding:9px 11px;border-radius:9px;color:#325344}
.reference-description{white-space:pre-line;max-width:72ch}.reference-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}
.reference-actions .btn{min-height:35px}.reference-actions a{white-space:nowrap}
.reference-keywords{margin-top:12px;padding:12px;background:#edf4ef;border:1px solid #d4e3d7;border-radius:12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.reference-keywords[hidden]{display:none!important}.reference-keywords p{width:100%;margin:0 0 5px}
.reference-editor{width:min(94vw,720px);max-height:90vh;overflow:auto;border:1px solid #d4dfd6;border-radius:18px;padding:26px;box-shadow:0 24px 100px #071e1640;color:#19372a}
.reference-editor::backdrop{background:#06190eb3}.reference-editor h2{margin:0 0 5px}.reference-editor>p{color:#536a5e;margin:0 0 15px}
.reference-editor-form{display:grid;gap:13px}.reference-editor-form label{display:grid;gap:6px;font-size:13px;font-weight:700;color:#30513e}
.reference-editor-form input,.reference-editor-form textarea{width:100%;font:inherit;min-height:39px;border:1px solid #cedbd0;border-radius:10px;padding:9px 11px}
.reference-editor-form textarea{min-height:112px;resize:vertical}.reference-editor-pair{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.reference-editor-form label.reference-editor-checkbox{display:flex;align-items:center;gap:9px;font-weight:600}
.reference-editor-checkbox input{width:auto;min-height:0}.reference-editor-actions{display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap}
.reference-editor-note{font-size:12px;color:#617767}.reference-editor-note a{text-decoration:underline}
@media(max-width:680px){.reference-card{grid-template-columns:1fr}.reference-card img,.reference-image-missing{width:100%;height:170px}.reference-editor-pair{grid-template-columns:1fr}.reference-editor{padding:17px}}

.fit-badge{display:inline-block;border-radius:7px;padding:3px 8px;margin:5px 0 7px;font-size:11px;font-weight:750;background:#edf1ee;color:#45574c}.fit-high{background:#dbf4e6;color:#11603c}.fit-medium{background:#fff1d4;color:#886015}.fit-low{background:#f6e7e7;color:#8a3434}
