.member-tour[hidden],
.member-tour-focus[hidden],
.member-tour-details[hidden],
.member-tour-list[hidden],
.member-tour-links[hidden],
.member-tour-actions [hidden] {
    display: none !important;
}

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

.member-tour-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 4, 10, .42);
    pointer-events: none;
}

.member-tour.has-target .member-tour-scrim {
    background: transparent;
}

.member-tour-focus {
    position: fixed;
    z-index: 5001;
    border: 2px solid #72b8ff;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 4, 10, .42), 0 0 0 4px rgba(114, 184, 255, .14);
    pointer-events: none;
    transition: top .18s ease, left .18s ease, width .18s ease, height .18s ease;
}

.member-tour-focus:not([hidden]) + .member-tour-panel {
    z-index: 5002;
}

.member-tour-panel {
    position: fixed;
    right: 24px;
    top: 96px;
    bottom: auto;
    z-index: 5002;
    width: min(340px, calc(100vw - 48px));
    max-height: min(480px, calc(100dvh - 32px));
    box-sizing: border-box;
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(132, 181, 235, .42);
    border-radius: 8px;
    background: #0b1421;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .62);
    color: #eef5ff;
    pointer-events: auto;
}

.member-tour-panel.is-left {
    right: auto;
    left: 24px;
}

.member-tour:not(.has-target) .member-tour-panel {
    top: 50%;
    transform: translateY(-50%);
}

.member-tour.has-target .member-tour-panel {
    transform: none;
}

.member-tour-topline,
.member-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.member-tour-topline > span,
.member-tour-kicker {
    color: #9fc9f7;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.member-tour-pause,
.member-tour-back,
.member-tour-next {
    min-height: 36px;
    border-radius: 6px;
    cursor: pointer;
    font: 900 .78rem/1 Arial, Helvetica, sans-serif;
}

.member-tour-pause {
    padding: 6px 8px;
    border: 0;
    color: #c8d6e8;
    background: transparent;
}

.member-tour-pause:hover,
.member-tour-pause:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.member-tour-progress {
    height: 4px;
    margin: 8px 0 11px;
    overflow: hidden;
    border-radius: 2px;
    background: #223247;
}

.member-tour-progress i {
    display: block;
    height: 100%;
    background: #e5bd64;
    transition: width .18s ease;
}

.member-tour-panel h2 {
    margin: 4px 0 6px;
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.member-tour-panel > p {
    margin: 0;
    color: #c4d1e2;
    font-size: .83rem;
    line-height: 1.42;
}

.member-tour-details {
    margin-top: 9px;
    border-top: 1px solid rgba(132, 181, 235, .17);
}

.member-tour-details summary {
    padding: 8px 0 2px;
    color: #aecdEF;
    cursor: pointer;
    font-size: .72rem;
    font-weight: 900;
}

.member-tour-details summary:hover,
.member-tour-details summary:focus-visible {
    color: #ffffff;
}

.member-tour-list {
    display: grid;
    gap: 8px;
    margin: 8px 0 2px;
    padding: 0;
    list-style: none;
}

.member-tour-list li {
    position: relative;
    padding-left: 18px;
    color: #e1e9f4;
    font-size: .74rem;
    line-height: 1.4;
}

.member-tour-list li::before {
    content: '';
    position: absolute;
    top: .55em;
    left: 1px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #72b8ff;
}

.member-tour-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.member-tour-links a {
    padding: 8px 10px;
    border: 1px solid rgba(114, 184, 255, .38);
    border-radius: 6px;
    color: #cbe6ff;
    background: #101f31;
    font-size: .78rem;
    font-weight: 900;
    text-decoration: none;
}

.member-tour-links a:hover,
.member-tour-links a:focus-visible {
    border-color: #72b8ff;
    color: #ffffff;
}

.member-tour-actions {
    margin-top: 12px;
}

.member-tour-back,
.member-tour-next {
    padding: 8px 12px;
}

.member-tour-back {
    border: 1px solid #39516e;
    color: #d9e6f5;
    background: #111d2b;
}

.member-tour-next {
    min-width: 108px;
    margin-left: auto;
    border: 1px solid #f0cb78;
    color: #151006;
    background: #e5bd64;
}

.member-tour-back:hover,
.member-tour-back:focus-visible {
    border-color: #72b8ff;
}

.member-tour-next:hover,
.member-tour-next:focus-visible {
    background: #f0cc7d;
}

.member-tour-pause:disabled,
.member-tour-back:disabled,
.member-tour-next:disabled {
    cursor: wait;
    opacity: .58;
}

.member-tour-status {
    min-height: 0;
    margin-top: 7px !important;
    color: #9fb0c4 !important;
    font-size: .75rem !important;
}

.member-tour-status:empty {
    display: none;
}

.tour-overview {
    display: grid;
    gap: 18px;
    margin: 24px 0 48px;
}

.tour-overview-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, .35fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid rgba(125, 199, 255, .22);
    border-radius: 8px;
    background: #0c1624;
}

.tour-overview-head h1 {
    margin: 4px 0 8px;
}

.tour-overview-head p {
    max-width: 760px;
    margin: 0;
}

.tour-overview-state {
    display: grid;
    gap: 5px;
    padding: 16px;
    border-left: 3px solid #e5bd64;
    background: #101d2d;
}

.tour-overview-state span,
.tour-overview-state small {
    color: #aebfd3;
}

.tour-overview-state strong {
    color: #ffffff;
    font-size: 1.15rem;
}

.tour-overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tour-overview-actions form {
    margin: 0;
}

.tour-topic-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tour-topic-list li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    min-height: 74px;
    padding: 13px 16px;
    border: 1px solid rgba(125, 199, 255, .14);
    border-radius: 8px;
    background: #0a121e;
}

.tour-topic-list li > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #38516f;
    border-radius: 50%;
    color: #bdd5ef;
    font-weight: 900;
}

.tour-topic-list li > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.tour-topic-list li strong {
    color: #f4f8ff;
}

.tour-topic-list li small {
    color: #aebfd3;
    line-height: 1.4;
}

.tour-topic-list li > b {
    color: #8295ab;
    font-size: .72rem;
    text-transform: uppercase;
}

.tour-topic-list li.is-current {
    border-color: #72b8ff;
    background: #0e1d2f;
}

.tour-topic-list li.is-current > span {
    border-color: #72b8ff;
    color: #ffffff;
}

.tour-topic-list li.is-current > b {
    color: #8dccff;
}

.tour-topic-list li.is-done > span {
    border-color: #4ecb78;
    color: #8df0aa;
}

.tour-topic-list li.is-done > b {
    color: #77df96;
}

@media (max-width: 760px) {
    .member-tour .member-tour-panel,
    .member-tour:not(.has-target) .member-tour-panel,
    .member-tour.has-target .member-tour-panel,
    .member-tour .member-tour-panel.is-left {
        right: 10px;
        top: auto;
        bottom: 10px;
        left: auto;
        width: min(340px, calc(100vw - 20px));
        max-height: min(44dvh, 360px);
        padding: 13px;
        transform: none;
    }

    .member-tour-panel h2 {
        font-size: 1.08rem;
    }

    .member-tour-focus {
        transition: none;
    }

    .tour-overview-head {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .tour-topic-list li {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .tour-topic-list li > b {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .member-tour-focus,
    .member-tour-progress i {
        transition: none;
    }
}
