.pw-gen-btn {
    width: 100%;
    margin: 0 0 10px;
    padding: 10px 14px;
    border: 2px solid #667eea;
    background: #fff;
    color: #667eea;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.pw-gen-btn:hover {
    background: #667eea;
    color: #fff;
}

.pw-input-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.pw-input-row .form-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.pw-toggle-btn {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 0 14px;
    cursor: pointer;
    white-space: nowrap;
}

.pw-toggle-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.pw-strength {
    height: 4px;
    background: #e1e5e9;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.25s, background 0.25s;
}

.pw-preview {
    margin: 10px 0 0;
    padding: 12px 14px;
    background: #ecfdf3;
    border: 1px dashed #52b788;
    border-radius: 8px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 1rem;
    letter-spacing: 0.04em;
    word-break: break-all;
    color: #166534;
}

.pw-preview[hidden],
.pw-gen-bar[hidden] {
    display: none !important;
}

.pw-hint {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.pw-gen-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 20px;
}

.pw-gen-warn {
    margin: 0;
    font-size: 0.85rem;
    color: #856404;
    background: #fff3cd;
    border-radius: 8px;
    padding: 10px 12px;
}

.pw-copy-btn {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A4A30;
    background: #E8F5EE;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
}

.pw-copy-btn:hover {
    background: #d4edda;
}
