.wzst-tool {
    --wzst-blue: #207fac;
    --wzst-blue-dark: #155c7d;
    --wzst-yellow: #ffb400;
    --wzst-text: #333;
    --wzst-muted: #666;
    --wzst-border: #e4e7eb;
    --wzst-light: #f7f9fb;
    max-width: 1000px;
    margin: 0 auto;
    color: var(--wzst-text);
}

.wzst-tool * {
    box-sizing: border-box;
}

.wzst-tool-intro {
    margin-bottom: 28px;
}

.wzst-tool-intro h2 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.2;
    color: #151515;
}

.wzst-tool-intro p {
    margin: 0;
    color: var(--wzst-muted);
    line-height: 1.7;
}

.wzst-speed-form {
    padding: 28px;
    border: 1px solid var(--wzst-border);
    border-radius: 8px;
    background: #fff;
}

.wzst-label {
    display: block;
    margin-bottom: 10px;
    color: #222;
    font-weight: 700;
}

.wzst-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.wzst-url-input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #cfd5dc;
    border-radius: 5px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 16px;
}

.wzst-url-input:focus {
    outline: 2px solid rgba(32, 127, 172, 0.18);
    border-color: var(--wzst-blue);
}

.wzst-submit {
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 5px;
    background: var(--wzst-blue);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.wzst-submit:hover {
    background: var(--wzst-blue-dark);
}

.wzst-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.wzst-strategy {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 18px;
}

.wzst-strategy label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #444;
}

.wzst-strategy input {
    accent-color: var(--wzst-blue);
}

.wzst-message {
    min-height: 0;
    margin-top: 14px;
    font-size: .95rem;
}

.wzst-message:empty {
    margin-top: 0;
}

.wzst-message-error {
    color: #a61b1b;
}

.wzst-results {
    margin-top: 40px;
}

.wzst-results[hidden] {
    display: none !important;
}

.wzst-results-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.wzst-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--wzst-blue);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wzst-result-url {
    overflow-wrap: anywhere;
    margin: 0;
    font-size: 1.25rem;
    color: #222;
}

.wzst-result-strategy {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--wzst-light);
    color: #555;
    font-size: .85rem;
    font-weight: 700;
}

.wzst-score-section {
    margin-bottom: 40px;
}

.wzst-score-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 26px;
    border: 1px solid var(--wzst-border);
    border-radius: 8px;
    background: #fff;
}

.wzst-score-circle {
    display: grid;
    place-items: center;
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    border: 8px solid #ddd;
    border-radius: 50%;
    background: #fff;
}

.wzst-score-circle.wzst-score-good {
    border-color: #0c8a43;
}

.wzst-score-circle.wzst-score-medium {
    border-color: #d58900;
}

.wzst-score-circle.wzst-score-poor {
    border-color: #c7352c;
}

.wzst-score-value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.wzst-score-card h4 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.wzst-score-card p {
    margin: 0;
    color: var(--wzst-muted);
}

.wzst-score-explanation {
    max-width: 650px;
    margin-top: 8px !important;
    line-height: 1.6;
}

.wzst-section {
    margin-top: 42px;
}

.wzst-section-heading {
    margin-bottom: 20px;
}

.wzst-section-heading h4 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    color: #222;
}

.wzst-section-heading p {
    margin: 0;
    color: var(--wzst-muted);
}

.wzst-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wzst-metric {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--wzst-border);
    border-radius: 7px;
    background: #fff;
}

.wzst-metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 18px;
}

.wzst-metric-short {
    color: #333;
    font-size: .8rem;
    font-weight: 700;
}

.wzst-metric-status {
    font-size: .72rem;
    font-weight: 700;
}

.wzst-status-good {
    color: #0c7b3c;
}

.wzst-status-medium {
    color: #9a6200;
}

.wzst-status-poor {
    color: #b62922;
}

.wzst-status-na {
    color: #777;
}

.wzst-metric-value {
    display: block;
    margin-bottom: 7px;
    color: #151515;
    font-size: 1.45rem;
    line-height: 1.15;
}

.wzst-metric-label {
    display: block;
    color: var(--wzst-muted);
    font-size: .82rem;
    line-height: 1.4;
}

.wzst-metric-detail {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #eef0f2;
}

