.main-three-part-grid-container .tool-form-random-password {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
}

.main-three-part-grid-container .tool-form-random-password .pwd-card {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    padding: 0.85rem 1rem 1rem;
    box-sizing: border-box;
}

.main-three-part-grid-container .tool-form-random-password .pwd-section {
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e3e3e3;
}

.main-three-part-grid-container .tool-form-random-password .pwd-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.main-three-part-grid-container .tool-form-random-password .pwd-section-title {
    margin: 0 0 0.55rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #666;
    line-height: 1.4;
}

.main-three-part-grid-container .tool-form-random-password .pwd-char-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.75rem;
}

.main-three-part-grid-container .tool-form-random-password .pwd-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    cursor: pointer;
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.45;
}

.main-three-part-grid-container .tool-form-random-password .pwd-check span {
    user-select: none;
}

.main-three-part-grid-container .tool-form-random-password .pwd-check-inline {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
}

.main-three-part-grid-container .tool-form-random-password .pwd-inline-input {
    flex: 1 1 12rem;
    min-width: 10rem;
    max-width: 100%;
    height: 2rem;
    margin: 0;
    box-sizing: border-box;
    font-size: 0.8125rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.main-three-part-grid-container .tool-form-random-password .pwd-params {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
}

.main-three-part-grid-container .tool-form-random-password .pwd-field-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #888;
}

.main-three-part-grid-container .tool-form-random-password .pwd-field-control {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.main-three-part-grid-container .tool-form-random-password .pwd-num-input {
    width: 4.5rem;
    height: 2rem;
    margin: 0;
    box-sizing: border-box;
    font-size: 0.875rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.main-three-part-grid-container .tool-form-random-password .pwd-hint {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
}

.main-three-part-grid-container .tool-form-random-password .pwd-actions {
    margin: 0 0 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e3e3e3;
}

.main-three-part-grid-container .tool-form-random-password .pwd-actions .btn {
    margin-right: 0.4rem;
    margin-bottom: 0;
}

.main-three-part-grid-container .tool-form-random-password .pwd-result-section {
    margin-bottom: 0;
}

.main-three-part-grid-container .tool-form-random-password .pwd-result {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 10rem;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    line-height: 1.65;
    color: #333;
    background: #fafafa;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

.main-three-part-grid-container .tool-form-random-password .pwd-result:focus {
    border-color: #aaa;
    background: #fff;
}

.main-three-part-grid-container .tool-form-random-password .pwd-result::placeholder {
    color: #999;
    font-family: var(--font-sans, inherit);
}

.main-three-part-grid-container .tool-form-random-password .pwd-result.has-result {
    color: #333;
    background: #fff;
    cursor: pointer;
}

/* checkbox accent */
.main-three-part-grid-container .tool-form-random-password .checkbox input[type="checkbox"]:hover {
    border-color: #91b8f5;
}

.main-three-part-grid-container .tool-form-random-password .checkbox input[type="checkbox"]:checked {
    border-color: #3280f8;
}

.main-three-part-grid-container .tool-form-random-password .checkbox input[type="checkbox"]:checked::after {
    background: #3280f8;
}

@media (max-width: 640px) {
    .main-three-part-grid-container .tool-form-random-password .pwd-char-grid {
        grid-template-columns: 1fr;
    }

    .main-three-part-grid-container .tool-form-random-password .pwd-params {
        grid-template-columns: 1fr;
    }

    .main-three-part-grid-container .tool-form-random-password .pwd-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .main-three-part-grid-container .tool-form-random-password .pwd-actions .btn {
        flex: 1 1 auto;
        margin-right: 0;
    }
}
