.cspg-container {
    max-width: 680px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.cspg-container h3 {
    color: #0073aa;
    margin-top: 0;
}
.cspg-container p {
    color: #555;
    line-height: 1.5;
}

.cspg-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #eee;
}
.cspg-field {
    margin-bottom: 14px;
}
.cspg-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}
.cspg-field input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}
.cspg-checkbox label {
    font-weight: normal;
    display: inline-block;
    margin-right: 20px;
    cursor: pointer;
}
.cspg-checkbox input {
    margin-right: 6px;
}

.cspg-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-end;
}

.cspg-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.cspg-button:hover:not(:disabled) {
    background: #005a87;
}
.cspg-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.cspg-secondary {
    background: #2271b1;
}
.cspg-outline {
    background: transparent;
    border: 1px solid #0073aa;
    color: #0073aa;
}
.cspg-outline:hover {
    background: #ebf2ff;
}

.cspg-output {
    font-family: monospace;
    font-size: 18px;
    background: #1e1e1e;
    color: #00ff88;
    padding: 14px;
    border-radius: 6px;
    word-break: break-all;
    text-align: center;
    min-height: 24px;
}

.cspg-strength-bar {
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    position: relative;
    margin-top: 8px;
    overflow: hidden;
}
.cspg-strength-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background 0.3s;
}
.cspg-strength-bar.weak::after {
    width: 33%;
    background: #dc3545;
}
.cspg-strength-bar.medium::after {
    width: 66%;
    background: #ffc107;
}
.cspg-strength-bar.strong::after {
    width: 100%;
    background: #28a745;
}
.cspg-strength-bar span {
    display: block;
    text-align: right;
    margin-top: 6px;
    font-size: 13px;
    color: #555;
}

@media (max-width: 500px) {
    .cspg-options-row {
        flex-direction: column;
        align-items: stretch;
    }
    .cspg-checkbox label {
        margin-right: 0;
        margin-bottom: 8px;
        display: block;
    }
    .cspg-output {
        font-size: 16px;
        padding: 12px;
    }
}