.fa-hero { padding: 65px 0 64px; border-bottom: 1px solid var(--line); }
.fa-hero .container { grid-template-columns: 1fr; justify-items: center; }
.fa-hero .hero-content { width: 100%; max-width: 780px; margin: 0 auto; text-align: center; }
.fa-hero h1 { font-size: clamp(38px, 5vw, 64px); }
.fa-hero .hero-sub { max-width: 600px; margin: 24px auto 0; }

.url-input-wrap {
    margin-top: 36px; background: white; border-radius: 18px; padding: 6px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    display: flex; gap: 6px;
    transition: border-color 220ms ease, box-shadow 220ms ease;
}
.url-input-wrap:focus-within {
    border-color: var(--green); box-shadow: 0 0 0 3px #245c4318;
}
.url-input-wrap input[type="url"] {
    flex: 1; border: none; outline: none; background: transparent;
    padding: 14px 20px; font-size: 15px; min-width: 0;
    color: var(--ink);
}
.url-input-wrap input[type="url"]::placeholder { color: var(--muted); }
.url-input-wrap .btn { flex-shrink: 0; }

.fa-trust {
    display: flex; justify-content: center; gap: 24px; margin-top: 18px;
    font-size: 13px; color: var(--muted); flex-wrap: wrap;
}
.fa-trust span::before { content: '✓ '; color: var(--green); font-weight: 700; }

.form-error {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 12px; padding: 12px 16px; border-radius: 12px;
    background: #fff5f5; border: 1px solid #feb2b2; color: #c53030;
    font-size: 14px; font-weight: 500; text-align: left;
}

.loading-card {
    max-width: 520px; margin: 48px auto; text-align: center;
    padding: 52px 40px; border-radius: var(--radius);
    background: white; box-shadow: var(--shadow);
    border: 1px solid rgba(20,186,130,0.12);
}
.loading-spinner {
    width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 24px;
    border: 4px solid #e6f7f0; border-top-color: var(--green);
    animation: fa-spin 0.75s linear infinite;
}
@keyframes fa-spin { to { transform: rotate(360deg); } }
.loading-title {
    font-size: 18px; font-weight: 600;
    color: var(--ink); margin-bottom: 6px;
}
.loading-status { font-size: 14px; color: var(--muted); min-height: 20px; }
.loading-url {
    margin-top: 16px; font-size: 12px; color: var(--muted);
    word-break: break-all; padding: 8px 12px; background: var(--paper); border-radius: 8px;
}
.progress-track {
    margin-top: 24px; height: 4px; background: #f0f4f8; border-radius: 2px; overflow: hidden;
}
.progress-fill {
    height: 100%; border-radius: 2px; width: 0%;
    background: var(--green);
    transition: width 0.6s ease;
}

.audit-results-wrap { padding: 48px 0 72px; }

