/* Умный поиск — дополнение к styles.css основного сайта */

.ss-main { padding: 28px 16px 48px; }

.ss-hero { margin-bottom: 20px; }
.ss-hero h1 { font-size: 1.75rem; color: var(--dark); margin-bottom: 8px; }

.sandbox-badge {
  font-size: 11px;
  color: #ffb4b4;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.nav-active { color: #fff !important; font-weight: 600; text-decoration: underline; }

.ss-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ss-tab {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font: inherit;
}
.ss-tab.active { background: var(--dark); color: #fff; border-color: var(--dark); }

.ss-panel { display: none; }
.ss-panel.active { display: block; }

.ss-h2 { font-size: 1rem; color: var(--muted); margin: 18px 0 10px; font-weight: 600; }
.ss-h2:first-child { margin-top: 0; }

.ss-intro { margin: 0 0 14px; max-width: 52rem; }
.ss-example { margin: 10px 0 0; }
.ss-optional {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
}
.ss-req {
  color: #c62828;
  font-weight: 700;
  margin-left: 2px;
}

.ss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.ss-span2 { grid-column: span 2; }

.ss-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 8px; }
.ss-checks label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }

.ss-grid select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.ss-state-toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.ss-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.ss-states-map {
  height: min(420px, 55vh);
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 10px 0 8px;
  z-index: 0;
}

.ss-states-map .leaflet-interactive {
  cursor: pointer;
}

.ss-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}

.ss-map-legend-item::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.ss-map-legend-item--port::before {
  background: #1b4965
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a2.2 2.2 0 1 0 0 4.4 2.2 2.2 0 0 0 0-4.4zm-1.1 5.2h2.2v6.1c1.35.5 2.3 1.75 2.5 3.2l.9 5.1H7.5l.9-5.1c.2-1.45 1.15-2.7 2.5-3.2V7.2z'/%3E%3C/svg%3E")
    center / 8px no-repeat;
}

.ss-map-legend-item--base::before {
  background: #2a9d8f;
}

.ss-map-legend-item--state::before {
  background: rgba(230, 57, 70, 0.55);
  border: 1px solid #0d1b2a;
  border-radius: 2px;
}

.ss-map-pin {
  background: transparent !important;
  border: none !important;
}

.ss-map-pin__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.ss-map-pin--port .ss-map-pin__box {
  background: #1b4965;
}

.ss-map-pin--base .ss-map-pin__box {
  background: #2a9d8f;
}

.ss-map-pin__glyph {
  width: 13px;
  height: 13px;
  color: #fff;
}

.ss-map-pin__base-mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.leaflet-tooltip {
  font-size: 12px;
  padding: 4px 8px;
}

.ss-map-state-label {
  background: transparent !important;
  border: none !important;
  pointer-events: none;
}

.ss-map-state-label span {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #243447;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 0 3px #fff;
}

.ss-map-state-label.is-active span {
  color: #fff;
  text-shadow:
    -1px -1px 0 #5a1520,
    1px -1px 0 #5a1520,
    -1px 1px 0 #5a1520,
    1px 1px 0 #5a1520;
}

.ss-states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 6px 10px;
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbfc;
  margin-bottom: 8px;
}

.ss-state-item {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.ss-state-item input {
  margin: 0;
}

.ss-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-h); }
.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  cursor: pointer;
}
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.ss-agent-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.ss-agent-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 13px;
}
.ss-agent-box.fail { border-color: #e63946; background: #fff5f5; }
.ss-agent-box.ok { border-color: #2a9d8f; background: #f0faf8; }

.ss-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.ss-stat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}
.ss-stat b { display: block; font-size: 1.4rem; color: var(--dark); }
.ss-stat span { font-size: 12px; color: var(--muted); }

.hidden { display: none !important; }
.ss-empty { text-align: center; color: var(--muted); padding: 32px; }

/* Сводка шире формы настройки */
#digestTableWrap {
  max-width: none;
  padding: 16px 18px 18px 16px;
}

