.listing-checkout { display:grid; gap:14px; }
.listing-checkout > .listing-note:empty, .listing-checkout > .listing-error:empty { display:none; }
.listing-checkout .listing-note { margin:0; color:#17613b; }
.listing-checkout .listing-error { margin:0; color:#a52222; }
.listing-card { border:1px solid var(--line); border-radius:18px; background:var(--white); padding:clamp(14px,4vw,22px); min-width:0; }
.listing-card h2, .listing-dialog h2 { margin:0 0 8px; font-size:1.25rem; font-weight:700; letter-spacing:-.025em; }
.listing-card p, .listing-dialog p { margin:8px 0 0; color:var(--quiet); font-size:.9375rem; line-height:1.45; }
.listing-pair, .listing-totals > div { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.listing-pair strong { min-width:0; overflow-wrap:anywhere; }
.listing-lot { display:flex; align-items:center; gap:8px; padding:10px 0; }
.listing-lot + .listing-lot, .listing-order + .listing-order { border-top:1px solid var(--line); }
.listing-lot label { display:flex; align-items:center; gap:9px; flex:1; min-width:0; cursor:pointer; }
.listing-lot label span { min-width:0; overflow-wrap:anywhere; }
.listing-lot input { width:18px; height:18px; margin:0; flex:none; accent-color:var(--ink); }
.listing-lot img { width:42px; height:42px; object-fit:cover; border-radius:10px; background:var(--paper); }
.listing-lot small { display:block; color:var(--quiet); }
.listing-status { border-radius:99px; padding:4px 8px; background:var(--paper); color:var(--muted); font-size:.8125rem; white-space:nowrap; }
.listing-status[data-status="approved"] { background:#e6f3eb; color:#17613b; }
.listing-status[data-status="pending"] { background:#fff1d6; color:#6a4900; }
.listing-checkout .listing-remove { min-height:44px; color:var(--warm); font-size:.8125rem; }
.listing-totals { display:grid; gap:8px; margin:12px 0; }
.listing-totals dd { margin:0; font-weight:650; text-align:right; overflow-wrap:anywhere; min-width:0; }
.listing-card .listing-totals > div:last-child { border-top:1px solid var(--line); padding-top:9px; font-weight:700; }
.listing-actions, .listing-form { display:flex; flex-wrap:wrap; align-items:end; gap:8px; margin-top:10px; }
.listing-checkout :is(.smallpill,.primary), .listing-dialog :is(.smallpill,.primary) { min-height:44px; font-size:.9375rem; }
.listing-order { padding:12px 0; }
.listing-order:last-child { padding-bottom:1px; }
.listing-order .smallpill { margin-top:6px; }
.listing-ref { overflow-wrap:anywhere; font-size:.84rem; color:var(--muted); }
.listing-form label { display:grid; gap:4px; flex:1 1 180px; color:var(--muted); }
.listing-form input { width:100%; min-height:44px; border:1px solid var(--line); border-radius:10px; padding:8px 12px; font:inherit; background:var(--white); }
.listing-review-lots { margin:8px 0; padding-inline-start:22px; }
.studio dialog.listing-dialog { width:min(480px,calc(100% - 28px)); max-height:calc(100dvh - 36px); margin:auto; padding:clamp(16px,5vw,24px); border:1px solid var(--line); border-radius:20px; background:var(--white); color:var(--ink); overflow:auto; }
.listing-dialog::backdrop { background:#0006; }
.listing-dialog .listing-totals { background:var(--paper); border-radius:12px; padding:12px; }
.listing-dialog .listing-totals dt { min-width:75px; flex-shrink:0; }
@media (max-width:375px) { .listing-lot img { display:none; } }
