.hp-help-trigger {
    align-items: center;
    appearance: none;
    background: var(--hp-surface, #fff);
    border: 1px solid var(--hp-border, #d8dfdc);
    border-radius: 999px;
    color: var(--hp-primary, #244b3a);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: 700 0.82rem/1 system-ui, sans-serif;
    height: 2rem;
    justify-content: center;
    min-width: 2rem;
    padding: 0;
    position: relative;
    z-index: 2;
}

.hp-help-trigger[hidden] {
    display: none !important;
}

.hp-help-trigger:hover {
    background: var(--hp-surface-muted, #f2f5f3);
}

.hp-help-trigger:focus-visible,
.hp-help-panel button:focus-visible {
    outline: 3px solid var(--hp-focus, #2f80ed);
    outline-offset: 2px;
}

.hp-help-heading {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
    min-width: 0;
}

.hp-help-heading--start {
    justify-content: flex-start;
}

.hp-help-layer {
    align-items: center;
    background: rgba(18, 35, 29, 0.48);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 12000;
}

.hp-help-layer.hidden {
    display: none !important;
}

body.hp-help-open {
    overflow: hidden;
}

.hp-help-panel {
    background: var(--hp-surface, #fff);
    border: 1px solid var(--hp-border, #d8dfdc);
    border-radius: 1rem;
    box-shadow: 0 1.5rem 3rem rgba(18, 35, 29, 0.24);
    color: var(--hp-text, #17352b);
    display: grid;
    max-height: min(80vh, 42rem);
    max-width: 32rem;
    overflow: auto;
    width: min(100%, 32rem);
}

.hp-help-panel__header {
    align-items: flex-start;
    border-bottom: 1px solid var(--hp-border, #d8dfdc);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.1rem 1.2rem 0.9rem;
}

.hp-help-panel__header h2 {
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 0;
}

.hp-help-panel__eyebrow {
    color: var(--hp-muted, #66756f);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 0.3rem;
    text-transform: uppercase;
}

.hp-help-panel__close {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 2.25rem;
    font-size: 1.6rem;
    height: 2.25rem;
    justify-content: center;
    padding: 0;
}

.hp-help-panel__body {
    font-size: 0.98rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    padding: 1rem 1.2rem;
}

.hp-help-panel__body p {
    margin: 0;
}

.hp-help-panel__body ul {
    margin: 0.8rem 0 0;
    padding-inline-start: 1.2rem;
}

.hp-help-panel__body li + li {
    margin-top: 0.35rem;
}

.hp-help-panel__actions {
    align-items: center;
    border-top: 1px solid var(--hp-border, #d8dfdc);
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    padding: 0.9rem 1.2rem 1.1rem;
}

.hp-help-panel__actions--tour {
    justify-content: space-between;
}

.hp-help-panel__navigation {
    display: flex;
    gap: 0.65rem;
}

@media (max-width: 600px) {
    .hp-help-trigger {
        height: 2.5rem;
        min-width: 2.5rem;
    }

    .hp-help-layer {
        align-items: flex-end;
        padding: 0;
    }

    .hp-help-panel {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        max-height: min(82dvh, 42rem);
        max-width: none;
        width: 100%;
    }

    .hp-help-panel__actions,
    .hp-help-panel__actions--tour {
        align-items: stretch;
        flex-direction: column;
    }

    .hp-help-panel__navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .hp-help-panel__navigation > :only-child {
        grid-column: 1 / -1;
    }

    .hp-help-panel__actions .hp-btn {
        justify-content: center;
        min-height: 2.75rem;
        width: 100%;
    }
}
