.vg-menu-prelude {
    padding: 1.5rem 0 1rem;
    text-align: center;
}

.vg-menu-prelude__brush {
    display: block;
    margin: 0 auto 0.75rem;
    opacity: 0.75;
}

.vg-menu-prelude__head h1 {
    margin: 0;
    font-family: var(--vg-font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    color: var(--vg-moon);
}

.vg-menu-prelude__head p {
    margin: 0.35rem 0 1rem;
    /* font-style: italic; */
    color: var(--vg-muted);
}

.vg-search {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 360px;
    width: 100%;
    padding: 0.65rem 1.1rem;
    background: color-mix(in srgb, var(--vg-deep) 90%, transparent);
    border: 2px solid var(--vg-border);
    border-radius: var(--vg-r-pill);
}

.vg-search__lens {
    font-size: 1.2rem;
    color: var(--vg-gold);
}

.vg-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--vg-font-body);
    font-size: 1rem;
    font-style: italic;
    color: var(--vg-cream);
    outline: none;
}

.vg-constellation-strip {
    padding: 1rem 0;
    border-bottom: 1px solid var(--vg-border);
}

.vg-constellation-strip__rail {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.vg-constellation-strip__rail .vg-canvas--scroll {
    flex: 0 0 min(168px, 62vw);
}

/* Constellation nav */
.vg-constellation {
    position: relative;
    min-height: calc(120px + var(--vg-constellation-rows, 3) * 72px);
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
    background: color-mix(in srgb, var(--vg-deep) 88%, var(--vg-midnight));
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-r-xl);
    isolation: isolate;
}

.vg-constellation__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.vg-constellation__lines line {
    stroke: color-mix(in srgb, var(--vg-gold) 35%, transparent);
    stroke-width: 1;
    stroke-dasharray: 4 6;
}

.vg-constellation__stars {
    position: relative;
    min-height: calc(var(--vg-constellation-rows, 3) * 72px);
}

.vg-constellation__star {
    position: absolute;
    left: var(--star-x);
    top: var(--star-y);
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.45rem 0.65rem;
    background: transparent;
    border: none;
    color: var(--vg-muted);
    font-family: var(--vg-font-ui);
    font-size: 0.72rem;
    cursor: pointer;
    transition: var(--vg-transition);
    border-radius: var(--vg-r-pill);
}

.vg-constellation__star span {
    line-height: 1.3;
    text-align: center;
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vg-constellation__star img {
    filter: drop-shadow(0 0 4px var(--vg-moon));
    transition: var(--vg-transition);
    flex-shrink: 0;
}

.vg-constellation__star.is-active,
.vg-constellation__star:hover {
    color: var(--vg-moon);
    background: color-mix(in srgb, var(--vg-cobalt) 40%, transparent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--vg-gold) 20%, transparent);
}

.vg-constellation__star.is-active img,
.vg-constellation__star:hover img {
    transform: scale(1.25);
    filter: drop-shadow(0 0 12px var(--vg-gold));
}

/* Sectors */
.vg-sector {
    margin-bottom: 2.5rem;
    scroll-margin-top: calc(var(--vg-header-h) + var(--vg-safe-top, 0px) + var(--vg-constellation-h, 72px) + var(--vg-subnav-h, 0px) + 40px);
}

.vg-sector__head {
    text-align: center;
    margin-bottom: 1.25rem;
}

.vg-sector__head h2 {
    margin: 0.5rem 0 0;
    font-family: var(--vg-font-display);
    font-size: 1.5rem;
    color: var(--vg-moon);
}

.vg-sector__head p {
    margin: 0.35rem 0 0;
    font-style: italic;
    color: var(--vg-muted);
}

/* Secondary subcategory nav — compact strip under constellation */
.vg-subnav {
    position: relative;
    margin: 0 0 1.35rem;
    padding: 0.55rem 0.35rem 0.7rem;
    border-radius: var(--vg-r-xl);
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--vg-cobalt) 18%, var(--vg-deep)) 0%,
            color-mix(in srgb, var(--vg-deep) 88%, transparent) 100%
        );
    border: 1px solid color-mix(in srgb, var(--vg-gold) 22%, transparent);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--vg-moon) 8%, transparent);
    animation: vgSubnavIn 0.35s ease both;
}

.vg-subnav.is-hidden,
.vg-subnav[hidden] {
    display: none !important;
}

.vg-subnav.is-empty {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border-color: transparent;
    box-shadow: none;
    background: transparent;
}

.vg-subnav.is-empty::after {
    display: none;
}

.vg-subnav.is-empty .vg-subnav__rail {
    visibility: hidden;
}

