:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --panel: #fff;
  --text: #1f2933;
  --muted: #667085;
  --border: #d9e2ec;
  --border-strong: #c7d2df;
  --accent: #365bd7;
  --accent-hover: #2847b8;
  --accent-soft: #edf1ff;
  --ok: #edf9f1;
  --missing: #fff7ed;
  --warning: #b54708;
  --selected: #fff3cd;
  --selected-border: #d99a00;
  --spark: #f2b705;
  --play: #ef4444;
  --shadow: 0 14px 34px rgba(31, 41, 55, .07);
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, #ebeeff 0, #edf5ff 46%, #f1fbf5 100%),
    var(--bg);
}
.app-version {
  position: fixed;
  left: 10px;
  bottom: 8px;
  z-index: 10;
  color: #98a2ad;
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
}
.page {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1400px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 28px 24px;
}
header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 22px;
  padding: 0 2px 10px;
}
h1 { margin: 0 0 3px; font-size: 36px; font-weight: 780; letter-spacing: 0; }
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  line-height: 0;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: clamp(200px, 24vw, 240px);
  height: auto;
}
.brand-link:hover,
.brand-link:focus {
  color: var(--accent);
}
.brand-icon {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #22c55e 0%, #365bd7 100%);
  box-shadow: 0 10px 22px rgba(54, 91, 215, .22);
}
.brand-icon::before,
.brand-icon::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 5px;
  background: rgba(255, 255, 255, .18);
}
.brand-icon::before {
  width: 16px;
  height: 22px;
  left: 9px;
  top: 8px;
  transform: rotate(-9deg);
}
.brand-icon::after {
  width: 16px;
  height: 22px;
  right: 8px;
  top: 8px;
  transform: rotate(9deg);
}
h2 { margin: 0 0 16px; font-size: 19px; font-weight: 760; letter-spacing: 0; }
h3 { margin: 0 0 10px; font-size: 13px; font-weight: 780; color: #344054; text-transform: uppercase; }
p { color: var(--muted); margin: 0 0 10px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-info {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.section-info:hover,
.section-info:focus {
  border-color: rgba(54, 91, 215, 0.35);
  background: var(--accent-soft);
  outline: none;
}
header p { max-width: 520px; margin: 0; font-size: 15px; }
.header-menu,
.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.header-menu {
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}
.header-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 13px;
  color: var(--muted);
  font-size: 13px;
}
.header-nav a,
.header-nav button {
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 720;
  text-decoration: none;
}
.header-nav a:hover,
.header-nav a:focus,
.header-nav button:hover,
.header-nav button:focus {
  color: var(--accent);
  text-decoration: underline;
}
.header-nav a[aria-current="page"] {
  background: rgba(54, 91, 215, 0.1);
  color: var(--accent);
  text-decoration: none;
}
.header-nav a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-right: 6px;
  background: linear-gradient(135deg, var(--accent), #22c55e);
  vertical-align: 1px;
}
.header-nav a[aria-current="page"]:hover,
.header-nav a[aria-current="page"]:focus {
  background: rgba(54, 91, 215, 0.14);
}
.header-nav-separator {
  display: inline-block;
  width: 1px;
  height: 18px;
  margin: 0 2px;
  background: rgba(42, 62, 89, 0.18);
}
.header-actions {
  gap: 8px;
}
.support-btn {
  border: 0;
  background: linear-gradient(135deg, #22c55e 0%, #365bd7 100%);
  color: #fff;
  font-weight: 400;
  box-shadow: 0 8px 18px rgba(54, 91, 215, .22);
}
.support-btn:hover,
.support-btn:focus {
  background: linear-gradient(135deg, #18a94f 0%, #2847b8 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(54, 91, 215, .28);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.search-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
}
.search-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 94% 10%, rgba(242, 183, 5, .18), transparent 23%),
    linear-gradient(135deg, rgba(54, 91, 215, .06), rgba(34, 197, 94, .05));
}
.search-panel > * {
  position: relative;
  z-index: 1;
}
.summary-panel {
  border-color: #cbd6e2;
  box-shadow: 0 18px 42px rgba(31, 41, 55, .09);
}
.note-panel {
  background: #fbfcfe;
  box-shadow: none;
}

textarea.form-control {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border-color: var(--border);
  border-radius: 8px;
  padding: 14px 14px 14px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
  background: #fbfcfe;
}
body[data-search-mode="single"] #cardInput {
  height: 68px;
  min-height: 68px;
  max-height: 68px;
  resize: none;
  overflow: hidden;
  border-radius: 999px;
  padding: 18px 28px;
  font-family: inherit;
  font-size: 22px;
  font-weight: 720;
  line-height: 1.35;
  text-align: center;
  background: #fff;
  box-shadow: 0 18px 38px rgba(31, 41, 55, .1);
}
body[data-search-mode="multi"] #cardInput {
  min-height: 260px;
  text-align: left;
}
body[data-search-mode="single"] .parse-info,
body[data-search-mode="single"] .parsed-preview {
  display: none;
}
textarea.form-control:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(54, 91, 215, .14);
}

.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, .62fr);
  gap: 26px;
  align-items: start;
}
.search-main, .search-side { min-width: 0; }
.search-main {
  display: grid;
  justify-items: center;
}
.search-mode {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid rgba(54, 91, 215, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 20px rgba(31, 41, 55, .05);
}
.search-mode-btn {
  border: 0;
  border-radius: 999px;
  padding: 7px 13px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}
.search-mode-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 7px 16px rgba(54, 91, 215, .22);
}
.input-block { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.input-block:first-of-type,
.search-side .input-block:first-child { border-top: 0; margin-top: 0; }
.search-mobile-collapse summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  cursor: default;
}
.search-mobile-collapse summary::-webkit-details-marker {
  display: none;
}
.search-mobile-collapse summary h3 {
  display: block;
  margin-bottom: 10px;
}
.section-inline-action {
  position: relative;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-inline-action:hover {
  color: var(--accent-hover);
  background: transparent;
}
.search-query-block {
  width: min(760px, 100%);
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
  text-align: center;
}
.search-query-block h3 {
  margin-bottom: 9px;
}
.search-card-preview {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(420px, 100%);
  margin: 30px auto 8px;
  padding: 0 20px;
  background: transparent;
}
.search-card-preview::before,
.search-card-preview::after {
  content: none;
}
.search-stack-card {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  display: block;
  aspect-ratio: 63 / 88;
  width: min(315px, 72vw);
  overflow: hidden;
  border: 1px solid rgba(42, 62, 89, .12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(31, 41, 55, .12);
  pointer-events: none;
}
.search-stack-card-a {
  transform: translate(calc(-50% + 18px), 16px) rotate(5deg);
}
.search-stack-card-b {
  transform: translate(calc(-50% - 17px), 13px) rotate(-7deg);
}
.search-stack-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 17px;
  opacity: .88;
  filter: saturate(.96) brightness(.98);
}
.search-stack-card.has-image {
  border-color: rgba(54, 91, 215, .16);
  background: #f8fafc;
}
.search-card-frame {
  position: relative;
  isolation: isolate;
  z-index: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 63 / 88;
  width: min(315px, 72vw);
  border-radius: 18px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--spark), var(--accent), #22c55e) border-box;
  border: 3px solid transparent;
  box-shadow: 0 28px 54px rgba(31, 41, 55, .2);
  transform: rotate(-2deg);
  overflow: hidden;
}
@keyframes card-inner-pulse {
  0%, 100% {
    opacity: .36;
    transform: scale(.82);
    filter: blur(1px);
  }
  48% {
    opacity: .82;
    transform: scale(1.04);
    filter: blur(0);
  }
}
.search-card-frame::before,
.search-card-frame::after {
  content: none;
}
.search-card-preview.is-loading .search-card-frame::before {
  content: "";
  position: absolute;
  inset: 10%;
  z-index: 2;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% calc(42% + 15px), rgba(255,255,255,.28) 0 13%, transparent 14%),
    radial-gradient(circle at 50% calc(42% + 15px), rgba(242,183,5,.2) 0 24%, transparent 25%),
    radial-gradient(circle at 50% calc(42% + 15px), rgba(54,91,215,.26) 0 42%, transparent 43%);
  opacity: .72;
  transform: scale(.88);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: card-inner-pulse 1.35s ease-in-out infinite;
}
.search-card-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
  background: #fff;
}
.search-card-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(54, 91, 215, .08), rgba(34, 197, 94, .1)),
    #fff;
  transition: filter .18s ease, background .18s ease;
}
.search-card-preview.is-loading .search-card-frame img,
.search-card-preview.is-loading .search-card-placeholder {
  filter: brightness(.72) saturate(.9);
}
.search-card-preview.is-loading .search-card-placeholder {
  background:
    linear-gradient(135deg, rgba(31, 41, 55, .32), rgba(54, 91, 215, .24)),
    linear-gradient(135deg, rgba(54, 91, 215, .08), rgba(34, 197, 94, .1)),
    #fff;
}
.search-card-placeholder span {
  width: 104px;
  height: 146px;
  border: 3px solid rgba(54, 91, 215, .28);
  border-radius: 13px;
  background:
    radial-gradient(circle at 52% 34%, rgba(54, 91, 215, .28) 0 27%, transparent 28%),
    linear-gradient(135deg, rgba(242, 183, 5, .18), rgba(54, 91, 215, .12));
  transform: rotate(-7deg);
  box-shadow: 18px 14px 0 rgba(34, 197, 94, .14);
}
.search-card-preview-text {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: min(100%, 390px);
  max-width: 100%;
  min-width: 0;
  text-align: center;
}
.search-card-preview-text strong {
  display: block;
  max-width: 100%;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.search-card-preview-meta {
  display: grid;
  justify-items: center;
  gap: 9px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.hero-result-offer {
  max-width: 100%;
  color: var(--text);
  font-size: 16px;
  font-weight: 760;
  overflow-wrap: anywhere;
}
.hero-result-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}
.hero-result-badges .badge {
  max-width: 100%;
  white-space: normal;
}
.hero-result-action {
  max-width: 100%;
  border-radius: 999px;
  padding-inline: 16px;
  font-weight: 760;
  white-space: normal;
}
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.controls > span { color: var(--muted); font-size: 13px; }
.filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}
.filter-row .controls { margin-top: 0; }
.filter-variant-row {
  align-items: flex-start;
}
.filter-variant-row > span {
  padding-top: 6px;
}
.filter-pair-row {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(220px, 1.2fr);
  gap: 10px;
  align-items: start;
}
.controls-column {
  align-items: stretch;
  flex-direction: column;
  gap: 7px;
}
.set-filter-control {
  display: grid;
}
.preset-group-wrap {
  flex-wrap: wrap;
}
.set-filter-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.set-filter-row > span {
  color: var(--muted);
  font-size: 13px;
}
#setFilter {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.25;
  outline: none;
  caret-color: var(--accent);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#setFilter::placeholder {
  color: #98a2ad;
}
#setFilter:focus {
  border-color: rgba(54, 91, 215, .46);
  background: #fff;
  box-shadow: 0 0 0 .18rem rgba(54, 91, 215, .12);
}
.set-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 74px;
}
.set-suggestions button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.25;
}
.set-suggestions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.search-actions {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: stretch;
  gap: 9px;
  width: 100%;
  margin: 14px 0 0;
  padding: 0;
  background: transparent;
}
.search-actions .actions {
  justify-content: stretch;
  margin-top: 0;
}
.ready-count { color: var(--muted); font-size: 14px; }
.ready-count strong { color: var(--text); }
body[data-search-mode="single"] .ready-count {
  display: none;
}
#startBtn.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  width: 100%;
  min-width: 0;
  border-radius: 999px;
  padding: 13px 30px;
  font-size: 17px;
  font-weight: 820;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 16px 28px rgba(54, 91, 215, .24);
}
#startBtn.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 20px 34px rgba(54, 91, 215, .28);
}
#startBtn.btn:disabled {
  box-shadow: none;
}
#stopBtn.btn {
  width: 100%;
  min-height: 38px;
  border-radius: 999px;
  padding-inline: 16px;
  font-weight: 760;
}

