/* ==========================================================================
   Cassidy Inspired design system
   Warm gallery palette: ivory paper, deep ink, coastal teal, terracotta CTA.
   ========================================================================== */

:root {
    --paper: #FBF8F3;
    --paper-deep: #F3EDE3;
    --sand: #E9E0D1;
    --ink: #1E2A3A;
    --ink-soft: #4F5B6B;
    --ink-mute: #8A94A3;
    --teal: #2B7A8B;
    --teal-deep: #1F5F6D;
    --teal-tint: #E3F0F2;
    --terracotta: #D4683A;
    --terracotta-deep: #B8532A;
    --gold: #D9A441;
    --white: #FFFFFF;
    --line: #E4DCCF;

    /* Status colours, on paper and white: ok green, warn amber, bad terracotta tint. */
    --ok: #2E6B3A;
    --ok-tint: #E6F2E6;
    --warn: #7A5A00;
    --warn-tint: #FBF3DC;
    --bad-tint: #FBEDE4;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(30, 42, 58, .06), 0 1px 1px rgba(30, 42, 58, .04);
    --shadow-md: 0 10px 30px rgba(30, 42, 58, .10);
    --shadow-lg: 0 24px 60px rgba(30, 42, 58, .16);
    --shadow-inset: inset 0 0 0 1px rgba(30, 42, 58, .06);
    --container: 1320px;
    --gutter: 16px;
    --header-h: 68px;

    /* Type scale: one size per role. */
    --fs-hero: clamp(2.8rem, 5.6vw, 4.6rem);
    --fs-h1: clamp(2rem, 3.4vw, 2.8rem);
    --fs-h2: clamp(1.6rem, 2.6vw, 2.1rem);
    --fs-h3: 1.2rem;

    /* Motion: one easing, two durations. */
    --ease: cubic-bezier(.2, .7, .2, 1);
    --dur-fast: .18s;
    --dur: .4s;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 .5em;
    color: var(--ink);
}
h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); }
/* The soft, slightly wonky Fraunces cut, reserved for the hero. */
.display { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.025em; font-variation-settings: "SOFT" 60, "WONK" 1; }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { padding: clamp(40px, 6vw, 80px) 0; }
.section--tight { padding: clamp(28px, 4vw, 48px) 0; }
.section--band { background: var(--paper-deep); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2 { color: var(--paper); }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.section-head h2 { margin: 0; }
.section-head .link { white-space: nowrap; font-weight: 500; }
/* Links with the class draw their underline in from the left. */
.link { position: relative; text-decoration: none !important; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease); }
.link:hover::after { transform: scaleX(1); }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 12px;
}

.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 56ch; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
    text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--terracotta); color: var(--white); box-shadow: 0 6px 18px rgba(212, 104, 58, .28); }
.btn--primary:hover { background: var(--terracotta-deep); }
.btn--secondary { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 32px; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Announcement bar + header
   -------------------------------------------------------------------------- */
.announce {
    background: var(--ink);
    color: var(--paper);
    font-size: .82rem;
    text-align: center;
    padding: 8px var(--gutter);
    letter-spacing: .02em;
}
.announce strong { color: var(--gold); font-weight: 600; }
.announce .dot { margin: 0 10px; opacity: .5; }

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 248, 243, .92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header .container { position: relative; }
.header__row {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--header-h);
}
.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none !important;
    white-space: nowrap;
}
.brand em { font-style: italic; font-weight: 400; color: var(--gold); }

.nav {
    display: flex;
    gap: 4px;
    margin-left: 12px;
}
.nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: .95rem;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none !important;
}
.nav a:hover, .nav a.active { background: var(--paper-deep); }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none !important;
    position: relative;
    cursor: pointer;
}
.icon-btn:hover { background: var(--paper-deep); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .count {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--terracotta);
    color: var(--white);
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header search bar. The search icon is a <label> for the input, so clicking it focuses the
   input; the bar is open while it has focus or holds text. Works with no JavaScript. */
.site-search {
    overflow: hidden;
    max-height: 0;
    border-top: 1px solid transparent;
    transition: max-height .22s ease, border-color .22s ease;
}
.site-search:focus-within,
.site-search:has(.site-search__input:not(:placeholder-shown)) {
    max-height: 96px;
    border-top-color: var(--line);
}
.site-search__inner { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.site-search__inner svg { width: 20px; height: 20px; color: var(--ink-mute); flex: none; }
.site-search__input {
    flex: 1;
    min-width: 0;
    appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 1.05rem;
    color: var(--ink);
    padding: 8px 0;
    outline: none;
}
.site-search__input::placeholder { color: var(--ink-mute); }
.site-search .btn { padding: 10px 20px; }

.nav-toggle { display: none; }
.nav-toggle-btn { display: none; }

@media (max-width: 900px) {
    .nav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        flex-direction: column;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 8px var(--gutter) 16px;
        margin: 0;
        box-shadow: var(--shadow-md);
    }
    .nav a { padding: 12px 10px; font-size: 1.05rem; }
    .nav-toggle:checked ~ .header__row .nav { display: flex; }
    .nav-toggle-btn { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    padding: clamp(32px, 5vw, 72px) 0 clamp(32px, 5vw, 64px);
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--teal); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: .9rem;
    color: var(--ink-soft);
    list-style: none;
    margin: 0;
    padding: 0;
}
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.trust strong { color: var(--ink); }

.collage {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    aspect-ratio: 1.1;
}
.collage__item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sand);
    box-shadow: var(--shadow-md);
}
.collage__item img { width: 100%; height: 100%; object-fit: cover; }
.collage__item--tall { grid-row: 1 / 3; }

@media (max-width: 820px) {
    .hero__grid { grid-template-columns: 1fr; }
    .collage { aspect-ratio: 1.3; }
}

/* --------------------------------------------------------------------------
   Stars
   -------------------------------------------------------------------------- */
.stars { display: inline-flex; gap: 2px; color: var(--gold); vertical-align: -2px; }
.stars svg { width: 16px; height: 16px; }
.stars--lg svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Category tiles
   -------------------------------------------------------------------------- */
.tiles {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.tile {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--sand);
    text-decoration: none !important;
    box-shadow: var(--shadow-sm);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.05); }
.tile__label {
    position: absolute;
    inset: auto 0 0 0;
    padding: 36px 14px 14px;
    background: linear-gradient(to top, rgba(30, 42, 58, .82), rgba(30, 42, 58, 0));
    color: var(--white);
}
.tile__label strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.tile__label span { font-size: .8rem; opacity: .85; }

@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 20px;
}
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
    .card__meta { flex-direction: column; align-items: flex-start; gap: 2px; }
    .card__title { font-size: .9rem; }
}

.card { display: flex; flex-direction: column; position: relative; }
.card__media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--sand);
    box-shadow: var(--shadow-sm);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 1;
    background: var(--white);
    color: var(--ink);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.card__badge--new { background: var(--teal); color: var(--white); }
.card__body { padding: 12px 2px 0; }
.card__title {
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title { text-decoration: underline; text-decoration-color: var(--ink-mute); }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums; }
.price small { font-weight: 400; color: var(--ink-soft); font-size: .8rem; margin-right: 3px; }
.card__rating { font-size: .78rem; color: var(--ink-soft); display: flex; align-items: center; gap: 4px; }

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}
.step { position: relative; padding-top: 10px; }
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--teal);
    opacity: .55;
    margin-bottom: 10px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.review {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}
.review blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.08rem;
    line-height: 1.45;
    color: var(--ink);
    flex: 1;
}
.review footer { font-size: .85rem; color: var(--ink-soft); }
.review footer strong { color: var(--ink); }
.review footer span { display: block; }
.review footer .review__source { color: var(--ink-mute); font-size: .78rem; margin-top: 4px; }
.review footer .review__source a { color: inherit; text-decoration: underline; }
.review__rated { margin: 0; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.pdp__rating a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pdp__rating a:hover { text-decoration: underline; }
.pdp__shoprating { color: var(--ink-soft); }
.pdp__shoprating a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--ink-mute); }
@media (max-width: 820px) { .reviews { grid-template-columns: 1fr; } }

.rating-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-bottom: 24px;
    color: var(--ink-soft);
}
.rating-summary .big { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--ink); line-height: 1; }

/* --------------------------------------------------------------------------
   About strip
   -------------------------------------------------------------------------- */
.about {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}
.about__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; background: var(--sand); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about .lede { color: inherit; opacity: .9; }
.about .sig { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; margin-top: 10px; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about__media { aspect-ratio: 16 / 10; } }

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */
.crumbs { font-size: .85rem; color: var(--ink-soft); margin: 18px 0 8px; }
.crumbs a { color: var(--ink-soft); }
.crumbs span { margin: 0 6px; opacity: .6; }

.pdp {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(24px, 4vw, 56px);
    padding-bottom: 60px;
}
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
/* Gallery: hidden radios + label thumbnails and arrows, no JavaScript */
.gallery { position: relative; }
.gallery__radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.gallery__main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 1; box-shadow: var(--shadow-sm); }
.gallery__slide { display: none; margin: 0; width: 100%; height: 100%; }
.gallery__img { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes gallery-fade { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }

.gallery__nav { display: none; position: absolute; inset: 0; pointer-events: none; }
.gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(30, 42, 58, .18);
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    transition: opacity .2s ease, background .15s ease, transform .15s ease;
    backdrop-filter: blur(4px);
}
.gallery__arrow svg { width: 22px; height: 22px; }
.gallery__arrow--prev { left: 14px; }
.gallery__arrow--next { right: 14px; }
.gallery__arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.06); }
.gallery__arrow:active { transform: translateY(-50%) scale(.96); }
.gallery__main:hover .gallery__arrow, .gallery__main:focus-within .gallery__arrow { opacity: 1; }
@media (hover: none) { .gallery__arrow { opacity: 1; } }

.gallery__counter {
    position: absolute;
    right: 14px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(30, 42, 58, .72);
    color: var(--white);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(4px);
}

