:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #13171c;
  --panel-2: #1a2027;
  --text: #f1f5f9;
  --muted: #98a2b3;
  --border: #2a323d;
  --accent: #7cff4f;
  --danger: #ff7272;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.container {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.narrow { width: min(760px, calc(100% - 32px)); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 34px;
  color: var(--text);
  text-decoration: none;
}

.site-header h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.15;
}

.header-pokeball {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .site-header { gap: 9px; margin-bottom: 28px; }
  .site-header h1 { font-size: 21px; }
  .header-pokeball { width: 30px; height: 30px; }
}

.hero { margin-bottom: 28px; }
.hero.compact { margin-bottom: 20px; }

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

h1 { margin: 8px 0 10px; font-size: clamp(30px, 5vw, 48px); }
h2 { margin: 0; font-size: 24px; }
h3 { margin: 0 0 5px; font-size: 20px; }

p { color: var(--muted); line-height: 1.6; }
a { color: #9bc5ff; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.form-card { padding: 24px; }

label {
  display: block;
  margin-bottom: 9px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 10px;
  padding: 14px 15px;
  font-size: 16px;
  outline: none;
}

input:focus { border-color: #5c8dff; }

button {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
  padding: 14px;
  background: var(--accent);
  color: #081008;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
}

.hint, .small-meta, .meta, .stat span, .total small { color: var(--muted); }
.hint { font-size: 13px; margin-bottom: 0; }

.error, .error-text {
  color: var(--danger);
  margin-top: 12px;
}

 .search-progress-lines {
  margin: 18px 0 22px;
  display: grid;
  gap: 8px;
  text-align: left;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.search-progress-lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.search-progress-lines span { color: var(--muted); }
.search-progress-lines strong { color: var(--text); }

.loading-card {
  margin-top: 15vh;
  padding: 48px 32px;
  text-align: center;
}

.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.progress {
  height: 8px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel-2);
}

.progress div {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .35s ease;
}

.topbar { margin-bottom: 28px; }
.back { text-decoration: none; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 22px 0 42px;
}

.stat { padding: 20px; }
.stat span { display: block; font-size: 13px; margin-bottom: 8px; }
.stat strong { font-size: 30px; }

.section { margin-top: 42px; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.section-title > span { color: var(--muted); font-size: 13px; }

.debug-block { padding: 16px; margin-bottom: 16px; }
.debug-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.debug-heading h3 { margin: 0; }

.debug-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #000;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.result-card { padding: 14px; }

.exclude-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
}

.exclude-control input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  border: 2px solid #aeb8c7;
  border-radius: 4px;
  background: #151a22;
  display: grid;
  place-content: center;
}

.exclude-control input::before {
  content: "";
  width: 8px;
  height: 8px;
  transform: scale(0);
  transition: transform 90ms ease-in-out;
  box-shadow: inset 1em 1em var(--accent);
  border-radius: 2px;
}

.exclude-control input:checked {
  border-color: var(--accent);
}

.exclude-control input:checked::before {
  transform: scale(1);
}

.exclude-control input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.result-exclude-control {
  margin-left: 0;
  max-width: none;
  justify-content: flex-start;
  text-align: left;
}

.excluded-card {
  opacity: 0.48;
}

.excluded-card .exclude-control {
  color: var(--text);
}


.card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title value"
    "exclude exclude";
  column-gap: 12px;
  row-gap: 9px;
  align-items: start;
  margin-bottom: 15px;
}

.card-heading > div:first-child {
  grid-area: title;
  min-width: 0;
}

.card-heading .value {
  grid-area: value;
  min-width: 72px;
}

.card-heading .result-exclude-control {
  grid-area: exclude;
}

.result-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.result-card .meta {
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
}

.value { text-align: right; }

@media (max-width: 700px) {
  .result-card .card-heading {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .result-exclude-control {
    max-width: none;
  }
}
.value strong { display: block; font-size: 20px; line-height: 1.1; }
.value span { color: var(--muted); }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.pair img {
  max-height: 230px;
  object-fit: contain;
}

.pair img {
  width: 100%;
  display: block;
  border-radius: 8px;
  background: #000;
}

.image-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 7px;
  letter-spacing: .08em;
}

.small-meta {
  font-size: 12px;
  margin-top: 12px;
}

.found-card-list {
  overflow: hidden;
}

.found-card-row {
  display: grid;
  grid-template-columns: 36px 300px minmax(220px, 1.4fr) minmax(55px, 65px) minmax(190px, 210px);
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
}

.found-card-thumb {
  width: 54px;
  height: 76px;
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(127, 127, 127, 0.10);
}