.ss-lot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ss-lot-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 196px;
  gap: 0;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  min-height: 0;
}

.ss-card-photo {
  position: relative;
  background: #eef2f7;
  min-height: 126px;
}
.ss-card-photo-btn {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 126px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.ss-card-photo .ss-card-photo-img,
.ss-card-photo > .ss-thumb {
  width: 100%;
  height: 100%;
  min-height: 126px;
  max-height: 148px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}
.ss-card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: #1b2a41;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.ss-card-nav--prev { left: 6px; }
.ss-card-nav--next { right: 6px; }
.ss-card-nav:hover { background: #fff; }

.ss-card-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  display: flex;
  justify-content: center;
  gap: 3px;
  padding: 0 8px;
  pointer-events: none;
}
.ss-card-dot {
  flex: 1;
  max-width: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
}
.ss-card-dot.is-on { background: #fff; }

.ss-card-main {
  padding: 10px 14px 12px;
  min-width: 0;
  border-right: 1px solid #eef1f5;
}

.ss-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ss-card-head-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}
.ss-card-title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #1b3a5c;
  text-align: left;
  cursor: pointer;
  line-height: 1.25;
}
.ss-card-title:hover { color: var(--accent); }
.ss-card-verdict {
  font-size: 11px;
  font-weight: 600;
}
.ss-card-head .ss-row-actions {
  flex-shrink: 0;
  min-width: 0;
}

.ss-card-ids {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #5c6b7a;
  margin-bottom: 8px;
}
.ss-card-id-label {
  font-weight: 600;
  color: #8a97a6;
  margin-right: 4px;
}
.ss-card-id-sep { color: #c5ced8; }
.ss-card-copy {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #dde3ea;
  border-radius: 5px;
  background: #f7f9fc;
  color: #5c6b7a;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
}
.ss-card-copy:hover { border-color: var(--accent); color: var(--accent); }

.ss-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.ss-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid #e3e8ef;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 11px;
  color: #3d4f63;
  white-space: nowrap;
}

.ss-card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid #eef1f5;
}
.ss-spec-cell {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 5px 8px 5px 0;
  border-bottom: 1px solid #f3f5f8;
  font-size: 12px;
}
.ss-spec-cell:nth-child(odd) { padding-right: 12px; }
.ss-card-specs dt {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  color: #9aa8b6;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ss-card-specs dd {
  margin: 0;
  color: #1e2d3d;
  word-break: break-word;
  line-height: 1.3;
}
.ss-card-specs dd.ss-spec-empty { color: #b0bac5; }

.ss-card-auction {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #f6f9fc 0%, #f0f4f9 100%);
}
.ss-card-auction-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #3d4f63;
  line-height: 1.3;
}
.ss-card-ico {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  font-size: 12px;
  opacity: 0.85;
}
.ss-card-countdown { font-variant-numeric: tabular-nums; }

.ss-card-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 2px;
}
.ss-card-price-box {
  padding: 8px 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e3e8ef;
  text-align: center;
}
.ss-card-price-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #8a97a6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.ss-card-price-val {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1a8f5c;
  line-height: 1.2;
}
.ss-card-price-box--buynow .ss-card-price-val { color: #3d4f63; }

.ss-card-status {
  margin-top: auto;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b7c8f;
  text-transform: uppercase;
}
.ss-card-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3d9a6e;
  margin-right: 4px;
  vertical-align: middle;
}

@media (max-width: 960px) {
  .ss-lot-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .ss-card-auction {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid #e3e8ef;
  }
  .ss-card-prices { flex: 1; min-width: 180px; }
  .ss-card-status { width: 100%; margin-top: 0; }
  .ss-card-main { border-right: 0; }
}

@media (max-width: 640px) {
  .ss-lot-card { grid-template-columns: 1fr; }
  .ss-card-photo { min-height: 180px; }
  .ss-card-photo .ss-card-photo-img { max-height: 200px; }
  .ss-card-specs { grid-template-columns: 1fr; }
  .ss-spec-cell { grid-template-columns: 76px minmax(0, 1fr); }
}

