/*
 | China Kanta storefront — the home, listing and product-card layer.
 |
 | Hand-written CSS, not Tailwind: the production host has no node/npm, so public/build is a
 | committed bundle and any new utility class would simply not exist there. Everything this
 | file needs is declared here under ck- names, and the class names avoid the ck-mnav /
 | ck-cat-sheet / ck-quick / ck-tabbar sets that mobile-nav-v5.css already owns.
 */

.ck-home {
    --ck-brand: #e62129;
    --ck-brand-dark: #c9161e;
    --ck-amber: #ff7417;
    --ck-ink: #171717;
    --ck-mute: #6b7280;
    --ck-tint: #f6f6f7;
    --ck-line: #e5e7eb;
    --ck-radius: 14px;
    --ck-gutter: 14px;

    color: var(--ck-ink);
    overflow-x: clip;
}

/* ------------------------------------------------------------------ sections */

.ck-section {
    max-width: 1440px;
    margin-inline: auto;
    padding: 18px var(--ck-gutter) 4px;
}

.ck-section--tight {
    padding-top: 10px;
    padding-bottom: 0;
}

.ck-section.is-tinted {
    background: var(--ck-tint);
    max-width: none;
    padding-inline: 0;
}

.ck-section.is-tinted > * {
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: var(--ck-gutter);
}

.ck-section.is-ink {
    background: #101012;
    color: #fff;
    max-width: none;
    padding-inline: 0;
    padding-bottom: 22px;
}

.ck-section.is-ink > * {
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: var(--ck-gutter);
}

@media (min-width: 768px) {
    .ck-section {
        --ck-gutter: 22px;
        padding-top: 26px;
    }
}

/* ------------------------------------------------------------------ heads */

.ck-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ck-head-text {
    min-width: 0;
}

.ck-head-kicker {
    margin: 0 0 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ck-mute);
}

.ck-head--dark .ck-head-kicker {
    color: #9ca3af;
}

.ck-head-title {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.ck-head--dark .ck-head-title {
    color: #fff;
}

.ck-head-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--ck-brand);
    white-space: nowrap;
}

.ck-head-more:active {
    opacity: 0.6;
}

.ck-head--dark .ck-head-more {
    color: #fff;
}

.ck-head-arrow {
    width: 14px;
    height: 14px;
}

@media (min-width: 768px) {
    .ck-head-title {
        font-size: 23px;
    }
}

/* ------------------------------------------------------------------ promo tabs */

.ck-promos {
    border-block: 1px solid var(--ck-line);
    background: #fff;
}

.ck-promos-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 9px 0;
    scroll-snap-type: x proximity;
}

