/* Free scan page. Shell uses the site's tokens (light/dark). The "What Google shows" frames are always Google's dark
   theme, like a screenshot. Palettes: DmcaTG cse_mosaic (images) and bruquiextension _page_shell (web results). */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the footer stays below the fold while the scan / report load, so the report arriving moves nothing on screen */
#main { min-height: calc(100vh - var(--header-h)); }
.site-header { background: var(--bg); }   /* opaque here: the sticky section nav + lists pass under it (no backdrop blur in some WebKit paints) */
.scan-top { padding: clamp(32px, 6vw, 64px) 0 clamp(24px, 4vw, 40px); }
.scan-top h1 { font-size: clamp(2rem, 6vw, 3.2rem); overflow-wrap: anywhere; }
.scan-top h1:focus { outline: none; }
.scan-top .lead:empty { display: none; }
.scan-aliases { margin: 6px 0 0; color: var(--muted); font-size: 1rem; overflow-wrap: anywhere; }
.scan-card { margin: 24px 0 0; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 760px; }
.form-error { margin: 0 0 12px; color: var(--bad); font-weight: 550; }

/* Progress */
.progress-head { display: flex; align-items: center; gap: 12px; }
.progress-head p { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }   /* one line: no shift as the stage changes */
.spinner { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 8px; margin: 16px 0 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .4s ease; }
/* the log: 6 fixed one-line slots (js: logSlots), so nothing in or below it moves during the scan */
.progress-log { list-style: none; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2);
  font: 500 .82rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); }
.progress-log li { height: 1.6em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.progress-log li:last-child { color: var(--ink); }
.progress-note { margin: 14px 0 0; color: var(--muted); font-size: .93rem; }

/* Errors */
.error-card h2 { font-size: 1.45rem; }
.error-card p { color: var(--muted); }
.error-actions { margin: 0 0 6px; }
.msg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .95rem; }
.msg-row span { flex-basis: 100%; }
.msg-row .btn { min-height: 44px; }
.empty-card strong { color: var(--ink); }
.empty-card { color: var(--muted); }

/* Summary */
.stats { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; }
.stats li { padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stats strong { display: block; font: 650 clamp(1.6rem, 5vw, 2.4rem)/1.1 var(--serif); color: var(--accent); }
.stats span { display: block; margin-top: 4px; color: var(--muted); font-size: .9rem; line-height: 1.3; }
@media (max-width: 479px) { .stats { gap: 8px; } .stats li { padding: 12px 10px; } .stats span { font-size: .8rem; } }
@media (max-width: 379px) { .stats li { padding: 10px 6px; } .stats strong { font-size: 1.05rem; } .links-actions .btn { padding-inline: 12px; } }

.scan-section { padding: clamp(28px, 5vw, 56px) 0; }
.scan-section .section-head { margin-bottom: 20px; }
.scan-section h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }

