.references{--muted:#536864}.references>div>div>p,.reference-footnote{max-width:70ch;color:var(--muted)}.reference-toolbar{display:flex;align-items:end;gap:20px;margin:28px 0 18px;flex-wrap:wrap}.reference-toolbar>label:nth-child(2){flex:1;min-width:180px}.reference-toolbar .reference-archive{flex-direction:row;align-items:center;min-height:44px}.reference-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:30px;align-items:start}.reference-row{display:grid;grid-template-columns:112px minmax(0,1fr);gap:18px;padding:24px 0;border-top:1px solid var(--line)}.reference-visual{width:112px;height:126px;border-radius:12px;background:var(--soft);display:grid;place-items:center;overflow:hidden;color:var(--muted);font-size:12px;text-align:center}.reference-visual img{width:100%;height:100%;object-fit:contain}.reference-type{font-size:10px;letter-spacing:.06em;color:var(--teal-dark)}.reference-copy h2{font-size:22px;margin:7px 0 8px;overflow-wrap:anywhere}.reference-copy p{font-size:13px;margin:7px 0;overflow-wrap:anywhere;white-space:pre-line}.reference-actions{grid-column:2;display:flex;flex-wrap:wrap;gap:8px}.reference-actions button,.references button{min-height:44px}.reference-inactive .reference-copy{color:var(--muted)}.reference-editor{background:var(--cream);padding:22px;border-radius:14px;display:flex;flex-direction:column;gap:16px;border:1px solid var(--line)}.reference-editor h2{margin:0}.reference-editor p{margin:0;color:var(--muted)}.reference-editor .error{color:var(--danger)}.reference-editor textarea{font:inherit;color:var(--ink);background:white;border:1px solid var(--line);border-radius:9px;padding:11px;resize:vertical;min-width:0}.reference-editor input[type=file]{width:100%;font-size:11px;padding:9px}.reference-editor input::placeholder,.reference-editor textarea::placeholder,.reference-toolbar input::placeholder{color:var(--muted)}#referenceImagePreview{width:100%;height:160px;object-fit:contain;background:white;border-radius:8px}.reference-empty{padding:38px 0;max-width:55ch}.reference-empty p{color:var(--muted);font-size:14px}.reference-footnote{font-size:12px;margin-top:32px}.reference-link{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.reference-link button{min-height:44px}.references :focus-visible{outline:2px solid var(--teal-dark);outline-offset:3px}.references input,.references textarea{caret-color:var(--teal-dark)}.references ::selection{background:#d0ebe8;color:var(--ink)}.references{scrollbar-color:#9cafaa var(--cream)}.reference-copy .small{font-variant-numeric:tabular-nums}.reference-editor .actions{align-items:stretch}.reference-editor .primary{white-space:normal}.reference-toolbar select{max-width:100%}@media(max-width:1150px){.reference-layout{grid-template-columns:1fr}.reference-editor{max-width:650px}.reference-row{grid-template-columns:100px minmax(0,1fr)}.reference-visual{width:100px;height:116px}}@media(max-width:760px){.reference-toolbar{gap:14px}.reference-toolbar>label{width:100%}.reference-row{grid-template-columns:80px minmax(0,1fr);gap:14px}.reference-visual{width:80px;height:100px}.reference-actions{grid-column:1/-1}.reference-actions .secondary{width:100%}.reference-copy h2{font-size:20px}.reference-editor{padding:18px}.references .heading-row{flex-wrap:wrap}.references .heading-row>button{font-size:13px}.references .heading-row>button::first-letter{font-size:inherit}}
.reference-batch{margin:26px 0;padding:20px 0;border-block:1px solid var(--line)}.reference-batch>summary{font-weight:600;cursor:pointer;min-height:44px;align-content:center}.reference-batch>p,.reference-batch-help p{max-width:70ch;color:var(--muted);font-size:13px;line-height:1.6}.reference-batch fieldset{border:0;padding:0;margin:20px 0}.reference-batch legend{font-weight:600;margin-bottom:10px}.reference-check{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:44px}.reference-check input{width:18px;height:18px;flex:none}.reference-batch-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}.reference-batch-controls input,.reference-batch-controls select{width:100%;min-width:0}.reference-batch-activity{display:flex;justify-content:space-between;align-items:start;gap:16px;padding:16px 0;border-top:1px solid var(--line)}.reference-batch-activity p{margin:6px 0}.reference-review{margin:30px 0 38px}.reference-review h2{font-size:22px}.reference-review-controls{display:flex;gap:24px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.reference-batch-help{max-width:65ch;font-size:13px}.reference-batch-help>summary{cursor:pointer;min-height:44px;align-content:center;color:var(--teal-dark);text-decoration:underline;text-underline-offset:3px}.reference-result{display:grid;grid-template-columns:112px minmax(0,1fr);gap:18px;padding:20px 0;border-top:1px solid var(--line)}.reference-result-copy{min-width:0}.reference-result h3{margin:0 0 8px;font-size:17px;overflow-wrap:anywhere}.reference-result p{font-size:13px;line-height:1.6;max-width:70ch;overflow-wrap:anywhere}.reference-prediction{margin:16px 0}.reference-prediction strong{font-size:14px}.reference-review button{min-height:44px}.reference-batch-activity .small{font-variant-numeric:tabular-nums}.reference-batch .error,.reference-result .error{color:var(--danger)}@media(max-width:1000px){.reference-batch-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.reference-batch-controls{grid-template-columns:1fr}.reference-result{grid-template-columns:80px minmax(0,1fr);gap:14px}.reference-review-controls{align-items:stretch;gap:12px}.reference-review-controls>label{width:100%}.reference-batch-activity{flex-wrap:wrap}.reference-review .heading-row{gap:12px;flex-wrap:wrap}.references .heading-row>.actions{flex-wrap:wrap;justify-content:flex-start}}