.vg-subnav::after {
    content: '';
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 0.2rem;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--vg-gold) 55%, transparent) 25%,
        var(--vg-gold) 50%,
        color-mix(in srgb, var(--vg-gold) 55%, transparent) 75%,
        transparent
    );
    opacity: 0.55;
    pointer-events: none;
}

.vg-subnav__rail {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.vg-subnav__chip {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.48rem 0.95rem;
    border: 1px solid transparent;
    border-radius: var(--vg-r-pill);
    background: color-mix(in srgb, var(--vg-midnight) 55%, transparent);
    color: var(--vg-muted);
    font-family: var(--vg-font-ui);
    font-size: 0.84rem;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        color 0.28s ease,
        background 0.28s ease,
        box-shadow 0.28s ease;
}

.vg-subnav__chip img {
    width: 11px;
    height: 11px;
    opacity: 0.55;
    filter: drop-shadow(0 0 3px var(--vg-moon));
    transition: transform 0.28s ease, filter 0.28s ease, opacity 0.28s ease;
    flex-shrink: 0;
}

.vg-subnav__chip:hover {
    transform: translateY(-1px);
    color: var(--vg-moon);
    background: color-mix(in srgb, var(--vg-cobalt) 35%, transparent);
    border-color: color-mix(in srgb, var(--vg-gold) 28%, transparent);
}

.vg-subnav__chip:hover img {
    opacity: 0.9;
    transform: scale(1.15);
}

.vg-subnav__chip.is-active {
    color: var(--vg-moon);
    background: color-mix(in srgb, var(--vg-cobalt) 48%, transparent);
    border-color: color-mix(in srgb, var(--vg-gold) 55%, transparent);
    box-shadow:
        0 0 18px color-mix(in srgb, var(--vg-gold) 22%, transparent),
        inset 0 0 12px color-mix(in srgb, var(--vg-gold) 8%, transparent);
}

.vg-subnav__chip.is-active img {
    opacity: 1;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px var(--vg-gold));
}

@keyframes vgSubnavIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vg-sector__desc {
    margin: 0.35rem 0 0;
    font-style: italic;
    color: var(--vg-muted);
}

.vg-sector__rooms {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.vg-gallery-room {
    scroll-margin-top: calc(var(--vg-header-h) + var(--vg-safe-top, 0px) + var(--vg-constellation-h, 72px) + var(--vg-subnav-h, 0px) + 40px);
}

.vg-gallery-room.is-hidden {
    display: none !important;
}

.vg-gallery-room--separated {
    position: relative;
    padding: 1.15rem 1rem 1.25rem;
    border: 1px solid color-mix(in srgb, var(--vg-gold) 28%, transparent);
    border-radius: 4px;
    background:
        linear-gradient(
            165deg,
            color-mix(in srgb, var(--vg-deep) 82%, #2a2214) 0%,
            color-mix(in srgb, var(--vg-midnight) 92%, transparent) 100%
        );
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--vg-gold) 18%, transparent);
}

.vg-gallery-room--separated::before {
    content: '';
    position: absolute;
    inset-inline: 10%;
    top: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--vg-gold) 65%, transparent),
        transparent
    );
}

.vg-gallery-room__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin: 0 0 1rem;
    text-align: center;
}

.vg-gallery-room__label span {
    font-family: var(--vg-font-display);
    font-size: 1.1rem;
    color: var(--vg-gold);
}

.vg-gallery-room__label small {
    max-width: 36ch;
    font-style: italic;
    color: var(--vg-muted);
}

.vg-gallery-room__label--series span {
    position: relative;
    padding: 0 1.25rem;
}

.vg-gallery-room__label--series span::before,
.vg-gallery-room__label--series span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0.85rem;
    height: 1px;
    background: color-mix(in srgb, var(--vg-gold) 70%, transparent);
}

.vg-gallery-room__label--series span::before { right: 100%; }
.vg-gallery-room__label--series span::after { left: 100%; }

.vg-canvas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 0.65rem;
}

/* Painted canvas card */
.vg-canvas {
    position: relative;
    transition: var(--vg-transition);
}

.vg-canvas__frame {
    background: color-mix(in srgb, var(--vg-prussian) 70%, var(--vg-deep));
    border: 1.5px solid color-mix(in srgb, var(--vg-gold) 30%, transparent);
    padding: 0.35rem;
    border-radius: var(--vg-r-md);
    transition: var(--vg-transition);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vg-cream) 6%, transparent);
}

.vg-canvas:hover .vg-canvas__frame {
    border-color: var(--vg-gold);
    box-shadow: var(--flr-shadow-gold);
    transform: translateY(-3px);
}

