:root { --wsl-brand: #1e73d8; }

.wsl-open-btn, .wsl-submit-btn {
    background: var(--wsl-brand); color: #fff; border: none; border-radius: 6px;
    padding: 12px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
    text-decoration: none; display: inline-block;
}
.wsl-open-btn:hover, .wsl-submit-btn:hover { opacity: 0.9; color: #fff; }

.wsl-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 99999;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.wsl-modal {
    background: #fff; border-radius: 10px; max-width: 440px; width: 100%;
    padding: 28px; position: relative; max-height: 90vh; overflow-y: auto;
}
.wsl-close {
    position: absolute; top: 10px; right: 14px; font-size: 26px; background: none;
    border: none; cursor: pointer; line-height: 1; color: #888;
}
.wsl-modal label { display: block; margin: 12px 0 4px; font-size: 13px; font-weight: 600; color: #333; }
.wsl-modal input[type="text"], .wsl-modal input[type="email"] {
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; box-sizing: border-box;
}
.wsl-modal .wsl-consent { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 12px; color: #666; }
.wsl-modal .wsl-consent input { width: auto; margin-top: 3px; }
.wsl-modal .wsl-submit-btn { width: 100%; margin-top: 16px; }
.wsl-error { color: #d63638; font-size: 13px; margin-top: 10px; }

.wsl-report-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.wsl-gauge {
    width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: conic-gradient(var(--wsl-color) calc(var(--wsl-score) * 1%), #eee 0);
    position: relative; flex-shrink: 0;
}
.wsl-gauge span {
    background: #fff; width: 58px; height: 58px; border-radius: 50%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: var(--wsl-color);
}
.wsl-gauge small { font-size: 10px; font-weight: 400; color: #999; }
.wsl-grade { font-weight: 700; font-size: 16px; margin: 0 0 2px; }
.wsl-url, .wsl-date { color: #777; font-size: 12px; margin: 0; }

.wsl-checklist { list-style: none; padding: 0; margin: 0; }
.wsl-checklist li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.wsl-icon { width: 20px; text-align: center; flex-shrink: 0; }
.wsl-pass .wsl-icon { color: #1e9e5a; }
.wsl-fail .wsl-icon { color: #d63638; }
.wsl-locked .wsl-icon { opacity: 0.5; }
.wsl-detail { color: #777; }
.wsl-tip { color: #1e73d8; font-size: 12px; }

.wsl-upsell { margin-top: 20px; text-align: center; background: #f7f9fc; padding: 16px; border-radius: 8px; }
.wsl-upsell p { margin: 0 0 10px; font-size: 13px; color: #444; }

.wsl-badge { background: #eee; color: #666; padding: 3px 8px; border-radius: 4px; font-size: 11px; }
.wsl-badge-paid { background: #e5f6ec; color: #1e9e5a; }

.wsl-full-report-page { max-width: 720px; margin: 40px auto; padding: 0 20px; }

.wsl-pages-overview { margin-top: 28px; padding-top: 20px; border-top: 1px solid #eee; }
.wsl-pages-overview h2 { font-size: 17px; margin: 0 0 8px; }
.wsl-pages-overview h3 { font-size: 14px; margin: 18px 0 6px; }
.wsl-pages-checklist { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.wsl-pages-checklist li { font-size: 13px; display: flex; align-items: center; gap: 6px; width: calc(50% - 10px); }
.wsl-layout-notes { padding-left: 18px; font-size: 13px; color: #333; line-height: 1.6; }

.wsl-recommendations { margin-top: 28px; padding-top: 20px; border-top: 1px solid #eee; }
.wsl-recommendations h2 { font-size: 17px; margin: 0 0 8px; }
.wsl-fix-list { padding-left: 20px; margin: 12px 0; }
.wsl-fix-list li { margin-bottom: 10px; font-size: 13px; line-height: 1.5; color: #333; }
.wsl-cta-box { margin-top: 24px; background: #f7f9fc; border: 1px solid #e5eaf2; border-radius: 8px; padding: 20px; text-align: center; }
.wsl-cta-box h3 { margin: 0 0 6px; font-size: 16px; }
.wsl-cta-box p { margin: 0 0 14px; font-size: 13px; color: #555; }

.wsl-cards { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.wsl-card { background: #fff; border: 1px solid #e2e2e2; border-radius: 8px; padding: 16px 20px; min-width: 140px; }
.wsl-card-number { font-size: 26px; font-weight: 700; color: var(--wsl-brand); }

/* ---- Standalone inline analyzer page (non-modal widget) ---- */
.wsl-page-analyzer { max-width: 520px; margin: 20px auto; }
.wsl-page-analyzer .wsl-widget { background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 28px; }
.wsl-page-analyzer .wsl-step-form label { display: block; margin: 12px 0 4px; font-size: 13px; font-weight: 600; color: #333; }
.wsl-page-analyzer .wsl-step-form input[type="text"], .wsl-page-analyzer .wsl-step-form input[type="email"] {
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; box-sizing: border-box;
}
.wsl-page-analyzer .wsl-consent { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 12px; color: #666; }
.wsl-page-analyzer .wsl-consent input { width: auto; margin-top: 3px; }
.wsl-page-analyzer .wsl-submit-btn { width: 100%; margin-top: 16px; }

/* ---- Overview grid ---- */
.wsl-overview { margin-bottom: 24px; }
.wsl-overview h2 { font-size: 17px; margin: 0 0 10px; }
.wsl-overview-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.wsl-overview-grid li { font-size: 13px; color: #333; display: flex; justify-content: space-between; border-bottom: 1px dashed #eee; padding: 4px 0; }
.wsl-overview-grid strong { color: #666; font-weight: 600; margin-right: 10px; }

/* ---- Category score breakdown ---- */
.wsl-category-scores { margin: 24px 0; padding: 20px; background: #f7f9fc; border-radius: 8px; }
.wsl-category-scores h2 { font-size: 17px; margin: 0 0 6px; }
.wsl-category-bars { list-style: none; padding: 0; margin: 14px 0 0; }
.wsl-category-bars li { display: grid; grid-template-columns: 180px 1fr 60px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.wsl-cat-label span { color: #999; font-size: 11px; }
.wsl-cat-bar-track { background: #e5e5e5; border-radius: 4px; height: 8px; overflow: hidden; }
.wsl-cat-bar-fill { background: var(--wsl-brand); height: 100%; }
.wsl-cat-value { text-align: right; color: #555; }

/* ---- Issues summary ---- */
.wsl-issues-summary { list-style: none; padding: 0; margin: 12px 0 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.wsl-issues-summary li { flex: 1; min-width: 110px; text-align: center; padding: 14px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.wsl-issues-summary span { display: block; font-size: 22px; margin-top: 4px; }
.wsl-sev-critical { background: #fdeceb; color: #d63638; }
.wsl-sev-warning { background: #fdf3e2; color: #b4720a; }
.wsl-sev-opportunity { background: #fdfae2; color: #8a7a09; }
.wsl-sev-passed { background: #e5f6ec; color: #1e9e5a; }

.wsl-cat-tag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; color: #999; background: #f2f2f2; border-radius: 3px; padding: 1px 6px; }
.wsl-info .wsl-icon { color: #999; }

/* ---- Badge grids (schema / social / AI / local) ---- */
.wsl-badge-grid { list-style: none; padding: 0; margin: 10px 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.wsl-badge-grid li { font-size: 13px; padding: 4px 0; }
.wsl-badge-grid li.wsl-pass { color: #1e9e5a; }
.wsl-badge-grid li.wsl-fail { color: #d63638; }

/* ---- Recommendations priority tags ---- */
.wsl-priority { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; border-radius: 3px; padding: 2px 7px; }
.wsl-priority-high { background: #fdeceb; color: #d63638; }
.wsl-priority-medium { background: #fdf3e2; color: #b4720a; }
.wsl-priority-low { background: #eef2f8; color: #555; }
.wsl-fix-list li p { margin: 4px 0; }

/* ---- Not-included transparency box ---- */
.wsl-not-included { margin-top: 28px; padding: 16px 20px; background: #f7f7f7; border-radius: 8px; font-size: 12px; color: #777; }
.wsl-not-included h3 { font-size: 13px; margin: 0 0 6px; color: #555; }
.wsl-not-included ul { margin: 6px 0 0; padding-left: 18px; }

/* ---- Scan loading animation ---- */
.wsl-step-loading { text-align: center; padding: 30px 10px; }
.wsl-scan-logo-wrap {
    position: relative; width: 100px; height: 100px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
}
.wsl-scan-logo {
    width: 64px; height: 64px; object-fit: contain; position: relative; z-index: 2;
    animation: wsl-pulse 1.6s ease-in-out infinite;
}
.wsl-scan-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid #e5eaf2; border-top-color: var(--wsl-brand);
    animation: wsl-spin 1.1s linear infinite;
}
@keyframes wsl-spin { to { transform: rotate(360deg); } }
@keyframes wsl-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}
.wsl-scan-headline { font-size: 15px; font-weight: 700; color: #222; margin: 0 0 6px; }
.wsl-scan-status { font-size: 13px; color: #777; margin: 0; min-height: 18px; transition: opacity 0.2s ease; }

/* ---- Customer rescan panel ---- */
.wsl-rescan-panel { margin: 20px 0 28px; padding: 20px; background: #f7f9fc; border: 1px solid #e5eaf2; border-radius: 8px; }
.wsl-rescan-active { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wsl-rescan-active h3 { margin: 0 0 4px; font-size: 15px; }
.wsl-rescan-active p { margin: 0; font-size: 13px; color: #555; max-width: 480px; }
.wsl-rescan-panel #wsl-rescan-status:empty { display: none; }
.wsl-rescan-expired h3 { margin: 0 0 4px; font-size: 15px; color: #b4720a; }
.wsl-rescan-expired p { margin: 0 0 12px; font-size: 13px; color: #555; }

.wsl-score-history { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e5eaf2; }
.wsl-score-history h4 { margin: 0 0 10px; font-size: 13px; color: #555; }
.wsl-score-history-list { list-style: none; padding: 0; margin: 0; }
.wsl-score-history-list li { display: grid; grid-template-columns: 90px 1fr 50px; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12px; color: #666; }
.wsl-score-history-bar-track { background: #e5e5e5; border-radius: 4px; height: 6px; overflow: hidden; }
.wsl-score-history-bar-fill { background: var(--wsl-brand); height: 100%; }
.wsl-score-history-value { text-align: right; }
.wsl-score-history-delta { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: #1e9e5a; }

@media print {
    header, footer, .wsl-submit-btn, nav { display: none !important; }
}