.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery__thumb { width: 72px; flex: none; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--sand); overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color .15s ease; }
.gallery__thumb:hover { border-color: var(--ink-mute); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The video slide: the main picture is its poster, a play button sits over it until the browser's own controls take over */
.gallery__slide--video { position: relative; background: var(--ink); }
.gallery__video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.gallery__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(30, 42, 58, .28); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.gallery__play svg { width: 34px; height: 34px; margin-left: 4px; }
/* Two rules, not one list: a browser that doesn't know :playing (Chrome) must still drop the badge once the video is clicked (it takes focus). */
.gallery__slide--video:has(video:playing) .gallery__play { opacity: 0; transform: scale(.9); }
.gallery__slide--video:has(video:focus) .gallery__play { opacity: 0; transform: scale(.9); }
.gallery__slide--video { cursor: pointer; }
.gallery__thumb--video { position: relative; }
.gallery__thumb--video img { opacity: .75; }
.gallery__thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; color: var(--white); font-size: .68rem; font-weight: 700; letter-spacing: .02em; text-shadow: 0 1px 4px rgba(30, 42, 58, .6); background: linear-gradient(to top, rgba(30, 42, 58, .55), rgba(30, 42, 58, .15)); }
.gallery__thumb-play svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 3px rgba(30, 42, 58, .5)); }
.gallery__thumb-play span { padding: 1px 5px; border-radius: 999px; background: rgba(30, 42, 58, .7); }
.gallery__radio:nth-of-type(1):checked ~ .gallery__main .gallery__slide:nth-of-type(1) { display: block; animation: gallery-fade .35s ease; }
.gallery__radio:nth-of-type(1):checked ~ .gallery__main .gallery__nav:nth-of-type(1) { display: block; }
.gallery__radio:nth-of-type(1):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(1) { border-color: var(--ink); }
.gallery__radio:nth-of-type(1):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(1) { outline: 2px solid var(--teal); outline-offset: 2px; }
.gallery__radio:nth-of-type(2):checked ~ .gallery__main .gallery__slide:nth-of-type(2) { display: block; animation: gallery-fade .35s ease; }
.gallery__radio:nth-of-type(2):checked ~ .gallery__main .gallery__nav:nth-of-type(2) { display: block; }
.gallery__radio:nth-of-type(2):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(2) { border-color: var(--ink); }
.gallery__radio:nth-of-type(2):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(2) { outline: 2px solid var(--teal); outline-offset: 2px; }
.gallery__radio:nth-of-type(3):checked ~ .gallery__main .gallery__slide:nth-of-type(3) { display: block; animation: gallery-fade .35s ease; }
.gallery__radio:nth-of-type(3):checked ~ .gallery__main .gallery__nav:nth-of-type(3) { display: block; }
.gallery__radio:nth-of-type(3):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(3) { border-color: var(--ink); }
.gallery__radio:nth-of-type(3):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(3) { outline: 2px solid var(--teal); outline-offset: 2px; }
.gallery__radio:nth-of-type(4):checked ~ .gallery__main .gallery__slide:nth-of-type(4) { display: block; animation: gallery-fade .35s ease; }
.gallery__radio:nth-of-type(4):checked ~ .gallery__main .gallery__nav:nth-of-type(4) { display: block; }
.gallery__radio:nth-of-type(4):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(4) { border-color: var(--ink); }
.gallery__radio:nth-of-type(4):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(4) { outline: 2px solid var(--teal); outline-offset: 2px; }
.gallery__radio:nth-of-type(5):checked ~ .gallery__main .gallery__slide:nth-of-type(5) { display: block; animation: gallery-fade .35s ease; }
.gallery__radio:nth-of-type(5):checked ~ .gallery__main .gallery__nav:nth-of-type(5) { display: block; }
.gallery__radio:nth-of-type(5):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(5) { border-color: var(--ink); }
.gallery__radio:nth-of-type(5):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(5) { outline: 2px solid var(--teal); outline-offset: 2px; }
.gallery__radio:nth-of-type(6):checked ~ .gallery__main .gallery__slide:nth-of-type(6) { display: block; animation: gallery-fade .35s ease; }
.gallery__radio:nth-of-type(6):checked ~ .gallery__main .gallery__nav:nth-of-type(6) { display: block; }
.gallery__radio:nth-of-type(6):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(6) { border-color: var(--ink); }
.gallery__radio:nth-of-type(6):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(6) { outline: 2px solid var(--teal); outline-offset: 2px; }
.gallery__radio:nth-of-type(7):checked ~ .gallery__main .gallery__slide:nth-of-type(7) { display: block; animation: gallery-fade .35s ease; }
.gallery__radio:nth-of-type(7):checked ~ .gallery__main .gallery__nav:nth-of-type(7) { display: block; }
.gallery__radio:nth-of-type(7):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(7) { border-color: var(--ink); }
.gallery__radio:nth-of-type(7):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(7) { outline: 2px solid var(--teal); outline-offset: 2px; }
.gallery__radio:nth-of-type(8):checked ~ .gallery__main .gallery__slide:nth-of-type(8) { display: block; animation: gallery-fade .35s ease; }
.gallery__radio:nth-of-type(8):checked ~ .gallery__main .gallery__nav:nth-of-type(8) { display: block; }
.gallery__radio:nth-of-type(8):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(8) { border-color: var(--ink); }
.gallery__radio:nth-of-type(8):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(8) { outline: 2px solid var(--teal); outline-offset: 2px; }
.gallery__radio:nth-of-type(9):checked ~ .gallery__main .gallery__slide:nth-of-type(9) { display: block; animation: gallery-fade .35s ease; }
.gallery__radio:nth-of-type(9):checked ~ .gallery__main .gallery__nav:nth-of-type(9) { display: block; }
.gallery__radio:nth-of-type(9):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(9) { border-color: var(--ink); }
.gallery__radio:nth-of-type(9):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(9) { outline: 2px solid var(--teal); outline-offset: 2px; }
.gallery__radio:nth-of-type(10):checked ~ .gallery__main .gallery__slide:nth-of-type(10) { display: block; animation: gallery-fade .35s ease; }
.gallery__radio:nth-of-type(10):checked ~ .gallery__main .gallery__nav:nth-of-type(10) { display: block; }
.gallery__radio:nth-of-type(10):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(10) { border-color: var(--ink); }
.gallery__radio:nth-of-type(10):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(10) { outline: 2px solid var(--teal); outline-offset: 2px; }
.gallery__radio:nth-of-type(11):checked ~ .gallery__main .gallery__slide:nth-of-type(11) { display: block; animation: gallery-fade .35s ease; }
.gallery__radio:nth-of-type(11):checked ~ .gallery__main .gallery__nav:nth-of-type(11) { display: block; }
.gallery__radio:nth-of-type(11):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(11) { border-color: var(--ink); }
.gallery__radio:nth-of-type(11):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(11) { outline: 2px solid var(--teal); outline-offset: 2px; }
.gallery__radio:nth-of-type(12):checked ~ .gallery__main .gallery__slide:nth-of-type(12) { display: block; animation: gallery-fade .35s ease; }
.gallery__radio:nth-of-type(12):checked ~ .gallery__main .gallery__nav:nth-of-type(12) { display: block; }
.gallery__radio:nth-of-type(12):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(12) { border-color: var(--ink); }
.gallery__radio:nth-of-type(12):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(12) { outline: 2px solid var(--teal); outline-offset: 2px; }

.pdp h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.pdp__rating { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); margin-bottom: 16px; }
/* Buy box: hidden variant radios drive the price shown and the highlighted chip */
.buybox { position: relative; }
.buybox__radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.buybox__prices { margin-bottom: 20px; min-height: 2.2rem; }
.buybox__price { display: none; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.buybox__amount { font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.buybox__price small { font-size: .9rem; color: var(--ink-soft); }
.buybox__sku { flex-basis: 100%; font-size: .72rem; color: var(--ink-mute); letter-spacing: .04em; }

.option { margin-bottom: 18px; }
.option__label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.option--inline { display: flex; align-items: center; gap: 12px; }
.option--inline .option__label { margin: 0; }
.option__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 9px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: var(--white);
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .1s ease;
}
.chip:hover { border-color: var(--ink-mute); }
.chip:active { transform: scale(.97); }
.chip__price { font-size: .75rem; color: var(--ink-soft); }
.qty {
    appearance: none;
    padding: 9px 36px 9px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E2A3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 12px center / 16px;
    font: inherit;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
}
.qty:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.buybox__radio:nth-of-type(1):checked ~ .buybox__prices .buybox__price:nth-of-type(1) { display: flex; }
.buybox__radio:nth-of-type(1):checked ~ .option .chip:nth-of-type(1) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.buybox__radio:nth-of-type(1):checked ~ .option .chip:nth-of-type(1) .chip__price { color: rgba(255, 255, 255, .75); }
.buybox__radio:nth-of-type(1):focus-visible ~ .option .chip:nth-of-type(1) { outline: 2px solid var(--teal); outline-offset: 2px; }
.buybox__radio:nth-of-type(2):checked ~ .buybox__prices .buybox__price:nth-of-type(2) { display: flex; }
.buybox__radio:nth-of-type(2):checked ~ .option .chip:nth-of-type(2) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.buybox__radio:nth-of-type(2):checked ~ .option .chip:nth-of-type(2) .chip__price { color: rgba(255, 255, 255, .75); }
.buybox__radio:nth-of-type(2):focus-visible ~ .option .chip:nth-of-type(2) { outline: 2px solid var(--teal); outline-offset: 2px; }
.buybox__radio:nth-of-type(3):checked ~ .buybox__prices .buybox__price:nth-of-type(3) { display: flex; }
.buybox__radio:nth-of-type(3):checked ~ .option .chip:nth-of-type(3) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.buybox__radio:nth-of-type(3):checked ~ .option .chip:nth-of-type(3) .chip__price { color: rgba(255, 255, 255, .75); }
.buybox__radio:nth-of-type(3):focus-visible ~ .option .chip:nth-of-type(3) { outline: 2px solid var(--teal); outline-offset: 2px; }
.buybox__radio:nth-of-type(4):checked ~ .buybox__prices .buybox__price:nth-of-type(4) { display: flex; }
.buybox__radio:nth-of-type(4):checked ~ .option .chip:nth-of-type(4) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.buybox__radio:nth-of-type(4):checked ~ .option .chip:nth-of-type(4) .chip__price { color: rgba(255, 255, 255, .75); }
.buybox__radio:nth-of-type(4):focus-visible ~ .option .chip:nth-of-type(4) { outline: 2px solid var(--teal); outline-offset: 2px; }
.buybox__radio:nth-of-type(5):checked ~ .buybox__prices .buybox__price:nth-of-type(5) { display: flex; }
.buybox__radio:nth-of-type(5):checked ~ .option .chip:nth-of-type(5) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.buybox__radio:nth-of-type(5):checked ~ .option .chip:nth-of-type(5) .chip__price { color: rgba(255, 255, 255, .75); }
.buybox__radio:nth-of-type(5):focus-visible ~ .option .chip:nth-of-type(5) { outline: 2px solid var(--teal); outline-offset: 2px; }
.buybox__radio:nth-of-type(6):checked ~ .buybox__prices .buybox__price:nth-of-type(6) { display: flex; }
.buybox__radio:nth-of-type(6):checked ~ .option .chip:nth-of-type(6) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.buybox__radio:nth-of-type(6):checked ~ .option .chip:nth-of-type(6) .chip__price { color: rgba(255, 255, 255, .75); }
.buybox__radio:nth-of-type(6):focus-visible ~ .option .chip:nth-of-type(6) { outline: 2px solid var(--teal); outline-offset: 2px; }
.buybox__radio:nth-of-type(7):checked ~ .buybox__prices .buybox__price:nth-of-type(7) { display: flex; }
.buybox__radio:nth-of-type(7):checked ~ .option .chip:nth-of-type(7) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.buybox__radio:nth-of-type(7):checked ~ .option .chip:nth-of-type(7) .chip__price { color: rgba(255, 255, 255, .75); }
.buybox__radio:nth-of-type(7):focus-visible ~ .option .chip:nth-of-type(7) { outline: 2px solid var(--teal); outline-offset: 2px; }
.buybox__radio:nth-of-type(8):checked ~ .buybox__prices .buybox__price:nth-of-type(8) { display: flex; }
.buybox__radio:nth-of-type(8):checked ~ .option .chip:nth-of-type(8) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.buybox__radio:nth-of-type(8):checked ~ .option .chip:nth-of-type(8) .chip__price { color: rgba(255, 255, 255, .75); }
.buybox__radio:nth-of-type(8):focus-visible ~ .option .chip:nth-of-type(8) { outline: 2px solid var(--teal); outline-offset: 2px; }
.buybox__radio:nth-of-type(9):checked ~ .buybox__prices .buybox__price:nth-of-type(9) { display: flex; }
.buybox__radio:nth-of-type(9):checked ~ .option .chip:nth-of-type(9) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.buybox__radio:nth-of-type(9):checked ~ .option .chip:nth-of-type(9) .chip__price { color: rgba(255, 255, 255, .75); }
.buybox__radio:nth-of-type(9):focus-visible ~ .option .chip:nth-of-type(9) { outline: 2px solid var(--teal); outline-offset: 2px; }
.buybox__radio:nth-of-type(10):checked ~ .buybox__prices .buybox__price:nth-of-type(10) { display: flex; }
.buybox__radio:nth-of-type(10):checked ~ .option .chip:nth-of-type(10) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.buybox__radio:nth-of-type(10):checked ~ .option .chip:nth-of-type(10) .chip__price { color: rgba(255, 255, 255, .75); }
.buybox__radio:nth-of-type(10):focus-visible ~ .option .chip:nth-of-type(10) { outline: 2px solid var(--teal); outline-offset: 2px; }
.buybox__radio:nth-of-type(11):checked ~ .buybox__prices .buybox__price:nth-of-type(11) { display: flex; }
.buybox__radio:nth-of-type(11):checked ~ .option .chip:nth-of-type(11) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.buybox__radio:nth-of-type(11):checked ~ .option .chip:nth-of-type(11) .chip__price { color: rgba(255, 255, 255, .75); }
.buybox__radio:nth-of-type(11):focus-visible ~ .option .chip:nth-of-type(11) { outline: 2px solid var(--teal); outline-offset: 2px; }
.buybox__radio:nth-of-type(12):checked ~ .buybox__prices .buybox__price:nth-of-type(12) { display: flex; }
.buybox__radio:nth-of-type(12):checked ~ .option .chip:nth-of-type(12) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.buybox__radio:nth-of-type(12):checked ~ .option .chip:nth-of-type(12) .chip__price { color: rgba(255, 255, 255, .75); }
.buybox__radio:nth-of-type(12):focus-visible ~ .option .chip:nth-of-type(12) { outline: 2px solid var(--teal); outline-offset: 2px; }

.pdp__buy { display: grid; gap: 10px; margin: 24px 0 18px; }
.pdp__assure { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; font-size: .9rem; color: var(--ink-soft); }
.pdp__assure li { display: flex; gap: 9px; align-items: flex-start; }
.pdp__assure svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 2px; }

details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; color: var(--ink-mute); font-weight: 400; }
details.acc[open] summary::after { content: "\2013"; }
details.acc .acc__body { padding: 0 0 16px; color: var(--ink-soft); font-size: .95rem; }
details.acc ul { padding-left: 18px; margin: 0 0 12px; }
.desc h3 { font-family: var(--font-body); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 18px 0 8px; }
.desc h3:first-child { margin-top: 4px; }
.desc p { margin: 0 0 12px; }
.desc li { margin-bottom: 4px; }