.vg-canvas--featured .vg-canvas__frame {
    border-color: color-mix(in srgb, var(--vg-gold) 55%, var(--vg-moon));
}

.vg-canvas--sold .vg-canvas__frame { opacity: 0.7; }

.vg-ribbon {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 5;
    padding: 0.15rem 0.45rem;
    font-family: var(--vg-font-display);
    font-size: 0.62rem;
    font-style: italic;
    background: var(--vg-deep);
    border: 1px solid var(--vg-gold);
    color: var(--vg-gold);
    border-radius: var(--vg-r-pill);
}

.vg-ribbon--muted { border-color: var(--vg-muted); color: var(--vg-muted); }

.vg-ribbon--gold {
    background: color-mix(in srgb, var(--vg-gold) 18%, var(--vg-deep));
    border-color: var(--vg-gold);
    color: var(--vg-moon);
    box-shadow: 0 0 12px color-mix(in srgb, var(--vg-gold) 25%, transparent);
}

.vg-canvas__media {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 0.35rem;
    border-radius: var(--vg-r-sm);
    cursor: pointer;
    text-align: inherit;
    color: inherit;
}

.vg-canvas__media:focus-visible {
    outline: 2px solid var(--vg-gold);
    outline-offset: 2px;
}

.vg-canvas__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--vg-moon) 25%, transparent), transparent 65%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: inherit;
}

.vg-canvas:hover .vg-canvas__media::after {
    opacity: 1;
}

.vg-canvas__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.08) saturate(1.15) sepia(0.08);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.vg-canvas:hover .vg-canvas__media img {
    transform: scale(1.04);
    filter: contrast(1.1) saturate(1.15) brightness(1.05);
}

.vg-canvas--sold .vg-canvas__media img {
    filter: grayscale(0.7) brightness(0.65);
}

.vg-canvas__veil {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--vg-midnight) 55%, transparent);
    z-index: 3;
    pointer-events: none;
}

.vg-canvas__veil span {
    font-family: var(--vg-font-display);
    font-style: italic;
    color: var(--vg-muted);
    border: 2px solid var(--vg-muted);
    padding: 0.25rem 0.75rem;
    border-radius: var(--vg-r-pill);
    transform: rotate(-6deg);
}

.vg-canvas__body h3 {
    margin: 0.1rem 0 0;
    font-family: var(--vg-font-display);
    font-size: 0.82rem;
    line-height: 1.3;
}

.vg-canvas__cat {
    font-size: 0.65rem;
    font-style: italic;
    color: var(--vg-lavender);
}

.vg-canvas__desc {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    color: var(--vg-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vg-canvas__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-top: 0.6rem;
    padding-top: 0.55rem;
    border-top: 1px dashed var(--vg-border);
}

.vg-canvas__pricing {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
}



.vg-canvas__price {
    font-family: var(--vg-font-display);
    font-size: .7rem;
    font-weight: 700;
    color: var(--vg-gold);
    text-shadow: 0 0 10px color-mix(in srgb, var(--vg-gold) 35%, transparent);
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 0.28rem;
}

.vg-canvas__price small {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--vg-muted);
}

.vg-variants {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    margin-top: 0.55rem;
}

.vg-variant {
    width: 100%;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--vg-border) 88%, transparent);
    background: color-mix(in srgb, var(--vg-midnight) 94%, #101828);
    color: #d5deee;
    border-radius: 0.65rem;
    padding: 0.35rem 0.45rem 0.35rem 0.55rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.55rem;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.vg-variant__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.vg-variant__name {
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.2;
    color: inherit;
}

.vg-variant__price {
    font-size: 0.68rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--vg-gold) 60%, #a8b4c8);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.vg-variant__price small {
    font-size: 0.58rem;
    font-weight: 500;
    color: var(--vg-muted);
    margin-inline-start: 0.15rem;
}

.vg-variant .vg-qty {
    flex-shrink: 0;
}

.vg-qty--compact {
    gap: 0.05rem;
    padding: 0.04rem;
}

.vg-qty--compact .vg-qty__btn,
.vg-qty--compact.flr-qty .flr-qty__btn {
    width: 22px;
    height: 22px;
    font-size: 0.82rem;
}

.vg-qty--compact .vg-qty__val,
.vg-qty--compact.flr-qty .flr-qty__value {
    min-width: 0.9rem;
    font-size: 0.76rem;
}

.vg-variant.has-qty {
    background: color-mix(in srgb, var(--vg-gold) 16%, var(--vg-midnight));
    border-color: var(--vg-gold);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vg-gold) 28%, transparent);
    color: var(--vg-gold);
}