.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.search-side .shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.shop-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px 9px 12px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: border-color .15s ease, background-color .15s ease, opacity .15s ease, transform .15s ease;
}
.shop-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: transparent;
}
.shop-tile:has(input:checked) { border-color: #b8c4ff; background: var(--accent-soft); }
.shop-tile:has(input:checked)::before { background: var(--accent); }
.shop-tile:not(:has(input:checked)) { opacity: .68; }
.shop-tile:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.shop-tile-disabled {
  cursor: default;
}
.shop-tile-disabled:hover {
  transform: none;
}
.shop-tile input { margin: 0; }
.shop-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
}
.shop-tile:not(:has(input:checked)) .shop-logo {
  filter: grayscale(1);
}
.shop-note {
  flex: 0 0 auto;
  margin-left: auto;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 1px 6px;
  background: #fff7ed;
  color: #b45309;
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.35;
}

.advanced { margin-top: 14px; }
.advanced summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.input-block.advanced .controls {
  margin-top: 8px;
  margin-left: 10px;
  font-size: 0.85rem;
}
.advanced-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.advanced-price-row .input-group {
  width: 155px;
}
.advanced-price-control small {
  display: block;
  margin: 4px 0 0 24px;
  color: var(--muted);
  font-size: 0.78rem;
}
.parse-info { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.parse-info span { display: inline-flex; gap: 5px; }
.parse-info strong { color: var(--text); }
.parsed-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 30px; }
.parsed-preview span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--surface-soft);
  font-size: 12px;
}
.parsed-preview.empty { color: var(--muted); font-size: 13px; display: block; }
.parsed-preview.empty span { display: none; }
.parsed-preview .more { color: var(--muted); background: #fff; }

.preset-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
}
.preset-btn {
  border: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 720;
  background: transparent;
  color: var(--muted);
}
.preset-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .12);
}
.preset-choice {
  cursor: pointer;
  margin: 0;
}
.preset-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.preset-choice:has(input:checked) {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .12);
}

.summary-stats { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.summary-offer-condition {
  font-weight: 400;
}
.summary-stats span {
  display: inline-flex;
  justify-content: space-between;
  gap: 5px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}
.summary-stats strong { color: var(--text); font-size: 15px; }
.active-result-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}
.detail-content > .active-result-filters {
  margin: 0 0 12px;
}
.active-result-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}
.shop-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}
.shop-totals span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #cfe1d5;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f2fbf5;
  color: #166534;
  font-size: 13px;
}
.shop-totals em {
  color: #4f6f5a;
  font-size: 12px;
  font-style: normal;
}
.shop-totals.empty {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.summary-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
}
.summary-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
}
.single-summary {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(54, 91, 215, .2);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 8% 10%, rgba(242, 183, 5, .16), transparent 25%),
    linear-gradient(135deg, #f7f9ff 0%, #f4fbf7 100%);
  box-shadow: 0 18px 38px rgba(31, 41, 55, .1);
}
.single-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.single-summary-header h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}
.single-summary-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.single-summary-body {
  display: grid;
  grid-template-columns: 172px minmax(190px, 1fr) minmax(210px, 1.35fr) auto;
  gap: 18px;
  align-items: center;
}
.single-summary-image {
  display: grid;
  place-items: center;
  width: 172px;
  min-width: 172px;
}
.single-summary-image img {
  display: block;
  width: 146px;
  height: 204px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(31, 41, 55, .16);
}
.single-summary-image-empty span {
  display: block;
  width: 112px;
  height: 156px;
  border: 2px solid rgba(54, 91, 215, .2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 183, 5, .16), rgba(34, 197, 94, .1)),
    #fff;
  transform: rotate(-5deg);
  box-shadow: 14px 10px 0 rgba(54, 91, 215, .09);
}
.single-summary-offer {
  display: grid;
  gap: 2px;
}
.single-summary-offer span {
  color: var(--muted);
  font-size: 12px;
}
.single-summary-offer strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}
.single-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.single-summary-action {
  justify-self: end;
}
.summary-strategy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.summary-strategy > span {
  color: var(--text);
  font-weight: 700;
}
.summary-strategy em {
  color: var(--muted);
  font-style: normal;
}

