  * { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    color-scheme: light;
    --accent: #f8f180;
    --accent-hover: #eee06a;
    --accent-hover-strong: #8a7200;
    --accent-contrast: #1c1c1e;
    --success: #2d8a57;
    --success-soft: rgba(45, 138, 87, 0.16);
    --warning: #8a7200;
    --warning-soft: rgba(138, 114, 0, 0.12);
    --danger: #c03939;
    --danger-soft: rgba(192, 57, 57, 0.12);
    --radius: 24px;
    --radius-sm: 14px;
    --sidebar-w: 240px;

    --bg: #f5f5f2;
    --bg-deep: #ecece8;
    --surface: #ffffff;
    --surface-light: #ededea;
    --surface-muted: #f0f0ec;
    --border: rgba(0, 0, 0, 0.08);
    --text: #1c1c1e;
    --text-muted: #636366;
    --text-soft: #8e8e93;
    --text-on-light: #1c1c1e;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    --hero-ghost-opacity: 0.04;
    --hover-bg: rgba(0, 0, 0, 0.04);
    --hover-border: rgba(0, 0, 0, 0.12);
    --spinner-track: rgba(0, 0, 0, 0.1);
    --issue-bg: rgba(0, 0, 0, 0.04);
    --chip-bg: rgba(28, 28, 30, 0.06);
    --chip-text: rgba(28, 28, 30, 0.75);
    --chip-text-soft: rgba(28, 28, 30, 0.45);
    --chip-label: rgba(28, 28, 30, 0.55);
    --accent-label: rgba(28, 28, 30, 0.55);
    --accent-sub: rgba(28, 28, 30, 0.65);
    --light-label: rgba(28, 28, 30, 0.5);
    --light-sub: rgba(28, 28, 30, 0.6);
    --ui-success: #2d8a57;
    --ui-warning: #8a7200;
    --ui-danger: #c03939;
    --ui-success-soft: rgba(45, 138, 87, 0.12);
    --ui-warning-soft: rgba(138, 114, 0, 0.1);
    --ui-danger-soft: rgba(192, 57, 57, 0.1);
    --grid-gap: 0.85rem;
  }

  @media (min-width: 1200px) {
    :root { --grid-gap: 2rem; }
  }
  @media (min-width: 1600px) {
    :root { --grid-gap: 2.5rem; }
  }

  html, body { height: 100%; background: var(--bg); }
  body {
    font-family: "Outfit", ui-sans-serif, system-ui, sans-serif;
    color: var(--text);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    color-scheme: light;
  }

  .hidden { display: none !important; }

  /* ============ Landing ============ */
  .landing-wrap {
    min-height: 100vh;
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.4rem 1.25rem 3rem;
    display: flex;
    flex-direction: column;
  }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0.2rem;
  }
  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--text);
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
  }
  .brand-name { font-weight: 600; font-size: 0.98rem; }
  .brand-name span { color: var(--text-muted); font-weight: 500; }
  .ghost-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
  }
  /* The status box and the links share one cell, so starting an audit swaps them without moving anything below */
  .hero-under {
    position: relative;
    display: grid;
    justify-items: center;
    align-items: start;
    width: 100%;
    max-width: 640px;
    min-height: 4.75rem;
  }
  .hero-under > :is(.status, .hero-links) { grid-area: 1 / 1; margin-top: 1.25rem; }
  #landingStatus:not(.hidden) + .hero-links { visibility: hidden; }
  .hero-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
  }
  .ghost-link:hover { color: var(--text); background: var(--surface-muted); }

  .hero {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    text-align: center;
    overflow: hidden;
  }
  .hero-ghost {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    user-select: none;
  }
  .hero-ghost-tilt {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }
  .hero-ghost-mark {
    width: clamp(14rem, 30vw, 30rem);
    height: auto;
    opacity: var(--hero-ghost-opacity);
    display: block;
    animation: hero-ghost-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-ghost-mark.is-auditing {
    animation: hero-ghost-spin 2.8s linear infinite;
  }
  @keyframes hero-ghost-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.7rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
    position: relative;
  }
  .hero-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
  }
  .hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 0.9rem;
    position: relative;
  }
  .hero h1 em { font-style: italic; color: var(--text-muted); font-weight: 400; }
  .hero-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto 2rem;
    position: relative;
  }
  .input-card {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.55rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 0.45rem;
  }
  .input-card input {
    flex: 1;
    padding: 0.9rem 1rem;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text);
    font-family: inherit;
  }
  .input-card input::placeholder { color: var(--text-soft); }
  .input-card button {
    padding: 0.85rem 1.4rem;
    background: var(--accent);
    color: var(--accent-contrast);
    border: none;
    border-radius: calc(var(--radius) - 8px);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .input-card button:hover:not(:disabled) { background: var(--accent-hover); }
  .input-card button:disabled { opacity: 0.55; cursor: not-allowed; }
  .site-footer {
    margin-top: auto;
    padding: 1.5rem 0.25rem 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.5;
    max-width: 640px;
    text-wrap: balance;
    margin-left: auto;
    margin-right: auto;
  }
  .site-footer a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .site-footer a:hover { color: var(--text); }

  .side-brand { display: flex; flex-direction: column; gap: 0.15rem; }
  .logo-by {
    margin-left: calc(32px + 0.6rem);
    color: var(--text-soft);
    font-size: 0.72rem;
    text-decoration: none;
  }
  .logo-by:hover { color: var(--text-muted); }
  .lang-switch {
    display: inline-flex;
    padding: 0.15rem;
    background: var(--bg-deep);
    border-radius: 999px;
    flex-shrink: 0;
  }
  .lang-opt {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-soft);
    text-decoration: none;
  }
  a.lang-opt:hover { color: var(--text-muted); }
  .lang-opt.active {
    background: var(--accent);
    color: var(--accent-contrast);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.05rem;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
  }
  .btn-accent {
    background: var(--accent);
    color: var(--accent-contrast);
    border: none;
    border-radius: calc(var(--radius) - 6px);
    padding: 0.85rem 1.35rem;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
  }
  .btn-accent:hover { background: var(--accent-hover); }
  .btn-accent:disabled { opacity: 0.55; cursor: not-allowed; }
  .btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
  }
  .btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--hover-border); }
  .btn-ghost:disabled {
    opacity: 0.72;
    cursor: not-allowed;
  }
  .btn-ghost.is-loading { color: var(--text-muted); }
  .btn-spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--spinner-track);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
  }
  .btn-spinner.hidden { display: none; }

  .status {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  #landingStatus {
    max-width: 640px;
    position: relative;
    width: 100%;
  }
  .status.analysing-status {
    justify-content: center;
    padding: 0;
    margin-top: 1.25rem;
    background: transparent;
    border: none;
  }
  .analysing-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
    padding: 0.95rem 1.4rem;
    background: #2c2c2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  }
  .analysing-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
  }
  .analysing-loader {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35em;
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .analysing-prefix {
    color: #a1a1a6;
  }
  .analysing-keyword-wrap {
    position: relative;
    display: inline-block;
    height: 1.45em;
    overflow: hidden;
    vertical-align: bottom;
    min-width: 6em;
    text-align: left;
  }
  .analysing-keyword {
    display: block;
    color: var(--accent);
    font-weight: 500;
  }
  .analysing-keyword--in {
    animation: analysing-keyword-in 0.45s ease forwards;
  }
  .analysing-keyword--out {
    animation: analysing-keyword-out 0.45s ease forwards;
  }
  @keyframes analysing-keyword-in {
    from {
      opacity: 0;
      transform: translateY(0.55em);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes analysing-keyword-out {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(-0.55em);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .analysing-keyword--in,
    .analysing-keyword--out,
    .analysing-spinner {
      animation: none;
    }
  }
  .status.error { background: var(--ui-danger-soft); color: var(--ui-danger); border-color: transparent; }
  .status .spinner {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid var(--spinner-track);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ============ Enter animations ============ */
  @keyframes enter-up {
    from {
      opacity: 0;
      transform: translateY(20px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  @keyframes enter-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes enter-slide-left {
    from {
      opacity: 0;
      transform: translateX(-22px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  @keyframes enter-slide-right {
    from {
      opacity: 0;
      transform: translateX(18px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  @keyframes hero-ghost-in {
    from {
      opacity: 0;
      transform: scale(0.92);
    }
    to {
      opacity: var(--hero-ghost-opacity);
      transform: scale(1);
    }
  }
  @keyframes landing-out {
    to {
      opacity: 0;
      transform: translateY(-10px);
    }
  }
  @keyframes title-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .landing-wrap .topbar {
    animation: enter-fade 0.55s ease both;
  }
  .hero-eyebrow {
    animation: enter-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
  }
  .hero h1 {
    animation: enter-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
  }
  .hero-sub {
    animation: enter-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
  }
  .input-card {
    animation: enter-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
  }
  .hero-links {
    animation: enter-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  }
  .landing-wrap.landing-exit {
    animation: landing-out 0.32s ease forwards;
    pointer-events: none;
  }

  .app.app-reveal .side {
    animation: enter-slide-left 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .app.app-reveal .main {
    animation: enter-slide-right 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
  }

  .main-bar h1.title-enter,
  .main-bar-sub.title-enter {
    animation: title-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .main-bar-sub.title-enter {
    animation-delay: 0.05s;
  }

  .view-enter .card,
  .view-enter .cta-card,
  .view-enter .panel {
    opacity: 0;
    animation: enter-up 0.58s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--anim-i, 0) * 48ms + 40ms);
  }
  .view-enter .issue-item,
  .view-enter .check-row,
  .view-enter .og-card,
  .view-enter .page-row,
  .view-enter .problem-block {
    opacity: 0;
    animation: enter-up 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--anim-i, 0) * 38ms + 100ms);
  }
  .view-enter--instant .card,
  .view-enter--instant .cta-card,
  .view-enter--instant .panel,
  .view-enter--instant .issue-item,
  .view-enter--instant .check-row,
  .view-enter--instant .og-card,
  .view-enter--instant .page-row,
  .view-enter--instant .problem-block {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  @media (prefers-reduced-motion: reduce) {
    .landing-wrap .topbar,
    .hero-ghost-mark,
    .hero-ghost-tilt,
    .hero-eyebrow,
    .hero h1,
    .hero-sub,
    .input-card,
    .hero-links,
    .landing-wrap.landing-exit,
    .app.app-reveal .side,
    .app.app-reveal .main,
    .view-enter .card,
    .view-enter .cta-card,
    .view-enter .panel,
    .view-enter .issue-item,
    .view-enter .check-row,
    .view-enter .og-card,
    .view-enter .page-row,
    .view-enter .problem-block,
    .main-bar h1.title-enter,
    .main-bar-sub.title-enter {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
  }

  /* ============ App shell ============ */
  .app {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
  }

  .side {
    background: var(--bg);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: sticky;
    top: 0;
    height: 100vh;
  }

  .side-profile {
    padding: 0 0.25rem;
  }
  .profile-domain {
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.3;
    word-break: break-all;
  }
  .profile-meta {
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-top: 0.15rem;
  }
  .side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
  }
  .side-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    width: 100%;
  }
  .side-link:hover { color: var(--text); background: var(--hover-bg); }
  .side-link.active {
    color: var(--text);
    background: var(--surface);
    font-weight: 600;
  }
  .side-icon {
    width: 18px; height: 18px;
    opacity: 0.7;
    flex-shrink: 0;
  }
  .side-link.active .side-icon { opacity: 1; }
  .side-lock {
    width: 14px; height: 14px;
    margin-left: auto;
    opacity: 0.5;
    flex-shrink: 0;
  }
  /* When unlocked, drop the padlocks so gated tabs look like normal links */
  .side-nav.unlocked .side-lock { display: none; }
  .side-link--soon { cursor: default; color: var(--text-soft); white-space: nowrap; }
  .side-link--soon:hover { background: transparent; color: var(--text-soft); }
  .side-soon {
    margin-left: auto;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .side-badge {
    margin-left: auto;
    min-width: 1.35rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: var(--ui-warning-soft);
    color: var(--ui-warning);
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
  }
  .side-badge.critical { background: var(--ui-danger-soft); color: var(--ui-danger); }
  .side-badge.low { background: var(--chip-bg); color: var(--text-muted); }
  .side-badge:not(.hidden) + .side-lock { margin-left: 0.4rem; }

  /* Email gate modal */
  .gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
  }
  .gate-overlay.hidden { display: none; }
  .gate-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  }
  .gate-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--accent);
    color: var(--accent-contrast);
    margin-bottom: 1rem;
  }
  .gate-icon svg { width: 22px; height: 22px; }
  .gate-card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    color: var(--text);
  }
  .gate-card p {
    margin: 0 0 1.15rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
  }
  .gate-form { display: flex; flex-direction: column; gap: 0.7rem; }
  .gate-input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
  }
  .gate-input:focus {
    outline: none;
    border-color: var(--accent-hover-strong);
    background: var(--surface);
  }
  .gate-submit {
    padding: 0.72rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--accent-contrast);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
  }
  .gate-submit:hover { background: var(--accent-hover); }
  .gate-submit:disabled { opacity: 0.6; cursor: default; }
  .gate-error {
    margin: 0;
    font-size: 0.82rem;
    color: #c0392b;
    min-height: 1rem;
  }
  .gate-dismiss {
    margin-top: 0.4rem;
    background: none;
    border: none;
    color: var(--text-soft);
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    align-self: center;
  }
  .gate-dismiss:hover { color: var(--text-muted); }

  .side-foot {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }
  .side-foot-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.7rem;
    background: var(--surface-muted);
    border-radius: 12px;
    border: 1px solid var(--border);
  }
  .side-foot-score-label {
    font-size: 0.72rem;
    color: var(--text-soft);
    font-weight: 500;
  }
  .side-foot-score-val {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.02em;
  }
  .side-cta {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.85rem 0.9rem;
  }
  .side-cta-title {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
  }
  .side-cta-text {
    font-size: 0.72rem;
    color: var(--text-soft);
    line-height: 1.4;
    margin-bottom: 0.65rem;
  }
  .side-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.52rem 0.75rem;
    font-size: 0.78rem;
    line-height: 1.3;
    white-space: normal;
    border-radius: 999px;
  }
  .side-foot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .side-foot-privacy {
    font-size: 0.72rem;
    color: var(--text-soft);
    text-decoration: none;
    flex-shrink: 0;
  }
  .side-foot-privacy:hover { color: var(--text-muted); text-decoration: underline; }

  .main {
    padding: 1.5rem 1.75rem 2.5rem;
    min-width: 0;
  }

  .main-bar-sub:empty { display: none; }
  .main-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
  }
  .main-bar h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .main-bar-sub {
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-top: 0.15rem;
  }
  .main-bar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .audit-continue-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
  }
  .audit-continue-wrap.hidden {
    display: none;
  }
  .audit-continue-status {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
  }

  .og-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
  }
  .og-panel-head h3 { margin-bottom: 0; }

  .og-filter-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
  }
  .og-locale-tabs {
    flex-wrap: wrap;
  }
  .og-missing-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.2;
    border: 1px solid var(--border);
    background: var(--bg-deep);
    color: var(--text-muted);
    cursor: pointer;
  }
  .og-missing-pill:hover {
    color: var(--text);
  }
  .og-missing-pill.active {
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  }

  .og-search {
    position: relative;
    flex: 1;
    max-width: 280px;
    min-width: 160px;
  }
  .og-search input {
    width: 100%;
    padding: 0.48rem 0.85rem 0.48rem 2.15rem;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.82rem;
    color: var(--text);
    outline: none;
  }
  .og-search input:focus { border-color: var(--accent); }
  .og-search input::placeholder { color: var(--text-soft); }
  .og-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-soft);
    pointer-events: none;
  }
  .og-search-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
  }
  .og-load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }
  .og-load-more-meta {
    font-size: 0.78rem;
    color: var(--text-soft);
    text-align: center;
    line-height: 1.45;
  }

  .pill-tabs {
    display: inline-flex;
    padding: 0.2rem;
    background: var(--bg-deep);
    border-radius: 999px;
    gap: 0.1rem;
  }
  .pill-tab {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
  }
  .pill-tab.active {
    background: var(--surface-light);
    color: var(--text-on-light);
  }
  .og-locale-tabs .pill-tab:not(.active) {
    color: var(--text-soft);
  }
  .og-locale-tabs .pill-tab:not(.active):hover {
    color: var(--text-muted);
  }
  .og-locale-tabs .pill-tab.active {
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  }

  /* ============ Card grid ============ */
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    margin-bottom: var(--grid-gap);
  }
  .overview-heading {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
  }
  .fix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
    margin-bottom: var(--grid-gap);
  }
  /* An odd card out takes the full row instead of leaving a hole */
  .fix-grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .fix-card-title { font-size: 1rem; font-weight: 600; }
  .fix-card .card-sub { margin: 0.2rem 0 0.6rem; }
  .fix-card .issue-breakdown { margin: 0 -0.55rem; }
  .fix-see-all {
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
  }
  .fix-see-all:hover { text-decoration: underline; }

  .card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    min-height: 160px;
    display: flex;
    flex-direction: column;
  }
  .card.accent {
    background: var(--accent);
    color: var(--accent-contrast);
  }
  .card.light {
    background: var(--surface-light);
    color: var(--text-on-light);
  }
  .card.span-2 { grid-column: span 2; }
  .card.span-3 { grid-column: span 3; }

  .card-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
  }
  .card.accent .card-label { color: var(--accent-label); }
  .card.light .card-label { color: var(--light-label); }

  .card-value {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    line-height: 1;
  }
  .card-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.45rem;
    line-height: 1.4;
  }
  .card.accent .card-sub { color: var(--accent-sub); }
  .card.light .card-sub { color: var(--light-sub); }

  .card.accent .card-sub a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .card.light .card-sub a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .card.light .card-sub a:hover {
    color: inherit;
  }
  /* Google colours, kept literal on purpose so the preview reads as a real result */
  .serp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
  }
  .serp-head .card-label { margin-bottom: 0; }
  .serp-locale-select {
    min-width: 0;
    padding: 0.45rem 2rem 0.45rem 0.9rem;
    border: none;
    border-radius: 999px;
    background: var(--bg-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23636366' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    appearance: none;
  }
  .serp-site, .serp-title, .serp-desc { font-family: Arial, sans-serif; }
  .favicon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f3f4;
    overflow: hidden;
  }
  .favicon img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .serp-site {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .serp-site-text { min-width: 0; }
  .serp-domain { font-size: 0.85rem; color: #202124; }
  .serp-url {
    font-size: 0.75rem;
    color: #4d5156;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .serp-title {
    margin-top: 0.5rem;
    font-size: 1.15rem;
    line-height: 1.3;
    color: #1a0dab;
  }
  .serp-desc {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #4d5156;
  }
  .serp-missing { color: #70757a; font-style: italic; }
  .serp-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
  .serp-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.5rem 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
  }
  .serp-filter:hover { border-color: var(--hover-border); color: var(--text); }
  .serp-filter.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); font-weight: 600; }
  .serp-filter-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--text-soft); }
  .serp-filter-dot.warn { background: var(--warning); }
  .serp-filter-dot.critical { background: var(--danger); }
  .serp-filter-count {
    min-width: 1.4rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: var(--chip-bg);
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }
  .serp-filter.active .serp-filter-count { background: rgba(28, 28, 30, 0.12); }
  .serp-why:not(:empty) { margin-bottom: 1rem; }
  .serp-why .problem { font-size: 0.85rem; }
  .serp-results { display: flex; flex-direction: column; }
  .serp-result { padding: 1rem 0.25rem; border-top: 1px solid var(--border); max-width: 640px; }
  .serp-result.skipped { opacity: 0.7; }
  .serp-result-link { display: block; text-decoration: none; }
  .serp-result-link:hover .serp-title { text-decoration: underline; }
  .serp-result .serp-title { font-size: 1.05rem; margin-top: 0.35rem; }
  .serp-result .serp-desc { font-size: 0.82rem; }
  .serp-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.55rem; }
  .serp-tag {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--chip-bg);
    color: var(--text-muted);
  }
  .serp-tag.warn { background: var(--ui-warning-soft); color: var(--ui-warning); }
  .serp-tag.critical { background: var(--ui-danger-soft); color: var(--ui-danger); }
  .serp-more { align-self: flex-start; margin-top: 1rem; }

  .a11y-outline { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.8rem; }
  .a11y-heading { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.15rem 0.4rem; margin-left: calc(var(--level) * 1.1rem); border-radius: 6px; }
  .a11y-heading.skip { background: var(--ui-warning-soft); }
  .a11y-heading-level { flex-shrink: 0; font-size: 0.68rem; font-weight: 700; color: var(--text-soft); font-variant-numeric: tabular-nums; }
  .a11y-heading-text { color: var(--text); }
  .a11y-heading-note { font-size: 0.7rem; font-weight: 600; color: var(--ui-warning); white-space: nowrap; }
  .a11y-outline .fix-see-all { margin: 0.35rem 0 0 0.4rem; font-size: 0.78rem; }
  .a11y-images { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
  .a11y-image { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--chip-bg); }
  .a11y-images-more { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); padding: 0 0.3rem; }
  .a11y-note { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.4rem; }
  .a11y-image-cell { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; margin: 0; font-size: 0.68rem; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
  .a11y-fields { display: flex; flex-wrap: wrap; gap: 0.3rem; }
  .a11y-field { padding: 0.25rem 0.6rem; border: 1px dashed var(--hover-border); border-radius: 8px; font-size: 0.75rem; color: var(--text-muted); }
  .serp-overflow { opacity: 0.35; }
  .serp-checks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.1rem;
    font-size: 0.82rem;
  }
  .problem {
    display: flex;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--ui-warning-soft);
    color: var(--text);
    line-height: 1.4;
  }
  .problem.critical { background: var(--ui-danger-soft); }
  .problem-head { display: flex; align-items: center; gap: 0.35rem; font-weight: 600; }
  .problem .tip-trigger .tip {
    left: 0;
    transform: none;
    max-width: min(380px, 80vw);
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
  }
  .problem div div { color: var(--text-muted); }
  .problem-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--warning);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
  }
  .problem.critical .problem-icon, .problem-icon.critical { background: var(--danger); }
  .problem-icon.low { background: var(--text-soft); }
  .problem.low { background: var(--chip-bg); }
  .serp-passes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .serp-pass {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--ui-success-soft);
    color: var(--ui-success);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: default;
  }

  .check-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.82rem;
  }
  .check-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.2rem;
    line-height: 1.35;
  }
  .check-row strong { font-weight: 600; }
  .check-row-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--success-soft);
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 700;
  }
  .check-row-sub { font-size: 0.75rem; color: var(--light-sub); }

  .issue-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
  }
  .issue-stat {
    padding: 0.65rem 0.75rem;
    background: var(--chip-bg);
    border-radius: 14px;
  }
  .issue-stat-value {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text-on-light);
  }
  .issue-stat-value.critical { color: var(--danger); }
  .issue-stat-value.warning { color: var(--warning); }
  .issue-stat-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--chip-text-soft);
    line-height: 1.25;
  }
  .issue-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
  }
  .issue-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.55rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-family: inherit;
    width: 100%;
    text-align: left;
    color: inherit;
  }
  .issue-breakdown-row.linked { cursor: pointer; }
  .issue-breakdown-row.linked:hover { background: rgba(0, 0, 0, 0.04); }
  .issue-breakdown-main {
    min-width: 0;
    flex: 1;
  }
  .issue-breakdown-name-row {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    min-width: 0;
    position: relative;
  }
  .issue-breakdown-name {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--chip-text);
  }
  .issue-breakdown-reach {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.74rem;
    line-height: 1.3;
    color: var(--text-muted);
  }
  .issue-breakdown-chevron {
    flex-shrink: 0;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--text-soft);
  }
  .issue-breakdown-row .tip-trigger {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    opacity: 0.55;
  }
  .issue-breakdown-row .tip-trigger:hover,
  .issue-breakdown-row .tip-trigger.is-open {
    opacity: 1;
  }
  .issue-list { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
  .issue-item {
    padding: 0.6rem 0.75rem;
    background: var(--issue-bg);
    border-radius: 12px;
    font-size: 0.82rem;
    position: relative;
    overflow: visible;
  }
  .issue-item:has(.tip-trigger) {
    padding-left: 2.15rem;
  }
  .card.light .issue-item { background: var(--chip-bg); }
  .issue-item strong { display: block; font-weight: 600; margin-bottom: 0; }
  .issue-item .issue-page-url {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted);
    word-break: break-all;
    text-decoration: none;
    line-height: 1.35;
  }
  .issue-item .issue-page-url:hover { color: var(--accent); }
  .card.light .issue-item .issue-page-url { color: var(--chip-text-soft); }
  .issue-item .issue-source {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-soft);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .card.light .issue-item .issue-source { color: var(--chip-text-soft); }
  .issue-list { overflow: visible; }
  .card.span-3 { overflow: visible; }

  .tip-trigger {
    width: 1.35rem;
    height: 1.35rem;
    border: none;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-soft);
    cursor: help;
    display: grid;
    place-items: center;
    line-height: 0;
  }
  .issue-item .tip-trigger {
    position: absolute;
    top: 0.5rem;
    left: 0.45rem;
  }
  .tip-trigger:hover,
  .tip-trigger:focus-visible,
  .tip-trigger.is-open {
    color: var(--text);
    background: var(--chip-bg);
  }
  .card.light .tip-trigger:hover,
  .card.light .tip-trigger:focus-visible,
  .card.light .tip-trigger.is-open {
    background: rgba(0, 0, 0, 0.06);
  }

  .panel {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 0.85rem;
  }
  .panel h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
  }

  .page-row {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    background: var(--surface-muted);
    margin-bottom: 0.5rem;
  }
  .page-row a {
    color: var(--text);
    font-size: 0.84rem;
    word-break: break-all;
    text-decoration: none;
    font-weight: 500;
  }
  .page-row a:hover { color: var(--accent); }
  .issue-group-pages {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-height: 20rem;
    overflow-y: auto;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid var(--border);
  }
  .section-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.35rem 2rem;
  }
  .section-summary-line { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
  .section-summary-sub { grid-column: 1; font-size: 0.85rem; color: var(--text-muted); }
  .section-summary-stats { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; }
  .section-summary-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--chip-bg);
    color: var(--text-muted);
    white-space: nowrap;
  }
  .section-summary-stat::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--text-soft); }
  .section-summary-stat.warn { background: var(--ui-warning-soft); color: var(--ui-warning); }
  .section-summary-stat.warn::before { background: var(--warning); }
  .section-summary-stat.critical { background: var(--ui-danger-soft); color: var(--ui-danger); }
  .section-summary-stat.critical::before { background: var(--danger); }
  @media (max-width: 700px) {
    .section-summary { grid-template-columns: 1fr; }
    .section-summary-stats { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 0.4rem; }
  }
  .problem-block-list { display: flex; flex-direction: column; gap: 0.75rem; }
  .problem-block {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    background: var(--surface-muted);
  }
  .problem-block-head { display: flex; align-items: center; gap: 0.75rem; }
  .problem-block .issue-breakdown-name { font-size: 0.92rem; }
  .problem-block-why { margin: 0.6rem 0 0 2.3rem; font-size: 0.82rem; line-height: 1.45; color: var(--text-muted); }
  .problem-block-example { margin: 0.8rem 0 0 2.3rem; }
  .problem-block-example-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); margin-bottom: 0.4rem; }
  .problem-block-pages-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.9rem 0 0 2.3rem;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
  }
  .problem-block-caret { font-size: 1.1rem; line-height: 1; color: var(--text-soft); transition: transform 0.15s ease; }
  .problem-block.open .problem-block-caret { transform: rotate(90deg); }
  .problem-block:not(.open) .issue-group-pages { display: none; }
  .problem-block .issue-group-pages { margin: 0.6rem 0 0 2.3rem; }
  .issue-group-page-entry { font-size: 0.8rem; }
  .issue-group-page {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.15rem 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    text-align: left;
    word-break: break-all;
    cursor: pointer;
  }
  .issue-group-page:hover { color: var(--accent-hover-strong); }
  .issue-group-page-entry.open .problem-block-caret { transform: rotate(90deg); }
  .page-detail { display: none; margin: 0.4rem 0 0.6rem; padding: 0.75rem 0.9rem; border: 1px solid var(--border); border-radius: 10px; }
  .issue-group-page-entry.open .page-detail { display: block; }
  .page-detail-block + .page-detail-block { margin-top: 0.7rem; }
  .page-detail-label { font-size: 0.78rem; font-weight: 600; margin-bottom: 0.35rem; }
  .page-detail-open { display: inline-block; margin-top: 0.75rem; font-size: 0.76rem; color: var(--text-muted); }
  .tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
  .tag {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
  }
  .tag.critical { background: var(--ui-danger-soft); color: var(--ui-danger); }
  .tag.warning { background: var(--ui-warning-soft); color: var(--warning); }
  .tag.pass { background: var(--ui-success-soft); color: var(--ui-success); }

  .has-tip {
    position: relative;
    cursor: help;
  }
  .has-tip .tip {
    position: absolute;
    z-index: 30;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: min(280px, 85vw);
    padding: 0.55rem 0.7rem;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text);
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    text-align: left;
    box-shadow: var(--shadow);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
  }
  .has-tip:hover .tip,
  .has-tip:focus-visible .tip,
  .has-tip.is-open .tip {
    opacity: 1;
    visibility: visible;
  }
  .has-tip:hover,
  .has-tip.is-open,
  .has-tip:focus-within {
    z-index: 30;
  }
  .tags { position: relative; }
  .tags .has-tip .tip {
    left: 0;
    transform: none;
  }
  .issue-item .tip-trigger .tip {
    top: calc(100% + 6px);
    bottom: auto;
    left: 0;
    right: auto;
    transform: none;
  }
  .issue-breakdown-row .tip-trigger .tip {
    top: calc(100% + 6px);
    bottom: auto;
    left: 0;
    right: auto;
    transform: none;
    min-width: 12rem;
    max-width: 16rem;
  }

  .og-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--grid-gap);
  }
  .og-card {
    background: var(--surface-muted);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
  }
  .og-card.is-highlighted {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(200, 190, 60, 0.45);
  }
  .og-card-media { position: relative; }
  .og-usage-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #fff;
    box-sizing: border-box;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    z-index: 2;
  }
  .og-usage-badge .tip {
    top: calc(100% + 6px);
    bottom: auto;
    right: 0;
    left: auto;
    transform: none;
    max-width: min(240px, 70vw);
  }
  .og-card:has(.og-usage-badge:hover),
  .og-card:has(.og-usage-badge:focus-visible),
  .og-card:has(.og-usage-badge.is-open) {
    z-index: 6;
  }
  .og-usage-badge.has-tip {
    cursor: unset;
  }
  .og-usage-badge--low {
    background: #9a7d00;
  }
  .og-usage-badge--warning {
    background: #7d5f00;
  }
  .og-usage-badge--critical {
    background: var(--ui-danger);
  }
  .og-card--pending {
    border-style: dashed;
    border-color: var(--border);
  }
  .og-card-media--pending {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.91/1;
    background: var(--surface-muted);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    border-radius: 14px 14px 0 0;
  }
  .og-card--missing {
    border-color: rgba(192, 57, 57, 0.45);
  }
  .og-card-media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.91/1;
    background: var(--bg-deep);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    border-radius: 14px 14px 0 0;
  }
  .og-grid-split {
    grid-column: 1 / -1;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
  }
  .og-grid-split:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
  .og-card img {
    width: 100%;
    aspect-ratio: 1.91/1;
    object-fit: cover;
    display: block;
    border-radius: 14px 14px 0 0;
  }
  .og-card .og-meta { padding: 0.6rem 0.7rem; }
  .og-card .og-title { font-size: 0.82rem; font-weight: 600; }
  .og-card .og-desc { font-size: 0.74rem; color: var(--text-muted); margin-top: 0.2rem; }
  .og-card .og-url {
    display: block;
    padding: 0 0.7rem 0.6rem;
    font-size: 0.68rem;
    color: var(--text-soft);
    text-decoration: none;
    word-break: break-all;
  }

  .cta-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .cta-card p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.2rem; }

  .empty { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.88rem; }

  @media (max-width: 1280px) {
    /* Too narrow for the Google card and a third-width column side by side: stack them, checks flow into columns */
    .grid > .card.serp-card, .grid > .card.site-checks-card { grid-column: 1 / -1; }
    .site-checks-card .check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 1rem; }
  }
  @media (max-width: 1100px) {
    /* The sidebar dissolves into the page grid: a compact top row, a sticky nav strip, and its footer at the very end */
    .app {
      grid-template-columns: auto 1fr;
      grid-template-areas: "logo profile" "nav nav" "main main" "foot foot";
      align-content: start;
    }
    .side { display: contents; }
    .main { grid-area: main; }
    .logo { grid-area: logo; padding: 0.75rem 0 0.75rem 1rem; font-size: 0; gap: 0; }
    .side-profile {
      grid-area: profile;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      min-width: 0;
      padding: 0.75rem 1rem 0.75rem 0.75rem;
    }
    .profile-domain { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; }
    .profile-meta { margin: 0; white-space: nowrap; }
    .side-nav {
      grid-area: nav;
      position: sticky;
      top: 0;
      z-index: 20;
      flex-direction: row;
      gap: 0.35rem;
      overflow-x: auto;
      padding: 0.5rem 1rem;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      scrollbar-width: none;
    }
    .side-nav::-webkit-scrollbar { display: none; }
    .side-link { width: auto; flex-shrink: 0; white-space: nowrap; padding: 0.4rem 0.8rem; border-radius: 999px; }
    .side-badge, .side-lock, .side-badge:not(.hidden) + .side-lock { margin-left: 0.3rem; }
    .side-foot { grid-area: foot; margin: 0; padding: 1rem; }
    .grid { grid-template-columns: 1fr 1fr; }
    .card.span-2, .card.span-3 { grid-column: span 2; }
  }
  @media (max-width: 560px) {
    .grid, .fix-grid { grid-template-columns: 1fr; }
    .card.span-2, .card.span-3 { grid-column: span 1; }
    .input-card { flex-direction: column; }
    .main { padding: 1rem; }
    /* The page header already says how many pages were audited */
    .profile-meta { display: none; }
  }
