/* ============================================================================
   EMBEDDED PLAYGROUND — the try-it box that lives on a product landing page.
   ONE shared stylesheet for every vertical. Do not fork this per page.

   Relationship to public/playground.html: NONE. This is written fresh against
   the same response contract, deliberately, so the 3,900-line playground
   monolith is not duplicated onto 25 marketing pages. If the wire shape
   changes, both change — that is a two-file edit, not a twenty-six-file one.

   ⚠️ TRADEMARK: the result area reproduces the LAYOUT, proportions, type scale
   and colour roles of a real search results page so a developer can see exactly
   what the API returns and where it sits. It deliberately carries NO search
   engine logo, wordmark or favicon. Layout is not a mark; a logo is.

   Theme: the site drives light/dark with [data-theme] on <html>, NOT with
   prefers-color-scheme. Every dark rule below is [data-theme=dark]-scoped to
   match. An emulated OS dark mode will not exercise these.

   Layout: the card is a container (`container-type: inline-size`) so every
   breakpoint below responds to the BOX's width, not the viewport's — the same
   file works in a full-width section and in a half-width column. A viewport
   fallback covers browsers without container queries.
   ========================================================================== */

.ep {
  --ep-radius: 14px;
  --ep-pad: 1.25rem;
  --ep-ctl-h: 44px;                 /* every control ≥ 44px tall: the mobile tap-target floor */
  --ep-ring: color-mix(in srgb, var(--accent) 45%, transparent);
  margin: 2.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--ep-radius);
  background: var(--bg-card, var(--bg-secondary));
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 12px 40px -24px rgba(17, 24, 39, 0.25);
  overflow: hidden;                 /* keeps the replica's square corners inside the card */
  container-type: inline-size;
  color: var(--text-primary);
  font-size: 0.9375rem;
  min-width: 0;
}
[data-theme=dark] .ep { box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 12px 40px -24px rgba(0,0,0,0.8); }
.ep *, .ep *::before, .ep *::after { box-sizing: border-box; }
.ep-i { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; }

/* ── header ─────────────────────────────────────────────────────────────── */
.ep__head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; flex-wrap: wrap;
  padding: 0.9rem var(--ep-pad);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent);
}
.ep__head-l, .ep__head-r { display: flex; align-items: center; gap: 0.75rem; min-width: 0; flex-wrap: wrap; }
.ep__title { font-size: 1.05rem; font-weight: 650; margin: 0; letter-spacing: -0.01em; }
.ep__live {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent);
  animation: ep-pulse 2.2s ease-out infinite;
}
@keyframes ep-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ep__meta { font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; }
.ep__docs {
  display: inline-flex; align-items: center; gap: 0.3rem; min-height: 32px;
  font-size: 0.8rem; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap;
}
.ep__docs:hover { text-decoration: underline; }

/* ── form ───────────────────────────────────────────────────────────────── */
.ep__form { padding: 1rem var(--ep-pad) 1.1rem; display: grid; gap: 0.8rem; }

/* endpoint switch */
.ep__modes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--bg-secondary);
}
.ep__mode {
  font: inherit; cursor: pointer; border: 0; background: transparent; color: var(--text-secondary);
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem;
  padding: 0.55rem 0.9rem; min-height: var(--ep-ctl-h); text-align: left;
  border-right: 1px solid var(--border);
}
.ep__mode:last-child { border-right: 0; }
.ep__mode[aria-checked="true"] { background: var(--bg-card, #fff); color: var(--text-primary); box-shadow: inset 0 -2px 0 var(--accent); }
.ep__mode:disabled { cursor: default; }
.ep__mode-l { font-size: 0.88rem; font-weight: 650; }
.ep__mode-p { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.72rem; color: var(--text-muted, var(--text-secondary)); }
.ep__mode[aria-checked="true"] .ep__mode-p { color: var(--accent); }
.ep__mode-hint { margin: -0.35rem 0 0; font-size: 0.8rem; color: var(--text-secondary); }

.ep__row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: flex-end; }
.ep__field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; flex: 0 1 auto; }
.ep__field--grow { flex: 1 1 18rem; }
.ep__field--run { flex: 0 0 auto; }
.ep__field.is-off { display: none; }
.ep__label {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.74rem; font-weight: 650; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-secondary);
}
.ep__label--ghost { visibility: hidden; }
.ep__tag {
  text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 0.66rem;
  padding: 0.1rem 0.4rem; border-radius: 999px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.ep__help { font-size: 0.72rem; color: var(--text-muted, var(--text-secondary)); }

.ep__input, .ep__select {
  font: inherit; font-size: 0.92rem;
  height: var(--ep-ctl-h); padding: 0 0.8rem;
  color: var(--text-primary);
  background: var(--bg-primary, #fff);
  border: 1px solid var(--border-light, var(--border));
  border-radius: 9px;
  min-width: 0; width: 100%;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.ep__select {
  cursor: pointer; padding-right: 2rem; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 0.6rem center;
}
.ep__input:focus, .ep__select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ep-ring); }
.ep__input.is-invalid, .ep__select.is-invalid { border-color: #d93025; box-shadow: 0 0 0 3px rgba(217,48,37,0.18); }
.ep__input::placeholder { color: var(--text-muted, var(--text-secondary)); }

.ep__run {
  font: inherit; font-size: 0.92rem; font-weight: 650;
  height: var(--ep-ctl-h); padding: 0 1.3rem; border: 0; border-radius: 9px; cursor: pointer;
  color: #fff; background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 16px -8px var(--accent);
  transition: filter 0.12s, transform 0.08s;
}
.ep__run:hover:not(:disabled) { filter: brightness(1.07); }
.ep__run:active:not(:disabled) { transform: translateY(1px); }
.ep__run:disabled { opacity: 0.65; cursor: progress; }
.ep__run .ep-i { width: 1.05em; height: 1.05em; }
.ep__run.is-busy .ep-i--bolt { animation: ep-flicker 0.9s ease-in-out infinite; }
@keyframes ep-flicker { 50% { opacity: 0.35; } }

.ep__examples { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: -0.2rem; }
.ep__examples-l { font-size: 0.76rem; color: var(--text-secondary); margin-right: 0.15rem; }
.ep__chip {
  font: inherit; font-size: 0.78rem; cursor: pointer;
  min-height: 32px; padding: 0.2rem 0.7rem; border-radius: 999px;
  color: var(--text-primary); background: var(--bg-secondary); border: 1px solid var(--border);
  transition: border-color 0.12s, color 0.12s;
}
.ep__chip:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.ep__chip:disabled { opacity: 0.55; cursor: default; }

/* "more parameters" disclosure */
.ep__more { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-secondary); }
.ep__more-s {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 0.45rem;
  min-height: var(--ep-ctl-h); padding: 0 0.9rem;
  font-size: 0.85rem; font-weight: 600; color: var(--text-primary);
}
.ep__more-s::-webkit-details-marker { display: none; }
.ep__more-s .ep-i--chevron { transition: transform 0.15s; color: var(--text-secondary); }
.ep__more[open] .ep__more-s .ep-i--chevron { transform: rotate(180deg); }
.ep__more-n { margin-left: auto; font-size: 0.72rem; font-weight: 600; color: var(--accent); }
.ep__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.8rem 0.75rem;
  padding: 0.25rem 0.9rem 0.95rem; border-top: 1px solid var(--border);
}
.ep__field--toggle { justify-content: flex-start; }
.ep__switch { display: inline-flex; align-items: center; gap: 0.55rem; min-height: var(--ep-ctl-h); cursor: pointer; font-size: 0.85rem; color: var(--text-secondary); }
.ep__switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ep__switch-track {
  width: 40px; height: 24px; border-radius: 999px; background: var(--border-light, var(--border)); position: relative; flex-shrink: 0;
  transition: background 0.15s;
}
.ep__switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25); transition: transform 0.15s;
}
.ep__switch input:checked + .ep__switch-track { background: var(--accent); }
.ep__switch input:checked + .ep__switch-track::after { transform: translateX(16px); }
.ep__switch input:focus-visible + .ep__switch-track { box-shadow: 0 0 0 3px var(--ep-ring); }
.ep__switch input:disabled ~ * { opacity: 0.5; }
/* The On/Off label. It inherited acceptably from `.ep__switch`, but it was the only class in
   the component with no rule of its own — and 'renders acceptably by inheritance' is exactly
   what the emitted-but-unstyled check exists to stop being an unexamined assumption.
   `tabular-nums` also stops the control shifting width as the word changes. */