.vg-variant.has-qty .vg-variant__name {
    color: var(--vg-gold);
}

.vg-variant.has-qty .vg-variant__price {
    color: #f3e2a0;
}

.vg-canvas__actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.vg-canvas .vg-stroke-btn {
    min-height: 32px;
    padding: 0.3rem 0.55rem;
    font-size: 0.75rem;
}

.vg-canvas .vg-stroke-btn img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.vg-canvas--scroll .vg-canvas__media {
    aspect-ratio: 1;
    margin-bottom: 0.3rem;
}

.vg-canvas--scroll .vg-canvas__cat,
.vg-canvas--scroll .vg-canvas__desc {
    display: none;
}

.vg-canvas--scroll .vg-variants {
    gap: 0.22rem;
    margin-top: 0.4rem;
}

.vg-canvas--scroll .vg-variant {
    min-height: 2.3rem;
    padding: 0.28rem 0.35rem 0.28rem 0.45rem;
    border-radius: 0.55rem;
    gap: 0.4rem;
}

.vg-canvas--scroll .vg-variant__name { font-size: 0.72rem; }
.vg-canvas--scroll .vg-variant__price { font-size: 0.62rem; }
.vg-canvas--scroll .vg-qty--compact .vg-qty__btn,
.vg-canvas--scroll .vg-qty--compact.flr-qty .flr-qty__btn {
    width: 20px;
    height: 20px;
}

.vg-canvas--scroll .vg-canvas__frame {
    padding: 0.35rem;
}

.vg-qty, .flr-qty.vg-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    border: 1px solid var(--vg-border);
    background: var(--vg-midnight);
    padding: 0.05rem;
    border-radius: var(--vg-r-pill);
}

.vg-qty__btn, .flr-qty__btn.vg-qty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: none;
    background: color-mix(in srgb, var(--vg-cobalt) 50%, transparent);
    color: var(--vg-moon);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: var(--vg-transition);
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
}

.vg-qty__btn:hover { background: var(--vg-gold); color: var(--vg-midnight); }

.vg-qty__val, .flr-qty__value.vg-qty__val {
    min-width: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--vg-moon);
}

.vg-empty-canvas {
    text-align: center;
    padding: 3rem 1rem;
    font-style: italic;
    color: var(--vg-muted);
}

.vg-empty-canvas img { margin: 0 auto 1rem; opacity: 0.7; }

[data-item-card].is-hidden,
.vg-sector.is-hidden { display: none !important; }

/* Gallery modal */
.flr-modal.vg-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 4500;
    pointer-events: none;
}

.flr-modal.vg-gallery-modal.is-open { pointer-events: auto; }

.vg-gallery-modal__veil {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.92);
    opacity: 0;
    transition: opacity var(--vg-transition);
}

.flr-modal.is-open .vg-gallery-modal__veil { opacity: 1; }

.vg-gallery-modal__easel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(480px, 92vw);
    opacity: 0;
    transition: opacity var(--vg-transition), transform var(--vg-transition);
}

.flr-modal.is-open .vg-gallery-modal__easel {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.vg-gallery-modal__close {
    position: absolute;
    top: -2.5rem;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--vg-gold);
    background: var(--vg-deep);
    color: var(--vg-moon);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
}

.vg-gallery-modal__canvas {
    padding: 12px;
    background: linear-gradient(135deg, var(--vg-burnt), var(--vg-gold));
    border-radius: var(--vg-r-xl);
}

.vg-gallery-modal__canvas img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--vg-r-md);
    filter: contrast(1.08) saturate(1.15);
}

.vg-gallery-modal__plaque {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--vg-border);
    background: var(--vg-deep);
    border-radius: var(--vg-r-lg);
}

.vg-gallery-modal__plaque h3 {
    margin: 0 0 0.35rem;
    font-family: var(--vg-font-display);
    color: var(--vg-moon);
}

.vg-gallery-modal__plaque p {
    margin: 0 0 0.5rem;
    /* font-style: italic; */
    color: var(--vg-muted);
}

.vg-gallery-modal__price {
    font-family: var(--vg-font-display);
    font-size: 1.15rem;
    color: var(--vg-gold);
}

.vg-page-menu .vg-main {
    padding-bottom: calc(var(--vg-orbit-h) + 5rem + var(--vg-safe-bottom));
}

/* Menu page: keep sky subtle, not over UI */
.vg-page-menu .vg-sky__moon,
.vg-page-menu .vg-sky__decor,
.vg-page-menu .vg-sky__painting {
    display: none;
}

.vg-constellation-strip {
    overflow: hidden;
}

