
.uwa-wrapper {
    max-width: 880px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.uwa-label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #4b5563;
}

.uwa-required {
    color: #ef4444;
    font-weight: 600;
}

.uwa-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    box-sizing: border-box;
}

.uwa-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb22;
}

.uwa-button {
    margin-top: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.uwa-button:hover {
    background: #1d4ed8;
}

.uwa-audit {
    margin-top: 28px;
    padding: 20px 22px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.uwa-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.uwa-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 0 0, #f97316, #ec4899 40%, #6366f1 100%);
}

.uwa-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.uwa-hello {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.uwa-subtitle {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.uwa-panel {
    border-radius: 16px;
    background: #f3f4ff;
    padding: 14px;
}

.uwa-panel-inner {
    border-radius: 14px;
    background: #ffffff;
    padding: 18px 16px;
}

.uwa-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.uwa-card {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 14px;
    background: #f9fafb;
}

.uwa-card-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.uwa-card-text {
    margin: 10px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.uwa-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.uwa-status-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.uwa-status-bad {
    background: #fee2e2;
    color: #b91c1c;
}

.uwa-status-ok {
    background: #dcfce7;
    color: #166534;
}

.uwa-status-text {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.uwa-score {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.uwa-gauge {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.uwa-gauge-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 10;
}

.uwa-gauge-fg {
    fill: none;
    stroke: #ef4444;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 0.9s ease-out;
}

.uwa-score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.uwa-risk-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.uwa-risk-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.uwa-risk-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.uwa-risk-high {
    background: #fee2e2;
    color: #b91c1c;
}

.uwa-risk-medium {
    background: #fef3c7;
    color: #92400e;
}

.uwa-risk-low {
    background: #dcfce7;
    color: #166534;
}

.uwa-footer {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.uwa-footer-text {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
}

.uwa-toggle {
    position: relative;
    width: 74px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: #e5e7eb;
    display: inline-flex;
    align-items: center;
    padding: 0 7px;
    box-sizing: border-box;
    cursor: pointer;
    gap: 6px;
}

.uwa-toggle-knob {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15,23,42,0.25);
    transform: translateX(0);
    transition: transform 0.22s ease;
}

.uwa-toggle-label {
    font-size: 11px;
    font-weight: 600;
    color: #fff !important;
}

.uwa-toggle.uwa-on {
    background: #22c55e;
}

.uwa-toggle.uwa-on .uwa-toggle-knob {
    transform: translateX(24px);
}

.uwa-toggle.uwa-on .uwa-toggle-label {
    color: #fff !important;
}

@media (max-width: 768px) {
    .uwa-audit {
        padding: 18px;
    }
    .uwa-cards {
        grid-template-columns: 1fr;
    }
}
/* LOADER */
.uwa-loader {
    width: 64px;
    height: 64px;
    border: 6px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: uwa-spin 0.9s linear infinite;
    margin: 40px auto;
}

@keyframes uwa-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#preview .uwa-loader-wrapper {
    text-align: center;
    padding: 40px 0;
}