.ep__switch-text { font-variant-numeric: tabular-nums; line-height: 1; }

/* request line */
.ep__request {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.55rem 0.55rem 0.9rem; border-radius: 10px;
  background: #0f172a; color: #e2e8f0;
  border: 1px solid #1e293b;
}
[data-theme=dark] .ep__request { background: #0a0a0a; border-color: var(--border); }
.ep__request-l { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; }
.ep__curl {
  margin: 0; min-width: 0; overflow-x: auto; white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.76rem; line-height: 1.5; color: #e2e8f0;
  scrollbar-width: thin;
}
.ep__copy {
  font: inherit; font-size: 0.74rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 34px; padding: 0 0.7rem; border-radius: 7px;
  color: #cbd5e1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.12s, color 0.12s;
}
.ep__copy:hover { background: rgba(255,255,255,0.12); color: #fff; }
.ep__copy.is-done { color: #86efac; border-color: rgba(134,239,172,0.4); }
.ep__copy--json { margin-left: auto; color: var(--text-secondary); background: transparent; border-color: var(--border); }
.ep__copy--json:hover { background: var(--bg-secondary); color: var(--text-primary); }
.ep__copy--json.is-done { color: var(--accent); border-color: var(--accent); }
.ep__turnstile:empty { display: none; }
.ep__turnstile { display: flex; justify-content: flex-start; }

/* ── notices ────────────────────────────────────────────────────────────── */
.ep__note {
  margin: 0 var(--ep-pad) 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-left-width: 3px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  font-size: 0.86rem; line-height: 1.55; color: var(--text-secondary);
}
.ep__note strong { color: var(--text-primary); }
.ep__note a { color: var(--accent); font-weight: 600; text-decoration: none; }
.ep__note a:hover { text-decoration: underline; }
.ep__note code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8em; padding: 0.05rem 0.3rem; border-radius: 4px; background: color-mix(in srgb, var(--text-primary) 8%, transparent); }
.ep__note--error { border-color: rgba(217,48,37,0.35); border-left-color: #d93025; background: rgba(217,48,37,0.06); }
[data-theme=dark] .ep__note--error { background: rgba(242,139,130,0.10); border-left-color: #f28b82; }
.ep__note--cta { padding: 0; border: 0; background: transparent; }
.ep__note--cta .ep__cta { margin: 0; }

/* the sign-in call to action — one shape, everywhere it appears */
.ep__cta {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t b" "p b"; gap: 0.15rem 1rem; align-items: center;
  margin: 0.9rem 0 0; padding: 0.95rem 1.1rem; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--accent) 3%, transparent));
}
.ep-serp .ep__cta { margin: 1rem 1.25rem 1.25rem; }
.ep__cta-t { grid-area: t; font-size: 0.9rem; font-weight: 650; color: var(--text-primary); }
.ep__cta-p { grid-area: p; font-size: 0.78rem; color: var(--text-secondary); }
.ep__cta-b {
  grid-area: b; justify-self: end;
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--ep-ctl-h); padding: 0 1.1rem;
  border-radius: 9px; background: var(--accent); color: #fff !important; font-size: 0.88rem; font-weight: 650; text-decoration: none !important; white-space: nowrap;
}
.ep__cta-b:hover { filter: brightness(1.07); }