button, select { font-size: 14px; }
button { cursor: pointer; font-weight: 650; }
button.btn { border-radius: 8px; }
button.btn-sm { padding: 6px 10px; font-size: 13px; }
button:disabled { opacity: .5; cursor: not-allowed; }
input[type="checkbox"] { accent-color: var(--accent); }
.btn-outline-primary {
  --bs-btn-color: var(--accent);
  --bs-btn-border-color: #b8c4ff;
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-border-color: var(--accent);
  --bs-btn-active-bg: var(--accent-hover);
  --bs-btn-active-border-color: var(--accent-hover);
}
.run-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin-top: 14px;
  border: 1px solid rgba(54, 91, 215, .14);
  border-radius: 16px;
  padding: 8px 10px 8px 14px;
  background:
    radial-gradient(circle at 0% 50%, rgba(242, 183, 5, .18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(248,250,252,.86));
  box-shadow: 0 14px 34px rgba(31, 41, 55, .08);
}
.status {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #344054;
  font-size: 14px;
  font-weight: 740;
  line-height: 1.35;
}
.status::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-right: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2b705, #ef4444, #365bd7);
  box-shadow: 0 0 0 4px rgba(242, 183, 5, .13);
}
.progress-pct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  border: 1px solid rgba(54, 91, 215, .14);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 820;
  box-shadow: 0 8px 18px rgba(31, 41, 55, .06);
}
.run-metrics { display:flex; flex-wrap:wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.run-metrics span { display:inline-flex; gap: 5px; border:1px solid var(--border); border-radius:999px; padding: 4px 9px; background:var(--surface-soft); }
.run-metrics strong { color: var(--text); }
.progress { margin-top: 10px; height: 10px; border-radius: 999px; overflow: hidden; background: #e9edf3; }
#progressBar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #1f9d73); transition: width .2s ease; }
#progressBar.done { background: #1f9d73; }
.status-done {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #166534;
  font-weight: 760;
}
.status-done::before {
  background: linear-gradient(135deg, #22c55e, #1f9d73);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
}
.status-error {
  color: #9f1d1d;
}
.status-error::before {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .14);
}
.run-errors,
.optimization-box {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.run-errors > summary,
.optimization-box > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  list-style: none;
}
.run-errors > summary::-webkit-details-marker,
.optimization-box > summary::-webkit-details-marker { display: none; }
.run-errors > summary {
  justify-content: flex-start;
}
.run-errors .detail-chevron,
.optimization-box .detail-chevron {
  width: 24px;
  height: 24px;
}
.run-errors[open] .detail-chevron::before,
.optimization-box[open] .detail-chevron::before {
  transform: translate(-50%, -35%) rotate(225deg);
}
.error-list,
.optimization-list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}
.error-item,
.optimization-item {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.2fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface-soft);
  font-size: 13px;
}
.error-item {
  grid-template-columns: minmax(160px, .8fr) minmax(110px, .45fr) minmax(220px, 1.2fr);
  background: #fff7f7;
  border-color: #f1c0c0;
}
.error-item small { color: #9f1d1d; font-size: 12px; }
.error-item span,
.optimization-item span { color: var(--muted); }
.optimization-item em {
  color: var(--warning);
  font-style: normal;
  font-weight: 760;
}
.optimization-box p {
  margin: 0 12px 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.table-wrap { width: 100%; overflow: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.detail-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 720;
  list-style: none;
}
.detail-panel > summary::-webkit-details-marker { display: none; }
.detail-summary-title,
.detail-summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.detail-summary-title {
  min-width: 0;
  flex: 1 1 auto;
}
.detail-summary-title > span {
  min-width: 0;
  white-space: nowrap;
}
.detail-summary-meta {
  flex: 0 0 auto;
}
.detail-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.detail-count strong { color: var(--text); }
.detail-chevron {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  position: relative;
  flex: 0 0 auto;
}
.detail-chevron::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 47%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translate(-50%, -60%) rotate(45deg);
  transition: transform .16s ease;
}
.detail-panel[open] .detail-chevron::before {
  transform: translate(-50%, -35%) rotate(225deg);
}
.smooth-details-animating {
  overflow: hidden;
  overflow-anchor: none;
}
.detail-content { margin-top: 16px; }
.detail-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}
.filter-field label {
  display: block;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.detail-selection-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.detail-selection-clear {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0;
  background: #fff;
  color: var(--muted);
  font-size: 16px;
  font-weight: 760;
  line-height: 1;
}
.detail-selection-clear:hover {
  border-color: #fca5a5;
  color: #b91c1c;
  background: #fff5f5;
}
.detail-select-btn {
  border: 0;
  font-size: 12px;
  line-height: 1;
}
.detail-availability-filter {
  display: grid;
  gap: 5px;
}
.detail-availability-filter > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.manual-selection-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 12px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(20, 184, 166, 0.1));
}
.manual-selection-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  padding: 5px 9px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(20, 184, 166, 0.14));
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 760;
}
.manual-selection-summary-badge strong {
  color: inherit;
}
.manual-selection-notice > div {
  display: grid;
  gap: 2px;
}
.manual-selection-notice strong {
  color: var(--text);
  font-size: 13px;
}
.manual-selection-notice span {
  color: var(--muted);
  font-size: 12px;
}
.manual-selection-notice .btn {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}
.detail-table-wrap { max-height: 520px; }
.detail-table-wrap.offer-mode {
  max-height: none;
  overflow: visible;
  border: 0;
  background: transparent;
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.offer-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 13px;
  min-height: 154px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 41, 55, .07);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.offer-card:hover {
  transform: translateY(-1px);
  border-color: rgba(54, 91, 215, .28);
  box-shadow: 0 16px 34px rgba(31, 41, 55, .1);
}
.offer-card.selected {
  border-color: rgba(242, 183, 5, .72);
  background: linear-gradient(135deg, #fffdf5 0%, #f8fbff 100%);
}
.offer-card.unavailable {
  opacity: .72;
}
.offer-card-image {
  display: grid;
  place-items: center;
  width: 94px;
  aspect-ratio: 63 / 88;
  border: 1px solid rgba(42, 62, 89, .1);
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}
.offer-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #fff;
}
.offer-card-image span {
  width: 36px;
  height: 50px;
  border: 2px solid rgba(54, 91, 215, .22);
  border-radius: 5px;
  background: rgba(54, 91, 215, .07);
}
.offer-card-body {
  display: grid;
  min-width: 0;
  gap: 8px;
}
.offer-card-head {
  display: grid;
  gap: 4px;
}
.offer-card-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  text-transform: none;
}
.offer-card-head strong {
  color: #166534;
  font-size: 19px;
  line-height: 1.1;
}
.offer-card-shop {
  color: var(--muted);
  font-size: 13px;
  font-weight: 730;
}
.offer-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.offer-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  align-self: end;
}
.offer-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}
.result-image-cell {
  width: 72px;
  min-width: 72px;
}
.result-card-image {
  display: block;
  width: 52px;
  height: 72px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
th { text-align: left; font-weight: 760; }
#detailTable th:nth-child(3),
#detailTable th:nth-child(4),
#detailTable td:nth-child(3),
#detailTable td:nth-child(4) {
  max-width: 220px;
  font-size: 12.5px;
}
#detailTable td:nth-child(3),
#detailTable td:nth-child(4) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.empty-table-message {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.stats-compact-bars {
  display: grid;
  gap: 6px;
}
.stats-more-bars {
  margin-top: 8px;
}
.stats-more-bars summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  font-weight: 720;
}
.stats-more-bars .stats-compact-bars {
  margin-top: 8px;
}
tr.ok td { background: var(--ok); }
tr.missing td { background: var(--missing); }
tr.selected-summary-variant td {
  background: var(--selected);
  box-shadow: inset 0 1px 0 #f2c94c, inset 0 -1px 0 #f2c94c;
}
tr.selected-summary-variant td:first-child {
  box-shadow: inset 4px 0 0 var(--selected-border), inset 0 1px 0 #f2c94c, inset 0 -1px 0 #f2c94c;
  font-weight: 760;
}
tbody tr:hover td { background: #eef4fb; }
tbody tr.selected-summary-variant:hover td { background: #ffedbd; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
.table > :not(caption) > * > * {
  padding: 9px 10px;
  color: var(--text);
  background-color: transparent;
  border-bottom-color: var(--border);
}
.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef2f6;
  color: #344054;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}
.soft-badge { font-size: 12px; line-height: 1.2; padding: .42em .62em; font-weight: 700; }
.summary-card-name {
  display: block;
  line-height: 1.2;
}
.summary-card-match {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.summary-loose-badge {
  margin-top: 5px;
}
.link-label {
  font-size: 12px;
  line-height: 1.2;
  padding: .42em .65em;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .10);
}
.link-label:hover { filter: brightness(.95); }
.watchdog-btn {
  display: inline-flex;
  margin-top: 6px;
  border: 1px solid rgba(54, 91, 215, .18);
  color: #365bd7;
  cursor: pointer;
}
.watchdog-card-preview {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(54, 91, 215, .14);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(54, 91, 215, .06);
}
.watchdog-card-preview span,
.watchdog-form small {
  color: var(--muted);
  font-size: 12px;
}
.watchdog-card-preview strong {
  color: var(--text);
}
.watchdog-email-field {
  display: block;
  width: 100%;
}
.watchdog-email-field .form-control {
  width: 100%;
}
.watchdog-success {
  display: grid;
  justify-items: start;
  gap: 12px;
}
.watchdog-filter-cell {
  max-width: 210px;
  white-space: nowrap;
}
.watchdog-filter-cell .badge {
  margin: 0 3px 0 0;
  font-weight: 500;
}
.watchdog-admin-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.watchdog-admin-action {
  border: 1px solid rgba(15, 23, 42, .10);
  cursor: pointer;
  font-size: 11px;
  line-height: 1.2;
  padding: .32em .5em;
}
.watchdog-admin-stats button,
.watchdog-admin-stats span {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  text-align: left;
  font-size: 12px;
}
.watchdog-admin-stats button {
  cursor: pointer;
}
.watchdog-admin-stats button:hover {
  border-color: rgba(54, 91, 215, .35);
  background: rgba(54, 91, 215, .06);
}
.watchdog-admin-stats button.active {
  border-color: rgba(54, 91, 215, .4);
  background: linear-gradient(135deg, rgba(54, 91, 215, .1), rgba(34, 197, 94, .08));
}
.watchdog-admin-stats strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
}
.watchdog-create-box {
  padding: 0;
  overflow: hidden;
  gap: 0;
  border-color: rgba(54, 91, 215, .28);
  background:
    linear-gradient(135deg, rgba(54, 91, 215, .06), rgba(34, 197, 94, .05)),
    #fff;
}
.shop-admin-card.watchdog-admin-form.watchdog-create-box {
  gap: 0;
}
.watchdog-create-box > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--text);
  font-weight: 760;
  list-style: none;
}
.watchdog-create-box > summary::-webkit-details-marker {
  display: none;
}
.watchdog-create-box[open] > summary .detail-chevron::before {
  transform: translate(-50%, -35%) rotate(225deg);
}
.watchdog-create-box form {
  border-top: 1px solid rgba(54, 91, 215, .16);
  padding: 14px;
  background: #fff;
}
.watchdog-time-cell {
  min-width: 92px;
  white-space: nowrap;
}
.watchdog-time-cell span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.watchdog-time-cell strong {
  color: var(--text);
  font-weight: 600;
}
.watchdog-admin-cards {
  display: block;
  margin-top: 10px;
}
.watchdog-admin-cards small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}
.watchdog-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  gap: 18px;
  align-items: start;
}
.watchdog-admin-main,
.watchdog-admin-side {
  min-width: 0;
}
.watchdog-admin-main > label,
.watchdog-admin-main .form-control {
  display: block;
  width: 100%;
}
.watchdog-admin-side h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 13px;
}
.watchdog-admin-shops {
  margin-bottom: 14px;
}
.watchdog-admin-filters {
  margin-top: 0;
}
.watchdog-admin-advanced {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}
.watchdog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.watchdog-search {
  display: grid;
  grid-template-columns: auto minmax(220px, 380px);
  gap: 10px;
  align-items: center;
  margin: 0;
}
.watchdog-search label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.watchdog-groups {
  display: grid;
  gap: 10px;
}
.watchdog-email-group {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.watchdog-email-group summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  background: rgba(54, 91, 215, .05);
}
.watchdog-email-group > summary::before {
  content: "›";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .15s ease;
}
.watchdog-email-group[open] > summary::before {
  transform: rotate(90deg);
}
.watchdog-email-title {
  color: var(--text);
  font-weight: 700;
}
.watchdog-email-head {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.watchdog-email-sub {
  color: var(--muted);
  font-size: 12px;
}
.watchdog-email-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
}
.watchdog-email-pills span {
  border: 1px solid rgba(54, 91, 215, .14);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(54, 91, 215, .06);
  color: #365bd7;
  font-size: 11px;
  font-weight: 700;
}
.watchdog-email-pills .warning {
  border-color: rgba(245, 158, 11, .25);
  background: rgba(255, 251, 235, .8);
  color: #92400e;
}
.watchdog-email-pills .danger {
  border-color: rgba(239, 68, 68, .25);
  background: rgba(254, 242, 242, .85);
  color: #991b1b;
}
.watchdog-email-meta {
  margin-left: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  min-width: 72px;
}
.watchdog-email-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.watchdog-item-list {
  display: grid;
  border-top: 1px solid var(--border);
}
.watchdog-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.watchdog-item:last-child {
  border-bottom: 0;
}
.watchdog-item-warning {
  background: rgba(255, 251, 235, .55);
}
.watchdog-item-title {
  color: var(--text);
  font-weight: 760;
  line-height: 1.25;
}
.watchdog-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.watchdog-item-result {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.watchdog-item-warnings {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.watchdog-item-warnings span {
  border: 1px solid rgba(245, 158, 11, .26);
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(255, 251, 235, .82);
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
}
.watchdog-public-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0 12px 12px;
}
.watchdog-public-panel {
  width: 100%;
}
.watchdog-public-panel h1 {
  margin-bottom: 6px;
}
.watchdog-public-intro {
  margin: 0 0 16px;
  color: var(--muted);
}
.watchdog-public-overview {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(54, 91, 215, .18);
  border-radius: 8px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(54, 91, 215, .08), rgba(34, 197, 94, .08)),
    rgba(255, 255, 255, .78);
}
.watchdog-public-overview strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}
.watchdog-public-overview span:not(.badge) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.watchdog-public-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}
.watchdog-public-stats span {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: 12px;
}
.watchdog-public-stats strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
}
.watchdog-public-empty {
  display: grid;
  gap: 2px;
  border: 1px dashed rgba(100, 116, 139, .35);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .62);
  color: var(--muted);
  font-size: 13px;
}
.watchdog-public-empty strong {
  color: var(--text);
  font-size: 15px;
}
.watchdog-public-section {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.watchdog-public-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}
.watchdog-public-section-heading::-webkit-details-marker {
  display: none;
}
.watchdog-public-section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 760;
}
.watchdog-public-section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.watchdog-public-section-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.watchdog-public-section-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 26px;
  border-radius: 999px;
  background: rgba(54, 91, 215, .1);
  color: #365bd7;
  font-size: 12px;
  font-weight: 800;
}
.watchdog-public-section .detail-chevron {
  width: 28px;
  height: 28px;
}
.watchdog-public-section[open] .detail-chevron::before {
  transform: translate(-50%, -35%) rotate(225deg);
}
.watchdog-public-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(54, 91, 215, .18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 250, 255, .94)),
    var(--surface-soft);
  box-shadow: 0 10px 24px rgba(31, 41, 55, .08);
  padding: 15px 25px;
}
.watchdog-public-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  height: auto;
  background: linear-gradient(180deg, #365bd7, #18a078);
}
.watchdog-public-card .btn {
  justify-self: start;
}
.watchdog-public-card h2 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.25;
}
.watchdog-public-card-closed {
  border-color: rgba(100, 116, 139, .2);
  background: rgba(255, 255, 255, .72);
  box-shadow: none;
}
.watchdog-public-card-closed::before {
  background: linear-gradient(180deg, #94a3b8, #cbd5e1);
}
.watchdog-public-card-closed h2 {
  font-size: 16px;
}
.watchdog-public-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.watchdog-public-shops {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.watchdog-public-shops span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(54, 91, 215, .16);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, .72);
  color: #365bd7;
  font-size: 12px;
  font-weight: 700;
}
.watchdog-public-result {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.watchdog-public-result-highlight {
  margin: 9px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
}
.watchdog-public-hint {
  margin: 9px 0 0;
  border: 1px solid rgba(245, 158, 11, .25);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 251, 235, .78);
  color: #92400e;
  font-size: 13px;
}
.watchdog-public-back {
  margin-top: 22px;
}
.muted { color: var(--muted); }
.partner-slot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  position: relative;
  min-height: 112px;
  border: 1px dashed rgba(54, 91, 215, .35);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(54, 91, 215, .08) 0%, rgba(34, 197, 94, .08) 100%),
    rgba(255, 255, 255, .72);
  color: var(--text);
}
.partner-slot::after {
  content: "Placená spolupráce";
  position: absolute;
  right: 12px;
  bottom: -18px;
  border: 1px solid rgba(54, 91, 215, .22);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  padding: 3px 8px 4px;
  background: rgba(255, 255, 255, .9);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
}
.partner-slot-label {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(54, 91, 215, .18);
  padding-right: 14px;
  color: #365bd7;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.shop-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.shop-directory-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: rgba(42, 62, 89, 0.12);
  background: rgba(255, 255, 255, 0.84);
}
.shop-directory-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: rgba(54, 91, 215, 0.22);
  background:
    linear-gradient(135deg, rgba(31, 58, 147, 0.12) 0%, rgba(34, 197, 94, 0.13) 100%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
}
.shop-directory-cta::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), #22c55e);
}
.shop-directory-cta > * {
  position: relative;
  z-index: 1;
}
.shop-directory-intro h1,
.shop-directory-intro h2,
.shop-directory-cta h2 {
  margin: 3px 0 7px;
  font-size: 23px;
  font-weight: 820;
}
.shop-directory-intro p,
.shop-directory-cta p {
  max-width: 760px;
  margin: 0;
  color: #405168;
}
.shop-directory-cta .btn {
  border: 0;
  background: linear-gradient(135deg, #365bd7 0%, #22c55e 100%);
  box-shadow: 0 9px 20px rgba(54, 91, 215, 0.22);
  color: #fff;
}
.shop-directory-cta .btn:hover,
.shop-directory-cta .btn:focus {
  filter: brightness(0.97);
}
.shop-directory-eyebrow {
  display: inline-flex;
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.shop-directory-stat {
  display: grid;
  place-items: center;
  min-width: 136px;
  border: 1px solid rgba(54, 91, 215, 0.18);
  border-radius: 8px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.72);
}
.shop-directory-stat strong {
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}
.shop-directory-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.shop-directory-card {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 15px;
  border: 1px solid rgba(42, 62, 89, 0.13);
  border-radius: 8px;
  padding: 15px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 30px rgba(31, 41, 55, .06);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.shop-directory-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, var(--accent), #22c55e);
  opacity: .55;
}
.shop-directory-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 8px;
  text-decoration: none;
}
.shop-directory-card-link:focus-visible {
  outline: 3px solid rgba(54, 91, 215, 0.35);
  outline-offset: 3px;
}
.shop-directory-card:hover {
  border-color: rgba(54, 91, 215, 0.26);
  box-shadow: 0 16px 34px rgba(31, 41, 55, .1);
  transform: translateY(-1px);
}
.shop-directory-card .btn {
  position: relative;
  z-index: 2;
}
.shop-directory-logo,
.shop-detail-logo {
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}
.shop-directory-logo {
  width: 84px;
  height: 64px;
}
.shop-directory-logo img {
  max-width: 74px;
  max-height: 54px;
  object-fit: contain;
}
.shop-directory-logo-blacklotus img {
  max-width: 78px;
  max-height: 44px;
}
.shop-detail-logo img {
  max-width: 38px;
  max-height: 38px;
}
.shop-directory-card h2 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 820;
}
.shop-directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px;
}
.shop-directory-meta span,
.shop-card-tags span {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(54, 91, 215, 0.08);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 780;
  line-height: 1.4;
}
.shop-directory-meta .shop-status-checked {
  background: rgba(34, 197, 94, 0.12);
  color: #16803a;
}
.shop-directory-meta .shop-status-planned {
  background: #fff7ed;
  color: #b45309;
}
.shop-directory-card p,
.shop-detail-hero p,
.shop-detail-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.shop-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.shop-card-tags span {
  background: rgba(42, 62, 89, 0.07);
  color: #405168;
  font-weight: 720;
}
.shop-detail-text {
  margin-bottom: 0;
  white-space: normal;
}
.shop-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.shop-detail-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(42, 62, 89, 0.13);
  border-radius: 8px;
  background: var(--surface-soft);
}
.shop-detail-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.shop-detail-gallery figcaption {
  padding: 9px 11px;
  color: var(--muted);
  font-size: 12px;
}
.shop-directory-card .actions {
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.shop-card-detail-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
}
.shop-card-detail-hint::after {
  content: "→";
  font-size: 13px;
  line-height: 1;
}
.shop-directory-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.shop-directory-badges span {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 760;
}
.shop-detail-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.shop-detail-logo {
  width: 96px;
  height: 96px;
}
.shop-detail-logo img {
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
}
.shop-detail-hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 820;
}
.shop-detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
}
.shop-detail-main h2 {
  margin-bottom: 10px;
}
.shop-detail-side {
  display: grid;
  gap: 12px;
}
.shop-info-card {
  border: 1px solid rgba(42, 62, 89, 0.12);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.94));
}
.shop-info-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 820;
}
.shop-info-list {
  display: grid;
  gap: 9px;
  margin: 0;
}
.shop-info-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
}
.shop-info-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.shop-info-list dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
}
.shop-info-list dd small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.shop-response-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  margin-left: 5px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 800;
  vertical-align: 1px;
}
.shop-response-label-fast {
  background: rgba(34, 197, 94, 0.12);
  color: #16803a;
}
.shop-response-label-medium {
  background: rgba(245, 158, 11, 0.14);
  color: #a16207;
}
.shop-response-label-slow {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}
.shop-response-scale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  margin: 6px 0 3px;
}
.shop-response-meter {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  margin: 0;
  background: rgba(42, 62, 89, 0.1);
}
.shop-response-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.shop-response-meter-fast span {
  background: linear-gradient(90deg, #22c55e, #7ddf8d);
}
.shop-response-meter-medium span {
  background: linear-gradient(90deg, #f59e0b, #facc15);
}
.shop-response-meter-slow span {
  background: linear-gradient(90deg, #ef4444, #f97316);
}
.shop-response-max {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 760;
  line-height: 1;
}
.shop-availability-scale {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  margin: 6px 0 3px;
  background: rgba(42, 62, 89, 0.1);
}
.shop-availability-scale span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #2ec4b6);
}
.shop-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.shop-tag-list span {
  display: inline-flex;
  border: 1px solid rgba(54, 91, 215, 0.16);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(54, 91, 215, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
}
.shop-link-list {
  display: grid;
  gap: 7px;
}
.shop-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(54, 91, 215, 0.14);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}
.shop-link-list a::after {
  content: "↗";
  color: var(--muted);
  font-size: 12px;
}
.shop-link-list a:hover,
.shop-link-list a:focus {
  border-color: rgba(54, 91, 215, 0.28);
  background: #fff;
  text-decoration: underline;
}
.shops-admin-list {
  display: grid;
  gap: 14px;
}
.shop-admin-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}
.shop-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.shop-admin-head > div {
  display: grid;
  gap: 2px;
}
.shop-admin-head span {
  color: var(--muted);
  font-size: 12px;
}
.shop-admin-head img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.shop-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.shop-admin-card label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.shop-admin-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.partner-slot-content {
  display: grid;
  gap: 3px;
}
.partner-slot-content strong {
  font-size: 15px;
}
.partner-slot-content span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.partner-slot-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}
.partner-slot-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  border: 1px solid rgba(54, 91, 215, .16);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, .72);
  color: #284069;
  font-size: 12px;
  font-weight: 700;
}
.partner-slot-stats strong {
  color: #365bd7;
  font-size: 13px;
}
.site-footer {
  max-width: 920px;
  margin: auto auto 0;
  padding: 10px 0 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.footer-note {
  margin: 0 auto 8px;
  color: var(--muted);
  line-height: 1.5;
}
.footer-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 620px;
  margin: 12px auto 12px;
  border: 1px solid #b8c7ff;
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, .16) 0%, rgba(54, 91, 215, .16) 100%),
    #ffffff;
  box-shadow: 0 12px 30px rgba(54, 91, 215, .13);
}
.footer-share > span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  color: var(--text);
  font-weight: 700;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.share-link,
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 31px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 9px;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.share-link:hover,
.share-button:hover {
  border-color: #b8c4ff;
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}
.footer-share .share-button:hover,
.footer-share .share-button:focus {
  border-color: #b8c4ff;
  background: var(--accent-soft);
  color: var(--accent);
}
.share-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.share-status {
  min-height: 16px;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
}
.support-share {
  width: 100%;
  margin: 2px auto 0;
  background: #fff;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding: 8px 12px 0;
  color: #8b96a1;
  font-size: 12px;
}
.footer-credit a { color: #8b96a1; text-decoration: underline; }
.footer-credit-copy a { text-decoration: none; }
.footer-credit a:hover { color: var(--accent); text-decoration: underline; }
.footer-credit-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.changelog-page {
  display: grid;
  gap: 18px;
}
.changelog-hero {
  padding: 24px;
}
.changelog-hero h1,
.changelog-hero h2 {
  margin: 6px 0 8px;
  font-size: 28px;
}
.changelog-list {
  display: grid;
  gap: 12px;
}
.changelog-version {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
}
.changelog-version h2 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 18px;
}
.changelog-version ul {
  margin: 0;
  padding-left: 20px;
}
.changelog-version li {
  margin: 5px 0;
  line-height: 1.5;
}
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
}
.app-modal.d-none { display: none; }
.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .46);
}
.app-modal-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .25);
}
.app-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.app-modal-header h2 { margin: 0; }
.help-dialog {
  width: min(960px, 100%);
}
.help-intro {
  margin: 0 0 12px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(20, 184, 166, 0.1));
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
.help-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.help-steps span {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(20, 184, 166, 0.34);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(37, 99, 235, 0.07) 42%, rgba(20, 184, 166, 0.13) 100%);
  color: #17413b;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}
