.npgh {
    --npgh-blue: #1b75bb;
    --npgh-blue-dark: #145f98;
    --npgh-navy: #14213d;
    --npgh-text: #243142;
    --npgh-muted: #637083;
    --npgh-line: #dce3ec;
    --npgh-soft: #f3f8fc;
    --npgh-panel: #f8fbfe;
    background:
        linear-gradient(135deg, rgba(27, 117, 187, 0.09), rgba(255, 255, 255, 0) 34%),
        #ffffff;
    border: 1px solid var(--npgh-line);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(20, 33, 61, 0.14);
    color-scheme: light;
    color: var(--npgh-text);
    margin: 0 auto;
    max-width: 860px;
    overflow: hidden;
    padding: clamp(22px, 4vw, 42px);
    position: relative;
}

.npgh::before {
    background: var(--npgh-blue);
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.npgh * {
    box-sizing: border-box;
}

.npgh__hero {
    align-items: flex-start;
    display: grid;
    gap: 18px;
    grid-template-columns: auto minmax(0, 1fr);
    margin-bottom: 20px;
}

.npgh__mark {
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(20, 33, 61, 0.14);
    display: flex;
    height: 62px;
    justify-content: center;
    width: 62px;
}

.npgh__mark img {
    display: block;
    height: 50px;
    width: 50px;
}

.npgh__intro {
    margin: 0;
}

.npgh__kicker {
    color: var(--npgh-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.npgh__intro h2 {
    color: var(--npgh-navy);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    margin: 0 0 12px;
}

.npgh__intro p,
.npgh__education p,
.npgh__strength-label {
    color: var(--npgh-muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.npgh__privacy {
    align-items: flex-start;
    background: rgba(27, 117, 187, 0.08);
    border: 1px solid rgba(27, 117, 187, 0.16);
    border-radius: 8px;
    color: var(--npgh-text);
    display: flex;
    font-size: 15px;
    gap: 12px;
    line-height: 1.55;
    margin: 0 0 22px;
    padding: 14px 16px;
}

.npgh__privacy-icon,
.npgh__education-icon {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(27, 117, 187, 0.2);
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 32px;
    justify-content: center;
    position: relative;
    width: 32px;
}

.npgh__privacy-icon::before {
    border: 2px solid var(--npgh-blue);
    border-top: 0;
    content: "";
    height: 14px;
    transform: rotate(45deg);
    width: 8px;
}

.npgh__panel {
    background: var(--npgh-panel);
    border: 1px solid var(--npgh-line);
    border-radius: 8px;
    padding: 16px;
}

.npgh__output {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.npgh__password {
    background: #ffffff;
    border: 1px solid var(--npgh-line);
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(20, 33, 61, 0.04);
    color: var(--npgh-navy);
    font-family: Consolas, Monaco, monospace;
    font-size: clamp(18px, 3vw, 25px);
    min-height: 60px;
    padding: 12px 14px;
    width: 100%;
}

.npgh__password:focus {
    border-color: var(--npgh-blue);
    box-shadow: 0 0 0 3px rgba(27, 117, 187, 0.14);
    outline: none;
}

.npgh__copy,
.npgh__generate {
    align-items: center;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    white-space: nowrap;
}

.npgh__copy {
    background: #e9f3fb;
    color: var(--npgh-blue-dark);
}

.npgh__copy::before {
    border: 2px solid currentColor;
    border-radius: 3px;
    content: "";
    height: 14px;
    margin-right: 8px;
    width: 12px;
}

.npgh__generate {
    background: var(--npgh-blue);
    box-shadow: 0 12px 26px rgba(27, 117, 187, 0.28);
    color: #ffffff;
}

.npgh__copy:hover,
.npgh__generate:hover {
    transform: translateY(-1px);
}

.npgh__copy:focus-visible,
.npgh__generate:focus-visible {
    box-shadow: 0 0 0 3px rgba(27, 117, 187, 0.2);
    outline: none;
}

.npgh__strength-wrap {
    margin-top: 14px;
}

.npgh__strength {
    background: #e5ebf3;
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}

.npgh__strength span {
    background: #d92d20;
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width 180ms ease, background-color 180ms ease;
    width: 25%;
}

.npgh__strength-label {
    font-weight: 700;
    margin-top: 8px;
}

.npgh__modes {
    background: #dceefa;
    border: 2px solid #b9d9f1;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 20px 0;
    padding: 6px;
}

.npgh__modes label {
    align-items: center;
    border-radius: 6px;
    color: var(--npgh-navy);
    cursor: pointer;
    display: flex;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 0;
    text-align: center;
}

.npgh__modes label span {
    align-items: center;
    background: #f7fbff;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.npgh__modes input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.npgh__modes input:checked + span {
    background: var(--npgh-blue);
    box-shadow: 0 8px 18px rgba(20, 33, 61, 0.16);
    color: #ffffff;
}

.npgh__modes input,
.npgh__checks input,
.npgh__length input {
    accent-color: var(--npgh-blue);
}

.npgh__settings {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.75fr);
}

.npgh__length,
.npgh__checks {
    background: #ffffff;
    border: 1px solid var(--npgh-line);
    border-radius: 8px;
    padding: 16px;
}

.npgh__length label,
.npgh__checks legend {
    color: var(--npgh-navy);
    display: flex;
    font-weight: 800;
    justify-content: space-between;
    margin-bottom: 12px;
}

.npgh__length strong {
    background: var(--npgh-soft);
    border-radius: 999px;
    color: var(--npgh-blue-dark);
    min-width: 42px;
    padding: 2px 10px;
    text-align: center;
}

.npgh__length input {
    width: 100%;
}

.npgh__length-control {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    margin-bottom: 12px;
}

.npgh__length-control button {
    align-items: center;
    background: var(--npgh-blue);
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 24px;
    font-weight: 800;
    height: 44px;
    justify-content: center;
    line-height: 1;
    width: 44px;
}

.npgh__length-control input[type="range"] {
    appearance: none;
    background: transparent;
    cursor: pointer;
    height: 44px;
}

.npgh__length-control input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, var(--npgh-blue), #8bc5ef);
    border-radius: 999px;
    height: 12px;
}

.npgh__length-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    background: #ffffff;
    border: 4px solid var(--npgh-blue-dark);
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(20, 33, 61, 0.22);
    height: 28px;
    margin-top: -8px;
    width: 28px;
}

.npgh__length-control input[type="range"]::-moz-range-track {
    background: linear-gradient(90deg, var(--npgh-blue), #8bc5ef);
    border-radius: 999px;
    height: 12px;
}

.npgh__length-control input[type="range"]::-moz-range-thumb {
    background: #ffffff;
    border: 4px solid var(--npgh-blue-dark);
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(20, 33, 61, 0.22);
    height: 20px;
    width: 20px;
}

.npgh__length-number {
    background: var(--npgh-soft);
    border: 1px solid var(--npgh-line);
    border-radius: 8px;
    color: var(--npgh-navy);
    font-weight: 800;
    min-height: 42px;
    padding: 8px 10px;
    text-align: center;
    width: 100%;
}

.npgh__checks {
    display: grid;
    gap: 10px;
    margin: 0;
}

.npgh__checks label {
    align-items: center;
    color: var(--npgh-muted);
    display: flex;
    gap: 10px;
    line-height: 1.3;
}

.npgh__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin: 16px 0 20px;
}

.npgh__status {
    color: #067647;
    font-size: 14px;
    font-weight: 700;
    min-height: 18px;
}

.npgh__education {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid var(--npgh-line);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    margin-top: 26px;
    padding: 16px;
}

.npgh__education-icon::before,
.npgh__education-icon::after {
    background: var(--npgh-blue);
    content: "";
    position: absolute;
}

.npgh__education-icon::before {
    height: 14px;
    width: 2px;
}

.npgh__education-icon::after {
    height: 2px;
    width: 14px;
}

.npgh__education h3 {
    color: var(--npgh-navy);
    font-size: 20px;
    margin: 0 0 8px;
}

@media (max-width: 680px) {
    .npgh__hero,
    .npgh__output,
    .npgh__settings,
    .npgh__modes {
        grid-template-columns: 1fr;
    }

    .npgh__mark {
        height: 54px;
        width: 54px;
    }

    .npgh__copy,
    .npgh__generate,
    .npgh__length-control button {
        width: 100%;
    }

    .npgh__actions {
        margin: 14px 0 18px;
    }

    .npgh__generate {
        min-height: 56px;
    }

    .npgh__length-control {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }
}
