.wm-module .wm-stat-card h3 {
    margin: 8px 0 0;
    font-size: 30px;
    font-weight: 600;
}

.wm-module .wm-table {
    margin-top: 20px;
}

.wm-module .wm-score {
    display: inline-block;
    min-width: 132px;
    padding: 22px 18px;
    border-radius: 6px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.wm-module .wm-score small {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.wm-module .wm-tab-content {
    padding-top: 24px;
}

.wm-module pre {
    white-space: pre-wrap;
    background: #f7f9fb;
    border-color: #e5e9ef;
}

.wm-client-card h4 {
    margin-top: 0;
}

.wm-module .wm-pagespeed-details {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.45;
}

.wm-module .wm-uptime-chart {
    display: block;
    width: 100%;
    margin: 12px 0 20px;
    border: 1px solid #dbe3ee;
    border-radius: 6px;
}

.wm-module .wm-range-buttons {
    margin-bottom: 12px;
}

.wm-module .wm-mini-stat {
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}

.wm-module .wm-mini-stat span {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.wm-module .wm-mini-stat strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.wm-table .wm-table-thumb {
    width: auto;
    max-width: 180px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.wm-module .wm-website-preview,
.wm-module .wm-lighthouse-preview {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 250px;
    height: auto;
    margin-top: 10px;
    border: 1px solid #dbe3ee;
    border-radius: 6px;
}

.wm-module .wm-client-site-image {
    width: auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.wm-module .wm-client-detail-image {
    width: auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.wm-module .wm-psi {
    margin: 12px 0 24px;
}

.wm-module .wm-psi-card {
    padding: 18px;
    margin-top: 16px;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    background: #fff;
}

.wm-module .wm-psi-categories {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.wm-module .wm-psi-category {
    text-align: center;
}

.wm-module .wm-psi-category strong {
    display: block;
    margin-top: 7px;
    font-weight: 500;
}

.wm-module .wm-ring {
    --score: 0;
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: conic-gradient(var(--ring-color) calc(var(--score) * 1%), #f3f4f6 0);
    position: relative;
    color: var(--ring-color);
    font-size: 20px;
    font-weight: 600;
}

.wm-module .wm-ring:before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #fffaf2;
}

.wm-module .wm-ring span {
    position: relative;
}

.wm-module .wm-ring-large {
    width: 150px;
    height: 150px;
    font-size: 42px;
}

.wm-module .wm-ring-large:before {
    inset: 10px;
}

.wm-module .wm-score-good {
    --ring-color: #22c55e;
}

.wm-module .wm-score-average {
    --ring-color: #f59e0b;
}

.wm-module .wm-score-poor {
    --ring-color: #ef4444;
}

.wm-module .wm-psi-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 42px 0;
}

.wm-module .wm-psi-score-block {
    text-align: center;
}

.wm-module .wm-psi-score-block h3 {
    margin-top: 16px;
}

.wm-module .wm-psi-screenshot {
    max-width: 240px;
    max-height: 360px;
    border: 1px solid #d8dde6;
    border-radius: 4px;
    object-fit: contain;
}

.wm-module .wm-psi-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}

.wm-module .wm-psi-metric {
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
}

.wm-module .wm-psi-metric span {
    display: block;
    font-size: 14px;
    color: #111827;
}

.wm-module .wm-psi-metric strong {
    display: block;
    margin-top: 4px;
    color: #b91c1c;
    font-size: 24px;
    font-weight: 500;
}

.wm-module .wm-psi-field,
.wm-module .wm-psi-opportunities {
    color: #4b5563;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .wm-module .wm-range-buttons {
        float: none !important;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .wm-module .wm-psi-main {
        flex-direction: column;
        gap: 24px;
    }

    .wm-module .wm-psi-metrics {
        grid-template-columns: 1fr;
    }
}

.wm-module .wm-queue-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border: 2px solid #cbd5e1;
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: wm-spin 0.8s linear infinite;
    vertical-align: -1px;
}

@keyframes wm-spin {
    to {
        transform: rotate(360deg);
    }
}