.help-steps span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(37, 99, 235, 0.5);
  border-right: 2px solid rgba(37, 99, 235, 0.5);
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}
.help-steps strong {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.help-sections {
  display: grid;
  gap: 32px;
}
.help-section {
  display: grid;
  gap: 16px;
}
.help-section > h3 {
  margin: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  color: #243447;
  font-size: 16px;
  font-weight: 820;
}
.help-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}
.help-card h4 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
  text-transform: none;
}
.help-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.help-tip {
  border-color: #cfe1d5;
  background: linear-gradient(180deg, #f8fffb 0%, #f2fbf5 100%);
}
.help-warning {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fffaf4 0%, #fff7ed 100%);
}
.help-code {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.help-card code {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 5px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
}
.help-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 760;
}
.help-faq {
  display: grid;
  gap: 10px;
}
.help-faq details {
  border: 1px solid rgba(42, 62, 89, 0.14);
  border-radius: 8px;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.help-faq details[open] {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}
.help-faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 12px 38px 12px 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
}
.help-faq summary::-webkit-details-marker {
  display: none;
}
.help-faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.15s ease;
}
.help-faq details[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}
.help-faq p {
  margin: 0;
  border-top: 1px solid rgba(42, 62, 89, 0.1);
  padding: 11px 14px 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.support-dialog {
  width: min(900px, 100%);
}
.support-content {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.support-content p {
  max-width: 660px;
  margin: 0;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.5;
}
.support-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 12px;
  width: 100%;
}
.support-option {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px 14px 14px;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.support-option:hover {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}
.support-option h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 780;
  text-transform: none;
}
.support-option strong {
  color: #166534;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 780;
}
.support-option span {
  min-height: 38px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.support-option img {
  width: min(200px, 100%);
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 7px;
}
.support-option em {
  position: absolute;
  top: -10px;
  right: 12px;
  border-radius: 999px;
  padding: 3px 9px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.2);
}
.support-option-featured {
  border-color: rgba(20, 184, 166, 0.55);
}
.support-content small {
  max-width: 340px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.report-form {
  display: grid;
  gap: 11px;
}
.report-intro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.report-type-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.report-type-btn {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 9px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.report-type-btn.active {
  border-color: rgba(54, 91, 215, 0.55);
  background: #eef3ff;
  color: #243f9f;
  box-shadow: inset 3px 0 0 #365bd7;
}
.report-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.report-form textarea.form-control {
  min-height: 82px;
  font-family: inherit;
}
.report-context-toggle {
  display: inline-flex !important;
  grid-template-columns: none !important;
  gap: 8px !important;
  align-items: center;
  color: var(--text) !important;
  font-size: 13px !important;
}
.report-context-toggle input {
  margin: 0;
}
.report-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.report-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  white-space: pre-wrap;
}
.report-status.success { color: #166534; font-weight: 700; }
.report-status.error { color: #9f1d1d; font-weight: 700; }
.report-status.copied-text {
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.reports-page .panel h3,
.report-detail h3 {
  margin-top: 18px;
}
.report-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, .72);
}
.report-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}
.report-tabs a.active {
  background: var(--accent);
  color: #fff;
}
.report-tabs span {
  border-radius: 999px;
  padding: 1px 6px;
  background: rgba(255, 255, 255, .2);
  font-size: 11px;
}
.stats-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.stats-panel-header h2 {
  margin: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.stats-grid span {
  display: grid;
  gap: 4px;
  min-height: 72px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #fff 0%, var(--surface-soft) 100%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.stats-grid strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
}
.partner-report-box,
.funnel-grid {
  margin: 12px 0 18px;
}
.partner-report-box {
  display: grid;
  gap: 4px;
  border: 1px solid #b8c7ff;
  border-radius: 8px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, .14) 0%, rgba(54, 91, 215, .14) 100%),
    #fff;
  color: var(--text);
}
.partner-report-box strong {
  font-size: 15px;
}
.partner-report-box span {
  color: var(--muted);
  font-size: 13px;
}
.partner-click-pills {
  margin-bottom: 10px;
}
.funnel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.funnel-grid span {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(54, 91, 215, .22);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7f9ff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.funnel-grid strong {
  color: var(--text);
  font-size: 18px;
}
.stats-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 18px;
}
.stats-split-secondary {
  margin-top: 18px;
}
.stats-split h3 {
  margin: 0 0 10px;
}
.stats-chart {
  margin-top: 18px;
  max-width: 50%;
}
.stats-chart-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.stats-chart-row .stats-chart {
  max-width: none;
}
.stats-chart-wide {
  max-width: none;
}
.stats-chart h3 {
  margin: 0 0 12px;
}
.stats-day-chart {
  display: grid;
  grid-template-columns: repeat(30, minmax(8px, 1fr));
  align-items: end;
  gap: 4px;
  height: 150px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 10px 22px;
  background: linear-gradient(135deg, #fff 0%, var(--surface-soft) 100%);
}
.stats-day-chart span {
  position: relative;
  display: flex;
  align-items: end;
  height: 100%;
}
.stats-day-chart i {
  display: block;
  width: 100%;
  min-height: 4px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, #22c55e 0%, #365bd7 100%);
}
.stats-day-chart em {
  position: absolute;
  left: 50%;
  bottom: -17px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}
.search-heatmap-wrap {
  overflow-x: auto;
}
.heatmap-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.heatmap-summary span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}
.heatmap-summary strong {
  color: var(--text);
}
.search-heatmap {
  display: grid;
  grid-template-columns: 34px repeat(24, minmax(28px, 1fr));
  gap: 3px;
  min-width: 760px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(135deg, #fff 0%, var(--surface-soft) 100%);
}
.heatmap-corner,
.heatmap-hour,
.heatmap-day {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.heatmap-day {
  justify-content: end;
  padding-right: 4px;
}
.heatmap-cell {
  display: grid;
  place-items: center;
  min-height: 28px;
  border-radius: 4px;
  color: #102033;
  font-size: 10px;
  font-weight: 800;
}
.heatmap-level-0 { background: #eef2f6; color: transparent; }
.heatmap-level-1 { background: #dff7e8; }
.heatmap-level-2 { background: #b9efcf; }
.heatmap-level-3 { background: #7fdca9; }
.heatmap-level-4 { background: #3fbf83; color: #fff; }
.heatmap-level-5 { background: #2563eb; color: #fff; }
.stats-bar-row {
  display: grid;
  grid-template-columns: 92px minmax(120px, 1fr) 56px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}
.stats-bar-label {
  font-weight: 700;
}
.stats-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}
.stats-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #365bd7 0%, #22c55e 100%);
}
.stats-bar-fill-danger {
  background: linear-gradient(90deg, #f97316 0%, #dc2626 100%);
}
.stats-bar-fill-timing {
  background: linear-gradient(90deg, #60a5fa 0%, #f59e0b 100%);
}
.stats-bar-row strong {
  color: var(--text);
  text-align: right;
}
.report-login {
  max-width: 420px;
}
.report-login label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.report-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.report-meta span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
}
.report-meta strong {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.report-description {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
}
.report-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.report-compare div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-soft);
}
.report-compare strong {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.report-compare p {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
}
.report-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.report-pills span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--surface-soft);
  font-size: 12px;
}
.report-table-wrap {
  max-height: 420px;
  margin-bottom: 12px;
}
.report-resolved td {
  color: #7a8794;
  background: #f4f7f6 !important;
}
.report-resolved-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.report-resolved-toggle input {
  margin: 0;
}
.report-delete-btn {
  white-space: nowrap;
}
.report-raw {
  margin-top: 18px;
}
.report-raw summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.report-raw pre {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 8px;
  padding: 12px;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 12px;
}
.footer-link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: min(680px, calc(100vw - 36px));
  border: 1px solid rgba(42, 62, 89, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.2);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}
.cookie-banner-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
}
.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}
.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; }
  .search-side .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-card-preview {
    width: min(390px, 100%);
    margin-bottom: 18px;
  }
  .search-card-frame {
    width: min(285px, 70vw);
  }
  .search-stack-card,
  .search-card-preview::before,
  .search-card-preview::after {
    width: min(285px, 70vw);
  }
  .watchdog-admin-layout { grid-template-columns: 1fr; }
  .watchdog-toolbar { align-items: stretch; flex-direction: column; }
  .watchdog-search { grid-template-columns: 1fr; }
  .watchdog-item { grid-template-columns: 1fr; }
  .watchdog-item-status { display: inline-flex; }
  .watchdog-item .watchdog-admin-actions { justify-content: flex-start; }
  .filter-row { grid-template-columns: 1fr; }
  .filter-pair-row { grid-template-columns: 1fr; }
  .summary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-controls {
    align-items: flex-start;
    flex-direction: column;
  }
  .single-summary-body { grid-template-columns: 142px minmax(0, 1fr); align-items: start; }
  .single-summary-image {
    width: 142px;
    min-width: 142px;
  }
  .single-summary-image img {
    width: 118px;
    height: 164px;
  }
  .single-summary-image-empty span {
    width: 96px;
    height: 134px;
  }
  .single-summary-meta,
  .single-summary-action { grid-column: 1 / -1; }
  .single-summary-action { justify-self: start; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-split { grid-template-columns: 1fr; }
  .detail-filters { grid-template-columns: 1fr 1fr; }
  .shop-directory-grid,
  .shop-admin-grid { grid-template-columns: 1fr; }
  .shop-detail-hero,
  .shop-detail-panel { grid-template-columns: 1fr; }
  .shop-detail-gallery { grid-template-columns: 1fr; }
  .help-steps,
  .help-sections,
  .help-grid,
  .support-options { grid-template-columns: 1fr; }
  .help-steps {
    gap: 10px;
    margin-bottom: 22px;
  }
  .help-steps span:not(:last-child)::after {
    display: none;
  }
  .error-item,
  .optimization-item { grid-template-columns: 1fr; }
  .report-meta { grid-template-columns: 1fr 1fr; }
  .report-type-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-compare { grid-template-columns: 1fr; }
  .funnel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-slot {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .partner-slot-stats {
    justify-content: center;
  }
  .partner-slot-label {
    border-right: 0;
    border-bottom: 1px solid rgba(54, 91, 215, .18);
    padding: 0 0 10px;
  }
  .cookie-banner-content { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .page { padding: 14px; }
  .search-panel {
    padding: 14px;
  }
  body[data-search-mode="single"] #cardInput {
    height: 58px;
    min-height: 58px;
    max-height: 58px;
    padding: 15px 18px;
    font-size: 17px;
  }
  .search-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .search-card-preview {
    gap: 12px;
    padding: 0 10px;
  }
  .search-card-frame {
    width: min(245px, 70vw);
  }
  .search-stack-card,
  .search-card-preview::before,
  .search-card-preview::after {
    width: min(245px, 70vw);
  }
  .search-card-placeholder span {
    width: 82px;
    height: 116px;
  }
  .search-card-preview-text strong {
    font-size: 16px;
  }
  .single-summary {
    padding: 14px;
  }
  .single-summary-body {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
  }
  .single-summary-image {
    width: 108px;
    min-width: 108px;
  }
  .single-summary-image img {
    width: 92px;
    height: 128px;
  }
  .single-summary-image-empty span {
    width: 74px;
    height: 104px;
  }
  .single-summary-offer strong {
    font-size: 18px;
  }
  .offer-grid {
    grid-template-columns: 1fr;
  }
  .offer-card {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 132px;
  }
  .offer-card-image {
    width: 82px;
  }
  .app-modal {
    place-items: start center;
    padding: 10px;
  }
  .app-modal-dialog {
    max-height: calc(100dvh - 20px);
    padding: 12px;
  }
  .app-modal-header {
    position: sticky;
    top: -12px;
    z-index: 1;
    margin: -12px -12px 10px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    background: #fff;
  }
  header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  h1 { font-size: 25px; }
  header p {
    margin-inline: auto;
  }
  .brand-link {
    justify-content: center;
    gap: 9px;
  }
  .brand-icon {
    width: 43px;
    height: 48px;
    flex-basis: 43px;
    border-radius: 12px;
  }
  .brand-icon::before,
  .brand-icon::after {
    inset: 4px;
    border-radius: 11px;
  }
  .header-menu {
    align-items: center;
    width: 100%;
  }
  .header-nav,
  .header-actions {
    justify-content: center;
  }
  .search-mobile-collapse {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    background: var(--surface);
  }
  .search-mobile-collapse summary {
    position: relative;
    cursor: pointer;
    padding: 12px 14px;
  }
  .search-mobile-collapse summary h3 {
    margin: 0;
    padding-right: 22px;
  }
  .search-mobile-collapse .section-inline-action {
    margin-left: auto;
    margin-right: 22px;
  }
  .search-mobile-collapse summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-65%) rotate(45deg);
    transition: transform .15s ease;
  }
  .search-mobile-collapse[open] summary::after {
    transform: translateY(-35%) rotate(225deg);
  }
  .search-mobile-collapse .shop-grid,
  .search-mobile-collapse .filter-row {
    padding: 0 14px 14px;
  }
  .set-filter-row {
    grid-template-columns: 1fr;
  }
  .set-suggestions {
    padding-left: 0;
  }
  .brand-icon {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    border-radius: 8px;
  }
  .brand-icon::before,
  .brand-icon::after {
    width: 13px;
    height: 18px;
    top: 7px;
  }
  .brand-icon::before { left: 7px; }
  .brand-icon::after { right: 7px; }
  .site-footer {
    align-items: center;
    text-align: center;
  }
  .footer-credit {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 6px;
  }
  .footer-credit > .footer-separator {
    display: none;
  }
  .footer-credit-links {
    justify-content: center;
  }
  .shop-grid { grid-template-columns: 1fr; }
  .filter-row { grid-template-columns: 1fr; }
  .report-tabs { display: flex; width: 100%; }
  .report-tabs a { justify-content: center; flex: 1; }
  .stats-panel-header { align-items: flex-start; flex-direction: column; }
  .stats-chart-row { grid-template-columns: 1fr; }
  .stats-chart { max-width: none; }
  .stats-day-chart { gap: 2px; padding-inline: 7px; }
  .stats-bar-row { grid-template-columns: 82px minmax(90px, 1fr) 44px; }
  .summary-stats { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .watchdog-public-overview {
    align-items: flex-start;
    flex-direction: column;
  }
  .watchdog-public-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watchdog-public-list { grid-template-columns: 1fr; }
  .watchdog-public-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .watchdog-public-card { grid-template-columns: 1fr; }
  .watchdog-public-card .btn { justify-self: start; }
  .funnel-grid { grid-template-columns: 1fr; }
  .report-meta { grid-template-columns: 1fr; }
  .preset-group { border-radius: 8px; }
  .detail-panel > summary { align-items: flex-start; flex-direction: column; }
  .detail-filters { grid-template-columns: 1fr; }
  .detail-table-wrap { max-height: 420px; }
  #detailTable {
    border-collapse: separate;
    border-spacing: 0 10px;
  }
  #detailTable thead {
    display: none;
  }
  #detailTable tbody,
  #detailTable tr,
  #detailTable td {
    display: block;
    width: 100%;
  }
  #detailTable tr {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
  }
  #detailTable td {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 8px;
    border-bottom: 0;
    padding: 5px 0;
    white-space: normal;
  }
  #detailTable td::before {
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
  }
  #detailTable td:nth-child(1)::before { content: "Obrázek"; }
  #detailTable td:nth-child(2)::before { content: "Hledaná"; }
  #detailTable td:nth-child(3)::before { content: "Obchod"; }
  #detailTable td:nth-child(4)::before { content: "Název"; }
  #detailTable td:nth-child(5)::before { content: "Edice"; }
  #detailTable td:nth-child(6)::before { content: "Číslo"; }
  #detailTable td:nth-child(7)::before { content: "Jazyk"; }
  #detailTable td:nth-child(8)::before { content: "Varianta"; }
  #detailTable td:nth-child(9)::before { content: "Stav"; }
  #detailTable td:nth-child(10)::before { content: "Ks"; }
  #detailTable td:nth-child(11)::before { content: "Cena"; }
  #detailTable td:nth-child(12)::before { content: "Dostupné"; }
  #detailTable td:nth-child(13)::before { content: "Confidence"; }
  #detailTable td:nth-child(14)::before { content: "Výběr"; }
  #detailTable td:nth-child(15)::before { content: "URL"; }
  .result-image-cell {
    width: 100%;
  }
  .result-card-image {
    width: 84px;
    height: 116px;
  }
  .cookie-banner {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    overflow: auto;
  }
  .cookie-actions .btn { flex: 1 1 100%; }
}

