/* Chrome extension clean preview — listing panel, SERP strips, dark popups */

.cl-ext-page { padding: 0 0 32px; }
.cl-ext-intro { margin-bottom: 24px; }
.cl-ext-intro h1 { font-size: 22px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.02em; }
.cl-ext-intro p { color: var(--cl-muted); font-size: 14px; margin: 0; max-width: 58ch; line-height: 1.55; }

.cl-ext-stack { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.cl-ext-block-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--cl-border);
  font-weight: 700; font-size: 13px;
}
.cl-ext-block-hd code { font-size: 11px; color: var(--cl-muted); font-weight: 500; }

.cl-ext-logo-type { display: block; height: 28px; width: auto; max-width: 100%; object-fit: contain; }
.cl-ext-logo-icon { display: block; width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.cl-ext-logo-link { display: inline-flex; text-decoration: none; flex-shrink: 0; }

/* ── Match score (shared panel + SERP) ─────────────────────── */

.cl-ext-score-circle {
  width: 96px; height: 96px; border-radius: 50%;
  border: 4px solid #666; background: #e8e8e8;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 auto; box-sizing: border-box;
}
.cl-ext-score-circle--hi { border-color: #666; background: #ececec; }
.cl-ext-score-circle--mid { border-color: #999; background: #f0f0f0; }
.cl-ext-score-circle--low { border-color: var(--cl-accent); background: #ffebed; }
.cl-ext-score-circle--low .cl-ext-score-num { color: var(--cl-accent); }

.cl-ext-score-num {
  font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: #1a1a1a;
}
.cl-ext-score-circle--mid .cl-ext-score-num { color: #666; }
.cl-ext-score-pct { font-size: 10px; font-weight: 600; color: #666; margin-top: 2px; }
.cl-ext-score-label { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 8px; text-align: center; }

/* ── Listing panel ───────────────────────────────────────────── */

.cl-ext-panel-demo {
  position: relative; min-height: 520px;
  background: linear-gradient(180deg, #f5f5f7 0%, #e5e7eb 100%);
  overflow: hidden;
}
.cl-ext-site-bg {
  position: absolute; inset: 0; padding: 20px; color: var(--cl-muted); font-size: 12px;
  background: repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(0,0,0,0.03) 48px, rgba(0,0,0,0.03) 49px);
}
.cl-ext-site-bg span { opacity: 0.7; }

.cl-ext-panel {
  position: absolute; top: 0; right: 0; width: min(360px, 58%); height: 100%;
  background: var(--cl-bg); color: var(--cl-text);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  display: flex; flex-direction: column; font-size: 14px;
  border-left: 1px solid var(--cl-border);
}
.cl-ext-panel .cl-panel-hd {
  padding: 14px 16px; border-bottom: 1px solid var(--cl-border); background: var(--cl-bg);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.cl-ext-panel .cl-panel-hd .cl-ext-logo-type { height: 26px; filter: none; }
.cl-ext-panel .cl-panel-hint { font-size: 11px; color: var(--cl-muted); white-space: nowrap; }
.cl-ext-panel .cl-panel-bd { padding: 16px; overflow-y: auto; flex: 1; background: var(--cl-bg); }

/* ── SERP demo ───────────────────────────────────────────────── */

.cl-ext-serp-demo { background: #f0f0f0; }
.cl-ext-serp-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--cl-border);
}
.cl-ext-serp-brand { height: 22px; width: auto; opacity: 0.9; }
.cl-ext-serp-filters { display: flex; flex-wrap: wrap; gap: 6px; }

.cl-ext-chip {
  display: inline-flex; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 600;
  border: 1px solid var(--cl-border); background: #fff; color: var(--cl-muted);
}
.cl-ext-chip.is-on { background: var(--cl-accent-soft); border-color: var(--cl-accent); color: var(--cl-accent); }

.cl-ext-serp-page { padding: 16px; }
.cl-ext-serp-page-hd {
  font-size: 13px; font-weight: 700; color: #333; margin-bottom: 12px;
}

.cl-ext-serp-listing {
  display: flex; align-items: stretch; margin-bottom: 10px;
  background: #fff; border: 1px solid #e0e0e0; border-radius: var(--cl-r);
  overflow: hidden; min-height: 120px;
}
.cl-ext-serp-strip {
  width: 180px; flex-shrink: 0; display: flex; flex-direction: column;
  background: #fff; border-right: 1px solid #e0e0e0;
  box-shadow: 1px 0 0 0 #e0e0e0;
}
.cl-ext-serp-strip--narrow { width: 118px; justify-content: center; align-items: center; }
.cl-ext-serp-match { text-align: center; padding: 10px 8px 8px; border-bottom: 1px solid #e8e8e8; }
.cl-ext-serp-match .cl-ext-score-circle { width: 80px; height: 80px; }
.cl-ext-serp-match .cl-ext-score-num { font-size: 1.5rem; }
.cl-ext-serp-match-sub { display: block; font-size: 10px; color: #666; margin-top: 4px; }
.cl-ext-serp-strip-bd { padding: 8px 10px 10px; flex: 1; }
.cl-ext-serp-row {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 5px 0; font-size: 11px; border-bottom: 1px solid #eee;
}
.cl-ext-serp-row:last-child { border-bottom: none; }
.cl-ext-serp-row strong { font-weight: 600; color: #2d2d2d; }
.cl-ext-serp-row span { font-weight: 700; color: #1a1a1a; }
.cl-ext-serp-loading { font-size: 11px; color: #666; font-style: italic; padding: 16px 8px; text-align: center; }

.cl-ext-serp-card { flex: 1; display: flex; min-width: 0; }
.cl-ext-serp-thumb {
  width: 140px; flex-shrink: 0; background: linear-gradient(135deg, #d4d4d8 0%, #a1a1aa 100%);
}
.cl-ext-serp-thumb--dim { opacity: 0.5; }
.cl-ext-serp-card-bd { padding: 12px 14px; flex: 1; min-width: 0; }
.cl-ext-serp-card-title { font-weight: 700; font-size: 13px; color: #1a1a1a; margin-bottom: 4px; }
.cl-ext-serp-card-price { font-size: 15px; font-weight: 800; color: #1a1a1a; }
.cl-ext-serp-card-meta { font-size: 11px; color: #666; margin-top: 4px; }

.cl-ext-listing--loading .cl-ext-serp-card-title,
.cl-ext-serp-listing--loading .cl-ext-serp-card-bd { opacity: 0.65; }

/* ── Dark popups (extension dark theme) ──────────────────────── */

.cl-ext-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cl-ext-mini {
  padding: 20px 16px; min-height: 280px;
  display: flex; align-items: flex-start; justify-content: center;
}
.cl-ext-mini--dark { background: #0e0e10; }

.cl-ext-popup--dark {
  width: 100%; max-width: 300px;
  background: #121214; color: #f2f2f7;
  border: 1px solid #3a3a3e; border-radius: var(--cl-r);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
.cl-ext-popup--wide { max-width: 320px; }

.cl-ext-popup-hd { padding: 14px 14px 0; }
.cl-ext-popup-hd--row { display: flex; align-items: center; gap: 10px; }
.cl-ext-popup-hd .cl-ext-logo-type { height: 26px; }

.cl-ext-popup-panel {
  margin: 12px 14px; padding: 14px;
  background: #252529; border: 1px solid #3a3a3e; border-radius: var(--cl-r);
}
.cl-ext-popup-score { margin: 0 0 6px; font-size: 14px; color: #f2f2f7; }
.cl-ext-popup-score strong { font-size: 1.25rem; font-weight: 800; color: #ff4d5e; }
.cl-ext-popup-sub { margin: 0 0 12px; font-size: 12px; line-height: 1.45; color: #c7c7cc; }
.cl-ext-popup-alt { margin: 10px 0 0; font-size: 12px; text-align: center; }
.cl-ext-popup-alt a { color: #ff4d5e; text-decoration: none; font-weight: 600; }
.cl-ext-popup-hint { margin: 10px 0 0; font-size: 11px; color: #8e8e93; line-height: 1.4; }

.cl-ext-popup-ft {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px 14px; border-top: 1px solid #3a3a3e;
  font-size: 12px;
}
.cl-ext-popup-ft a { color: #ff4d5e; text-decoration: none; font-weight: 600; }
.cl-ext-popup-ft span { color: #8e8e93; }

.cl-ext-popup--dark .cl-ext-lbl { color: #c7c7cc; }
.cl-ext-popup--dark .cl-ext-opt { font-weight: 400; color: #8e8e93; }
.cl-ext-popup--dark .cl-ext-inp {
  background: #1c1c1f; border-color: #48484c; color: #f2f2f7;
  font-size: 13px;
}
.cl-ext-popup--dark .cl-ext-inp::placeholder { color: #8e8e93; }
.cl-ext-popup--dark .cl-btn--ghost.cl-ext-popup-ghost {
  background: transparent; border-color: #48484c; color: #c7c7cc;
}
.cl-ext-popup--dark .cl-btn--ghost.cl-ext-popup-ghost:hover {
  border-color: #ff4d5e; color: #ff4d5e; background: rgba(255,77,94,0.08);
}
.cl-ext-popup--dark .cl-btn--accent {
  background: #ff4d5e; border-color: #ff4d5e;
}
.cl-ext-popup--dark .cl-btn--accent:hover {
  background: #e63e4f; border-color: #e63e4f;
}

.cl-ext-feat {
  padding: 10px 14px; background: var(--cl-surface);
  font-size: 11px; color: var(--cl-muted); border-top: 1px solid var(--cl-border);
}

@media (max-width: 900px) {
  .cl-ext-grid3 { grid-template-columns: 1fr; }
  .cl-ext-panel { width: min(300px, 72%); }
  .cl-ext-serp-listing { flex-direction: column; }
  .cl-ext-serp-strip { width: 100%; border-right: none; border-bottom: 1px solid #e0e0e0; flex-direction: row; }
  .cl-ext-serp-match { border-bottom: none; border-right: 1px solid #e8e8e8; flex-shrink: 0; }
  .cl-ext-serp-strip-bd { display: flex; gap: 12px; align-items: center; padding: 10px 12px; }
  .cl-ext-serp-row { border: none; padding: 0; flex-direction: column; gap: 2px; }
}