.wzst-metric-detail strong {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-size: .76rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wzst-metric-detail p {
    margin: 0;
    color: #666;
    font-size: .86rem;
    line-height: 1.6;
}

.wzst-metric-common {
    border-top: 0;
    padding-top: 12px;
}

.wzst-opportunities {
    border-top: 1px solid var(--wzst-border);
}

.wzst-opportunity {
    padding: 20px 0;
    border-bottom: 1px solid var(--wzst-border);
}

.wzst-opportunity-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.wzst-opportunity h5 {
    margin: 0;
    color: #222;
    font-size: 1rem;
    line-height: 1.4;
}

.wzst-opportunity-saving {
    flex: 0 0 auto;
    color: var(--wzst-blue);
    font-size: .85rem;
    font-weight: 700;
}

.wzst-opportunity p {
    max-width: 800px;
    margin: 8px 0 0;
    color: var(--wzst-muted);
    font-size: .92rem;
    line-height: 1.65;
}

.wzst-empty {
    margin: 0;
    padding: 18px 0;
    color: var(--wzst-muted);
}

.wzst-cta {
    margin-top: 50px;
    padding: 30px;
    border-left: 4px solid var(--wzst-yellow);
    background: var(--wzst-light);
}

.wzst-cta h4 {
    margin: 0 0 10px;
    color: #222;
    font-size: 1.25rem;
}

.wzst-cta p {
    margin: 0 0 20px;
    color: var(--wzst-muted);
    line-height: 1.7;
}

.wzst-cta a {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 4px;
    background: var(--wzst-blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.wzst-cta a:hover {
    background: var(--wzst-blue-dark);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 900px) {
    .wzst-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .wzst-tool-intro h2 {
        font-size: 1.65rem;
    }

    .wzst-speed-form {
        padding: 20px;
    }

    .wzst-form-row {
        grid-template-columns: 1fr;
    }

    .wzst-submit {
        width: 100%;
    }

    .wzst-results-header {
        flex-direction: column;
    }

    .wzst-score-card {
        align-items: flex-start;
    }

    .wzst-metrics {
        grid-template-columns: 1fr;
    }

    .wzst-opportunity-top {
        flex-direction: column;
        gap: 7px;
    }

    .wzst-cta {
        padding: 24px 20px;
    }
}


.wzst-compare-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -10px 0 28px;
}

.wzst-run-strategy {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #cfd5dc;
    border-radius: 4px;
    background: #fff;
    color: #444;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
}

.wzst-run-strategy:hover {
    border-color: var(--wzst-blue);
    color: var(--wzst-blue);
}

.wzst-page-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.wzst-page-stat {
    padding: 18px;
    border: 1px solid var(--wzst-border);
    border-radius: 7px;
    background: #fff;
}

.wzst-page-stat strong {
    display: block;
    margin-bottom: 7px;
    color: #151515;
    font-size: 1.35rem;
}

.wzst-page-stat > span {
    display: block;
    margin-bottom: 7px;
    color: #333;
    font-size: .9rem;
    font-weight: 700;
}

.wzst-page-stat p {
    margin: 0;
    color: var(--wzst-muted);
    font-size: .82rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .wzst-page-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .wzst-page-stats {
        grid-template-columns: 1fr;
    }

    .wzst-run-strategy {
        flex: 1 1 100%;
    }
}

/* SEO analyzer */
.wzst-seo-form {
    padding: 28px;
    border: 1px solid var(--wzst-border);
    border-radius: 8px;
    background: #fff;
}

.wzst-seo-results {
    margin-top: 40px;
}

.wzst-seo-results[hidden] {
    display: none !important;
}

.wzst-seo-summary,
.wzst-seo-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wzst-seo-checks {
    display: grid;
    gap: 16px;
}

.wzst-seo-check {
    padding: 20px;
    border: 1px solid var(--wzst-border);
    border-left: 4px solid #d58900;
    border-radius: 7px;
    background: #fff;
}

.wzst-seo-check-ok {
    border-left-color: #0c8a43;
}

.wzst-seo-check-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.wzst-seo-check-header h5 {
    margin: 0;
    color: #222;
    font-size: 1.05rem;
    line-height: 1.35;
}

.wzst-seo-status {
    flex: 0 0 auto;
    font-size: .78rem;
    font-weight: 700;
}

.wzst-seo-status-text {
    margin: 8px 0 0;
    color: #555;
    line-height: 1.6;
}

.wzst-seo-detail-item {
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .wzst-seo-summary,
    .wzst-seo-details {
        grid-template-columns: 1fr;
    }

    .wzst-seo-check-header {
        align-items: flex-start;
    }
}

/* Full site analyzer */
.wzst-site-form {
    padding: 28px;
    border: 1px solid var(--wzst-border);
    border-radius: 8px;
    background: #fff;
}

.wzst-site-options {
    display: flex;
    gap: 22px;
    margin-top: 16px;
}

.wzst-site-options label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #444;
    font-size: .95rem;
}

.wzst-site-results[hidden] {
    display: none !important;
}

.wzst-site-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 20px;
}

.wzst-site-overall-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 25px;
    border: 1px solid var(--wzst-border);
    border-radius: 8px;
    background: #fff;
}

.wzst-site-overall-card h4 {
    margin: 5px 0 8px;
    color: #222;
    font-size: 1.25rem;
}

.wzst-site-overall-explanation {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.wzst-site-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.wzst-site-category-card {
    padding: 20px;
    border: 1px solid var(--wzst-border);
    border-radius: 8px;
    background: #fff;
}

.wzst-site-category-card span {
    display: block;
    color: #666;
    font-size: .88rem;
    line-height: 1.4;
}

.wzst-site-category-card strong {
    display: block;
    margin: 8px 0 5px;
    color: #222;
    font-size: 2rem;
    line-height: 1;
}

.wzst-site-category-card p {
    margin: 0;
    color: #777;
    font-size: .84rem;
    line-height: 1.45;
}

.wzst-site-diagnosis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wzst-site-diagnosis-item {
    padding: 20px;
    border: 1px solid var(--wzst-border);
    border-left: 4px solid #d58900;
    border-radius: 7px;
    background: #fff;
}

.wzst-site-diagnosis-good {
    border-left-color: #0c8a43;
}

.wzst-site-diagnosis-warning {
    border-left-color: #c94b36;
}

.wzst-site-diagnosis-item h5 {
    margin: 0 0 8px;
    color: #222;
    font-size: 1.05rem;
}

.wzst-site-diagnosis-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.wzst-site-performance-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.wzst-site-seo-checks {
    margin-top: 20px;
}

.wzst-site-metrics {
    margin-top: 20px;
}

@media (max-width: 900px) {
    .wzst-site-overview {
        grid-template-columns: 1fr;
    }

    .wzst-site-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .wzst-site-overall-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .wzst-site-category-grid,
    .wzst-site-diagnosis,
    .wzst-site-performance-summary {
        grid-template-columns: 1fr;
    }

    .wzst-site-options {
        flex-direction: column;
        gap: 10px;
    }
}