@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; } .pdp__gallery { position: static; } }

/* --------------------------------------------------------------------------
   Shop listing page
   -------------------------------------------------------------------------- */
.shop-head { padding: 28px 0 20px; }
.shop-head h1 { margin-bottom: 6px; }
.shop-head .lede { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.filters a { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .88rem; font-weight: 500; color: var(--ink); text-decoration: none !important; background: var(--white); }
.filters a.active, .filters a:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.filters__n { margin-left: 4px; opacity: .55; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Search page */
.search-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 680px;
    margin: 16px 0 4px;
    padding: 6px 6px 6px 18px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s ease;
}
.search-hero:focus-within { border-color: var(--ink); }
.search-hero svg { width: 20px; height: 20px; color: var(--ink-mute); flex: none; }
.search-hero input { flex: 1; min-width: 0; appearance: none; border: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--ink); padding: 10px 0; outline: none; }
.search-hero .btn { padding: 12px 22px; }
.search-status { color: var(--ink-soft); margin: 12px 0 0; }
.search-status strong { color: var(--ink); }
.search-empty { padding: 8px 0 24px; }
.search-empty h2 { margin-bottom: 8px; }
@media (max-width: 560px) { .search-hero .btn { padding: 12px 16px; } }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 40px 0 10px; flex-wrap: wrap; }
.pager__status { font-size: .9rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(251, 248, 243, .78); padding: 56px 0 28px; margin-top: 40px; font-size: .92rem; }
.footer a { color: rgba(251, 248, 243, .85); }
.footer a:hover { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer .brand { color: var(--paper); font-size: 1.5rem; margin-bottom: 10px; display: inline-block; }
.footer h4 { color: var(--paper); font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__bottom { border-top: 1px solid rgba(251, 248, 243, .14); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; opacity: .75; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Utility / misc
   -------------------------------------------------------------------------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.muted { color: var(--ink-soft); }
@media (max-width: 640px) { .hidden-sm { display: none !important; } }


/* --------------------------------------------------------------------------
   Cart
   -------------------------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.link-btn { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-size: .9rem; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--terracotta-deep); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.qty--sm { padding: 8px 32px 8px 12px; }

.cart h1 { margin-bottom: 18px; }
.cart__notice { background: var(--teal-tint); color: var(--teal-deep); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 18px; font-weight: 500; }
.cart__notice--warn { background: #FBEDE4; color: var(--terracotta-deep); }
.cart__empty { padding: 32px 0 60px; max-width: 56ch; }
.cart__empty .btn { margin-top: 10px; }
.cart__layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 60px; }
.cart__lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart__line { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart__thumb img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); background: var(--paper-deep); }
.cart__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.cart__variant { color: var(--ink-soft); font-size: .92rem; margin-top: 2px; }
.cart__unit { color: var(--ink-mute); font-size: .85rem; margin-top: 2px; }
.cart__controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; }
.cart__qty { display: flex; align-items: center; gap: 8px; }
.cart__total { font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.cart__summary { position: sticky; top: calc(var(--header-h) + 16px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.cart__summary h2 { font-size: 1.3rem; margin-bottom: 14px; }
.cart__summary dl { margin: 0 0 18px; display: grid; gap: 10px; }
.cart__summary dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.cart__summary dt { color: var(--ink-soft); }
.cart__summary dd { margin: 0; text-align: right; font-weight: 500; }
.cart__summary dl div:first-child dd { font-size: 1.15rem; font-weight: 600; }
.cart__fine { font-size: .82rem; color: var(--ink-soft); margin: 14px 0; }
.buybox__soon { background: var(--paper-deep); border-radius: var(--radius-sm); padding: 14px 16px; margin: 20px 0 18px; color: var(--ink-soft); }
.buybox__soon strong { color: var(--ink); }
@media (max-width: 820px) {
    .cart__layout { grid-template-columns: 1fr; }
    .cart__summary { position: static; }
    .cart__line { grid-template-columns: 88px 1fr; }
    .cart__thumb img { width: 88px; height: 88px; }
    .cart__total { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   Order status
   -------------------------------------------------------------------------- */
.order h1 { margin-bottom: 10px; }
.order__timeline { list-style: none; margin: 28px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: step; }
.order__timeline li { position: relative; padding-top: 22px; font-size: .9rem; color: var(--ink-mute); }
.order__timeline li::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 4px; background: var(--line); border-radius: 2px; }
.order__timeline li.done::before { background: var(--teal); }
.order__timeline li.done { color: var(--ink); }
.order__timeline li.current span { font-weight: 600; }
.order__timeline li span { display: block; }
.order__timeline li small { color: var(--ink-mute); }
.order__tracking { margin: 10px 0 0; }
.order__layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 32px; padding-bottom: 60px; }
.order__layout h2 { font-size: 1.3rem; }
.order__grand dt, .order__grand dd { font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; }
.order__address { font-style: normal; color: var(--ink-soft); line-height: 1.5; margin-bottom: 14px; }
.cart__summary h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin: 18px 0 6px; }
@media (max-width: 820px) {
    .order__layout { grid-template-columns: 1fr; }
    .order__timeline { grid-template-columns: repeat(2, 1fr); }
}
.cart__country { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.cart__country label { color: var(--ink-soft); }
.cart__country select { flex: 1; }
.cart__warn { margin-top: 6px; font-size: .9rem; color: var(--terracotta-deep); font-weight: 500; }

/* --------------------------------------------------------------------------
   Policy pages, FAQ and the contact form
   -------------------------------------------------------------------------- */
.policy h2 { margin-top: 1.8em; }
.policy h3 { margin-top: 1.3em; font-size: 1.1rem; }
.policy__meta { font-size: .85rem; color: var(--ink-mute); margin: -6px 0 14px; }
.policy__list { padding-left: 1.2em; display: grid; gap: 8px; }
.faq { margin: 0; }
.faq summary { font-weight: 600; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__aside { background: var(--paper-deep); border-radius: var(--radius); padding: 24px; font-size: .95rem; }
.contact__aside h2 { font-size: 1.1rem; margin: 0 0 6px; }
.contact__aside h2 + * { margin-top: 0; }
.contact__aside p, .contact__aside ul { margin: 0 0 18px; }
.contact__aside ul { padding-left: 1.1em; display: grid; gap: 6px; }
.contact__legal { font-size: .82rem; color: var(--ink-soft); margin-bottom: 0 !important; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; margin: 24px 0 8px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field__hint { font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
    font: inherit;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 20px; }
.notice ul { margin: 6px 0 0; padding-left: 1.2em; }
.notice--ok { background: var(--teal-tint); color: var(--teal-deep); }
.notice--warn { background: #FBEDE4; color: var(--terracotta-deep); }

/* --------------------------------------------------------------------------
   Admin (static server-rendered, forms only)
   -------------------------------------------------------------------------- */
.admin { min-height: 100vh; background: var(--paper-deep); }
.admin__bar { background: var(--white); border-bottom: 1px solid var(--line); }
.admin__inner { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand--sm { font-size: 1.2rem; }
.admin__tag { font-family: var(--font-body); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-left: 6px; font-weight: 600; }
.admin__nav { display: flex; gap: 18px; font-weight: 500; }
.admin__nav a { color: var(--ink); }
.admin__user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--ink-soft); }
.admin__main { max-width: 1240px; margin: 0 auto; padding: 24px 16px 60px; }
.admin__main h1 { font-size: 1.8rem; margin-bottom: 16px; }
.admin__main h2 { font-size: 1.2rem; margin: 0 0 10px; }
.admin__main h3 { font-size: .95rem; margin: 16px 0 6px; font-family: var(--font-body); font-weight: 600; color: var(--ink-soft); }
.admin__card { background: var(--white); border-radius: var(--radius); padding: 32px; max-width: 520px; margin: 40px auto; box-shadow: var(--shadow-sm); }
.admin__card .btn { margin: 8px 0 16px; }
.admin__dev { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; }
.admin__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--white); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 2px; box-shadow: var(--shadow-sm); }
.stat__label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.stat strong { font-size: 1.5rem; font-family: var(--font-display); }
.admin__section, .admin__panel { background: var(--white); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .admin__section, .admin__panel { overflow-x: auto; } }
.admin__lede { color: var(--ink-soft); margin: -6px 0 18px; max-width: 70ch; }
.admin__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.admin__table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin__table th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.admin__table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin__table--tight td { padding: 6px 8px; }
.admin__table--report td:first-child { width: 70%; }
.admin__table .num { text-align: right; white-space: nowrap; }
.admin__row-strong td { font-weight: 700; }
.admin__table img { border-radius: 6px; display: block; }
.admin__filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.admin__filters input, .admin__filters select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.admin__filters input[type="search"] { min-width: 280px; }
.admin__paging { display: flex; gap: 18px; align-items: center; margin-top: 12px; }
.admin__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.admin__links { display: flex; gap: 16px; font-weight: 500; }
.admin__crumb { margin: 0 0 6px; font-size: .9rem; }
.admin__totals, .admin__facts { margin: 12px 0 0; }
.admin__totals div, .admin__facts div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: .92rem; }
.admin__totals dt, .admin__facts dt { color: var(--ink-soft); }
.admin__totals dd, .admin__facts dd { margin: 0; text-align: right; }
.admin__totals-grand { font-weight: 700; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px !important; }
.admin__list { padding-left: 1.1em; margin: 0; font-size: .92rem; display: grid; gap: 4px; }
.admin__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.admin__actions form { margin: 0; }
.admin__inline { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 10px; display: grid; gap: 8px; }
.admin__inline .field input, .admin__inline .field textarea { padding: 8px 10px; }
.admin__danger { color: var(--terracotta-deep); border-color: var(--terracotta-deep); }
.admin__error { color: var(--terracotta-deep); }
.admin__message { max-width: 420px; white-space: pre-wrap; }
.admin__timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.admin__timeline time { color: var(--ink-mute); margin-right: 8px; font-variant-numeric: tabular-nums; }
.status { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--sand); color: var(--ink-soft); vertical-align: middle; }
.status--paid, .status--senttofulfillment { background: var(--teal-tint); color: var(--teal-deep); }
.status--shipped, .status--delivered { background: #E6F2E6; color: #2E6B3A; }
.status--fulfillmenterror { background: #FBEDE4; color: var(--terracotta-deep); }
.status--cancelled, .status--refunded { background: var(--sand); color: var(--ink-mute); }
button[disabled].btn { opacity: .45; cursor: not-allowed; transform: none; }

/* --------------------------------------------------------------------------
   Collections: tiles, index shelves, collection page hero, product chips
   -------------------------------------------------------------------------- */
.ctiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ctiles--3 { grid-template-columns: repeat(3, 1fr); }
.ctiles--search { grid-template-columns: repeat(2, minmax(0, 320px)); margin: 0 0 22px; }
/* Home shelf: the first (in-season or lead) tile spans two columns and two rows. */
.ctiles--home { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
.ctiles--home .ctile--lg { grid-column: span 2; grid-row: span 2; }
.ctile {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--sand);
    text-decoration: none !important;
    box-shadow: var(--shadow-sm);
    color: var(--white);
}
.ctiles--home .ctile--lg { aspect-ratio: auto; min-height: 100%; }
.ctile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; display: block; }
.ctile:hover img { transform: scale(1.05); }
.ctile__label {
    position: absolute;
    inset: auto 0 0 0;
    padding: 56px 16px 16px;
    background: linear-gradient(to top, rgba(30, 42, 58, .9), rgba(30, 42, 58, .35) 60%, rgba(30, 42, 58, 0));
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ctile__label strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.ctile--lg .ctile__label strong { font-size: 1.8rem; }
.ctile__tagline { font-size: .85rem; opacity: .9; line-height: 1.35; display: none; }
.ctile--lg .ctile__tagline, .cshelf .ctile__tagline { display: block; }
.ctile__count { font-size: .78rem; opacity: .8; }
.ctile__flag {
    align-self: flex-start;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    margin-bottom: 4px;
}
.filters--more { margin: 14px 0 0; }
.filters--more a { font-size: .82rem; padding: 6px 12px; }
.filters--more .filters__all { border-style: dashed; }
.browse-by { margin: -12px 0 26px; }
.browse-by__label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }

.cshelf { margin: 0 0 clamp(24px, 4vw, 44px); }
.cshelf .section-head { margin-bottom: 16px; }

/* Collection header: a short editorial band. Text left, a fanned stack of three
   member images right, never taller than about a third of a desktop viewport,
   so the chips and the grid are on screen from the start. */
.chero {
    background: linear-gradient(135deg, var(--paper-deep) 0%, var(--paper) 70%);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 28px;
    margin-bottom: 8px;
}
.chero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; }
.chero .crumbs { margin: 14px 0 14px; }
.chero h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 4px 0 10px; }
.chero .lede { font-size: 1.05rem; max-width: 62ch; margin-bottom: 14px; }
.chero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: .85rem; }
.chero__pill {
    display: inline-flex; align-items: center;
    padding: 6px 12px; border-radius: 999px;
    background: var(--white); border: 1.5px solid var(--line); color: var(--ink);
    text-decoration: none !important; font-weight: 500;
}
.chero__pill span { opacity: .55; font-variant-numeric: tabular-nums; }
.chero__pill--link:hover { border-color: var(--ink); }
.chero__pill--season { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.chero__stack { position: relative; height: 250px; justify-self: end; width: 340px; }
.chero__card {
    position: absolute; top: 50%; left: 50%;
    width: 190px; height: 190px; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow-md);
    border: 4px solid var(--white); background: var(--sand);
    transition: transform .4s ease;
}
.chero__card:nth-child(1) { transform: translate(-108%, -52%) rotate(-7deg); z-index: 1; }
.chero__card:nth-child(2) { transform: translate(-50%, -46%) rotate(2deg); z-index: 3; }
.chero__card:nth-child(3) { transform: translate(8%, -54%) rotate(7deg); z-index: 2; }
.chero:hover .chero__card:nth-child(1) { transform: translate(-116%, -54%) rotate(-9deg); }
.chero:hover .chero__card:nth-child(3) { transform: translate(16%, -56%) rotate(9deg); }