.score-overview {
    display:grid; grid-template-columns:minmax(280px, 360px) minmax(0, 1fr);
    gap:28px; padding:36px; margin-bottom:32px;
    background:var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid rgba(15,23,42,0.08);
}
.score-hero {
    display:flex; align-items:center; gap:20px; padding:24px;
    border-radius:24px; min-width:0;
    background:var(--paper);
    border:1px solid rgba(148,163,184,0.18);
}
.grade-ring {
    width: 116px; height: 116px; flex-shrink: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.grade-letter {
    font-size: 52px; font-weight: 700;
    color: white; line-height: 1;
}
.score-hero-copy { min-width:0; }
.score-kicker,
.score-section-label {
    font-size:11px; font-weight:700; letter-spacing:0.12em;
    text-transform:uppercase; color:var(--muted);
}
.score-number {
    font-size: 50px; font-weight: 700;
    color: var(--ink); line-height: 1;
}
.score-number span { font-size: 22px; color: var(--muted); font-weight: 500; }
.score-sublabel { font-size: 16px; color: var(--muted); margin-top: 6px; }
.score-details {
    display:flex; flex-direction:column; justify-content:center; min-width:0;
}
.score-focus {
    margin:10px 0 10px; font-size:15px; line-height:1.6; color:var(--ink);
    max-width:62ch;
}
.score-meta { font-size: 12px; color: var(--muted); }
.score-summary {
    display:grid; grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:12px; margin-top:18px;
}
.score-severity-card {
    display:flex; flex-direction:column; gap:8px; min-height:148px; padding:16px;
    border-radius:18px; border:1px solid transparent; background:var(--paper);
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.45);
}
.score-severity-card.is-muted { opacity:0.82; }
.score-severity-card--blocker {
    border-color:#fecaca;
}
.score-severity-card--major {
    border-color:#fed7aa;
}
.score-severity-card--minor {
    border-color:#fde68a;
}
.score-severity-card--opportunity {
    border-color:#bfdbfe;
}
.score-severity-badge {
    display:inline-flex; align-items:center; align-self:flex-start; gap:6px;
    padding:6px 10px; border-radius:9999px; border:1px solid transparent;
    font-size:11px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase;
}
.score-severity-count {
    font-size:34px; font-weight:700;
    line-height:1; color:var(--ink);
}
.score-severity-label {
    font-size:14px; font-weight:600; color:var(--ink);
}
.score-severity-hint {
    margin:0; font-size:12.5px; line-height:1.55; color:var(--muted);
}

