#password-generator-root {
    padding: 0 0 3em;
}

.password-settings {
    border: 1px solid var(--hairline);
    background: var(--panel);
    padding: 1.25em;
    margin: 1.5em 0;
}

.setting-group {
    margin-bottom: 1em;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5em;
}

#password-length-display {
    font-family: var(--font-monospace);
}

.setting-group input[type="range"] {
    width: 100%;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.625em;
    cursor: pointer;
}

.checkbox-group label:last-child {
    margin-bottom: 0;
}

.password-display {
    border: 1px solid var(--hairline);
    background: var(--panel);
    padding: 1.25em;
    margin: 0 0 1.5em;
}

.password-output {
    display: flex;
    gap: 0.5em;
    margin-bottom: 1em;
}

.password-output input {
    flex: 1;
    font-family: var(--font-monospace);
    word-break: break-all;
}

#copy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    min-width: 45px;
    padding: 0;
    border: 1px solid var(--hairline);
    background: var(--ground);
    color: var(--ink);
    cursor: pointer;
}

#copy-button svg {
    width: 20px;
    height: 20px;
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 0.625em;
}

.strength-label {
    min-width: 70px;
}

.strength-meter {
    flex: 1;
    height: 6px;
    background: var(--ground);
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 100%;
}

.strength-text {
    font-family: var(--font-monospace);
    font-size: 0.8125rem;
    min-width: 80px;
    text-align: right;
}

@media (max-width: 480px) {
    .password-output {
        flex-direction: column;
    }

    #copy-button {
        width: 100%;
        min-width: unset;
        height: 44px;
    }

    .password-strength {
        flex-direction: column;
        align-items: flex-start;
    }

    .strength-text {
        text-align: left;
        min-width: unset;
    }
}
