/* The request detail can be a narrow side panel even on desktop. */
.selection-brief,.selection-options {
  --ink:#242026; --muted:#625c64; --line:#e3dfe2; --accent:#ab1935;
  min-width:0; color:var(--ink); overflow-wrap:anywhere;
}
.selection-brief {
  display:grid; gap:14px; padding:20px 22px; border-radius:16px;
  background:#29262c; color:#fff; border:1px solid #37333a;
}
.sb-head,.sw-heading,.sw-footer,.sw-labels,.sw-actions {
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.sb-head,.sw-heading,.sw-footer {justify-content:space-between}
#desk-detail .sb-head h3 {margin:0;font-size:.83rem;letter-spacing:.025em;color:#e1dbe1;font-weight:600}
.selection-brief .sb-link {
  display:inline-flex;align-items:center;gap:7px;color:#fff;font-size:.8rem;text-decoration:underline;
  text-underline-offset:.22em;text-decoration-color:#918891;font-weight:600;
}
.sb-link::after {content:"↗";text-decoration:none}
#desk-detail .sb-model {margin:0;font-size:clamp(1.2rem,3cqi,1.65rem);font-weight:720;line-height:1.2;color:#fff}
.sb-metrics {
  display:flex;flex-wrap:wrap;column-gap:32px;row-gap:12px;
  border-top:1px solid #49454b;padding-top:13px;margin:0;
}
.sb-metrics dt,.sb-comment strong {font-size:.78rem;font-weight:500;color:#d0c8ce}
.sb-metrics dd {margin:4px 0 0;font-size:1rem;font-weight:700;color:#fff;font-variant-numeric:tabular-nums}
.sb-tags {list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0}
.sb-tags li {padding:4px 9px;border:1px solid #565058;border-radius:6px;color:#f5eff4;font-size:.82rem}
#desk-detail .sb-comment p {margin:3px 0 0;color:#fff;white-space:pre-wrap;line-height:1.4}

.selection-options {display:grid;gap:12px}
#desk-detail .sw-heading h3,#desk-detail .sw-heading h4 {margin:0;line-height:1.25}
#desk-detail .sw-heading h3 {font-size:1.12rem;display:flex;align-items:center;gap:8px}
.sw-count {font-size:.78rem;font-weight:700;background:#f1eef0;color:#504952;padding:3px 8px;border-radius:6px}
.selection-options :is(.sw-primary,.sw-secondary,.sw-add) {
  display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;
  padding:7px 13px;border:1px solid transparent;border-radius:8px;cursor:pointer;font-size:.85rem;
  font-weight:650;line-height:1.25;text-decoration:none;box-shadow:none;
}
.selection-options .sw-primary {color:white;background:var(--accent)}
.selection-options .sw-primary:hover {background:#8c122a}
.selection-options .sw-secondary {color:var(--ink);background:white;border-color:var(--line)}
.selection-options .sw-secondary:hover {background:#f4f2f3;border-color:#c9c3c9}
.sw-toggle::before {content:"+";font-size:1.1rem;line-height:1}
.sw-toggle[aria-expanded=true]::before {content:"←"}
.selection-options .sw-status:empty {display:none}
#desk-detail .sw-status {margin:0;color:#216343;font-size:.88rem}
#desk-detail .sw-status.is-error {color:#a71835}
.sw-list,.selection-options .selection-results {display:grid;gap:10px}
.sw-empty {padding:22px;background:#faf9fa;border:1px dashed #d8d3d7;border-radius:12px}
#desk-detail .sw-empty p,#desk-detail .sw-caption {margin:4px 0 0;color:var(--muted);font-size:.85rem}
.sw-picker {display:grid;gap:12px;padding:16px;background:#f8f7f8;border:1px solid var(--line);border-radius:14px}
.sw-picker h4 {font-size:1rem}
.sw-search,.sw-verified {display:flex;align-items:end;gap:8px}
.sw-search input,.sw-verified label {flex:1;min-width:0}
#desk-detail .sw-search input {height:40px;padding:8px 12px;background:white;border:1px solid #cbc6cc;border-radius:8px}
.sw-search button {min-height:40px!important}
.selection-options label.sw-scope {display:inline-flex;align-items:center;gap:7px;margin:0;font-size:.82rem;font-weight:550;cursor:pointer}
.selection-options label.sw-scope input {width:16px;height:16px;margin:0;padding:0;accent-color:var(--accent)}
.sw-verified {border-top:1px solid var(--line);padding-top:12px}
.sw-more {justify-self:center}
.selection-options .selection-option,.sw-result {
  display:grid;gap:12px;min-width:0;padding:14px;border:1px solid var(--line);background:white;border-radius:12px;
}
.sw-result {grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
.sw-car {display:grid;grid-template-columns:84px minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0}
.sw-photo {position:relative;display:grid;place-items:center;align-self:start;width:84px;aspect-ratio:4/3;overflow:hidden;
  border-radius:8px;background:#eeeef0;color:#6b666d;font-size:.73rem}
.sw-photo img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sw-car-info {display:grid;gap:4px;min-width:0}
.sw-lot,.sw-facts {font-size:.78rem;line-height:1.35;color:var(--muted)}
.sw-lot {letter-spacing:.015em;font-variant-numeric:tabular-nums}
.selection-options .sw-name {
  display:block;width:fit-content;max-width:100%;padding:0;text-align:left;font:inherit;font-weight:680;font-size:.98rem;
  color:var(--ink);background:transparent;border:0;border-radius:2px;line-height:1.3;box-shadow:none;text-decoration:none;
}
.selection-options :is(a,button).sw-name:hover {text-decoration:underline;color:var(--accent);text-underline-offset:.16em}
.sw-price {font-size:1.04rem;font-weight:720;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}
.selection-options .sw-add {color:var(--accent);background:#fff4f5;border-color:#eccbd1}
.selection-options .sw-add:hover {background:#ffe8ec}
.selection-options .sw-add.is-added {color:#216343;background:#e8f5ee;border-color:#cde4d6;opacity:1;cursor:default}
.sw-footer {border-top:1px solid #eee9ed;padding-top:10px;align-items:center}
.sw-actions select {flex:1 1 130px;width:auto}
.sw-actions:empty {display:none}
.selection-options .sw-decision {display:inline-flex;align-items:center;gap:6px;width:fit-content;padding:4px 9px;
  border-radius:20px;font-size:.77rem;font-weight:650;line-height:1.25}
.sw-decision::before {content:"";height:6px;width:6px;border-radius:50%;background:currentColor}
.selection-options .is-pending {color:#85510b;background:#fcf2dd}
.selection-options .is-accepted {color:#206543;background:#e7f4ec}
.selection-options .is-rejected {color:#645962;background:#f1edf0}
.selection-options .sw-reject summary {color:var(--muted);font-size:.8rem;font-weight:550;width:fit-content;margin:0;cursor:pointer}
.sw-reject form {display:grid;gap:8px;justify-items:start;margin-top:8px}
.sw-reject label,.sw-reject textarea {width:100%}
#desk-detail .sw-reason {margin:0;font-size:.84rem;color:var(--muted);white-space:pre-wrap}
.selection-options :focus-visible,.selection-brief :focus-visible {outline:2px solid #cb3a55;outline-offset:3px}
@container order-card (max-width:720px) {
  .sw-result .sw-car {grid-template-columns:70px minmax(0,1fr);gap:5px 10px}
  .sw-result .sw-photo {grid-row:span 2;width:70px}
  .sw-result .sw-price {grid-column:2}
}
@container order-card (max-width:480px) {
  .selection-brief {padding:15px;gap:12px}
  .sb-metrics {column-gap:18px}
  .sb-head {gap:8px}
  .sw-picker,.selection-options .selection-option,.sw-result {padding:10px}
  .sw-car,.sw-result .sw-car {grid-template-columns:64px minmax(0,1fr);gap:4px 9px}
  .sw-photo,.sw-result .sw-photo {width:64px;grid-row:span 2}
  .sw-price,.sw-result .sw-price {grid-column:2;font-size:.95rem}
  .sw-result {grid-template-columns:1fr;gap:8px}
  .sw-result .sw-add {justify-self:end}
  .sw-verified {align-items:stretch;flex-direction:column}
  .selection-options :is(.sw-primary,.sw-secondary,.sw-add) {min-height:40px}
}