/* Controls above the Google frame */
.g-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.g-controls .btn { min-height: 44px; }
.seg { display: inline-flex; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label { cursor: pointer; }
.seg span { transition: background-color .15s, color .15s; }
@media (hover: hover) { .seg input:not(:checked):hover + span { background: var(--surface-2); color: var(--ink); } }
.seg span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: var(--accent); color: var(--on-accent); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
#reveal[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
@media (max-width: 479px) {   /* phone: the controls on one row, so the phone frame starts on the first screen */
  #google { padding-top: 24px; }
  #google .section-head { margin-bottom: 16px; }
  #google .section-head p { font-size: 1rem; }
  .g-controls { gap: 8px; margin-bottom: 12px; }
  .seg span { padding: 0 12px; gap: 6px; }
  .g-controls .btn { padding-inline: 14px; }
  .rv-w { display: none; }
}
@media (min-width: 340px) and (max-width: 479px) { .g-controls { flex-wrap: nowrap; } }
@media (max-width: 399px) { .seg .icon { display: none; } }   /* keeps the row inside 340-399px */
.g-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: .92rem; }
@media (max-width: 559px) { .g-hint { justify-content: flex-start; align-items: flex-start; font-size: .88rem; line-height: 1.4; } .g-hint .icon { margin-top: 2px; } }
.g-hint .icon { width: 16px; height: 16px; flex: none; color: var(--accent); }
/* the hint fits the device: "Click" with a mouse, "Tap" on touch; a computer frame shrunk below tap size says so (js: fitComputer) */
.g-hint-click, .g-hint-small, .g-hint[data-small] .g-hint-tap, .g-hint[data-small] .g-hint-click { display: none; }
.g-hint[data-small] .g-hint-small { display: inline; }
@media (hover: hover) and (pointer: fine) { .g-hint:not([data-small]) .g-hint-tap { display: none; } .g-hint:not([data-small]) .g-hint-click { display: inline; } }
.g-stage { display: flex; justify-content: center; }
.g-note { margin: 14px auto 0; text-align: center; color: var(--muted); font-size: .9rem; }
.after-card { max-width: 720px; margin: 24px auto 0; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.after-kicker { margin: 0 0 4px; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.after-title { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; }
.after-title a { color: var(--ink); }
.after-text { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.after-media { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- Google dark look-alike (shared) ---------- */
.g-dark { --g-bg: #202124; --g-text: #e8eaed; --g-muted: #9aa0a6; --g-tab: #bdc1c6; --g-on: #8ab4f8; --g-pill: #303134; --g-line: #3c4043;
  background: var(--g-bg); color: var(--g-text); font: 14px/1.5 Arial, Roboto, "Helvetica Neue", sans-serif; text-align: left; -webkit-font-smoothing: antialiased; }
.g-dark.g-images, .gd.g-images { --g-bg: rgb(13 13 13); --g-pill: rgb(48 49 52); --g-muted: rgb(154 160 166); --g-text: rgb(232 234 237); }
.g-dark a { color: inherit; text-decoration: none; }
.g-dark .icon { width: 18px; height: 18px; }
.g-logo { font: 500 24px/1 "Product Sans", Arial, sans-serif; letter-spacing: -.5px; }
.g-av { width: 30px; height: 30px; border-radius: 50%; flex: none; background: conic-gradient(#4285f4 0 25%, #ea4335 0 50%, #fbbc05 0 75%, #34a853 0); box-shadow: inset 0 0 0 3px var(--g-bg), inset 0 0 0 30px #8d6e63; }
.g-search { display: flex; align-items: center; gap: 12px; background: var(--g-pill); border-radius: 24px; padding: 0 18px; height: 46px; color: var(--g-text); font-size: 16px; min-width: 0; }
.g-search .icon { color: var(--g-muted); }
.g-search span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-tabs { display: flex; align-items: stretch; gap: 4px; border-bottom: 1px solid var(--g-line); overflow-x: auto; scrollbar-width: none; }
.g-tabs::-webkit-scrollbar { display: none; }
.g-tab, .g-tab-deco { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--g-tab); font: inherit; font-size: 14px; white-space: nowrap; }
.g-tab { cursor: pointer; border-radius: 8px 8px 0 0; color: var(--g-text); font-weight: 600; transition: background-color .15s, color .15s; }
.g-tab[aria-selected="true"] { color: var(--g-on); border-bottom-color: var(--g-on); }
@media (hover: hover) { .g-tab:hover { background: rgb(255 255 255 / .08); } }
@media (hover: hover) { .g-tab:not([aria-selected="true"]):hover { border-bottom-color: var(--g-line); } }
.g-tab:focus-visible { outline: 2px solid var(--g-on); outline-offset: -2px; border-radius: 6px; }
/* decorative: the real Google has them, this frame doesn't switch to them */
.g-tab-deco { color: var(--g-muted); opacity: .45; cursor: default; user-select: none; }
.g-panel { padding: 12px 16px 24px; }
.g-stats { margin: 0 0 14px; color: var(--g-muted); font-size: 13px; }
.g-empty { margin: 28px 0; color: var(--g-muted); text-align: center; }
.g-fav, .g-fav-s { flex: none; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font: 700 13px/1 Arial, sans-serif; }
.g-fav { width: 28px; height: 28px; box-shadow: 0 0 0 1px var(--g-line); }
.g-fav-s { width: 16px; height: 16px; font-size: 9px; margin-right: 6px; vertical-align: -3px; }
.g-r { margin: 0 0 26px; }
.g-src { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; min-width: 0; }
.g-src-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.g-site { font-size: 14px; color: var(--g-text); }
.g-cite { font-size: 12px; color: var(--g-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }
.g-dark .g-title { display: block; color: var(--g-on); font-size: 20px; line-height: 1.3; margin: 2px 0 4px; }
@media (hover: hover) { .g-dark .g-title:hover, .g-dark .g-title:focus-visible { text-decoration: underline; } }
.g-dark .g-title:focus-visible { outline: 2px solid var(--g-on); outline-offset: 3px; border-radius: 4px; }
/* "open ↗": on hover / focus; on touch screens a small ↗ that is always there */
.g-go { display: inline-block; pointer-events: none; padding: 2px 8px; border-radius: 999px; background: rgb(0 0 0 / .72); color: #fff;
  font: 600 11px/1.4 Arial, sans-serif; letter-spacing: .02em; white-space: nowrap; opacity: 0; transition: opacity .15s, transform .15s; }
.g-nw { white-space: nowrap; }
.g-title .g-go { margin-left: 8px; vertical-align: 3px; background: var(--g-pill); color: var(--g-text); transform: translateX(-3px); }
.g-tile-a .g-go, .g-vthumb .g-go { position: absolute; top: 6px; right: 6px; z-index: 2; transform: translateY(-2px); }
@media (hover: hover) { a:hover .g-go, a:focus-visible .g-go { opacity: 1; transform: none; } }
@media (hover: none) {
  .g-dark .g-go { opacity: .92; transform: none; padding: 0; width: 22px; height: 22px; text-align: center; line-height: 22px; font-size: 12px; }
  .g-go-w { display: none; }
}
.g-tile-a, .g-vthumb { position: relative; display: block; border-radius: 10px; }
.g-tile-a .g-img, .g-vthumb .g-img { transition: box-shadow .15s; }
@media (hover: hover) { .g-tile-a:hover .g-img, .g-vthumb:hover .g-img { box-shadow: 0 0 0 2px var(--g-on); } }
.g-tile-a:focus-visible, .g-vthumb:focus-visible { outline: 2px solid var(--g-on); outline-offset: 2px; }
@media (hover: hover) { .g-tile-a:hover + figcaption .g-ct { text-decoration: underline; } }
.g-pack-b { display: block; flex: none; width: 150px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; scroll-snap-align: start; }
@media (hover: hover) { .g-pack-b:hover .g-img { box-shadow: 0 0 0 2px var(--g-on); } }
.g-pack-b:focus-visible { outline: 2px solid var(--g-on); outline-offset: 2px; }
.g-snip { margin: 0; color: var(--g-tab); font-size: 14px; line-height: 1.58; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-more { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 420px; min-height: 44px; margin: 8px auto 0; border: 1px solid var(--g-line); border-radius: 999px; background: var(--g-pill); color: var(--g-text); font: inherit; font-size: 14px; cursor: pointer; }
@media (hover: hover) { .g-more:hover { background: #3c4043; } }
.g-more:focus-visible { outline: 2px solid var(--g-on); outline-offset: 2px; }
.g-less { display: block; min-height: 44px; margin: 2px auto 0; padding: 0 16px; border: 0; background: none; color: var(--g-muted); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (hover: hover) { .g-less:hover { color: var(--g-text); } }
.g-less:focus-visible { outline: 2px solid var(--g-on); outline-offset: 2px; border-radius: 999px; }

/* thumbnails: blurred until Reveal */
.g-img { display: block; position: relative; overflow: hidden; border-radius: 10px; background: #2a2b2e; line-height: 0; min-height: 60px; }
.g-img img { display: block; width: 100%; height: auto; filter: blur(14px) saturate(.7); transform: scale(1.15); transition: filter .25s, transform .25s; }
.revealed .g-img img { filter: none; transform: none; }
/* a video result's still: play badge, over the blur */
.g-vid::after { content: ""; position: absolute; left: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; pointer-events: none;
  background: rgb(0 0 0 / .62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 18px no-repeat; }
.g-img-none { min-height: 90px; background: linear-gradient(135deg, #3c4043, #26272a); }

/* Image pack in All */
.g-pack { margin: 0 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--g-line); }
.g-pack-h { margin: 0 0 10px; font-size: 18px; }
/* one row that swipes / scrolls sideways (snap), the next tile peeking in at the edge; desktop: arrows on hover */
.g-strip-w { position: relative; }
.g-strip { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px; margin: -4px; }   /* 4px: room for the focus ring (2px + 2px offset) */
.g-strip::-webkit-scrollbar { display: none; }
.g-strip .g-img { aspect-ratio: 1; min-height: 0; transition: box-shadow .15s; }
.g-strip .g-img img { width: 100%; height: 100%; object-fit: cover; }
.g-strip-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; padding: 0;
  border: 1px solid var(--g-line); border-radius: 50%; background: #303134; color: var(--g-text); box-shadow: 0 2px 8px rgb(0 0 0 / .5);
  cursor: pointer; opacity: 0; transition: opacity .15s; }
.g-strip-prev { left: -12px; } .g-strip-prev .icon { transform: scaleX(-1); }
.g-strip-next { right: -12px; }
@media (hover: hover) { .g-strip-w:hover .g-strip-nav { opacity: 1; } }
.g-strip-w:focus-within .g-strip-nav { opacity: 1; }
.g-strip-w.at-start .g-strip-prev, .g-strip-w.at-end .g-strip-next { opacity: 0; pointer-events: none; }

/* Images tab */
.g-safe { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--g-muted); font-size: 13px; }   /* plain caption, no fake controls */
.chip-g { padding: 6px 14px; border-radius: 999px; background: rgb(32 33 36); color: var(--g-muted); }
.chip-g.on { background: rgb(26 115 232); color: #fff; }
.g-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 8px; }
.g-tile { min-width: 0; margin: 0 0 12px; }
.g-tile .g-img { aspect-ratio: 3 / 4; min-height: 0; }   /* same-size tiles: no jump as thumbs load (js: fitPhone counts rows) */
.g-tile .g-img img { height: 100%; object-fit: cover; }
.g-tile-a { display: block; }
.g-tile figcaption { padding: 6px 1px 0; font-size: 12px; line-height: 1.3; }
.g-ct { display: block; color: var(--g-text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-cs { display: block; margin-top: 3px; color: var(--g-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Videos tab */
.g-v { display: flex; gap: 16px; margin: 0 0 24px; align-items: flex-start; }
.g-vthumb { position: relative; flex: none; width: 200px; }
.g-vthumb .g-img { aspect-ratio: 16 / 9; min-height: 0; }
.g-vthumb .g-img img { width: 100%; height: 100%; object-fit: cover; }
.g-play { position: absolute; left: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgb(0 0 0 / .7); }
.g-play::after { content: ""; position: absolute; left: 10px; top: 7px; border: 6px solid transparent; border-left: 9px solid #fff; border-right: 0; }
.g-vbody { min-width: 0; flex: 1; }
.g-vbody .g-title { font-size: 18px; margin-top: 0; }
.g-vbody .g-cite { margin-bottom: 4px; }

/* ---------- Phone frame (390px, Google mobile) ---------- */
.frame-phone { --ph-pad: 10px; width: 390px; max-width: 100%; padding: var(--ph-pad); border-radius: 52px; background: linear-gradient(145deg, #2b2724, #0f0d0c); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #4a4440; }
.ph-screen { position: relative; border-radius: 42px; overflow: hidden; min-height: 640px; padding-bottom: 26px; }
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 0 28px 0 34px; font: 600 15px/1 -apple-system, "SF Pro Text", Arial, sans-serif; }
.ph-status::after { content: ""; position: absolute; top: 11px; left: 50%; width: 104px; height: 30px; transform: translateX(-50%); border-radius: 999px; background: #000; }
.ph-icons { display: inline-flex; align-items: center; gap: 6px; }
.ph-sig { width: 17px; height: 11px; background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px 8px, transparent 8px 10px, currentColor 10px 13px, transparent 13px 14px, currentColor 14px); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.ph-wifi { width: 15px; height: 11px; background: currentColor; clip-path: polygon(50% 100%, 0 30%, 15% 12%, 50% 0, 85% 12%, 100% 30%); }
.ph-bat { width: 25px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; position: relative; opacity: .95; }
@media (max-width: 359px) { .ph-status { padding: 0 20px 0 26px; } .ph-status::after { width: 76px; height: 26px; top: 12px; } }   /* notch clear of the clock / icons */
.ph-bat::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; border-radius: 1.5px; }
.gm-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; }
.gm-burger { display: grid; gap: 4px; width: 20px; }
.gm-burger i { display: block; height: 2px; border-radius: 2px; background: var(--g-tab); }
.frame-phone .g-search { margin: 0 14px 6px; height: 46px; }
.frame-phone .g-tabs { padding: 0 6px; }
.frame-phone .g-tab, .frame-phone .g-tab-deco { padding: 0 10px; font-size: 14px; }
.frame-phone .g-panel { padding: 14px 14px 10px; }
.frame-phone .g-r { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--g-line); }
.frame-phone .g-r:last-of-type { border-bottom: 0; }
.frame-phone .g-title { font-size: 18px; }
.frame-phone .g-snip { -webkit-line-clamp: 3; }
.frame-phone .g-strip { margin: -4px -14px; padding: 4px 14px; scroll-padding-inline: 14px; }   /* edge to edge in the screen */
.frame-phone .g-pack-b { width: calc((100% - 16px) / 2.5); }   /* 2.5 tiles: the third peeks (~110px at 360) */
.frame-phone .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 6px; }
.frame-phone .g-tile figcaption { font-size: 11px; }
.frame-phone .g-safe { gap: 6px; font-size: 12px; flex-wrap: wrap; }
.frame-phone .chip-g { padding: 5px 11px; }
.frame-phone .g-v { flex-direction: column; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--g-line); }
.frame-phone .g-vthumb { width: 100%; }
.ph-home { position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; border-radius: 3px; background: #e8eaed; transform: translateX(-50%); opacity: .9; }
@media (max-width: 400px) { .frame-phone { --ph-pad: 7px; border-radius: 44px; } .ph-screen { border-radius: 37px; } }

/* ---------- Computer frame (browser window, fixed 1060px, scaled down by JS to fit) ---------- */
.cw-scale { width: 100%; overflow: hidden; }
.frame-computer { width: 1060px; margin-inline: auto; transform-origin: 0 0; border-radius: 12px; overflow: hidden; border: 1px solid #3c4043; background: #202124; }
.cw-scale .frame-computer[style*="scale"] { margin-inline: 0; }
.bw-bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; background: #35363a; }
.bw-url { flex: 1; max-width: 640px; margin-inline: auto; padding: 6px 16px; border-radius: 999px; background: #202124; color: #bdc1c6; font: 13px/1.3 Arial, sans-serif; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gd { min-height: 560px; }
.gd-top { display: grid; grid-template-columns: 150px minmax(0, 690px) 1fr auto auto; align-items: center; gap: 0 14px; padding: 22px 24px 10px; }
.gd-top .g-logo { font-size: 30px; padding-left: 8px; }
.gd-apps { grid-column: 4; justify-self: end; display: grid; grid-template-columns: repeat(3, 4px); gap: 4px; }
.gd-apps i { width: 4px; height: 4px; border-radius: 50%; background: #9aa0a6; }
.gd .g-tabs { padding-left: 162px; gap: 10px; }
.gd .g-panel { padding: 16px 24px 32px 176px; }
.gd .g-panel-all, .gd .g-panel-videos { max-width: 850px; } /* 176px offset + ~650px results column */
.gd .g-panel-images { padding-left: 24px; }
.gd .g-panel-images .g-safe { padding-left: 2px; }
.gd .g-more { margin-left: 0; }

/* CTA */
#send .contact-card { max-width: 900px; }
.price-line { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.deep { margin: 0; font-size: .95rem; }
.deep a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.deep .icon { width: 16px; height: 16px; }

/* Section nav: docked under the site header once the report starts (in flow: no layout shift) */
#report { --rnav-h: 52px; --pin-top: calc(var(--header-h) + var(--rnav-h) + 8px); }
#report > .scan-section { scroll-margin-top: var(--rnav-h); }
/* focus / scrollIntoView clear the pinned section nav (the header: html scroll-padding); not inside the pinned phone's
   own screen (js: pin sync) */
#report .g-stage :is(a, button) { scroll-margin: var(--rnav-h) 0 12px; }
@media (min-height: 600px) { #report .ph-scroll :is(a, button) { scroll-margin: 0; } }
.rnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--bg); border-block: 1px solid var(--line); }
.rnav-row { display: flex; align-items: center; gap: 6px; height: calc(var(--rnav-h) - 2px); }
.rnav-who { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.rnav-a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .93rem; white-space: nowrap; text-decoration: none; transition: background-color .15s, color .15s; }
.rnav-a[aria-current="true"] { background: var(--surface-2); color: var(--ink); }
.rnav-cta { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rnav-cta[aria-current="true"] { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) { .rnav-a:not([aria-current="true"]):hover { background: var(--surface-2); color: var(--ink); } }
.rnav-a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rnav-n { font-variant-numeric: tabular-nums; font-weight: 500; opacity: .8; }
@media (max-width: 479px) {
  .rnav-who { display: none; }
  .rnav-row { justify-content: space-between; }
  .rnav-a { flex: 1 1 0; justify-content: center; padding: 0 8px; }
}
@media (max-width: 379px) { .rnav-row { gap: 2px; } .rnav-a { padding: 0 4px; font-size: .86rem; } }

/* Phone frame pinned while its screen scrolls (js: pinPhone). Track = frame + the screen's overflow. */
.ph-track { width: 390px; max-width: 100%; }
.ph-track .frame-phone { position: sticky; top: var(--pin-top); }
.ph-track .ph-screen { display: flex; flex-direction: column; min-height: 0;
  height: clamp(420px, calc(100vh - var(--pin-top) - 2 * var(--ph-pad) - 8px), 860px); height: clamp(420px, calc(100svh - var(--pin-top) - 2 * var(--ph-pad) - 8px), 860px); }   /* ~80% of the screen: all under the header + nav, 8px to spare */
.ph-track .ph-status { flex: none; }
.ph-scroll { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ph-page { padding-bottom: 16px; }
.ph-scroll .g-tabs { position: sticky; top: 0; z-index: 3; background: var(--g-bg); }
.ph-fade { position: absolute; left: 0; right: 0; bottom: 64px; height: 64px; background: linear-gradient(rgb(0 0 0 / 0), var(--g-bg)); pointer-events: none; transition: opacity .2s; }
.ph-end .ph-fade { opacity: 0; }
/* Reveal / Blur on the phone itself: the button above the frame scrolls away while the frame is pinned */
.ph-track .ph-screen { padding-bottom: 64px; }   /* a bottom bar of its own for the Reveal pill + home bar: no result line under it */
.ph-reveal { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 13px/1 var(--sans); white-space: nowrap; box-shadow: 0 4px 14px rgb(0 0 0 / .45); cursor: pointer; }
.ph-reveal .icon { width: 16px; height: 16px; }
.ph-reveal[aria-pressed="true"] { background: #e8eaed; color: #202124; }
.ph-reveal:focus-visible { outline: 3px solid #8ab4f8; outline-offset: 2px; }
@media (hover: hover) { .ph-reveal:hover { filter: brightness(1.08); } }
/* screens too short to pin a usable phone: the screen scrolls by itself */
/* landscape phones: the site header scrolls away, only a slimmer section nav stays pinned (~11% of 390px) */
@media (max-height: 500px) {
  .site-header { position: relative; }
  html { scroll-padding-top: 12px; }
  #report { --rnav-h: 44px; }
  .rnav { top: 0; }
}
@media (max-height: 599px) {
  .ph-track .frame-phone { position: static; }
  .ph-track .ph-screen { height: auto; }   /* a shorter static preview (js: fitPhone), no scroll box inside the page */
  .ph-scroll { overflow: visible; }
  .ph-scroll .g-tabs { position: static; }
  .ph-fade { display: none; }
}

/* "Where the copies are": every site, its links on demand (js: renderSites) */
.lx-sub { margin: 6px 0 0; color: var(--muted); }
.lx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 14px; }
.lx-search { position: relative; display: flex; align-items: center; flex: 1 1 280px; max-width: 480px; margin: 0; }
.lx-search .icon { position: absolute; left: 15px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.lx-search input { width: 100%; min-height: 48px; padding: 0 16px 0 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; box-shadow: var(--shadow); }
.lx-search input::placeholder { color: var(--muted); opacity: 1; }
.lx-search input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.lx-status { margin: 0; color: var(--muted); font-size: .92rem; }
.lx-status:empty { display: none; }
.lx-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.lx-list:empty { display: none; }
.lx-site + .lx-site { border-top: 1px solid var(--line); }
.lx-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "dom n" "bar bar"; align-items: center; gap: 8px 12px;
  min-height: 56px; padding: 12px 16px 11px; cursor: pointer; list-style: none; transition: background-color .15s; }
.lx-sum::-webkit-details-marker { display: none; }
@media (hover: hover) { .lx-sum:hover { background: var(--surface-2); } }
.lx-sum:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: var(--radius-sm); }
.lx-dom { grid-area: dom; display: flex; align-items: center; min-width: 0; font-weight: 600; }
.lx-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 479px) { .lx-name { white-space: normal; overflow-wrap: break-word; } }   /* phone: whole domain, wrapped after a dot (js: wbr) */
.lx-n { grid-area: n; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lx-n b { color: var(--ink); font-weight: 650; }
.lx-n::after { content: ""; width: 7px; height: 7px; margin: -3px 2px 0 10px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
details[open] > .lx-sum .lx-n::after { margin-top: 3px; transform: rotate(-135deg); }
.lx-bar { grid-area: bar; display: block; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.lx-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); opacity: .7; }
.lx-top { display: none; }
@media (max-width: 759px) { .lx-filtered .lx-sum { grid-template-areas: "dom n" "top top" "bar bar"; } }
.lx-filtered .lx-top { grid-area: top; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .8rem; }   /* phone: what matched */
details[open] > .lx-sum .lx-top { display: none; }   /* open: the links themselves are right below */
.lx-links { list-style: none; margin: 0; padding: 0 16px 6px 38px; }
.lx-links li + li { border-top: 1px dashed var(--line); }
.lx-a { display: block; padding: 10px 0; overflow-wrap: anywhere; color: var(--ink); text-decoration: none; }   /* whole path, wrapped: the tail is what tells links apart */
.lx-a::after { content: " ↗"; color: var(--muted); }
@media (hover: hover) { .lx-a:hover { color: var(--accent); text-decoration: underline; } }
.lx-a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.lx-site mark { padding: 0 1px; border-radius: 3px; background: var(--accent-soft); color: inherit; }
.lx-lmore { display: block; width: calc(100% - 54px); min-height: 44px; margin: 2px 16px 14px 38px; padding: 0 14px; border: 1px dashed var(--line); border-radius: 10px;
  background: none; color: var(--ink); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
@media (hover: hover) { .lx-lmore:hover { background: var(--surface-2); } }
.lx-lmore:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lx-foot { margin: 14px 0 0; text-align: center; }
.lx-foot .btn { min-height: 44px; }
@media (min-width: 760px) {
  .lx-sum { grid-template-columns: minmax(200px, 260px) 150px 110px minmax(0, 1fr) 14px; grid-template-areas: "dom n bar top chev"; gap: 0 24px; }
  .lx-n { justify-content: flex-end; }
  .lx-n::after { content: none; }
  .lx-sum::after { content: ""; grid-area: chev; justify-self: end; width: 7px; height: 7px; margin: -3px 2px 0 0; border: solid var(--muted); border-width: 0 2px 2px 0;
    transform: rotate(45deg); transition: transform .15s; }   /* the chevron at the row's end */
  details[open] > .lx-sum::after { margin-top: 3px; transform: rotate(-135deg); }
  details[open] > .lx-sum .lx-top { display: block; visibility: hidden; }
  .lx-top { grid-area: top; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
  .lx-links { padding-left: 60px; }
  .lx-lmore { width: auto; margin-left: 60px; }
}
.mono { font: 500 .86rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* Copy / download */
.links-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.links-head h2 { margin: 0; }
.links-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.links-actions .btn { min-height: 44px; }
.copy-status { color: var(--good); font-weight: 600; font-size: .92rem; }
.g-fav-s { color: #fff; }
#send .after-card { margin-top: 20px; }
