.dealer {
  --ink: #261e1b;
  --accent: #74253e;
  background: #f8f5f0;
  color: var(--ink);
  font: 16px/1.5 system-ui, sans-serif;
}
.dealer .workspace { padding-block: 2.5rem 4rem; }
.dealer h1, .dealer h2, .dealer h3 { margin: 0; line-height: 1.2; }
.dealer h1 { font-size: clamp(1.7rem, 5vw, 3rem); }
.dealer p { margin: .55rem 0; }
.dealer .toolbar { display: flex; gap: 1rem; align-items: end; justify-content: space-between; flex-wrap: wrap; }
.dealer .filters { justify-content: start; padding-block: 1rem; }
.dealer label { display: grid; gap: .3rem; font-weight: 650; }
.dealer label small { font-weight: normal; }
.dealer input, .dealer select, .dealer textarea, .dealer button { font: inherit; }
.dealer input:not([type=checkbox]), .dealer select, .dealer textarea {
  width: 100%; min-width: 0; border: 1px solid #a39992; border-radius: .4rem;
  background: white; color: var(--ink); padding: .47rem .65rem;
}
.dealer button {
  cursor: pointer; border: 1px solid var(--accent); border-radius: .4rem;
  color: white; background: var(--accent); padding: .45rem .8rem; font-weight: 650;
}
.dealer button:disabled { opacity: .55; cursor: wait; }
.dealer button.quiet { background: white; color: var(--accent); }
.dealer [hidden] { display: none !important; }
.dealer :focus-visible { outline: 3px solid #9a592b; outline-offset: 2px; }
.dealer .table-scroll { overflow-x: auto; }
.dealer table { width: 100%; border-collapse: collapse; background: white; text-align: left; font-variant-numeric: tabular-nums; }
.dealer caption { text-align: left; padding: .35rem 0; }
.dealer td, .dealer th { padding: .65rem .75rem; border-bottom: 1px solid #e5ddd6; vertical-align: middle; }
.dealer th { background: #efe7de; white-space: nowrap; }
.dealer td { min-width: 5rem; }
.dealer td small { display: block; }
.dealer .dealer-panel { margin-block: 1.35rem; padding: 1rem; border: 1px solid #dfd2c6; border-radius: .55rem; background: #fffdfa; }
.dealer dialog { width: min(46rem, calc(100% - 1rem)); max-height: 92dvh; padding: clamp(.75rem, 3vw, 1.5rem); border: 1px solid #a39992; border-radius: .65rem; color: var(--ink); }
.dealer dialog::backdrop { background: #261e1b99; }
.dealer dialog .toolbar { margin-bottom: 1rem; }
.dealer .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
.dealer .wide { grid-column: 1 / -1; }
.dealer .check { display: flex; align-items: center; font-weight: normal; }
.dealer .photo-field { display: grid; gap: .45rem; }
.dealer .photo-previews { display: flex; flex-wrap: wrap; gap: .65rem; }
.dealer .photo-previews > div { display: grid; gap: .25rem; }
.dealer .photo-previews img { width: 7rem; height: 5rem; object-fit: contain; }
.dealer #target { width: 8rem; }
.dealer #form-error { color: #8d1832; }
.dealer .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 550px) { .dealer .fields { grid-template-columns: 1fr; } }