/* A little lift on product cards, so the grid reads as objects rather than a flat sheet. */
.card__media { transition: transform .35s ease, box-shadow .35s ease; }
.card:hover .card__media { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ctile { transition: transform .35s ease, box-shadow .35s ease; }
.ctile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Collections index: a short head, then the shelves. */
.shop-head--index { padding-bottom: 8px; }
.shop-head--index .lede { max-width: 70ch; }

.pdp__collections { margin: 10px 0 0; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pdp__collections-label { color: var(--ink-mute); margin-right: 2px; }
.pdp__collections a {
    padding: 4px 11px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--white);
    color: var(--ink);
    text-decoration: none !important;
    font-weight: 500;
}
.pdp__collections a:hover { border-color: var(--ink); }

@media (max-width: 1000px) {
    .ctiles, .ctiles--home { grid-template-columns: repeat(3, 1fr); }
    .ctiles--home .ctile--lg { grid-column: span 2; grid-row: span 2; }
    .ctiles--3 { grid-template-columns: repeat(3, 1fr); }
    .chero__grid { grid-template-columns: 1fr; gap: 8px; }
    .chero__stack { display: none; }
}
@media (max-width: 640px) {
    .ctiles, .ctiles--home, .ctiles--3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ctiles--home .ctile--lg { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
    .ctiles--search { grid-template-columns: 1fr 1fr; }
    .ctile__label { padding: 40px 12px 12px; }
    .ctile__label strong { font-size: 1.05rem; }
    .ctile--lg .ctile__label strong { font-size: 1.4rem; }
}

/* ==========================================================================
   Design pass (2026-10-25): header mega-menu, editorial hero, rails, strips
   ========================================================================== */

/* --- Navigation: underline instead of pill, mega-menu for Collections --- */
.nav a { border-radius: 0; padding: 8px 10px; position: relative; }
.nav a:hover, .nav a.active { background: transparent; }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav__item { position: static; display: flex; }
.mega {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 26px var(--gutter) 22px;
    z-index: 60;
    animation: mega-in var(--dur-fast) var(--ease);
}
@keyframes mega-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { display: block; }
.mega__inner { display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr; gap: 28px; align-items: start; }
.mega__col h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 10px; }
.mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__col a { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: .92rem; font-weight: 500; color: var(--ink); }
.mega__col a span { color: var(--ink-mute); font-size: .78rem; font-variant-numeric: tabular-nums; }
.mega__col a:hover { color: var(--teal-deep); text-decoration: none; }
.mega__col a::after { display: none; }
.mega__hot { color: var(--teal-deep) !important; }
.mega__feature { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--sand); color: var(--white); text-decoration: none !important; padding: 0 !important; }
.mega__feature::after { display: none; }
.mega__feature img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.mega__feature:hover img { transform: scale(1.05); }
.mega__feature-label { position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; background: linear-gradient(to top, rgba(30, 42, 58, .9), rgba(30, 42, 58, 0)); display: grid; gap: 2px; }
.mega__feature-label strong { font-family: var(--font-display); font-size: 1.2rem; }
.mega__feature-label span:last-child { font-size: .8rem; opacity: .9; }
.mega__all { grid-column: 1 / -1; justify-self: start; font-weight: 600; color: var(--ink); padding: 6px 0 0 !important; }
.mega__all::after { display: none; }
@media (max-width: 900px) {
    .nav__item { display: block; }
    .mega { display: none !important; }
    .nav a::after { display: none; }
    .nav a:hover, .nav a.active { background: var(--paper-deep); border-radius: var(--radius-sm); }
}

/* --- Editorial hero --- */
.hero--editorial { padding: clamp(24px, 4vw, 56px) 0 0; overflow-x: clip; }
.hero--editorial .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero--editorial h1 { margin-bottom: 20px; }
.hero--editorial .lede { font-size: 1.15rem; }
.hero--editorial .hero__ctas { margin-bottom: 0; }
.hero__art { position: relative; margin-right: calc(min(0px, (var(--container) - 100vw) / 2) - var(--gutter)); padding-bottom: 56px; }
.hero__main { aspect-ratio: 4 / 3; border-radius: var(--radius-lg) 0 0 var(--radius-lg); overflow: hidden; background: var(--sand); box-shadow: var(--shadow-lg); }
.hero__main img { width: 100%; height: 100%; object-fit: cover; }
.hero__stack { position: absolute; left: -24px; bottom: 0; display: flex; gap: 14px; }
.hero__stack img { width: 168px; height: 168px; object-fit: cover; border-radius: var(--radius); border: 5px solid var(--paper); box-shadow: var(--shadow-lg); background: var(--sand); }
.hero__stack img:first-child { transform: rotate(-4deg) translateY(6px); }
.hero__stack img:last-child { transform: rotate(3deg); }
@media (max-width: 820px) {
    .hero--editorial { padding-top: 20px; }
    .hero--editorial .hero__grid { grid-template-columns: 1fr; }
    .hero__art { margin-right: 0; padding-bottom: 0; }
    .hero__main { border-radius: var(--radius-lg); aspect-ratio: 16 / 11; }
    .hero__stack { display: none; }
}

.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); margin-top: clamp(24px, 4vw, 48px); }
.trust--bar { justify-content: space-between; padding: 12px 0; gap: 8px 24px; font-size: .88rem; }
.trust--bar li { white-space: nowrap; }
@media (max-width: 820px) { .trust--bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } }

/* --- Category rail: every category in one row, swipeable on phones --- */
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 6 * 16px) / 7);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail .tile { scroll-snap-align: start; }
@media (max-width: 1000px) { .rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); gap: 14px; } }
@media (max-width: 560px) { .rail { grid-auto-columns: 44%; gap: 12px; } }

/* --- How it works: one slim strip with icons --- */
.steps--strip { gap: 28px; counter-reset: none; }
.steps--strip .step { padding-top: 0; }
.steps--strip .step::before { display: none; }
.steps--strip .step svg { width: 30px; height: 30px; color: var(--teal); margin-bottom: 10px; }
.steps--strip .step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.steps--strip .step p { font-size: .9rem; }
@media (max-width: 820px) { .steps--strip { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 480px) { .steps--strip { grid-template-columns: 1fr; } }

/* --- Reviews as a quote wall --- */
.review { position: relative; padding-top: 30px; }
.review::before { content: "\201C"; position: absolute; top: 2px; left: 16px; font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--gold); opacity: .9; }
.review .stars { position: absolute; top: 18px; right: 18px; }
.review blockquote { font-size: 1.12rem; }

/* --- Meet the artist: the image hangs like a framed print --- */
.section--ink .about__media { position: relative; overflow: visible; box-shadow: none; }
.section--ink .about__media::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1.5px solid rgba(251, 248, 243, .35); border-radius: var(--radius); }
.section--ink .about__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); position: relative; }

/* --- Product cards: second image on hover, type line, framed media --- */
.card__media { box-shadow: var(--shadow-sm), var(--shadow-inset); }
.card__media img { transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.card__alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__alt { opacity: 1; }
.card:hover .card__media img:not(.card__alt) { transform: scale(1.04); }
.card:hover .card__media { transform: translateY(-3px); box-shadow: var(--shadow-md), var(--shadow-inset); }
.card__type { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 3px; }
.card__title { font-size: .95rem; font-weight: 500; }
.card:hover .card__title { text-decoration: none; color: var(--teal-deep); }
@media (hover: none) { .card__alt { display: none; } }

/* --- Product page: folded description, thumbnail strip, phone buy bar --- */
details.acc--sub { border-top: 1px solid var(--line); margin-top: 6px; }
details.acc--sub:last-of-type { border-bottom: 0; }
details.acc--sub summary { padding: 10px 0; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
details.acc--sub .acc__body { padding-bottom: 10px; }
details.acc summary { transition: color var(--dur-fast) var(--ease); }
details.acc summary:hover { color: var(--teal-deep); }
.gallery__thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__main { box-shadow: var(--shadow-md), var(--shadow-inset); }
.buybox__amount { font-size: 1.9rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.buybar { display: none; }
@media (max-width: 820px) {
    .buybar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        display: flex; align-items: center; justify-content: space-between; gap: 14px;
        padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
        background: rgba(251, 248, 243, .94);
        backdrop-filter: saturate(160%) blur(10px);
        border-top: 1px solid var(--line);
        box-shadow: 0 -10px 30px rgba(30, 42, 58, .08);
    }
    .buybar__price { font-size: .95rem; color: var(--ink-soft); }
    .buybar__price strong { font-size: 1.25rem; color: var(--ink); font-variant-numeric: tabular-nums; }
    .buybar .btn { padding: 12px 22px; }
    body:has(.buybar) .footer { padding-bottom: 90px; }
}

/* --- Shop: one sticky filter bar; numbered pagination --- */
.filterbar {
    position: sticky; top: var(--header-h); z-index: 30;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0;
    margin: 8px 0 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.filterbar__cats { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px; background: var(--paper-deep); border-radius: 999px; }
.filterbar__cats::-webkit-scrollbar { display: none; }
.filterbar__cats a { padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--ink); white-space: nowrap; text-decoration: none !important; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.filterbar__cats a:hover { background: rgba(255, 255, 255, .7); }
.filterbar__cats a.active { background: var(--ink); color: var(--white); }
.filterbar__count { margin-left: auto; font-size: .85rem; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dropdown { position: relative; }
.dropdown summary { list-style: none; cursor: pointer; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: .88rem; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--dur-fast) var(--ease); }
.dropdown[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.dropdown[open] summary { border-color: var(--ink); }
.dropdown__panel {
    position: absolute; left: 0; top: calc(100% + 8px); z-index: 35;
    width: min(560px, calc(100vw - 2 * var(--gutter)));
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px;
    padding: 14px 16px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    animation: mega-in var(--dur-fast) var(--ease);
}
.dropdown__panel a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 4px; font-size: .9rem; font-weight: 500; color: var(--ink); border-radius: var(--radius-sm); }
.dropdown__panel a:hover { background: var(--paper-deep); text-decoration: none; }
.dropdown__all { grid-column: 1 / -1; color: var(--teal-deep) !important; margin-top: 4px; }
.pager { gap: 6px; }
.pager__num, .pager__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; font-weight: 500; color: var(--ink); text-decoration: none !important; font-variant-numeric: tabular-nums; transition: background var(--dur-fast) var(--ease); }
.pager__num:hover, .pager__btn:hover { background: var(--paper-deep); }
.pager__num--current { background: var(--ink); color: var(--white); }
.pager__gap { color: var(--ink-mute); padding: 0 4px; }
.pager__status { margin-left: 12px; }
@media (max-width: 640px) {
    .filterbar { flex-wrap: wrap; top: var(--header-h); }
    .filterbar__count { display: none; }
}

/* --- Policy pages: a reading column with a sticky contents list; cart and order polish --- */
.policy-layout { display: grid; grid-template-columns: 200px minmax(0, 70ch); gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; font-size: .9rem; }
.toc__label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
.toc a { color: var(--ink-soft); padding: 4px 0 4px 12px; border-left: 2px solid var(--line); text-decoration: none; transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.toc a:hover { color: var(--ink); border-left-color: var(--gold); }
.policy h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
@media (max-width: 820px) { .policy-layout { grid-template-columns: 1fr; } .toc { position: static; grid-template-columns: 1fr 1fr; } }
.cart__thumb img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm), var(--shadow-inset); }
.cart__summary { box-shadow: var(--shadow-md); }
.order__timeline li::before { height: 5px; }
.order__timeline li.done::before { background: linear-gradient(90deg, var(--teal-deep), var(--teal)); }
.order__timeline li.current::before { background: var(--gold); }
/* Grid items default to min-width:auto, so a non-wrapping thumbnail strip would widen the whole page. */
.pdp > * { min-width: 0; }

/* --- Honest reviews: ratings only on reviewed pieces; a spotlight review card set into listings --- */
.card__rating { font-size: .78rem; color: var(--ink-soft); display: flex; align-items: center; gap: 4px; }
.card__rating .stars svg { width: 13px; height: 13px; }
.card__rating-n { color: var(--ink-mute); }
.card--review { border-radius: var(--radius); background: var(--ink); color: var(--paper); box-shadow: var(--shadow-md); aspect-ratio: 1; display: flex; }
.spot { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 20px; width: 100%; }
.spot::before { content: "\201C"; position: absolute; top: 6px; right: 18px; font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--gold); opacity: .55; }
.spot__eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.spot .stars { color: var(--gold); }
.spot__quote { margin: 0; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.4; flex: 1; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.spot__foot { font-size: .82rem; color: rgba(251, 248, 243, .78); display: grid; gap: 2px; }
.spot__foot strong { color: var(--paper); }
.spot__foot a { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(251, 248, 243, .4); }
.spot__foot a:hover { text-decoration-color: var(--gold); }
.spot__date { color: rgba(251, 248, 243, .55); }
.spot__all { font-size: .82rem; font-weight: 600; color: var(--gold); align-self: flex-start; margin-top: 4px; }
@media (max-width: 640px) { .card--review { aspect-ratio: auto; } .spot__quote { -webkit-line-clamp: 5; font-size: 1rem; } }

/* --- Image frames are fixed squares: the picture fills the frame and can never stretch it. --- */
.card__media img, .tile img, .ctile img, .mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media, .tile, .ctile, .mega__feature { position: relative; }
/* Listings end with air before whatever follows (the related-collections band, the footer). */
.listing { padding-bottom: clamp(32px, 5vw, 56px); }

/* --- Grid integrity: the image frame is a fixed square and never shrinks inside the card's flex column.
       Without this the grid measures a squashed frame on its first pass and rows come out shorter than
       their tallest card, which made one column spill into the section below. --- */
.card__media { flex: none; }
.card--review { aspect-ratio: auto; }

/* --- Review band: a full-width editorial pause between rows of a listing --- */
.proof {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    margin: 12px 0;
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
    background: var(--paper-deep);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}
.proof::before { content: "\201C"; position: absolute; top: -14px; left: 22px; font-family: var(--font-display); font-size: 9rem; line-height: 1; color: var(--gold); opacity: .22; pointer-events: none; }
.proof__quote { position: relative; }
.proof__eyebrow { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.proof blockquote { margin: 0 0 18px; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); max-width: 30ch; }
.proof__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .9rem; color: var(--ink-soft); }
.proof__foot .stars { color: var(--gold); }
.proof__foot strong { color: var(--ink); }
.proof__date { color: var(--ink-mute); }
.proof__product { display: grid; gap: 10px; padding: 14px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm), var(--shadow-inset); color: var(--ink); }
.proof__product-link { display: flex; align-items: center; gap: 18px; color: var(--ink); text-decoration: none !important; border-radius: var(--radius-sm); }
.proof__product-link:hover strong { color: var(--teal-deep); }
.proof__product-link:hover .proof__thumb img { transform: scale(1.04); }
.proof__thumb img { transition: transform var(--dur) var(--ease); }
.proof__thumb { position: relative; flex: none; width: 112px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); }
.proof__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proof__product-text { display: grid; gap: 4px; min-width: 0; }
.proof__label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.proof__product-text strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proof__all { font-size: .85rem; font-weight: 600; color: var(--teal-deep); justify-self: start; padding-left: 2px; }
@media (max-width: 820px) {
    .proof { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; }
    .proof::before { font-size: 6rem; top: -8px; left: 12px; }
    .proof blockquote { max-width: none; }
    .proof__thumb { width: 84px; }
}

