.crew-walkthrough-anchor {
    display: contents;
}

.crew-walkthrough-suggestion-mark {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    pointer-events: none;
}

.crew-walkthrough {
    position: fixed;
    z-index: 1300;
    width: min(22rem, calc(100vw - 1.5rem));
    max-height: min(50vh, calc(100vh - 1.5rem));
    overflow: auto;
    padding: 0.85rem 1rem 1rem;
    background: color-mix(in srgb, var(--crew-accent, #1f6feb) 16%, var(--crew-bg-surface, #ffffff));
    color: var(--crew-text, #333333);
    border: 1px solid var(--crew-accent, #1f6feb);
    border-left: 4px solid var(--crew-accent, #1f6feb);
    border-radius: 8px;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--crew-accent, #1f6feb) 14%, transparent);
}

.crew-walkthrough--dock {
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    width: auto;
    margin-inline: auto;
}

.crew-walkthrough--dock-top {
    top: 12px;
    bottom: auto;
}

.crew-walkthrough-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.crew-walkthrough-position {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--crew-text-muted, #5c6570);
}

.crew-walkthrough-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--crew-accent, #1f6feb);
}

.crew-walkthrough-body {
    margin: 0;
    line-height: 1.45;
}

.crew-walkthrough-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.crew-walkthrough-actions button,
.crew-walkthrough-close {
    font: inherit;
    cursor: pointer;
    border-radius: 6px;
}

.crew-walkthrough-close {
    border: 0;
    background: transparent;
    color: inherit;
    min-width: 2rem;
    min-height: 2rem;
    line-height: 1;
}

.crew-walkthrough-back,
.crew-walkthrough-skip,
.crew-walkthrough-next {
    min-height: 2.25rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--crew-border, #e0e0e0);
    background: var(--crew-bg-surface, #ffffff);
    color: inherit;
}

.crew-walkthrough-next {
    margin-left: auto;
    background: var(--crew-figma-blue, #1B7AC3);
    border-color: var(--crew-figma-blue, #1B7AC3);
    color: var(--crew-text-on-brand, #ffffff);
}

.crew-walkthrough-back:disabled {
    opacity: 0.45;
    cursor: default;
}

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