.wpst-tool,
.wpst-result-page {
    box-sizing: border-box;
    max-width: 960px;
    margin: 30px auto;
    color: #171717;
}

.wpst-tool *,
.wpst-tool *::before,
.wpst-tool *::after,
.wpst-result-page *,
.wpst-result-page *::before,
.wpst-result-page *::after {
    box-sizing: border-box;
}

.wpst-tool {
    max-width: 820px;
    padding: 28px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
}

.wpst-tool h2,
.wpst-result-page h1,
.wpst-result-page h2,
.wpst-result-page h3,
.wpst-result-page h4 {
    margin-top: 0;
    letter-spacing: 0;
}

.wpst-url {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    margin-bottom: 12px;
    font: inherit;
}

.wpst-url:focus {
    border-color: #111;
    outline: 2px solid rgba(17, 17, 17, 0.16);
    outline-offset: 1px;
}

.wpst-button,
.wpst-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font: inherit;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.wpst-button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.wpst-result {
    margin-top: 26px;
}

.wpst-result-box,
.wpst-result-page,
.wpst-score-card,
.wpst-metric-card,
.wpst-info-box {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
}

.wpst-result-box {
    padding: 22px;
    background: #fafafa;
}

.wpst-result-page {
    padding: 30px;
}

.wpst-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 22px 0;
}

.wpst-card-grid-large {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.wpst-score-card,
.wpst-metric-card {
    padding: 18px;
}

.wpst-score-card {
    background: #fff;
}

.wpst-score-card h2,
.wpst-score-card h4 {
    margin-top: 0;
}

.wpst-score-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    background: conic-gradient(var(--wpst-score-color, #d93025) var(--wpst-score-degrees, 0deg), #eee 0deg);
}

.wpst-result-page .wpst-score-circle {
    width: 150px;
    height: 150px;
}

.wpst-score-inner {
    width: 98px;
    height: 98px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 28px;
    font-weight: 800;
}

.wpst-result-page .wpst-score-inner {
    width: 112px;
    height: 112px;
    font-size: 34px;
}

.wpst-section {
    margin-top: 34px;
}

.wpst-info-box {
    padding: 24px;
    background: #fafafa;
}

.wpst-plugin-recommendations {
    margin-top: 26px;
}

.wpst-plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.wpst-plugin-card {
    padding: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
}

.wpst-plugin-card h3,
.wpst-plugin-card h5 {
    margin: 0 0 8px;
    letter-spacing: 0;
}

.wpst-plugin-card p {
    margin: 0 0 14px;
}

.wpst-rerun {
    padding-top: 24px;
    border-top: 1px solid #ddd;
}

.wpst-notice {
    padding: 16px;
    border-radius: 8px;
}

.wpst-notice-error {
    border: 1px solid #f2c6c6;
    background: #fff5f5;
}

.wpst-error {
    color: #b00020;
}

.wpst-action-row {
    margin-top: 20px;
}

.wpst-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .wpst-tool,
    .wpst-result-page {
        margin: 18px auto;
        padding: 18px;
    }

    .wpst-card-grid,
    .wpst-card-grid-large {
        grid-template-columns: 1fr;
    }
}
