:root {
  --bg: #eef1f4;
  --panel: #ffffff;
  --text: #1a2332;
  --muted: #5c6773;
  --accent: #1a5fb4;
  --border: rgba(0, 0, 0, 0.12);
  --ok: #1a8f5c;
  --danger: #c0392b;
  --shadow: rgba(0, 0, 0, 0.08);
  --nav-h: 44px;
  --header-h: 48px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100dvh;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(6px + env(safe-area-inset-top)) 12px 4px;
  background: transparent;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: auto;
}

.panel-header.hidden {
  display: none;
}

.panel-header-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-back {
  border: none;
  background: #e8ecf2;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.panel-top-feed {
  flex: 0 0 auto;
  padding: 8px 12px 0;
}

.panel-bets-topbar {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 22px;
  width: 100%;
  box-sizing: border-box;
  padding: calc(8px + env(safe-area-inset-top)) 16px 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 40;
}

.panel-bets-topbar.hidden {
  display: none;
}

.panel-bets-topbar__credit,
.panel-bets-topbar__balance {
  display: inline-flex;
  align-items: baseline;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.panel-bets-topbar__credit .panel-nav-money__sym,
.panel-bets-topbar__credit .panel-nav-money__amt {
  color: #16a34a;
}

.panel-bets-topbar__balance .panel-nav-money__sym,
.panel-bets-topbar__balance .panel-nav-money__amt {
  color: #dc2626;
}

.panel-bets-topbar .panel-nav-money__sym {
  font-size: 0.62em;
  margin-right: 5px;
}

.panel-screen.panel-screen--bets {
  padding-top: 8px;
}

.panel-top-feed.hidden {
  display: none;
}

.panel-top-feed .panel-feed-line {
  margin: 0;
}

.flip-badge--stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  padding: 4px 8px;
  min-height: 2.4em;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.flip-badge--stack span + span {
  margin-top: 1px;
  font-weight: 500;
  opacity: 0.92;
}

.flip-badge--review {
  background: #fef3c7;
  color: #92400e;
}

.flip-badge--accepted {
  background: #dbeafe;
  color: #1d4ed8;
}

.flip-line2 {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.flip-line2__badges {
  margin-left: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 58%;
}

.flip-time-slot {
  flex: 1 1 auto;
  min-width: 0;
}

.flip-badge--buynow-priced {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  padding: 4px 8px;
  font: inherit;
  cursor: pointer;
  text-align: right;
  line-height: 1.15;
}

.flip-badge__buynow-text {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.flip-badge__buynow-price {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.flip-badge--buynow-iaai .flip-badge__buynow-text,
.flip-badge--buynow-iaai .flip-badge__buynow-price {
  color: #c0392b;
}

.flip-badge--buynow-copart .flip-badge__buynow-text,
.flip-badge--buynow-copart .flip-badge__buynow-price {
  color: #1a5fb4;
}

.flip-line2 .flip-badge--stack,
.flip-line2 .flip-badge--accepted,
.flip-line2 .flip-badge--alt {
  flex: 0 0 auto;
}

.flip-line2 .flip-badge--bid,
.flip-line2 .flip-badge--carkit {
  flex: 0 0 auto;
}

.panel-screen {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(8px + env(safe-area-inset-top)) 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.panel-screen.panel-screen--lots {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

.panel-screen.panel-screen--lots .search-flip {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.panel-screen.panel-screen--search-form {
  overflow: hidden;
  overscroll-behavior: none;
  padding-top: calc(6px + env(safe-area-inset-top));
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 6px);
}

.panel-screen.panel-screen--search-form .search-flip__face--front {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-x pan-y;
}

.panel-screen.panel-screen--search-form .panel-search-screen {
  overflow: hidden;
  height: 100%;
}

.panel-screen.panel-screen--lots-flip {
  overflow: hidden;
  overscroll-behavior: none;
  padding: env(safe-area-inset-top) 12px calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);
}

.panel-screen.panel-screen--lots-flip .panel-feed-slot--filled {
  padding-top: 2px;
  padding-bottom: 8px;
}

.panel-screen.panel-screen--lots-flip .search-flip__scroll {
  padding-top: 0;
}

.panel-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  z-index: 50;
  min-height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  isolation: isolate;
}

.panel-nav-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-top: 2px solid transparent;
  margin-top: -1px;
  background: transparent;
  color: var(--muted);
  font: 500 9px/1.15 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 5px 2px 4px;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-nav-btn--office {
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  padding: 3px 6px 4px;
  cursor: pointer;
}

.panel-nav-btn--office.panel-nav-btn--active .panel-nav-btn__label {
  color: var(--accent);
}

.panel-nav-foot {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  padding-left: 8px;
  padding-bottom: max(0px, calc(env(safe-area-inset-bottom) - 2px));
  transform: translateY(5px);
}

.panel-nav-foot--release {
  display: block;
}

.panel-partner-stats--office {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 25%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  padding-right: 6px;
  padding-left: 2px;
  padding-bottom: max(0px, calc(env(safe-area-inset-bottom) - 2px));
  transform: translateY(5px);
  pointer-events: none;
}

.panel-partner-stats.hidden {
  display: none;
}

.panel-nav-money {
  display: inline-flex;
  align-items: baseline;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.panel-nav-money__sym {
  font-size: 0.68em;
  font-weight: 800;
  margin-right: 3px;
  transform: translateY(-0.05em);
}

.panel-nav-money--credit .panel-nav-money__sym,
.panel-nav-money--credit .panel-nav-money__amt {
  color: #16a34a;
}

.panel-nav-money--balance .panel-nav-money__sym,
.panel-nav-money--balance .panel-nav-money__amt {
  color: #dc2626;
}

.panel-nav-btn--active {
  color: var(--accent);
  font-weight: 700;
  border-top-color: var(--accent);
}

.panel-nav-office-total {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #111;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.panel-nav-office-total__sym {
  font-size: 0.68em;
  font-weight: 800;
  color: #111;
  margin-right: 4px;
  transform: translateY(-0.05em);
}

.panel-nav-office-total__amt {
  font-size: 1em;
  font-weight: 800;
  color: #111;
}

.panel-nav-office-total.hidden {
  display: none;
}

.panel-nav-btn--office .panel-nav-btn__label {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.panel-nav-badge-slot {
  display: none;
}

.panel-release-strip {
  position: static;
  transform: none;
  flex: 0 0 auto;
}

.ss-panel-badge--release {
  font-size: 7px;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.01em;
  opacity: 0.45;
  line-height: 1.2;
}

.panel-office {
  padding-top: 0;
}

.panel-office-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 5px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.panel-office-header__lead {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.panel-office-header__count-num {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.15;
  color: #111827;
}

.panel-office-header__count-num--active {
  color: var(--accent);
}

.panel-office-header__count-num.hidden {
  display: none;
}

.panel-office-header__stages {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  min-width: 0;
}

.panel-office-nav-tab {
  border: none;
  background: none;
  padding: 4px 0;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.panel-office-nav-tab--all {
  flex: 0 0 auto;
  padding-right: 2px;
}

.panel-office-nav-tab--all .panel-office-nav-tab__brand {
  font-size: 14px;
  letter-spacing: 0.05em;
}

.panel-office-nav-tab__brand {
  display: inline-block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: none;
  font-variant: normal;
}

.panel-office-nav-tab:not(.panel-office-nav-tab--active) .panel-office-nav-tab__brand {
  color: var(--muted);
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.panel-office-nav-tab--active .panel-office-nav-tab__brand {
  color: var(--accent);
  text-shadow: none;
}

@media (max-width: 380px) {
  .panel-office-nav-tab__brand {
    font-size: 14px;
    letter-spacing: 0.07em;
  }

  .panel-office-nav-tab--all .panel-office-nav-tab__brand {
    font-size: 12px;
  }

  .panel-office-header__count-num {
    font-size: 13px;
  }
}

.flip-office-when {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: 0.02em;
}

.flip-office-when__num {
  color: #7c4a03;
}

.flip-office-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
  min-width: 0;
}

.flip-office-title-row .flip-office-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flip-office-site-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  flex-shrink: 0;
}

.flip-office-site-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.flip-office-site--tx .flip-office-site-label {
  color: #15803d;
}

.flip-office-site--nj .flip-office-site-label {
  color: #c2410c;
}

.flip-office-site--tx .flip-office-code-badge {
  border-color: #14532d;
  background: #166534;
  color: #ecfdf5;
}

.flip-office-site--nj .flip-office-code-badge {
  border-color: #9a3412;
  background: #ea580c;
  color: #fff7ed;
}

.flip-office-code-badge {
  flex: 0 0 auto;
  flex-shrink: 0;
  align-self: center;
  padding: 3px 9px;
  border: 1.5px solid #14532d;
  border-radius: 6px;
  background: #166534;
  color: #ecfdf5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.flip-won-ledger--office {
  margin-top: 6px;
}

.flip-row--office .flip-won-ledger--office {
  margin-top: 4px;
}

.flip-row--office .flip-meta--office {
  margin-top: 2px;
}

.flip-row--office .flip-photo--office {
  width: 64px;
  height: 64px;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
}

.flip-row--office .flip-photo--office img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}

.flip-row--office .flip-photo--office.flip-photo--empty {
  background: transparent;
}

@media (max-width: 380px) {
  .flip-detail--office .flip-won-ledger--office .flip-won-ledger__label {
    font-size: 8px;
  }
  .flip-detail--office .flip-won-ledger--office .flip-won-ledger__value {
    font-size: 10px;
  }
  .flip-detail--office .flip-won-ledger--office .flip-won-ledger__value--result {
    font-size: 11px;
  }
}

.flip-office-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px 10px;
  margin: 0;
  min-height: 0;
}

.flip-office-foot .flip-meta--office {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.flip-meta.flip-meta--office {
  font-size: 13.5px;
  line-height: 1.3;
  gap: 3px 5px;
  color: var(--text);
}

.flip-meta--office .flip-meta-lot,
.flip-meta--office .flip-meta-vin {
  color: var(--text);
}

.flip-meta--office .flip-meta-vin {
  font-size: 13.5px;
  letter-spacing: 0.03em;
}

.flip-office-bid {
  flex: 0 0 auto;
  align-self: flex-end;
  margin-left: auto;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.flip-office-bid__sym {
  color: var(--text);
}

.flip-office-bid__amt {
  color: #16a34a;
}

.flip-office-bid--estimate .flip-office-bid__approx,
.flip-office-bid--estimate .flip-office-bid__sym,
.flip-office-bid--estimate .flip-office-bid__amt {
  color: #9333ea;
}

.flip-office-bid__approx {
  margin-right: 3px;
  font-weight: 800;
}

.flip-won-ledger__value--estimate {
  color: #9333ea !important;
}

.flip-detail--office {
  padding-bottom: 8px;
}

.flip-office-back-loading {
  padding: 12px 0;
  text-align: center;
}

.flip-office-back-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 6px;
}

.flip-office-back-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flip-office-back-max {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.flip-office-back-max strong {
  color: var(--text);
  font-weight: 800;
}

.flip-office-back-pills {
  margin: 0 0 8px;
}

.flip-detail--office .panel-lot-specs {
  margin-bottom: 12px;
}

.flip-detail--office .flip-won-ledger--office {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto;
  column-gap: 0;
  row-gap: 0;
  align-items: end;
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border, #e2e8f0);
  width: 100%;
  box-sizing: border-box;
}

.flip-detail--office .flip-won-ledger--office .flip-won-ledger__col {
  min-width: 0;
  text-align: center;
}

.flip-detail--office .flip-won-ledger--office .flip-won-ledger__label {
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flip-detail--office .flip-won-ledger--office .flip-won-ledger__value {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flip-detail--office .flip-won-ledger--office .flip-won-ledger__value--result {
  font-size: 13px;
}

.flip-office-api-fields {
  margin-top: 4px;
  max-height: none;
}

.flip-detail--office .panel-lot-field {
  font-size: 11px;
}

.flip-detail--office .panel-lot-field-label {
  font-size: 10px;
}

.panel-nav-btn--disabled {
  opacity: 0.38;
  pointer-events: none;
  cursor: default;
}

.panel-subnav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -8px -16px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.panel-subnav .panel-nav-btn {
  padding: 8px 2px 7px;
}

.panel-nav-badge {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 13px;
  height: 13px;
  padding: 0 2px;
  border-radius: 7px;
  background: var(--danger);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
  pointer-events: none;
}

/* —— Поиск на вкладке «Лоты»: тонкие линии, без плиток —— */

.panel-search-screen {
  margin: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-search-block {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-wizard-head {
  margin-bottom: 8px;
}

.panel-wizard-head-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.panel-wizard-head-top .panel-search-section-label {
  margin: 0;
}

.panel-wizard-change-vehicle {
  flex-shrink: 0;
  font-size: 12px;
}

.panel-wizard-vehicle-summary {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted, #6b7280);
}

.panel-wizard-step[hidden] {
  display: none !important;
}

.panel-search-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-search-block:last-of-type .panel-damage-block {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}

.panel-search-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 2px;
}

.panel-search-action-upper {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.panel-vin-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.panel-vin-row input {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 76px);
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 7px 0 8px;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}

.panel-vin-row input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.panel-inline-find {
  flex: 0 0 auto;
  border: none;
  background: none;
  color: #5c6672;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 0 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.panel-inline-find:active {
  color: var(--accent);
}

.panel-vin-spacer {
  height: 6px;
}

.panel-year-picker {
  position: relative;
  margin-bottom: 6px;
}

.panel-year-picker label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1px;
  line-height: 1.2;
}

.panel-year-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 4px 0 4px;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.2;
}

.panel-year-picker__trigger[aria-expanded="true"] {
  border-bottom-color: var(--accent);
}

.panel-year-picker__value {
  font-weight: 600;
}

.panel-year-picker__chev {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  margin-left: 8px;
}

.panel-year-picker__drop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(16, 42, 74, 0.1);
}

.panel-year-picker__scroll {
  max-height: calc(36px * 8);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.panel-year-picker__scroll::-webkit-scrollbar {
  display: none;
}

.panel-year-picker__item {
  display: block;
  width: 100%;
  height: 36px;
  line-height: 36px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.panel-year-picker__item.is-selected {
  color: var(--accent);
  font-weight: 700;
}

.panel-year-picker__expand {
  display: block;
  width: 100%;
  height: 32px;
  line-height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.panel-year-picker__hint {
  pointer-events: none;
  text-align: center;
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  padding: 4px 0 6px;
  background: linear-gradient(to bottom, transparent, var(--bg) 70%);
}

.panel-year-picker__hint--up {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding-top: 6px;
  background: linear-gradient(to bottom, var(--bg) 40%, transparent);
}

.panel-year-picker__hint--down {
  margin-top: -28px;
  position: relative;
  z-index: 1;
}

.panel-frequent-block {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.panel-frequent-heading {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.panel-frequent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.panel-frequent-line {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  padding: 2px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.panel-frequent-line.is-selected {
  color: var(--accent);
  font-weight: 700;
}

.panel-frequent-line:active {
  opacity: 0.75;
}

.panel-frequent-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  padding-bottom: 5px;
  flex-shrink: 0;
}

.panel-frequent-batch-btn {
  padding: 4px 0;
}

.panel-frequent-batch-btn.is-disabled,
.panel-frequent-batch-btn:disabled {
  opacity: 0.32;
  pointer-events: none;
  cursor: default;
}

.panel-search-lead {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.panel-search-section-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-search-status {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  min-height: 1em;
}

.panel-line-field {
  margin-bottom: 12px;
}

.panel-line-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2px;
}

.panel-line-field input,
html.panel-search-locked,
html.panel-search-locked body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.panel-search-locked #app {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.panel-line-field select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 7px 0 8px;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}

.panel-line-field input:focus,
.panel-line-field select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.panel-line-field--vin input {
  font-size: 17px;
  letter-spacing: 0.02em;
}

.panel-line-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}

.panel-line-row--vehicle-type {
  grid-template-columns: 1fr;
  margin-bottom: 8px;
}

.panel-line-row--pair,
.panel-line-row--years {
  margin-bottom: 8px;
}

.panel-line-row .panel-line-field,
.panel-line-row .panel-year-picker {
  margin-bottom: 0;
  min-width: 0;
}

.panel-line-row .panel-line-field label {
  margin-bottom: 1px;
  line-height: 1.2;
}

.panel-line-row .panel-line-field select {
  padding: 4px 0 4px;
  line-height: 1.2;
}

.panel-inline-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 4px 0 5px;
}

.panel-inline-checks label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.panel-inline-checks input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
}

.panel-damage-block {
  margin-top: 2px;
}

.panel-frequent-empty {
  margin: 0;
  padding: 4px 0 2px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: var(--muted);
}

.panel-damage-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.panel-states-block {
  margin: 10px 0 8px;
}

.panel-states-hint {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.panel-states-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 0 0 8px;
}

.panel-states-action {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel-states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 6px 8px;
  max-height: min(220px, 36vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 8px;
  border: 1px solid var(--border, #d5dbe3);
  border-radius: 8px;
  background: #fafbfc;
  margin: 0 0 4px;
  overscroll-behavior: contain;
}

.panel-states-grid .ss-state-item {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text);
}

.panel-states-grid input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
}

.panel-text-action {
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.panel-text-action--primary {
  color: var(--accent);
  font-weight: 700;
}

.panel-lots-empty {
  padding: 20px 0 8px;
  text-align: center;
}

.panel-lots-header {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.panel-lots-header__found {
  justify-self: start;
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  min-width: 0;
}

.panel-lots-header__found strong {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  color: #111827;
}

.panel-lots-found__label {
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.panel-lots-header__auctions {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}

.panel-lots-header__search {
  justify-self: end;
  border: none;
  background: none;
  padding: 2px 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.panel-lots-header__search-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: lowercase;
}

.panel-text-outline {
  color: var(--bg);
}

.panel-text-outline--nav {
  text-shadow:
    -1px -1px 0 var(--muted),
     0   -1px 0 var(--muted),
     1px -1px 0 var(--muted),
    -1px  0   0 var(--muted),
     1px  0   0 var(--muted),
    -1px  1px 0 var(--muted),
     0    1px 0 var(--muted),
     1px  1px 0 var(--muted);
}

.panel-text-outline--copart {
  text-shadow:
    -1px -1px 0 #1a5fb4,
     0   -1px 0 #1a5fb4,
     1px -1px 0 #1a5fb4,
    -1px  0   0 #1a5fb4,
     1px  0   0 #1a5fb4,
    -1px  1px 0 #1a5fb4,
     0    1px 0 #1a5fb4,
     1px  1px 0 #1a5fb4;
}

.panel-text-outline--iaai {
  text-shadow:
    -1px -1px 0 #c0392b,
     0   -1px 0 #c0392b,
     1px -1px 0 #c0392b,
    -1px  0   0 #c0392b,
     1px  0   0 #c0392b,
    -1px  1px 0 #c0392b,
     0    1px 0 #c0392b,
     1px  1px 0 #c0392b;
}

.panel-lots-nav-auctions--loading .panel-lots-nav-tab {
  opacity: 0.55;
  pointer-events: none;
}

.panel-lots-nav-tab {
  border: none;
  background: none;
  padding: 4px 2px;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.panel-lots-nav-tab__brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.panel-lots-nav-mid-count {
  flex: 0 0 auto;
  min-width: 1.25em;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
}

.panel-lots-nav-mid-count--copart {
  color: #1a5fb4;
}

.panel-lots-nav-mid-count--iaai {
  color: #c0392b;
}

.panel-lots-nav-tab--copart:not(.panel-lots-nav-tab--active) .panel-lots-nav-tab__brand {
  color: var(--bg);
  -webkit-text-stroke: 0;
  text-shadow:
    -1px -1px 0 #1a5fb4,
     0   -1px 0 #1a5fb4,
     1px -1px 0 #1a5fb4,
    -1px  0   0 #1a5fb4,
     1px  0   0 #1a5fb4,
    -1px  1px 0 #1a5fb4,
     0    1px 0 #1a5fb4,
     1px  1px 0 #1a5fb4;
}

.panel-lots-nav-tab--copart.panel-lots-nav-tab--active .panel-lots-nav-tab__brand {
  color: #1a5fb4;
  text-shadow: none;
}

.panel-lots-nav-tab--iaai:not(.panel-lots-nav-tab--active) .panel-lots-nav-tab__brand {
  color: var(--bg);
  -webkit-text-stroke: 0;
  text-shadow:
    -1px -1px 0 #c0392b,
     0   -1px 0 #c0392b,
     1px -1px 0 #c0392b,
    -1px  0   0 #c0392b,
     1px  0   0 #c0392b,
    -1px  1px 0 #c0392b,
     0    1px 0 #c0392b,
     1px  1px 0 #c0392b;
}

.panel-lots-nav-tab--iaai.panel-lots-nav-tab--active .panel-lots-nav-tab__brand {
  color: #c0392b;
  text-shadow: none;
}

.panel-split-summary {
  margin: 14px 8px 6px;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel, var(--bg));
  text-align: left;
}

.panel-split-summary__line {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
}

.panel-split-summary__line:last-child {
  margin-bottom: 0;
}

.panel-split-summary__line--emph {
  font-weight: 600;
  color: var(--accent);
}

.panel-split-summary__hint {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

/* —— Search flip (form ↔ results) + feed line —— */

.search-flip {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  perspective: 1100px;
}

.search-flip__inner {
  flex: 1;
  min-height: 0;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.search-flip--open .search-flip__inner {
  transform: rotateY(180deg);
}

.search-flip__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--bg);
}

.search-flip__face--back {
  transform: rotateY(180deg);
}

.search-flip__scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.search-flip__scroll .panel-flip-list,
.search-flip__scroll .lot-flip,
.search-flip__scroll .flip-detail {
  min-width: 0;
  max-width: 100%;
}

.search-flip__scroll .flip-gallery,
.search-flip__scroll .flip-gallery-strip {
  max-width: 100%;
}

.search-flip__scroll--solo .lot-flip--open {
  max-width: 100%;
}

.search-flip__scroll--solo .lot-flip--open .flip-detail-row strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.panel-feed-slot {
  flex-shrink: 0;
  padding: 0 0 8px;
  transition: padding 0.2s ease;
}

.panel-feed-slot--filled {
  padding-bottom: 10px;
}

.panel-feed-slot--empty {
  padding: 0;
  height: 0;
  overflow: hidden;
}

.panel-feed-line {
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  transition: min-height 0.2s ease, padding 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.panel-feed-line:not(.panel-feed-line--empty) {
  min-height: 40px;
  padding: 10px 0;
  border-color: rgba(26, 95, 180, 0.22);
  background: rgba(26, 95, 180, 0.06);
}

.panel-feed-line--success:not(.panel-feed-line--empty) {
  border-color: rgba(26, 143, 92, 0.4);
  background: rgba(26, 143, 92, 0.08);
}

.panel-feed-line--warn:not(.panel-feed-line--empty) {
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.07);
}

.panel-feed-line--event:not(.panel-feed-line--empty) {
  border-color: rgba(26, 95, 180, 0.35);
  background: rgba(26, 95, 180, 0.1);
}

.panel-feed-line__viewport {
  overflow: hidden;
  width: 100%;
}

.panel-feed-line__track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 3rem;
  padding: 0 12px;
  font-weight: 600;
}

.panel-feed-line--marquee .panel-feed-line__track {
  animation: panel-feed-marquee 16s linear infinite;
}

.panel-feed-line:not(.panel-feed-line--marquee) .panel-feed-line__track {
  display: flex;
  justify-content: center;
  width: 100%;
  animation: none;
}

.panel-feed-line:not(.panel-feed-line--marquee) .panel-feed-line__text--dup {
  display: none;
}

@keyframes panel-feed-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.panel-feed-typewriter {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.panel-feed-typewriter__cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--accent);
  opacity: 0;
  vertical-align: -0.12em;
}

.panel-feed-typewriter__cursor--on {
  opacity: 1;
  animation: panel-feed-cursor-blink 1s step-end infinite;
}

@keyframes panel-feed-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.panel-feed-line--typing:not(.panel-feed-line--empty) {
  border-color: rgba(26, 95, 180, 0.35);
  background: rgba(26, 95, 180, 0.1);
}

.flip-vin {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.25;
  color: var(--muted);
}

.flip-vin-label {
  font-weight: 500;
}

.flip-vin-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.flip-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 3px;
  margin: 1px 0 4px;
  max-width: 100%;
  font-size: 9px;
  line-height: 1.25;
  color: var(--muted);
}

.flip-meta-item {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flip-meta-auction {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.flip-meta-auction--copart {
  color: #1a5fb4;
}

.flip-meta-auction--iaai {
  color: #c0392b;
}

.flip-meta-lot {
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.flip-meta-vin {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  flex: 1 1 6.5rem;
  min-width: 0;
}

.flip-meta-sep {
  flex-shrink: 0;
  opacity: 0.45;
  font-weight: 700;
}

.panel-found-line {
  margin: 8px 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.hidden { display: none !important; }

.panel-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px var(--shadow);
}

.panel-card h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

.panel-muted {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
}

.panel-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.panel-field span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.panel-field input,
.panel-field select,
.panel-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.panel-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.panel-btn--primary {
  background: var(--accent);
  color: #fff;
}

.panel-btn--secondary {
  background: #e8ecf2;
  color: var(--text);
}

.panel-btn--block {
  width: 100%;
}

.panel-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
}

.panel-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ——— Flip list (minimal text rows) ——— */
.panel-flip-list {
  margin: 0 -4px 8px;
}

.panel-flip-list--solo .lot-flip:not(.lot-flip--open) {
  display: none;
}

.panel-screen--flip-solo .panel-subnav,
.panel-screen--flip-solo .panel-found-line {
  display: none;
}

.lot-flip {
  position: relative;
  border-bottom: 1px solid var(--border);
  -webkit-tap-highlight-color: transparent;
}

.lot-flip:last-child {
  border-bottom: none;
}

.lot-flip__face {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.lot-flip__face--front {
  padding: 13px 4px;
  cursor: pointer;
}

.lot-flip__face--back {
  padding: 0 4px 14px;
  cursor: pointer;
  animation: flip-unfold 0.3s ease;
  transform-origin: top center;
}

@keyframes flip-unfold {
  from {
    opacity: 0;
    transform: perspective(900px) rotateX(-14deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lot-flip--open {
  border-bottom-color: transparent;
  padding-bottom: 2px;
}

.flip-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.flip-row--search {
  display: block;
  position: relative;
}

.flip-search-grid {
  display: grid;
  grid-template-columns: 76px repeat(3, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 8px;
  width: 100%;
  align-items: start;
}

.flip-search-grid__photo {
  grid-column: 1;
  grid-row: 1;
}

.flip-search-grid__info {
  grid-column: 2 / -1;
  grid-row: 1;
  min-width: 0;
}

.flip-search-ledger__col--buynow {
  grid-column: 1;
  grid-row: 2;
  text-align: center;
}

.flip-search-ledger__col--current {
  grid-column: 2;
  grid-row: 2;
}

.flip-search-ledger__col--mileage {
  grid-column: 3;
  grid-row: 2;
}

.flip-search-ledger__col--damage {
  grid-column: 4;
  grid-row: 2;
}

.flip-search-stats {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 76px repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: end;
  width: 100%;
}

.flip-search-stats__label {
  grid-row: 1;
  align-self: end;
  min-width: 0;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flip-search-stats__label--buynow {
  display: none;
}

.flip-search-stats__buynow {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: end;
  justify-self: center;
  width: 100%;
  max-width: 76px;
  margin: 0;
  padding: 3px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
  line-height: 1.1;
}

.flip-search-stats__buynow-text {
  display: block;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: normal;
  word-break: break-word;
}

.flip-search-stats__buynow-price {
  display: block;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.flip-search-stats__label--bid {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.1;
}

.flip-search-stats__bid-line {
  display: block;
}

.flip-search-stats__label--mileage {
  grid-column: 3;
}

.flip-search-stats__label--damage {
  grid-column: 4;
}

.flip-search-stats__value {
  grid-row: 2;
  align-self: start;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flip-search-stats__value--buynow {
  display: none;
}

.flip-search-stats__value--bid {
  grid-column: 2;
  font-size: 14px;
  font-weight: 800;
  color: #166534;
}

.flip-search-stats__value--mileage {
  grid-column: 3;
}

.flip-search-stats__value--damage {
  grid-column: 4;
}

.flip-search-stats--no-buynow .flip-search-stats__label--bid,
.flip-search-stats--no-buynow .flip-search-stats__value--bid {
  grid-column: 2;
}

.flip-search-stats--no-buynow .flip-search-stats__label--mileage,
.flip-search-stats--no-buynow .flip-search-stats__value--mileage {
  grid-column: 3;
}

.flip-search-stats--no-buynow .flip-search-stats__label--damage,
.flip-search-stats--no-buynow .flip-search-stats__value--damage {
  grid-column: 4;
}

.lot-flip--search .lot-flip__face--front {
  padding: 6px 4px;
}

.lot-flip--search .flip-search-identity {
  margin-bottom: 4px;
}

.lot-flip--search .flip-line2--search {
  margin-bottom: 4px;
}

.lot-flip--search .flip-search-grid {
  row-gap: 4px;
}

.lot-flip--search .flip-title--search {
  margin-bottom: 2px;
}

.lot-flip--search .flip-search-stats {
  row-gap: 2px;
}

.flip-search-identity {
  margin-bottom: 8px;
  min-width: 0;
}

.flip-title--search {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.flip-search-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.flip-search-lot__num {
  flex: 0 0 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--muted);
  white-space: nowrap;
}

.flip-search-vin-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 62%;
  justify-content: flex-end;
  transform: translateX(-3px);
}

.flip-search-vin-label {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.flip-search-vin__code {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flip-cd-num {
  color: #c62828;
  font-weight: 800;
}

.flip-line2--search {
  margin-bottom: 8px;
}

.flip-search-auction-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.flip-search-auction-time .flip-time-slot {
  flex: 1 1 auto;
  min-width: 0;
}

.flip-search-auction-time .flip-badge--auction {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
}

.flip-search-auction-time .flip-countdown,
.flip-search-auction-time .flip-badge {
  display: inline-block;
  vertical-align: middle;
}

.flip-prices--search {
  margin-bottom: 8px;
}

.flip-media {
  width: 76px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 76px;
}

.flip-media__slot {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 0 4px;
  min-height: 0;
}

.flip-media__buynow-price {
  display: block;
  width: 100%;
  max-width: 76px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  color: #166534;
}

.flip-media__slot .flip-badge--buynow {
  color: #166534;
  border-color: rgba(22, 101, 52, 0.45);
  background: rgba(22, 101, 52, 0.1);
}

.flip-media__badge {
  display: block;
  width: 100%;
  max-width: 76px;
  text-align: center;
  font-size: 8px;
  padding: 3px 2px;
  line-height: 1.15;
  white-space: normal;
  word-break: break-word;
  align-self: center;
}

.flip-photo {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #dce3eb;
}

.flip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flip-photo--empty {
  background: linear-gradient(145deg, #e2e8ef, #d0d8e2);
}

.flip-body {
  flex: 1;
  min-width: 0;
}

.flip-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.flip-sale-when {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.flip-line2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.flip-prices {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 12px;
}

.flip-metric--buynow {
  flex: 1 1 100%;
  order: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(180, 83, 9, 0.1);
  border: 1px solid rgba(180, 83, 9, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.flip-metric--buynow .flip-value--buynow {
  color: #b45309;
  font-weight: 700;
}

.flip-metric--buynow .panel-text-action {
  margin-left: auto;
  font-size: 12px;
}

.flip-prices .flip-metric {
  flex: 1;
  min-width: 0;
}

.flip-won-ledger {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px 4px;
  align-items: start;
  margin-top: 2px;
}

.flip-won-ledger__col {
  min-width: 0;
  text-align: left;
}

.flip-won-ledger__label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flip-won-ledger__value {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
}

.flip-won-ledger__value--result {
  color: var(--accent, #1a5fb4);
  font-size: 12px;
}

@media (max-width: 380px) {
  .flip-won-ledger__label {
    font-size: 8px;
  }
  .flip-won-ledger__value {
    font-size: 10px;
  }
}

.flip-time-slot {
  flex: 1;
  min-width: 0;
}

.flip-badge--done {
  color: #475569;
  border-color: rgba(71, 85, 105, 0.35);
  background: rgba(71, 85, 105, 0.08);
  font-size: 10px;
}

.flip-badge--won {
  color: #166534;
  border-color: rgba(22, 101, 52, 0.45);
  background: #dcfce7;
  font-size: 10px;
  font-weight: 800;
}

.flip-badge--session-live {
  color: #166534;
  border-color: rgba(22, 101, 52, 0.45);
  background: #dcfce7;
  font-size: 10px;
  font-weight: 800;
}

.flip-badge--live {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.45);
  background: rgba(251, 191, 36, 0.14);
  font-size: 10px;
  font-weight: 800;
}

.flip-badge--queue {
  color: #0369a1;
  border-color: rgba(3, 105, 161, 0.35);
  background: rgba(14, 165, 233, 0.1);
  font-size: 10px;
  font-weight: 700;
}

.flip-badge--iaai {
  color: #6d28d9;
  border-color: rgba(109, 40, 217, 0.35);
  background: rgba(167, 139, 250, 0.12);
  font-size: 10px;
  font-weight: 700;
}

.flip-countdown {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.flip-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.flip-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  align-self: flex-start;
}

.flip-badge--bid {
  color: var(--accent);
  border-color: rgba(26, 95, 180, 0.35);
  background: rgba(26, 95, 180, 0.06);
}

.flip-badge--track {
  color: #9a6b00;
  border-color: rgba(154, 107, 0, 0.35);
  background: rgba(255, 246, 230, 0.9);
}

.flip-badge--carkit {
  color: #7c4a03;
  border-color: rgba(180, 120, 26, 0.35);
  background: rgba(245, 158, 11, 0.1);
}

.flip-badge--copart {
  color: #1a5fb4;
  border-color: rgba(26, 95, 180, 0.3);
}

.flip-badge--iaai:not(.flip-badge--auction) {
  color: #6d28d9;
  border-color: rgba(109, 40, 217, 0.35);
  background: rgba(167, 139, 250, 0.12);
}

.flip-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flip-metric--right {
  align-items: flex-end;
  text-align: right;
}

.flip-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.flip-value--accent {
  font-size: 15px;
  color: var(--accent);
}

.flip-value--pending {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.flip-value--await-final {
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
}

.panel-bid-block__val--await-final {
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
}

.lot-flip--open .flip-photo {
  width: 88px;
  height: 88px;
}

.flip-detail {
  padding-top: 2px;
}

.flip-detail-media {
  position: relative;
  margin: 0 0 8px;
}

.flip-detail-share-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.flip-detail-share-icon:active {
  opacity: 0.82;
}

.flip-detail-share-icon__svg {
  display: block;
}

.flip-detail-spec {
  padding: 0 2px 6px;
}

.flip-detail-spec__line {
  margin: 0 0 6px;
}

.flip-detail-spec__line--title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.flip-detail-spec__vehicle {
  flex: 1 1 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.flip-detail-spec__line--meta {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.flip-detail-spec__line--meta .flip-search-lot__num,
.flip-detail-spec__line--meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.flip-detail-spec__line--loc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text);
}

.flip-detail-offsite {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.flip-detail-offsite__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.flip-detail-offsite--copart {
  color: #1a5fb4;
}

.flip-detail-offsite--copart .flip-detail-offsite__dot {
  background: #1a5fb4;
}

.flip-detail-offsite--iaai {
  color: #c0392b;
}

.flip-detail-offsite--iaai .flip-detail-offsite__dot {
  background: #c0392b;
}

.flip-detail-spec__row {
  display: grid;
  grid-template-columns: minmax(0, 42%) 1fr;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
}

.flip-detail-spec__label {
  font-size: 9px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
}

.flip-detail-spec__value {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.flip-gallery {
  margin: 0;
}

.flip-gallery-view {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #e8ecf2;
  aspect-ratio: 4 / 3;
  margin-bottom: 4px;
}

.flip-gallery-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}

.flip-gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.flip-gallery-main.is-hd {
  object-fit: contain;
  background: #0a0a0a;
}

.flip-gallery-spinner {
  position: absolute;
  inset: auto 0 12px 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  pointer-events: none;
}

.flip-gallery-spinner.hidden { display: none; }

.flip-gallery-nav {
  position: absolute;
  bottom: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.flip-gallery-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.flip-gallery-nav--prev { left: 10px; }
.flip-gallery-nav--next { right: 10px; }

.flip-gallery-back {
  display: none;
}

.flip-row--search .flip-body {
  min-width: 0;
}

.flip-body--search .flip-body__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.flip-body--search .flip-body__head-main {
  flex: 1;
  min-width: 0;
}

.flip-body--search .flip-body__head .flip-title {
  margin: 0;
}

.flip-body--search .flip-badge--auction {
  flex-shrink: 0;
  margin-top: 1px;
}

.flip-badge--auction.flip-badge--copart {
  color: #1a5fb4;
  border-color: rgba(26, 95, 180, 0.35);
  background: rgba(26, 95, 180, 0.08);
}

.flip-badge--auction.flip-badge--iaai {
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.08);
}

.flip-row--search .flip-meta {
  margin-top: 2px;
}

.flip-row--search .flip-meta-item {
  overflow: visible;
  text-overflow: clip;
}

.flip-row--search .flip-meta-vin {
  flex: 1 1 100%;
  font-size: 8px;
  letter-spacing: 0;
  white-space: nowrap;
  word-break: normal;
}

.flip-row--search .flip-sale-when {
  display: none;
}

.panel-search-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px 24px;
  margin-top: 4px;
}

.panel-search-pager__btn {
  font: 700 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.panel-search-pager__btn--prev {
  color: var(--muted);
}

.panel-search-pager__btn--prev:not(.is-disabled) {
  color: var(--accent);
}

.panel-search-pager__btn.is-disabled {
  color: #c5cad3;
  cursor: default;
  pointer-events: none;
}

.panel-search-pager__btn.is-busy {
  opacity: 0.45;
  pointer-events: none;
}

/* legacy strip/lightbox — не используется в panel 99 */
.flip-gallery-head,
.flip-gallery-strip,
.flip-gallery-thumb,
.flip-gallery-lightbox,
body.flip-gallery-open {
  display: none !important;
}

.flip-detail-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.flip-detail-sale-when {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.flip-detail-sale-when__label {
  color: var(--muted);
  font-weight: 500;
}

.flip-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.flip-detail-row span {
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}

.flip-detail-row strong {
  text-align: right;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.flip-detail-block {
  margin-top: 12px;
  padding-top: 4px;
}

.flip-detail-block .panel-search-section-label {
  margin-bottom: 8px;
}

.flip-detail .panel-text-action {
  margin-top: 12px;
  padding: 0;
}

.flip-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
  padding-top: 2px;
}

.flip-detail-share {
  margin-top: 14px;
}

.flip-detail-share .panel-share-btn {
  width: 100%;
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 0;
  margin-top: 0;
  background: var(--panel);
  color: var(--accent);
  font-weight: 700;
  font-size: 10px;
  padding: 10px 8px 9px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.flip-detail-share .panel-share-btn:active {
  background: rgba(26, 95, 180, 0.08);
}

.lot-flip-calc-result {
  padding: 8px 0;
  font-size: 14px;
  background: transparent;
  border: none;
}

.lot-flip-calc-result strong {
  font-size: 18px;
  color: var(--ok);
}

.badge-auction {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  color: #fff;
}
.badge-auction.copart { background: #1a5fb4; }
.badge-auction.iaai { background: #c62828; }

/* ——— Lot overlay ——— */
.panel-lot-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 60;
  background: var(--bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--header-h) + env(safe-area-inset-top)) 0 calc(var(--nav-h) + env(safe-area-inset-bottom));
}

html.panel-lot-open .panel-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
}

html.panel-lot-open .panel-lot-overlay {
  top: calc(var(--header-h) + env(safe-area-inset-top));
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-top: 0;
  padding-bottom: 12px;
}

body.panel-lot-open .panel-lot-overlay {
  top: calc(var(--header-h) + env(safe-area-inset-top));
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-top: 0;
  padding-bottom: 12px;
}

.panel-lot-overlay .panel-lot-inner {
  padding: 12px;
}

.panel-lot-hero img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: #0d1117;
  border-radius: 12px;
}

.panel-status-sold {
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ecfdf3, #bbf7d0);
  border: 2px solid #22c55e;
  color: #14532d;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.panel-apps-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  min-height: 88px;
  align-items: flex-start;
}

.panel-apps-body--tap:active {
  opacity: 0.92;
}

.panel-app--waiting { border-left: 4px solid #f59e0b; }
.panel-app--ok { border-left: 4px solid var(--ok); }
.panel-app--lost { border-left: 4px solid var(--danger); opacity: 0.92; }
.panel-app--progress { border-left: 4px solid var(--accent); }

.panel-apps-body { flex: 1; min-width: 0; }

.panel-apps-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.panel-apps-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.panel-app-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.panel-app-badge--for_review { background: #fef3c7; color: #92400e; }
.panel-app-badge--accepted { background: #dbeafe; color: #1d4ed8; }
.panel-app-badge--in_progress { background: #e0e7ff; color: #3730a3; }
.panel-app-badge--won { background: #dcfce7; color: #166534; }
.panel-app-badge--lost { background: #fee2e2; color: #991b1b; }
.panel-app-badge--cancelled { background: #f1f5f9; color: #64748b; }

.panel-app-outcome {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.panel-app--lost .panel-app-outcome { color: var(--danger); }
.panel-app--ok.panel-app--ok .panel-app-outcome,
.panel-apps-card.panel-app--ok .panel-app-outcome { color: var(--ok); }

.panel-account-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #1a5fb4 0%, #2563eb 100%);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(26, 95, 180, 0.25);
}

.panel-account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}

.panel-account-name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.panel-account-intro .panel-muted {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 13px;
}

.panel-account-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 14px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.panel-account-filters::-webkit-scrollbar { display: none; }

.panel-chip {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
}

.panel-chip.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.panel-apps-body--tap {
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.panel-loading {
  text-align: center;
  padding: 24px 12px;
}

.panel-lot-gallery--single img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: #0d1117;
  border-radius: 12px;
}

.panel-apps-list { margin-bottom: 8px; }

.panel-logout-btn { margin-top: 8px; min-height: 48px; }

.panel-home-hero {
  padding: 28px 20px 24px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #1a5fb4 0%, #2563eb 100%);
  border-radius: 16px;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(26, 95, 180, 0.25);
}

.panel-home-brand {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.panel-home-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.panel-home-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-home-actions .panel-btn { min-height: 48px; }

.panel-apps-thumb {
  width: 96px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8ecf2;
  flex-shrink: 0;
}
.panel-apps-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-apps-thumb--scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}
.panel-apps-thumb--scroll::-webkit-scrollbar { display: none; }
.panel-apps-thumb--scroll img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  object-fit: cover;
}

.panel-apps-thumb--empty {
  background: linear-gradient(135deg, #e8ecf2, #d8dee8);
}

.panel-lot-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 10px;
  scrollbar-width: none;
}
.panel-lot-gallery::-webkit-scrollbar { display: none; }
.panel-lot-gallery img {
  flex: 0 0 88%;
  max-width: 420px;
  height: 220px;
  object-fit: contain;
  background: #0d1117;
  border-radius: 12px;
  scroll-snap-align: start;
}

.panel-more-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.panel-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
}

.panel-bets-active-empty {
  padding: 20px 16px;
  font-size: 13px;
}

.panel-bets-current-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-bets-folder + .panel-bets-folder {
  margin-top: 2px;
}

.panel-bets-settled {
  margin-top: 4px;
}

.panel-bets-settled__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 18px 0 0;
  padding: 6px 0;
  border: none;
  background: transparent;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.panel-bets-settled__rule {
  flex: 1;
  height: 1px;
  background: var(--border);
  opacity: 0.85;
}

.panel-bets-settled__label {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--muted);
}

.panel-bets-settled__chev {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
}

.panel-bets-settled__list {
  margin-top: 6px;
}

.panel-bets-settled__list.hidden {
  display: none;
}

.panel-history-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.panel-history-row:last-child { border-bottom: none; }

.panel-service-toast {
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top) + 6px);
  left: 12px;
  right: 12px;
  z-index: 200;
  max-width: 480px;
  margin: 0 auto;
  background: #1e293b;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.panel-service-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ss-panel-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.ss-panel-badge--nav {
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

/* ——— Расширенная карточка лота (как на сайте) ——— */

.flip-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.flip-detail-head-main {
  flex: 1;
  min-width: 0;
}

.flip-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.flip-badge--pure {
  color: #0d6e4f;
  border-color: rgba(13, 110, 79, 0.35);
  background: rgba(13, 110, 79, 0.08);
}

.flip-badge--buynow {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.35);
  background: rgba(180, 83, 9, 0.08);
}

/* Buy Now в карточке поиска — 1:1 как бейдж аукциона */
.flip-search-stats__buynow.flip-badge--buynow-copart {
  color: #1a5fb4;
  border-color: rgba(26, 95, 180, 0.35);
  background: rgba(26, 95, 180, 0.08);
}

.flip-search-stats__buynow.flip-badge--buynow-copart .flip-search-stats__buynow-text,
.flip-search-stats__buynow.flip-badge--buynow-copart .flip-search-stats__buynow-price {
  color: #1a5fb4;
}

.flip-search-stats__buynow.flip-badge--buynow-iaai {
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.08);
}

.flip-search-stats__buynow.flip-badge--buynow-iaai .flip-search-stats__buynow-text,
.flip-search-stats__buynow.flip-badge--buynow-iaai .flip-search-stats__buynow-price {
  color: #c0392b;
}

.panel-intent-box {
  flex-shrink: 0;
  width: 108px;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  padding: 6px 6px 5px;
  background: linear-gradient(180deg, rgba(26, 95, 180, 0.06) 0%, rgba(26, 95, 180, 0.02) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.panel-bid-block {
  margin: 0 0 12px;
  padding: 8px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
}

.panel-bid-block__title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent);
  margin-bottom: 6px;
  line-height: 1.2;
}

.panel-bid-block__track {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
}

.panel-track-btn.is-on {
  color: var(--accent);
  font-weight: 700;
}

.panel-register-dialog__err {
  margin: 8px 0 0;
  color: #b42318;
}

.panel-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  justify-content: space-between;
}

.panel-register-dialog .panel-field {
  display: block;
  margin: 0 0 10px;
}

.panel-register-dialog .panel-field span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}

.panel-register-dialog .panel-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border, #d5dbe3);
  border-radius: 8px;
  font: inherit;
}

.panel-bid-block__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.panel-bid-block__row .panel-text-action {
  flex: 1 1 0;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  padding: 4px 2px;
  text-align: center;
  white-space: normal;
}

.panel-bid-block__row .panel-text-action--primary {
  text-align: left;
}

.panel-bid-block__row .panel-text-action:last-child {
  text-align: right;
}

.panel-bid-block__price {
  flex: 0 1 auto;
  min-width: 88px;
  max-width: 42%;
  text-align: center;
  padding: 0 4px;
}

.panel-bid-block__label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.2;
  margin-bottom: 2px;
}

.panel-bid-block__val {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--ok);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.panel-bid-block__val--pending {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.panel-intent-box__title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent);
  margin-bottom: 5px;
  line-height: 1.2;
}

.panel-intent-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-intent-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 4px 4px 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.panel-intent-btn:active {
  transform: scale(0.97);
}

.panel-intent-btn--bid {
  border-color: rgba(26, 95, 180, 0.35);
}

.panel-intent-btn--bid .panel-intent-btn__ico {
  color: var(--accent);
}

.panel-intent-btn--carkit {
  border-color: rgba(100, 116, 139, 0.35);
}

.panel-intent-btn--carkit .panel-intent-btn__ico {
  color: #64748b;
}

.panel-intent-btn__label {
  font-size: 8px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--muted);
}

.panel-intent-btn__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.panel-prior-auctions {
  margin: 0 0 10px;
}

.panel-prior-auctions.hidden {
  display: none;
}

.panel-prior-auctions-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(217, 119, 6, 0.45);
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.12);
  color: #92400e;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.panel-prior-auctions-ico {
  font-size: 16px;
  flex-shrink: 0;
}

.panel-prior-auctions-text {
  flex: 1;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.panel-prior-auctions-cta {
  font-size: 10px;
  font-weight: 700;
  color: #b45309;
  white-space: nowrap;
}

.panel-lot-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.panel-lot-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--text);
  border: 1px solid var(--border);
}

.panel-lot-specs {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fafbfc;
}

.panel-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.35;
}

.panel-spec-row:last-child {
  border-bottom: none;
}

.panel-spec-row span {
  color: var(--muted);
  flex-shrink: 0;
}

.panel-spec-row strong {
  text-align: right;
  font-weight: 600;
  color: var(--text);
}

.panel-lot-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.panel-lot-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: 44px;
}

.panel-lot-field:nth-child(2n) {
  border-right: none;
}

.panel-lot-field-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.2;
}

.panel-lot-field-val {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
}

.panel-field-empty .panel-lot-field-val {
  color: var(--muted);
  font-weight: 500;
}

.panel-lot-seller {
  margin-bottom: 10px;
}

.panel-seller-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.panel-seller-name {
  font-size: 12px;
  font-weight: 600;
}

.panel-seller-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.panel-seller-badge--insurance {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.1);
}

.panel-seller-badge--rental {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

.panel-seller-badge--credit {
  color: #b45309;
  background: rgba(180, 83, 9, 0.1);
}

.panel-seller-badge--other,
.panel-seller-badge--unknown {
  color: #64748b;
  background: rgba(100, 116, 139, 0.12);
}

.panel-seller-badge--cash_buyer {
  color: #334155;
  background: rgba(71, 85, 105, 0.16);
  font-weight: 700;
}

.panel-lot-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
}

.panel-lot-id span:first-child {
  color: var(--muted);
  font-weight: 600;
  margin-right: 3px;
}

.panel-lot-title {
  font-size: 17px;
  margin: 0;
}

.panel-auction-history {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbfc;
}

.panel-auction-history.hidden {
  display: none;
}

.panel-auction-history-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
}

.panel-auction-history-intro {
  margin: 0 0 8px;
  font-size: 11px;
}

.panel-hist-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.panel-hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.panel-hist-table th,
.panel-hist-table td {
  padding: 5px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.panel-hist-table th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #f1f5f9;
}

.panel-hist-row--click {
  cursor: pointer;
}

.panel-hist-row--click:active {
  background: rgba(26, 95, 180, 0.06);
}

.panel-hist-table tr.is-sold td:nth-child(3) {
  color: #0d6e4f;
  font-weight: 700;
}

.panel-hist-table tr.is-not-sold td:nth-child(3) {
  color: #b45309;
}

.lot-flip--open .panel-intent-box {
  width: 118px;
}

.lot-flip--open .panel-intent-btn {
  min-height: 48px;
}

.panel-register-dialog {
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: auto;
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}
.panel-register-dialog::backdrop {
  background: rgba(13, 27, 42, 0.5);
}
.panel-register-dialog form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 18px;
}
.panel-register-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.panel-register-dialog__head h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}
.panel-register-dialog__close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 2px;
}
.panel-register-dialog__body {
  margin: 0;
  white-space: pre-line;
  line-height: 1.45;
  color: var(--muted, #6b7685);
}
.panel-register-dialog .ss-auth-submit {
  appearance: none;
  align-self: flex-end;
  border: none;
  background: none;
  color: #5c6672;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 0 8px;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 0 transparent;
}
.panel-register-dialog .ss-auth-submit:hover,
.panel-register-dialog .ss-auth-submit:active {
  color: var(--text, #1b2430);
  box-shadow: inset 0 -2px 0 0 var(--accent, #e63946);
}
.panel-register-dialog .ss-auth-switch {
  appearance: none;
  border: none;
  background: none;
  padding: 2px 0;
  color: var(--muted, #6b7685);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 -1px 0 0 transparent;
}
.panel-register-dialog .ss-auth-switch:hover,
.panel-register-dialog .ss-auth-switch:focus-visible {
  color: var(--text, #1b2430);
  box-shadow: inset 0 -1px 0 0 var(--accent, #e63946);
}
.panel-register-dialog .ss-password-wrap,
.ss-password-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.panel-register-dialog .ss-password-wrap input,
.ss-password-wrap input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 42px;
}
.ss-password-toggle {
  appearance: none;
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6b7685;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ss-password-toggle:hover,
.ss-password-toggle:focus-visible {
  color: var(--text, #1b2430);
  outline: none;
}
.ss-password-toggle .ss-pw-eye-off { display: none; }
.ss-password-toggle.is-on .ss-pw-eye-on { display: none; }
.ss-password-toggle.is-on .ss-pw-eye-off { display: block; }
.panel-register-dialog [data-i18n="ss_auth_password_hint"] {
  margin: -4px 0 10px;
  font-size: 12px;
}
.panel-register-dialog .panel-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.panel-search-screen--garbage-watch {
  background: #141418;
  color: #e8e8ec;
  margin: -8px -12px 0;
  padding: 12px 12px 8px;
  border-radius: 12px;
}

.panel-search-screen--garbage-watch .panel-search-section-label,
.panel-search-screen--garbage-watch .panel-damage-label,
.panel-search-screen--garbage-watch label {
  color: #c8c8d0;
}

.panel-search-screen--garbage-watch select,
.panel-search-screen--garbage-watch input[type="text"] {
  background: #1e1e24;
  color: #f0f0f4;
  border-color: #333;
}

.panel-search-actions--garbage {
  justify-content: flex-start;
  gap: 16px;
}

.panel-search-action-stop {
  color: #c0392b;
  font-weight: 800;
}

.panel-search-actions--garbage .panel-garbage-watch-toggle {
  margin-right: auto;
}

.panel-garbage-watch-toggle.is-active {
  color: #ffb454;
}

.panel-garbage-slots {
  display: flex;
  gap: 8px;
  margin: 8px 0 4px;
}

.panel-garbage-slot {
  flex: 1;
  min-height: 44px;
  border: 1px solid #444;
  border-radius: 10px;
  background: #1e1e24;
  color: #aaa;
  font-weight: 600;
  font-size: 1rem;
}

.panel-garbage-slot.is-active {
  border-color: #ffb454;
  color: #ffb454;
}

.panel-garbage-slot.is-filled {
  background: #2a2418;
}

.panel-garbage-watch-start {
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
}

.panel-garbage-screen__title {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.panel-garbage-robots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 2px;
}

.panel-garbage-robot {
  width: 100%;
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 8px 0 9px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.panel-garbage-robot.is-running .panel-garbage-robot__name {
  color: #4ade80;
}

.panel-garbage-robot__main {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.panel-garbage-robot__name {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2px;
}

.panel-garbage-robot__desc {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-garbage-robot__session {
  flex: 0 0 auto;
  min-width: 134px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.panel-garbage-robot__session-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
}

.panel-garbage-robot__session-line {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
}

.flip-garbage-departure {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.flip-garbage-departure--under {
  margin-top: 4px;
  margin-bottom: 0;
}

.panel-garbage-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.panel-garbage-event {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--panel);
}

.panel-garbage-event__title {
  font-weight: 600;
  margin: 0 0 4px;
}

.panel-garbage-event__meta,
.panel-garbage-event__time {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.panel-garbage-event__open {
  margin-top: 8px;
}

.panel-garbage-tick {
  margin-top: 8px;
}

.panel-garbage-slots-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.panel-garbage-folders {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-garbage-folder .panel-bets-settled__toggle {
  margin-top: 0;
  padding: 7px 0;
}

.panel-garbage-slot-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--panel);
}

.panel-garbage-slot-card--empty {
  opacity: 0.72;
}

.panel-garbage-slot-card__title {
  margin: 0 0 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.panel-garbage-slot-card__label {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.panel-garbage-slot-card__update,
.panel-garbage-slot-card__scan,
.panel-garbage-slot-card__summary {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.panel-garbage-slot-card__lots {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.panel-garbage-slot-card__lots .panel-flip-list {
  gap: 0.75rem;
}

.lot-flip--garbage {
  position: relative;
}

.lot-flip__garbage-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  pointer-events: none;
}

.lot-flip__garbage-badge--pending {
  background: rgba(120, 120, 128, 0.85);
  color: #fff;
}

.lot-flip__garbage-badge--active {
  background: rgba(52, 199, 89, 0.92);
  color: #fff;
}

.lot-flip__garbage-badge--sold {
  background: rgba(255, 59, 48, 0.88);
  color: #fff;
}

.lot-flip--garbage-pending {
  opacity: 0.62;
  filter: grayscale(0.25);
}

.lot-flip--garbage-pending .lot-flip__face--front {
  min-height: 92px;
}

.lot-flip--garbage-pending .flip-search-grid__photo {
  opacity: 0.85;
}

.flip-countdown--garbage-pending {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #64748b);
  letter-spacing: 0.01em;
  white-space: normal;
  line-height: 1.25;
}

.lot-flip--garbage-active {
  box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.45);
}

.lot-flip--garbage-sold {
  opacity: 0.72;
  filter: grayscale(0.55);
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.35);
}

.lot-flip__garbage-sold-note {
  margin: 0 0 6px;
  padding: 0 4px;
  font-size: 0.68rem;
  color: var(--panel-muted, #8e8e93);
  line-height: 1.3;
}

.panel-garbage-slot-card__events {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-garbage-slot-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.panel-nav-badge-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
}
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lot-offsite-bar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.lot-offsite-bar--copart {
  background: rgba(26, 95, 180, 0.12);
  color: #1a5fb4;
}
.lot-offsite-bar--copart .lot-offsite-bar__dot { background: #1a5fb4; }
.lot-offsite-bar--iaai {
  background: rgba(196, 30, 58, 0.12);
  color: #c41e3a;
}
.lot-offsite-bar--iaai .lot-offsite-bar__dot { background: #c41e3a; }

.panel-gmsite-dialog {
  border: none;
  border-radius: 16px;
  padding: 20px;
  max-width: 360px;
  width: calc(100% - 32px);
}
.panel-gmsite-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.panel-gmsite-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.panel-gmsite-dialog__head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.panel-gmsite-dialog__close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.panel-gmsite-dialog__lead {
  margin: 0 0 12px;
  font-size: 0.85rem;
}
.panel-gmsite-dialog__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.panel-gmsite-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px;
  border: 2px solid #d1d1d6;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.panel-gmsite-btn__code {
  font-size: 1.4rem;
  font-weight: 800;
}
.panel-gmsite-btn__label {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}
.panel-gmsite-btn--tx:active { border-color: #1a5fb4; background: #eef4ff; }
.panel-gmsite-btn--nj:active { border-color: #248a3d; background: #eefbf1; }
