.qv-premium {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: #D4A017;
    color: #1c1403;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.qv-docs {
    border: 0;
    border-radius: 1rem;
    padding: 1.5rem;
    width: min(36rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    overflow: auto;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.qv-docs::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #F47B20;
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 60;
    pointer-events: none;
}

#loading.is-active {
    animation: qv-load 0.9s ease-in-out infinite;
}

@keyframes qv-load {
    0% { transform: scaleX(0.05); opacity: 1; }
    70% { transform: scaleX(0.85); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
    #loading.is-active {
        animation: none;
        transform: scaleX(1);
    }
}

@media print {
    header,
    footer,
    #loading,
    .no-print {
        display: none !important;
    }

    body,
    #app {
        background: #fff !important;
    }

    .qv-card {
        box-shadow: none !important;
    }
}

.qv-brand-link {
    min-width: 0;
}

.qv-mark {
    flex-shrink: 0;
}

.qv-brand {
    display: block;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#page {
    min-width: 0;
}

#page img,
.qv-qr svg {
    max-width: 100%;
}

.qv-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.qv-stack > * + * {
    margin-top: 0.5rem;
}

.qv-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.qv-qr svg {
    width: 10rem;
    height: 10rem;
}

@media (max-width: 400px) {
    .qv-qr svg {
        width: 8rem;
        height: 8rem;
    }
}

.qv-admin-image {
    margin-top: 0.5rem;
    height: 6rem;
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.qv-pre {
    white-space: pre-line;
}

.qv-market-sizer,
.qv-market-item {
    width: 100%;
}

.qv-market-item {
    box-sizing: border-box;
    padding: 0.5rem;
}

.qv-market-photo {
    display: block;
    width: 100%;
    height: 168px;
    object-fit: cover;
    object-position: center;
    background: #e2e8f0;
}

.qv-market-photo-lg {
    height: 240px;
}

.qv-market-toolbar {
    min-width: 0;
    max-width: 100%;
}

.qv-filter-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    padding-bottom: 0.25rem;
}

.qv-filter-scroll > a {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
}

@media (min-width: 640px) {
    .qv-market-sizer,
    .qv-market-item {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .qv-market-sizer,
    .qv-market-item {
        width: 33.3333%;
    }
}
