/* Одна карточка машины (js/lot-card/) в трёх видах — по макету project-memory/design/2026-10-19-redesign/.
   Всё только под html[data-skin]: без атрибута файл ничего не меняет (старый вид как был).
   Раскладка: .lc--tile (полка, похожие, история продаж, «Продано») и .lc--row (выдача, кабинет, калькулятор).
   Порядок: общее → А «Тихий» → Б «Витрина» → В «Табло» → места на страницах. */

/* ---------- общее ---------- */
html[data-skin] .lc {
  --lc-ink: #1b2430; --lc-muted: #6b7685; --lc-line: #e6eaef; --lc-soft: #f5f7f9;
  --lc-accent: #e63946; --lc-ok: #1a8f5c; --lc-copart: #1d5bbf; --lc-iaai: #c8102e;
  position: relative; display: flex; flex-direction: column; min-width: 0; box-sizing: border-box;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  grid-template-areas: none; grid-template-rows: none; min-height: 0; overflow: visible;
  color: var(--lc-ink); text-decoration: none; text-align: left;
  font: 400 15px/1.45 "Outfit", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
html[data-skin] .lc *, html[data-skin] .lc *::before, html[data-skin] .lc *::after { box-sizing: border-box; }
html[data-skin] .lc button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
html[data-skin] .lc .lc-ic { width: 14px; height: 14px; flex: none; }
html[data-skin] .lc-ph { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--lc-soft); }
html[data-skin] .lc-ph-btn { display: block; width: 100%; height: 100%; }
html[data-skin] .lc-img { display: block; width: 100%; height: 100%; object-fit: cover; }
html[data-skin] .lc-img--empty { background: var(--lc-soft); }
html[data-skin] .lc-auc, html[data-skin] .lc-timer, html[data-skin] .lc-soldtag, html[data-skin] .lc-star { display: none; }
html[data-skin] .lc-tag { position: absolute; right: 8px; top: 8px; z-index: 2; background: #fff; color: var(--lc-ink); font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 8px; }
html[data-skin] .lc-tag--await { background: var(--lc-accent); color: #fff; }
html[data-skin] .lc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html[data-skin] .lc-title { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
html[data-skin] .lc-trim { font-weight: 400; color: var(--lc-muted); font-size: .87em; }
html[data-skin] .lc-facts { display: block; font-size: 13px; color: var(--lc-ink); }
html[data-skin] .lc-f { font-style: normal; }
html[data-skin] .lc-f + .lc-f::before { content: " · "; color: var(--lc-muted); }
html[data-skin] .lc-f.is-ok { color: var(--lc-ok); }
html[data-skin] .lc-f.is-bad { color: var(--lc-accent); }
html[data-skin] .lc-where { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--lc-muted); min-width: 0; }
html[data-skin] .lc-where > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-skin] .lc-badge { align-self: flex-start; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 9px; margin-bottom: 4px; background: var(--lc-soft); color: var(--lc-ink); }
html[data-skin] .lc-badge--track, html[data-skin] .lc-badge--track-done { color: #8a5a00; background: #fdf3dc; }
html[data-skin] .lc-badge--bid, html[data-skin] .lc-badge--buy { color: var(--lc-copart); background: #e8effa; }
html[data-skin] .lc-extra { margin-top: 6px; position: relative; z-index: 2; }
html[data-skin] .lc-price { display: flex; flex-direction: column; gap: 1px; font-variant-numeric: tabular-nums; }
html[data-skin] .lc-bid, html[data-skin] .lc-bn { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
html[data-skin] .lc-bid b { font-size: 19px; font-weight: 600; }
html[data-skin] .lc-bid small, html[data-skin] .lc-bn small { font-size: 12px; color: var(--lc-muted); }
html[data-skin] .lc-bn { color: var(--lc-ok); font-size: 13px; }
html[data-skin] .lc-bn b { font-weight: 500; }
html[data-skin] .lc-when { font-size: 13px; color: var(--lc-muted); }
html[data-skin] .lc-when b { font-weight: 500; color: var(--lc-ink); }
html[data-skin] .lc-when.is-hot b { color: var(--lc-accent); }
html[data-skin] .lc-status { margin-top: 6px; font-size: 13px; font-weight: 500; }
/* Кабинет и выдача: вся карточка нажимается (заголовок растянут), кнопки поверх. */
html[data-skin] article.lc .lc-title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
html[data-skin] article.lc .lc-ph-btn, html[data-skin] .lc .lc-star { position: relative; z-index: 2; }
html[data-skin] a.lc:focus-visible, html[data-skin] .lc .lc-title:focus-visible { outline: 2px solid var(--lc-copart); outline-offset: 2px; }

/* row: фото | описание | цена */
html[data-skin] .lc.lc--row { display: grid; grid-template-columns: 208px minmax(0, 1fr) auto; gap: 20px; align-items: start; }
html[data-skin] .lc--row .lc-title { white-space: normal; font-size: 17px; }
html[data-skin] .lc--row .lc-price { text-align: right; align-items: flex-end; padding-top: 2px; }
html[data-skin] .lc--row .lc-bid b { font-size: 21px; }
html[data-skin] .lc--row .lc-when { margin-top: 8px; }
html[data-skin] .lc--tile .lc-ph { margin-bottom: 10px; }
html[data-skin] .lc--tile .lc-where, html[data-skin] .lc--tile .lc-facts { display: none; }
html[data-skin] .lc--tile .lc-price { margin-top: 6px; }

@media (max-width: 640px) {
  html[data-skin] .lc.lc--row { grid-template-columns: 128px minmax(0, 1fr); gap: 4px 12px; }
  html[data-skin] .lc--row .lc-ph { grid-row: span 2; }
  html[data-skin] .lc--row .lc-title { font-size: 15px; }
  html[data-skin] .lc--row .lc-trim { display: block; }
  html[data-skin] .lc--row .lc-where { display: none; }
  html[data-skin] .lc--row .lc-price { grid-column: 2; text-align: left; align-items: flex-start; padding: 0; }
  html[data-skin] .lc--row .lc-bid b { font-size: 18px; }
  html[data-skin] .lc--row .lc-when { margin-top: 2px; }
}

/* ---------- А «Тихий»: белый лист, линии 1px, без теней ---------- */
html[data-skin="a"] .lc-ph { border-radius: 6px; }
html[data-skin="a"] a.lc:hover .lc-img, html[data-skin="a"] article.lc:hover .lc-img { opacity: .92; }
html[data-skin="a"] .lc.lc--row { padding: 18px 0; border-bottom: 1px solid var(--lc-line); }
html[data-skin="a"] .lc--row .lc-facts { font-size: 14px; }
@media (max-width: 640px) {
  html[data-skin="a"] .lc.lc--row { padding: 14px 0; }
  html[data-skin="a"] .lc--row .lc-facts { font-size: 13px; }
}

/* ---------- Б «Витрина»: фото первым, белая карточка с тенью, таймер и площадка на фото ---------- */
html[data-skin="b"] .lc {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(27, 36, 48, .06), 0 6px 20px rgba(27, 36, 48, .07);
  transition: transform .15s, box-shadow .15s;
}
html[data-skin="b"] a.lc:hover, html[data-skin="b"] article.lc:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(27, 36, 48, .06), 0 14px 32px rgba(27, 36, 48, .12); }
html[data-skin="b"] .lc-ph { background: #dfe4ea; margin: 0; }
html[data-skin="b"] .lc-auc { display: block; position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .04em; border-radius: 6px; padding: 3px 7px; color: #fff; background: var(--lc-iaai); text-transform: uppercase; }
html[data-skin="b"] .lc-auc--copart { background: var(--lc-copart); }
html[data-skin="b"] .lc-timer { display: flex; align-items: center; gap: 5px; position: absolute; left: 10px; bottom: 10px; z-index: 2; background: rgba(27, 36, 48, .78); color: #fff; font-size: 13px; font-weight: 600; border-radius: 8px; padding: 4px 9px; }
html[data-skin="b"] .lc-timer.is-hot { background: var(--lc-accent); }
html[data-skin="b"] .lc-soldtag { display: block; position: absolute; left: 10px; bottom: 10px; z-index: 2; background: var(--lc-ok); color: #fff; font-size: 12px; font-weight: 600; border-radius: 8px; padding: 3px 9px; }
html[data-skin="b"] .lc-star { display: grid; place-items: center; position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
html[data-skin="b"] .lc-star .lc-ic { width: 16px; height: 16px; }
html[data-skin="b"] .lc-star.is-on { color: #e0a100; }
html[data-skin="b"] .lc-star.is-on .lc-ic { fill: currentColor; }
html[data-skin="b"] .lc-body { padding: 12px 14px 0; }
html[data-skin="b"] .lc-title { font-weight: 600; }
html[data-skin="b"] .lc-facts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
html[data-skin="b"] .lc-f { font-size: 12px; background: #f2f4f7; border-radius: 6px; padding: 2px 8px; font-weight: 500; }
html[data-skin="b"] .lc-f + .lc-f::before { content: none; }
html[data-skin="b"] .lc-f.is-ok { background: #e6f4ed; }
html[data-skin="b"] .lc-f.is-bad { background: #fde8ea; }
html[data-skin="b"] .lc-where { margin-top: 6px; }
html[data-skin="b"] .lc-price { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 10px; padding: 10px 14px 14px; margin-top: auto; }
html[data-skin="b"] .lc-bid, html[data-skin="b"] .lc-bn { flex-direction: column; align-items: flex-start; gap: 0; }
html[data-skin="b"] .lc-bn { align-items: flex-end; text-align: right; font-size: 15px; }
html[data-skin="b"] .lc-bn b { font-weight: 700; }
html[data-skin="b"] .lc-bid b { font-size: 20px; font-weight: 700; }
html[data-skin="b"] .lc-when { display: none; }
html[data-skin="b"] .lc-status { flex-basis: 100%; margin-top: 2px; }
html[data-skin="b"] .lc--tile .lc-facts { display: none; }
html[data-skin="b"] .lc--tile .lc-ph { margin-bottom: 0; }
html[data-skin="b"] .lc.lc--row { gap: 0 16px; }
html[data-skin="b"] .lc--row .lc-ph { height: 100%; aspect-ratio: auto; min-height: 156px; }
html[data-skin="b"] .lc--row .lc-body { padding: 14px 0; }
html[data-skin="b"] .lc--row .lc-price { flex-direction: column; align-items: flex-end; justify-content: flex-start; padding: 14px 16px 14px 0; margin: 0; }
html[data-skin="b"] .lc--row .lc-bn { flex-direction: row; align-items: baseline; gap: 6px; }
@media (max-width: 640px) {
  /* Б на телефоне: выдача и кабинет — те же карточки-плитки на всю ширину. */
  html[data-skin="b"] .lc.lc--row { display: flex; gap: 0; align-items: stretch; }
  html[data-skin="b"] .lc--row .lc-ph { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
  html[data-skin="b"] .lc--row .lc-body { padding: 12px 14px 0; }
  html[data-skin="b"] .lc--row .lc-where { display: flex; }
  html[data-skin="b"] .lc--row .lc-price { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 10px 14px 14px; }
  html[data-skin="b"] .lc--row .lc-bn { flex-direction: column; align-items: flex-end; gap: 0; }
}

/* ---------- В «Табло»: плотно, строка как в таблице торгов, цифры колонками ---------- */
html[data-skin="c"] .lc { font-size: 13.5px; line-height: 1.4; }
html[data-skin="c"] .lc-ph { border-radius: 5px; }
html[data-skin="c"] .lc-title { font-weight: 600; }
html[data-skin="c"] .lc-bid b { font-size: 15px; font-weight: 700; }
html[data-skin="c"] .lc-bid small, html[data-skin="c"] .lc-bn small { font-size: 11px; }
html[data-skin="c"] .lc-when b { font-weight: 600; }
html[data-skin="c"] .lc-f.lc-f--document { font-size: 12px; border-radius: 4px; padding: 1px 6px; background: #f4f6f8; }
html[data-skin="c"] .lc-f.lc-f--document.is-ok { background: #e6f4ed; }
html[data-skin="c"] .lc-f.lc-f--document.is-bad { background: #fde8ea; }
html[data-skin="c"] .lc.lc--tile { background: #fff; border: 1px solid var(--lc-line); border-radius: 8px; padding: 8px; }
html[data-skin="c"] .lc--tile .lc-ph { margin-bottom: 6px; }
html[data-skin="c"] .lc--tile .lc-price { margin-top: 2px; }
html[data-skin="c"] .lc--tile .lc-when { font-size: 12px; }
html[data-skin="c"] .lc.lc--row {
  grid-template-columns: 80px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 7px 10px; background: #fff; border-bottom: 1px solid var(--lc-line);
}
html[data-skin="c"] .lc--row .lc-title { font-size: 13.5px; white-space: nowrap; }
html[data-skin="c"] .lc--row .lc-trim { font-size: 12px; }
html[data-skin="c"] .lc--row .lc-facts { font-size: 12.5px; color: var(--lc-muted); }
html[data-skin="c"] .lc--row .lc-price { display: grid; grid-template-columns: auto auto; column-gap: 14px; align-items: baseline; padding: 0; }
html[data-skin="c"] .lc--row .lc-bid, html[data-skin="c"] .lc--row .lc-bn { flex-direction: column; align-items: flex-end; gap: 0; }
html[data-skin="c"] .lc--row .lc-bid b { font-size: 15px; }
html[data-skin="c"] .lc--row .lc-when { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; text-align: right; }
html[data-skin="c"] .lc--row .lc-status { grid-column: 1 / -1; margin-top: 2px; font-size: 12px; text-align: right; }
html[data-skin="c"] .lc--row:hover { background: #f7f9fc; }
@media (max-width: 640px) {
  html[data-skin="c"] .lc.lc--row { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 10px; align-items: start; }
  html[data-skin="c"] .lc--row .lc-ph { grid-row: span 2; }
  html[data-skin="c"] .lc--row .lc-body { grid-column: 2 / 4; }
  html[data-skin="c"] .lc--row .lc-title { overflow: hidden; text-overflow: ellipsis; }
  html[data-skin="c"] .lc--row .lc-trim { display: inline; }
  html[data-skin="c"] .lc--row .lc-price { grid-column: 2 / 4; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 10px; }
  html[data-skin="c"] .lc--row .lc-bid, html[data-skin="c"] .lc--row .lc-bn { flex-direction: row; align-items: baseline; gap: 4px; }
  html[data-skin="c"] .lc--row .lc-when { order: -1; grid-column: auto; margin: 0; text-align: left; }
  html[data-skin="c"] .lc--row .lc-status { flex-basis: 100%; text-align: left; }
}

/* ---------- места на страницах: только сетка вокруг карточек ---------- */
/* Полки главной: 5 в ряд на мониторе, по 2 на странице полки на телефоне (как сейчас). */
html[data-skin] .home-shelf-page > .lc { min-width: 0; }
html[data-skin="b"] .home-shelf-track, html[data-skin="b"] .home-shelf-page { overflow: visible; }
/* Выдача и кабинет: список строк. */
html[data-skin] #digestList > .lc.lc--row, html[data-skin] #appsList .lc.lc--row { margin: 0; }
html[data-skin="b"] #digestList > .lc, html[data-skin="b"] #appsList .lc { margin-bottom: 16px; }
html[data-skin="a"] #digestList > .lc:first-child { padding-top: 4px; }
html[data-skin="c"] #digestList, html[data-skin="c"] #appsList .ss-apps-list { border: 1px solid #e4e8ee; border-radius: 8px; overflow: hidden; background: #fff; }
/* Похожие лоты, история продаж, «Продано»: плитки сеткой. */
html[data-skin] .ss-lot-similar__rail:has(> .lc) { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; overflow: visible; }
html[data-skin] #soldHistoryGrid:has(> .lc), html[data-skin] #cards:has(> .lc) { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
html[data-skin="c"] #soldHistoryGrid:has(> .lc), html[data-skin="c"] #cards:has(> .lc), html[data-skin="c"] .ss-lot-similar__rail:has(> .lc) { gap: 10px; }
@media (max-width: 640px) {
  html[data-skin] .ss-lot-similar__rail:has(> .lc) { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; }
  html[data-skin] .ss-lot-similar__rail > .lc { flex: 0 0 62%; scroll-snap-align: start; }
  html[data-skin] #soldHistoryGrid:has(> .lc), html[data-skin] #cards:has(> .lc) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html[data-skin] #soldHistoryGrid > .lc .lc-bid b, html[data-skin] #cards > .lc .lc-bid b { font-size: 16px; }
}
