.tph-pwgen-wrapper {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2933;
    line-height: 1.6;
}

.tph-pwgen-intro h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.tph-pwgen-intro p {
    margin-bottom: 1.5rem;
    color: #52606d;
}

.tph-pwgen-tool {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 2rem;
}

.tph-pwgen-output-row {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.tph-pwgen-output {
    flex: 1;
    font-size: 1.1rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    letter-spacing: 0.5px;
}

.tph-pwgen-copied-msg {
    min-height: 1.2em;
    font-size: 0.85rem;
    color: #16a34a;
    margin-bottom: 12px;
}

.tph-pwgen-btn {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 20px;
    transition: opacity 0.15s ease;
}

.tph-pwgen-btn:hover {
    opacity: 0.9;
}

.tph-pwgen-btn-primary {
    background: #2563eb;
    color: #fff;
    width: 100%;
    margin-top: 8px;
}

.tph-pwgen-btn-secondary {
    background: #e2e8f0;
    color: #1f2933;
    white-space: nowrap;
}

.tph-pwgen-strength-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.tph-pwgen-strength-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.tph-pwgen-strength-fill {
    height: 100%;
    width: 0%;
    background: #cbd5e1;
    transition: width 0.2s ease, background 0.2s ease;
}

.tph-strength-weak {
    background: #ef4444;
}

.tph-strength-fair {
    background: #f59e0b;
}

.tph-strength-good {
    background: #22c55e;
}

.tph-strength-excellent {
    background: #16a34a;
}

.tph-pwgen-strength-label {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 90px;
    text-align: right;
    color: #52606d;
}

.tph-pwgen-options {
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
}

.tph-pwgen-option-row {
    margin-bottom: 16px;
}

.tph-pwgen-option-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.tph-pwgen-option-row input[type="range"] {
    width: 100%;
}

.tph-pwgen-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 6px;
}

.tph-pwgen-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    cursor: pointer;
}

.tph-pwgen-multi {
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.tph-pwgen-multi label {
    font-weight: 600;
    font-size: 0.92rem;
    margin-right: 10px;
}

.tph-pwgen-multi select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.tph-pwgen-multi-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.tph-pwgen-multi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.tph-pwgen-multi-copy {
    cursor: pointer;
    background: #e2e8f0;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tph-pwgen-howto,
.tph-pwgen-faq {
    margin-bottom: 2rem;
}

.tph-pwgen-howto h2,
.tph-pwgen-faq h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.tph-pwgen-howto ol {
    padding-left: 1.2rem;
}

.tph-pwgen-howto li {
    margin-bottom: 6px;
}

.tph-pwgen-faq-item {
    margin-bottom: 1.2rem;
}

.tph-pwgen-faq-item h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.tph-pwgen-faq-item p {
    color: #52606d;
    margin: 0;
}

@media (max-width: 480px) {
    .tph-pwgen-checkboxes {
        grid-template-columns: 1fr;
    }

    .tph-pwgen-output-row {
        flex-direction: column;
    }
}