/* ── output shell ───────────────────────────────────────────────────────── */
.ep__out { border-top: 1px solid var(--border); }
.ep__tabs { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--border); padding: 0 var(--ep-pad); min-height: 46px; }
.ep__tab {
  font: inherit; font-size: 0.84rem; font-weight: 600;
  min-height: 46px; padding: 0 0.9rem; border: 0; background: none; cursor: pointer;
  color: var(--text-secondary); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.ep__tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.ep__summary { margin-left: 0.5rem; font-size: 0.74rem; color: var(--text-muted, var(--text-secondary)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ep__panel { padding: 0; }
.ep__panel[hidden] { display: none !important; }

.ep__json {
  margin: 0; padding: 1rem var(--ep-pad);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem; line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-secondary);
  max-height: 32rem; overflow: auto;          /* never lets JSON blow out the page */
  white-space: pre; tab-size: 2;
}
.ep-j__k { color: #0f766e; } .ep-j__s { color: #1d4ed8; } .ep-j__n { color: #b45309; } .ep-j__b { color: #7c3aed; } .ep-j__n0 { color: #6b7280; font-style: italic; }
[data-theme=dark] .ep-j__k { color: #5eead4; } [data-theme=dark] .ep-j__s { color: #93c5fd; } [data-theme=dark] .ep-j__n { color: #fbbf24; } [data-theme=dark] .ep-j__b { color: #c4b5fd; } [data-theme=dark] .ep-j__n0 { color: #9ca3af; }

/* idle + loading states share the sketch */
.ep__idle, .ep__loading { padding: 1.4rem var(--ep-pad) 1.6rem; }
.ep__idle { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 1.25rem; align-items: center; }
.ep__idle-art { display: grid; gap: 0.45rem; padding: 0.9rem; border-radius: 10px; border: 1px dashed var(--border-light, var(--border)); }
.ep__idle-bar { height: 22px; border-radius: 999px; border: 1px solid var(--border); margin-bottom: 0.35rem; }
.ep__idle-r { display: flex; align-items: center; gap: 0.4rem; }
.ep__idle-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.ep__idle-l { height: 8px; border-radius: 999px; background: var(--border); width: 100%; }
.ep__idle-l--s { width: 40%; height: 6px; } .ep__idle-l--t { width: 78%; height: 11px; background: color-mix(in srgb, #1a0dab 28%, var(--border)); } .ep__idle-l--m { width: 62%; }
[data-theme=dark] .ep__idle-l--t { background: color-mix(in srgb, #8ab4f8 35%, var(--border)); }
.ep__idle-text { font-size: 0.86rem; line-height: 1.55; color: var(--text-secondary); }
.ep__idle-text strong { display: block; color: var(--text-primary); margin-bottom: 0.3rem; }
.ep__idle-art--pulse .ep__idle-l, .ep__idle-art--pulse .ep__idle-dot { animation: ep-shimmer 1.4s ease-in-out infinite; }
@keyframes ep-shimmer { 50% { opacity: 0.35; } }
.ep__loading-head { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--text-primary); }
.ep__loading-time { margin-left: auto; font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; color: var(--text-secondary); }
.ep__loading-hint { font-size: 0.78rem; color: var(--text-secondary); margin: 0.25rem 0 0.9rem; }
.ep__spin {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); border-top-color: var(--accent);
  animation: ep-spin 0.7s linear infinite;
}
@keyframes ep-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ep__spin { animation-duration: 2.4s; }
  .ep__live, .ep__idle-art--pulse .ep__idle-l, .ep__idle-art--pulse .ep__idle-dot, .ep__run.is-busy .ep-i--bolt { animation: none; }
}

/* ============================================================================
   SERP REPLICA
   Faithful structure and proportions. Colour ROLES match a real results page
   (visited-blue title, grey URL line, dark-grey snippet) because that is what
   makes it recognisable as a SERP — but no marks are reproduced.
   ========================================================================== */
.ep-serp {
  --s-bg: #fff; --s-text: #202124; --s-sub: #4d5156; --s-muted: #70757a; --s-line: #ebebeb; --s-title: #1a0dab; --s-chip: #f1f3f4; --s-card: #fff; --s-border: #dadce0; --s-star: #fbbc04; --s-ad: #202124; --s-snip: #474747;
  background: var(--s-bg); color: var(--s-text);
  font-family: Roboto, Arial, system-ui, -apple-system, sans-serif;
  max-height: 44rem; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin;
}
[data-theme=dark] .ep-serp { --s-bg: #202124; --s-text: #e8eaed; --s-sub: #bdc1c6; --s-muted: #9aa0a6; --s-line: #3c4043; --s-title: #8ab4f8; --s-chip: #303134; --s-card: #303134; --s-border: #3c4043; --s-ad: #e8eaed; --s-snip: #bdc1c6; }
.ep-serp a:not(.ep-serp__title) { color: inherit; }
.ep-serp__muted { color: var(--s-muted); }
.ep-serp__sep { color: var(--s-muted); margin: 0 0.35rem; }

.ep-serp__bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.25rem 0.5rem;
  position: sticky; top: 0; z-index: 2; background: var(--s-bg);
}
.ep-serp__q {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 0.6rem;
  height: 44px; padding: 0 1rem;
  border: 1px solid #dfe1e5; border-radius: 24px; background: #fff;
  box-shadow: 0 1px 6px rgba(32,33,36,0.12);
  font-size: 0.95rem; color: #202124;
}
[data-theme=dark] .ep-serp__q { background: #303134; border-color: #5f6368; color: #e8eaed; box-shadow: none; }
.ep-serp__q .ep-i { color: #9aa0a6; }
.ep-serp__qtext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-serp__engine { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--s-muted); white-space: nowrap; }
.ep-serp__tabs {
  display: flex; gap: 1.25rem; padding: 0.35rem 1.25rem 0; border-bottom: 1px solid var(--s-line);
  font-size: 0.8rem; color: var(--s-muted); overflow: hidden; white-space: nowrap;
}
.ep-serp__tabs span { padding: 0.35rem 0 0.6rem; border-bottom: 3px solid transparent; }
.ep-serp__tabs .is-on { color: var(--s-title); border-bottom-color: var(--s-title); }

.ep-serp__count { font-size: 0.76rem; color: var(--s-muted); padding: 0.8rem 1.25rem 0.2rem; }

.ep-serp__cols { display: grid; grid-template-columns: minmax(0, 1fr); }
.ep-serp__main { min-width: 0; padding-top: 0.7rem; }
.ep-serp__rail { min-width: 0; padding: 0.9rem 1.25rem 0 0; }
@container (min-width: 52rem) {
  .ep-serp__cols.has-rail { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); column-gap: 0.5rem; }
}
@container (max-width: 52rem) {
  .ep-serp__rail { padding: 0 1.25rem 0.5rem; }
}

/* one organic result */
.ep-serp__r { padding: 0 1.25rem; margin-bottom: 30px; }
.ep-serp__r:last-child { margin-bottom: 0.75rem; }
.ep-serp__site { display: flex; align-items: center; gap: 12px; margin-bottom: 0.35rem; min-width: 0; }
/* The result's OWN favicon, 26px in a 28px box, exactly as a real SERP row.
   The trademark line is unchanged: a result site's icon is that site's mark,
   shown as attribution. No SEARCH ENGINE logo, wordmark or favicon appears. */
.ep-serp__favwrap {
  width: 28px; height: 28px; flex-shrink: 0; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
/* The letter circle is the DEFAULT, not the fallback: a third-party icon takes
   time to arrive and some never do, and an empty ring is worse than a letter.
   The icon fades in on top once it has actually decoded. */
.ep-serp__fav {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  opacity: 0; transition: opacity 0.12s ease;
}
/* Always painted. Hidden only once a real icon is decoded and shown over it. */
.ep-serp__dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--s-chip); color: var(--s-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; font-family: Arial, sans-serif;
}
.ep-serp__favwrap.is-loaded .ep-serp__fav { opacity: 1; }
.ep-serp__favwrap.is-loaded .ep-serp__dot { visibility: hidden; }
.ep-serp__dot--sm { width: 18px; height: 18px; font-size: 0.55rem; }
.ep-serp__favwrap--sm { width: 20px; height: 20px; }
.ep-serp__favwrap--sm .ep-serp__fav { width: 18px; height: 18px; }
.ep-serp__host { display: flex; flex-direction: column; min-width: 0; }
.ep-serp__hostname { font-size: 0.875rem; color: var(--s-text); line-height: 1.375; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-serp__crumb { font-size: 0.75rem; line-height: 1.5; color: var(--s-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
/* Two classes deep on purpose. The page's own `a { color: var(--accent) }` and
   `a:not(.btn):hover { color: var(--accent-hover) }` outrank a single class and
   were repainting every title — black at rest, brand-teal on hover. */
.ep-serp .ep-serp__title {
  display: block; margin-bottom: 0.2rem;
  font-size: 1.25rem; line-height: 1.3; font-weight: 400;
  color: var(--s-title); text-decoration: none;
  overflow-wrap: anywhere;
}
.ep-serp .ep-serp__title:hover { color: var(--s-title); text-decoration: underline; }
.ep-serp .ep-serp__title--sm { font-size: 1rem; }
.ep-serp__snip {
  font-size: 0.875rem; line-height: 1.571; color: var(--s-snip); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.ep-serp__snip em, .ep-serp__snip b { font-weight: 700; color: var(--s-text); font-style: normal; }
.ep-serp__px { display: inline-block; margin-left: 0.4rem; font-size: 0.64rem; font-weight: 600; color: var(--s-muted); vertical-align: 2px; padding: 0 0.3rem; border: 1px solid var(--s-border); border-radius: 4px; }
.ep-serp__rich { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0; font-size: 0.78rem; color: var(--s-sub); margin-bottom: 0.2rem; }
.ep-serp__rating { font-weight: 600; margin-right: 0.3rem; color: var(--s-text); }
.ep-serp__stars { position: relative; display: inline-block; color: var(--s-border); font-size: 0.8rem; letter-spacing: 1px; line-height: 1; margin-right: 0.3rem; white-space: nowrap; }
.ep-serp__stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--s-star); white-space: nowrap; }
.ep-serp__vstats { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.3rem; font-size: 0.76rem; color: var(--s-muted); }
.ep-serp__vstats .ep-i { color: var(--s-muted); }
.ep-serp__sitelinks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; margin: 0.7rem 0 0.2rem 0.35rem; }
.ep-serp__sl a { font-size: 0.95rem; color: var(--s-title); text-decoration: none; }
.ep-serp__sl a:hover { text-decoration: underline; }
.ep-serp__sl-snip { font-size: 0.78rem; color: var(--s-sub); line-height: 1.45; overflow-wrap: anywhere; }
.ep-serp__faq { margin-top: 0.5rem; }
.ep-serp__faq-q { font-size: 0.84rem; color: var(--s-text); padding: 0.4rem 0; border-top: 1px solid var(--s-line); }

/* format=simple */
.ep-serp__simple { list-style: none; margin: 0; padding: 0.4rem 0 0.6rem; }
.ep-serp__simple li { display: flex; gap: 0.8rem; padding: 0.6rem 1.25rem; border-bottom: 1px solid var(--s-line); min-width: 0; }
.ep-serp__simple li > div { min-width: 0; }
.ep-serp__simple-pos { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--s-chip); color: var(--s-muted); font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* ads */
.ep-serp__ad { padding: 0 1.25rem; margin-bottom: 30px; }
.ep-serp__adtag { font-size: 0.78rem; font-weight: 700; color: var(--s-ad); margin-bottom: 0.25rem; }

/* feature blocks */
.ep-serp__block { margin: 0.9rem 1.25rem; padding: 0.95rem 1.05rem; border: 1px solid var(--s-border); border-radius: 12px; background: var(--s-card); min-width: 0; }
.ep-serp__blockhead { display: flex; align-items: center; gap: 0.45rem; font-size: 0.86rem; font-weight: 600; color: var(--s-text); margin-bottom: 0.55rem; }
.ep-serp__blockbody { font-size: 0.88rem; line-height: 1.6; color: var(--s-sub); overflow-wrap: anywhere; }
.ep-serp__blockbody em, .ep-serp__blockbody b { font-weight: 700; color: var(--s-text); font-style: normal; }

.ep-serp__fs { border-color: transparent; background: transparent; padding-left: 0; padding-right: 0; margin-top: 0.3rem; border-bottom: 1px solid var(--s-line); border-radius: 0; }
.ep-serp__fs-text { font-size: 1rem; color: var(--s-text); line-height: 1.55; }
.ep-serp__fs-src { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.7rem; text-decoration: none; min-width: 0; }
.ep-serp__fs-src > span { min-width: 0; display: flex; flex-direction: column; }
.ep-serp__fs-srctitle { font-size: 0.95rem; color: var(--s-title); }

.ep-serp__aio { background: linear-gradient(135deg, rgba(66,133,244,0.07), rgba(52,168,83,0.05) 50%, rgba(251,188,4,0.06)); border-color: transparent; }
[data-theme=dark] .ep-serp__aio { background: linear-gradient(135deg, rgba(138,180,248,0.10), rgba(129,201,149,0.06) 50%, rgba(253,214,99,0.08)); }
.ep-serp__aio .ep-i--sparkle { color: #4285f4; }
.ep-serp__srcs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.ep-serp__src { display: inline-flex; align-items: center; gap: 0.4rem; max-width: 100%; min-height: 32px; padding: 0.2rem 0.7rem 0.2rem 0.35rem; border-radius: 999px; background: var(--s-bg); border: 1px solid var(--s-border); text-decoration: none; font-size: 0.76rem; color: var(--s-text); }
.ep-serp__src-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ep-serp__kp { padding: 0.95rem 1.05rem; border: 1px solid var(--s-border); border-radius: 12px; background: var(--s-card); }
.ep-serp__kp-title { font-size: 1.35rem; font-weight: 400; color: var(--s-text); line-height: 1.25; }
.ep-serp__kp-sub { font-size: 0.82rem; color: var(--s-muted); margin-top: 0.1rem; }
.ep-serp__kp-desc { font-size: 0.86rem; line-height: 1.55; color: var(--s-sub); margin-top: 0.6rem; overflow-wrap: anywhere; }
.ep-serp__facts { margin: 0.7rem 0 0; display: grid; gap: 0.35rem; }
.ep-serp__fact { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 0.5rem; font-size: 0.82rem; }
.ep-serp__fact dt { font-weight: 600; color: var(--s-text); } .ep-serp__fact dd { margin: 0; color: var(--s-sub); overflow-wrap: anywhere; }
.ep-serp__kp-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin-top: 0.75rem; }
.ep-serp__kp-links a { font-size: 0.82rem; color: var(--s-title); text-decoration: none; }
.ep-serp__kp-links a:hover { text-decoration: underline; }

.ep-serp__places { display: grid; gap: 0; }
.ep-serp__place { padding: 0.6rem 0; border-top: 1px solid var(--s-line); }
.ep-serp__place:first-child { border-top: 0; padding-top: 0.1rem; }
.ep-serp__place-name { font-size: 0.95rem; color: var(--s-text); }
.ep-serp__place-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.3rem; font-size: 0.78rem; color: var(--s-sub); margin-top: 0.1rem; }
.ep-serp__place-line { font-size: 0.78rem; color: var(--s-sub); }

.ep-serp__paa-block { padding-bottom: 0.3rem; }
.ep-serp__paa { border-top: 1px solid var(--s-line); }
.ep-serp__paa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 44px; padding: 0.5rem 0; font-size: 0.9rem; color: var(--s-text); }
.ep-serp__paa summary::-webkit-details-marker { display: none; }
.ep-serp__paa summary .ep-i { color: var(--s-muted); transition: transform 0.15s; }
.ep-serp__paa[open] summary .ep-i { transform: rotate(180deg); }
.ep-serp__paa-a { font-size: 0.85rem; line-height: 1.55; color: var(--s-sub); padding: 0 0 0.6rem; overflow-wrap: anywhere; }
.ep-serp__paa-src { display: flex; flex-direction: column; gap: 0.1rem; padding: 0 0 0.8rem; font-size: 0.9rem; color: var(--s-title); text-decoration: none; min-width: 0; }

.ep-serp__rail { display: flex; gap: 0.7rem; overflow-x: auto; padding-bottom: 0.3rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.ep-serp__card { flex: 0 0 11.5rem; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; text-decoration: none; scroll-snap-align: start; }
.ep-serp__card--shop { padding: 0.7rem; border: 1px solid var(--s-border); border-radius: 10px; background: var(--s-bg); flex-basis: 10.5rem; }
.ep-serp__thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--s-chip); display: block; }
.ep-serp__thumb--none { display: flex; align-items: center; justify-content: center; color: var(--s-muted); }
.ep-serp__thumb--none .ep-i { width: 1.6rem; height: 1.6rem; }
.ep-serp__card-t { font-size: 0.86rem; line-height: 1.35; color: var(--s-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-serp__card-m { font-size: 0.74rem; color: var(--s-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-serp__price { font-size: 0.95rem; font-weight: 600; color: var(--s-text); }
.ep-serp__price s { font-weight: 400; color: var(--s-muted); margin-left: 0.2rem; }
.ep-serp__price em { font-style: normal; font-size: 0.72rem; font-weight: 600; color: #188038; margin-left: 0.3rem; }

.ep-serp__related { padding: 0.9rem 1.25rem 1.2rem; }
.ep-serp__pills { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ep-serp__pill { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 40px; padding: 0.3rem 0.9rem; border-radius: 999px; background: var(--s-chip); color: var(--s-text); font-size: 0.86rem; min-width: 0; }
.ep-serp__pill .ep-i { color: var(--s-muted); }
.ep-serp__pill { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* withheld-on-free strip */
.ep-serp__locked { margin: 0.9rem 1.25rem 0.4rem; padding: 0.85rem 1rem; border: 1px dashed var(--s-border); border-radius: 12px; }
.ep-serp__locked-head { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 600; color: var(--s-text); }
.ep-serp__locked-head .ep-i { color: var(--s-muted); }
.ep-serp__locked-list { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.55rem 0 0.5rem; }
.ep-serp__locked-item { font-size: 0.74rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--s-chip); color: var(--s-sub); }
.ep-serp__locked-body { font-size: 0.78rem; line-height: 1.5; color: var(--s-sub); }
.ep-serp__locked-body a { color: var(--s-title); }
.ep-serp__locked-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.ep-serp__locked--info { border-style: solid; }
.ep-serp__locked--info .ep-i { color: var(--s-title); }

.ep-serp__empty { padding: 2.2rem 1.25rem; text-align: center; }
.ep-serp__empty-t { font-size: 0.95rem; color: var(--s-text); }
.ep-serp__empty-n { font-size: 0.8rem; color: var(--s-muted); margin-top: 0.4rem; line-height: 1.5; }

/* ── narrow containers: the box may sit in a column, or on a phone ──────── */
@container (max-width: 40rem) {
  .ep { --ep-pad: 1rem; }
  .ep__head { padding: 0.8rem var(--ep-pad); }
  .ep__row { flex-direction: column; align-items: stretch; }
  .ep__field, .ep__field--grow, .ep__field--run { flex: 1 1 auto; }
  .ep__label--ghost { display: none; }
  .ep__run { width: 100%; }
  .ep__modes { grid-template-columns: 1fr 1fr; }
  .ep__mode-p { display: none; }
  .ep__grid { grid-template-columns: 1fr 1fr; }
  .ep__request { grid-template-columns: 1fr auto; grid-template-areas: "l c" "p p"; }
  .ep__request-l { grid-area: l; } .ep__copy--curl, .ep__request > .ep__copy { grid-area: c; } .ep__curl { grid-area: p; }
  .ep__idle { grid-template-columns: 1fr; }
  .ep__idle-art { display: none; }
  .ep__cta { grid-template-columns: 1fr; grid-template-areas: "t" "p" "b"; }
  .ep__cta-b { justify-self: stretch; justify-content: center; margin-top: 0.5rem; }
  .ep__summary { display: none; }
  .ep-serp__bar, .ep-serp__r, .ep-serp__ad, .ep-serp__count, .ep-serp__related, .ep-serp__tabs { padding-left: 1rem; padding-right: 1rem; }
  .ep-serp__block, .ep-serp__locked { margin-left: 1rem; margin-right: 1rem; }
  .ep-serp .ep__cta { margin-left: 1rem; margin-right: 1rem; }
  .ep-serp__engine { display: none; }
  .ep-serp .ep-serp__title { font-size: 1.125rem; }
  .ep-serp__sitelinks { grid-template-columns: 1fr; }
  .ep-serp__pills { grid-template-columns: 1fr; }
  .ep-serp__card { flex-basis: 9.5rem; }
}
@container (max-width: 24rem) {
  .ep__grid { grid-template-columns: 1fr; }
}
/* Fallback for browsers without container queries (the rules above are ignored there). */
@supports not (container-type: inline-size) {
  @media (max-width: 640px) {
    .ep { --ep-pad: 1rem; }
    .ep__row { flex-direction: column; align-items: stretch; }
    .ep__field--grow, .ep__field--run { flex: 1 1 auto; }
    .ep__label--ghost { display: none; }
    .ep__run { width: 100%; }
    .ep__grid { grid-template-columns: 1fr 1fr; }
    .ep__idle { grid-template-columns: 1fr; }
    .ep__idle-art { display: none; }
    .ep__cta { grid-template-columns: 1fr; grid-template-areas: "t" "p" "b"; }
    .ep__summary { display: none; }
    .ep-serp__engine { display: none; }
    .ep-serp__sitelinks, .ep-serp__pills { grid-template-columns: 1fr; }
  }
}

/* ============================================================================
   MEDIA RESULT SURFACES — news, images, videos.
   These render inside `.ep-serp`, so they inherit its colour tokens, type scale
   and scroll container. Only the layout that differs from a web result is here.
   ========================================================================== */

/* news — headline list with the source line above the title, thumbnail right */
.ep-news { padding: 0.2rem 0 0.5rem; }
.ep-news__r { display: flex; gap: 1rem; align-items: flex-start; padding: 0 1.25rem; margin-bottom: 26px; }
.ep-news__r:last-child { margin-bottom: 0.75rem; }
.ep-news__body { min-width: 0; flex: 1; }
.ep-news__src { display: flex; align-items: center; gap: 8px; margin-bottom: 0.3rem; font-size: 0.75rem; color: var(--s-sub); min-width: 0; }
.ep-news__srcname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-news__time { white-space: nowrap; }
.ep-news__thumb { width: 108px; height: 108px; flex-shrink: 0; border-radius: 10px; object-fit: cover; background: var(--s-chip); }
.ep-news__thumb--none { display: block; }

/* images — a grid that reflows on the BOX's width, like every other block here */
.ep-img { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem 0.9rem; padding: 0.3rem 1.25rem 0.9rem; }
.ep-img__c { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; text-decoration: none; }
.ep-img__frame { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--s-chip); }
.ep-img__i { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-img__i--none { display: block; width: 100%; height: 100%; }
.ep-img__t { font-size: 0.76rem; line-height: 1.35; color: var(--s-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-img__s { font-size: 0.72rem; color: var(--s-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* videos — thumbnail with the duration burned into the corner, then the meta */
.ep-vid { padding: 0.2rem 0 0.5rem; }
.ep-vid__r { display: flex; gap: 1rem; align-items: flex-start; padding: 0 1.25rem; margin-bottom: 26px; text-decoration: none; }
.ep-vid__r:last-child { margin-bottom: 0.75rem; }
.ep-vid__tw { position: relative; flex-shrink: 0; width: 168px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--s-chip); display: block; }
.ep-vid__thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-vid__thumb--none { display: block; width: 100%; height: 100%; }
.ep-vid__dur {
  position: absolute; right: 6px; bottom: 6px; padding: 0 5px; border-radius: 4px;
  background: rgba(0,0,0,0.78); color: #fff; font-size: 0.7rem; font-weight: 600; line-height: 1.5;
}
.ep-vid__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.ep-vid__meta { font-size: 0.75rem; color: var(--s-sub); }

/* Narrow: the thumbnails have to shrink or the text column collapses to nothing. */
@container (max-width: 34rem) {
  .ep-news__thumb { width: 84px; height: 84px; }
  .ep-vid__tw { width: 132px; }
  .ep-img { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 0.8rem 0.7rem; }
}

/* ════════════════════════════════════════════════════════════════════════════
   The seven verticals added 2026-09-08: AI-Rank, Maps, LinkedIn, Instagram,
   YouTube, Amazon, TikTok. All of them ride the `--s-*` tokens declared on
   `.ep-serp` at the top of this file, because the panel class always carries
   `ep-serp` alongside its renderer class — a lesson from session 32, where a
   panel rendered outside `.ep-serp` and silently lost every colour token, the
   type scale, the dark theme and the title blue.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── shared: the query bar each non-SERP surface wears ────────────────────── */
.ep-ai__bar, .ep-map__bar, .ep-yt__bar, .ep-shop__bar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.9rem 1.25rem 0.7rem; border-bottom: 1px solid var(--s-line);
}
.ep-ai__target { font-size: 0.8rem; color: var(--s-muted); }
.ep-ai__target b { color: var(--s-text); font-weight: 600; }

/* ── AI-Rank ──────────────────────────────────────────────────────────────── */
.ep-ai__score {
  display: flex; align-items: center; gap: 1rem;
  margin: 0.9rem 1.25rem; padding: 0.9rem 1.1rem;
  background: var(--s-chip); border-radius: 12px;
}
.ep-ai__scorenum { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--s-title); }
/* The second flex child, wrapping the label and the note. It was emitted with no rule at all and
   survived only because a bare block happens to lay out acceptably next to the number — i.e. it
   would break on the next change to the flex line above. `min-width:0` lets the note wrap instead
   of forcing the row wider than the panel. */
.ep-ai__scoremeta { flex: 1 1 auto; min-width: 0; }
.ep-ai__scorenum span { font-size: 0.9rem; font-weight: 500; color: var(--s-muted); }
.ep-ai__scorelabel { font-size: 0.9rem; font-weight: 600; color: var(--s-text); }
.ep-ai__scorenote { font-size: 0.8rem; color: var(--s-sub); margin-top: 0.15rem; }

.ep-ai { display: grid; gap: 0.9rem; padding: 0.2rem 1.25rem 1rem; }
.ep-ai__c { border: 1px solid var(--s-border); border-radius: 12px; padding: 0.9rem 1rem; background: var(--s-card); }
.ep-ai__c--down { opacity: 0.75; }
.ep-ai__head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.ep-ai__engine { font-size: 1rem; font-weight: 600; color: var(--s-text); }
/* The model label. Rendered only when it matches the published label for that engine — see the
   allow-list in embedded-playground.js. Never styled to look like a link, because it is not one. */
.ep-ai__model {
  font-size: 0.72rem; font-family: 'Monaco', 'Menlo', monospace;
  padding: 0.1rem 0.4rem; border-radius: 5px; background: var(--s-chip); color: var(--s-muted);
}
.ep-ai__cites { margin-left: auto; font-size: 0.78rem; color: var(--s-muted); }
.ep-ai__down { font-size: 0.85rem; color: var(--s-sub); }
.ep-ai__hit { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.5rem; }
.ep-ai__hit--yes { color: #0f766e; }
[data-theme=dark] .ep-serp .ep-ai__hit--yes { color: #5eead4; }
.ep-ai__hit--no { color: var(--s-muted); font-weight: 500; }
.ep-ai__hitdom { font-weight: 400; color: var(--s-muted); }
.ep-ai__text { font-size: 0.85rem; line-height: 1.55; color: var(--s-snip); margin-bottom: 0.6rem; }
.ep-ai__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.ep-ai__cite { display: flex; align-items: center; gap: 0.5rem; min-width: 0; font-size: 0.85rem; }
.ep-ai__cite .ep-serp__title { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-ai__citedom { color: var(--s-muted); font-size: 0.75rem; white-space: nowrap; }
.ep-ai__nocite { font-size: 0.8rem; color: var(--s-muted); }

/* ── Maps ─────────────────────────────────────────────────────────────────── */
.ep-map { padding: 0.2rem 0 0.5rem; }
.ep-map__r { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--s-line); }
.ep-map__r:last-child { border-bottom: 0; }
.ep-map__rank {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--s-chip); color: var(--s-sub);
  font-size: 0.72rem; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.ep-map__body { min-width: 0; flex: 1; }
.ep-map__name { font-size: 1rem; font-weight: 500; color: var(--s-title); margin-bottom: 0.15rem; }
.ep-map__rate { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; color: var(--s-sub); margin-bottom: 0.2rem; }
.ep-map__stars { letter-spacing: -1px; }
.ep-map__star { color: var(--s-line); }
.ep-map__star.is-on { color: var(--s-star); }
.ep-map__rev { color: var(--s-muted); }
.ep-map__meta { font-size: 0.82rem; color: var(--s-sub); margin-bottom: 0.35rem; }
.ep-map__links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ep-map__chip {
  font-size: 0.75rem; padding: 0.15rem 0.55rem; border-radius: 999px;
  border: 1px solid var(--s-border); color: var(--s-sub); text-decoration: none;
}
.ep-map__chip--a { color: var(--s-title); }
.ep-map__chip--warn { border-color: var(--s-star); color: var(--s-star); text-transform: capitalize; }
.ep-map__thumb { width: 88px; height: 88px; flex-shrink: 0; border-radius: 10px; object-fit: cover; background: var(--s-chip); }
.ep-map__thumb--none { display: block; }

/* ── Profiles: LinkedIn, Instagram, TikTok share one shape ────────────────── */
.ep-prof { padding: 1rem 1.25rem 1.25rem; }
.ep-prof__head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.ep-prof__pic { width: 72px; height: 72px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: var(--s-chip); }
.ep-prof__pic--round { border-radius: 50%; }
.ep-prof__pic--none { display: block; }
.ep-prof__id { min-width: 0; }
.ep-prof__name { display: flex; align-items: center; gap: 0.35rem; font-size: 1.15rem; font-weight: 600; color: var(--s-text); }
.ep-prof__vf { color: var(--s-title); display: inline-flex; }
.ep-prof__vf svg { width: 15px; height: 15px; }
.ep-prof__head2 { font-size: 0.88rem; color: var(--s-sub); margin-top: 0.1rem; }
.ep-prof__loc { font-size: 0.8rem; color: var(--s-muted); margin-top: 0.1rem; }
.ep-prof__stats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; padding: 0.75rem 0; border-top: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line); }
.ep-prof__stats--sub { border-top: 0; }
.ep-prof__stat { display: flex; flex-direction: column; }
.ep-prof__stat b { font-size: 1rem; font-weight: 600; color: var(--s-text); }
.ep-prof__stat span { font-size: 0.72rem; color: var(--s-muted); }
.ep-prof__bio { font-size: 0.85rem; line-height: 1.6; color: var(--s-snip); margin-top: 0.9rem; white-space: pre-line; }
.ep-prof__sec { margin-top: 1.1rem; }
.ep-prof__sech { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--s-muted); margin-bottom: 0.5rem; }
.ep-prof__row { padding: 0.45rem 0; border-bottom: 1px solid var(--s-line); }
.ep-prof__row:last-child { border-bottom: 0; }
.ep-prof__rowa { font-size: 0.9rem; font-weight: 500; color: var(--s-text); }
.ep-prof__rowb { font-size: 0.82rem; color: var(--s-sub); }
.ep-prof__rowc { font-size: 0.75rem; color: var(--s-muted); }
.ep-prof__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ep-prof__chip { font-size: 0.75rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--s-chip); color: var(--s-sub); }

/* Instagram post grid */
.ep-ig { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.ep-ig__c { text-decoration: none; display: block; }
.ep-ig__frame { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--s-chip); }
.ep-ig__i { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-ig__i--none { display: block; width: 100%; height: 100%; }
.ep-ig__m { display: flex; gap: 0.6rem; font-size: 0.7rem; color: var(--s-muted); margin-top: 0.25rem; }

/* ── YouTube — the same row shape as the video SERP, its own thumbnail ratio ── */
.ep-yt { padding: 0.2rem 0 0.5rem; }
.ep-yt__r { display: flex; gap: 1rem; align-items: flex-start; padding: 0 1.25rem; margin-bottom: 22px; text-decoration: none; }
.ep-yt__r:last-child { margin-bottom: 0.75rem; }
.ep-yt__tw { position: relative; flex-shrink: 0; width: 168px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--s-chip); display: block; }
.ep-yt__thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-yt__thumb--none { display: block; width: 100%; height: 100%; }
.ep-yt__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }

/* ── Amazon ───────────────────────────────────────────────────────────────── */
.ep-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; padding: 0.75rem 1.25rem 1rem; }
.ep-shop__c { display: flex; flex-direction: column; gap: 0.4rem; }
.ep-shop__frame { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--s-chip); }
.ep-shop__i { width: 100%; height: 100%; object-fit: contain; display: block; }
.ep-shop__i--none { display: block; width: 100%; height: 100%; }
.ep-shop__body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.ep-shop__tag {
  align-self: flex-start; font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.1rem 0.4rem; border-radius: 4px;
  background: var(--s-chip); color: var(--s-muted);
}
.ep-shop__tag--pick { background: rgba(245, 158, 11, 0.16); color: #b45309; }
[data-theme=dark] .ep-serp .ep-shop__tag--pick { color: #fbbf24; }
.ep-shop__price { font-size: 1rem; font-weight: 600; color: var(--s-text); display: flex; align-items: baseline; gap: 0.4rem; }
.ep-shop__price s { font-size: 0.8rem; font-weight: 400; color: var(--s-muted); }
.ep-shop__note { font-size: 0.72rem; color: var(--s-muted); }

/* Narrow: same rule as the media grids above — the thumbnails shrink or the text column dies. */
@container (max-width: 34rem) {
  .ep-yt__tw { width: 132px; }
  .ep-map__thumb { width: 64px; height: 64px; }
  .ep-shop { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 0.75rem; }
  .ep-prof__pic { width: 56px; height: 56px; }
  .ep-ai__score { margin: 0.75rem 1rem; }
}
