.page-help-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 40px;
    width: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border, #d9dee8);
    border-radius: 10px;
    background: transparent;
    color: var(--text, #172033);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.page-help-trigger:hover,
.page-help-trigger:focus-visible {
    background: rgba(64, 93, 230, .12);
}

.page-help-icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: .85rem;
    line-height: 1;
}

.page-help-trigger:focus-visible,
.page-help-close:focus-visible,
.page-help-new-tab:focus-visible {
    outline: 3px solid rgba(64, 93, 230, .3);
    outline-offset: 3px;
}

.page-help-dialog {
    width: min(680px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 32px));
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border, #d9dee8);
    border-radius: 18px;
    background: var(--bg2, #fff);
    color: var(--text, #172033);
    box-shadow: 0 28px 90px rgba(15, 23, 42, .38);
}

.page-help-dialog::backdrop {
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(3px);
}

.page-help-dialog-content {
    display: grid;
    max-height: min(760px, calc(100vh - 32px));
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.page-help-header,
.page-help-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}

.page-help-header {
    border-bottom: 1px solid var(--border, #d9dee8);
}

.page-help-header h2 {
    margin: 2px 0 0;
    font-size: 1.3rem;
}

.page-help-eyebrow {
    color: var(--muted, #667085);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-help-close {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.page-help-close:hover {
    background: rgba(91, 103, 122, .12);
}

.page-help-close span {
    font-size: 1.6rem;
    line-height: 1;
}

.page-help-body,
.page-help-page-body {
    overflow: auto;
    padding: 22px 20px;
}

.page-help-summary {
    margin: 0 0 18px;
    font-size: 1.05rem;
    line-height: 1.55;
}

.page-help-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 1.4rem;
}

.page-help-steps li {
    padding-left: 4px;
    line-height: 1.5;
}

.page-help-note {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding: 14px;
    border: 1px solid rgba(64, 93, 230, .22);
    border-radius: 12px;
    background: rgba(64, 93, 230, .08);
    line-height: 1.45;
}

.page-help-video {
    position: relative;
    margin-top: 20px;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.page-help-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.page-help-footer {
    border-top: 1px solid var(--border, #d9dee8);
}

.page-help-new-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary, #405de6);
    font-weight: 650;
    text-decoration: none;
}

.page-help-new-tab:hover {
    text-decoration: underline;
}

.page-help-close-action {
    min-height: 40px;
    width: auto;
    margin: 0;
    padding: 0 18px;
    border: 1px solid #405de6;
    border-radius: 10px;
    background: #405de6;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.page-help-close-action:hover,
.page-help-close-action:focus-visible {
    background: #314bc7;
}

.page-help-page {
    width: min(820px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--border, #d9dee8);
    border-radius: 18px;
    background: var(--bg2, #fff);
    color: var(--text, #172033);
}

.page-help-page-header {
    padding: 22px 20px;
    border-bottom: 1px solid var(--border, #d9dee8);
}

.page-help-page-header h1 {
    margin: 3px 0 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

@media (max-width: 575.98px) {
    .page-help-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .page-help-close-action {
        width: 100%;
    }
}