/* PokeChecker search redesign */
body {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .42) 0 25%, transparent 25% 50%, rgba(255, 255, 255, .34) 50% 75%, transparent 75%) 0 0 / 44px 44px,
    radial-gradient(circle at 12% 0%, rgba(242, 183, 5, .18), transparent 31%),
    linear-gradient(135deg, #f5f8ff 0%, #eefbf4 45%, #fff7e6 100%);
}

.page {
  max-width: 1480px;
}

header {
  align-items: center;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(54, 91, 215, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 44px rgba(31, 41, 55, .08);
  backdrop-filter: blur(18px);
}

header > div:first-child {
  display: flex;
  align-items: center;
}

h1 {
  font-size: 31px;
}

header p {
  color: #536174;
  font-size: 14px;
}

.brand-link {
  gap: 13px;
}

.brand-logo {
  width: clamp(200px, 24vw, 240px);
  filter: drop-shadow(0 10px 18px rgba(8, 42, 117, .12));
}

.header-menu {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.header-nav {
  border: 1px solid rgba(42, 62, 89, .08);
  border-radius: 999px;
  padding: 5px;
  background: rgba(248, 250, 252, .86);
}

.header-nav a,
.header-nav button {
  padding: 7px 11px;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a:focus,
.header-nav button:hover,
.header-nav button:focus {
  background: #fff;
  color: var(--accent);
  text-decoration: none;
}

.support-btn {
  border-radius: 999px;
  padding: 8px 13px;
  background: linear-gradient(135deg, #f2b705 0%, #ef4444 48%, #365bd7 100%);
}

.search-panel {
  overflow: visible;
  border: 0;
  border-radius: 24px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78)),
    #fff;
  box-shadow: 0 26px 64px rgba(31, 41, 55, .13);
}

.search-panel::before {
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(242,183,5,.16), transparent 32%, rgba(54,91,215,.12) 68%, rgba(34,197,94,.14)),
    repeating-linear-gradient(135deg, rgba(54,91,215,.045) 0 1px, transparent 1px 18px);
}

.search-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(540px, .74fr);
  gap: 28px;
}