.ss-col-thumb { width: 92px; }
.ss-thumb-link, .ss-title-link { color: inherit; text-decoration: none; }
.ss-thumb-btn, .ss-title-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ss-title-btn:hover strong { color: var(--accent); }
.ss-thumb-btn:hover .ss-thumb { opacity: 0.92; }
.ss-thumb-link:hover .ss-thumb { opacity: 0.92; }
.ss-thumb {
  display: block;
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #eef2f7;
}
.ss-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  padding: 4px;
}
.ss-dialog-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.ss-dialog-gallery {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.ss-dialog-gallery img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.ss-dialog-gallery img.is-active {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.ss-broker-link {
  font-size: 12px;
  color: var(--muted);
}
.ss-broker-link a { color: var(--muted); }
.ss-gallery {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
  width: min(960px, 96vw);
}
.ss-gallery::backdrop { background: rgba(13, 27, 42, 0.82); }
.ss-gallery-inner {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.ss-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.ss-gallery-counter {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.ss-gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: #0d1117;
}
.ss-gallery-img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 640px);
  object-fit: contain;
}
.ss-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 56px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.ss-gallery-nav:hover { background: rgba(255, 255, 255, 0.22); }
.ss-gallery-prev { left: 10px; }
.ss-gallery-next { right: 10px; }
.ss-gallery-meta {
  margin: 0;
  padding: 10px 16px 14px;
  color: var(--muted);
  font-size: 13px;
}
.ss-gallery-nav:disabled {
  opacity: 0.25;
  cursor: default;
}
.ss-ext-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}
.ss-ext-link:hover { text-decoration: underline; }

.ss-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 152px;
}
.ss-act {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--dark);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.ss-act:hover { border-color: var(--accent); color: var(--accent); }
.ss-act.is-on {
  background: #fff8e6;
  border-color: #e6a800;
  color: #b8860b;
}
.ss-mini-dialog {
  width: min(420px, 94vw);
  border: 0;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.ss-mini-dialog::backdrop { background: rgba(13, 27, 42, 0.5); }
.ss-calc-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 14px;
}
.ss-calc-result b { font-size: 1.15rem; color: var(--dark); }
.ss-share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s;
}
.ss-share-toast.is-visible { opacity: 1; }

.badge-auction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 0;
  letter-spacing: 0.02em;
}
.badge-auction.copart { background: #1a5fb4; color: #fff; }
.badge-auction.iaai { background: #c62828; color: #fff; }

.badge-buynow {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #e8f5e9;
  color: #2e7d32;
  vertical-align: middle;
}

.badge-puresale {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8f5ec;
  color: #1d6a3a;
  border: 1px solid #b8dfc8;
  vertical-align: middle;
}

.ss-puresale-block.hidden { display: none; }

.verdict-restoration { color: #1d6a52; font-weight: 500; }
.verdict-carkit { color: #9a6700; font-weight: 500; }

.ss-link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

#lotDialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  max-width: 520px;
  width: 92vw;
}
#lotDialog::backdrop { background: rgba(13, 27, 42, 0.5); }
.ss-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.ss-dialog-head h2 { font-size: 1.1rem; margin: 0; }
.ss-dialog-body { padding: 12px 16px; color: var(--muted); font-size: 14px; }
.ss-close { background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--muted); }
#lotForm { padding: 0 16px 16px; }

@media (max-width: 720px) {
  .ss-stats { grid-template-columns: repeat(2, 1fr); }
  .ss-agent-strip { grid-template-columns: 1fr; }
  .ss-span2 { grid-column: span 1; }
  .sandbox-badge { display: none; }
}

/* ——— Страница карточки лота ——— */
.ss-lot-page-root { max-width: none; }

.ss-lot-page {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.ss-lot-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f5;
  background: #f8fafc;
}
.ss-lot-page-toolbar .ss-link-btn { font-size: 14px; }

.ss-lot-page-body {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr) 220px;
  gap: 0;
  align-items: start;
}

.ss-lot-page-gallery {
  padding: 16px;
  border-right: 1px solid #eef1f5;
  background: #f8fafc;
}
.ss-lot-page-stage {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #0d1117;
  margin-bottom: 10px;
}
.ss-lot-page-stage img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  margin: 0 auto;
}
.ss-lot-page-stage .ss-card-nav { background: rgba(255,255,255,0.92); }
.ss-lot-page-thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-height: 168px;
  overflow-y: auto;
}
.ss-lot-page-thumb {
  width: 64px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #eef2f7;
}
.ss-lot-page-thumb.is-on { border-color: var(--accent); }
.ss-lot-page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ss-lot-page-main { padding: 16px 18px 18px; min-width: 0; }
.ss-lot-page-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #1b3a5c;
  line-height: 1.25;
}
.ss-lot-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ss-lot-page-actions { margin-left: auto; }