.found-card-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.found-card-details {
  min-width: 0;
}
.found-card-comparison {
  width: 300px;
  height: 190px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  align-items: stretch;
}

.found-card-image {
  position: relative;
  min-width: 0;
  height: 190px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(127, 127, 127, 0.10);
}

.found-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.found-card-image span {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  padding: 2px 3px;
  border-radius: 3px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .03em;
}


.found-card-row:last-child {
  border-bottom: 0;
}

.found-card-number {
  color: var(--muted);
  font-weight: 700;
}

.found-card-name {
  font-weight: 800;
}

.found-card-set {
  color: var(--muted);
}

.found-card-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.found-card-valuation {
  font-size: 12px;
}

.found-card-valuation strong {
  color: var(--text);
}

.found-card-ocr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.found-card-ocr-crop {
  width: 375px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(127, 127, 127, 0.10);
  flex: 0 0 375px;
}

.found-card-ocr-crop img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.found-card-ocr-none {
  color: var(--muted);
  font-size: 10px;
}

.found-card-ocr-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.found-card-ocr-label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.found-card-ocr-text strong {
  font-size: 14px;
  margin-top: 2px;
}

.result-card .value small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.found-card-quantity {
  text-align: center;
  font-weight: 800;
  white-space: nowrap;
}

.found-card-row > .exclude-control span {
  display: block;
  white-space: normal;
}

.found-card-row > .exclude-control {
  justify-self: stretch;
  font-size: 15px;
  line-height: 1.25;
  gap: 9px;
  min-width: 0;
  justify-content: flex-start;
  white-space: normal;
}

.found-card-row > .exclude-control input {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

@media (max-width: 700px) {
  .found-card-row {
    grid-template-columns: 30px 224px minmax(0, 1fr) auto;
    row-gap: 8px;
  }

  .found-card-row > .exclude-control {
    grid-column: 3 / 5;
    grid-row: 2;
    justify-self: start;
  }

  .found-card-comparison {
    width: 224px;
    height: 156px;
  }

  .found-card-image {
    height: 156px;
  }

  .found-card-details {
    grid-column: 3;
  }

  .found-card-quantity {
    grid-column: 4;
    grid-row: 1;
  }
}

.total {
  margin-top: 48px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border-color: #4b6545;
}

.total span { display: block; font-size: 18px; font-weight: 800; }
.total small { display: block; margin-top: 5px; }

.total-values { text-align: right; }
.total-values strong {
  display: block;
  font-size: 32px;
}
.total-values strong + strong {
  color: var(--muted);
  font-size: 22px;
  margin-top: 4px;
}

.empty { padding: 24px; }

@media (max-width: 1000px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1200px) {
  .card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .summary-grid { grid-template-columns: 1fr; }
  .card-list { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .total { flex-direction: column; align-items: flex-start; }
  .total-values { text-align: left; }
}


.found-list {
  margin-top: 24px;
  text-align: left;
}

.found-list h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.found-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 8px;
  background: rgba(127, 127, 127, 0.10);
  animation: found-in 180ms ease-out;
}

.found-card-content {
  min-width: 0;
}

.found-card strong {
  display: inline;
}

.found-card span {
  opacity: 0.78;
  font-size: 0.9rem;
}

@keyframes found-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}