.ck-promo {
    flex: none;
    scroll-snap-align: start;
    padding: 7px 14px;
    border: 1px solid var(--ck-line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.ck-promo.is-active {
    border-color: var(--ck-brand);
    background: var(--ck-brand);
    color: #fff;
}

.ck-promo:active {
    transform: scale(0.97);
}

/* ------------------------------------------------------------------ hero */

.ck-hero {
    --ck-hero-h: 196px;

    position: relative;
    background: var(--ck-tint);
}

.ck-hero-track {
    /* One band for every panel, image or text. The height belongs to the container, so the
       carousel never re-flows the page underneath it as it advances. */
    display: grid;
    grid-template-columns: 1fr;
    height: var(--ck-hero-h);
    max-width: 1440px;
    margin-inline: auto;
    overflow: hidden;
}

.ck-hero-panel {
    grid-area: 1 / 1;
    height: 100%;
}

.ck-hero-link,
.ck-hero-img {
    display: block;
    width: 100%;
    height: 100%;
}

.ck-hero-img {
    object-fit: cover;
    background: #d1d5db;
}

.ck-hero-copy {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    padding: 16px 18px;
    color: #fff;
}

.ck-hero-copy.is-brand {
    background: linear-gradient(120deg, var(--ck-brand) 0%, #ff5a4f 55%, var(--ck-amber) 100%);
}

.ck-hero-copy.is-amber {
    background: linear-gradient(120deg, #ff8a3d 0%, var(--ck-amber) 50%, #c9161e 100%);
}

.ck-hero-copy.is-ink {
    background: linear-gradient(120deg, #1b1b1f 0%, #2f2f36 100%);
}

.ck-hero-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0;
    max-width: 22ch;
    overflow: hidden;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ck-hero-sub {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0;
    max-width: 46ch;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.92;
}

.ck-hero-cta {
    margin-top: 4px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--ck-ink);
    font-size: 14px;
    font-weight: 700;
}

.ck-hero-cta:active {
    transform: scale(0.98);
}

.ck-hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

.ck-hero-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    transition: width 180ms ease;
}

.ck-hero-dot.is-active {
    width: 20px;
    background: #fff;
}

@media (min-width: 768px) {
    .ck-hero {
        --ck-hero-h: 250px;
    }

    .ck-hero-copy {
        padding: 30px 34px;
        gap: 12px;
    }

    .ck-hero-title {
        font-size: 30px;
    }

    .ck-hero-sub {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .ck-hero {
        --ck-hero-h: 320px;
    }

    .ck-hero-copy {
        padding: 40px;
    }

    .ck-hero-title {
        font-size: 36px;
    }
}

/* ------------------------------------------------------------------ category tiles */

.ck-cats {
    --ck-cats-cols: 4;

    display: grid;
    grid-template-columns: repeat(var(--ck-cats-cols), minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 640px) {
    .ck-cats {
        --ck-cats-cols: 5;
    }
}

@media (min-width: 768px) {
    .ck-cats {
        --ck-cats-cols: 6;
    }
}

@media (min-width: 1024px) {
    .ck-cats {
        --ck-cats-cols: 8;
    }
}

.ck-cat,
.ck-supplier,
.ck-door {
    display: flex;
    text-align: left;
    background: #fff;
    border: 1px solid var(--ck-line);
    border-radius: var(--ck-radius);
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.ck-cat {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px 12px;
}

.ck-cat-media {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: var(--ck-tint);
}

.ck-cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ck-cat-initial {
    font-size: 22px;
    font-weight: 800;
    color: var(--ck-brand);
}

.ck-cat-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ck-cat-count {
    font-size: 10.5px;
    color: var(--ck-mute);
}

.ck-cat--more {
    border-style: dashed;
}

.ck-cat-more-icon {
    width: 26px;
    height: 26px;
    color: var(--ck-brand);
}

.ck-cat:active,
.ck-supplier:active,
.ck-door:active {
    transform: scale(0.985);
}

@media (min-width: 768px) {
    .ck-cat-name {
        font-size: 13px;
    }
}

/* ------------------------------------------------------------------ feature doors */

.ck-doors {
    display: grid;
    gap: 10px;
}

.ck-door {
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.ck-door-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff1ee;
    color: var(--ck-brand);
}

.ck-door-icon svg {
    width: 22px;
    height: 22px;
}

.ck-door-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.ck-door-title {
    font-size: 15px;
    font-weight: 700;
}

.ck-door-body {
    font-size: 12.5px;
    color: var(--ck-mute);
}

.ck-door-arrow {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--ck-mute);
}

/* The phone already has these doors in the navigation shortcut row. */
.ck-doors-wide {
    display: none;
}

@media (min-width: 1024px) {
    .ck-doors-wide {
        display: block;
    }

    .ck-doors {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ------------------------------------------------------------------ rails and grids */

.ck-rail {
    position: relative;
}

.ck-rail-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.ck-rail-item {
    flex: none;
    width: 148px;
    scroll-snap-align: start;
}

.ck-rail-nav {
    display: none;
    position: absolute;
    top: 50%;
    z-index: 2;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line, var(--ck-line));
    border-radius: 999px;
    background: #fff;
    color: var(--ck-ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-50%);
}

.ck-rail-nav svg {
    width: 18px;
    height: 18px;
}

.ck-rail-nav.is-prev {
    left: -8px;
}

.ck-rail-nav.is-next {
    right: -8px;
}

.ck-grid {
    display: grid;
    grid-template-columns: repeat(var(--ck-grid-cols, 2), minmax(0, 1fr));
    gap: 12px 10px;
}

@media (min-width: 640px) {
    .ck-rail-item {
        width: 176px;
    }

    .ck-rail-nav {
        display: grid;
    }
}

@media (min-width: 768px) {
    .ck-grid {
        --ck-grid-cols: 3;
        gap: 16px 12px;
    }
}

@media (min-width: 1024px) {
    .ck-grid {
        --ck-grid-cols: 4;
    }

    .ck-rail-item {
        width: 208px;
    }
}

@media (min-width: 1280px) {
    .ck-grid {
        --ck-grid-cols: 5;
    }
}

/* ------------------------------------------------------------------ product card */

.ck-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--ck-line);
    border-radius: var(--ck-radius);
    overflow: hidden;
}

.ck-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--ck-tint);
}

.ck-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8%;
}

.ck-card-noimage {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--ck-mute);
}