/* --- Promotions: sale prices, badges, the cart's code field, the announcement line --- */
.card__badge--sale { background: var(--terracotta); color: var(--white); }
.price--sale { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price__was { color: var(--ink-mute); font-weight: 400; text-decoration-color: var(--ink-mute); }
.price__now { color: var(--terracotta-deep); }
.buybox__amount--sale { color: var(--terracotta-deep); }
.buybox__was { font-size: 1.05rem; color: var(--ink-mute); font-weight: 400; margin-left: 6px; }
.buybox__badge { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--terracotta); color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.cart__unit s { color: var(--ink-mute); margin-right: 2px; }
.cart__sale { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #FBEDE4; color: var(--terracotta-deep); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cart__code { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cart__code label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.cart__code-row { display: flex; gap: 8px; }
.cart__code-row input { flex: 1; min-width: 0; font: inherit; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.cart__code-row input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.cart__code-problem { margin: 8px 0 0; font-size: .88rem; color: var(--terracotta-deep); }
.cart__code-note { margin: 8px 0 0; font-size: .85rem; color: var(--ink-soft); }
.cart__code-applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .92rem; color: var(--teal-deep); }
.cart__savings dt, .cart__savings dd { color: var(--terracotta-deep) !important; }
.announce__promo { color: var(--gold); font-weight: 600; text-decoration: none; }
.announce__promo:hover { text-decoration: underline; }

/* --- Admin promotions form --- */
.promo-form { display: grid; gap: 14px; }
@media (min-width: 960px) { .admin__grid--promo { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.promo-form h2 { margin: 10px 0 0; }
.promo-form__checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; font-size: .92rem; }
.promo-form .field input[type="radio"], .promo-form .field input[type="checkbox"] { width: auto; margin-right: 6px; }
.status--live { background: #E6F2E6; color: #2E6B3A; }
.status--scheduled { background: var(--teal-tint); color: var(--teal-deep); }
.status--draft, .status--offseason { background: var(--sand); color: var(--ink-mute); }
.status--ended, .status--exhausted { background: #FBEDE4; color: var(--terracotta-deep); }

/* --- Reviews: request page, replies, disclosure, admin moderation --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rv { max-width: 760px; }
.rv__form { display: grid; gap: 22px; margin-top: 28px; }
.rv__item { border: 1px solid var(--sand); border-radius: var(--radius); padding: 22px 24px; margin: 0; background: #fff; }
.rv__item--done { display: flex; gap: 18px; align-items: center; }
.rv__done { display: grid; gap: 12px; margin-top: 24px; }
.rv__legend { float: left; width: 100%; display: flex; gap: 16px; align-items: center; padding: 0; margin: 0 0 14px; }
.rv__item > .rv__rate { clear: left; }
.rv__legend > span:last-child { display: grid; gap: 2px; }
.rv__thumb { flex: none; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-deep); }
.rv__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv__rate { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin: 0 0 14px; position: relative; }
.rv__rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv__rate label { cursor: pointer; color: var(--sand); transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.rv__rate label svg { width: 34px; height: 34px; display: block; }
.rv__rate input:checked ~ label, .rv__rate label:hover, .rv__rate label:hover ~ label { color: var(--gold); }
.rv__rate label:hover { transform: scale(1.08); }
.rv__rate input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.rv__name { max-width: 360px; }
.rv__submit { display: flex; align-items: center; gap: 20px; }
.rv__reward { margin: 26px 0; padding: 28px 30px; border-radius: var(--radius); background: var(--paper-deep); border: 1px solid var(--sand); text-align: center; }
.rv__reward p { margin: 6px 0 0; }
.rv__code { font-family: var(--font-display); font-size: 2rem; letter-spacing: .08em; font-weight: 700; color: var(--ink); margin: 6px 0 4px !important; }
.review__reply { margin: 8px 0 12px; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--paper-deep); font-size: .95rem; color: var(--ink-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.review__reply-who { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 2px; }
.reviews__disclosure { font-size: .82rem; color: var(--ink-mute); margin: 14px 0 0; }
.review footer .review__source abbr { text-decoration: underline dotted; cursor: help; }
.admin__reviews { display: grid; gap: 14px; }
.admin__review header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.admin__review--pending { border-left: 3px solid var(--gold); }
.admin__review blockquote { margin: 8px 0; padding: 0; font-size: 1rem; white-space: pre-line; }
.admin__review-product { margin: 0 0 4px; font-size: .92rem; }
.admin__review-reply { font-size: .92rem; color: var(--ink-soft); }
.admin__review-replyform { margin-top: 8px; font-size: .92rem; }
.admin__review-replyform textarea { width: 100%; margin: 8px 0; }

/* --- Help hover-overs: a "?" that explains the thing beside it --- */
.help { position: relative; display: inline-block; vertical-align: middle; margin-left: 5px; line-height: 1; }
.help__btn { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--ink-mute); background: var(--white); color: var(--ink-mute); font: 600 11px/1 var(--font-body); padding: 0; cursor: help; display: inline-grid; place-items: center; transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.help:hover .help__btn, .help__btn:focus-visible { color: var(--white); background: var(--teal); border-color: var(--teal); outline: none; }
.help__tip { display: none; position: absolute; z-index: 30; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(320px, 85vw); padding: 10px 13px; border-radius: 10px; background: var(--ink); color: var(--paper); font: 400 .82rem/1.45 var(--font-body); letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; box-shadow: var(--shadow-lg); }
.help__tip::before { content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-bottom-color: var(--ink); }
.help--left .help__tip { left: -6px; transform: none; }
.help--left .help__tip::before { left: 12px; transform: none; }
.help--right .help__tip { left: auto; right: -6px; transform: none; }
.help--right .help__tip::before { left: auto; right: 12px; transform: none; }
.help--wide .help__tip { max-width: min(440px, 85vw); }
.help:hover .help__tip, .help:focus-within .help__tip { display: block; }
.help__tip strong { color: var(--gold); font-weight: 600; }
.help--inline { margin: 0 2px; vertical-align: baseline; }
.help--inline .help__btn { cursor: default; }
.admin__action { display: inline-flex; align-items: center; }
.admin__facts dt .help, .admin__totals dt .help { margin-left: 3px; }
.admin__head h1 .help { vertical-align: middle; }
.admin__links .help { margin-left: 2px; margin-right: 4px; }
th .help { margin-left: 3px; }
th .help__btn { width: 14px; height: 14px; font-size: 9px; }
.admin__table th, .admin__totals dt, .admin__facts dt, .stat__label { white-space: nowrap; }

/* --- Admin: current page, done rows, long messages, promotion form that shows only what applies --- */
.admin__nav a.active, .admin__links a.active { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.admin__row-muted td { color: var(--ink-mute); }
.admin__message details summary { cursor: pointer; color: var(--ink-soft); }
.admin__message details[open] summary { display: none; }
/* The promotion form hides the parts that don't apply to the kind, discount type and scope chosen. Browsers without :has() simply show everything. */
.promo-form:has(input[name="kind"][value="sale"]:checked) .promo-form__codes-only { display: none; }
.promo-form:has(input[name="discountType"][value="percent"]:checked) .promo-form__unit--amount,
.promo-form:has(input[name="discountType"][value="amount"]:checked) .promo-form__unit--percent { display: none; }
.promo-form:has(input[name="scope"]:not([value="categories"]):checked) .promo-form__scope--categories,
.promo-form:has(input[name="scope"]:not([value="collections"]):checked) .promo-form__scope--collections,
.promo-form:has(input[name="scope"]:not([value="products"]):checked) .promo-form__scope--products { display: none; }
.promo-form:has(select[name="seasonCollection"] option:not([value=""]):checked) .promo-form__dates { opacity: .45; }
/* A tick box, its label and its "?" stay on one line. */
.promo-form .field:has(> label > input[type="checkbox"]) { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.promo-form .field:has(> label > input[type="checkbox"]) > label { margin: 0; }

/* ---- Admin: listings ----
   The list shows big pictures; the editor is a workbench for the desk: a
   rail that says what is ready, one section at a time in the middle, and
   guidance on the right. Nothing reaches the site without a sheet that
   says what will change first. */
.admin__tabs { margin: 0 0 14px; align-items: center; }

/* The list */
.listings td { vertical-align: middle; }
.listings__pic { width: 112px; padding: 8px 8px 8px 0 !important; }
.listings__pic a { display: block; width: 96px; }
.listings img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--paper-deep); transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.listings a:hover img { transform: scale(1.03); box-shadow: var(--shadow-md); }
.listings__nopic { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 10px; border: 1px dashed var(--line); font-size: .75rem; color: var(--ink-mute); text-align: center; }
.listings__title { display: grid; gap: 3px; }
.listings__title > a { font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.listings__title .muted { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listings__title .status { justify-self: start; }
.listings tbody tr:hover td { background: var(--paper); }

/* ---- The workbench ---- */
.admin__main:has(.wb) { max-width: 1560px; padding-top: 0; }
.wb { --wb-ok: var(--ok); --wb-warn: #B98318; --wb-bad: var(--terracotta); --wb-radius: 18px; --wb-top: 82px; }
.wb:not(.wb--js) [data-open], .wb:not(.wb--js) [data-progress-stop] { display: none; }
/* The hidden attribute must win over the display a class sets (buttons, the dirty pill, warnings). */
.wb [hidden] { display: none !important; }
/* Fallback controls for when the script is off or failed to start: plain forms that post the same actions. */
.wb--js .wb__nojs { display: none !important; }
/* Controls that only make sense with the script (the web-address unlock, AI Suggest). */
.wb:not(.wb--js) .wb__jsonly { display: none !important; }
.wb__nojs form, form.wb__nojs { margin: 0; }

/* Type scale inside the workbench: 1rem body, .875rem secondary, .8rem small, .72rem caps. */
.wb__top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 16px 12px; margin: 0 -16px 18px; background: rgba(243, 237, 227, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.wb__top-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wb__back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none !important; font-size: 1.1rem; flex: none; transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.wb__back:hover { border-color: var(--ink); transform: translateX(-2px); }
.wb__ident { min-width: 0; }
.admin__main .wb__h1 { font-size: 1.25rem; margin: 0 0 3px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; font-size: .875rem; color: var(--ink-soft); }
.wb__top-right { display: flex; align-items: center; gap: 10px; flex: none; }
.wb__top-right .btn { padding: 11px 20px; white-space: nowrap; }
.wb__top-right .btn--primary { box-shadow: none; }
.wb__dirty { display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; font-size: .875rem; font-weight: 600; color: var(--terracotta-deep); }
.wb__dirty-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 3px rgba(212, 104, 58, .18); }
.wb--dirty [data-open="sheet-publish"], .wb--dirty [data-open="sheet-save"] { box-shadow: 0 0 0 3px rgba(212, 104, 58, .22); }
.wb__notice { margin: 0 0 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.wb__notice-more { opacity: .85; }
.wb__undo { margin: 0; }
.btn.is-busy { opacity: .6; cursor: progress; }

/* Toasts: news from an action that happened in place */
.wb__toasts { position: fixed; bottom: 24px; right: 24px; z-index: 40; display: grid; gap: 8px; width: min(440px, calc(100vw - 48px)); justify-items: end; pointer-events: none; }
.wb__toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 100%; padding: 12px 10px 12px 16px; border-radius: 12px; border-left: 4px solid var(--ink-mute); background: var(--ink); color: var(--paper); box-shadow: var(--shadow-lg); font-size: .875rem; line-height: 1.45; animation: wb-toast-in var(--dur) var(--ease); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.wb__toast.is-ok { border-left-color: var(--ok); }
.wb__toast.is-bad { border-left-color: var(--terracotta); }
.wb__toast.is-leaving { opacity: 0; transform: translateY(6px); }
.wb__toast a { color: var(--gold); font-weight: 600; white-space: nowrap; }
.wb__toast .btn { padding: 6px 12px; font-size: .8rem; color: var(--paper); border-color: rgba(255, 255, 255, .45); white-space: nowrap; }
.wb__toast .btn:hover { border-color: var(--paper); }
.wb__toast-x { margin-left: auto; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--paper); font-size: 1.1rem; line-height: 1; cursor: pointer; opacity: .7; }
.wb__toast-x:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
@keyframes wb-toast-in { from { opacity: 0; transform: translateY(8px); } }

.wb__body { display: grid; grid-template-columns: 248px minmax(0, 880px) 296px; justify-content: center; gap: 26px; align-items: start; }
/* The narrower layouts come after the rail and guide rules below in the cascade, hence the extra specificity. */
@media (max-width: 1460px) { .wb__body { grid-template-columns: 232px minmax(0, 1fr); } .wb__body .wb__guide { grid-column: 2; position: static; } }
@media (max-width: 980px) { .wb__body { grid-template-columns: minmax(0, 1fr); } .wb__body .wb__rail { position: static; } .wb__body .wb__guide { grid-column: 1; } }
/* The words and prices parts spread over the guide column: suggestion panels beside the fields, and the price table, need the room. */
.wb--wide .wb__body { grid-template-columns: 248px minmax(0, 1202px); }
.wb--wide .wb__guide { display: none; }
@media (max-width: 1460px) { .wb--wide .wb__body { grid-template-columns: 232px minmax(0, 1fr); } }
@media (max-width: 980px) { .wb--wide .wb__body { grid-template-columns: minmax(0, 1fr); } }

/* The rail: one line per part, a glyph that says what the colour means */
.wb__rail { position: sticky; top: var(--wb-top); display: grid; gap: 16px; }
.wb__hero { display: block; width: 120px; height: 120px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-deep); box-shadow: var(--shadow-sm); margin-left: 12px; }
.wb__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb__hero-empty { display: grid; place-items: center; height: 100%; font-size: .8rem; color: var(--ink-soft); text-align: center; padding: 8px; }
.wb__nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wb__nav-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none !important; border: 1px solid transparent; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.wb__nav-item:hover { background: rgba(255, 255, 255, .6); }
.wb__nav-item.is-current { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-sm); }
.wb__nav-text { display: grid; gap: 2px; min-width: 0; }
.wb__nav-name { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.wb__nav-note { font-size: .8rem; color: var(--ink-soft); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wb__dot { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; font: 700 10px/1 var(--font-body); color: var(--white); background: transparent; }
.is-done > .wb__dot { background: var(--wb-ok); }
.is-done > .wb__dot::before { content: "\2713"; }
.is-attention > .wb__dot { background: var(--wb-warn); }
.is-attention > .wb__dot::before { content: "!"; font-size: 11px; }
.is-blocked > .wb__dot { background: var(--wb-bad); box-shadow: 0 0 0 3px rgba(212, 104, 58, .18); }
.is-blocked > .wb__dot::before { content: "\00d7"; font-size: 13px; }
.is-blocked .wb__nav-note { color: var(--terracotta-deep); }
.is-attention .wb__nav-note { color: var(--warn); }

/* The stage */
.wb__stage { min-width: 0; display: grid; gap: 22px; }
.wb__form { display: contents; }
.wb__section { background: var(--white); border-radius: var(--wb-radius); padding: 30px 34px 34px; box-shadow: var(--shadow-sm); border: 1px solid rgba(30, 42, 58, .05); }
.wb--js .wb__section:not(.is-current) { display: none; }
.wb__section-head { margin: 0 0 24px; }
.wb__section-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 6px; }
.admin__main .wb__section-head h2 { font-size: 1.5rem; margin: 0; }
.wb__section-head p { margin: 0; color: var(--ink-soft); max-width: 70ch; line-height: 1.5; }
.wb__badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.wb__badge--later { background: var(--paper-deep); color: var(--ink-soft); }
.wb__badge--now { background: var(--warn-tint); color: var(--warn); }
.wb__badge--safe { background: var(--ok-tint); color: var(--ok); }
.admin__main .wb__kicker { margin: 28px 0 10px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.wb__empty { color: var(--ink-soft); padding: 20px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.wb__hint { margin: 6px 0 0; font-size: .875rem; color: var(--ink-soft); line-height: 1.4; }
.wb__hint--warn { color: var(--terracotta-deep); }

/* Fields */
.wb__field + .wb__field, .wb__row + .wb__field, .wb__field + .wb__row, .wb__row + .wb__row, .wb__checks + .wb__row, .wb__field + .wb__checks { margin-top: 20px; }
.wb__field label { display: flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--ink); }
.wb__field label .help { margin-left: 0; }
.wb__count { margin-left: auto; font-weight: 400; font-size: .8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.wb__count.is-warn { color: var(--warn); }
.wb__count.is-bad { color: var(--terracotta-deep); font-weight: 600; }
.wb__field input, .wb__field select, .wb__field textarea { font-size: 1rem; padding: 12px 14px; line-height: 1.45; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.wb__field input:hover, .wb__field select:hover, .wb__field textarea:hover { border-color: var(--ink-mute); }
.wb__field input:focus, .wb__field select:focus, .wb__field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 122, 139, .18); }
.wb__field textarea { resize: vertical; }
.wb__field--title input { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; padding: 14px 16px; }
textarea[name="description"] { min-height: 480px; line-height: 1.6; }
.wb__row { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .wb__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wb__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wb__row > .wb__field { margin-top: 0 !important; }
.wb__prefixed { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.wb__prefixed:hover { border-color: var(--ink-mute); }
.wb__prefixed:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 122, 139, .18); }
.wb__prefixed > span { padding: 0 0 0 14px; color: var(--ink-soft); font-size: .95rem; white-space: nowrap; }
.wb__field .wb__prefixed input { border: 0; border-radius: 0; box-shadow: none !important; padding-left: 2px; }
.wb__prefixed.is-locked { background: var(--paper); }
.wb__prefixed.is-locked input { color: var(--ink-soft); cursor: default; }
.wb__prefixed.is-locked:hover { border-color: var(--line); }
.wb__prefixed.is-locked:focus-within { border-color: var(--line); box-shadow: none; }
.wb__unlock { flex: none; margin: 4px 4px 4px 8px; padding: 5px 12px; font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: border-color var(--dur-fast) var(--ease); }
.wb__unlock:hover { border-color: var(--ink); }
.wb__notes-row { display: flex; align-items: center; gap: 10px; }
.wb__notes-row input { flex: 1; min-width: 0; }
.wb__field--notes label .muted { font-weight: 400; }

/* A field with AI Suggest: the button sits in the label bar, the answer opens in a panel to the right of the field */
.wb__labelbar { display: flex; align-items: center; gap: 12px; }
.wb__labelbar label { flex: 1; min-width: 0; }
.wb__ai { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(43, 122, 139, .35); background: var(--teal-tint); color: var(--teal-deep); font: inherit; font-size: .8rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.wb__ai:hover, .wb__ai.is-open { background: var(--teal); color: var(--white); border-color: var(--teal); }
.wb__ai:hover .wb__ai-spark, .wb__ai.is-open .wb__ai-spark { color: var(--white); }
.wb__ai.is-busy { opacity: .75; cursor: progress; }
.wb__ai-spark { color: var(--gold); font-size: .95rem; line-height: 1; transition: color var(--dur-fast) var(--ease); }
.wb__pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.wb__pair.has-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.wb__pair-mine { min-width: 0; }
.wb__pair-mine > input, .wb__pair-mine > textarea, .wb__pair-mine > select { width: 100%; }
.wb__row--2 > .wb__field:has(.has-panel) { grid-column: 1 / -1; }
.wb__panel { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 14px 16px 16px; border-radius: 14px; border: 1px solid rgba(43, 122, 139, .3); background: var(--teal-tint); animation: wb-panel-in var(--dur) var(--ease); }
@keyframes wb-panel-in { from { opacity: 0; transform: translateX(8px); } }
.wb__panel-head { display: flex; align-items: center; gap: 10px; }
.wb__panel-head strong { font-size: .95rem; flex: 1; min-width: 0; }
.wb__panel-meta { margin: -6px 0 0; font-size: .8rem; color: var(--ink-soft); }
.wb__panel-notes { font-size: .8rem; }
.wb__panel-notes summary { cursor: pointer; color: var(--warn); font-weight: 600; list-style: none; }
.wb__panel-notes summary::-webkit-details-marker { display: none; }
.wb__panel-notes summary::before { content: "\25B8\a0"; }
.wb__panel-notes[open] summary::before { content: "\25BE\a0"; }
.wb__panel-notes[open] summary { margin-bottom: 6px; }
.wb__panel-notes .wb__panel-warn + .wb__panel-warn { margin-top: 6px; }
.wb__panel-again { flex: none; padding: 0; font: inherit; font-size: .8rem; font-weight: 600; color: var(--teal-deep); background: transparent; border: 0; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(43, 122, 139, .4); text-underline-offset: 3px; }
.wb__panel-again:hover { text-decoration-color: var(--teal-deep); }
.wb__panel-x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.wb__panel-x:hover { background: rgba(43, 122, 139, .15); color: var(--ink); }
.wb__panel.is-working [data-panel-stop], .wb__panel.is-failed .wb__panel-x { margin-left: auto; }
.wb__panel-stage { margin: 0; font-size: .875rem; font-weight: 600; color: var(--teal-deep); }
.wb__panel-note { margin: 0; font-size: .8rem; color: var(--ink-soft); line-height: 1.45; }
.wb__panel-warn { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--warn-tint); color: var(--warn); font-size: .8rem; line-height: 1.45; }
.wb__panel pre { white-space: pre-wrap; font: inherit; font-size: .95rem; line-height: 1.55; margin: 0; background: var(--white); border: 1px solid rgba(43, 122, 139, .2); padding: 12px 14px; border-radius: 10px; max-height: 560px; overflow: auto; }
.wb__panel-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; font-size: .8rem; }
.wb__panel.is-used { border-color: var(--teal); background: #F4FAFB; }
.wb__panel.is-same pre { opacity: .7; }
.wb__panel.is-failed { background: var(--bad-tint); border-color: rgba(212, 104, 58, .4); }
.wb__field--check { display: flex; align-items: center; gap: 4px; align-self: end; min-height: 48px; }
.wb__field--check label { font-weight: 500; cursor: pointer; }
.wb__field--check input[type="checkbox"] { width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--teal); cursor: pointer; }
.wb__more { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.wb__more summary { cursor: pointer; font-weight: 600; font-size: .95rem; list-style: none; display: flex; align-items: center; gap: 10px; }
.wb__more summary::-webkit-details-marker { display: none; }
.wb__more summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(-45deg); transition: transform var(--dur-fast) var(--ease); }
.wb__more[open] summary::before { transform: rotate(45deg); }
.wb__more[open] summary { margin-bottom: 18px; }
.wb__more .muted { font-weight: 400; font-size: .875rem; }
.wb__more > .wb__kicker:first-of-type { margin-top: 0; }
.wb__style { display: grid; gap: 20px; font-size: .875rem; color: var(--ink-soft); line-height: 1.5; }
@media (min-width: 900px) { .wb__style { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin__main .wb__style h4 { margin: 0 0 6px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-family: var(--font-body); }
.wb__style ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.wb__style strong { color: var(--ink); }
.wb__group { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px 20px; align-items: end; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.wb__group .wb__field { margin-top: 0 !important; }
.wb__group .wb__hint { grid-column: 1 / -1; margin: 2px 0 0; }
.wb__group .wb__hint strong { color: var(--ink); }
@media (max-width: 899px) { .wb__group { grid-column: auto; } }

/* Live checks */
.wb__checks { display: grid; gap: 6px; }
.wb__check { margin: 0; padding: 9px 12px 9px 36px; border-radius: 10px; font-size: .875rem; line-height: 1.45; position: relative; }
.wb__check::before { content: ""; position: absolute; left: 14px; top: 13px; width: 10px; height: 10px; border-radius: 50%; }
.wb__check.is-ok { background: var(--ok-tint); color: var(--ok); }
.wb__check.is-ok::before { background: var(--wb-ok); }
.wb__check.is-warn { background: var(--warn-tint); color: var(--warn); }
.wb__check.is-warn::before { background: var(--wb-warn); }
.wb__check.is-bad { background: var(--bad-tint); color: var(--terracotta-deep); }
.wb__check.is-bad::before { background: var(--wb-bad); }
.is-updated { outline: 2px solid var(--teal) !important; outline-offset: 1px; box-shadow: none !important; }

/* Sizes & prices */
.wb__table-wrap { overflow-x: auto; }
.wb__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.wb__table th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.wb__table td { padding: 10px; border-bottom: 1px solid var(--paper-deep); vertical-align: middle; }
.wb__table tr.is-off td:not(.wb__col-offered), .wb__table tr.is-off .wb__cell-input, .wb__table tr.is-off .wb__money input, .wb__table tr.is-off select { color: var(--ink-mute); }
.wb__col-offered { width: 64px; text-align: center; }
.wb__col-offered input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--teal); cursor: pointer; vertical-align: middle; }
.wb__col-money { width: 120px; white-space: nowrap; }
.wb__col-margin { width: 120px; white-space: nowrap; text-align: right; }
.wb__table th.wb__col-money, .wb__table th.wb__col-margin, td.wb__cost { text-align: right; }
.wb__col-adv { display: none; }
.wb--advanced .wb__col-adv { display: table-cell; }
.wb__cell-input, .wb__table select { font: inherit; font-size: .95rem; color: var(--ink); padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); width: 100%; min-width: 0; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.wb__cell-input--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875rem; min-width: 110px; }
.wb__table select { min-width: 130px; }
.wb__cell-input:hover, .wb__table select:hover { border-color: var(--ink-mute); }
.wb__cell-input:focus, .wb__table select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 122, 139, .18); }
.wb__money { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow: hidden; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.wb__money:hover { border-color: var(--ink-mute); }
.wb__money:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 122, 139, .18); }
.wb__money > span { padding-left: 11px; color: var(--ink-soft); font-weight: 500; }
.wb__money input { width: 84px; border: 0; background: transparent; font: inherit; font-size: .95rem; padding: 9px 11px 9px 4px; text-align: right; font-variant-numeric: tabular-nums; outline: none; color: var(--ink); }
.wb__cost { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.wb__margin { font-weight: 600; font-variant-numeric: tabular-nums; }
.wb__margin.is-ok { color: var(--ok); }
.wb__margin.is-warn { color: var(--warn); }
.wb__margin.is-bad { color: var(--terracotta-deep); }
.wb__margin.is-muted { color: var(--ink-soft); font-weight: 400; }
.wb__toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .875rem; color: var(--ink-soft); cursor: pointer; }
.wb__toggle input { accent-color: var(--teal); width: 16px; height: 16px; }
.wb__guide-inline { margin-top: 26px; padding: 20px 24px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: .875rem; line-height: 1.55; color: var(--ink-soft); }
.admin__main .wb__guide-inline h3, .admin__main .wb__how h3 { margin: 0 0 8px; font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-family: var(--font-display); }
.admin__main .wb__guide-inline h4 { margin: 14px 0 4px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-family: var(--font-body); }
.wb__guide-inline p, .wb__how p { margin: 0 0 8px; }
.wb__guide-inline p:last-child, .wb__how p:last-child { margin-bottom: 0; }
.wb__guide-inline strong, .wb__how strong { color: var(--ink); }
.wb__swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 2px; }
.wb__swatch.is-bad { background: var(--wb-bad); }
.wb__swatch.is-warn { background: var(--wb-warn); }

/* Collections */
.wb__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; font-size: .95rem; }
.wb__tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name select" "rule select"; align-items: center; column-gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.wb__tile:hover { border-color: var(--ink-mute); }
.wb__tile.is-in { background: var(--teal-tint); border-color: rgba(43, 122, 139, .35); }
.wb__tile-name { grid-area: name; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wb__tile.is-hidden { background: var(--paper); border-style: dashed; }
.wb__tile-rule { grid-area: rule; font-size: .8rem; color: var(--ink-soft); }
.wb__tile select { grid-area: select; font: inherit; font-size: .875rem; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); }

/* Pictures */
.wb__pictures { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.wb__picture { margin: 0; display: grid; gap: 8px; align-content: start; }
.wb__picture-frame { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-deep); }
.wb__picture img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform var(--dur) var(--ease); }
.wb__picture-frame:hover img { transform: scale(1.03); }
.wb__picture.is-main .wb__picture-frame { outline: 3px solid var(--teal); outline-offset: -3px; }
.wb__picture-tag { position: absolute; top: 8px; left: 8px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--teal); color: var(--white); }
.wb__picture-tag--warn { top: auto; bottom: 8px; background: var(--terracotta); color: var(--white); }
.wb__alt { width: 100%; font: inherit; font-size: .875rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.wb__alt:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 122, 139, .18); }
.wb__picture-actions { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
.wb__picture:hover .wb__picture-actions, .wb__picture:focus-within .wb__picture-actions, .wb:not(.wb--js) .wb__picture-actions { opacity: 1; }
@media (hover: none) { .wb__picture-actions { opacity: 1; } }
.wb__picture-actions form { margin: 0; }
.wb__picture-actions .btn--sm { padding: 5px 10px; font-size: .8rem; }
.wb__picture-remove { margin-left: auto !important; }
.wb__picture-remove .btn--sm { padding: 4px 9px; font-size: 1.05rem; line-height: 1; }
.wb__add { display: grid; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .wb__add { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.wb__add-form { display: grid; gap: 8px; align-content: start; }
.wb__add-form label { font-weight: 600; font-size: .875rem; display: flex; align-items: center; gap: 6px; }
.wb__add-form input { font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; }
.wb__add-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 122, 139, .18); }
.wb__add-form input[type="file"] { padding: 7px 8px; }
.wb__add-form input[type="file"]::file-selector-button { font: inherit; font-size: .875rem; font-weight: 600; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-right: 12px; cursor: pointer; }
.wb__add-form input[type="file"]::file-selector-button:hover { border-color: var(--ink); }
.wb__add-form button { justify-self: start; }
.wb__add-form .wb__hint { margin: 0; }
.wb__video { display: grid; gap: 20px; }
@media (min-width: 900px) { .wb__video { grid-template-columns: 280px minmax(0, 1fr); } }
.wb__video-frame { border-radius: 14px; overflow: hidden; background: var(--ink); aspect-ratio: 1; border: 1px solid var(--line); }
.wb__video-player { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.wb__video-text { display: grid; gap: 12px; align-content: start; font-size: .95rem; line-height: 1.5; }
.wb__video-text p { margin: 0; color: var(--ink-soft); }
.wb__video-text strong { color: var(--ink); }
.wb__video-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .875rem; }
.wb__video-facts div { display: flex; gap: 6px; }
.wb__video-facts dt { color: var(--ink-soft); }
.wb__video-facts dd { margin: 0; font-weight: 500; }
.wb__video-text .wb__actions { align-items: center; }
.wb__video-text .wb__actions .wb__hint { margin: 0; }
.wb__video-none { margin: 0; padding: 16px 18px; border: 1px dashed var(--line); border-radius: 12px; }

/* AI Suggest's spinner, and the comparison block the no-script path still renders */
.wb__spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--teal); animation: wb-spin .8s linear infinite; flex: none; }
@keyframes wb-spin { to { transform: rotate(360deg); } }
.wb__compare { margin-top: 22px; display: grid; gap: 14px; transition: opacity var(--dur) var(--ease); }
.wb__compare:empty { display: none; }
.wb__compare.is-stale { opacity: .4; pointer-events: none; }
.wb__compare-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wb__compare-btns { display: flex; gap: 8px; }
.admin__main .wb__compare-head h3 { margin: 0; font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-family: var(--font-display); }
.wb__compare .notice { margin: 0; }
.wb__used-note { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--warn-tint); color: var(--warn); font-size: .875rem; }
.wb__cmp { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; display: grid; gap: 10px; }
.wb__cmp.is-same { opacity: .7; padding-bottom: 14px; }
.wb__cmp.is-same .wb__cmp-cols { display: none; }
.wb__cmp.is-used { border-color: var(--teal); background: #F4FAFB; }
.wb__cmp header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wb__cmp-cols { display: grid; gap: 12px; }
@media (min-width: 900px) { .wb__cmp-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wb__cmp-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.wb__cmp-tag--new { color: var(--teal-deep); }
.wb__cmp pre { white-space: pre-wrap; font: inherit; font-size: .875rem; line-height: 1.55; margin: 0; background: var(--paper); border: 1px solid var(--paper-deep); padding: 12px 14px; border-radius: 10px; }
.wb__cmp-cols > div:last-child pre { background: var(--teal-tint); border-color: rgba(43, 122, 139, .25); }
.wb__used { font-size: .8rem; font-weight: 600; color: var(--ok); margin-right: 8px; }

/* Site & Printful */
.wb__facts-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .wb__facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wb__facts { margin: 0; }
.wb__facts div { display: grid; grid-template-columns: max-content 1fr; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--paper-deep); font-size: .95rem; }
.wb__facts dt { color: var(--ink-soft); white-space: nowrap; display: flex; align-items: center; }
.wb__facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.wb__list { margin: 0 0 14px; padding-left: 1.2em; display: grid; gap: 6px; font-size: .95rem; line-height: 1.45; }
.wb__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wb__actions form { margin: 0; }
.wb__action-list { display: grid; gap: 10px; }
.wb__how { margin-top: 24px; padding: 18px 22px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
.wb__action { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
.wb__action-text { display: grid; gap: 10px; min-width: 0; }
.wb__action-text > strong { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 1.05rem; }
.wb__why { margin: 0; display: grid; gap: 6px; }
.wb__why div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; font-size: .875rem; line-height: 1.45; }
.wb__why dt { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.wb__why dd { margin: 0; color: var(--ink-soft); }
.wb__why em { font-style: normal; font-weight: 600; color: var(--ink); }
@media (max-width: 899px) { .wb__why div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.wb__tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--paper-deep); color: var(--ink-soft); white-space: nowrap; }
.wb__tag--safe { background: var(--ok-tint); color: var(--ok); }
.wb__tag--warn { background: var(--warn-tint); color: var(--warn); }
.wb__tag--bad { background: var(--bad-tint); color: var(--terracotta-deep); }
.wb__guide-marks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wb__guide-marks li { display: grid; gap: 4px; justify-items: start; }
.wb__action form { margin: 0; }
.wb__action .btn { white-space: nowrap; flex: none; }
.wb__action--caution { border-color: rgba(185, 131, 24, .5); background: #FFFCF4; }
.wb__action--danger { border-color: rgba(212, 104, 58, .4); background: #FFF8F4; }
.wb__noscript-delete { display: grid; gap: 6px; justify-items: end; }
.wb__noscript-delete input { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; width: 120px; margin-left: 6px; text-transform: uppercase; }

/* The guide */
.wb__guide { position: sticky; top: var(--wb-top); }
.wb__guide-card { padding: 22px 24px; border-radius: var(--wb-radius); background: rgba(255, 255, 255, .55); border: 1px solid rgba(30, 42, 58, .06); font-size: .875rem; line-height: 1.55; color: var(--ink-soft); }
.wb--js .wb__guide-card:not(.is-current) { display: none; }
.wb__guide-card + .wb__guide-card { margin-top: 14px; }
.admin__main .wb__guide-card h3 { margin: 0 0 10px; font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-family: var(--font-display); }
.admin__main .wb__guide-card h4 { margin: 16px 0 4px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-family: var(--font-body); }
.wb__guide-card p { margin: 0 0 8px; }
.wb__guide-card ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.wb__guide-card strong { color: var(--ink); }

/* Sheets: what will happen, before it happens */
.sheet { border: 0; padding: 0; border-radius: 22px; width: min(640px, 92vw); max-height: 90vh; box-shadow: var(--shadow-lg); background: var(--white); color: var(--ink); opacity: 1; transform: translateY(0); transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), overlay var(--dur-fast) allow-discrete, display var(--dur-fast) allow-discrete; }
@starting-style { .sheet[open] { opacity: 0; transform: translateY(10px); } }
.sheet::backdrop { background: rgba(30, 42, 58, .45); backdrop-filter: blur(4px); }
.sheet__body { padding: 30px 34px 28px; margin: 0; }
.admin__main .sheet h2 { font-size: 1.5rem; margin: 0 0 8px; }
.admin__main .sheet h3 { margin: 20px 0 8px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.sheet__lede { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.sheet__lede:empty { display: none; }
.sheet__list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .95rem; line-height: 1.45; }
.sheet__list li.is-bad { color: var(--terracotta-deep); font-weight: 600; }
.sheet__list li.is-bad .sheet__since { font-weight: 400; }
.sheet__list li.is-warn { color: var(--warn); font-weight: 600; }
.sheet__list li.is-ok { color: var(--ok); font-weight: 600; list-style: none; margin-left: -1.2em; }
.sheet__list li.is-ok::before { content: "\2713\00a0\00a0"; }
.sheet__list li.is-site { color: var(--ink-soft); }
.sheet__warn { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--warn-tint); color: var(--warn); font-size: .875rem; line-height: 1.45; }
.sheet__options { display: grid; gap: 10px; margin-top: 20px; }
.sheet__option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: .875rem; line-height: 1.45; cursor: pointer; }
.sheet__option input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--teal); }
.sheet__option[hidden] { display: none; }
.sheet__typed { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .95rem; }
.sheet__typed input { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; width: 150px; letter-spacing: .08em; text-transform: uppercase; }
.sheet__typed input:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(212, 104, 58, .18); }
.sheet__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.sheet--danger .sheet__body { border-top: 4px solid var(--terracotta); }
.btn--danger { background: var(--terracotta-deep); box-shadow: none; }
.btn--danger:hover { background: #9A4322; }
.btn:focus-visible { border-radius: 999px; }

/* Templates page, unchanged */
.template-form { display: grid; gap: 8px; }
.template-form textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.45; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.status--listing-active { background: var(--ok-tint); color: var(--ok); }
.status--listing-draft { background: var(--sand); color: var(--ink-mute); }
.status--listing-archived { background: var(--bad-tint); color: var(--terracotta-deep); }
.status--review { background: var(--warn-tint); color: var(--warn); }

/* ---- Collections admin: the overview list and the editor (.cx) ---- */
.cx__how { padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.cx__how h2 { font-size: 1rem; margin: 0 0 6px; }
.cx__how p { margin: 0; color: var(--ink-soft); line-height: 1.5; max-width: 80ch; }
.cx__shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 12px; }
.cx__shelf-head h2 { margin: 0; }
.cx__shelf-head p { margin: 0; font-size: .9rem; }
.cx__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cx__row { display: grid; grid-template-columns: 72px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr) auto auto; align-items: center; gap: 16px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.cx__row:hover { border-color: var(--ink-mute); box-shadow: var(--shadow-sm); }
.cx__row.is-hidden { background: var(--paper); }
.cx__row.is-hidden .cx__pic img, .cx__row.is-empty .cx__pic img { filter: grayscale(1); opacity: .6; }
.cx__row:target { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 122, 139, .18); }
.cx__pic { display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--paper-deep); }
.cx__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx__pic-empty { display: block; width: 100%; height: 100%; }
.cx__name { display: grid; gap: 2px; min-width: 0; }
.cx__name a { color: var(--ink); text-decoration: none; }
.cx__name a:hover { text-decoration: underline; }
.cx__tagline { font-size: .85rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx__slug { font-size: .78rem; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx__count { display: grid; gap: 2px; font-size: .9rem; white-space: nowrap; }
.cx__count .cx__bytype { white-space: normal; }
.cx__count strong { font-size: 1.05rem; }
.cx__bytype { font-size: .8rem; color: var(--ink-soft); }
.cx__role, .cx__state { display: grid; gap: 4px; justify-items: start; font-size: .85rem; }
.cx__role-note { color: var(--ink-soft); font-size: .8rem; }
.cx__promo { font-size: .8rem; color: var(--teal-deep); }
.cx__move { display: grid; gap: 2px; }
.cx__move form { margin: 0; }
.cx__arrow { width: 30px; height: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font-size: .95rem; cursor: pointer; transition: border-color var(--dur-fast) var(--ease); }
.cx__arrow:hover:not(:disabled) { border-color: var(--ink); }
.cx__arrow:disabled { opacity: .3; cursor: default; }
.cx__links { display: flex; gap: 6px; }
.cx__loose { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; }
.cx__loose a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: .9rem; padding: 4px 6px; border-radius: 8px; }
.cx__loose a:hover { background: var(--paper); }
.cx__loose img { border-radius: 6px; flex: none; }
@media (max-width: 1100px) { .cx__row { grid-template-columns: 56px minmax(0, 1fr) auto auto; grid-template-areas: "pic name move links" "pic count move links" "pic role move links" "pic state move links"; } .cx__pic { width: 56px; height: 56px; grid-area: pic; } .cx__name { grid-area: name; } .cx__count { grid-area: count; } .cx__role { grid-area: role; } .cx__state { grid-area: state; } .cx__move { grid-area: move; } .cx__links { grid-area: links; flex-direction: column; } }

/* The editor */
.cx .wb__hero img[hidden] { display: none; }
.cx__switch { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; margin: 0 0 22px; }
.cx__switch input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.cx__switch > span { display: grid; gap: 3px; }
.cx__switch-note { font-size: .875rem; color: var(--ink-soft); line-height: 1.45; }
.cx__radios { display: grid; gap: 8px; margin: 0 0 12px; }
.cx__radio { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.cx__radio:hover { border-color: var(--ink-mute); }
.cx__radio:has(input:checked) { background: var(--teal-tint); border-color: rgba(43, 122, 139, .35); }
.cx__radio input { margin-top: 4px; flex: none; }
.cx__radio > span { display: grid; gap: 2px; }
.cx__radio-note { font-size: .85rem; color: var(--ink-soft); line-height: 1.45; }
.cx__season { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); margin: 0 0 26px; }
.wb--js .cx__season.is-off { display: none; }
.cx__kicker-note { margin: -4px 0 12px; max-width: 70ch; }
.cx__season-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .95rem; }
.cx__season-row select { font: inherit; font-size: .9rem; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); }
.cx .wb__kicker { margin: 26px 0 10px; }
.cx__find { position: relative; }
.cx__find input[type="search"] { width: 100%; cursor: pointer; }
.cx__find-results { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 440px; overflow: auto; min-width: min(360px, 100%); }
.cx__find-group { position: sticky; top: -6px; margin: 4px 0 2px; padding: 6px 10px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); background: var(--white); }
.cx__find-pick.is-chosen { background: var(--teal-tint); }
.cx__find-pick.is-chosen .cx__find-text span { color: var(--teal-deep); font-weight: 600; }
.cx__find-noimg { width: 56px; height: 56px; border-radius: 8px; background: var(--paper-deep); flex: none; }
.cx__picked { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 0 0 8px; border: 1px solid rgba(43, 122, 139, .35); border-radius: 12px; background: var(--teal-tint); }
.cx__picked[hidden] { display: none; }
.cx__picked.is-dim { opacity: .55; }
.cx__picked img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; flex: none; background: var(--paper-deep); }
.cx__picked img[hidden] { display: none; }
.cx__picked-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.cx__picked-text strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx__picked-text span { font-size: .8rem; }
.cx__find-results[hidden] { display: none; }
.cx__find-pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.cx__find-pick:hover, .cx__find-pick:focus-visible, .cx__find-pick.is-active { background: var(--paper); }
.cx__find-pick.is-active { box-shadow: inset 0 0 0 2px rgba(43, 122, 139, .45); }
.cx__find-pick img { border-radius: 8px; flex: none; object-fit: cover; background: var(--paper-deep); }
.cx__find-text { display: grid; gap: 1px; min-width: 0; }
.cx__find-text strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx__find-text span { font-size: .78rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx__find-none { padding: 8px 10px; font-size: .875rem; color: var(--ink-soft); }
.cx__rules { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cx__rules textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.5; }
.cx__price .wb__prefixed { max-width: 180px; }
.cx__price .wb__prefixed input { border: 0; padding: 10px 12px 10px 6px; width: 100%; font: inherit; background: transparent; }
.cx__price .wb__prefixed input:focus { outline: none; }
.cx__rules-note { color: var(--terracotta-deep); font-weight: 600; }
.cx__pins { display: grid; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.cx__pins .wb__field { margin: 0; }
.cx__pins textarea { width: 100%; }
.cx__chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cx__chips:empty { margin: 0; }
.cx__chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .85rem; max-width: 100%; }
.cx__chip img { border-radius: 50%; flex: none; }
.cx__chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; padding-left: 4px; }
.cx__chip-x { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--paper-deep); color: var(--ink); font-size: 1rem; line-height: 1; cursor: pointer; flex: none; }
.cx__chip-x:hover { background: var(--terracotta); color: var(--white); }
.cx__preview { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); transition: opacity var(--dur-fast) var(--ease); }
.cx--previewing .cx__preview { opacity: .6; }
.cx__preview-head { display: grid; gap: 4px; margin: 0 0 14px; }
.cx__preview-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.cx__preview-head p { margin: 0; font-size: .9rem; }
.cx__preview-count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .9rem; font-weight: 700; }
.cx__preview-diff { display: grid; gap: 6px; margin: 0 0 14px; }
.cx__preview-diff[hidden] { display: none; }
.cx__diff { padding: 10px 14px; border-radius: 10px; font-size: .875rem; line-height: 1.45; }
.cx__diff.is-join { background: var(--ok-tint); color: var(--ok); }
.cx__diff.is-leave { background: var(--warn-tint); color: var(--warn); }
.cx__members { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.cx__members[hidden] { display: none; }
.cx__member { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); min-width: 0; }
.cx__member.is-pinned { border-color: rgba(43, 122, 139, .4); background: var(--teal-tint); }
.cx__member.is-out { background: var(--paper); }
.cx__member.is-out img { filter: grayscale(1); opacity: .7; }
.cx__member img, .cx__member-noimg { width: 56px; height: 56px; border-radius: 8px; flex: none; object-fit: cover; background: var(--paper-deep); display: block; }
.cx__member-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.cx__member-text a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx__member-text a:hover { text-decoration: underline; }
.cx__member-why { font-size: .78rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx__member-acts { display: flex; flex-direction: column; gap: 4px; flex: none; opacity: .65; transition: opacity var(--dur-fast) var(--ease); }
.cx__member:hover .cx__member-acts, .cx__member:focus-within .cx__member-acts { opacity: 1; }
.cx__member-btn { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cx__member-btn:hover { border-color: var(--ink); }
.cx .wb__empty { grid-column: 1 / -1; }
.cx .wb__action .wb__why { display: block; color: var(--ink-soft); font-size: .875rem; line-height: 1.5; }
@media (max-width: 900px) { .cx__rules { grid-template-columns: minmax(0, 1fr); } .cx__member-acts { opacity: 1; } }
