.bf-demo-hub {
    display: grid;
    gap: 1.25rem;
}

.bf-demo-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(var(--app-primary-rgb, 17, 24, 22), 0.12);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(var(--app-secondary-rgb, 79, 209, 165), 0.14), transparent 38%),
        color-mix(in srgb, var(--bs-body-bg, #fff) 92%, #fff);
}

.bf-demo-eyebrow,
.bf-demo-card__body > span {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    color: var(--app-primary, #111816);
    background: rgba(var(--app-secondary-rgb, 79, 209, 165), 0.16);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.bf-demo-hero h1 {
    max-width: 860px;
    margin: 0.75rem 0 0.65rem;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.bf-demo-hero p,
.bf-demo-card p,
.bf-demo-note p {
    margin: 0;
    color: color-mix(in srgb, currentColor 68%, transparent);
}

.bf-demo-reset {
    flex: 0 0 auto;
}

.bf-demo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.bf-demo-strip span {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    border: 1px solid rgba(var(--app-primary-rgb, 17, 24, 22), 0.12);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.58);
}

.bf-demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.bf-demo-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
    min-height: 310px;
    padding: 1.15rem;
    border: 1px solid rgba(var(--app-primary-rgb, 17, 24, 22), 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.bf-demo-card.is-complete {
    border-color: rgba(var(--app-secondary-rgb, 79, 209, 165), 0.45);
}

.bf-demo-card__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    color: #fff;
    background: var(--app-primary, #111816);
    font-size: 1.25rem;
}

.bf-demo-card__body {
    display: grid;
    gap: 0.7rem;
    align-content: start;
}

.bf-demo-card h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.bf-demo-card em {
    color: color-mix(in srgb, var(--app-primary, #111816) 80%, transparent);
    font-style: normal;
    font-weight: 700;
}

.bf-demo-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.bf-demo-state {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 800;
}

.bf-demo-note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid rgba(var(--app-primary-rgb, 17, 24, 22), 0.12);
    border-radius: 14px;
    background: rgba(var(--app-secondary-rgb, 79, 209, 165), 0.1);
}

.bf-demo-note i {
    font-size: 1.15rem;
}

.bf-demo-spotlight {
    position: fixed;
    z-index: 2147482500;
    border: 2px solid var(--app-secondary, #4fd1a5);
    border-radius: 10px;
    box-shadow:
        0 0 0 9999px rgba(2, 6, 23, 0.36),
        0 12px 44px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    transition: 0.18s ease;
}

.bf-demo-spotlight.is-focus {
    box-shadow:
        0 0 0 9999px rgba(2, 6, 23, 0.18),
        0 10px 34px rgba(0, 0, 0, 0.14);
}

.bf-demo-tour {
    position: fixed;
    z-index: 2147482600;
    box-sizing: border-box;
    width: min(366px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 12px;
    padding: 0.55rem;
    color: #12213a;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
}

.bf-demo-tour * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.bf-demo-tour.is-dragging {
    cursor: grabbing;
    opacity: 0.92;
    user-select: none;
}

.bf-demo-tour__bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.3rem;
    border-radius: 9px;
    padding: 0.28rem 0.34rem;
    cursor: grab;
}

.bf-demo-tour__grip {
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    color: #64748b;
    background: rgba(248, 250, 252, 0.86);
    flex: 0 0 auto;
}

.bf-demo-tour__title {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
}

.bf-demo-tour__title strong,
.bf-demo-tour__title small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bf-demo-tour__title strong {
    color: #12213a;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.bf-demo-tour__title small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.bf-demo-tour__icon-btn {
    display: inline-grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 9px;
    color: #12213a;
    background: rgba(248, 250, 252, 0.9);
    flex: 0 0 auto;
}

.bf-demo-tour__modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.28rem;
    margin: 0.28rem 0.18rem 0.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 0.24rem;
    background: rgba(241, 245, 249, 0.9);
}

.bf-demo-tour__modes button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-height: 1.8rem;
    border: 0;
    border-radius: 8px;
    color: #64748b;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 900;
}

.bf-demo-tour__modes button.is-active {
    color: #062219;
    background: var(--app-secondary, #4fd1a5);
    box-shadow: 0 5px 14px rgba(var(--app-secondary-rgb, 79, 209, 165), 0.22);
}

.bf-demo-tour__runmodes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.28rem;
    margin: 0 0.18rem 0.5rem;
}

.bf-demo-tour__runmodes button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-width: 0;
    min-height: 1.78rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    padding: 0.28rem 0.35rem;
    color: #475569;
    background: rgba(248, 250, 252, 0.86);
    font-size: 0.68rem;
    font-weight: 900;
}

.bf-demo-tour__runmodes span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bf-demo-tour__runmodes button.is-active {
    color: #062219;
    border-color: rgba(var(--app-secondary-rgb, 79, 209, 165), 0.54);
    background: rgba(var(--app-secondary-rgb, 79, 209, 165), 0.18);
}

.bf-demo-tour__acts {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(2.35rem, auto);
    gap: 0.25rem;
    margin: 0 0.18rem 0.45rem;
    padding-bottom: 0.08rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.bf-demo-tour__acts button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.34rem;
    min-width: 0;
    min-height: 1.85rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    padding: 0.2rem 0.48rem 0.2rem 0.26rem;
    color: #64748b;
    background: rgba(248, 250, 252, 0.88);
    font-size: 0.68rem;
    font-weight: 900;
    white-space: nowrap;
}

.bf-demo-tour__acts span {
    display: inline-grid;
    place-items: center;
    width: 1.34rem;
    height: 1.34rem;
    border-radius: 999px;
    color: #475569;
    background: rgba(226, 232, 240, 0.92);
    flex: 0 0 auto;
}

.bf-demo-tour__acts em {
    max-width: 6.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: normal;
}

.bf-demo-tour__acts button.is-complete {
    color: #065f46;
    border-color: rgba(var(--app-secondary-rgb, 79, 209, 165), 0.34);
    background: rgba(var(--app-secondary-rgb, 79, 209, 165), 0.1);
}

.bf-demo-tour__acts button.is-complete span,
.bf-demo-tour__acts button.is-current span {
    color: #062219;
    background: var(--app-secondary, #4fd1a5);
}

.bf-demo-tour__acts button.is-current {
    color: #0f172a;
    border-color: rgba(var(--app-secondary-rgb, 79, 209, 165), 0.68);
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.bf-demo-tour__scenario {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    margin: 0.45rem 0.18rem 0;
}

.bf-demo-tour__scenario span {
    min-width: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 0.44rem 0.5rem;
    background: rgba(248, 250, 252, 0.76);
}

.bf-demo-tour__scenario strong {
    display: block;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.bf-demo-tour__scenario em {
    display: block;
    margin-top: 0.18rem;
    overflow: hidden;
    color: #12213a;
    font-size: 0.73rem;
    font-style: normal;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.bf-demo-tour__body {
    display: grid;
    gap: 0.35rem;
    margin: 0.35rem 0.18rem 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 0.65rem;
}

.bf-demo-tour__body h2 {
    margin: 0;
    color: #0f172a;
    font-size: 0.98rem;
    line-height: 1.22;
    letter-spacing: 0;
}

.bf-demo-tour__body p {
    margin: 0;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.42;
}

.bf-demo-tour__detail-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    width: 100%;
    min-height: 2rem;
    margin-top: 0.35rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 10px;
    padding: 0.42rem 0.58rem;
    color: #12213a;
    background: rgba(248, 250, 252, 0.88);
    font-size: 0.76rem;
    font-weight: 900;
    text-align: left;
}

.bf-demo-tour__detail-toggle span {
    flex: 1 1 auto;
}

.bf-demo-tour__details {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.45rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 0.55rem;
    background: rgba(248, 250, 252, 0.74);
}

.bf-demo-tour__detail {
    display: grid;
    gap: 0.16rem;
}

.bf-demo-tour__detail strong {
    color: #0f172a;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.bf-demo-tour__detail span {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.38;
}

.bf-demo-tour__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    margin: 0.65rem 0.18rem 0.1rem;
}

.bf-demo-tour__actions button,
.bf-demo-tour__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 2rem;
    min-height: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
    color: #12213a;
    background: rgba(248, 250, 252, 0.95);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.bf-demo-tour__actions button:hover,
.bf-demo-tour__actions a:hover {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.2);
}

.bf-demo-tour__actions .is-icon {
    width: 2rem;
    padding-inline: 0;
}

.bf-demo-tour__actions .is-icon span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.bf-demo-tour__actions .is-fill {
    color: #064e3b;
    border-color: rgba(var(--app-secondary-rgb, 79, 209, 165), 0.45);
    background: rgba(var(--app-secondary-rgb, 79, 209, 165), 0.14);
}

.bf-demo-tour__actions .is-primary {
    color: #062219;
    border-color: var(--app-secondary, #4fd1a5);
    background: var(--app-secondary, #4fd1a5);
}

.bf-demo-tour__actions .is-danger {
    color: #9f1239;
    border-color: rgba(244, 63, 94, 0.26);
    background: rgba(255, 241, 242, 0.82);
}

.bf-demo-tour__actions .is-disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.bf-demo-tour__actions .is-busy {
    opacity: 0.68;
    pointer-events: none;
}

.bf-demo-tour--focus {
    width: min(326px, calc(100vw - 2rem));
}

.bf-demo-tour--focus .bf-demo-tour__body p {
    display: none;
}

.bf-demo-tour--focus .bf-demo-tour__detail-toggle,
.bf-demo-tour--focus .bf-demo-tour__details {
    display: none;
}

.bf-demo-tour--focus .bf-demo-tour__body h2 {
    font-size: 0.9rem;
}

.bf-demo-tour--mini {
    width: min(318px, calc(100vw - 2rem));
}

.bf-demo-tour--mini .bf-demo-tour__modes,
.bf-demo-tour--mini .bf-demo-tour__acts,
.bf-demo-tour--mini .bf-demo-tour__body {
    display: none;
}

.bf-demo-tour--mini .bf-demo-tour__actions {
    margin-top: 0.35rem;
}

.bf-demo-tour--mini .bf-demo-tour__actions button,
.bf-demo-tour--mini .bf-demo-tour__actions a {
    min-height: 1.9rem;
}

.bf-demo-tour--mini .bf-demo-tour__actions .is-primary {
    padding-inline: 0.75rem;
}

.bf-demo-missing {
    color: #92400e;
}

html[data-bs-theme="dark"] .bf-demo-hero,
html[data-bs-theme="dark"] .bf-demo-card,
html[data-bs-theme="dark"] .bf-demo-strip span,
html[data-bs-theme="dark"] .bf-demo-note {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.82);
}

html[data-bs-theme="dark"] .bf-demo-tour {
    border-color: rgba(148, 163, 184, 0.24);
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.94);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

html[data-bs-theme="dark"] .bf-demo-tour__grip,
html[data-bs-theme="dark"] .bf-demo-tour__icon-btn,
html[data-bs-theme="dark"] .bf-demo-tour__detail-toggle,
html[data-bs-theme="dark"] .bf-demo-tour__actions button,
html[data-bs-theme="dark"] .bf-demo-tour__actions a {
    border-color: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="dark"] .bf-demo-tour__title strong,
html[data-bs-theme="dark"] .bf-demo-tour__body h2,
html[data-bs-theme="dark"] .bf-demo-tour__detail strong {
    color: #f8fafc;
}

html[data-bs-theme="dark"] .bf-demo-tour__title small,
html[data-bs-theme="dark"] .bf-demo-tour__body p,
html[data-bs-theme="dark"] .bf-demo-tour__detail span {
    color: #cbd5e1;
}

html[data-bs-theme="dark"] .bf-demo-tour__modes {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(2, 6, 23, 0.38);
}

html[data-bs-theme="dark"] .bf-demo-tour__modes button {
    color: #cbd5e1;
}

html[data-bs-theme="dark"] .bf-demo-tour__runmodes button {
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
}

html[data-bs-theme="dark"] .bf-demo-tour__runmodes button.is-active {
    color: #f8fafc;
    background: rgba(var(--app-secondary-rgb, 79, 209, 165), 0.2);
}

html[data-bs-theme="dark"] .bf-demo-tour__acts button {
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
}

html[data-bs-theme="dark"] .bf-demo-tour__acts button.is-current {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
}

html[data-bs-theme="dark"] .bf-demo-tour__details {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(2, 6, 23, 0.26);
}

html[data-bs-theme="dark"] .bf-demo-tour__actions .is-danger {
    color: #fecdd3;
    border-color: rgba(244, 63, 94, 0.45);
    background: rgba(127, 29, 29, 0.2);
}

@media (max-width: 767.98px) {
    .bf-demo-hero,
    .bf-demo-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .bf-demo-tour__actions {
        justify-content: stretch;
    }

    .bf-demo-tour__actions button,
    .bf-demo-tour__actions a {
        flex: 1 1 auto;
        justify-content: center;
    }

    .bf-demo-tour__actions .is-icon {
        flex: 0 0 2rem;
    }
}