.ck-card-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    background: var(--ck-brand);
}

.ck-card-badge.is-ready {
    top: auto;
    bottom: 7px;
    left: 7px;
    background: #101012;
}

.ck-card.is-deal .ck-card-badge.is-deal,
.ck-card-badge.is-deal {
    background: var(--ck-brand);
}

.ck-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 10px 10px;
    flex: 1;
    min-width: 0;
}

.ck-card-name {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.32;
    color: var(--ck-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ck-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
    margin: 0;
}

.ck-card-now {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ck-brand);
}

.ck-card-was {
    font-size: 11.5px;
    color: var(--ck-mute);
}

/*
 | Free shipping sits under the price instead of on the photo. A pill over the image measured
 | 129px wide on the narrowest phone card (148px), so it covered most of the product; this line
 | keeps the wording the disclosure needs and costs the photo nothing.
 */
.ck-card-ship {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    min-width: 0;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    color: #15803d;
}

.ck-card-ship svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.ck-card-ship span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ck-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    font-size: 10.5px;
    color: var(--ck-mute);
}

.ck-card-state {
    margin: 0;
    font-size: 10.5px;
    font-weight: 600;
}

.ck-card-state.is-out {
    color: var(--ck-mute);
}

.ck-card-state.is-pre {
    color: var(--ck-amber);
}

.ck-card-actions {
    margin-top: auto;
    padding-top: 8px;
}

.ck-card-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 7px 8px;
    border: 1px solid var(--ck-brand);
    border-radius: 999px;
    background: #fff;
    color: var(--ck-brand);
    font-size: 12px;
    font-weight: 700;
    transition: background 140ms ease, color 140ms ease;
}

.ck-card-add-icon {
    width: 14px;
    height: 14px;
}

.ck-card-add:active {
    background: var(--ck-brand);
    color: #fff;
}

.ck-card-add[disabled] {
    opacity: 0.6;
}

@media (min-width: 768px) {
    .ck-card-name {
        font-size: 13px;
    }

    .ck-card-now {
        font-size: 16px;
    }
}

/* ------------------------------------------------------------------ supplier strip */

.ck-suppliers {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

@media (min-width: 640px) {
    .ck-suppliers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ck-suppliers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ck-supplier {
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
}

.ck-supplier-logo {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 11px;
    background: var(--ck-tint);
}

.ck-supplier-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ck-supplier-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.ck-supplier-name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 700;
}

.ck-supplier-seal {
    flex: none;
    width: 15px;
    height: 15px;
    color: var(--ck-brand);
}

.ck-supplier-meta {
    display: flex;
    gap: 4px;
    font-size: 11px;
    color: var(--ck-mute);
}

.ck-supplier-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ck-supplier-cat {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--ck-tint);
    font-size: 10.5px;
    color: #4b5563;
}

.ck-supplier-arrow {
    flex: none;
    width: 15px;
    height: 15px;
    color: var(--ck-mute);
}

/* ------------------------------------------------------------------ trust rows */

.ck-trust {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 14px;
    list-style: none;
    border: 1px solid var(--ck-line);
    border-radius: var(--ck-radius);
    background: var(--ck-tint);
}

.ck-trust-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ck-trust-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    color: var(--ck-brand);
}

.ck-trust-icon svg {
    width: 19px;
    height: 19px;
}

.ck-trust-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.ck-trust-title {
    font-size: 13px;
    font-weight: 700;
}

.ck-trust-body {
    font-size: 11.5px;
    color: var(--ck-mute);
}

@media (min-width: 768px) {
    .ck-trust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ------------------------------------------------------------------ quick-add sheet */

.ck-sheet {
    position: fixed;
    inset: 0;

    /* Above every shipped layer: the phone tab bar is 9990 and the category sheet 9995.
       A modal that ties with the bar paints under it, because the bar is later in the DOM. */
    z-index: 9998;
    display: grid;
    align-items: end;
    justify-items: center;
}

.ck-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 20, 0.45);
    opacity: 0;
    transition: opacity 180ms ease;
}

.ck-sheet-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 86vh;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(100%);
    transition: transform 220ms ease;
}

.ck-sheet-panel.is-open {
    transform: translateY(0);
}

/* From the tablet width the sheet is a centered dialog instead of a bottom drawer. */
@media (min-width: 1024px) {
    .ck-sheet {
        align-items: center;
        padding: 24px;
    }

    .ck-sheet-panel {
        max-width: 520px;
        border-radius: 18px;
        transform: translateY(16px) scale(0.98);
        opacity: 0;
    }

    .ck-sheet-panel.is-open {
        transform: none;
        opacity: 1;
    }
}