.vg-constellation-strip__rail {
    scroll-snap-type: x mandatory;
}

.vg-constellation-strip__rail .vg-canvas--scroll {
    scroll-snap-align: start;
}

@media (max-width: 767px) {
    .vg-menu-prelude {
        padding: 0.75rem 0 0.5rem;
    }

    .vg-menu-prelude__brush {
        width: 96px;
        margin-bottom: 0.5rem;
    }

    .vg-menu-prelude__head h1 {
        font-size: 1.45rem;
    }

    .vg-menu-prelude__head p {
        margin-bottom: 0.65rem;
        font-size: 0.9rem;
    }

    .vg-constellation {
        position: sticky;
        top: calc(var(--vg-header-h) + var(--vg-safe-top));
        z-index: 60;
        min-height: auto;
        margin-bottom: 0.55rem;
        padding: 0.65rem 0;
        border-radius: var(--vg-r-lg);
    }

    .vg-subnav {
        position: sticky;
        top: calc(var(--vg-header-h) + var(--vg-safe-top) + var(--vg-constellation-h, 3.15rem));
        z-index: 59;
        margin: 0 0 0.85rem;
        padding: 0.4rem 0 0.55rem;
        border-radius: var(--vg-r-lg);
        background: color-mix(in srgb, var(--vg-deep) 94%, transparent);
        backdrop-filter: blur(10px);
        /* Stable slot height so show/hide of chips doesn't jump the page */
        min-height: 2.75rem;
    }

    .vg-subnav.is-hidden,
    .vg-subnav[hidden] {
        /* On mobile keep the slot; JS uses .is-empty instead of display:none */
        display: block !important;
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
        border-color: transparent;
        box-shadow: none;
        background: transparent;
    }

    .vg-subnav.is-empty {
        visibility: hidden;
    }

    .vg-subnav::after {
        left: 8%;
        right: 8%;
        bottom: 0.15rem;
    }

    .vg-subnav__rail {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.4rem;
        overflow-x: auto;
        padding: 0.35rem 0.65rem 0.35rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .vg-subnav__rail::-webkit-scrollbar {
        display: none;
    }

    .vg-subnav__chip {
        flex: 0 0 auto;
        scroll-snap-align: center;
        font-size: 0.76rem;
        padding: 0.38rem 0.72rem;
        gap: 0.3rem;
    }

    .vg-subnav__chip img {
        width: 10px;
        height: 10px;
    }

    .vg-constellation__lines {
        display: none;
    }

    .vg-constellation__stars {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.45rem;
        overflow-x: auto;
        padding: 0.15rem 0.65rem 0.35rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        min-height: auto;
    }

    .vg-constellation__stars::-webkit-scrollbar {
        display: none;
    }

    .vg-constellation__star {
        position: relative;
        left: auto !important;
        top: auto !important;
        transform: none;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 0.35rem;
        max-width: none;
        white-space: nowrap;
        scroll-snap-align: center;
        font-size: 0.78rem;
        padding: 0.4rem 0.75rem;
    }

    .vg-constellation__star span {
        max-width: none;
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        overflow: visible;
        text-overflow: unset;
        white-space: nowrap;
    }

    .vg-sector,
    .vg-gallery-room {
        scroll-margin-top: calc(var(--vg-header-h) + var(--vg-safe-top, 0px) + var(--vg-constellation-h, 56px) + var(--vg-subnav-h, 0px) + 40px);
    }

    .vg-canvas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .vg-canvas__frame {
        padding: 0.35rem;
    }

    .vg-canvas__media {
        aspect-ratio: 1;
        margin-bottom: 0.35rem;
    }

    .vg-canvas__cat {
        display: none;
    }

    .vg-canvas__body h3 {
        font-size: 0.82rem;
    }

    .vg-canvas__desc {
        font-size: 0.72rem;
        -webkit-line-clamp: 1;
    }

    .vg-canvas__foot {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        margin-top: 0.35rem;
        padding-top: 0.3rem;
    }

    .vg-canvas__price {
        font-size: 0.78rem;
    }

    .vg-canvas .vg-stroke-btn {
        min-height: 28px;
        padding: 0.2rem 0.4rem;
    }

    .vg-canvas .vg-stroke-btn img {
        width: 20px;
    }

    .vg-canvas__actions {
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .vg-constellation {
        min-height: 240px;
    }

    .vg-constellation__star span {
        max-width: 5.5rem;
    }
}

@media (max-width: 600px) {
    .vg-constellation-strip__rail .vg-canvas--scroll {
        flex: 0 0 min(168px, 62vw);
    }
}

@media (min-width: 1200px) {
    .vg-canvas-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}