.search-main {
  align-content: start;
  justify-items: stretch;
}

.search-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin: 0 auto 18px;
  width: min(920px, 100%);
}

.search-hero-head h1,
.search-hero-head h2 {
  margin: 0 0 4px;
  color: #172033;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 860;
  line-height: 1.02;
}

.search-hero-head p {
  max-width: 620px;
  color: #536174;
  font-size: 15px;
}

.search-mode {
  margin: 0;
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 41, 55, .08);
}

.search-mode-btn {
  padding: 8px 14px;
}

.search-mode-btn.active {
  background: linear-gradient(135deg, var(--accent), #1f9d73);
}

.search-query-block {
  width: min(920px, 100%);
  margin-inline: auto;
}

.search-input-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(54, 91, 215, .16);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 20px 50px rgba(31, 41, 55, .12);
}

body[data-search-mode="single"] #cardInput {
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  padding: 14px 18px 14px 24px;
  box-shadow: none;
  text-align: left;
}

body[data-search-mode="multi"] .search-input-shell {
  align-items: stretch;
  border-radius: 20px;
}

body[data-search-mode="multi"] #cardInput {
  min-height: 210px;
  border-radius: 14px;
  box-shadow: none;
}

.primary-search-actions {
  display: grid;
  align-self: start;
  align-items: start;
  align-content: start;
  gap: 8px;
  min-width: 178px;
}