.ck-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--ck-line);
}

.ck-sheet-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.ck-sheet-close {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: var(--ck-tint);
    color: var(--ck-ink);
}

.ck-sheet-close svg {
    width: 16px;
    height: 16px;
}

.ck-sheet-body {
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ------------------------------------------------------------------ quick-add skeleton */

/* One step under the live sheet, so the frame on which Livewire swaps them cannot show the
 * placeholder on top of the real panel. */
.ck-sheet.is-skeleton {
    z-index: 9997;
}

/* The placeholder never animates in: it has to be seated the moment the tap registers,
 * otherwise the shopper sees a strip of white at the bottom edge instead of a sheet.
 *
 * It is also pinned by position rather than by the container's grid alignment, because
 * wire:loading reveals this element by writing display: block onto it inline, which would
 * cancel the grid that seats the real sheet's panel on the bottom edge. */
.ck-sheet.is-skeleton .ck-sheet-backdrop {
    opacity: 1;
}

.ck-sheet-panel.is-skeleton {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    transform: none;
    opacity: 1;
    min-height: 44vh;
    max-height: 62vh;
}

@media (min-width: 1024px) {
    .ck-sheet-panel.is-skeleton {
        inset: 50% auto auto 50%;
        width: 520px;
        max-height: 78vh;
        border-radius: 18px;
        transform: translate(-50%, -50%);
    }
}

.ck-skel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #eceef1;
}

.ck-skel::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.72) 55%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: ck-skel 1.05s ease-in-out infinite;
}

@keyframes ck-skel {
    to {
        transform: translateX(100%);
    }
}

.ck-skel-thumb {
    flex: none;
    width: 62px;
    height: 62px;
    border-radius: 10px;
}

.ck-skel-stack {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.ck-skel-line {
    height: 13px;
}

.ck-skel-row {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.ck-skel-row.is-late {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.ck-skel-chip {
    height: 30px;
    border-radius: 999px;
}

.ck-skel-cta {
    height: 44px;
    border-radius: 12px;
}

html[data-theme="dark"] .ck-skel {
    background: #26262b;
}

.ck-sheet-backdrop.is-open {
    opacity: 1;
}

/* ------------------------------------------------------------------ mobile brand row */

/*
 | The first layer of the mobile header: the wordmark on the left, support and the bell on the
 | right. It lives inside a .ck-mnav-collapse wrapper, so it has to stay under that rule's
 | 64px max-height — 51px here, which also means it scrolls away with the tabs instead of
 | competing with the search bar that remains pinned.
 |
 | The 12px of top padding is not decoration. mobile-nav-v5.css shortens the status-band
 | clearance above the header by exactly 12px (padding-top: inset - 12px), because it expects
 | the first row inside the header to carry that 12px itself. This row is now the first one,
 | so it has to hold the same 12px — any less and the logo sits under the clock.
 */
.ck-mnav-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 5px;
}

.ck-mnav-logo {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ck-ink);
    -webkit-tap-highlight-color: transparent;
}

.ck-mnav-logo img {
    display: block;
    flex: none;
    border-radius: 7px;
}

.ck-mnav-logo span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ck-mnav-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
}

.ck-mnav-action {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #f2f3f5;
    color: var(--ck-ink);
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 140ms ease,
        opacity 140ms ease;
}

.ck-mnav-action svg {
    width: 19px;
    height: 19px;
}

.ck-mnav-action:active {
    transform: scale(0.93);
    opacity: 0.75;
}

.ck-mnav-count {
    position: absolute;
    top: 1px;
    right: 1px;
    display: grid;
    place-items: center;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border: 1.5px solid #fff;
    border-radius: 999px;
    background: var(--ck-brand);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

html[data-theme="dark"] .ck-mnav-logo {
    color: #f9fafb;
}

html[data-theme="dark"] .ck-mnav-action {
    background: #1f1f23;
    color: #e5e7eb;
}

html[data-theme="dark"] .ck-mnav-count {
    border-color: #17171a;
}

/* ------------------------------------------------------------------ motion */

@media (prefers-reduced-motion: reduce) {
    .ck-home *,
    .ck-sheet-panel,
    .ck-sheet-backdrop,
    .ck-mnav-action {
        transition-duration: 1ms !important;
        scroll-behavior: auto;
    }

    /* The sweep is the only animation that is not a response to a gesture, so it stops
     * outright rather than running fast, which would read as a flicker. */
    .ck-skel::after {
        animation: none;
    }
}
