body.hm-ls-navigator-open {
    overscroll-behavior: none;
}

.hm-ls-open-navigator-btn {
    white-space: nowrap;
    min-height: 34px;
}

.hm-ls-navigator-readiness {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.3rem 0.58rem;
    color: #6f4f00;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    background: #fff7d6;
    border: 1px solid #ead17a;
    border-radius: 8px;
}

.hm-ls-navigator-readiness.hidden {
    display: none !important;
}

.hm-ls-navigator-readiness.is-checking {
    color: #174f9d;
    background: #edf4ff;
    border-color: #a9c8f6;
}

.hm-ls-navigator-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    color: #17233a;
    background:
        radial-gradient(circle at 12% 0%, rgba(44, 111, 255, 0.13), transparent 34rem),
        #f4f7fc;
}

.hm-ls-navigator-overlay.hidden {
    display: none !important;
}

.hm-ls-navigator-header {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(0.8rem, 2vw, 1.35rem) clamp(0.85rem, 2.5vw, 1.75rem) 0.7rem;
    color: #fff;
    background: linear-gradient(135deg, #153b87, #2467df 65%, #4389ff);
    box-shadow: 0 6px 24px rgba(15, 45, 101, 0.22);
}

.hm-ls-navigator-heading {
    min-width: 0;
}

.hm-ls-navigator-kicker {
    margin-bottom: 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.78;
}

.hm-ls-navigator-heading h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.05;
}

.hm-ls-navigator-heading p {
    margin: 0.35rem 0 0;
    max-width: 62rem;
    font-size: clamp(0.82rem, 1.7vw, 1rem);
    line-height: 1.35;
    opacity: 0.9;
}

.hm-ls-navigator-close {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 88px;
    min-height: 42px;
    justify-content: center;
    color: #153b87;
    font-weight: 800;
    border: 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
}

.hm-ls-navigator-statusbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 48px;
    padding: 0.55rem clamp(0.85rem, 2.5vw, 1.75rem);
    background: #fff;
    border-bottom: 1px solid #d8e1f0;
}

.hm-ls-navigator-status {
    min-width: 0;
    font-size: 0.9rem;
    text-align: right;
}

.hm-ls-navigator-status.is-primary {
    color: #1454c4;
    font-weight: 700;
}

.hm-ls-navigator-status.is-warning {
    color: #916000;
    font-weight: 700;
}

.hm-ls-navigator-status.is-danger {
    color: #b42335;
    font-weight: 700;
}

.hm-ls-navigator-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: clamp(0.75rem, 2vw, 1.35rem);
}

.hm-ls-navigator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr));
    align-items: start;
    gap: clamp(0.75rem, 1.7vw, 1.25rem);
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

.hm-ls-navigator-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    color: #17233a;
    text-align: left;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(30, 55, 101, 0.13);
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.hm-ls-navigator-card:not(:disabled):hover,
.hm-ls-navigator-card:not(:disabled):focus-visible {
    z-index: 1;
    transform: translateY(-2px);
    border-color: #2872ef;
    box-shadow: 0 10px 26px rgba(30, 78, 161, 0.22);
    outline: none;
}

.hm-ls-navigator-card.is-current {
    border-color: #24a366;
    box-shadow: 0 0 0 3px rgba(36, 163, 102, 0.16), 0 6px 20px rgba(30, 55, 101, 0.13);
    opacity: 1;
}

.hm-ls-navigator-card.is-confirming {
    border-color: #2872ef;
    box-shadow: 0 0 0 4px rgba(40, 114, 239, 0.2), 0 10px 26px rgba(30, 78, 161, 0.22);
}

.hm-ls-navigator-thumbnail {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #e8edf6, #f7f9fc);
    border-bottom: 1px solid #e2e8f2;
}

.hm-ls-navigator-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.hm-ls-navigator-skeleton,
.hm-ls-navigator-preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    height: 100%;
    padding: 1rem;
    color: #6b7890;
    font-size: 0.86rem;
    text-align: center;
}

.hm-ls-navigator-preview-error {
    color: #984052;
    background: #fff4f6;
}

.hm-ls-navigator-retry {
    padding: 0.25rem 0.65rem;
    color: #185dc4;
    font-weight: 800;
    background: #fff;
    border: 1px solid #9bbcf0;
    border-radius: 999px;
}

.hm-ls-navigator-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    min-height: 48px;
    padding: 0.65rem 0.8rem;
}

.hm-ls-navigator-card-footer strong {
    font-size: 1rem;
}

.hm-ls-navigator-current-pill,
.hm-ls-navigator-go-label {
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 999px;
}

.hm-ls-navigator-current-pill {
    color: #08713e;
    background: #dcf7e9;
}

.hm-ls-navigator-go-label {
    color: #185dc4;
    background: #e8f0ff;
}

@media (max-width: 560px) {
    .hm-ls-navigator-header {
        align-items: center;
    }

    .hm-ls-navigator-heading p {
        display: none;
    }

    .hm-ls-navigator-close {
        min-width: 44px;
    }

    .hm-ls-navigator-close span {
        display: none;
    }

    .hm-ls-navigator-statusbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.15rem;
    }

    .hm-ls-navigator-status {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-ls-navigator-card {
        transition: none;
    }
}
