.genesis-tools__header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.genesis-help__trigger {
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid #d6d2ca;
    background: #fff;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font: inherit;
    border-radius: var(--genesis-radius-control, 8px);
}

.genesis-help__trigger > span,
.genesis-help__tip-button {
    width: 22px;
    height: 22px;
    border: 1px solid #a9cfe2;
    border-radius: 50%;
    background: #f2faff;
    color: #007ebc;
    display: inline-grid;
    flex: 0 0 22px;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.genesis-help__trigger:hover,
.genesis-help__trigger:focus-visible,
.genesis-help__trigger[aria-expanded="true"] {
    border-color: var(--genesis-altx-blue, #0094dc);
    color: var(--genesis-altx-blue-dark, #007ebc);
}

.genesis-help__menu[hidden],
.genesis-help__layer[hidden],
.genesis-help__tip[hidden] {
    display: none !important;
}

.genesis-help__menu {
    position: absolute;
    z-index: 65;
    top: 78px;
    right: 78px;
    width: min(330px, calc(100% - 32px));
    padding: 12px;
    border: 1px solid #dbe8ef;
    background: #fff;
    box-shadow: 0 18px 48px rgba(20, 35, 45, .18);
    border-radius: var(--genesis-radius-card, 12px);
}

.genesis-help__menu > strong {
    display: block;
    padding: 3px 5px 9px;
    color: #777;
    font-size: 11px;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.genesis-help__menu > button {
    width: 100%;
    min-height: 54px;
    padding: 9px 10px;
    border: 0;
    background: #fff;
    color: #252525;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    border-radius: var(--genesis-radius-control, 8px);
}

.genesis-help__menu > button:hover,
.genesis-help__menu > button:focus-visible {
    background: #f2faff;
    outline: none;
}

.genesis-help__menu > button i {
    color: var(--genesis-altx-blue-dark, #007ebc);
    text-align: center;
}

.genesis-help__menu > button span,
.genesis-help__menu > button small {
    display: block;
}

.genesis-help__menu > button span {
    font-size: 14px;
    font-weight: 600;
}

.genesis-help__menu > button small {
    margin-top: 2px;
    color: #777;
    font-size: 12px;
    font-weight: 400;
}

.genesis-help__layer {
    position: absolute;
    z-index: 70;
    inset: 0;
}

.genesis-help__drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 25, 28, .36);
}

.genesis-help__drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(460px, 100%);
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -18px 0 55px rgba(15, 25, 32, .2);
    outline: none;
    border-radius: var(--genesis-radius-dialog, 16px) 0 0 var(--genesis-radius-dialog, 16px);
}

.genesis-help__drawer > header {
    min-height: 76px;
    padding: 17px 20px;
    border-bottom: 1px solid #e8e5df;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.genesis-help__drawer h3 {
    margin: 0;
    color: #252525;
    font-size: 24px;
    line-height: 1.15;
}

.genesis-help__drawer > header button {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #d6d2ca;
    background: #fff;
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    cursor: pointer;
}

.genesis-help__drawer > header svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

.genesis-help__content {
    min-height: 0;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.genesis-help__lead {
    margin: 0 0 17px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.genesis-help__content details {
    border-top: 1px solid #e5e5e5;
}

.genesis-help__content details:last-child {
    border-bottom: 1px solid #e5e5e5;
}

.genesis-help__content summary {
    padding: 16px 28px 16px 0;
    color: #252525;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.genesis-help__content details > div {
    padding: 0 0 17px;
    color: #555;
    font-size: 13px;
    line-height: 1.55;
}

.genesis-help__content p {
    margin: 0 0 10px;
}

.genesis-help__content p:last-child {
    margin-bottom: 0;
}

.genesis-help__content ol {
    margin: 0 0 12px;
    padding-left: 20px;
}

.genesis-field__heading {
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.genesis-field__heading .genesis-field__label {
    margin-bottom: 0;
}

.genesis-help__toggle-row,
.genesis-help__tinting-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.genesis-help__toggle-row {
    min-height: 44px;
}

.genesis-help__toggle-row .genesis-toggle {
    min-width: 0;
    flex: 1;
}

.genesis-help__tinting-heading {
    justify-content: space-between;
}

.genesis-result .genesis-help__tip-button {
    border-color: var(--genesis-altx-blue, #0094dc);
    background: #fff;
    color: var(--genesis-altx-blue-dark, #007ebc);
}

.genesis-result .genesis-help__tip-button:hover,
.genesis-result .genesis-help__tip-button:focus-visible,
.genesis-result .genesis-help__tip-button[aria-expanded="true"] {
    border-color: var(--genesis-altx-blue, #0094dc);
    background: var(--genesis-altx-blue, #0094dc);
    color: #fff;
}

.genesis-help__tip-button {
    min-width: 22px;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.genesis-help__tip-button:hover,
.genesis-help__tip-button:focus-visible,
.genesis-help__tip-button[aria-expanded="true"] {
    border-color: var(--genesis-altx-blue, #0094dc);
    background: var(--genesis-altx-blue, #0094dc);
    color: #fff;
    outline: none;
}

.genesis-visualizer__warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.genesis-visualizer__warning > span {
    min-width: 0;
    flex: 1;
}

.genesis-help__tip {
    position: fixed;
    z-index: 2147483200;
    width: min(300px, calc(100vw - 24px));
    padding: 13px 38px 13px 14px;
    border: 1px solid #cce8f5;
    background: #fff;
    color: #333;
    box-shadow: 0 14px 38px rgba(15, 30, 40, .2);
    font-size: 13px;
    line-height: 1.45;
}

.genesis-help__tip p {
    margin: 0;
}

.genesis-help__tip > button {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.genesis-help__invite,
.genesis-help__coachmark {
    position: fixed;
    z-index: 2147483250;
    width: min(360px, calc(100vw - 24px));
    padding: 15px;
    border: 1px solid #cce8f5;
    background: #fff;
    color: #252525;
    box-shadow: 0 16px 42px rgba(15, 30, 40, .22);
}

.genesis-help__invite {
    right: max(18px, calc((100vw - min(1080px, 100vw - 48px)) / 2 + 18px));
    bottom: calc(var(--genesis-actions-height, 0px) + 18px);
}

.genesis-help__invite > div:first-child strong,
.genesis-help__invite > div:first-child span,
.genesis-help__coachmark > strong {
    display: block;
}

.genesis-help__invite > div:first-child strong,
.genesis-help__coachmark > strong {
    font-size: 15px;
}

.genesis-help__invite > div:first-child span {
    margin-top: 3px;
    color: #666;
    font-size: 13px;
}

.genesis-help__invite > div:last-child {
    margin-top: 13px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.genesis-help__invite button,
.genesis-help__coachmark button,
.genesis-tour__controls button {
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid #c6dce7;
    background: #fff;
    color: #333;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
}

.genesis-help__invite [data-invite-start],
.genesis-help__coachmark button,
.genesis-tour__controls [data-tour-next] {
    border-color: var(--genesis-altx-blue, #0094dc);
    background: var(--genesis-altx-blue, #0094dc);
    color: #fff;
}

.genesis-help__coachmark p {
    margin: 6px 0 12px;
    color: #555;
    font-size: 13px;
    line-height: 1.45;
}

.genesis-help__coachmark button {
    display: block;
    margin-left: auto;
}

.genesis-tour {
    position: fixed;
    z-index: 2147483400;
    inset: 0;
    pointer-events: none;
}

.genesis-tour__blocker {
    position: fixed;
    inset: 0;
    pointer-events: auto;
}

.genesis-tour__spotlight {
    position: fixed;
    border: 2px solid #fff;
    border-radius: 7px;
    box-shadow: 0 0 0 9999px rgba(10, 16, 20, .7), 0 0 0 4px rgba(0, 148, 220, .9);
    pointer-events: none;
    transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease;
}

.genesis-tour__card {
    position: fixed;
    width: min(360px, calc(100vw - 24px));
    padding: 18px;
    border: 1px solid #cce8f5;
    background: #fff;
    color: #252525;
    box-shadow: 0 18px 52px rgba(0, 0, 0, .28);
    pointer-events: auto;
}

.genesis-tour__progress {
    margin-bottom: 8px;
    color: var(--genesis-altx-blue-dark, #007ebc);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.genesis-tour__card h3 {
    margin: 0;
    color: #252525;
    font-size: 19px;
    line-height: 1.25;
}

.genesis-tour__card p {
    margin: 8px 0 17px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.genesis-tour__controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 7px;
}

.genesis-tour__controls [data-tour-skip] {
    padding-right: 3px;
    padding-left: 3px;
    border-color: transparent;
    color: #777;
}

.genesis-tour__controls [hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .genesis-tools__header-actions {
        gap: 7px;
    }

    .genesis-help__trigger {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }

    .genesis-help__trigger > b {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .genesis-help__menu {
        position: fixed;
        z-index: 2147483150;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: min(72dvh, 540px);
        padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
        overflow-y: auto;
        border-width: 1px 0 0;
        box-shadow: 0 -18px 45px rgba(20, 30, 36, .22);
    }

    .genesis-help__menu::before {
        content: "";
        display: block;
        width: 38px;
        height: 4px;
        margin: 0 auto 10px;
        border-radius: 3px;
        background: #d4d4d4;
    }

    .genesis-help__layer {
        position: fixed;
        z-index: 2147483160;
        width: 100vw;
        height: 100dvh;
    }

    .genesis-help__drawer {
        width: 100%;
        height: 100dvh;
        border-radius: 0;
    }

    .genesis-help__drawer > header {
        min-height: 70px;
        padding: max(12px, env(safe-area-inset-top)) 16px 12px;
    }

    .genesis-help__drawer h3 {
        font-size: 21px;
    }

    .genesis-help__content {
        padding: 18px 16px calc(28px + env(safe-area-inset-bottom));
    }

    .genesis-help__tip {
        right: 12px !important;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 12px !important;
        top: auto !important;
        width: auto;
    }

    .genesis-help__invite,
    .genesis-help__coachmark {
        right: 12px !important;
        bottom: calc(var(--genesis-actions-height, 0px) + 12px + env(safe-area-inset-bottom));
        left: 12px !important;
        top: auto !important;
        width: auto;
    }

    .genesis-help__invite button,
    .genesis-help__coachmark button,
    .genesis-tour__controls button {
        min-height: 44px;
    }

    .genesis-tour__spotlight {
        transition-duration: .12s;
    }

    .genesis-tour__card {
        right: 10px;
        bottom: calc(var(--genesis-actions-height, 0px) + 10px + env(safe-area-inset-bottom));
        left: 10px;
        top: auto;
        width: auto;
        max-height: min(45dvh, 360px);
        padding: 15px;
        overflow-y: auto;
    }

    .genesis-tour__card h3 {
        font-size: 18px;
    }

    .genesis-tour__controls {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .genesis-tour__controls > span {
        display: none;
    }

    .genesis-tour__controls [data-tour-back] {
        grid-column: 2;
    }

    .genesis-tour__controls [data-tour-next] {
        grid-column: 3;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .genesis-help__drawer {
        animation: genesis-help-drawer-in .2s ease-out;
    }
    .genesis-help__invite,
    .genesis-help__coachmark,
    .genesis-tour__card {
        animation: genesis-help-card-in .18s ease-out;
    }
}

@keyframes genesis-help-drawer-in {
    from { transform: translateX(18px); opacity: .7; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes genesis-help-card-in {
    from { transform: translateY(8px); opacity: .65; }
    to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .genesis-tour__spotlight {
        transition: none;
    }
}
