#rows .quick-sale-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6rem;
  align-items: center;
  column-gap: .5rem;
  border-bottom: 1px solid var(--line);
}

#rows .quick-sale-row:last-child { border-bottom: 0; }
#rows .quick-sale-row > .itemrow { grid-area: 1 / 1 / 2 / -1; }

#rows .itemrow {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(5rem, .28fr) minmax(5.6rem, .28fr) 4rem 6rem;
  grid-template-areas: "identity cost estimate status action";
  gap: clamp(.5rem, 1.2vw, 1.1rem);
  padding: .9rem 0;
  border: 0;
  background: transparent;
}

#rows .item-identity { grid-area: identity; gap: .75rem; }
#rows .item-identity > span:last-child { min-width: 0; }
#rows .thumb { width: 44px; height: 44px; }

#rows .item-identity b {
  color: var(--ink);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.015em;
}

#rows .itemrow small {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .775rem;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#rows .item-identity small:empty { display: none; }
#rows .value { min-width: 0; font-size: .9rem; font-weight: 550; overflow-wrap: anywhere; }
#rows .itemrow .value { grid-area: cost; }
#rows .itemrow .value:nth-child(3) { grid-area: estimate; }
#rows .itemrow .badge { grid-area: status; justify-self: end; font-size: .73rem; padding: .15rem .5rem; }
#rows .itemrow .badge.sold { grid-area: action; justify-self: center; font-weight: 600; font-size: .8rem; }

#rows .quick-sale-action {
  grid-area: 1 / 2;
  align-self: center;
  justify-self: center;
  z-index: 1;
  min-width: 5.75rem;
  min-height: 44px;
  padding: .45rem .7rem;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (hover: hover) {
  #rows .quick-sale-row:hover { background: var(--surface-soft); }
}

#rows button:focus-visible { outline: 2px solid var(--mocha); outline-offset: -2px; }
#rows .quick-sale-action:focus-visible { outline-offset: 2px; }
.itemtitle { overflow-wrap: anywhere; line-height: 1.35; letter-spacing: -.012em; }

@media (max-width: 760px) {
  #rows .itemrow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 6rem;
    grid-template-areas: "identity identity action" "cost estimate action";
    grid-template-rows: auto minmax(44px, auto);
    gap: .65rem .5rem;
    padding: .85rem 0;
  }
  #rows .item-identity { grid-area: identity; gap: .55rem; }
  #rows .thumb { width: 36px; height: 36px; }
  #rows .itemrow .badge { grid-area: action; justify-self: center; align-self: center; }
  #rows .itemrow .badge:not(.sold) { transform: translateY(2.3rem); }
  #rows .itemrow .value:nth-child(3) { text-align: left; }
}

