.guided-basics-root {
    --guided-green: #287a4b;
    --guided-green-dark: #185c36;
    --guided-green-soft: #eaf5ee;
    --guided-ink: #17211b;
    --guided-muted: #637069;
    --guided-line: #dfe7e1;
    position: fixed;
    inset: 0;
    z-index: 2200;
    pointer-events: none;
}

.guided-basics-root[hidden] {
    display: none !important;
}

.guided-basics-spotlight {
    position: fixed;
    border: 2px solid #6bc48a;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(10, 23, 15, 0.68), 0 0 0 5px rgba(107, 196, 138, 0.2);
    transition: left 180ms ease, top 180ms ease, width 180ms ease, height 180ms ease;
}

.guided-basics-popover {
    position: fixed;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 22px;
    color: var(--guided-ink);
    background: #fff;
    border: 1px solid var(--guided-line);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(9, 29, 17, 0.28);
    pointer-events: auto;
}

.guided-basics-popover.is-centered {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.guided-basics-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: var(--guided-green);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.guided-basics-popover h2 {
    margin: 0 0 10px;
    color: var(--guided-ink);
    font-size: 1.3rem;
    line-height: 1.2;
}

.guided-basics-popover p {
    margin: 0;
    color: var(--guided-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.guided-basics-popover h2:focus {
    outline: none;
}

.guided-basics-status {
    margin-top: 14px !important;
    padding: 10px 12px;
    color: var(--guided-green-dark) !important;
    background: var(--guided-green-soft);
    border-radius: 9px;
    font-size: 0.82rem !important;
}

.guided-basics-progress-track {
    height: 4px;
    margin: 18px 0 14px;
    overflow: hidden;
    background: var(--guided-line);
    border-radius: 999px;
}

.guided-basics-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--guided-green);
    border-radius: inherit;
    transition: width 180ms ease;
}

.guided-basics-footer,
.guided-basics-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guided-basics-footer {
    justify-content: space-between;
}

.guided-basics-progress {
    color: var(--guided-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

.guided-basics-footer button {
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid var(--guided-line);
    border-radius: 9px;
    color: var(--guided-ink);
    background: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.guided-basics-footer button:hover,
.guided-basics-footer button:focus-visible {
    border-color: var(--guided-green);
    outline: 3px solid rgba(40, 122, 75, 0.16);
}

.guided-basics-footer .guided-basics-exit {
    padding-inline: 0;
    color: var(--guided-muted);
    background: transparent;
    border-color: transparent;
}

.guided-basics-footer .guided-basics-next {
    min-width: 76px;
    color: #fff;
    background: var(--guided-green);
    border-color: var(--guided-green);
}

.guided-basics-footer .guided-basics-next:hover,
.guided-basics-footer .guided-basics-next:focus-visible {
    background: var(--guided-green-dark);
}

.guided-basics-active-target {
    outline: 3px solid rgba(107, 196, 138, 0.9) !important;
    outline-offset: 4px !important;
}

@media (max-width: 767.98px), (hover: none) and (pointer: coarse) and (max-height: 520px) {
    .guided-basics-popover {
        left: 12px;
        right: 12px;
        width: auto;
        max-height: min(42dvh, 420px);
        transform: none;
    }

    .guided-basics-popover.dock-top {
        top: calc(12px + env(safe-area-inset-top));
        bottom: auto;
    }

    .guided-basics-popover.dock-bottom {
        top: auto;
        bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .guided-basics-popover.is-centered {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .guided-basics-footer {
        flex-wrap: wrap;
    }

    .guided-basics-progress {
        order: -1;
        width: 100%;
    }
}

@media (hover: none) and (pointer: coarse) and (max-height: 520px) {
    .guided-basics-popover {
        max-height: calc(100dvh - 20px);
        padding: 14px 16px;
    }

    .guided-basics-popover h2 {
        font-size: 1.05rem;
    }

    .guided-basics-popover p {
        font-size: .82rem;
        line-height: 1.4;
    }

    .guided-basics-progress-track {
        margin-block: 12px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guided-basics-spotlight,
    .guided-basics-progress-track span {
        transition: none;
    }
}