.ss-spec-cell--seller dd { overflow: visible; }

.ss-seller-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.ss-seller-row--compact { gap: 4px; }
.ss-seller-name {
  font-weight: 600;
  color: #1e2d3d;
  line-height: 1.3;
}
.ss-seller-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ss-seller-badge--compact { font-size: 9px; padding: 1px 6px; }
.ss-seller-badge--insurance {
  background: #e8f5ec;
  color: #1d6a3a;
  border: 1px solid #b8dfc8;
}
.ss-seller-badge--rental {
  background: #eef4ff;
  color: #1a4f8c;
  border: 1px solid #c5d9f5;
}
.ss-seller-badge--credit {
  background: #f3effa;
  color: #5c4a8a;
  border: 1px solid #d4c8ee;
}
.ss-seller-badge--other {
  background: #f4f6f8;
  color: #5c6b7a;
  border: 1px solid #dde3ea;
}
.ss-seller-badge--unknown {
  background: #f4f6f8;
  color: #8a97a6;
  border: 1px solid #e3e8ef;
}

.ss-seller-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 10px 0 4px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #eef1f5;
  border-radius: 10px;
}
.ss-seller-block-label {
  font-size: 10px;
  font-weight: 700;
  color: #9aa8b6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ss-lot-page-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #eef1f5;
  border-radius: 10px;
}

.ss-field-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  min-width: 0;
}

.ss-field-label {
  font-size: 10px;
  font-weight: 700;
  color: #9aa8b6;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.ss-field-val {
  font-size: 13px;
  color: #1e2d3d;
  word-break: break-word;
  line-height: 1.35;
}
.ss-field-val.ss-field-empty { color: #b0bac5; }

.ss-lot-page-fields-title {
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #6b7c8f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ss-lot-page-side {
  padding: 16px 14px;
  background: linear-gradient(180deg, #f6f9fc 0%, #f0f4f9 100%);
  border-left: 1px solid #eef1f5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}
.ss-lot-page-side .ss-card-prices { margin-top: 4px; }
.ss-lot-page-broker {
  margin-top: auto;
  padding-top: 12px;
}
.ss-lot-page-broker .btn { width: 100%; }

.ss-lot-page-notes {
  padding: 16px 18px 18px;
  border-top: 1px solid #eef1f5;
  background: #fafbfc;
}
.ss-lot-page-notes h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--dark);
}

.ss-lot-page-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
.ss-lot-page-empty a { color: var(--accent); }

@media (max-width: 960px) {
  .ss-lot-page-body {
    grid-template-columns: 1fr;
  }
  .ss-lot-page-gallery { border-right: 0; border-bottom: 1px solid #eef1f5; }
  .ss-lot-page-side { border-left: 0; border-top: 1px solid #eef1f5; }
  .ss-lot-page-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .ss-lot-page-fields { grid-template-columns: 1fr; }
}
