.match-workspace{max-width:none}
.match-summary{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;margin:18px 0}
.match-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:18px 0}
.match-controls > button{align-self:end;justify-self:start}
.match-list{max-height:55vh;overflow:auto;border:1px solid #c9b5a3;border-radius:12px;background:#fff}
.match-no-results{padding:14px;margin:0}
.match-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(125px,175px);gap:14px;align-items:center;padding:14px;border-bottom:1px solid #ded1c5}
.match-item:last-child{border-bottom:0}.match-item[hidden]{display:none}
.match-item-main{display:flex;gap:12px;align-items:flex-start;min-width:0;cursor:pointer}
.match-item-main input{flex:0 0 22px;width:22px;height:22px;margin-top:3px}
.match-thumb{flex:0 0 72px;width:72px;height:72px;object-fit:cover;border:1px solid #a78d77;border-radius:8px;background:#f5eee8}
.match-no-photo{display:flex;align-items:center;justify-content:center;text-align:center;color:#46372d;font-size:.8rem;font-weight:700}
.match-item-main > span:last-child{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.match-item-main small{color:#514439;line-height:1.4}
.match-amount{font-size:.9rem;font-weight:600}.match-amount input{width:100%;margin-top:5px}
.match-source-correction{grid-column:1/-1}.match-source-correction summary{cursor:pointer;font-weight:700}.match-source-correction .field{max-width:320px;margin:10px 0}.match-source-correction small{display:block;color:#514439}.match-source-correction [role=status]{display:block;margin-top:8px}
.match-assign{margin-top:24px}.match-actions{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.match-actions .field{min-width:180px;max-width:270px}
@media(max-width:600px){.match-item{grid-template-columns:minmax(0,1fr)}.match-list{max-height:50vh}.match-actions .field{max-width:none;flex:1 1 180px}}
/* Daily source selection keeps cost editing out of the item list. */
.source-choice-item{display:block;cursor:pointer}.source-choice-save{display:grid;gap:14px;margin-top:22px}.source-choice-save>.field select{width:100%}.source-cost-details{padding:14px;border:1px solid #ded1c5;border-radius:10px}.source-cost-details summary{font-weight:700;cursor:pointer}.source-cost-details .field{margin-top:14px}.source-choice-item[hidden]{display:none}#itemSourcePanel [data-source-empty]{padding:16px}#itemSourcePanel .match-item-main{display:flex}
