.lot {
  margin: 0 0 16px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
}
.lot > summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
}
.lot > summary::-webkit-details-marker {
  display: none;
}
.lot-title {
  font: 700 1.05rem var(--f-display);
}
.lot-sub {
  font-size: .88rem;
  color: var(--muted);
}
.lot[open] > summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.lot-tip {
  margin: 0 0 10px;
  font-size: .92rem;
  color: var(--muted);
}
.lot-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lot-shots:empty {
  display: none;
}
.lot-shot {
  position: relative;
  width: 72px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}
.lot-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lot-shot button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.lot-add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 10px 0;
  border: 2px dashed var(--line);
  border-radius: 12px;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  position: relative;
}
.lot-add input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.lot-add.is-full {
  display: none;
}
.lot-ask {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.lot-seg {
  display: flex;
  gap: 6px;
  flex: 1 1 220px;
}
.lot-seg button {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 .9rem var(--f-body);
  cursor: pointer;
}
.lot-seg button[aria-pressed=true] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.lot-price {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 120px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}
.lot-price input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 1.05rem var(--f-body);
  outline: none;
}
.lot-go {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 1.05rem var(--f-display);
  cursor: pointer;
}
.lot-go:disabled {
  opacity: .45;
  cursor: default;
}
.lot-go.busy {
  opacity: 1;
  cursor: progress;
}
.lot-msg {
  min-height: 1.2em;
  margin: 8px 0;
  color: var(--muted);
  font-size: .92rem;
}
.lot-out {
  padding-bottom: 12px;
}
.lot-empty {
  color: var(--muted);
}
.lot-sum {
  padding: 12px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  margin-bottom: 12px;
}
.lot-sum h3 {
  margin: 0 0 8px;
  font: 700 1.05rem var(--f-display);
}
.lot-sum dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 8px;
}
.lot-sum dt {
  font-size: .78rem;
  color: var(--muted);
}
.lot-sum dd {
  margin: 0;
  font: 700 1.1rem var(--f-num);
}
.lot-verdict,
.lot-offer {
  margin: 6px 0;
  font-size: .98rem;
}
.lot-offer b {
  color: var(--good);
}
.lot-note {
  margin: 6px 0;
  font-size: .88rem;
  color: var(--muted);
}
.lot-cost {
  margin: 8px 0 0;
  font-size: .8rem;
  color: var(--muted);
}
.lot-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lot-row {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--v,var(--line));
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
}
.lot-row.v-buy {
  --v:var(--good);
}
.lot-row.v-maybe {
  --v:var(--warn);
}
.lot-row.v-pass {
  --v:var(--bad);
}
.lot-row.v-no_data,
.lot-row.v-not_priced,
.lot-row.v-none {
  --v:var(--line);
}
.lot-row.is-guess {
  border-style: dashed;
  border-left-style: solid;
}
.lot-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.lot-name {
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}
.lot-name small {
  font-weight: 500;
  color: var(--muted);
}
.lot-chip {
  flex: 0 0 auto;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--v,var(--line));
  color: var(--v,var(--muted));
  font-size: .8rem;
  font-weight: 700;
}
.lot-row.v-no_data .lot-chip,
.lot-row.v-not_priced .lot-chip,
.lot-row.v-none .lot-chip {
  color: var(--muted);
}
.lot-line {
  margin: 4px 0 0;
  font-size: .9rem;
  color: var(--ink);
}
.lot-line small {
  color: var(--muted);
}
.lot-up {
  color: var(--good);
}
.lot-down {
  color: var(--bad);
}
.lot-guess {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  font-size: .85rem;
  color: var(--muted);
}
.lot-confirm {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 .88rem var(--f-body);
  cursor: pointer;
}
.lot-confirm[aria-pressed=true] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.lot-sales {
  margin-top: 6px;
  font-size: .85rem;
}
.lot-sales summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}
.lot-sales ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.lot-sales a {
  color: var(--ink);
}