.show-more-images {
  display: block;
  margin: 16px auto 0;
  padding: 10px 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.show-more-images:hover {
  opacity: 0.85;
}

.printing-debug {
  margin-top: 14px;
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.printing-debug summary {
  cursor: pointer;
  font-weight: 600;
}

.printing-debug-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.printing-debug-grid .debug-image {
  width: 100%;
  height: auto;
  display: block;
}


.live-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.live-stat {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
}

.live-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 5px;
}

.live-stat strong { font-size: 18px; }

@media (max-width: 700px) {
  .live-stats { grid-template-columns: repeat(2, 1fr); }
}

/* V513: live source section, last found card, and most valuable card */
.live-card-activity {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  text-align: left;
}
.live-card-activity-card {
  min-height: 76px;
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.live-card-activity-reference {
  display: block;
  width: auto;
  max-width: 100%;
  height: 250px;
  object-fit: contain;
  object-position: top left;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-top: 9px;
}
.live-card-activity-images {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 9px;
}
.live-card-activity-image-wrap {
  min-width: 0;
}
.live-card-activity-image-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 4px;
}

.live-card-activity-info { min-width: 0; }
.live-card-activity-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.live-card-activity-name {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-card-activity-set {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-card-activity-empty { color: var(--muted); font-size: 13px; }
.live-most-valuable-body {
  display: block;
  margin-top: 8px;
}
.live-most-valuable-image {
  width: auto;
  max-width: 100%;
  height: 250px;
  object-fit: contain;
  object-position: top left;
  margin-top: 8px;
}
.live-most-valuable-details {
  min-width: 0;
  padding-top: 2px;
}
.live-most-valuable-name {
  font-size: 16px;
}
.live-most-valuable-set {
  margin-bottom: 6px;
}
.live-most-valuable-value-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.live-most-valuable-price {
  font-weight: 900;
  line-height: 1.25;
}
.live-most-valuable-price.usd { font-size: 16px; }
.live-most-valuable-price.gbp { font-size: 15px; margin-top: 3px; }

@media (max-width: 900px) {
  .found-card-ocr-crop { width: 300px; height: 84px; flex-basis: 300px; }
  .live-card-activity { grid-template-columns: 1fr; }
}


/* V666 saved-search metadata redesign + marketplace flags */
.saved-searches-section { margin-top: 34px; width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; transform: none; }

.saved-searches-heading {
  margin-bottom: 12px;
}

.saved-search-list {
  display: grid;
  gap: 10px;
}

/* V645 saved-search type group headers */
.saved-search-group-header {
  margin: 18px 2px 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}

.saved-search-group-header:first-child {
  margin-top: 2px;
}

.saved-search-item {
  display: block;
  padding: 16px 18px 42px;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}

.saved-search-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.saved-search-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.saved-search-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* V648/V650 direct eBay link */
.saved-search-ebay-link {
  position: absolute;
  right: 18px;
  bottom: 13px;
  display: block;
  width: fit-content;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.saved-search-ebay-link:hover {
  text-decoration: underline;
}

.saved-search-stats {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  min-width: 0;
}

.saved-search-meta-row,
.saved-search-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.saved-search-meta-row {
  gap: 0;
}

.saved-search-price-row {
  gap: 10px;
}

.saved-search-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.saved-search-stat-item + .saved-search-stat-item::before {
  content: "";
  width: 1px;
  height: 16px;
  margin: 0 12px;
  background: var(--border);
}

.saved-search-region {
  color: #d8dde5;
  font-weight: 600;
}

.saved-search-flag {
  width: 19px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
  flex: 0 0 auto;
}

.saved-search-price-label {
  min-width: 88px;
  color: var(--muted);
  font-size: 13px;
}

.saved-search-price {
  color: #f2f5f8;
  font-weight: 700;
  white-space: nowrap;
}

.saved-search-value-row .saved-search-price {
  font-size: 15px;
}

.saved-search-value-pct {
  margin-left: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .16);
  color: #6ee7a0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.saved-search-arrow {
  font-size: 22px;
  color: var(--accent);
}


/* V635 saved-search listing-vs-value display */
.saved-search-value-compare {
  color: var(--muted);
}

.saved-search-value-pct {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.saved-search-value-pct.over-value {
  background: rgba(53,208,127,.16);
  color: #5ee58f;
}

/* V637 saved-search listing image */
.saved-search-image,
.saved-search-reference-image {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #111;
  flex: 0 0 82px;
}

.saved-search-image {
  object-fit: cover;
}


@media (max-width: 700px) {
  .saved-search-link:has(.saved-search-image) {
    grid-template-columns: 64px 64px minmax(0, 1fr) auto;
  }
  .saved-search-image,
  .saved-search-reference-image {
    width: 64px;
    height: 64px;
  }
  .saved-search-ebay-link {
    right: 14px;
    bottom: 11px;
  }
}

@media (max-width: 700px) {
  .saved-search-link:has(.saved-search-image) .saved-search-image {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .saved-search-link:has(.saved-search-image) .saved-search-reference-image {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .saved-search-link:has(.saved-search-image) .saved-search-main {
    grid-column: 3;
    grid-row: 1;
  }
  .saved-search-link:has(.saved-search-image) .saved-search-arrow {
    grid-column: 4;
    grid-row: 1 / 3;
  }
}

/* V641 saved-search deletion */
.saved-search-item {
  position: relative;
}

.saved-search-link {
  min-width: 0;
  display: grid;
  grid-template-columns: 82px 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.saved-search-delete-form {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.saved-search-delete {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #171717;
  color: var(--muted);
  font-size: 20px;
  line-height: 22px;
  cursor: pointer;
}

.saved-search-delete:hover {
  border-color: #e05252;
  color: #ff6b6b;
}

@media (max-width: 700px) {
  .saved-search-link {
    grid-template-columns: 64px 64px minmax(0, 1fr) auto;
    gap: 12px;
  }
  .saved-search-stats {
    font-size: 13px;
  }
  .saved-search-stat-item + .saved-search-stat-item::before {
    margin: 0 8px;
  }
  .saved-search-price-label {
    min-width: 78px;
  }
  .saved-search-value-pct {
    margin-left: 4px;
    padding: 3px 8px;
    font-size: 12px;
  }
}

.photo-upload-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.photo-upload-divider::before,
.photo-upload-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.form-card input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
}


/* V741: whitelist-only bulk saved-search cleanup control. */
.saved-search-clear-all {
  border: 1px solid rgba(220, 70, 70, 0.55);
  background: rgba(220, 70, 70, 0.10);
  color: inherit;
  border-radius: 7px;
  padding: 6px 11px;
  font: inherit;
  cursor: pointer;
}
.saved-search-clear-all:hover {
  background: rgba(220, 70, 70, 0.18);
}


/* Responsive homepage layout: compact side-by-side analyzers on desktop. */
.analysis-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.analysis-inputs .form-card { min-width: 0; padding: 18px; }
.analysis-inputs .form-card input { padding: 11px 12px; font-size: 14px; }
.analysis-inputs .form-card input[type="file"] { font-size: 13px; padding: 9px; }
.analysis-inputs .form-card button { margin-top: 10px; padding: 11px; font-size: 14px; }
.analysis-inputs .form-card .hint { font-size: 12px; line-height: 1.45; }
.analysis-inputs .photo-upload-divider { display: none; }

.saved-search-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.saved-search-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.saved-search-table th, .saved-search-table td {
  padding: 12px 13px; text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--border);
}
.saved-search-table th {
  color: var(--muted); font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; white-space: nowrap; background: var(--panel);
}
.saved-search-table tbody tr:last-child td { border-bottom: 0; }
.saved-search-table tbody tr:hover { background: rgba(255,255,255,.025); }
.saved-table-listing { display: flex; align-items: center; gap: 10px; min-width: 220px; color: var(--text); text-decoration: none; font-weight: 750; }
.saved-table-listing img { width: 46px; height: 58px; object-fit: contain; flex: 0 0 auto; border-radius: 5px; border: 1px solid var(--border); background: #0b0d10; }
.saved-table-region { display: flex; align-items: center; gap: 5px; margin: 5px 0 0 56px; color: var(--muted); font-size: 11px; }
.saved-search-table small { display: block; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.saved-table-pct { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #173a2a; color: #5dffa5; font-weight: 800; }
.saved-table-actions { white-space: nowrap; }
.saved-table-actions > a { color: var(--accent); font-weight: 700; text-decoration: none; }
.saved-table-actions form { display: inline-block; margin-left: 8px; }
.saved-table-actions .saved-search-delete { width: 28px; height: 28px; padding: 0; margin: 0; }

@media (min-width: 701px) {
  .saved-search-list { display: none; }
  .saved-search-table-wrap { display: block; }
}
@media (max-width: 700px) {
  .analysis-inputs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .analysis-inputs .form-card { padding: 20px; }
  .analysis-inputs .photo-upload-divider { display: flex; }
  .saved-search-table-wrap { display: none; }
  .saved-search-list { display: grid; }
}


/* Polished responsive analyzer controls and saved-search table. */
.container.narrow { width: min(1200px, calc(100% - 32px)); }
.hero, .site-header, .analysis-inputs { max-width: 760px; margin-left: auto; margin-right: auto; }
.saved-searches-section { width: 100%; max-width: 1200px; }
.analysis-inputs { margin-top: 0; }
.analysis-inputs .analyze-listing-button { background: var(--accent); color: #081006; border: 1px solid var(--accent); }
.analysis-inputs .analyze-photo-button { background: transparent; color: var(--text); border: 1px solid #637080; }
.analysis-inputs .analyze-photo-button:hover { background: rgba(255,255,255,.06); border-color: #9aa6b5; }

.photo-dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed #657282;
  border-radius: 10px;
  background: rgba(255,255,255,.018);
  cursor: pointer;
}
.photo-dropzone:hover, .photo-dropzone:focus-within { border-color: var(--accent); background: rgba(124,255,79,.045); }
.photo-dropzone-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: rgba(124,255,79,.12); color: var(--accent); font-size: 25px; flex: 0 0 auto; }
.photo-dropzone-copy { display: flex; flex-direction: column; gap: 3px; }
.photo-dropzone-copy strong { font-size: 13px; }
.photo-dropzone-copy small { color: var(--muted); font-size: 11px; font-weight: 400; }
.photo-dropzone input[type="file"] { width: 100%; min-width: 0; margin-left: auto; padding: 0; border: 0; background: transparent; font-size: 11px; }
.photo-dropzone input[type="file"]::file-selector-button { padding: 7px 10px; margin-right: 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel-2); color: var(--text); cursor: pointer; }

.saved-search-table { min-width: 1060px; }
.saved-search-table th, .saved-search-table td { padding: 12px 14px; }
.saved-search-table th:first-child, .saved-search-table td:first-child,
.saved-search-table th:nth-child(3), .saved-search-table td:nth-child(3) { white-space: nowrap; }
.saved-search-table td:nth-child(3) { min-width: 86px; }
.saved-table-listing { min-width: 250px; }
.saved-table-listing img { width: 76px; height: 76px; object-fit: contain; padding: 2px; }
.saved-table-region { margin-left: 86px; }
.listing-type-badge { display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.buy-now-badge { background: rgba(124,255,79,.10); color: #9bff7d; }
.auction-badge { background: rgba(155,197,255,.12); color: #a9ceff; }
.sort-header { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; text-transform: inherit; letter-spacing: inherit; white-space: nowrap; cursor: pointer; }
.sort-header:hover { color: var(--accent); }
.saved-table-pct { background: rgba(148,163,184,.13); color: #cbd5e1; }
.saved-table-pct.tier-low { background: rgba(148,163,184,.13); color: #cbd5e1; }
.saved-table-pct.tier-mid { background: rgba(250,204,21,.15); color: #fde047; }
.saved-table-pct.tier-high { background: rgba(34,197,94,.18); color: #6ee7a0; }
.most-valuable-cell { min-width: 220px; }
.most-valuable-card { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.most-valuable-card img { width: 54px; height: 70px; flex: 0 0 auto; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; background: #0b0d10; }
.most-valuable-card span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.most-valuable-card strong { max-width: 190px; font-size: 12px; line-height: 1.35; }
.most-valuable-card small { color: var(--muted); font-size: 11px; }
.muted-cell { color: var(--muted); font-size: 12px; }
.saved-search-clear-all { background: transparent; border-color: var(--border); color: var(--muted); }
.saved-search-clear-all:hover { background: rgba(255,255,255,.05); border-color: #657282; color: var(--text); }

@media (max-width: 700px) {
  .container.narrow { width: min(760px, calc(100% - 32px)); }
  .saved-searches-section { width: 100%; }
  .photo-dropzone { align-items: flex-start; flex-wrap: wrap; }
  .photo-dropzone input[type="file"] { flex-basis: 100%; margin: 0; }
}


/* Final visual fixes */
.analysis-inputs .form-card button.analyze-listing-button {
  background: var(--accent, #7cff4f) !important;
  color: #081006 !important;
  border: 1px solid var(--accent, #7cff4f) !important;
}
.analysis-inputs .form-card button.analyze-photo-button {
  background: transparent !important;
  color: var(--text, #f5f7fa) !important;
  border: 1px solid #687586 !important;
}
.analysis-inputs .form-card button.analyze-photo-button:hover {
  background: rgba(255,255,255,.06) !important;
  border-color: #a0acba !important;
}
.photo-dropzone {
  display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box;
  min-height: 76px; padding: 12px; border: 1px dashed #657282; border-radius: 10px;
  background: rgba(255,255,255,.018); cursor: pointer;
}
.photo-dropzone:hover, .photo-dropzone:focus-within {
  border-color: var(--accent, #7cff4f); background: rgba(124,255,79,.045);
}
.photo-dropzone-icon {
  display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px;
  border-radius: 8px; background: rgba(124,255,79,.12); color: var(--accent, #7cff4f); font-size: 25px;
}
.photo-dropzone-copy { display: flex; flex-direction: column; gap: 3px; }
.photo-dropzone-copy strong { font-size: 13px; }
.photo-dropzone-copy small { color: var(--muted, #9aa6b5); font-size: 11px; font-weight: 400; }
.photo-dropzone input[type="file"] {
  flex: 1 1 210px; min-width: 0; width: 100%; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--text, #f5f7fa); font-size: 11px;
}
.photo-dropzone input[type="file"]::file-selector-button {
  padding: 7px 10px; margin-right: 8px; border: 1px solid #39424e; border-radius: 6px;
  background: #1a2028; color: #f5f7fa; cursor: pointer;
}
.container.narrow { width: min(1200px, calc(100% - 48px)); max-width: 1200px; }
.hero, .site-header, .analysis-inputs { max-width: 1200px; }
.saved-searches-section { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; }
.saved-search-table-wrap { width: 100%; }
.saved-search-table { min-width: 1000px; }
.saved-table-listing img { width: 72px !important; height: 72px !important; object-fit: cover !important; padding: 0 !important; }
.saved-table-pct.tier-low { background: rgba(148,163,184,.13); color: #cbd5e1; }
.saved-table-pct.tier-mid { background: rgba(250,204,21,.15); color: #fde047; }
.saved-table-pct.tier-high { background: rgba(34,197,94,.18); color: #6ee7a0; }
.sort-header { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }
.sort-header:hover { color: var(--accent, #7cff4f); }
@media (max-width: 700px) {
  .container.narrow { width: calc(100% - 32px); }
  .hero, .site-header, .analysis-inputs { max-width: 100%; }
  .saved-searches-section { max-width: 100%; }
  .photo-dropzone { align-items: flex-start; flex-wrap: wrap; }
  .photo-dropzone input[type="file"] { flex-basis: 100%; }
}


/* Layout repair: keep the saved listings in the same centered flow as the analyzer. */
main.container.narrow {
  width: min(1200px, calc(100% - 32px));
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
main.container.narrow > .site-header,
main.container.narrow > .hero,
main.container.narrow > .analysis-inputs,
main.container.narrow > .saved-searches-section {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  left: auto;
  right: auto;
  transform: none;
}
.saved-searches-section {
  box-sizing: border-box;
  position: static;
  float: none;
}
.saved-searches-section .saved-search-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
.saved-searches-section .saved-search-table {
  width: 100%;
  min-width: 1000px;
  table-layout: auto;
}
@media (max-width: 700px) {
  main.container.narrow { width: calc(100% - 32px); }
  main.container.narrow > .saved-searches-section { width: 100%; }
}


/* Finishing polish: unified controls, table alignment, and restrained typography. */
.container.narrow, main.container.narrow { width: min(1200px, calc(100% - 32px)); max-width: 1200px; }
.site-header, .hero { text-align: left; }
.hero { max-width: 100%; }
.analysis-inputs { align-items: stretch; }
.analysis-inputs .form-card { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.analysis-inputs .form-card .hint { margin-top: 12px; }
.analysis-inputs .form-card button { margin-top: auto; }
.analysis-inputs .form-card input[type="url"] { width: 100%; box-sizing: border-box; }
.analysis-inputs .photo-dropzone {
  position: relative; min-height: 76px; display: flex; align-items: center; gap: 12px;
  box-sizing: border-box; padding: 12px 14px; border: 1px dashed #657282; border-radius: 10px;
  background: rgba(255,255,255,.018); cursor: pointer; overflow: hidden;
}
.analysis-inputs .photo-dropzone:hover, .analysis-inputs .photo-dropzone:focus-visible,
.analysis-inputs .photo-dropzone.is-dragover {
  border-color: var(--accent, #7cff4f); background: rgba(124,255,79,.05); outline: none;
}
.photo-dropzone-icon { flex: 0 0 34px; }
.photo-dropzone-copy { min-width: 0; }
.photo-dropzone-title { overflow-wrap: anywhere; }
.photo-dropzone-subtitle { line-height: 1.45; }
.photo-dropzone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  cursor: pointer; z-index: 2; font-size: 0; margin: 0; padding: 0;
}
.saved-search-table th { vertical-align: middle; }
.saved-search-table th .sort-header { display: inline-flex; align-items: center; min-height: 20px; line-height: 1.2; color: inherit; }
.saved-search-table th.listing-heading { text-align: left; }
.saved-search-table th.listing-heading .sort-header { justify-content: flex-start; }
.saved-search-table th.numeric-heading { text-align: right; }
.saved-search-table th.numeric-heading .sort-header { justify-content: flex-end; }
.saved-search-table th.links-heading { text-align: center; vertical-align: middle; }
.saved-search-table th:first-child { padding-right: 18px; }
.saved-search-table td:first-child { padding-right: 18px; }
.saved-search-table td:nth-child(3),
.saved-search-table td:nth-child(4),
.saved-search-table td:nth-child(5),
.saved-search-table td:nth-child(6) { text-align: right; white-space: nowrap; }
.saved-search-table td:nth-child(4) strong,
.saved-search-table td:nth-child(5) strong { color: var(--text, #f5f7fa); }
.saved-search-table .sort-header:hover { color: var(--text, #f5f7fa); }
.saved-search-table .sort-header[aria-sort="ascending"],
.saved-search-table .sort-header[aria-sort="descending"] { color: inherit; }
.saved-search-table td:first-child { padding-left: 16px; }
.listing-type-badge { margin-right: 6px; }
@media (max-width: 700px) {
  .site-header, .hero { text-align: left; }
  .analysis-inputs .form-card { height: auto; }
}


/* Final table alignment refinements */
.site-header h1, .hero h1, .hero h2 { text-align: left; }
.saved-search-table th.links-heading {
  text-align: left;
  vertical-align: middle;
  padding-top: 12px;
  padding-bottom: 12px;
}
.saved-search-table th.links-heading .links-heading-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  line-height: 1.2;
}
.saved-search-table .sort-header {
  color: #9aa4b2 !important;
  font-weight: 800;
}
.saved-search-table .sort-header::first-letter { color: inherit; }
.saved-search-table .sort-header.is-sorted { color: #d5dbe3 !important; }
.saved-search-table .sort-header[aria-sort="ascending"],
.saved-search-table .sort-header[aria-sort="descending"] { color: #d5dbe3 !important; }
.saved-search-table th.numeric-heading .sort-header { color: #9aa4b2 !important; }
.saved-search-table th.numeric-heading .sort-header.is-sorted,
.saved-search-table th.numeric-heading .sort-header[aria-sort="ascending"],
.saved-search-table th.numeric-heading .sort-header[aria-sort="descending"] { color: #d5dbe3 !important; }
.listing-type-cell { white-space: nowrap; }
.listing-region-flag {
  display: inline-block;
  width: 19px;
  height: 14px;
  object-fit: cover;
  vertical-align: middle;
  margin-left: 6px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.14);
}
.saved-table-listing { align-items: center; }
.saved-table-listing span { font-weight: 600; line-height: 1.5; }
.saved-table-listing img { align-self: center; }
.saved-table-region { display: none; }

/* CardDigger OCR debug controls */
.ocr-debug-toolbar { display:flex; justify-content:flex-end; margin:0 0 12px; }
.show-ocr-debug,
#toggle-all-ocr-debug {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:auto;
  min-width:0;
  max-width:max-content;
  align-self:flex-start;
  margin-top:6px;
  padding:2px 5px;
  border:1px solid #cbd5e1;
  border-radius:5px;
  background:#f8fafc;
  color:#1f2937;
  cursor:pointer;
  font:inherit;
  font-size:.68rem;
  line-height:1.1;
  white-space:nowrap;
}
#toggle-all-ocr-debug { margin-top:0; padding:3px 6px; font-size:.7rem; }
.found-card-ocr[hidden] { display:none !important; }


/* Prominent call-to-action for opening the source eBay listing. */
.ebay-listing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  margin: 4px 0 8px;
  border: 1px solid #79adff;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .22);
  transition: background .15s ease, transform .15s ease;
}
.ebay-listing-cta:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-1px);
}
.ebay-listing-cta:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}


/* Explain the automatic low-confidence exclusion directly on the affected card. */
.low-confidence-exclusion-notice {
  margin-top: 5px;
  color: #ff5b64;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}


/* Launch polish: readable disclosures, green actions, safe table overflow and deal verdict. */
.affiliate-disclosure { color: #aeb9c8 !important; }
.saved-searches-section .saved-search-table-wrap { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; }
.saved-searches-section .saved-search-table { min-width:1160px; }
.saved-searches-section .saved-table-actions { padding-right:14px; white-space:nowrap; }
.back { color: var(--accent, #35d07f); font-weight:700; }
.back:hover { color:#79efad; }
.ebay-listing-cta { background:#16834a; border-color:#35d07f; color:#fff; box-shadow:0 3px 0 rgba(0,0,0,.22); }
.ebay-listing-cta:hover { background:#116b3b; color:#fff; }
.deal-verdict { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 18px; padding:18px 20px; border:1px solid rgba(53,208,127,.4); background:linear-gradient(120deg,rgba(53,208,127,.10),rgba(127,127,127,.04)); }
.deal-verdict h2 { margin:4px 0 6px; font-size:1.15rem; }
.deal-verdict p { margin:0; color:var(--muted); }
.deal-verdict-kicker { color:#35d07f; font-size:.72rem; font-weight:800; letter-spacing:.12em; }
.deal-verdict-metrics { display:flex; gap:18px; flex-wrap:wrap; }
.deal-verdict-metrics div { display:flex; flex-direction:column; gap:5px; min-width:90px; }
.deal-verdict-metrics small { color:var(--muted); font-size:.72rem; }
.deal-verdict-metrics strong { font-size:1.05rem; }
@media(max-width:700px) { .deal-verdict { align-items:stretch; flex-direction:column; } .deal-verdict-metrics { justify-content:space-between; gap:10px; } .deal-verdict-metrics div { min-width:0; } }


/* Saved-search table and filter polish */
.saved-searches-section,
.saved-search-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.saved-search-table-wrap {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.saved-search-table {
  width: 100%;
  min-width: 1160px;
  table-layout: auto;
}
.saved-search-table th:last-child,
.saved-search-table td:last-child {
  white-space: nowrap;
  min-width: 54px;
  padding-right: 18px;
}
.saved-search-table td:last-child button,
.saved-search-table td:last-child a {
  flex-shrink: 0;
}
.saved-filter-select {
  color: var(--text, #f3f5f7) !important;
  background-color: var(--panel-2, #20252c) !important;
  border: 1px solid var(--border, #3a424d) !important;
  border-radius: 8px;
  padding: 7px 30px 7px 10px;
  color-scheme: dark;
  max-width: 100%;
}
.saved-filter-select option {
  color: var(--text, #f3f5f7);
  background: var(--panel, #171b21);
}
.most-valuable-card span {
  align-items: flex-start;
  text-align: left !important;
}
.most-valuable-card strong,
.most-valuable-card small {
  display: block;
  width: 100%;
  text-align: left !important;
}
@media (max-width: 700px) {
  .saved-search-table-wrap { max-width: 100%; }
  .saved-search-table { min-width: 1160px; }
  .saved-search-filters label { max-width: 100%; }
  .saved-filter-select { min-height: 36px; }
}


/* Ensure the set name under the most valuable card stays left-aligned in the saved-search table. */
.saved-search-table .most-valuable-card span,
.saved-search-table .most-valuable-card strong,
.saved-search-table .most-valuable-card small,
.saved-search-table .saved-most-valuable div,
.saved-search-table .saved-most-valuable strong,
.saved-search-table .saved-most-valuable small {
  text-align: left !important;
}


/* Fit the saved-search table within a typical laptop viewport. */
@media (min-width: 701px) {
  .saved-searches-section { max-width: 100%; width: 100%; }
  .saved-searches-section .saved-search-table-wrap { width: 100%; max-width: 100%; overflow-x: hidden; }
  .saved-searches-section .saved-search-table { width: 100%; min-width: 0; table-layout: fixed; }
  .saved-searches-section .saved-search-table th,
  .saved-searches-section .saved-search-table td { padding-left: 8px; padding-right: 8px; }
  .saved-searches-section .saved-search-table th:first-child,
  .saved-searches-section .saved-search-table td:first-child { width: 115px; }
  .saved-searches-section .saved-search-table th:nth-child(2),
  .saved-searches-section .saved-search-table td:nth-child(2) { width: 25%; }
  .saved-searches-section .saved-search-table th:nth-child(3),
  .saved-searches-section .saved-search-table td:nth-child(3) { width: 205px; }
  .saved-searches-section .saved-search-table th:nth-child(4),
  .saved-searches-section .saved-search-table td:nth-child(4) { width: 70px; }
  .saved-searches-section .saved-search-table th:nth-child(5),
  .saved-searches-section .saved-search-table td:nth-child(5),
  .saved-searches-section .saved-search-table th:nth-child(6),
  .saved-searches-section .saved-search-table td:nth-child(6),
  .saved-searches-section .saved-search-table th:nth-child(7),
  .saved-searches-section .saved-search-table td:nth-child(7) { width: 115px; }
  .saved-searches-section .saved-search-table th:last-child,
  .saved-searches-section .saved-search-table td:last-child { width: 60px; min-width: 60px; }
  .saved-searches-section .most-valuable-card { min-width: 0; gap: 7px; }
  .saved-searches-section .most-valuable-card img { flex: 0 0 42px; width: 42px; height: auto; }
  .saved-searches-section .saved-table-listing { min-width: 0; gap: 7px; }
  .saved-searches-section .saved-table-listing img { flex: 0 0 52px; width: 52px; height: auto; }
}


/* Click-to-enlarge images on the results page */
img.zoomable-image { cursor: zoom-in; }
img.zoomable-image:focus-visible { outline: 2px solid var(--accent, #70c98b); outline-offset: 3px; }
.image-zoom-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 54px 24px 24px; background: rgba(0,0,0,.88); cursor: zoom-out; }
.image-zoom-overlay[hidden] { display: none; }
.image-zoom-full { display: block; max-width: min(94vw, 1100px); max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 12px 48px rgba(0,0,0,.5); cursor: default; }
.image-zoom-close { position: absolute; top: 12px; right: 18px; width: 42px; height: 42px; border: 1px solid #777; border-radius: 50%; color: #fff; background: #24282e; font-size: 30px; line-height: 1; cursor: pointer; }
body.image-zoom-open { overflow: hidden; }
