/* SEO + GEO Page Analyser v2: matches the site's tool-page system (Roboto, #0f172a ink, #E49814 accent). Scoped under .sgp-page. */
.sgp-page {
	--sgp-accent: #E49814; --sgp-accent-dark: #c9860f; --sgp-soft: #fff7ed; --sgp-soft-line: #fde4b5;
	--sgp-ink: #0f172a; --sgp-text: #4b5563; --sgp-muted: #6b7280; --sgp-faint: #9ca3af;
	--sgp-line: #e5e7eb; --sgp-line-2: #f1f5f9; --sgp-wash: #fafafa;
	--sgp-pass: #3f6212; --sgp-pass-soft: #f2f7e8; --sgp-warn: #b45309; --sgp-warn-soft: #fef3e2; --sgp-fail: #b91c1c; --sgp-fail-soft: #fef2f2;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--sgp-text); background: #fff;
	font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
.sgp-page *, .sgp-page *::before, .sgp-page *::after { box-sizing: border-box; }
.sgp-page h1, .sgp-page h2, .sgp-page h3, .sgp-page h4, .sgp-page p, .sgp-page ul, .sgp-page ol, .sgp-page blockquote, .sgp-page fieldset, .sgp-page figure { margin: 0; padding: 0; }
.sgp-page a { color: var(--sgp-accent); }
.sgp-page :focus-visible { outline: 2px solid var(--sgp-accent); outline-offset: 2px; }
.sgp-page [hidden] { display: none !important; }

/* Page layout (same as the content mapping tool page) */
.sgp-layout { display: grid; grid-template-columns: 70% 30%; align-items: start; padding: 56px 24px 80px; }
.sgp-main { padding-right: 56px; min-width: 0; }
.sgp-sidebar { position: sticky; top: 40px; align-self: start; }
.sgp-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--sgp-accent); margin-bottom: 12px; display: block; }
.sgp-h1 { font-size: 30px; font-weight: 700; color: var(--sgp-ink); line-height: 1.18; letter-spacing: -.02em; margin-bottom: 16px; }
.sgp-rule { width: 48px; height: 3px; background: linear-gradient(90deg, var(--sgp-accent), #f0b54a); border-radius: 3px; margin: 18px 0 22px; }
.sgp-lead { font-size: 17px; color: var(--sgp-muted); line-height: 1.85; margin-bottom: 28px !important; max-width: 700px; }
.sgp-lead strong, .sgp-p strong { color: #374151; font-weight: 600; }
.sgp-sec { padding: 44px 0 6px; border-top: 1px solid var(--sgp-line); margin-top: 44px; }
.sgp-label { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sgp-accent); margin-bottom: 8px; display: block; }
.sgp-h2 { font-size: 24px; font-weight: 700; color: var(--sgp-ink); line-height: 1.3; margin-bottom: 14px !important; letter-spacing: -.015em; }
.sgp-h3 { font-size: 19px; font-weight: 700; color: var(--sgp-ink); line-height: 1.3; margin-bottom: 12px !important; }
.sgp-p { font-size: 16px; color: var(--sgp-muted); line-height: 1.85; margin-bottom: 16px !important; max-width: 700px; }
.sgp-p a { font-weight: 500; border-bottom: 1px solid rgba(228,152,20,.35); text-decoration: none; }
.sgp-quote { display: flex; gap: 22px; align-items: flex-start; margin-top: 48px; padding: 26px; background: var(--sgp-wash); border: 1px solid var(--sgp-line-2); border-left: 3px solid var(--sgp-accent); border-radius: 0 10px 10px 0; max-width: 760px; }
.sgp-quote img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--sgp-soft); }
.sgp-quote-mark { font-family: Georgia, serif; font-size: 44px; line-height: .7; color: var(--sgp-accent); font-weight: 700; display: block; margin-bottom: 8px; }
.sgp-quote blockquote { font-size: 15.5px; color: var(--sgp-ink); line-height: 1.75; margin-bottom: 14px !important; border: 0; font-style: normal; }
.sgp-q-name { font-size: 14.5px; font-weight: 700; color: var(--sgp-accent); }
.sgp-q-role { font-size: 12.5px; color: var(--sgp-muted); }
.sgp-stages { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 22px 0 10px; }
.sgp-stage { border: 1px solid var(--sgp-line); border-radius: 10px; padding: 18px 20px; background: #fff; }
.sgp-s-label { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sgp-accent); margin-bottom: 5px; }
.sgp-stage h3 { font-size: 15.5px; font-weight: 700; color: var(--sgp-ink); margin-bottom: 5px; }
.sgp-stage p { font-size: 13.5px; color: var(--sgp-muted); line-height: 1.65; }
.sgp-principle { background: #fffbeb; border-left: 3px solid var(--sgp-accent); padding: 22px 24px; border-radius: 0 8px 8px 0; margin: 30px 0; max-width: 700px; }
.sgp-principle h3 { font-size: 16px; font-weight: 700; color: var(--sgp-ink); margin-bottom: 10px; }
.sgp-principle p { font-size: 15px; color: var(--sgp-muted); line-height: 1.75; }
.sgp-principle p + p { margin-top: 10px; }
.sgp-faq { max-width: 700px; }
.sgp-faq details { border-top: 1px solid var(--sgp-line-2); padding: 18px 0; }
.sgp-faq details:last-child { border-bottom: 1px solid var(--sgp-line-2); }
.sgp-faq summary { font-size: 16px; font-weight: 600; color: var(--sgp-ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.sgp-faq summary::-webkit-details-marker { display: none; }
.sgp-faq summary::after { content: "+"; color: var(--sgp-accent); font-size: 20px; flex-shrink: 0; transition: transform .2s; }
.sgp-faq details[open] summary::after { transform: rotate(45deg); }
.sgp-faq details p { font-size: 15px; color: var(--sgp-muted); line-height: 1.8; margin-top: 10px; }
.sgp-hub { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
.sgp-hub a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; background: var(--sgp-ink); border-radius: 10px; text-decoration: none; transition: background .25s; }
.sgp-hub a:hover { background: #1a2540; }
.sgp-h-label { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #94a3b8; margin-bottom: 4px; }
.sgp-hub h4 { font-size: 15px; font-weight: 600; color: #fff; }
.sgp-h-arrow { font-size: 16px; color: var(--sgp-accent); }
.sgp-cta-row { margin-top: 52px; padding-top: 40px; border-top: 1px solid var(--sgp-line); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sgp-cta-row > p { font-size: 17px; color: #374151; flex: 1; min-width: 220px; }
.sgp-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sgp-btn-main { background: var(--sgp-accent); color: #fff !important; padding: 13px 24px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sgp-btn-main:hover { background: var(--sgp-accent-dark); }
.sgp-btn-plain { color: var(--sgp-muted) !important; padding: 13px 20px; border-radius: 6px; font-size: 14px; font-weight: 500; border: 1px solid var(--sgp-line); text-decoration: none; white-space: nowrap; }
.sgp-sb-inner { background: var(--sgp-ink); border-radius: 10px; padding: 36px 28px 32px; display: flex; flex-direction: column; gap: 18px; }
.sgp-sb-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--sgp-accent); }
.sgp-sb-heading { font-size: 25px; font-weight: 800; color: #fff; line-height: 1.25; }
.sgp-sb-heading span { color: var(--sgp-accent); }
.sgp-sb-body { font-size: 15.5px; color: rgba(255,255,255,.6); line-height: 1.7; }
.sgp-sb-divider { border: 0; border-top: 1px solid rgba(255,255,255,.08); margin: 0; }
.sgp-sb-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sgp-sb-list li { font-size: 15px; color: rgba(255,255,255,.65); display: flex; gap: 10px; line-height: 1.5; }
.sgp-sb-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sgp-accent); flex-shrink: 0; margin-top: 8px; }
.sgp-sb-cta { display: block; background: var(--sgp-accent); color: var(--sgp-ink) !important; font-size: 15px; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .05em; padding: 16px; border-radius: 6px; text-decoration: none; }
.sgp-sb-cta:hover { background: var(--sgp-accent-dark); }
.sgp-sb-note { font-size: 13.5px; color: rgba(255,255,255,.35); text-align: center; line-height: 1.6; }
.sgp-sb-secondary { display: block; text-align: center; font-size: 14.5px; color: rgba(255,255,255,.5) !important; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; text-decoration: none; }

/* Tool: shared form parts */
.sgp-tool { margin: 8px 0 0; }
.sgp-section { margin-top: 22px; background: #fff; border: 1px solid var(--sgp-line-2); border-radius: 12px; padding: 24px; box-shadow: 0 1px 3px rgba(15,23,42,.03); }
.sgp-lede { font-size: 15px; color: var(--sgp-muted); line-height: 1.7; max-width: 680px; margin-bottom: 14px !important; }
.sgp-field { margin-bottom: 14px; }
.sgp-field label, .sgp-flabel { display: block; font-size: 13px; font-weight: 700; color: var(--sgp-ink); margin-bottom: 5px; }
.sgp-opt { font-weight: 400; color: var(--sgp-faint); }
.sgp-fhint, .sgp-small { font-size: 12.5px; color: var(--sgp-faint); margin-top: 6px !important; }
.sgp-page input[type="text"], .sgp-page input[type="email"], .sgp-page input[type="password"], .sgp-page input[type="url"], .sgp-page select {
	width: 100%; font: inherit; font-size: 14px; color: var(--sgp-ink); background: var(--sgp-wash); border: 1px solid var(--sgp-line); border-radius: 8px; padding: 11px 13px; min-height: 44px;
}
.sgp-page input:focus, .sgp-page select:focus { border-color: var(--sgp-accent); background: #fff; outline: 2px solid rgba(228,152,20,.25); outline-offset: 0; }
.sgp-pass { position: relative; }
.sgp-pass input { padding-right: 72px; }
.sgp-showpass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--sgp-muted); cursor: pointer; padding: 6px 8px; }
.sgp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--sgp-text); margin: 10px 0; line-height: 1.5; cursor: pointer; }
.sgp-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--sgp-accent); flex-shrink: 0; }
.sgp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sgp-ts:not(:empty) { margin: 12px 0; }
.sgp-error { color: var(--sgp-fail); font-size: 14px; font-weight: 600; margin: 10px 0 0 !important; }
.sgp-cta { display: inline-block; background: var(--sgp-accent); color: #fff !important; border: 0; border-radius: 8px; padding: 14px 28px; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .03em; cursor: pointer; min-height: 48px; box-shadow: 0 4px 12px rgba(228,152,20,.25); transition: background .2s; }
.sgp-cta:hover { background: var(--sgp-accent-dark); }
.sgp-cta:disabled { opacity: .6; cursor: progress; }
.sgp-link { background: none; border: 0; padding: 0 0 0 12px; font: inherit; font-size: 13.5px; color: var(--sgp-accent); cursor: pointer; text-decoration: underline; }
.sgp-danger { background: #fff; color: var(--sgp-fail); border: 1px solid var(--sgp-fail); border-radius: 8px; padding: 10px 18px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }

/* Gate (signed out): one centred card */
.sgp-gate { max-width: 620px; margin: 0 auto; }
.sgp-gate-intro { text-align: center; }
.sgp-gate-intro .sgp-lede { margin-left: auto; margin-right: auto; }
.sgp-ticks { justify-content: center; }
/* (original gate rules follow) */
.sgp-gate { display: grid; grid-template-columns: 1fr; gap: 24px; background: #fff; border: 1px solid var(--sgp-line); border-radius: 12px; padding: 32px; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.sgp-ticks { display: flex !important; flex-wrap: wrap; gap: 8px 20px !important; }
.sgp-ticks { list-style: none; display: grid; gap: 10px; margin-top: 6px !important; }
.sgp-ticks li { position: relative; padding-left: 26px; font-size: 14.5px; color: #374151; }
.sgp-ticks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--sgp-accent); border-bottom: 2px solid var(--sgp-accent); transform: rotate(-45deg); }
.sgp-tabs { display: flex; border-bottom: 1px solid var(--sgp-line); margin-bottom: 18px; }
.sgp-tabs button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 8px; font: inherit; font-size: 14px; font-weight: 600; color: var(--sgp-muted); cursor: pointer; margin-bottom: -1px; }
.sgp-tabs button[aria-selected="true"] { color: var(--sgp-ink); border-bottom-color: var(--sgp-accent); }
.sgp-form .sgp-cta { width: 100%; margin-top: 8px; }

/* Google, notices and consent */
.sgp-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; border: 1px solid #dadce0; border-radius: 8px; background: #fff; color: #1f1f1f !important; font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.sgp-google:hover { background: #f8fafd; border-color: #c4c7c5; }
.sgp-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px !important; font-size: 12.5px; color: var(--sgp-faint); }
.sgp-or::before, .sgp-or::after { content: ""; flex: 1; border-top: 1px solid var(--sgp-line); }
.sgp-flash { margin-bottom: 16px !important; padding: 12px 14px; border-radius: 8px; background: var(--sgp-fail-soft); color: var(--sgp-fail); font-size: 14px; font-weight: 600; }
.sgp-optin { background: var(--sgp-soft); border: 1px solid var(--sgp-soft-line); border-radius: 8px; padding: 12px 14px; }
.sgp-optin em { display: block; font-style: normal; font-size: 12.5px; color: var(--sgp-muted); margin-top: 2px; }
.sgp-notice { margin-top: 18px; font-size: 12.5px; color: var(--sgp-muted); }
.sgp-notice summary { cursor: pointer; font-weight: 600; color: var(--sgp-ink); }
.sgp-notice p { margin-top: 8px !important; line-height: 1.6; }
.sgp-acc-block { padding: 16px 0; border-top: 1px solid var(--sgp-line-2); }
.sgp-acc-block:first-of-type { border-top: 0; }
.sgp-acc-block h4 { font-size: 14.5px; font-weight: 700; color: var(--sgp-ink); margin-bottom: 8px !important; }
.sgp-acc-block .sgp-btn-plain { background: #fff; cursor: pointer; font: inherit; font-size: 13.5px; margin-top: 8px; }
.sgp-ok { color: var(--sgp-pass); font-size: 13.5px; font-weight: 600; margin-top: 8px !important; }

/* Member bar and onboarding */
.sgp-member-bar { font-size: 13.5px; color: var(--sgp-muted); }
.sgp-choices { border: 0; margin: 18px 0 0 !important; }
.sgp-choices legend { font-size: 14px; font-weight: 700; color: var(--sgp-ink); margin-bottom: 10px; padding: 0; }
.sgp-choice-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sgp-choice { position: relative; cursor: pointer; }
.sgp-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sgp-choice span { display: block; border: 1px solid var(--sgp-line); border-radius: 8px; padding: 12px 14px; font-size: 14px; color: var(--sgp-ink); background: #fff; transition: border-color .15s, background .15s; }
.sgp-choice:hover span { border-color: var(--sgp-accent); }
.sgp-choice input:checked + span { border-color: var(--sgp-accent); background: var(--sgp-soft); font-weight: 600; box-shadow: inset 0 0 0 1px var(--sgp-accent); }
.sgp-choice input:focus-visible + span { outline: 2px solid var(--sgp-accent); outline-offset: 2px; }
.sgp-onboard .sgp-cta { margin-top: 20px; }

/* Analyse form */
.sgp-urlrow { display: flex; gap: 10px; flex-wrap: wrap; }
.sgp-urlrow .sgp-input { flex: 1 1 320px; min-width: 0; font-size: 15px; }
.sgp-options { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.sgp-options label { flex: 1 1 200px; font-size: 12.5px; font-weight: 600; color: var(--sgp-muted); display: flex; flex-direction: column; gap: 4px; }
.sgp-progress { margin-top: 16px; padding: 14px 18px; border-left: 3px solid var(--sgp-accent); background: var(--sgp-soft); border-radius: 0 8px 8px 0; font-size: 14px; color: #374151; }

/* Report */
.sgp-report { margin-top: 36px; scroll-margin-top: 90px; outline: none; }
.sgp-r-head { padding-bottom: 14px; border-bottom: 1px solid var(--sgp-line); }
.sgp-r-url { font-size: 16px; font-weight: 600; color: var(--sgp-ink); word-break: break-all; }
.sgp-r-url span { color: var(--sgp-faint); font-weight: 400; }
.sgp-r-meta { font-size: 13px; color: var(--sgp-muted); margin-top: 2px !important; }
.sgp-yourjob { margin-top: 20px; background: var(--sgp-ink); border-radius: 12px; padding: 22px 24px; position: relative; overflow: hidden; }
.sgp-yourjob::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--sgp-accent), #f0b54a); }
.sgp-yourjob .l { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sgp-accent); margin-bottom: 8px; }
.sgp-yourjob p { color: #e2e8f0; font-size: 15.5px; line-height: 1.6; }
.sgp-yourjob p + p { color: #94a3b8; font-size: 13.5px; margin-top: 8px; }
.sgp-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.sgp-score { border: 1px solid var(--sgp-line); border-radius: 10px; padding: 18px 18px 16px; }
.sgp-score .n { font-size: 44px; font-weight: 700; color: var(--sgp-ink); line-height: 1; letter-spacing: -.025em; }
.sgp-score .n small { font-size: 15px; color: var(--sgp-faint); font-weight: 500; letter-spacing: 0; }
.sgp-score .t { font-size: 13.5px; font-weight: 700; color: var(--sgp-ink); margin-top: 8px; }
.sgp-score .s { font-size: 12px; color: var(--sgp-faint); }
.sgp-score .bar { height: 6px; background: var(--sgp-line-2); border-radius: 6px; overflow: hidden; margin-top: 12px; }
.sgp-score .bar i { display: block; height: 100%; background: var(--sgp-accent); }
.sgp-score.geo { background: var(--sgp-soft); border-color: var(--sgp-soft-line); }
.sgp-combined { grid-column: 1 / -1; font-size: 14px; color: var(--sgp-muted); }
.sgp-combined strong { color: var(--sgp-ink); }
.sgp-jobs { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
.sgp-job { display: block; border: 1px solid var(--sgp-line); border-radius: 10px; padding: 16px 18px; text-decoration: none; background: #fff; transition: border-color .2s; }
.sgp-job:hover { border-color: var(--sgp-accent); }
.sgp-job-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sgp-job h4 { font-size: 15.5px; font-weight: 700; color: var(--sgp-ink); }
.sgp-job .pct { font-size: 22px; font-weight: 700; color: var(--sgp-ink); }
.sgp-job p { font-size: 13px; color: var(--sgp-muted); line-height: 1.55; margin-top: 4px !important; }
.sgp-prog { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 100px; padding: 3px 10px; margin-top: 10px; }
.sgp-prog.good { color: var(--sgp-pass); background: var(--sgp-pass-soft); }
.sgp-prog.mid { color: var(--sgp-warn); background: var(--sgp-warn-soft); }
.sgp-prog.bad { color: var(--sgp-fail); background: var(--sgp-fail-soft); }
.sgp-block { margin-top: 40px; }
.sgp-fixes { list-style: none; counter-reset: fx; display: grid; gap: 10px; }
.sgp-fixes li { counter-increment: fx; position: relative; border: 1px solid var(--sgp-line); border-radius: 10px; padding: 16px 18px 16px 56px; }
.sgp-fixes li::before { content: counter(fx); position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--sgp-soft); color: var(--sgp-accent); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.sgp-fixes .jobtag { font-size: 11px; font-weight: 700; color: var(--sgp-accent); }
.sgp-fixes a.t { display: block; font-size: 15px; font-weight: 700; color: var(--sgp-ink); text-decoration: none; margin: 2px 0 4px; }
.sgp-fixes p { font-size: 13.5px; color: var(--sgp-text); line-height: 1.6; }
.sgp-tip { margin-top: 8px !important; font-size: 13px; color: #374151; background: var(--sgp-wash); border-left: 2px solid var(--sgp-accent); padding: 8px 12px 8px 14px; border-radius: 0 6px 6px 0; }
.sgp-tags { white-space: nowrap; }
.sgp-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: 1px; }
.sgp-tag.seo { background: #f1f5f9; color: var(--sgp-ink); }
.sgp-tag.geo { background: var(--sgp-soft); color: #9a5b00; }
.sgp-pri { font-size: 11.5px; color: var(--sgp-faint); margin-left: 6px; }
.sgp-aiview { background: var(--sgp-wash); border: 1px solid var(--sgp-line-2); border-radius: 12px; padding: 22px 24px; }
.sgp-kv { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--sgp-line); font-size: 14px; }
.sgp-kv dt { color: var(--sgp-muted); font-size: 12.5px; font-weight: 600; }
.sgp-kv dd { margin: 0; color: var(--sgp-ink); word-break: break-word; }
.sgp-outline { list-style: none; font-size: 13.5px; margin-top: 6px !important; }
.sgp-outline li { padding: 2px 0; color: #374151; }
.sgp-outline .h3 { padding-left: 16px; } .sgp-outline .h4 { padding-left: 32px; }
.sgp-outline b { display: inline-block; min-width: 26px; font-size: 10.5px; color: var(--sgp-faint); }
.sgp-sub { font-size: 13px; font-weight: 700; color: var(--sgp-ink); margin: 18px 0 6px !important; }
.sgp-scroll { overflow-x: auto; }
.sgp-page table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sgp-page th, .sgp-page td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--sgp-line); vertical-align: top; }
.sgp-page th { font-size: 12px; font-weight: 700; color: var(--sgp-muted); }
.sgp-st { font-size: 12px; font-weight: 700; white-space: nowrap; }
.sgp-st.pass, .sgp-st.full { color: var(--sgp-pass); } .sgp-st.warn, .sgp-st.possible { color: var(--sgp-warn); } .sgp-st.fail, .sgp-st.none { color: var(--sgp-fail); } .sgp-st.na, .sgp-st.pending { color: var(--sgp-faint); }
.sgp-jobsec { margin-top: 28px; }
.sgp-jobsec > p { font-size: 13.5px; color: var(--sgp-muted); margin-bottom: 8px !important; }
.sgp-chk { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--sgp-line-2); }
.sgp-chk .ttl { font-size: 14.5px; font-weight: 700; color: var(--sgp-ink); }
.sgp-chk .layer { font-size: 11.5px; color: var(--sgp-faint); margin-left: 6px; }
.sgp-chk .found { font-size: 13.5px; color: var(--sgp-muted); margin-top: 3px !important; word-break: break-word; }
.sgp-chk .fix { font-size: 13.5px; color: #374151; margin-top: 4px !important; }
.sgp-chk.fail { box-shadow: inset 3px 0 0 var(--sgp-fail); padding-left: 12px; }
.sgp-chk.warn { box-shadow: inset 3px 0 0 #f0b54a; padding-left: 12px; }
.sgp-snip { margin-top: 18px; }
.sgp-snip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sgp-snip h4 { font-size: 15px; font-weight: 700; color: var(--sgp-ink); }
.sgp-snip p { font-size: 13px; color: var(--sgp-muted); }
.sgp-page pre { margin: 8px 0 0; padding: 16px; background: var(--sgp-ink); color: #e2e8f0; border-radius: 10px; overflow: auto; font-size: 12.5px; line-height: 1.55; max-height: 420px; }
.sgp-page pre code { background: none; color: inherit; padding: 0; white-space: pre; font-size: inherit; }
.sgp-beyond ul { padding-left: 20px; } .sgp-beyond li { font-size: 14.5px; margin-bottom: 6px; color: var(--sgp-text); }
.sgp-rcta { margin-top: 40px; background: var(--sgp-ink); border-radius: 12px; padding: 26px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sgp-rcta p { color: #e2e8f0; font-size: 16px; flex: 1; min-width: 220px; }
.sgp-foot { font-size: 12.5px; color: var(--sgp-faint); margin-top: 24px !important; }

/* History and account */
.sgp-hist { list-style: none; display: grid; gap: 8px; }
.sgp-hist li { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; border: 1px solid var(--sgp-line); border-radius: 10px; padding: 12px 14px; }
.sgp-hist .u { font-size: 14px; font-weight: 600; color: var(--sgp-ink); word-break: break-all; }
.sgp-hist .m { font-size: 12.5px; color: var(--sgp-faint); }
.sgp-hist .acts { display: flex; gap: 10px; grid-row: span 2; }
.sgp-hist button { background: none; border: 1px solid var(--sgp-line); border-radius: 6px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--sgp-ink); cursor: pointer; }
.sgp-hist button:hover { border-color: var(--sgp-accent); }
.sgp-hist button.del { color: var(--sgp-fail); }
.sgp-account { margin-top: 22px; border-top: 1px solid var(--sgp-line); padding-top: 14px; font-size: 14px; }
.sgp-account summary { cursor: pointer; font-weight: 600; color: var(--sgp-ink); }
.sgp-account p { margin: 10px 0 !important; color: var(--sgp-muted); }

@media (min-width: 700px) {
	.sgp-stages, .sgp-hub, .sgp-jobs { grid-template-columns: 1fr 1fr; }
	.sgp-h1 { font-size: 36px; }
	.sgp-choice-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	.sgp-layout { grid-template-columns: 1fr; padding: 40px 20px 60px; }
	.sgp-main { padding-right: 0; }
	.sgp-sidebar { position: static; margin-top: 48px; }
}
@media (max-width: 560px) {
	.sgp-quote { flex-direction: column; }
	.sgp-scores { grid-template-columns: 1fr; }
	.sgp-chk { grid-template-columns: 1fr; gap: 2px; }
	.sgp-kv { grid-template-columns: 1fr; gap: 0; }
	.sgp-hist li { grid-template-columns: 1fr; } .sgp-hist .acts { grid-row: auto; }
	.sgp-gate, .sgp-section { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .sgp-page * { transition: none !important; } }

/* v2.2: type validation, blueprint, AI */
.sgp-force { display: block; margin-top: 8px; font-weight: 500; color: var(--sgp-text); }
.sgp-force .sgp-link { margin-left: 4px; padding-left: 8px; }
.sgp-bp { list-style: none; display: grid; gap: 8px; }
.sgp-bp li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 14px; border: 1px solid var(--sgp-line); border-radius: 10px; }
.sgp-bp li.missing { border-left: 3px solid var(--sgp-fail); }
.sgp-bp li.partial { border-left: 3px solid #f0b54a; }
.sgp-bp li.done { border-left: 3px solid var(--sgp-pass); }
.sgp-bp a { font-weight: 700; color: var(--sgp-ink); text-decoration: none; font-size: 14.5px; }
.sgp-bp p { font-size: 13px; color: var(--sgp-muted); margin-top: 2px !important; }
.sgp-ai { background: #fffbf3; border: 1px solid var(--sgp-soft-line); border-radius: 12px; padding: 22px 24px; }
.sgp-ai-sum { font-size: 15px; color: var(--sgp-ink); margin-bottom: 14px !important; }
.sgp-ai-wait { font-size: 14px; color: var(--sgp-muted); padding-left: 26px; position: relative; }
.sgp-ai-wait::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border: 2px solid var(--sgp-soft-line); border-top-color: var(--sgp-accent); border-radius: 50%; animation: sgp-spin .9s linear infinite; }
@keyframes sgp-spin { to { transform: rotate(360deg); } }
.sgp-ai .sgp-fixes .t { display: block; font-size: 15px; font-weight: 700; color: var(--sgp-ink); margin: 2px 0 4px; }
.sgp-sug { background: #fff; border: 1px solid var(--sgp-line); border-radius: 8px; padding: 12px 14px; margin-top: 8px; }
.sgp-sug-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sgp-sug-h span { font-size: 12px; font-weight: 700; color: var(--sgp-muted); }
.sgp-sug p { font-size: 14px; color: var(--sgp-ink); margin-top: 4px !important; }
.sgp-ai-list { padding-left: 20px; } .sgp-ai-list li { font-size: 14px; margin-bottom: 4px; }
@media (max-width: 560px) { .sgp-bp li { grid-template-columns: 1fr; gap: 2px; } .sgp-ai { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .sgp-ai-wait::before { animation: none; } }
@media (min-width: 900px) { .sgp-bp { grid-template-columns: 1fr 1fr; } .sgp-bp li { grid-template-columns: 1fr; gap: 2px; } }

/* v2.3: guest preview and unlock */
.sgp-link-inline { padding-left: 2px; font-size: inherit; }
.sgp-bp-l { font-weight: 700; color: var(--sgp-ink); font-size: 14.5px; }
.sgp-locked { position: relative; }
.sgp-locked-fade { position: relative; height: 150px; overflow: hidden; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.sgp-ghost { height: 56px; margin-bottom: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--sgp-line-2), #f8fafc 60%, var(--sgp-line-2)); filter: blur(1px); }
.sgp-ghost.short { width: 65%; }
.sgp-locked-card { margin-top: -40px; position: relative; text-align: center; padding: 0 12px 6px; }
.sgp-locked-card .sgp-ticks { display: grid !important; justify-content: center; text-align: left; max-width: 520px; margin: 10px auto 0 !important; }
#sgpLockSlot { margin-top: 22px; }
#sgpLockSlot .sgp-gate-intro .sgp-ticks { display: none !important; }
.sgp-fixes span.t { display: block; font-size: 15px; font-weight: 700; color: var(--sgp-ink); margin: 2px 0 4px; }

/* v2.4: evidence-based fan-out */
.sgp-ev { display: block; margin-top: 4px; font-size: 12.5px; color: var(--sgp-muted); font-style: italic; }
.sgp-ftype { color: var(--sgp-accent); font-weight: 700; font-size: 11px; }

/* v2.5: visible security-check states */
.sgp-ts { min-height: 0; }
.sgp-ts-msg { font-size: 13px; color: var(--sgp-muted); margin: 6px 0 !important; }
.sgp-ts-attn { outline: 2px solid var(--sgp-accent); outline-offset: 4px; border-radius: 6px; }

/* v2.6 */
.sgp-ts-setup .sgp-ts-msg { color: var(--sgp-fail); }
.sgp-ai-badge { display: inline-block; font-size: 11.5px; font-weight: 600; color: #9a5b00; background: var(--sgp-soft); border: 1px solid var(--sgp-soft-line); border-radius: 100px; padding: 2px 10px; margin: -4px 0 12px; }
.sgp-ai-note { font-size: 14px; color: #374151; margin-bottom: 10px !important; }

/* ===================== v3.0 ===================== */
/* Human check: one clear tick box */
.sgp-human { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 4px; }
.sgp-human-box { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--sgp-line); border-radius: 8px; padding: 10px 14px; background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--sgp-ink); min-height: 44px; }
.sgp-human-box input { width: 20px; height: 20px; accent-color: var(--sgp-accent); margin: 0; }
.sgp-human[data-state="ok"] .sgp-human-box { border-color: var(--sgp-pass); background: var(--sgp-pass-soft); }
.sgp-human[data-state="busy"] .sgp-human-box { border-color: var(--sgp-accent); }
.sgp-human-status { font-size: 13px; color: var(--sgp-muted); }
.sgp-human[data-state="ok"] .sgp-human-status { color: var(--sgp-pass); font-weight: 700; }
.sgp-human .sgp-ts { flex-basis: 100%; }
.sgp-human .sgp-ts:empty { display: none; }

/* Page: breadcrumb, chips, sections */
.sgp-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--sgp-muted); margin: 0 0 18px !important; }
.sgp-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--sgp-faint); }
.sgp-crumbs a { color: var(--sgp-muted); text-decoration: none; }
.sgp-crumbs a:hover { color: var(--sgp-accent); }
.sgp-lead a { font-weight: 600; }
.sgp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px !important; }
.sgp-chips li { font-size: 12.5px; font-weight: 600; color: #9a5b00; background: var(--sgp-soft); border: 1px solid var(--sgp-soft-line); border-radius: 100px; padding: 4px 12px; }
.sgp-compare { font-size: 14px; }
.sgp-compare td:first-child { font-weight: 600; color: var(--sgp-ink); }
.sgp-compare td:last-child { color: var(--sgp-pass); font-weight: 600; }
.sgp-steps { padding-left: 20px; max-width: 700px; }
.sgp-steps li { font-size: 15.5px; color: var(--sgp-muted); line-height: 1.75; margin-bottom: 12px; }
.sgp-steps strong { color: var(--sgp-ink); }
.sgp-two { display: grid; grid-template-columns: 1fr; gap: 20px; }
.sgp-list { padding-left: 20px; max-width: 700px; }
.sgp-list li { font-size: 15px; color: var(--sgp-muted); line-height: 1.7; margin-bottom: 6px; }
.sgp-h4 { font-size: 15px; font-weight: 600; color: #fff; margin: 0; }
.sgp-hub-d { font-size: 13px; color: #94a3b8; margin-top: 4px !important; line-height: 1.5; }

/* Report: live AI search, speed, actions, shared */
.sgp-explain { max-width: 720px; margin-bottom: 14px !important; }
.sgp-asked { background: var(--sgp-wash); border: 1px solid var(--sgp-line-2); border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
.sgp-asked span { font-size: 11.5px; font-weight: 700; color: var(--sgp-muted); text-transform: uppercase; letter-spacing: .08em; }
.sgp-asked p { font-size: 15px; color: var(--sgp-ink); margin-top: 4px !important; }
.sgp-cited { border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; font-size: 14px; }
.sgp-cited span { display: block; margin-top: 4px; color: var(--sgp-muted); font-size: 13px; word-break: break-word; }
.sgp-cited.yes { background: var(--sgp-pass-soft); color: var(--sgp-pass); }
.sgp-cited.no { background: var(--sgp-fail-soft); color: var(--sgp-fail); }
.sgp-ans, .sgp-pred { margin-top: 14px; font-size: 14px; }
.sgp-ans summary, .sgp-pred summary { cursor: pointer; font-weight: 600; color: var(--sgp-ink); }
.sgp-ans p { color: var(--sgp-muted); margin-top: 8px !important; }
.sgp-gsugg { width: 100%; border: 0; height: 70px; margin-top: 12px; }
.sgp-files { font-size: 12px; color: var(--sgp-faint); word-break: break-all; margin-top: 6px !important; }
.sgp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sgp-actions .sgp-btn-plain { background: #fff; cursor: pointer; font: inherit; font-size: 13.5px; min-height: 40px; }
.sgp-act-panel { margin-top: 12px; border: 1px solid var(--sgp-line); border-radius: 10px; padding: 16px; }
.sgp-share-row { display: flex; gap: 8px; margin: 8px 0; }
.sgp-share-row input { flex: 1; min-width: 0; }
.sgp-mail .sgp-choices { margin-top: 0 !important; }
.sgp-mail .sgp-check { display: inline-flex; margin-right: 16px; }
.sgp-shared-banner { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: var(--sgp-soft); border: 1px solid var(--sgp-soft-line); font-size: 14px; color: #374151; }
.sgp-print-head { display: none; }

/* Mobile */
@media (min-width: 700px) { .sgp-two { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
	.sgp-layout { padding: 24px 16px 48px; }
	.sgp-h1 { font-size: 26px; }
	.sgp-lead { font-size: 15.5px; line-height: 1.7; }
	.sgp-urlrow .sgp-cta, .sgp-analyse .sgp-cta { width: 100%; }
	.sgp-options label { flex-basis: 100%; }
	.sgp-human-box { width: 100%; }
	.sgp-actions .sgp-btn-plain { flex: 1 1 100%; }
	.sgp-page table { font-size: 12.5px; }
	.sgp-page th, .sgp-page td { padding: 7px 6px; }
	.sgp-score .n { font-size: 36px; }
	.sgp-quote { padding: 18px; }
	.sgp-cta-row .sgp-cta-btns, .sgp-cta-row .sgp-btn-main, .sgp-cta-row .sgp-btn-plain { width: 100%; text-align: center; }
}

/* Save as PDF: print just the report, cleanly */
@media print {
	body * { visibility: hidden !important; }
	#sgpReport, #sgpReport * { visibility: visible !important; }
	#sgpReport { position: absolute; left: 0; top: 0; width: 100%; margin: 0; }
	#sgpReport .sgp-actions, #sgpReport .sgp-act-panel, #sgpReport button, #sgpReport .sgp-gsugg, #sgpReport .sgp-rcta, #sgpReport .sgp-shared-banner { display: none !important; }
	#sgpReport .sgp-print-head { display: block !important; font-size: 12px; color: #6b7280; margin-bottom: 8px; }
	.sgp-page pre { white-space: pre-wrap; max-height: none; background: #f3f4f6 !important; color: #111 !important; }
	.sgp-page pre code { white-space: pre-wrap; }
	.sgp-yourjob { background: #fff !important; border: 1px solid #ccc; }
	.sgp-yourjob p { color: #111 !important; }
	.sgp-block, .sgp-chk, .sgp-fixes li, .sgp-job, .sgp-bp li, .sgp-snip { break-inside: avoid; }
	.sgp-scroll { overflow: visible !important; }
	a[href^="http"]::after { content: ""; }
}

/* ===================== v3.1 report layout: dashboard + numbered segments ===================== */
.sgr { background: #eef2f6; border-radius: 16px; padding: 16px; margin-top: 8px; }
/* Dark summary dashboard */
.sgr-hero { background: var(--sgp-ink); color: #e2e8f0; border-radius: 14px; padding: 24px; position: relative; overflow: hidden; }
.sgr-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--sgp-accent), #f0b54a); }
.sgr-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sgr-id { min-width: 0; flex: 1 1 320px; }
.sgr-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sgp-accent); margin-bottom: 6px !important; }
.sgr-url { font-size: 18px; font-weight: 700; color: #fff; word-break: break-all; line-height: 1.35; }
.sgr-url span { color: #94a3b8; font-weight: 400; }
.sgr-meta { font-size: 12.5px; color: #94a3b8; margin-top: 4px !important; }
.sgr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sgr-actions button { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 40px; }
.sgr-actions button:hover { background: rgba(255,255,255,.16); }
.sgr-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.sgr-score { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px; }
.sgr-score b { display: block; color: #fff; font-size: 14px; }
.sgr-score small { color: #94a3b8; font-size: 12px; line-height: 1.4; display: block; }
.sgr-ring { --v: 0; width: 76px; height: 76px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
	background: radial-gradient(closest-side, var(--sgp-ink) 78%, transparent 79%), conic-gradient(var(--ring, var(--sgp-accent)) calc(var(--v) * 1%), rgba(255,255,255,.12) 0); }
.sgr-score.seo .sgr-ring { --ring: #60a5fa; }
.sgr-ring span { font-size: 24px; font-weight: 800; color: #fff; }
.sgr-kpi { display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-top: 3px solid #64748b; border-radius: 12px; padding: 14px; color: #e2e8f0; font: inherit; }
button.sgr-kpi { cursor: pointer; }
button.sgr-kpi:hover { background: rgba(255,255,255,.1); }
.sgr-kpi .n { font-size: 30px; font-weight: 800; line-height: 1; color: #fff; }
.sgr-kpi b { font-size: 13.5px; margin-top: 6px; }
.sgr-kpi small { font-size: 12px; color: #94a3b8; }
.sgr-kpi.fail { border-top-color: #f87171; } .sgr-kpi.fail .n { color: #fca5a5; }
.sgr-kpi.warn { border-top-color: #fbbf24; } .sgr-kpi.warn .n { color: #fcd34d; }
.sgr-kpi.pass { border-top-color: #4ade80; } .sgr-kpi.pass .n { color: #86efac; }
.sgr-jobs { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.sgr-job { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 12px 14px; text-decoration: none; }
.sgr-job .l { color: #fff; font-weight: 600; font-size: 14px; }
.sgr-job .v { color: #fff; font-weight: 800; font-size: 18px; }
.sgr-job .bar { grid-column: 1 / -1; height: 5px; background: rgba(255,255,255,.12); border-radius: 5px; overflow: hidden; }
.sgr-job .bar i { display: block; height: 100%; background: #94a3b8; }
.sgr-job.good .bar i { background: #4ade80; } .sgr-job.mid .bar i { background: #fbbf24; } .sgr-job.bad .bar i { background: #f87171; }
.sgr-job .p { grid-column: 1 / -1; font-size: 12px; color: #94a3b8; }
.sgr-yourjob { margin-top: 14px !important; font-size: 14px; color: #cbd5e1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; }
.sgr-yourjob b { color: var(--sgp-accent); }
.sgr-yourjob span { color: #94a3b8; }
.sgr-note { margin-top: 12px !important; font-size: 13px; color: #cbd5e1; background: rgba(255,255,255,.06); border-radius: 8px; padding: 8px 12px; }
.sgr-note.warn { color: #fde68a; }
.sgr ~ .sgp-act-panel, .sgr .sgp-act-panel { background: #fff; }

/* Section navigation */
.sgr-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.sgr-nav a { font-size: 13px; font-weight: 600; color: var(--sgp-ink); background: #fff; border: 1px solid var(--sgp-line); border-radius: 100px; padding: 6px 12px; text-decoration: none; white-space: nowrap; }
.sgr-nav a:hover { border-color: var(--sgp-accent); color: #9a5b00; }

/* Numbered segments: a strong line, a clear header, then content */
.sgr-seg { background: #fff; border: 1px solid var(--sgp-line); border-top: 4px solid var(--sgp-ink); border-radius: 12px; margin-top: 22px; scroll-margin-top: 100px; }
.sgr-seg-h { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--sgp-line); }
.sgr-num { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--sgp-ink); color: var(--sgp-accent); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.sgr-seg-t { flex: 1; min-width: 0; }
.sgr-seg-t h3 { font-size: 19px; font-weight: 800; color: var(--sgp-ink); line-height: 1.3; }
.sgr-seg-t p { font-size: 13.5px; color: var(--sgp-muted); margin-top: 4px !important; line-height: 1.55; max-width: 760px; }
.sgr-chip { flex-shrink: 0; font-size: 12px; font-weight: 700; border-radius: 100px; padding: 4px 12px; background: var(--sgp-line-2); color: var(--sgp-ink); white-space: nowrap; }
.sgr-chip.fail { background: var(--sgp-fail-soft); color: var(--sgp-fail); }
.sgr-chip.warn { background: var(--sgp-warn-soft); color: var(--sgp-warn); }
.sgr-chip.pass { background: var(--sgp-pass-soft); color: var(--sgp-pass); }
.sgr-seg-b { padding: 20px 22px 22px; }
.sgr-seg-b > .sgp-sub:first-child { margin-top: 0 !important; }

/* Light KPI boxes inside segments */
.sgr-kpis.light { margin: 0 0 16px; grid-template-columns: repeat(2, 1fr); }
.sgr-kpis.light .sgr-kpi { background: #fff; border: 1px solid var(--sgp-line); border-top-width: 3px; color: var(--sgp-ink); }
.sgr-kpis.light .sgr-kpi .n { color: var(--sgp-ink); font-size: 26px; }
.sgr-kpis.light .sgr-kpi small { color: var(--sgp-muted); }
.sgr-kpis.light .sgr-kpi.fail .n { color: var(--sgp-fail); } .sgr-kpis.light .sgr-kpi.warn .n { color: var(--sgp-warn); } .sgr-kpis.light .sgr-kpi.pass .n { color: var(--sgp-pass); }

/* Issue cards */
.sgr-fixes { list-style: none; display: grid; gap: 10px; }
.sgr-fixes li { border: 1px solid var(--sgp-line); border-left: 4px solid #94a3b8; border-radius: 10px; padding: 14px 16px; }
.sgr-fixes li.fail { border-left-color: var(--sgp-fail); }
.sgr-fixes li.warn { border-left-color: #f0b54a; }
.sgr-fixes li.pass { border-left-color: var(--sgp-pass); }
.sgr-fix-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 6px; }
.sgr-fix-h .sgp-st { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.sgr-fix-job { font-size: 12px; font-weight: 600; color: var(--sgp-muted); }
.sgr-fixes .t { display: block; font-size: 15.5px; font-weight: 700; color: var(--sgp-ink); text-decoration: none; margin-bottom: 4px; }
.sgr-fixes .found { font-size: 13.5px; color: var(--sgp-muted); }
.sgr-fixes .todo { font-size: 14px; color: #374151; margin-top: 6px !important; }
.sgr-imp { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-radius: 4px; padding: 2px 7px; }
.sgr-imp.high { background: var(--sgp-fail-soft); color: var(--sgp-fail); }
.sgr-imp.medium { background: var(--sgp-warn-soft); color: var(--sgp-warn); }
.sgr-imp.low { background: var(--sgp-pass-soft); color: var(--sgp-pass); }
.sgr-callout { background: var(--sgp-ink); color: #e2e8f0; border-radius: 10px; padding: 14px 16px; font-size: 15px; margin-bottom: 16px !important; }
.sgr-sugs { display: grid; gap: 8px; }
.sgr-sources { font-size: 13.5px; color: var(--sgp-muted); margin: 0 0 14px !important; word-break: break-word; }
.sgr-sources mark { background: var(--sgp-pass-soft); color: var(--sgp-pass); font-weight: 700; padding: 0 4px; border-radius: 4px; }

/* Waiting state with a live timer */
.sgr-wait { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--sgp-wash); border: 1px dashed var(--sgp-line); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: #374151; }
.sgr-spin { width: 16px; height: 16px; border: 2px solid var(--sgp-soft-line); border-top-color: var(--sgp-accent); border-radius: 50%; animation: sgp-spin .9s linear infinite; flex-shrink: 0; }
.sgr-elapsed { margin-left: auto; font-size: 12.5px; color: var(--sgp-faint); font-variant-numeric: tabular-nums; }

/* Crawler view */
.sgr-bots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.sgr-bot { border: 1px solid var(--sgp-line); border-left: 4px solid var(--sgp-pass); border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; }
.sgr-bot.fail { border-left-color: var(--sgp-fail); } .sgr-bot.warn { border-left-color: #f0b54a; }
.sgr-bot b { font-size: 14px; color: var(--sgp-ink); }
.sgr-bot span { font-size: 13px; font-weight: 700; color: var(--sgp-pass); }
.sgr-bot.fail span { color: var(--sgp-fail); } .sgr-bot.warn span { color: var(--sgp-warn); }
.sgr-bot small { font-size: 12px; color: var(--sgp-faint); }
.sgr-two { display: grid; grid-template-columns: 1fr; gap: 18px; }

/* All checks: filter tabs */
.sgr-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--sgp-line); padding-bottom: 12px; }
.sgr-tabs button { font: inherit; font-size: 13.5px; font-weight: 600; background: #fff; border: 1px solid var(--sgp-line); border-radius: 8px; padding: 7px 12px; cursor: pointer; color: var(--sgp-ink); }
.sgr-tabs button span { margin-left: 4px; color: var(--sgp-muted); }
.sgr-tabs button.on { background: var(--sgp-ink); color: #fff; border-color: var(--sgp-ink); }
.sgr-tabs button.on span { color: var(--sgp-accent); }
.sgr-jobh { font-size: 15px; font-weight: 800; color: var(--sgp-ink); margin: 18px 0 4px !important; padding-bottom: 6px; border-bottom: 2px solid var(--sgp-ink); }
.sgr-jobh span { font-weight: 600; color: var(--sgp-muted); font-size: 13px; }
.sgr-checks .sgp-jobsec:first-child .sgr-jobh { margin-top: 0 !important; }
.sgr-checks[data-show="fail"] .sgp-chk:not(.fail),
.sgr-checks[data-show="warn"] .sgp-chk:not(.warn),
.sgr-checks[data-show="pass"] .sgp-chk:not(.pass) { display: none; }
.sgr-checks[data-show="fail"] .sgp-jobsec:not(:has(.sgp-chk.fail)),
.sgr-checks[data-show="warn"] .sgp-jobsec:not(:has(.sgp-chk.warn)),
.sgr-checks[data-show="pass"] .sgp-jobsec:not(:has(.sgp-chk.pass)) { display: none; }

/* Closing CTA band */
.sgr-cta { margin-top: 22px; background: var(--sgp-ink); border-radius: 12px; padding: 24px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sgr-cta p { color: #e2e8f0; font-size: 16px; flex: 1; min-width: 220px; }
.sgr .sgp-foot { margin: 16px 4px 0 !important; }
.sgr-unlock { display: grid !important; gap: 10px !important; margin: 0 0 18px !important; }
.sgr .sgp-locked-fade { height: 90px; margin-bottom: 14px; }

@media (min-width: 760px) {
	.sgr-kpis { grid-template-columns: 1.3fr 1.3fr 1fr 1fr 1fr; }
	.sgr-kpis.light { grid-template-columns: repeat(4, 1fr); }
	.sgr-jobs { grid-template-columns: repeat(4, 1fr); }
	.sgr-bots { grid-template-columns: repeat(3, 1fr); }
	.sgr-two { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 640px) {
	.sgr { padding: 8px; border-radius: 12px; }
	.sgr-hero { padding: 18px; }
	.sgr-score { grid-column: 1 / -1; }
	.sgr-kpis > .sgr-kpi:last-child { grid-column: 1 / -1; }
	.sgr-actions { width: 100%; }
	.sgr-actions button { flex: 1 1 30%; }
	.sgr-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
	.sgr-seg-h { padding: 14px 16px; flex-wrap: wrap; }
	.sgr-seg-b { padding: 16px; }
	.sgr-chip { order: 3; }
	.sgr-seg-t h3 { font-size: 17px; }
}
@media print {
	.sgr { background: #fff !important; padding: 0 !important; }
	.sgr-hero { background: #fff !important; color: #111 !important; border: 1px solid #ccc; }
	.sgr-hero *, .sgr-callout { color: #111 !important; }
	.sgr-ring { background: none !important; border: 3px solid #111; }
	.sgr-kpi, .sgr-score, .sgr-job { background: #fff !important; border: 1px solid #ccc !important; }
	.sgr-nav, .sgr-actions, .sgr-cta, .sgr-tabs { display: none !important; }
	.sgr-checks .sgp-chk, .sgr-checks .sgp-jobsec { display: grid !important; }
	.sgr-seg { break-inside: auto; border-top: 3px solid #111; }
}
.sgr-score b { white-space: nowrap; }
.sgr-kpis.light { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
@media (min-width: 760px) and (max-width: 1100px) { .sgr-ring { width: 64px; height: 64px; } .sgr-ring span { font-size: 20px; } }
@media (max-width: 640px) {
	.sgr-kpis { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.sgr-kpis > .sgr-kpi:last-child { grid-column: auto; }
	.sgr-kpi { padding: 10px; }
	.sgr-kpi .n { font-size: 24px; }
	.sgr-kpis:not(.light) .sgr-kpi small { display: none; }
	.sgr-jobs { grid-template-columns: 1fr 1fr; gap: 8px; }
	.sgr-job { padding: 10px; }
	.sgr-job .l { font-size: 12.5px; }
	.sgr-job .p { font-size: 11px; }
	.sgr-kpis.light { grid-template-columns: 1fr 1fr !important; }
}
