/* CrawlReady AI — audit report layout */
.cr-report {
    --cr-bg: #f8fafc;
    --cr-card: #ffffff;
    --cr-border: #e2e8f0;
    --cr-text: #0f172a;
    --cr-muted: #64748b;
    --cr-accent: #2563eb;
    --cr-pass: #059669;
    --cr-warn: #d97706;
    --cr-fail: #dc2626;
    --cr-info: #6366f1;
}

.cr-report-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

.cr-report-header-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .cr-report-header-inner {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1.5rem;
    }
}

.cr-report-header-main {
    flex: 1;
    min-width: 0;
}

.cr-report-header-side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cr-report-header-side {
        align-items: flex-end;
        min-width: 220px;
    }
}

.cr-report-eyebrow {
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.35rem;
}

.cr-report-url {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.35;
    word-break: break-all;
}

@media (min-width: 640px) {
    .cr-report-url { font-size: 1.5rem; }
}

.cr-report-header h2 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

.cr-report-meta {
    color: #94a3b8;
    font-size: 0.875rem;
}

.cr-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cr-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cr-badge-ready { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.cr-badge-score { background: rgba(37, 99, 235, 0.25); color: #93c5fd; }
.cr-badge-pages { background: rgba(139, 92, 246, 0.25); color: #c4b5fd; }
.cr-badge-danger { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.cr-badge-warn { background: rgba(251, 191, 36, 0.2); color: #fcd34d; }

.cr-header-score {
    display: none;
    align-self: center;
}

.cr-header-score.is-visible {
    display: block;
}

@media (min-width: 768px) {
    .cr-header-score.is-visible {
        align-self: flex-end;
    }
}

.cr-header-score-ring {
    position: relative;
    width: 88px;
    height: 88px;
}

.cr-header-score-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cr-header-score-value {
    font-size: 1.375rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.cr-header-score-grade {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
}

/* Section quick nav */
.cr-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--cr-border);
    border-radius: 0.875rem;
    margin-bottom: 1.25rem;
    position: sticky;
    top: 4.25rem;
    z-index: 40;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.cr-section-link {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.cr-section-link:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.cr-section-link.is-active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.scroll-mt-24 { scroll-margin-top: 6rem; }

/* Card headers */
.cr-card-elevated {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
}

.cr-card-feature {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 120px);
    border-color: #c7d2fe;
}

.cr-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.cr-card-header-split {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cr-card-header-left {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    flex: 1;
    min-width: 0;
}

.cr-card-header-text {
    flex: 1;
    min-width: 0;
}

.cr-card-header h3,
.cr-card-header-text h3 {
    margin: 0;
}

.cr-card-header-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-card-header-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.cr-icon-summary { background: #eff6ff; color: #2563eb; }
.cr-icon-score { background: #f0fdf4; color: #059669; }
.cr-icon-pages { background: #ede9fe; color: #7c3aed; }
.cr-icon-visibility { background: #fef3c7; color: #d97706; }
.cr-icon-bot { background: #fce7f3; color: #db2777; }
.cr-icon-content { background: #e0e7ff; color: #4f46e5; }
.cr-icon-findings { background: #fef2f2; color: #dc2626; }
.cr-icon-action { background: #ecfdf5; color: #059669; }

.cr-discovery-badge {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    background: #ede9fe;
    color: #6d28d9;
    align-self: flex-start;
}

/* Score badges */
.cr-score-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.1;
    flex-shrink: 0;
}

.cr-score-badge small {
    font-size: 0.625rem;
    font-weight: 700;
    opacity: 0.85;
    margin-top: 0.1rem;
}

.cr-score-badge.excellent { background: #d1fae5; color: #047857; }
.cr-score-badge.good { background: #dbeafe; color: #1d4ed8; }
.cr-score-badge.fair { background: #fef3c7; color: #b45309; }
.cr-score-badge.poor { background: #fee2e2; color: #b91c1c; }
.cr-score-badge.failed { background: #f1f5f9; color: #64748b; }

/* Multi-page audit */
.cr-mp-empty {
    text-align: center;
    padding: 2rem 1rem;
    background: #f8fafc;
    border-radius: 0.875rem;
    border: 1px dashed var(--cr-border);
}

.cr-mp-empty-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    color: #94a3b8;
}

.cr-mp-empty-icon svg {
    width: 100%;
    height: 100%;
}

.cr-mp-empty-title {
    font-weight: 600;
    color: var(--cr-text);
    margin: 0;
}

.cr-mp-empty-desc {
    font-size: 0.875rem;
    color: var(--cr-muted);
    margin: 0.35rem 0 0;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.cr-mp-hero-stats {
    width: 100%;
    min-width: 0;
}

.cr-mp-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--cr-border);
    border-radius: 0.875rem;
}

@media (min-width: 640px) {
    .cr-mp-hero {
        grid-template-columns: auto 1fr;
        align-items: center;
    }
}

.cr-mp-score-ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.cr-mp-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.cr-mp-ring-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3;
}

.cr-mp-ring-bg-dark {
    stroke: rgba(255, 255, 255, 0.18);
}

.cr-mp-ring-fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}

.cr-mp-ring-excellent { stroke: #10b981; }
.cr-mp-ring-good { stroke: #3b82f6; }
.cr-mp-ring-fair { stroke: #f59e0b; }
.cr-mp-ring-poor { stroke: #ef4444; }

.cr-mp-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cr-mp-ring-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cr-text);
    line-height: 1;
}

.cr-mp-ring-caption {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--cr-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

.cr-mp-stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .cr-mp-stat-row { grid-template-columns: repeat(4, 1fr); }
}

.cr-mp-stat {
    text-align: center;
    padding: 0.65rem;
    background: #f8fafc;
    border-radius: 0.625rem;
}

.cr-mp-stat-num {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cr-text);
}

.cr-mp-stat-num.cr-mp-stat-warn { color: #d97706; }

.cr-mp-stat-lbl {
    font-size: 0.6875rem;
    color: var(--cr-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cr-mp-progress-wrap {
    margin-top: 1rem;
    grid-column: 1 / -1;
}

.cr-mp-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cr-muted);
    margin-bottom: 0.35rem;
}

.cr-mp-progress-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.cr-mp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.cr-mp-worst {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.875rem;
}

.cr-mp-worst-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.75rem;
}

.cr-mp-worst-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cr-mp-worst-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem 0.35rem 0.35rem;
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 9999px;
    font-size: 0.8125rem;
    color: #78350f;
    text-decoration: none;
    max-width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cr-mp-worst-chip:hover {
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.cr-mp-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--cr-border);
}

.cr-mp-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.cr-mp-filter {
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--cr-border);
    background: #fff;
    color: var(--cr-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cr-mp-filter:hover {
    border-color: #c7d2fe;
    color: #4338ca;
}

.cr-mp-filter.is-active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

.cr-mp-site-summary {
    margin-bottom: 1.25rem;
}

.cr-mp-cap-note {
    font-size: 0.8125rem;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.625rem;
    padding: 0.65rem 0.875rem;
    margin-bottom: 1rem;
}

.cr-mp-cap-link {
    color: #b45309;
    font-weight: 700;
    text-decoration: underline;
}

.cr-mp-cap-link:hover {
    color: #92400e;
}

.cr-mp-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cr-mp-summary-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cr-mp-summary-wide {
        grid-column: 1 / -1;
    }
}

.cr-mp-summary-panel {
    background: #fff;
    border: 1px solid var(--cr-border);
    border-radius: 0.875rem;
    padding: 1rem;
}

.cr-mp-summary-panel h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cr-muted);
    margin: 0 0 0.75rem;
}

.cr-mp-grade-row {
    display: grid;
    grid-template-columns: 1.5rem 1fr 2rem;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.cr-mp-grade-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cr-text);
}

.cr-mp-grade-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.cr-mp-grade-fill {
    height: 100%;
    border-radius: 999px;
}

.cr-mp-grade-fill.good { background: #10b981; }
.cr-mp-grade-fill.fair { background: #f59e0b; }
.cr-mp-grade-fill.poor { background: #ef4444; }

.cr-mp-grade-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cr-muted);
    text-align: right;
}

.cr-mp-metrics-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cr-mp-metrics-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.8125rem;
    color: var(--cr-muted);
}

.cr-mp-metrics-list li strong {
    color: var(--cr-text);
    font-weight: 700;
}

.cr-mp-common-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px auto;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
}

@media (max-width: 639px) {
    .cr-mp-common-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

.cr-mp-common-name {
    font-weight: 600;
    color: var(--cr-text);
}

.cr-mp-common-bar-wrap {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.cr-mp-common-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 999px;
}

.cr-mp-common-stat {
    color: var(--cr-muted);
    white-space: nowrap;
    font-size: 0.75rem;
}

.cr-mp-details {
    margin-top: 0.65rem;
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.5rem;
}

.cr-mp-details summary {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4f46e5;
    cursor: pointer;
    list-style: none;
}

.cr-mp-details summary::-webkit-details-marker { display: none; }

.cr-mp-details-body {
    margin-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cr-mp-detail-check {
    padding: 0.65rem 0.75rem;
    border-radius: 0.625rem;
    background: #f8fafc;
    border: 1px solid var(--cr-border);
}

.cr-mp-detail-check.fail { border-left: 3px solid var(--cr-fail); }
.cr-mp-detail-check.warning { border-left: 3px solid var(--cr-warn); }

.cr-mp-detail-check-name {
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--cr-text);
    margin-right: 0.5rem;
}

.cr-mp-detail-check-msg {
    font-size: 0.8125rem;
    color: #475569;
    margin: 0.35rem 0 0;
}

.cr-mp-detail-fix {
    font-size: 0.75rem;
    color: #334155;
    margin: 0.35rem 0 0;
}

.cr-mp-detail-none {
    font-size: 0.8125rem;
    color: var(--cr-muted);
    margin: 0;
}

.cr-mp-meta-critical { color: var(--cr-fail); font-weight: 600; }
.cr-mp-meta-warn { color: var(--cr-warn); font-weight: 600; }

.cr-mp-toolbar-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--cr-text);
}

.cr-mp-toolbar-hint {
    font-size: 0.75rem;
    color: var(--cr-muted);
}

.cr-mp-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.cr-mp-row {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--cr-border);
    border-radius: 0.875rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    animation: cr-mp-fade-in 0.35s ease backwards;
    animation-delay: calc(var(--row-index, 0) * 40ms);
}

.cr-mp-row:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.cr-mp-row.excellent { border-left: 3px solid #10b981; }
.cr-mp-row.good { border-left: 3px solid #3b82f6; }
.cr-mp-row.fair { border-left: 3px solid #f59e0b; }
.cr-mp-row.poor { border-left: 3px solid #ef4444; }
.cr-mp-row.failed { border-left: 3px solid #94a3b8; opacity: 0.85; }
.cr-mp-row.is-home { background: linear-gradient(90deg, #eff6ff 0%, #fff 40%); }

@keyframes cr-mp-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.cr-mp-row-rank {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cr-muted);
    background: #f1f5f9;
    border-radius: 0.5rem;
}

.cr-mp-row.is-home .cr-mp-row-rank {
    background: #dbeafe;
    color: #2563eb;
}

.cr-mp-row-body {
    flex: 1;
    min-width: 0;
}

.cr-mp-row-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.cr-mp-row-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--cr-text);
    margin: 0;
    line-height: 1.35;
    word-break: break-word;
}

.cr-mp-home-tag {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    background: #dbeafe;
    color: #1d4ed8;
    vertical-align: middle;
}

.cr-mp-failed-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    background: #fee2e2;
    color: #b91c1c;
}

.cr-mp-row-url {
    display: block;
    font-size: 0.75rem;
    color: #6366f1;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.5rem;
}

.cr-mp-row-url:hover { text-decoration: underline; }

.cr-mp-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--cr-muted);
    margin-bottom: 0.5rem;
}

.cr-mp-row-issues {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cr-mp-issue-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    background: #fef3c7;
    color: #92400e;
}

.cr-mp-issue-none {
    font-size: 0.6875rem;
    color: #94a3b8;
}

/* Loading stepper (shared) */
.cr-loading-stepper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.cr-loading-stepper--center {
    text-align: center;
}

.cr-loading-stepper--center .cr-loading-step {
    justify-content: center;
}

.cr-loading-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.45;
    transition: opacity 0.25s;
}

.cr-loading-step.is-active {
    opacity: 1;
}

.cr-loading-step.is-done {
    opacity: 0.7;
}

.cr-loading-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    opacity: 0.35;
}

.cr-loading-step.is-active .cr-loading-step-dot {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    animation: cr-pulse 1.2s ease infinite;
}

.cr-loading-step.is-done .cr-loading-step-dot {
    opacity: 0.6;
    background: #10b981;
}

.cr-loading-step-label {
    font-size: 0.8125rem;
    font-weight: 500;
}

@keyframes cr-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.cr-card {
    background: var(--cr-card);
    border: 1px solid var(--cr-border);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.cr-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cr-text);
    margin: 0 0 0.35rem;
}

.cr-card .cr-sub {
    font-size: 0.8125rem;
    color: var(--cr-muted);
    margin: 0.25rem 0 0;
}

.cr-report .cr-card-header .cr-sub,
.cr-report .cr-card-header-text .cr-sub {
    margin-bottom: 0;
}

.cr-report .cr-card > .cr-exec-summary,
.cr-report .cr-card > #scoreOverview,
.cr-report .cr-card > #coreScorecards,
.cr-report .cr-card > #visibilityComparison,
.cr-report .cr-card > #botVisibilityCards,
.cr-report .cr-card > #contentPreview,
.cr-report .cr-card > #findingsSummary,
.cr-report .cr-card > #recommendedActions,
.cr-report .cr-card > #detailedFindings,
.cr-report .cr-card > #multiPageEmpty,
.cr-report .cr-card > #multiPageContent {
    margin-top: 0;
}

.cr-exec-summary {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #334155;
}

.cr-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .cr-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.cr-stat-wide {
    grid-column: 1 / -1;
}

.cr-stat-value-sm {
    font-size: 1.25rem;
    color: var(--cr-accent);
}

.cr-stat-fail { color: var(--cr-fail); }
.cr-stat-warn { color: var(--cr-warn); }

.cr-stat {
    text-align: center;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: 0.75rem;
}

.cr-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--cr-text);
    line-height: 1.1;
}

.cr-stat-label {
    font-size: 0.75rem;
    color: var(--cr-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cr-scorecard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cr-scorecard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .cr-scorecard-grid { grid-template-columns: repeat(5, 1fr); }
}

.cr-scorecard {
    border: 1px solid var(--cr-border);
    border-radius: 0.875rem;
    padding: 1rem;
    background: #fff;
}

.cr-scorecard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.cr-scorecard-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cr-accent);
}

.cr-scorecard-grade {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 0.375rem;
    background: #eff6ff;
    color: #1d4ed8;
}

.cr-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.cr-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.cr-bar-fill.excellent { background: linear-gradient(90deg, #059669, #10b981); }
.cr-bar-fill.good { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.cr-bar-fill.fair { background: linear-gradient(90deg, #d97706, #f59e0b); }
.cr-bar-fill.poor { background: linear-gradient(90deg, #dc2626, #ef4444); }

.cr-finding-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cr-pill {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--cr-border);
}

.cr-pill-num {
    font-size: 1.5rem;
    font-weight: 800;
}

.cr-pill-critical .cr-pill-num { color: var(--cr-fail); }
.cr-pill-warning .cr-pill-num { color: var(--cr-warn); }
.cr-pill-info .cr-pill-num { color: var(--cr-info); }
.cr-pill-tool .cr-pill-num { color: var(--cr-accent); }

.cr-finding-detail {
    border: 1px solid var(--cr-border);
    border-radius: 0.875rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
}

.cr-finding-detail.fail { border-left: 4px solid var(--cr-fail); }
.cr-finding-detail.warning { border-left: 4px solid var(--cr-warn); }
.cr-finding-detail.pass { border-left: 4px solid var(--cr-pass); }

.cr-finding-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.cr-finding-title {
    font-weight: 700;
    color: var(--cr-text);
    font-size: 1rem;
}

.cr-severity {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.cr-severity.fail { background: #fee2e2; color: #b91c1c; }
.cr-severity.warning { background: #fef3c7; color: #b45309; }
.cr-severity.pass { background: #d1fae5; color: #047857; }

.cr-fix-path {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    background: #eff6ff;
    color: #1d4ed8;
    margin-bottom: 0.5rem;
}

.cr-finding-block {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.cr-finding-block strong {
    color: #334155;
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
}

.cr-content-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cr-content-preview { grid-template-columns: 1fr 1fr; }
}

.cr-preview-box {
    background: #0f172a;
    color: #cbd5e1;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    max-height: 180px;
    overflow: hidden;
    position: relative;
}

.cr-preview-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(transparent, #0f172a);
}

.cr-preview-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--cr-muted);
}

.cr-action-group {
    margin-bottom: 1.25rem;
}

.cr-action-group h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cr-muted);
    margin-bottom: 0.75rem;
}

.cr-action-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.cr-compare-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #1e40af;
    margin-bottom: 1.25rem;
}

.cr-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 767px) {
    .cr-report-actions {
        width: 100%;
    }

    .cr-report-actions .cr-btn {
        flex: 1 1 calc(50% - 0.25rem);
        text-align: center;
        justify-content: center;
    }

    .cr-report-actions .cr-btn-primary {
        flex: 1 1 100%;
    }
}

.cr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--cr-border);
    background: #fff;
    color: #334155;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cr-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.cr-btn-primary {
    background: var(--cr-accent);
    color: #fff;
    border-color: var(--cr-accent);
}

.cr-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* Header buttons on dark background */
.cr-report-header .cr-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #e2e8f0;
}

.cr-report-header .cr-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.cr-report-header .cr-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.cr-report-header .cr-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.cr-bot-card {
    border: 1px solid var(--cr-border);
    border-radius: 0.875rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cr-bot-card.invisible { border-color: #fecaca; background: #fef2f2; }
.cr-bot-card.partial { border-color: #fde68a; background: #fffbeb; }
.cr-bot-card.visible { border-color: #bbf7d0; background: #f0fdf4; }

.cr-bot-name {
    font-weight: 600;
    color: var(--cr-text);
    font-size: 0.9375rem;
}

.cr-bot-type {
    font-size: 0.75rem;
    color: var(--cr-muted);
    margin-top: 0.1rem;
}

.cr-bot-status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cr-bot-status-visible { color: #047857; }
.cr-bot-status-partial { color: #b45309; }
.cr-bot-status-invisible { color: #b91c1c; }

.cr-gap-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .cr-gap-hero { grid-template-columns: 1fr 1fr 1fr; }
}

.cr-gap-stat {
    text-align: center;
    padding: 1rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid var(--cr-border);
}

.cr-gap-stat strong { display: block; font-size: 1.5rem; color: var(--cr-text); }

/* Share report block */
.cr-share-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cr-share-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .cr-share-row {
        flex-direction: row;
        align-items: stretch;
    }
}

.cr-share-input {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--cr-border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: #f8fafc;
    color: #334155;
}

.cr-share-input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.cr-share-submit {
    white-space: nowrap;
}

.cr-share-status {
    font-size: 0.875rem;
    color: var(--cr-muted);
    margin: 0;
}

.cr-share-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid #f1f5f9;
}

.cr-btn-cta {
    background: #059669;
    border-color: #059669;
    color: #fff;
    padding: 0.625rem 1.25rem;
}

.cr-btn-cta:hover {
    background: #047857;
    border-color: #047857;
}