body[data-search-mode="single"] .primary-search-actions {
  align-self: center;
  align-items: center;
  align-content: center;
  justify-self: center;
}

#startBtn.btn {
  min-height: 54px;
  border: 0;
  background: linear-gradient(135deg, #f2b705 0%, #ef4444 46%, #365bd7 100%);
  box-shadow: 0 14px 28px rgba(239, 68, 68, .22);
}

#startBtn.btn:hover {
  background: linear-gradient(135deg, #dfa600 0%, #dc2626 46%, #2847b8 100%);
  box-shadow: 0 16px 32px rgba(239, 68, 68, .26);
}

#stopBtn.btn {
  min-height: 54px;
}

.ready-count {
  margin-top: 8px;
  text-align: center;
}

.search-card-preview {
  width: min(500px, 100%);
  margin-top: 36px;
}

.search-stack-card,
.search-card-frame {
  width: min(360px, 74vw);
  border-radius: 22px;
}

.search-stack-card {
  box-shadow: 0 22px 50px rgba(31, 41, 55, .15);
}

.search-card-frame {
  border-width: 4px;
  border-radius: 22px;
  box-shadow: 0 32px 72px rgba(31, 41, 55, .22);
}

.search-card-frame img,
.search-card-placeholder {
  border-radius: 18px;
}

