.pdf-upload-layout { margin-bottom: 18px; }
.pdf-import-list { margin-top: 18px; }
.pdf-upload-layout input[type="file"] { width: 100%; border: 1px dashed #cfc6ba; border-radius: 10px; padding: 18px; background: #faf9f7; }
.pdf-upload-layout .notice { margin: 0; }
.pdf-upload-layout .errorlist { color: var(--red); }
.pdf-upload-layout ol { line-height: 1.6; }
.pdf-upload-layout li::marker { color: var(--accent); font-weight: 800; }
.pdf-uploaded,.pdf-extracting { background: #e7edf6; color: #3b5e8d; }
.pdf-paused { background: #eeeae4; color: #635e56; }
.pdf-review { background: #fff1d3; color: #835b11; }
.pdf-complete { background: #dff1e5; color: #286647; }
.pdf-failed { background: #f7dede; color: #8f3636; }
.pdf-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pdf-controls h2 { margin: 4px 0 0; }
.pdf-items { margin-top: 28px; }
.pdf-items-head { margin-bottom: 16px; }
.pdf-item-card { margin-bottom: 16px; }
.item-statuses { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.match-existing,.validation-validated { background: #dff1e5; color: #286647; }
.match-probable,.match-manual_review,.validation-needs_review,.validation-extracted { background: #fff1d3; color: #835b11; }
.match-new { background: #e7edf6; color: #3b5e8d; }
.match-duplicate,.validation-rejected { background: #f7dede; color: #8f3636; }
.pdf-item-form { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.pdf-item-form > div { display: grid; gap: 6px; min-width: 0; }
.pdf-item-form .field-supplier_description,.pdf-item-form .field-reference_link,.pdf-item-form .field-user_notes { grid-column: span 2; }
.pdf-item-form label { color: var(--muted); font-size: 11px; font-weight: 700; }
.pdf-item-form input,.pdf-item-form textarea { width: 100%; min-width: 0; border: 1px solid #d8d2ca; border-radius: 9px; padding: 9px 10px; font: inherit; background: #fff; }
.pdf-item-form textarea { min-height: 70px; resize: vertical; }
.pdf-item-form > button { align-self: end; }
.evidence-details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.evidence-details summary { color: var(--accent); cursor: pointer; font-weight: 700; }
.evidence-details .table-wrap { margin-top: 12px; }
.source-snippet { max-width: 380px; white-space: normal; overflow-wrap: anywhere; }
.pdf-item-card footer { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }

@media(max-width:1050px){.pdf-item-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.pdf-controls{align-items:flex-start;flex-direction:column}.pdf-item-form{grid-template-columns:1fr}.pdf-item-form .field-supplier_description,.pdf-item-form .field-reference_link,.pdf-item-form .field-user_notes{grid-column:auto}.item-statuses{justify-content:flex-start}}