.audit-card {
    background: white; border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(20,35,58,0.06);
    border: 1px solid rgba(0,0,0,0.05); overflow: hidden; margin-bottom: 20px;
}
.audit-card-head {
    padding: 18px 24px; border-bottom: 1px solid var(--paper);
    display: flex; align-items: center; gap: 12px;
}
.card-icon {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.card-title {
    font-size: 16px; font-weight: 600;
    color: var(--ink); flex: 1;
}
.card-badge {
    font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 9999px;
}

.cov-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cov-table th {
    padding: 8px 10px; text-align: left; font-size: 11px; font-weight: 600;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
    border-bottom: 1.5px solid var(--paper); white-space: nowrap;
}
.cov-table td { padding: 9px 10px; border-bottom: 1px solid var(--paper); }
.cov-table tr:last-child td { border-bottom: none; }
.cov-name { font-weight: 500; color: var(--ink); }
.cov-req {
    display: inline-flex; align-items: center;
    padding: 3px 9px; border-radius: 999px; border: 1px solid transparent;
    font-size: 10px; font-weight: 700; line-height: 1.2;
    letter-spacing: 0.01em; text-transform: none;
}
.req-required   { color: #b42318; background: #fff1f3; border-color: #fecdd3; }
.req-conditional{ color: #b45309; background: #fff7ed; border-color: #fed7aa; }
.req-optional   { color: #64748b; background: var(--paper); border-color: var(--line); }
.cov-count { color: var(--muted); font-size: 12px; }
.cov-pct { font-weight: 700; font-size: 13px; text-align: right; padding-right: 6px; }
.bar-cell { width: 100px; }
.bar-track { height: 6px; background: var(--paper); border-radius: 3px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 3px; transition: width 0.8s ease; }

.issue-group { border-bottom: 1px solid var(--paper); }
.issue-group:last-child { border-bottom: none; }
.issue-group > summary {
    padding: 14px 20px; cursor: pointer; list-style: none;
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 14px; color: var(--ink); user-select: none;
}
.issue-group > summary::-webkit-details-marker { display: none; }
.chevron { margin-left: auto; color: var(--muted); transition: transform 0.2s ease; font-size: 12px; }
.issue-group[open] > summary .chevron { transform: rotate(90deg); }
.sev-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.issue-item { padding: 14px 20px 14px 40px; border-top: 1px solid var(--paper); }
.issue-item-meta-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: start; gap: 12px; margin-bottom: 6px;
}
.issue-item-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 0; flex-wrap: wrap; min-width: 0; }
.issue-code-tag {
    font-family: monospace; font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 5px; white-space: nowrap;
}
.issue-count-tag {
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 700; white-space: nowrap;
    padding: 2px 8px; border-radius: 999px;
}
.issue-count-tag { border: 1px solid transparent; }
.issue-attr-tag {
    font-size: 11px; padding: 2px 8px; border-radius: 5px;
    background: var(--paper); color: var(--muted); white-space: nowrap;
}
.issue-msg { font-size: 14px; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.issue-subnote { font-size: 12px; color: var(--muted); line-height: 1.55; margin-bottom: 8px; }
.issue-rec { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 8px; }
.issue-share-row { display: grid; grid-template-columns: auto 100px; align-items: center; gap: 12px; }
.issue-share-row .cov-pct { white-space: nowrap; padding-right: 0; }
.issue-evidence {
    font-size: 12px; background: var(--paper); padding: 8px 12px; border-radius: 8px;
    border-left: 3px solid var(--line); color: var(--muted);
}
.evidence-label {
    display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
}
.issue-example-line { line-height: 1.55; }
.issue-example-more {
    margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--muted);
}

.tq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 24px; }
.tq-panel { background: var(--paper); border-radius: 14px; padding: 20px; }
.tq-panel-head {
    font-weight: 600; font-size: 14px;
    color: var(--ink); margin-bottom: 14px;
}
.tq-stat-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line);
}
.tq-stat-row:last-child { border-bottom: none; }
.tq-label { color: var(--muted); }
.tq-val     { font-weight: 600; color: var(--ink); }
.tq-val-warn{ font-weight: 600; color: #a16207; }
.tq-val-bad { font-weight: 600; color: #b91c1c; }
.tq-samples-head {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--muted); font-weight: 600; margin: 14px 0 6px;
}
.tq-sample {
    font-size: 12px; padding: 5px 10px; border-radius: 6px; margin-bottom: 4px;
    background: white; border: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline;
}
.tq-sample-text { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tq-sample-flags { color: #a16207; font-weight: 600; flex-shrink: 0; white-space: nowrap; }

.items-table { width:100%; border-collapse:collapse; font-size:13px; }
.items-table th {
    padding:8px 10px; text-align:left; font-size:11px; font-weight:600;
    color:var(--muted); text-transform:uppercase; letter-spacing:0.05em;
    border-bottom:1.5px solid var(--paper);
}
.items-table td { padding:9px 10px; border-bottom:1px solid var(--paper); vertical-align:top; }
.items-table tr:last-child td { border-bottom:none; }
.item-id {
    font-family:monospace; font-size:11px; color:var(--muted);
    max-width:130px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block;
}
.item-rank-badge {
    display:inline-flex; align-items:center; justify-content:center;
    width:26px; height:26px; border-radius:50%; font-weight:700; font-size:12px; color:white;
}
.elig-eligible   { color:#245c43; font-weight:500; }
.elig-limited    { color:#a16207; font-weight:500; }
.elig-disapproved{ color:#b91c1c; font-weight:500; }
.item-issue-list { display:flex; flex-direction:column; gap:6px; min-width:240px; }
.item-issue-detail {
    background:var(--paper); border:1px solid var(--line); border-radius:8px; overflow:hidden;
}
.item-issue-detail > summary {
    list-style:none; cursor:pointer; display:flex; align-items:center; gap:6px;
    padding:8px 10px; color:var(--ink); user-select:none;
}
.item-issue-detail > summary::-webkit-details-marker { display:none; }
.item-issue-tag  { font-size:10px; padding:2px 7px; border-radius:4px; font-weight:600; }
.item-issue-severity {
    font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.04em;
    color:var(--muted);
}
.item-issue-toggle { margin-left:auto; font-size:11px; color:var(--muted); }
.item-issue-msg {
    padding:0 10px; margin:2px 0 4px; font-size:12px; font-weight:500; color:var(--ink);
}
.item-issue-rec {
    padding:0 10px 8px; font-size:12px; line-height:1.5; color:var(--muted);
}
.item-issue-evidence {
    margin:0 10px 10px; padding:8px 10px; font-size:11px; line-height:1.45;
    color:var(--muted); background:white; border-left:3px solid var(--line); border-radius:6px;
}
.item-issue-evidence-label {
    display:block; margin-bottom:4px; font-size:10px; font-weight:700;
    text-transform:uppercase; letter-spacing:0.05em; color:var(--muted);
}

.all-good {
    display:flex; align-items:center; gap:12px; padding:16px 20px;
    background:var(--paper); border-radius:10px; color:#245c43;
    font-size:14px; font-weight:500;
}
.dup-warning {
    margin: 0 24px 16px; padding:10px 16px; background:#fef2f2; border-radius:8px;
    color:#b91c1c; font-size:13px;
}
.checks-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.check-card {
    background:white; border-radius:var(--radius); padding:24px 20px;
    box-shadow:var(--shadow); border:1px solid rgba(0,0,0,0.05);
}
.check-icon {
    width:44px; height:44px; border-radius:12px;
    display:flex; align-items:center; justify-content:center; margin-bottom:12px;
}
.check-title { font-weight:600; font-size:15px; color:var(--ink); margin-bottom:6px; }
.check-desc  { font-size:13px; color:var(--muted); line-height:1.55; }

.audit-cta-mini {
    text-align:center; margin-top:32px; padding:24px;
    background:white; border-radius:var(--radius);
    box-shadow:var(--shadow); border:1px solid rgba(0,0,0,0.05);
}
.audit-cta-mini p { color:var(--muted); font-size:14px; margin-bottom:16px; }


.sp-preview-card > .audit-card-head { padding:18px 24px; }

.sp-search-bar {
    padding:16px 24px 0;
}
.sp-search-label {
    display:block; font-size:12px; font-weight:600; text-transform:uppercase;
    letter-spacing:0.06em; color:var(--muted); margin-bottom:8px;
}
.sp-search-row {
    display:flex; gap:8px;
}
.sp-id-input {
    flex:1; border:1.5px solid var(--line); border-radius:10px;
    padding:10px 14px; font-size:14px; color:var(--ink); outline:none; background:white;
    transition:border-color 180ms ease, box-shadow 180ms ease;
}
.sp-id-input:focus {
    border-color:var(--green); box-shadow:0 0 0 3px rgba(98,136,255,0.12);
}
.sp-id-input--err {
    border-color:#b91c1c !important; box-shadow:0 0 0 3px rgba(239,68,68,0.1) !important;
}
.sp-search-btn {
    padding:10px 20px; background:var(--green); color:white; font-size:14px;
    font-weight:600; border:none; border-radius:10px; cursor:pointer; white-space:nowrap;
    transition:background 160ms ease, transform 120ms ease;
}
.sp-search-btn:hover { background:#4a70f0; }
.sp-search-btn:active { transform:scale(0.97); }
.sp-search-hint {
    margin-top:6px; font-size:12px; color:var(--muted); min-height:18px;
}

.sp-pager {
    display:flex; align-items:center; justify-content:center; gap:12px;
    padding:12px 24px 0;
}
.sp-pager-btn {
    padding:6px 16px; background:white; border:1.5px solid var(--line);
    border-radius:8px; font-size:13px; font-weight:600;
    color:var(--ink);
    cursor:pointer; transition:border-color 160ms ease, background 160ms ease;
    white-space:nowrap;
}
.sp-pager-btn:hover:not(:disabled) { border-color:var(--green); background:#f4f7ff; }
.sp-pager-btn:disabled { opacity:0.4; cursor:default; }
.sp-pager-pos {
    font-size:13px; color:var(--muted); min-width:160px; text-align:center;
}

.sp-serp {
    margin:16px 24px 0;
    background:#f8f9fa;
    border-radius:14px;
    border:1px solid #e8eaed;
    overflow:hidden;
}
.sp-topbar {
    display:flex; align-items:center; gap:14px;
    padding:10px 16px; background:white; border-bottom:1px solid #e8eaed;
}
.sp-google-logo {
    font-size:20px; font-weight:700; letter-spacing:-0.5px;
    line-height:1; flex-shrink:0; }
.sp-gl-g  { color:#4285f4; }
.sp-gl-o1 { color:#ea4335; }
.sp-gl-o2 { color:#fbbc04; }
.sp-gl-g2 { color:#4285f4; }
.sp-gl-l  { color:#34a853; }
.sp-gl-e  { color:#ea4335; }
.sp-fake-search {
    flex:1; background:#f1f3f4; border-radius:24px;
    padding:8px 16px; display:flex; align-items:center; justify-content:space-between;
    font-size:14px; color:#202124; border:1px solid #dadce0;
    min-width:0;
}
.sp-fake-query {
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1;
}
.sp-fake-icon { color:#4285f4; font-size:15px; flex-shrink:0; margin-left:8px; }
.sp-tabs {
    display:flex; gap:0; padding:0 14px;
    background:white; border-bottom:1px solid #e8eaed;
}
.sp-tab {
    padding:8px 12px; font-size:13px; color:#202124; cursor:default;
    border-bottom:2px solid transparent; white-space:nowrap;
}
.sp-tab--active { color:#1a73e8; border-bottom-color:#1a73e8; font-weight:500; }
.sp-filters {
    display:flex; gap:8px; padding:8px 16px; flex-wrap:nowrap; overflow-x:auto;
}
.sp-filters::-webkit-scrollbar { display:none; }
.sp-filter-chip {
    padding:5px 12px; border-radius:16px; font-size:13px; color:#3c4043;
    border:1px solid #dadce0; background:white; white-space:nowrap; cursor:default;
}
.sp-sponsored-label {
    display:flex; align-items:center; justify-content:space-between;
    padding:6px 16px; font-size:12px; color:#58645e;
}
.sp-sponsored-more { cursor:default; }

.sp-carousel-wrap {
    padding:0 16px 16px;
}
.sp-carousel {
    display:flex; gap:12px; overflow-x:auto; padding-bottom:4px;
    scroll-snap-type:x mandatory;
}
.sp-carousel::-webkit-scrollbar { height:4px; }
.sp-carousel::-webkit-scrollbar-track { background:#f1f3f4; border-radius:2px; }
.sp-carousel::-webkit-scrollbar-thumb { background:#dadce0; border-radius:2px; }

.sp-card {
    flex-shrink:0; width:158px; background:white; border-radius:10px;
    border:1.5px solid #e8eaed; overflow:hidden; cursor:default;
    scroll-snap-align:start;
    transition:box-shadow 200ms ease, border-color 200ms ease;
}
.sp-card--hero {
    border-color:var(--green); box-shadow:0 0 0 2px rgba(98,136,255,0.25),0 8px 24px rgba(98,136,255,0.18);
    width:172px;
}
.sp-card--ghost { opacity:0.45; pointer-events:none; }
.sp-card-img-wrap {
    width:100%; aspect-ratio:1/1; background:#f8f9fa;
    display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.sp-card-img-wrap img {
    width:100%; height:100%; object-fit:contain; display:block;
}
.sp-img-fallback {
    width:100%; height:100%; display:flex; align-items:center; justify-content:center;
    background:#f8f9fa;
}
.sp-img-fallback--lg { min-height:220px; }
.sp-img-fallback-ico { font-size:32px; opacity:0.3; }
.sp-ghost-img {
    width:100%; height:100%; min-height:80px;
    background:var(--paper);
}
.sp-card-body { padding:8px 10px 4px; }
.sp-card-title {
    font-size:12px; color:#202124; line-height:1.4; font-weight:400;
    display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
    margin-bottom:4px;
}
.sp-card-price { margin-bottom:2px; }
.sp-price-amount { font-size:14px; font-weight:700; color:#202124; }
.sp-price-cur { font-size:12px; color:#58645e; font-weight:400; }
.sp-card-merchant { font-size:11px; color:#58645e; margin-bottom:3px; }
.sp-avail-chip {
    display:inline-flex; align-items:center; gap:4px;
    font-size:10px; font-weight:600; margin-bottom:2px;
}
.sp-avail-dot { width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.sp-card-footer {
    display:flex; align-items:center; gap:5px;
    padding:5px 10px 8px; border-top:1px solid #f1f3f4; margin-top:4px;
}
.sp-google-badge {
    width:16px; height:16px; border-radius:50%; background:#4285f4;
    color:white; font-size:9px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.sp-footer-label { font-size:10px; color:#58645e; }
.sp-ghost-line {
    height:10px; border-radius:5px; background:#e8eaed; margin-bottom:6px;
}
.sp-ghost-line--sm { height:8px; }
.sp-ghost-line--xs { height:6px; }

.sp-expanded-wrap {
    margin:0 24px 24px;
    border-top:1.5px solid var(--paper);
}
.sp-expanded {
    display:grid; grid-template-columns:280px 1fr; gap:32px;
    padding-top:24px; align-items:start;
}
.sp-exp-img-col { display:flex; flex-direction:column; gap:10px; }
.sp-exp-main-img {
    border-radius:14px; border:1.5px solid #e8eaed; overflow:hidden;
    aspect-ratio:1/1; background:#f8f9fa;
    display:flex; align-items:center; justify-content:center;
}
.sp-exp-main-img img {
    width:100%; height:100%; object-fit:contain;
}
.sp-exp-thumbs { display:flex; gap:8px; }
.sp-exp-thumb {
    width:56px; height:56px; border-radius:8px; border:1.5px solid #e8eaed;
    overflow:hidden; background:#f8f9fa; cursor:pointer; flex-shrink:0;
}
.sp-exp-thumb img { width:100%; height:100%; object-fit:cover; }
.sp-exp-info-col { display:flex; flex-direction:column; gap:14px; min-width:0; }
.sp-exp-title {
    font-size:18px; font-weight:600;
    color:var(--ink); line-height:1.3; letter-spacing:-0.02em; margin:0;
}
.sp-exp-price-row { display:flex; align-items:baseline; gap:4px; }
.sp-exp-price {
    font-size:28px; font-weight:700;
    color:#202124;
}
.sp-exp-currency { font-size:16px; color:#58645e; font-weight:400; }
.sp-exp-issues { display:flex; flex-wrap:wrap; gap:6px; }
.sp-exp-issue-badge {
    padding:4px 10px; border-radius:9999px; font-size:12px; font-weight:600;
}
.sp-exp-ok {
    display:inline-flex; align-items:center; gap:6px;
    padding:8px 14px; border-radius:10px;
    background:var(--paper); color:#245c43; font-size:13px; font-weight:500;
}
.sp-exp-issue-details {
    border:1px solid var(--line); border-radius:10px; overflow:hidden;
}
.sp-exp-issue-details > summary {
    list-style:none; padding:10px 14px; cursor:pointer; font-size:13px;
    font-weight:600; color:var(--ink); user-select:none;
}
.sp-exp-issue-details > summary::-webkit-details-marker { display:none; }
.sp-exp-issue-row {
    display:flex; align-items:flex-start; gap:8px; flex-wrap:wrap;
    padding:8px 14px; border-top:1px solid var(--paper);
}
.sp-exp-issue-tag {
    font-family:monospace; font-size:10px; font-weight:700;
    padding:2px 7px; border-radius:4px; white-space:nowrap; flex-shrink:0;
}
.sp-exp-issue-msg { font-size:12px; color:var(--muted); line-height:1.4; }
.sp-exp-attrs {
    display:grid; grid-template-columns:1fr 1fr; gap:0;
    border:1px solid var(--line); border-radius:10px; overflow:hidden;
    font-size:13px;
}
.sp-exp-attr-row {
    display:flex; flex-direction:column; gap:2px;
    padding:9px 12px; border-bottom:1px solid var(--paper);
}
.sp-exp-attr-row:nth-last-child(-n+2) { border-bottom:none; }
.sp-exp-attr-label {
    font-size:10px; font-weight:700; text-transform:uppercase;
    letter-spacing:0.05em; color:var(--muted);
}
.sp-exp-attr-meta {
    display:flex; align-items:center; gap:6px; flex-wrap:wrap;
    margin-top:4px;
}
.sp-exp-attr-badge {
    display:inline-flex; align-items:center; gap:4px;
    padding:2px 8px; border-radius:999px; border:1px solid transparent;
    font-size:10px; font-weight:700; line-height:1.2;
}
.sp-exp-attr-badge-icon { font-size:10px; font-weight:800; }
.sp-exp-attr-val {
    font-weight:500; color:var(--ink);
    overflow-wrap:anywhere;
}
.sp-exp-attr-note {
    font-size:12px; line-height:1.5; color:var(--muted);
    margin-top:2px;
}
.sp-exp-desc-details {
    border:1px solid var(--line); border-radius:10px; overflow:hidden;
}
.sp-exp-desc-details > summary {
    list-style:none; padding:10px 14px; cursor:pointer; font-size:13px;
    font-weight:600; color:var(--ink); user-select:none;
}
.sp-exp-desc-details > summary::-webkit-details-marker { display:none; }
.sp-exp-desc-text {
    padding:0 14px 12px; font-size:13px; line-height:1.6; color:var(--muted);
}
.sp-exp-link-row { margin-top:2px; }
.sp-exp-link {
    font-size:13px; color:#1a73e8; font-weight:500;
    text-decoration:underline; text-underline-offset:2px;
}
.sp-exp-link:hover { color:#174ea6; }

.sp-audit-wrap { margin:16px 24px 0; }
.sp-audit-section {
    border:1px solid var(--line); border-radius:14px;
    background:var(--paper);
    padding:16px 18px 18px;
    display:flex; flex-direction:column; gap:14px;
}
.sp-audit-loading {
    align-items:center; justify-content:center; min-height:92px;
}
.sp-audit-loading-label {
    font-size:12px; color:var(--muted); font-style:italic;
}
.sp-audit-overview {
    display:grid; grid-template-columns:minmax(250px, 320px) minmax(0, 1fr);
    gap:12px; align-items:stretch;
}
.sp-audit-pane {
    border:1px solid #e7edf5; border-radius:12px;
    background:#fff; padding:14px;
    display:flex; flex-direction:column; gap:10px;
}
.sp-audit-score-row {
    display:flex; align-items:center; gap:12px; min-height:100%;
}
.sp-audit-ring {
    position:relative; width:64px; height:64px; flex-shrink:0;
    border-radius:50%;
    background:conic-gradient(var(--ring-color, var(--green)) calc(var(--ring-pct,0) * 3.6deg), var(--line) 0deg);
    display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.sp-audit-ring::before {
    content:''; position:absolute; inset:8px;
    border-radius:50%; background:#fff;
}
.sp-audit-ring-score {
    position:relative; z-index:1;
    font-size:16px; font-weight:700; line-height:1; color:var(--muted);
}
.sp-audit-ring-label {
    position:relative; z-index:1;
    font-size:9px; color:var(--muted); letter-spacing:.3px; text-transform:uppercase;
}
.sp-audit-rank-badge {
    display:inline-flex; align-items:center; justify-content:center;
    width:32px; height:32px; border-radius:8px;
    font-size:17px; font-weight:800; line-height:1;
}
.sp-audit-score-meta {
    display:flex; flex-wrap:wrap; align-items:center; gap:8px;
    min-width:0;
}
.sp-audit-score-caption {
    flex-basis:100%;
    font-size:12px; line-height:1.45; color:var(--muted);
}
.sp-audit-elig-badge {
    padding:4px 10px; border-radius:20px;
    font-size:12px; font-weight:600;
}
.sp-audit-sub-title {
    font-size:11px; font-weight:700; text-transform:uppercase;
    letter-spacing:.6px; color:var(--muted); margin-bottom:6px;
}
.sp-audit-completeness { display:flex; flex-direction:column; gap:6px; }
.sp-audit-bar-row {
    display:grid; grid-template-columns:90px 1fr 40px;
    align-items:center; gap:8px;
}
.sp-audit-bar-label { font-size:12px; color:var(--muted); }
.sp-audit-bar-track {
    height:7px; border-radius:4px; background:var(--line); overflow:hidden;
}
.sp-audit-bar-fill { height:100%; border-radius:4px; transition:width .4s ease; }
.sp-audit-bar-count { font-size:11px; color:var(--muted); text-align:right; }
.sp-audit-text-metrics { display:flex; flex-direction:column; gap:6px; }
.sp-audit-tm-row {
    display:flex; align-items:center; gap:6px; flex-wrap:wrap;
}
.sp-audit-tm-label {
    font-size:12px; font-weight:600; color:var(--muted); min-width:80px;
}
.sp-audit-tm-stat {
    font-size:11px; color:var(--muted);
    padding:2px 7px; border-radius:10px; background:var(--paper);
}
.sp-audit-code-chip {
    font-size:10px; font-weight:600; padding:2px 7px; border-radius:10px;
    white-space:nowrap;
}
@media (max-width: 720px) {
    .sp-expanded { grid-template-columns:1fr; }
    .sp-exp-img-col { max-width:200px; }
    .sp-exp-main-img { aspect-ratio:1/1; }
    .sp-exp-attrs { grid-template-columns:1fr; }
    .sp-exp-attr-row:last-child { border-bottom:none; }
    .sp-audit-wrap { margin:12px 12px 0; }
    .sp-audit-overview { grid-template-columns:1fr; }
    .sp-audit-score-row { align-items:flex-start; }
    .sp-audit-bar-row { grid-template-columns:70px 1fr 36px; }
    .issue-item-meta-row { grid-template-columns: 1fr; }
    .issue-share-row { grid-template-columns: auto 100px; justify-content: start; }
}
@media (max-width: 480px) {
    .sp-serp { margin:12px 12px 0; }
    .sp-expanded-wrap { margin:0 12px 16px; }
    .sp-search-bar { padding:12px 12px 0; }
}

@media (max-width: 1080px) {
    .score-overview { grid-template-columns:1fr; }
    .score-summary { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .fa-hero { padding:40px 0 48px; }
    .score-overview { gap:18px; padding:24px; }
    .score-hero { padding:20px; }
    .grade-ring  { width:80px; height:80px; }
    .grade-letter{ font-size:36px; }
    .score-number{ font-size:36px; }
    .score-summary { grid-template-columns:1fr; }
    .tq-grid     { grid-template-columns:1fr; }
    .checks-grid { grid-template-columns:1fr; }
    .url-input-wrap { flex-direction:column; border-radius:14px; }
    .url-input-wrap input[type="url"] { padding:14px 16px; }
    .bar-cell { display:none; }
}
@media (min-width: 721px) and (max-width: 920px) {
    .checks-grid { grid-template-columns:1fr 1fr; }
}