.search-card-placeholder {
  background:
    radial-gradient(circle at 50% 36%, rgba(255,255,255,.9) 0 20%, transparent 21%),
    linear-gradient(180deg, rgba(239,68,68,.16) 0 48%, rgba(31,41,55,.12) 48% 51%, rgba(255,255,255,.9) 51%),
    linear-gradient(135deg, rgba(242,183,5,.16), rgba(54,91,215,.13), rgba(34,197,94,.12));
}

.search-card-placeholder span {
  border-color: rgba(31, 41, 55, .18);
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.95) 0 22%, rgba(31,41,55,.18) 23% 27%, transparent 28%),
    linear-gradient(180deg, rgba(239,68,68,.9) 0 48%, rgba(31,41,55,.72) 48% 52%, #fff 52%);
  box-shadow: 20px 14px 0 rgba(54,91,215,.13), -14px 18px 0 rgba(242,183,5,.18);
}

.search-card-preview-text {
  padding: 14px 16px;
  border: 1px solid rgba(54,91,215,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 18px 38px rgba(31,41,55,.08);
}

.search-card-preview-text strong {
  font-size: 23px;
}

.search-side {
  align-self: stretch;
  padding: 16px;
  border: 1px solid rgba(54, 91, 215, .12);
  border-radius: 20px;
  background: rgba(255,255,255,.8);
  box-shadow: 0 18px 42px rgba(31, 41, 55, .09);
}

.search-mobile-collapse {
  border: 1px solid rgba(42, 62, 89, .08);
  border-radius: 16px;
  padding: 13px;
  background: rgba(248,250,252,.8);
}

.search-mobile-collapse + .search-mobile-collapse,
.search-side .advanced {
  margin-top: 12px;
}

.search-mobile-collapse summary h3,
.advanced summary {
  margin: 0;
  color: #26384f;
  letter-spacing: 0;
}

.search-side .shop-grid {
  gap: 9px;
  margin-top: 12px;
}

.shop-tile {
  min-height: 50px;
  border-radius: 13px;
  padding: 9px 9px 9px 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 41, 55, .045);
}

.shop-tile::before {
  width: 4px;
  border-radius: 13px 0 0 13px;
}

.shop-logo {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-radius: 7px;
}

.filter-row {
  margin-top: 12px;
}

.controls {
  gap: 8px;
}

.preset-group {
  border-color: rgba(42,62,89,.1);
  background: #fff;
}

.preset-btn.active {
  background: linear-gradient(135deg, var(--accent), #1f9d73);
}

#setFilter {
  min-height: 38px;
  border-color: rgba(42,62,89,.13);
}

.advanced {
  border: 1px dashed rgba(42, 62, 89, .16);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.66);
}

.run-status,
.run-metrics,
.progress {
  width: min(calc((100% - 28px) * 0.602), 920px);
  margin-left: 0;
  margin-right: auto;
}

.progress {
  height: 12px;
  background: rgba(255,255,255,.7);
}

#progressBar {
  background: linear-gradient(90deg, #f2b705, #ef4444, #365bd7, #22c55e);
}

.summary-panel,
.detail-panel {
  border: 0;
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 24px 58px rgba(31, 41, 55, .12);
}

.offer-grid {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 14px;
}

.offer-card {
  grid-template-columns: 108px minmax(0, 1fr);
  min-height: 172px;
  border-color: rgba(42,62,89,.1);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow: 0 18px 42px rgba(31,41,55,.1);
}

.offer-card.selected {
  border-color: rgba(242,183,5,.9);
  background:
    linear-gradient(135deg, rgba(255,248,222,.95), rgba(240,248,255,.98));
}

.offer-card-image {
  width: 108px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(42,62,89,.04);
}

.offer-card-image img {
  border-radius: 11px;
}

.offer-card-head h3 {
  font-size: 16px;
}

.offer-card-head strong {
  color: #15803d;
  font-size: 22px;
}

.soft-badge {
  border-radius: 999px;
}

@media (max-width: 1100px) {
  .search-layout {
    grid-template-columns: 1fr;
  }

  .run-status,
  .run-metrics,
  .progress {
    width: min(920px, 100%);
    margin-inline: auto;
  }

  .search-side {
    width: min(920px, 100%);
    margin-inline: auto;
  }

  .search-side .shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .search-hero-head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .search-side .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  header {
    border-radius: 16px;
    padding: 14px;
  }

  .header-menu {
    flex-direction: column;
  }

  .header-nav {
    justify-content: center;
    border-radius: 16px;
  }

  .search-panel {
    border-radius: 18px;
    padding: 14px;
  }

  .search-input-shell {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  body[data-search-mode="single"] #cardInput {
    height: 54px;
    min-height: 54px;
    max-height: 54px;
    text-align: center;
  }

  .primary-search-actions {
    min-width: 0;
  }

  .search-card-preview {
    margin-top: 24px;
  }

  .search-stack-card,
  .search-card-frame {
    width: min(265px, 72vw);
    border-radius: 18px;
  }

  .search-side {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .search-side .shop-grid,
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .offer-card {
    grid-template-columns: 90px minmax(0, 1fr);
    border-radius: 14px;
  }

  .offer-card-image {
    width: 90px;
  }
}
