/* MateLoop — warm, community-first palette */

:root {
    --ml-bg: #fff9f3;
    --ml-bg-soft: #ffeedd;
    --ml-ink: #3e2723;
    --ml-ink-muted: #6d4c41;
    --ml-accent: #e68a45;
    --ml-accent-hover: #d6742e;
    --ml-accent-soft: #fff0e6;
    --ml-cream: #fffaf5;
    --ml-price-strip-bg: #dfcfc2;
    --ml-price-strip-border: rgba(62, 39, 35, 0.14);
    --ml-header-bg: #fff5eb;
    --ml-header-border: #f0dcc8;
    --ml-logo-sage: #7c9a7e;
    --ml-logo-charcoal: #3a3a3a;
    --ml-card-border: rgba(62, 39, 35, 0.08);
    /* Above sticky page toolbars (~45), below modals/toasts (~12k+). Keeps nav mega-menus & header dropdowns in front. */
    --ml-z-site-nav: 200;
    --ml-shadow: 0 8px 28px rgba(62, 39, 35, 0.08);
    --ml-radius: 22px;
    --ml-radius-sm: 14px;
    --ml-font-body: "Nunito Sans", system-ui, sans-serif;
    --ml-font-display: "Fraunces", Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--ml-font-body);
    background: var(--ml-bg);
    color: var(--ml-ink);
    line-height: 1.55;
}

h1,
h2,
h3 {
    font-family: var(--ml-font-display);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== Global form buttons: .btn / .btn-primary / .btn-light (dashboard, sell, profile) ========== */
a.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.62rem 1.35rem;
    min-height: 44px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease;
}

button.btn {
    appearance: none;
}

a.btn:hover,
button.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--ml-accent);
    color: #fffaf8;
    border-color: var(--ml-accent);
    box-shadow: 0 2px 10px rgba(230, 138, 69, 0.38);
}

.btn-primary:hover {
    background: var(--ml-accent-hover);
    border-color: var(--ml-accent-hover);
    box-shadow: 0 4px 16px rgba(214, 116, 46, 0.42);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-light {
    background: linear-gradient(180deg, #fffefb 0%, #faf6f1 100%);
    color: var(--ml-ink);
    border-color: rgba(62, 39, 35, 0.16);
    box-shadow:
        0 1px 2px rgba(62, 39, 35, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.btn-light:hover {
    background: linear-gradient(180deg, #fff 0%, var(--ml-accent-soft) 100%);
    border-color: rgba(230, 138, 69, 0.42);
    color: var(--ml-ink);
    box-shadow:
        0 4px 14px rgba(62, 39, 35, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-light:active {
    transform: translateY(1px);
}

.btn-primary:focus-visible,
.btn-light:focus-visible {
    outline: 2px solid var(--ml-accent);
    outline-offset: 3px;
}

/* Google Maps CTA — distinct from MateLoop accent so the action is easy to spot */
.btn-google-maps {
    background: #fff;
    color: #1a73e8;
    border-color: #dadce0;
    box-shadow:
        0 1px 2px rgba(60, 64, 67, 0.18),
        0 1px 3px rgba(60, 64, 67, 0.08);
    font-weight: 600;
}

.btn-google-maps:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #174ea6;
    box-shadow: 0 2px 10px rgba(26, 115, 232, 0.22);
}

.btn-google-maps:active {
    transform: translateY(1px);
}

.btn-google-maps:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 3px;
}

.btn-google-maps__icon {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.ml-container {
    width: 94%;
    max-width: 1250px;
    margin: 0 auto;
}

/* ================= HEADER ================= */

.ml-header {
    position: relative;
    z-index: var(--ml-z-site-nav);
    background: var(--ml-header-bg);
    border-bottom: 1px solid var(--ml-header-border);
    min-height: 118px;
}

.ml-header .ml-container.ml-header-toolbar {
    width: min(99%, 1560px);
    padding-left: clamp(4px, 1vw, 12px);
    padding-right: clamp(8px, 1.8vw, 18px);
}

.ml-header-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px 14px;
    padding: 22px 0 22px;
    min-width: 0;
}

/* Search + Sell cluster as one flex group (no huge empty column between them) */
.ml-header-toolbar-tail {
    display: contents;
}

.ml-header-toolbar--no-search .ml-header-toolbar-tail {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
}

.ml-header-toolbar-start {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px 12px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.ml-logo {
    flex: 0 0 auto;
    display: inline-block;
    margin-left: -6px;
    margin-right: 0;
    font-size: 42px;
    font-weight: 700;
    font-variation-settings: "SOFT" 40;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.ml-logo__group {
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
    transition: opacity 0.15s ease;
    user-select: none;
}

.ml-logo__mark {
    flex-shrink: 0;
    width: auto;
    height: 1.45em;
    padding-right: 0.05em;
    margin-bottom: 0.04em;
    display: block;
    -webkit-user-drag: none;
}

.ml-logo__word {
    font-family: var(--ml-font-display);
    font-weight: 700;
    color: var(--ml-logo-charcoal);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-left: 0;
}

.ml-logo:hover .ml-logo__group {
    opacity: 0.88;
}


.ml-delivery {
    flex: 0 1 220px;
    min-width: 148px;
    max-width: 260px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ml-cream);
    border-radius: var(--ml-radius-sm);
    padding: 8px 11px;
    border: 1px solid var(--ml-card-border);
    box-shadow: 0 1px 2px rgba(62, 39, 35, 0.06);
    transition:
        border-color 0.18s,
        box-shadow 0.18s,
        background 0.18s;
}

.ml-delivery:hover {
    border-color: rgba(230, 138, 69, 0.45);
    background: #fff;
    box-shadow: 0 3px 12px rgba(62, 39, 35, 0.1);
}

.ml-delivery-pin {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}

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

.ml-delivery-kicker {
    font-family: var(--ml-font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ml-ink-muted);
    white-space: nowrap;
}

.ml-delivery-line {
    display: block;
    font-family: var(--ml-font-body);
    font-size: 12px;
    font-weight: 800;
    color: var(--ml-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-search {
    flex: 1 1 0;
    width: 0;
    min-width: 10rem;
    max-width: none;
    margin-left: 0;
    display: flex;
    height: 46px;
    background: var(--ml-cream);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--ml-header-border);
}

/* Native <select> UIs differ strongly per engine (Safari gradient vs Chrome flat).
   Reset appearance and draw one shared chevron so header search matches everywhere. */
.ml-search select {
    width: 126px;
    flex-shrink: 0;
    border: none;
    border-radius: 0;
    border-right: 1px solid var(--ml-header-border);
    padding: 0 28px 0 10px;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.2;
    color: var(--ml-ink);
    text-align: center;
    text-align-last: center;
    cursor: pointer;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233e2723' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ml-search select::-ms-expand {
    display: none;
}

.ml-search input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 0 14px;
    outline: none;
    font-family: inherit;
    background: transparent;
}

.ml-search input::placeholder {
    color: #a1887f;
}

.ml-search select:focus,
.ml-search input:focus,
.ml-search button:focus,
.ml-search select:focus-visible,
.ml-search input:focus-visible,
.ml-search button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.ml-search select:focus,
.ml-search select:focus-visible {
    border-right-color: var(--ml-header-border) !important;
}

.ml-search button {
    border: none;
    background: var(--ml-accent);
    color: white;
    padding: 0 18px;
    width: 74px;
    min-width: 74px;
    flex: 0 0 74px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.ml-search-icon {
    width: 20px;
    height: 20px;
    display: block;
    color: #fff;
    stroke: #fff;
    flex-shrink: 0;
}

.ml-rehome-soft-intro {
    margin-top: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    color: var(--ml-ink-muted);
    font-family: var(--ml-font-display);
    font-size: clamp(1.02rem, 2vw, 1.22rem);
    font-weight: 600;
    line-height: 1.45;
}

.ml-rehome-soft-intro span {
    display: block;
}

.ml-rehome-head {
    margin-top: clamp(0.55rem, 1.8vw, 1rem);
}

.ml-rehome-title {
    margin-bottom: 0.55rem;
    color: #b26028;
    letter-spacing: 0.01em;
}

.ml-adoption-head {
    margin-top: clamp(0.55rem, 1.8vw, 1rem);
}

.ml-adoption-title {
    margin-bottom: 0.55rem;
    color: #b26028;
    letter-spacing: 0.01em;
}

/* Adopt a Pet chooser (dog / cat) — Concept B */
.ml-adopt-chooser {
    padding: clamp(1.4rem, 3.5vw, 2.6rem) 0 clamp(2.4rem, 5vw, 3.6rem);
    background:
        radial-gradient(120% 80% at 50% 0%, #fff3e8 0%, transparent 55%),
        linear-gradient(180deg, #fffaf5 0%, #fff 72%);
}

.ml-adopt-chooser__inner {
    max-width: 980px;
}

.ml-adopt-chooser__intro {
    text-align: center;
    margin: 0 auto 1.85rem;
    max-width: 46rem;
}

.ml-adopt-chooser__title {
    margin: 0 0 0.75rem;
    font-family: var(--ml-font-display);
    font-size: clamp(2rem, 4.6vw, 2.85rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ml-ink);
}

.ml-adopt-chooser__lead {
    margin: 0 auto;
    max-width: 38rem;
    color: var(--ml-ink-muted);
    font-size: clamp(1.08rem, 2vw, 1.22rem);
    line-height: 1.55;
}

.ml-adopt-chooser__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.85rem, 2.2vw, 1.35rem);
}

.ml-adopt-chooser__tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    text-decoration: none;
    color: #fffaf5;
    background: #3e2723;
    box-shadow: 0 10px 28px rgba(62, 39, 35, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ml-adopt-chooser__tile:hover,
.ml-adopt-chooser__tile:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(62, 39, 35, 0.18);
}

.ml-adopt-chooser__tile:focus-visible {
    outline: 3px solid var(--ml-accent);
    outline-offset: 3px;
}

.ml-adopt-chooser__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.35s ease;
}

.ml-adopt-chooser__tile:hover .ml-adopt-chooser__photo,
.ml-adopt-chooser__tile:focus-visible .ml-adopt-chooser__photo {
    transform: scale(1.04);
}

.ml-adopt-chooser__fade {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(180deg, transparent 0%, rgba(35, 20, 16, 0.72) 100%);
    pointer-events: none;
}

.ml-adopt-chooser__cta {
    position: absolute;
    left: 50%;
    bottom: clamp(1rem, 3vw, 1.45rem);
    transform: translateX(-50%);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(86%, 15.5rem);
    padding: 0.72rem 1.15rem;
    border-radius: 999px;
    background: var(--ml-accent);
    color: #fffaf5;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: center;
    box-shadow: 0 8px 18px rgba(62, 39, 35, 0.22);
    transition: background 0.2s ease;
}

.ml-adopt-chooser__tile:hover .ml-adopt-chooser__cta,
.ml-adopt-chooser__tile:focus-visible .ml-adopt-chooser__cta {
    background: var(--ml-accent-hover);
}

.ml-adopt-chooser__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.65rem;
    margin: 1.7rem 0 0;
    color: var(--ml-ink-muted);
    font-size: clamp(0.98rem, 1.55vw, 1.08rem);
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.ml-adopt-chooser__trust-dot {
    color: var(--ml-accent);
    font-weight: 800;
}

.ml-adopt-stories {
    margin: 2rem 0 0;
    padding-top: 1.65rem;
    border-top: 1px solid rgba(62, 39, 35, 0.1);
}

.ml-adopt-stories__head {
    text-align: center;
    margin: 0 auto 1.15rem;
    max-width: 36rem;
}

.ml-adopt-stories__title {
    margin: 0 0 0.4rem;
    font-family: var(--ml-font-display);
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ml-ink);
    line-height: 1.2;
}

.ml-adopt-stories__lead {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--ml-ink-muted);
}

.ml-adopt-stories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.ml-adopt-stories__card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(62, 39, 35, 0.1);
    background: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ml-adopt-stories__card:hover,
.ml-adopt-stories__card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(62, 39, 35, 0.16);
    box-shadow: 0 10px 24px rgba(62, 39, 35, 0.08);
}

.ml-adopt-stories__card:focus-visible {
    outline: 3px solid var(--ml-accent);
    outline-offset: 2px;
}

.ml-adopt-stories__kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ml-accent);
}

.ml-adopt-stories__name {
    font-family: var(--ml-font-display);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ml-ink);
}

.ml-adopt-stories__sum {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ml-ink-muted);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ml-adopt-stories__cta {
    margin-top: 0.25rem;
    font-size: 0.88rem;
    font-weight: 750;
    color: var(--ml-accent);
}

.ml-adopt-stories__all {
    margin: 1rem 0 0;
    text-align: center;
}

.ml-adopt-stories__all a {
    font-weight: 750;
    color: var(--ml-accent);
    text-decoration: none;
}

.ml-adopt-stories__all a:hover {
    text-decoration: underline;
}

.ml-adopt-chooser .ml-guide-inline-cta {
    margin-top: 1.35rem;
}

@media (max-width: 900px) {
    .ml-adopt-stories__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ml-adopt-chooser__grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .ml-adopt-chooser__tile {
        aspect-ratio: 4 / 5;
    }

    .ml-adopt-chooser__trust {
        flex-direction: column;
        gap: 0.35rem;
    }

    .ml-adopt-chooser__trust-dot {
        display: none;
    }
}

/* Pet services marketplace hero: second line smaller & muted vs .ml-adoption-title */
.ml-pet-services-sub {
    margin: 0;
    max-width: 44rem;
    color: var(--ml-ink-muted);
    font-family: var(--ml-font-display);
    font-size: clamp(0.94rem, 1.65vw, 1.08rem);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.ml-rehome-head + .filters-card,
.ml-adoption-head + .filters-card,
.ml-rehome-head + .ml-sticky-find-pet-controls,
.ml-adoption-head + .ml-sticky-find-pet-controls {
    margin-top: 1rem;
}

.ml-rehome-filter-grid {
    display: grid;
    grid-template-columns: minmax(170px, 1.1fr) minmax(420px, 3fr) minmax(170px, 1.25fr) minmax(130px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.ml-rehome-filter-grid input,
.ml-rehome-filter-grid select,
.ml-rehome-filter-grid button {
    height: 42px;
}

.ml-rehome-filter-grid .ml-rehome-search::placeholder {
    color: rgba(109, 76, 65, 0.5);
}

.ml-rehome-filter-grid .btn.btn-primary {
    min-width: 110px;
    font-weight: 700;
}

.ml-rehome-filter-row {
    gap: 0;
    border: 1px solid rgba(230, 138, 69, 0.35);
    border-radius: 12px;
    overflow: hidden;
    background: #fffdf9;
}

.ml-rehome-filter-row > * {
    border: 0;
    border-right: 1px solid rgba(230, 138, 69, 0.24);
    border-radius: 0 !important;
}

/* Find pet / adoption / pet services: lighter vertical rules so dividers read thinner */
#mlFindPetFilters.ml-rehome-filter-row > *,
#mlAdoptionFilters.ml-rehome-filter-row > *,
#mlPetServicesFilters .ml-rehome-filter-row > * {
    border-right: 1px solid rgba(230, 138, 69, 0.14);
}

#mlFindPetFilters.ml-rehome-filter-row,
#mlAdoptionFilters.ml-rehome-filter-row,
#mlPetServicesFilters .ml-rehome-filter-row {
    border-color: rgba(230, 138, 69, 0.22);
}

#mlFindPetFilters.ml-rehome-filter-row > *:last-child,
#mlAdoptionFilters.ml-rehome-filter-row > *:last-child,
#mlPetServicesFilters .ml-rehome-filter-row > *:last-child {
    border-right: 0;
}

.ml-rehome-filter-row > *:last-child {
    border-right: 0;
}

.ml-rehome-filter-row select,
.ml-rehome-filter-row input {
    background: #fff;
    height: 50px;
    font-size: 0.98rem;
}

.ml-rehome-filter-row input:focus,
.ml-rehome-filter-row select:focus,
.ml-rehome-filter-row button:focus,
.ml-rehome-filter-row input:focus-visible,
.ml-rehome-filter-row select:focus-visible,
.ml-rehome-filter-row button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: rgba(230, 138, 69, 0.24) !important;
}

.ml-discover-filter-group select:focus,
.ml-discover-filter-group select:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: rgba(230, 138, 69, 0.38) !important;
}

.ml-rehome-search {
    font-size: 1.12rem !important;
    padding-left: 20px !important;
}

.ml-rehome-search::placeholder {
    color: rgba(109, 76, 65, 0.45);
}

#mlSuburbInput {
    padding-left: 16px !important;
}

#mlStateSelect {
    padding-left: 16px !important;
}

.ml-filter-plain {
    appearance: none;
    background-image: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.ml-filter-category {
    padding-left: 14px !important;
}

select.ml-filter-category.ml-filter-category--locked:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

.ml-filter-location-reset-btn {
    min-width: 48px !important;
    width: 48px;
    height: 50px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f5ebe3 !important;
    color: #6d4c41 !important;
    cursor: pointer;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    flex-shrink: 0;
}

/* `display: flex` above wins over the HTML hidden attribute otherwise — keep fully hidden when unused */
.ml-filter-location-reset-btn[hidden] {
    display: none !important;
}

.ml-filter-location-reset-btn:hover {
    background: #eadfd4 !important;
    color: var(--ml-ink) !important;
}

.ml-filter-location-reset-btn:focus-visible {
    outline: 2px solid var(--ml-accent);
    outline-offset: -2px;
    z-index: 1;
}

.ml-filter-location-reset-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.ml-filter-search-btn {
    min-width: 78px !important;
    width: 78px;
    height: 50px !important;
    background: #c96a24 !important;
    color: #fff !important;
    border-radius: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    align-self: stretch;
    box-shadow: none !important;
}

.ml-filter-search-btn:hover {
    background: #b95f1f !important;
}

.ml-filter-search-icon {
    width: 21px;
    height: 21px;
    color: #fff;
    stroke: #fff;
}

.ml-rehome-filter-row .ml-filter-filled {
    background: var(--ml-accent) !important;
    color: #fff !important;
    font-weight: 700;
}

.ml-rehome-filter-row .ml-filter-filled::placeholder {
    color: rgba(255, 255, 255, 0.88);
}

.ml-rehome-filter-row .ml-rehome-search.ml-filter-filled {
    background: #fff !important;
    color: var(--ml-ink) !important;
    font-weight: 400;
}

.ml-rehome-filter-row .ml-rehome-search.ml-filter-filled::placeholder {
    color: rgba(109, 76, 65, 0.45) !important;
}

/*
 * Find pet + adoption + pet services: suburb / state “filled” state uses cool pale blue (not orange).
 */
#mlFindPetFilters #mlSuburbInput.ml-filter-filled,
#mlFindPetFilters #mlStateSelect.ml-filter-filled,
#mlAdoptionFilters #mlSuburbInput.ml-filter-filled,
#mlAdoptionFilters #mlStateSelect.ml-filter-filled,
#mlPetServicesFilters #mlSuburbInput.ml-filter-filled,
#mlPetServicesFilters #mlStateSelect.ml-filter-filled {
    background: #e3effb !important;
    color: var(--ml-ink) !important;
    font-weight: 700;
    border-color: rgba(230, 138, 69, 0.22) !important;
    /* Slim warm accent on the inner right edge (avoid stacking with 1px grid rules) */
    box-shadow: inset -1px 0 0 0 rgba(230, 138, 69, 0.55);
}

#mlPetServicesFilters #mlPetServicesItemType.ml-pet-services-service-type-select.ml-filter-filled {
    background: #e3effb
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231565c0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
        no-repeat calc(100% - 12px) center !important;
    color: var(--ml-ink) !important;
    font-weight: 700;
    border-color: rgba(230, 138, 69, 0.22) !important;
}

#mlFindPetFilters #mlSuburbInput.ml-filter-filled::placeholder,
#mlAdoptionFilters #mlSuburbInput.ml-filter-filled::placeholder,
#mlPetServicesFilters #mlSuburbInput.ml-filter-filled::placeholder {
    color: rgba(62, 39, 35, 0.45) !important;
}

.ml-find-pet-filter-strip-wrap {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-start;
}

/* Keep search + filter controls accessible while scrolling (Find Pet, Adoption, Pet services).
   `top: 0` — a positive offset lets listing content show through in a gap above the bar when sticky. */
:root {
    --ml-sticky-filters-top: 0;
    /* Legacy: second sticky row for filter strip (unused when search + strip share `.ml-sticky-find-pet-controls`). */
    --ml-sticky-filter-strip-top: 92px;
}

.ml-sticky-top-filters {
    position: sticky;
    top: var(--ml-sticky-filters-top);
    z-index: 45;
    background: var(--ml-bg);
}

/* Find Pet / Adoption: one sticky block — search row + “Filter & refine” move together (no strip drift while scrolling). */
.ml-sticky-find-pet-controls {
    position: sticky;
    top: var(--ml-sticky-filters-top);
    z-index: 45;
    padding-bottom: 0.35rem;
    background: var(--ml-bg);
}

.ml-sticky-top-filters .filter-grid,
.ml-sticky-find-pet-controls .filters-card .filter-grid {
    background: #fffdf9;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(62, 39, 35, 0.08);
}

.ml-sticky-find-pet-controls .ml-find-pet-filter-strip-wrap {
    margin-top: 0.35rem;
    max-height: 120px;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.22s ease, margin-top 0.22s ease, visibility 0.22s ease;
    overflow: hidden;
}

/* Scrolled: sticky band shows search row only (Filter & refine hidden until back at top). */
.ml-sticky-find-pet-controls.ml-sticky-find-pet-controls--scroll-compact .ml-find-pet-filter-strip-wrap {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    visibility: hidden;
    pointer-events: none;
}

.ml-sticky-find-pet-controls.ml-sticky-find-pet-controls--scroll-compact {
    padding-bottom: 0.15rem;
}

.ml-sticky-filter-strip-wrap {
    position: sticky;
    top: var(--ml-sticky-filter-strip-top);
    z-index: 44;
    background: transparent;
}

/* Same width as the open sidebar column — not full search bar */
.ml-find-pet-filter-strip {
    width: min(280px, 100%);
    max-width: 280px;
    border: 1px solid rgba(230, 138, 69, 0.35);
    border-radius: 12px;
    background: #fffdf9;
    overflow: hidden;
    max-height: 80px;
    opacity: 1;
    transition: max-height 0.35s ease, opacity 0.28s ease, margin 0.28s ease;
}

.ml-find-pet-filter-strip.ml-find-pet-filter-strip--hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
    border-color: transparent;
    overflow: hidden;
}

.ml-find-pet-filter-strip__btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.85rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ml-ink);
    cursor: pointer;
    text-align: left;
    transition: background 0.18s;
}

.ml-find-pet-filter-strip__btn:hover {
    background: rgba(230, 138, 69, 0.08);
}

.ml-find-pet-filter-strip__btn:focus-visible {
    outline: 2px solid var(--ml-accent);
    outline-offset: -2px;
}

.ml-find-pet-filter-strip__chev {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #a85f24;
}

/* Pet services: service-type select — same compact strip sizing as Find Pet “Filter & refine”. */
.ml-pet-services-service-type-wrap {
    margin-top: 0.35rem;
}

/* Reuse Find Pet strip geometry: select sits exactly where Filter & refine sits. */
.ml-pet-services-service-type-strip {
    width: min(280px, 100%);
    max-width: 280px;
}

/* Cream panel, warm border — matches .ml-find-pet-filter-strip + __btn vertical rhythm. */
#mlPetServicesFilters .ml-pet-services-service-type-select {
    width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    padding: 0.55rem 30px 0.55rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(230, 138, 69, 0.35);
    line-height: 1.25;
    /* Beat .ml-filter-plain { background-image: none !important }; chevron ~like .ml-find-pet-filter-strip__chev (20px box) */
    background: #fffdf9
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23a85f24' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
        no-repeat calc(100% - 10px) center / 11px 11px !important;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ml-ink);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#mlPetServicesFilters .ml-pet-services-service-type-select:focus,
#mlPetServicesFilters .ml-pet-services-service-type-select:focus-visible {
    outline: 2px solid var(--ml-accent);
    outline-offset: 2px;
}

.ml-pet-services-results {
    margin-top: 1rem;
}

.ml-discover-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

/* Closed: full-width results so listings show longer descriptions; sidebar hidden */
.ml-discover-layout.ml-find-pet-filters--collapsed {
    grid-template-columns: minmax(0, 1fr);
}

.ml-discover-layout.ml-find-pet-filters--collapsed .ml-discover-sidebar {
    display: none;
}

.ml-discover-layout.ml-find-pet-filters--collapsed .ml-discover-results {
    margin-top: 1.2rem;
    grid-column: 1 / -1;
}

.ml-discover-layout.ml-find-pet-filters--open .ml-discover-sidebar {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    height: auto;
    animation: mlFindPetSidebarReveal 0.38s ease forwards;
}

@keyframes mlFindPetSidebarReveal {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ml-discover-sidebar {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    border: 1px solid var(--ml-header-border);
    background: #fffdf9;
    border-radius: 14px;
    padding: 0.8rem;
    margin-top: 2.25rem;
    display: grid;
    gap: 0.75rem;
    position: sticky;
    top: 12px;
}

.ml-discover-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.ml-discover-sidebar-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    text-align: left;
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}

.ml-discover-sidebar-collapse {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(230, 138, 69, 0.45);
    border-radius: 10px;
    background: #fff8ef;
    color: #a85f24;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}

.ml-discover-sidebar-collapse:hover {
    background: #ffe8d4;
    border-color: rgba(230, 138, 69, 0.65);
}

.ml-discover-sidebar-collapse:focus-visible {
    outline: 2px solid var(--ml-accent);
    outline-offset: 2px;
}

.ml-discover-sidebar-collapse__icon {
    width: 20px;
    height: 20px;
}

.ml-discover-sidebar > h3 {
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

.ml-discover-filter-group {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

fieldset.ml-discover-filter-group {
    border: 0;
    margin: 0;
    padding: 0;
    min-inline-size: 0;
}

fieldset.ml-discover-filter-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ml-discover-filter-group:has(.ml-filter-chip) {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 0.5rem;
    margin-top: 0.2rem;
}

.ml-discover-filter-group:has(.ml-filter-chip) legend {
    grid-column: 1 / -1;
}

.ml-filter-chip {
    position: relative;
}

.ml-filter-chip input[type='checkbox'] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ml-filter-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(230, 138, 69, 0.28);
    background: #fff8f0;
    color: var(--ml-ink);
    font-size: 0.86rem;
    font-weight: 700;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.ml-filter-chip input[type='checkbox']:checked + span {
    background: var(--ml-accent);
    border-color: var(--ml-accent);
    color: #fff;
}

.ml-filter-chip input[type='checkbox']:focus + span,
.ml-filter-chip input[type='checkbox']:focus-visible + span {
    outline: none;
    box-shadow: none;
}

.ml-discover-filter-group label,
.ml-discover-filter-group legend {
    font-size: 0.84rem;
    color: var(--ml-ink-muted);
}

.ml-discover-filter-group select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--ml-header-border);
    background: #fff;
    padding: 0 34px 0 10px;
    text-align: center;
    text-align-last: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23966a43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
}

.ml-discover-filter-group select.ml-sidebar-filled {
    background-color: var(--ml-accent);
    border-color: var(--ml-accent);
    color: #fff;
    font-weight: 700;
}

.ml-discover-filter-group input[type='checkbox'] {
    margin-right: 0.35rem;
}

.ml-filter-chip {
    position: relative;
}

.ml-sidebar-go-btn {
    height: 40px;
    border-radius: 10px;
    background: var(--ml-accent) !important;
    border: 0 !important;
    color: #fff !important;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.ml-sidebar-go-btn:hover {
    background: var(--ml-accent-hover) !important;
}

.ml-sidebar-reset-btn {
    display: block;
    width: 100%;
    height: 40px;
    margin-top: 0.35rem;
    border-radius: 10px;
    border: 1.5px solid rgba(45, 36, 28, 0.22);
    background: #fff;
    color: #2d241c;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.ml-sidebar-reset-btn:hover {
    border-color: var(--ml-accent);
    color: var(--ml-accent);
}



@media (max-width: 1300px) {
    .ml-rehome-filter-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto auto;
    }
}

@media (max-width: 760px) {
    .ml-rehome-filter-grid {
        grid-template-columns: 1fr;
    }

    .ml-discover-layout {
        grid-template-columns: 1fr;
    }

    .ml-discover-layout.ml-find-pet-filters--open {
        grid-template-columns: 1fr;
    }

    .ml-discover-layout.ml-find-pet-filters--collapsed {
        grid-template-columns: 1fr;
    }

    .ml-discover-layout.ml-find-pet-filters--collapsed .ml-discover-sidebar {
        display: none;
    }

    .ml-discover-sidebar {
        position: static;
    }

    .ml-discover-results {
        margin-top: 0;
    }

    .ml-discover-layout.ml-find-pet-filters--collapsed .ml-discover-results {
        margin-top: 0.75rem;
    }

    /* Single column on mobile — keep back-to-top full width even if sidebar is open. */
    .ml-discover-layout.ml-find-pet-filters--open > .ml-discover-footer-extras {
        grid-column: 1 / -1;
    }
}

.ml-discover-results {
    display: grid;
    gap: 0.85rem;
    margin-top: 2.25rem;
}

/* Dog/cat adoption + mates + live plants browse — compact photo grid */
.ml-discover-results.ml-adoption-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 0.85rem;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .ml-discover-results.ml-adoption-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .ml-discover-results.ml-adoption-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .ml-discover-results.ml-adoption-grid {
        grid-template-columns: 1fr;
    }
}

.ml-adoption-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(93, 64, 55, 0.14);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(62, 39, 35, 0.04);
}

.ml-adoption-card__link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.ml-adoption-card__link:hover .ml-adoption-card__name,
.ml-adoption-card__link:focus-visible .ml-adoption-card__name {
    color: var(--ml-accent, #d4733a);
}

.ml-adoption-card__photo {
    aspect-ratio: 1 / 1;
    width: 100%;
    background-color: #efe6dc;
    background-size: cover;
    background-position: center;
}

.ml-adoption-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0.8rem 0.9rem;
    text-align: center;
}

/* Four fixed text rows so missing breed / location / DOB still keep card height aligned */
.ml-adoption-card__name {
    margin: 0;
    min-height: calc(1.05rem * 1.25);
    font-family: var(--ml-font-display, Fraunces, Georgia, serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ml-ink, #3e2723);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-adoption-card__breed {
    margin: 0.15rem 0 0;
    min-height: calc(0.78rem * 1.3);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ml-ink, #3e2723);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pet service strip — title always reserves two lines so cards stay even height */
.ml-adoption-card__name--two-line {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: calc(1.05rem * 1.25 * 2);
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-adoption-card__body--pet-service {
    min-height: calc((1.05rem * 1.25 * 2) + (0.86rem * 1.35 * 2) + 0.55rem);
}

/* Supply cards — listing title (not uppercase like breed line) */
.ml-adoption-card__subtitle {
    margin: 0.15rem 0 0;
    min-height: calc(0.86rem * 1.35);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ml-ink, #3e2723);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-adoption-card__loc,
.ml-adoption-card__dob {
    margin: 0;
    min-height: calc(0.86rem * 1.35);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ml-ink-muted, #6d4c41);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-adoption-card__line--empty {
    visibility: hidden;
    user-select: none;
}

.ml-adoption-card__wish {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 2;
}

.ml-adoption-card__owner-tools {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    z-index: 2;
}

.ml-result-row {
    border: 2px solid var(--ml-header-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.ml-result-row__link {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: stretch;
    color: inherit;
}

.ml-result-row__aside {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    align-self: stretch;
    min-height: 100%;
}

/* Photo + price column: link to listing detail (Find pet / listing page) */
.ml-result-row__aside-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 0;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.ml-result-row__aside > .ml-result-row__aside-link {
    flex: 1 1 auto;
}

/* Owner: image and price link to listing; toolbar stays outside the image anchor */
.ml-result-row__image-hit {
    display: block;
    flex: 1 1 auto;
    min-height: 150px;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

.ml-result-row__image-hit .ml-result-row__image {
    min-height: 150px;
    width: 100%;
    height: 100%;
    display: block;
}

.ml-result-row__price-hit {
    display: block;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.ml-result-row__aside-link > .ml-result-row__image {
    flex: 1 1 auto;
    min-height: 150px;
}

.ml-result-row__image-stack {
    position: relative;
    flex: 1 1 auto;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.ml-result-row__image-stack .ml-result-row__image {
    flex: 1 1 auto;
    min-height: 150px;
}

.ml-result-row__image-stack .ml-shop-listing-card-toolbar {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
}

.ml-result-row__image {
    flex: 1 1 auto;
    min-height: 150px;
    background-size: cover;
    background-position: center;
    background-color: #f8efe6;
}

.ml-result-row__shop-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    width: 100%;
    min-width: 0;
}

/* Aquatic / simple meta: tight pill (don’t flex-grow or the chip stretches full row width) */
.ml-result-row__meta-left .ml-result-row__shop-row > .ml-result-row__shop,
.ml-result-row__meta-left .ml-result-row__shop-row > .ml-result-row__shop--text {
    flex: 0 1 auto;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
}

.ml-result-row__meta-left .ml-result-row__shop-row > .ml-result-row__msg-form,
.ml-result-row__meta-left .ml-result-row__shop-row > a.ml-result-row__msg-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.ml-discover-layout .ml-result-row--aquatic-like-dogcat .ml-result-row__shop-row {
    align-items: flex-end;
}

.ml-result-row__badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
}

.ml-result-row__shop {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--ml-primary, #d84315);
    text-decoration: none;
    line-height: 1.25;
    text-align: left;
}

/* Find pet / adoption / listing detail: shop name pill — same chip as sellers’ posts */
.ml-discover-layout a.ml-result-row__shop,
.ml-discover-layout .ml-result-row__shop.ml-result-row__shop--text,
.listing-detail-under-photo a.ml-result-row__shop,
.listing-detail-under-photo .ml-result-row__shop.ml-result-row__shop--text {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    box-sizing: border-box;
    max-width: 100%;
    padding: 0.42rem 0.95rem;
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.22;
    text-decoration: none;
    text-align: left;
    border-radius: 999px;
    border: 1px solid rgba(93, 64, 55, 0.22);
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: background 0.15s ease;
    vertical-align: middle;
}

.ml-result-row__shop-logo-ring {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-result-row__shop-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(93, 64, 55, 0.14);
    background: #fffdfa;
}

.ml-result-row__shop-name {
    min-width: 0;
    font-weight: 700;
}

.ml-discover-layout a.ml-result-row__shop,
.listing-detail-under-photo a.ml-result-row__shop {
    color: var(--ml-primary, #d84315);
}

.ml-discover-layout .ml-result-row__shop.ml-result-row__shop--text,
.listing-detail-under-photo .ml-result-row__shop.ml-result-row__shop--text {
    color: var(--ml-ink, #1a1a1a);
    cursor: default;
}

.ml-discover-layout a.ml-result-row__shop:hover,
.listing-detail-under-photo a.ml-result-row__shop:hover {
    text-decoration: none;
    background: #fafafa;
}

.ml-discover-layout a.ml-result-row__shop:focus-visible,
.listing-detail-under-photo a.ml-result-row__shop:focus-visible {
    outline: 2px solid var(--ml-primary, #d84315);
    outline-offset: 2px;
}

.listing-detail-shop-chip {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(100%, 58%);
}

.ml-result-row__shop--text {
    cursor: default;
    color: var(--ml-ink, #1a1a1a);
}

.ml-result-row__shop:hover {
    text-decoration: underline;
}

.ml-result-row__shop--text:hover {
    text-decoration: none;
}

.ml-result-row__msg-form {
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
}

.ml-result-row__msg-btn {
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(93, 64, 55, 0.22);
    background: #fff;
    color: #212121;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    font: inherit;
    flex-shrink: 0;
}

.ml-result-row__msg-btn:hover {
    background: #fafafa;
}

.ml-result-row__msg-btn:focus-visible {
    outline: 2px solid var(--ml-primary, #d84315);
    outline-offset: 2px;
}

.ml-result-row__msg-btn.ml-result-row__msg-btn--text {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 0.42rem 0.72rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 999px;
}

/* Same band as gender/age pills (badge row uses 0.78rem + pill padding) */
.ml-discover-layout .ml-result-row__msg-btn.ml-result-row__msg-btn--text {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 0.24rem 0.62rem;
}

/* Find pet / adoption title row: “Message about…” — same chrome as `.ml-wishlist-btn`, pill grows with label */
.ml-result-row__msg-btn.ml-result-row__msg-btn--icon-wishlist {
    width: auto;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(230, 138, 69, 0.45);
    background: #fff8ef;
    color: #b66a2f;
    box-shadow: none;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.ml-result-row__msg-btn.ml-result-row__msg-btn--icon-wishlist:hover {
    background: #fff0e0;
    color: #9a5624;
    border-color: rgba(230, 138, 69, 0.55);
}

/* Wishlist / saved posts: bottom bar — shop + message (left) · suburb + time (right) in list view */
.ml-result-row__footer-wishlist {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.ml-result-row__wishlist-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(230, 138, 69, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.ml-result-row__wishlist-footer-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1 1 auto;
}

.ml-result-row__wishlist-footer-actions .ml-result-row__msg-form {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    margin: 0;
    padding: 0;
}

.ml-result-row__wishlist-loc-meta {
    flex: 0 0 auto;
    text-align: right;
    margin-left: auto;
    min-width: min(100%, 9.5rem);
}

.ml-result-row__wishlist-loc-meta .ml-result-row__loc {
    display: block;
    text-align: right;
    margin: 0;
}

/* Shop name + logo (links to seller storefront) */
.ml-result-row__shop-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: min(48vw, 15rem);
    min-width: 0;
    padding: 0.25rem 0.55rem 0.25rem 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(230, 138, 69, 0.4);
    background: #fff8ef;
    text-decoration: none;
    color: #5d4037;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ml-result-row__shop-pill:hover {
    background: #fff0e0;
    border-color: rgba(230, 138, 69, 0.55);
}

.ml-result-row__shop-pill__logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ml-result-row__shop-pill__mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(230, 138, 69, 0.22);
    color: #5d4037;
}

.ml-result-row__shop-pill__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-weight: 700;
}

.ml-discover-results.ml-wishlist-grid .ml-result-row__wishlist-bottom {
    flex-direction: column;
    align-items: stretch;
}

.ml-discover-results.ml-wishlist-grid .ml-result-row__wishlist-footer-actions {
    justify-content: flex-start;
}

.ml-discover-results.ml-wishlist-grid .ml-result-row__wishlist-loc-meta {
    margin-left: 0;
    align-self: flex-end;
}

.ml-result-row--wishlist-card .ml-result-row__body {
    flex: 1 1 auto;
    min-height: 0;
}

.ml-discover-results.ml-wishlist-grid .ml-result-row--wishlist-card .ml-result-row__body {
    flex: 1 1 auto;
}

.ml-discover-results.ml-wishlist-grid .ml-result-row__footer-wishlist {
    margin-top: auto;
}

.ml-discover-results.ml-wishlist-grid .ml-result-row--wishlist-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    align-self: stretch;
}

.ml-discover-results.ml-wishlist-grid .ml-result-row--wishlist-card .ml-result-row__link {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    grid-template-columns: unset;
}

.ml-result-row__msg-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    display: block;
    flex-shrink: 0;
    pointer-events: none;
    vertical-align: middle;
    overflow: visible;
}

.ml-result-row__loc-col .ml-listing-posted-ago {
    color: var(--ml-ink-muted);
}

.ml-result-row__price-under {
    flex-shrink: 0;
    padding: 0.42rem 0.35rem 0.48rem;
    text-align: center;
    border-top: 1px solid var(--ml-price-strip-border);
    background: var(--ml-price-strip-bg);
}

.ml-result-row__body {
    padding: 0.8rem 1rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.ml-result-row__top {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.ml-result-row__top-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* Message (left) then wishlist — wishlist stays outermost on the right */
.ml-result-row__top-actions .ml-wishlist-btn {
    margin-left: 0;
}

.ml-result-row__title {
    margin: 0;
    font-size: 1.24rem;
    font-weight: 700;
    line-height: 1.25;
    flex: 1 1 auto;
    min-width: 0;
}

.ml-result-row__title a {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.ml-result-row__title a:hover {
    text-decoration: underline;
}

.ml-result-row__desc {
    margin: 0;
    color: var(--ml-ink-muted);
    line-height: 1.45;
    min-width: 0;
}

/* Discover (find pet, etc.): exactly 2 lines (clamp + reserved height so short blurbs match tall cards) */
.ml-discover-layout .ml-result-row__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-height: calc(2 * 1.45em);
}

.ml-discover-layout .ml-result-row__desc--plant-warning {
    display: block;
    min-height: 0;
    margin-top: 0.35rem;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.85rem;
    line-height: 1.35;
}

/* Own listings: 3-line description; meta divider sits lower than buyers’ 2-line cards */
.ml-discover-layout .ml-result-row--own .ml-result-row__desc {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    min-height: calc(3 * 1.45em);
}

/* Same vertical slot as buyers’ “posted” line (bottom of 3-line km/suburb/time stack) */
.ml-result-row__loc-col.ml-result-row__loc-col--own {
    min-height: calc(3 * 0.85rem * 1.22 + 2 * 0.1rem);
    justify-content: flex-end;
    gap: 0;
}

.ml-result-row__meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.15rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(230, 138, 69, 0.2);
    flex-shrink: 0;
}

.ml-result-row__meta-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
}

/* Buyers only (dog / cat / adoption, not aquatic, not own): three footer columns with vertical dividers */
/* Column widths: shop + message 50%, gender + age 30%, km/suburb/posted 20% (5fr : 3fr : 2fr) */
.ml-result-row__meta--buyer-3col {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2fr);
    /* stretch so column borders span one shared row height (align-items:end made rules only as tall as each cell’s content) */
    align-items: stretch;
    gap: 0;
    column-gap: 0;
    flex-wrap: unset;
    justify-content: initial;
}

.ml-result-row__meta--buyer-3col .ml-result-row__meta-cell--shop {
    display: flex;
    align-items: flex-end;
    padding-right: 0.35rem;
    border-right: 1px solid rgba(230, 138, 69, 0.28);
    min-width: 0;
}

.ml-result-row__meta--buyer-3col .ml-result-row__meta-cell--traits {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    max-width: 100%;
    padding-left: 0.45rem;
    padding-right: 0.35rem;
    border-right: 1px solid rgba(230, 138, 69, 0.45);
    min-width: 0;
}

.ml-result-row__meta--buyer-3col .ml-result-row__meta-cell--loc {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-left: 0.45rem;
    min-width: 0;
}

.ml-result-row__meta--buyer-3col .ml-result-row__loc-col {
    width: 100%;
    max-width: none;
    align-self: flex-end;
    gap: 0.1rem;
    transform: none;
}

.ml-result-row__meta--buyer-3col .ml-result-row__loc-col > .ml-result-row__loc {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ml-result-row__shop-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.38rem;
    width: 100%;
    min-width: 0;
}

/* Shop + “Message about…” in one row (same pattern as Aquatic); km / suburb / time in the next column */
.ml-result-row__meta--buyer-3col .ml-result-row__meta-cell--shop .ml-result-row__loc-aquatic-actions {
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.45rem 0.5rem;
    container-type: inline-size;
    container-name: ml-buyer-shop-msg;
}

/* Shop chip: shrink-wrap short names (no empty pill); cap width for “Message…”; fluid type + ellipsis when long */
.ml-result-row__meta--buyer-3col .ml-result-row__meta-cell--shop .ml-result-row__loc-aquatic-actions a.ml-result-row__shop,
.ml-result-row__meta--buyer-3col .ml-result-row__meta-cell--shop .ml-result-row__loc-aquatic-actions .ml-result-row__shop.ml-result-row__shop--text {
    flex: 0 1 auto;
    min-width: 0;
    width: fit-content;
    max-width: calc(100% - 7.25rem);
    overflow: hidden;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 0.92rem;
    font-size: clamp(0.62rem, 0.5rem + 2.75cqw, 1.05rem);
    font-weight: 800;
    line-height: 1.15;
    padding: 0.28rem 0.62rem;
}

.ml-result-row__meta--buyer-3col .ml-result-row__meta-cell--shop .ml-result-row__loc-aquatic-actions .ml-result-row__shop-name {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.ml-result-row__meta--buyer-3col .ml-result-row__shop-stack {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.38rem;
}

.ml-result-row__meta--buyer-3col .ml-result-row__shop-stack-name {
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ml-result-row__shop-stack-name {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ml-result-row__meta--buyer-3col .ml-result-row__meta-cell--traits .ml-result-row__badge-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem 0;
}

/* Vertical rules between trait pills (gender · age · desexed, etc.) */
.ml-result-row__meta--buyer-3col .ml-result-row__badge-row > .ml-result-row__badge:not(:last-of-type) {
    padding-right: 0.48rem;
    margin-right: 0.48rem;
    border-right: 1px solid rgba(230, 138, 69, 0.38);
}

.ml-result-row__shop-stack-msg {
    flex-shrink: 0;
}

.ml-result-row__loc-col {
    flex: 0 0 auto;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-self: flex-end;
    gap: 0.1rem;
    text-align: right;
    max-width: min(46%, 13rem);
    transform: translateY(5px);
}

/* “Message about…” + suburb / posted on one row (discover / marketplace cards) */
.ml-result-row__loc-msg-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.45rem 0.75rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ml-result-row__loc-msg-row .ml-result-row__msg-form {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.ml-result-row__loc-msg-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.1rem;
    flex: 1 1 auto;
    min-width: min(100%, 12rem);
}

.ml-result-row__loc-msg-meta .ml-result-row__loc,
.ml-result-row__loc-msg-meta .ml-listing-posted-ago {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.22;
    font-weight: 400;
    color: var(--ml-ink-muted);
}

.ml-result-row__meta--buyer-3col .ml-result-row__loc-col {
    max-width: 100%;
    align-self: stretch;
    transform: none;
}

/* Same font metrics + gap so distance / suburb / posted stack with even vertical rhythm */
.ml-result-row__loc-col > .ml-result-row__distance,
.ml-result-row__loc-col > .ml-result-row__loc,
.ml-result-row__loc-col > .ml-listing-posted-ago {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.22;
    font-weight: 400;
    color: var(--ml-ink-muted);
}

.ml-result-row__loc-col > .ml-result-row__distance--muted {
    font-size: 0.85rem;
}

.ml-result-row__loc-col > .ml-result-row__distance--muted a {
    font-size: inherit;
}

/* Aquatic marketplace: shop + message (left row) · km / suburb / time (right stack) */
.ml-result-row__meta--aquatic-buyer {
    justify-content: flex-start;
}

.ml-result-row__loc-col--aquatic-buyer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    flex: 1 1 auto;
    transform: none;
    align-items: stretch;
    gap: 0;
}

.ml-result-row__loc-aquatic-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.55rem 1rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ml-result-row__loc-aquatic-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    container-type: inline-size;
    container-name: ml-aquatic-shop-msg;
}

/* Aquatic + adopted layout: one-line shop chip (avoid 16rem + word-break wrapping the pill) */
.ml-result-row__loc-aquatic-actions .ml-result-row__shop,
.ml-result-row__loc-aquatic-actions .ml-result-row__shop.ml-result-row__shop--text {
    flex: 0 1 auto;
    min-width: 0;
    width: fit-content;
    max-width: calc(100% - 7.25rem);
    overflow: hidden;
    overflow-wrap: normal;
    word-break: normal;
}

.ml-discover-layout .ml-result-row__loc-aquatic-actions a.ml-result-row__shop,
.ml-discover-layout .ml-result-row__loc-aquatic-actions .ml-result-row__shop.ml-result-row__shop--text {
    font-size: 0.92rem;
    font-size: clamp(0.62rem, 0.45rem + 2.6cqw, 1.05rem);
    line-height: 1.15;
    padding: 0.28rem 0.62rem;
}

.ml-result-row__loc-aquatic-actions .ml-result-row__shop-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.ml-result-row__loc-aquatic-actions .ml-result-row__msg-form {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.ml-result-row__loc-aquatic-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.1rem;
    flex: 0 0 auto;
    min-width: min(100%, 11.5rem);
}

.ml-result-row__loc-aquatic-meta .ml-result-row__distance,
.ml-result-row__loc-aquatic-meta .ml-result-row__distance--muted,
.ml-result-row__loc-aquatic-meta .ml-result-row__loc,
.ml-result-row__loc-aquatic-meta .ml-listing-posted-ago {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.22;
    font-weight: 400;
    color: var(--ml-ink-muted);
}

.ml-result-row__loc-aquatic-meta .ml-result-row__distance--muted a {
    font-size: inherit;
}

.ml-result-row--aquatic-like-dogcat .ml-result-row__meta {
    align-items: flex-end;
}

.ml-result-row--aquatic-like-dogcat .ml-result-row__loc-col:not(.ml-result-row__loc-col--aquatic-buyer) {
    align-self: center;
    transform: none;
}

.ml-result-row--aquatic-like-dogcat .ml-result-row__loc-col--aquatic-buyer {
    align-self: stretch;
}

.ml-result-row__loc-col--stack {
    justify-content: flex-end;
}

.ml-result-row__owner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.75rem;
    padding: 0.38rem 0.65rem;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(230, 138, 69, 0.45);
    background: #fff8ef;
    color: var(--ml-ink);
    cursor: pointer;
    box-sizing: border-box;
}

.ml-result-row__owner-btn:hover {
    background: #ffe8d4;
}

.ml-result-row__owner-btn--danger {
    color: #8f1913;
    border-color: rgba(180, 60, 50, 0.45);
}

.ml-result-row__owner-del-form {
    margin: 0;
}

@media (max-width: 560px) {
    .ml-result-row__meta {
        flex-wrap: wrap;
        align-items: flex-start;
        row-gap: 0.45rem;
    }

    .ml-result-row__meta-left {
        flex-basis: 100%;
        width: 100%;
    }

    .ml-result-row__loc-col {
        max-width: 100%;
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .ml-result-row__meta--buyer-3col {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        row-gap: 0;
    }

    .ml-result-row__meta--buyer-3col .ml-result-row__meta-cell--shop {
        border-right: none;
        border-bottom: 1px solid rgba(230, 138, 69, 0.28);
        padding-right: 0;
        padding-bottom: 0.5rem;
    }

    .ml-result-row__meta--buyer-3col .ml-result-row__meta-cell--traits {
        border-right: none;
        border-bottom: 1px solid rgba(230, 138, 69, 0.28);
        padding: 0.5rem 0;
        justify-content: flex-start;
    }

    .ml-result-row__meta--buyer-3col .ml-result-row__meta-cell--traits .ml-result-row__badge-row {
        justify-content: flex-start;
    }

    .ml-result-row__meta--buyer-3col .ml-result-row__meta-cell--loc {
        padding-left: 0;
        padding-top: 0.5rem;
        justify-content: flex-start;
    }

    .ml-result-row__meta--buyer-3col .ml-result-row__loc-col {
        align-items: flex-start;
        text-align: left;
        max-width: 100%;
        width: 100%;
    }

    .ml-result-row__meta--buyer-3col .ml-result-row__loc-aquatic-meta {
        align-items: flex-start;
        text-align: left;
    }
}

.ml-result-row__loc-col .ml-result-row__loc {
    margin: 0;
}

.ml-result-row__badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: #fff4e7;
    border: 1px solid rgba(230, 138, 69, 0.35);
}

.ml-result-row__badge--abn-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #ecfdf3;
    border-color: rgba(22, 163, 74, 0.35);
    color: #166534;
}

.ml-abn-verified__text {
    font-weight: 700;
}

.ml-abn-verified__icon {
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}

.ml-result-row__price {
    display: block;
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--ml-ink);
    letter-spacing: 0.01em;
}

.ml-result-row__condition-label {
    display: block;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--ml-ink);
    line-height: 1.2;
}

.ml-result-row__condition-label--adoption {
    color: #1b5e20;
}

.ml-result-row__condition-label--rehome {
    color: #0d47a1;
}

.ml-result-row__loc {
    color: var(--ml-ink-muted);
}

.ml-result-row__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ml-wishlist-btn {
    margin-left: auto;
    width: 34px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(230, 138, 69, 0.45);
    background: #fff8ef;
    color: #b66a2f;
    cursor: pointer;
}

.ml-wishlist-icon {
    width: 17px;
    height: 17px;
}

.ml-wishlist-btn.is-saved {
    background: var(--ml-accent);
    color: #fff;
    border-color: var(--ml-accent);
}

.ml-result-row__distance {
    display: block;
    margin: 0;
    color: var(--ml-ink-muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.ml-result-row__distance--muted {
    font-size: 0.88rem;
}

.ml-result-row__distance--muted a {
    color: var(--ml-accent-hover);
    font-weight: 600;
}

@media (max-width: 860px) {
    .ml-result-row__link {
        grid-template-columns: 1fr;
    }

    .ml-result-row__image {
        flex: 0 0 auto;
        min-height: 180px;
    }

    .ml-result-row__loc {
        margin-left: 0;
        width: 100%;
    }
}

.ml-search button:hover {
    background: var(--ml-accent-hover);
}

.ml-header-tools {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
}

.ml-header-auth {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}

.ml-header-auth-link {
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.52rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition:
        border-color 0.18s,
        background 0.18s,
        box-shadow 0.18s,
        color 0.18s;
}

.ml-header-auth-link--outline {
    border: 1px solid rgba(230, 138, 69, 0.42);
    background: #fffdfa;
    color: #7a4a24;
    box-shadow: 0 1px 2px rgba(62, 39, 35, 0.06);
}

.ml-header-auth-link--outline:hover {
    border-color: rgba(230, 138, 69, 0.65);
    background: var(--ml-accent-soft);
    color: #5c3818;
    box-shadow: 0 2px 10px rgba(62, 39, 35, 0.08);
}

.ml-header-auth-link--primary {
    border: 1px solid rgba(230, 138, 69, 0.65);
    background: linear-gradient(165deg, #fff4e4 0%, #ffc978 100%);
    color: #6b3a0f;
    box-shadow: 0 2px 8px rgba(230, 138, 69, 0.22);
}

.ml-header-auth-link--primary:hover {
    border-color: rgba(230, 138, 69, 0.85);
    background: linear-gradient(165deg, #ffe8cf 0%, #ffb44d 100%);
    color: #4a2808;
    box-shadow: 0 3px 14px rgba(230, 138, 69, 0.28);
}

.ml-header-btn {
    height: 44px;
    padding: 0 11px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: 1px solid var(--ml-card-border);
    background: var(--ml-cream);
    color: var(--ml-ink);
    box-shadow: 0 1px 2px rgba(62, 39, 35, 0.07);
    transition:
        border-color 0.18s,
        background 0.18s,
        box-shadow 0.18s,
        color 0.18s;
}

.ml-header-btn:hover {
    border-color: rgba(230, 138, 69, 0.45);
    background: var(--ml-accent-soft);
    box-shadow: 0 2px 10px rgba(62, 39, 35, 0.1);
}

.ml-header-btn--sell {
    border-color: rgba(230, 138, 69, 0.55);
    background: linear-gradient(165deg, #fffdfa 0%, #ffe8cf 100%);
    color: #a35218;
}

.ml-header-btn--sell:hover {
    background: linear-gradient(165deg, #fff5e8 0%, #ffd8a8 100%);
    color: #7e3d0f;
}

.ml-header-btn--muted {
    font-weight: 700;
}

.ml-header-btn--icon {
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
}

.ml-header-btn--icon.ml-header-btn--admin-review {
    border-color: rgba(220, 38, 38, 0.45);
    background: linear-gradient(165deg, #fff5f5 0%, #fee2e2 100%);
    color: #b91c1c;
}

.ml-header-btn--icon.ml-header-btn--admin-review:hover {
    border-color: rgba(220, 38, 38, 0.7);
    background: linear-gradient(165deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.ml-header-account-dropdown {
    position: relative;
    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
}

.ml-header-account-summary {
    list-style: none;
    cursor: pointer;
}

.ml-header-account-summary::-webkit-details-marker {
    display: none;
}

.ml-header-account-dropdown[open] .ml-header-account-summary {
    border-color: rgba(230, 138, 69, 0.55);
    background: var(--ml-accent-soft);
}

.ml-header-account-panel {
    position: absolute;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: calc(100% + 8px);
    min-width: 220px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--ml-card-border);
    background: #fffdfb;
    box-shadow: 0 14px 40px rgba(62, 39, 35, 0.14);
    z-index: 500;
    text-align: center;
}

.ml-header-account-name {
    display: block;
    font-weight: 800;
    font-size: 14px;
    color: var(--ml-ink);
    margin-bottom: 2px;
}

.ml-header-account-email {
    display: block;
    font-size: 12px;
    color: rgba(93, 64, 55, 0.75);
    margin-bottom: 10px;
    word-break: break-all;
}

.ml-header-account-switch-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.35rem 0 0.25rem;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(93, 64, 55, 0.75);
}

.ml-header-account-switch-sep::before,
.ml-header-account-switch-sep::after {
    content: "";
    flex: 1 1 0;
    min-width: 1.4rem;
    border-top: 1px solid rgba(93, 64, 55, 0.24);
}

.ml-header-account-link {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ml-ink);
    text-decoration: none;
}

.ml-header-account-link:hover {
    background: var(--ml-accent-soft);
}

.ml-header-account-link--setup-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    box-sizing: border-box;
}

.ml-header-account-setup-store-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    color: var(--ml-accent, #e68a45);
}

.ml-header-account-link--shop-switch {
    background: rgba(217, 120, 48, 0.12);
    border: 0;
    border-radius: 0;
    margin: 0;
}

.ml-header-account-link--shop-switch:hover,
.ml-header-account-link--shop-switch:focus-visible {
    background: rgba(217, 120, 48, 0.2);
}

.ml-header-account-link--danger {
    color: #b91c1c;
    margin-top: 6px;
    border-top: 1px solid rgba(62, 39, 35, 0.1);
    padding-top: 11px;
}

.ml-header-account-link--danger:hover {
    background: #fef2f2;
}

.ml-header-wishlist {
    position: relative;
}

.ml-header-notification {
    position: relative;
    border-color: rgba(93, 64, 55, 0.22);
    background: linear-gradient(165deg, #fffefb 0%, #f7efe4 100%);
}

.ml-header-notification:hover {
    border-color: rgba(230, 138, 69, 0.5);
    background: var(--ml-accent-soft);
}

.ml-header-notification-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1;
    color: #5d4037;
    margin-bottom: 1px;
}

.ml-header-notification:hover .ml-header-notification-mark {
    color: #7e3d0f;
}

.ml-header-notification-count {
    position: absolute;
    right: -5px;
    top: -5px;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: var(--ml-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.ml-header-messages {
    position: relative;
}

.ml-header-messages-count {
    position: absolute;
    right: -5px;
    top: -5px;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: #1e7a4c;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.ml-header-wishlist-count {
    position: absolute;
    right: -5px;
    top: -5px;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: var(--ml-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.ml-header-cart {
    position: relative;
}

.ml-header-cart-count {
    position: absolute;
    right: -5px;
    top: -5px;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: var(--ml-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.ml-header-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    pointer-events: none;
}

/* MENU */

.ml-menu {
    background: var(--ml-cream);
    border-top: 1px solid var(--ml-header-border);
}

.ml-menu-inner {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    position: relative;
}

.ml-menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    min-height: 52px;
    padding: 14px clamp(6px, 1.1vw, 12px);
    font-weight: 700;
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.2;
    border-right: 1px solid var(--ml-header-border);
    color: var(--ml-ink);
}

.ml-menu-inner > .ml-menu-link:last-child {
    border-right: none;
}

.ml-menu-link:hover {
    background: var(--ml-accent-soft);
    color: var(--ml-accent-hover);
}

.ml-menu-item {
    position: relative;
    border-right: 1px solid var(--ml-header-border);
    min-width: 0;
}

.ml-menu-item .ml-menu-link {
    border-right: none;
}

/* Label-only row: opens submenu on hover/focus; does not navigate.
   User-agent <button> border (often dark) must be cleared — same look as <a> links. */
button.ml-menu-link.ml-menu-link--dropdown-only {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-family: inherit;
    width: 100%;
    cursor: pointer;
    outline: none;
}

button.ml-menu-link.ml-menu-link--dropdown-only::-moz-focus-inner {
    border: 0;
    padding: 0;
}

button.ml-menu-link.ml-menu-link--dropdown-only:focus-visible {
    outline: 2px solid var(--ml-accent);
    outline-offset: 2px;
}

.ml-menu-inner > .ml-menu-link {
    min-width: 0;
}

.ml-menu-pop {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: min(420px, 92vw);
    padding: 10px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--ml-header-border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    z-index: 500;
}

/* Fish & aquatic: three equal cards — panel width ~3× single column so cards match the 2-up size */
.ml-menu-pop--triple {
    width: min(640px, 96vw);
    grid-template-columns: 1fr 1fr 1fr;
}

/* Edge dropdowns: anchor to the item edge instead of centring so wide (triple)
   panels don't get cut off the screen on smaller laptops. */
.ml-menu-inner > .ml-menu-item--dropdown:first-child .ml-menu-pop {
    left: 0;
    transform: none;
}

.ml-menu-inner > .ml-menu-item--dropdown:nth-last-child(2) .ml-menu-pop {
    left: auto;
    right: 0;
    transform: none;
}

/* Pet services: vertically centre dog / cat labels when aquatic caption wraps taller */
.ml-menu-pop--pet-services .ml-menu-pop-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ml-menu-pop--pet-services .ml-menu-pop-card:nth-child(2) span,
.ml-menu-pop--pet-services .ml-menu-pop-card:nth-child(3) span {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 0;
}

.ml-menu-item--dropdown:hover .ml-menu-pop,
.ml-menu-item--dropdown:focus-within .ml-menu-pop {
    display: grid;
}

.ml-menu-pop-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #edd7c8;
    background: #fffaf5;
    color: var(--ml-ink);
}

.ml-menu-pop-card img {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.ml-menu-pop-card span {
    display: block;
    text-align: center;
    padding: 10px 8px;
    font-weight: 700;
    font-size: 13px;
}

.ml-menu-pop-card:hover {
    border-color: var(--ml-accent);
    background: #fff3e9;
}

/* ================= HERO CAROUSEL ================= */

.ml-hero-carousel {
    position: relative;
    color: var(--ml-cream);
    overflow: hidden;
}

.ml-hero-carousel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 56px;
    z-index: 4;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%23fff9f3' d='M0 24c120 18 280 18 400 0s280-36 400-18 280 36 400 18 280-18 240-24V56H0z'/%3E%3C/svg%3E")
        center bottom no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

.ml-hero-viewport {
    overflow: hidden;
    width: 100%;
}

.ml-hero-track {
    display: flex;
    width: 400%;
    transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
}

.ml-hero-slide {
    position: relative;
    flex: 0 0 25%;
    width: 25%;
    min-height: 480px;
    display: flex;
    align-items: stretch;
}

.ml-hero-slide-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ml-hero-slide--warm .ml-hero-slide-img {
    object-position: 56% 38%;
}

.ml-hero-slide-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        rgba(35, 22, 18, 0.88) 0%,
        rgba(62, 39, 35, 0.55) 38%,
        rgba(62, 39, 35, 0.2) 62%,
        rgba(62, 39, 35, 0.35) 100%
    );
}

.ml-hero-slide-scrim--warm {
    background: linear-gradient(
        105deg,
        rgba(42, 28, 22, 0.82) 0%,
        rgba(95, 58, 40, 0.42) 44%,
        rgba(140, 88, 58, 0.16) 72%,
        rgba(55, 38, 28, 0.32) 100%
    );
}

.ml-hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 72px 0 96px;
    max-width: 640px;
    align-self: center;
}

.ml-eyebrow {
    display: inline-block;
    font-family: var(--ml-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ml-ink-muted);
    margin-bottom: 10px;
}

.ml-eyebrow--on-dark {
    color: rgba(255, 250, 245, 0.85);
}

.ml-hero-carousel h1 {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
    margin-bottom: 14px;
    color: #fffaf5;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.ml-hero-carousel .ml-hero-slide-content > p:not(.ml-hero-likes) {
    font-size: 18px;
    margin-bottom: 18px;
    color: rgba(255, 250, 245, 0.92);
    max-width: 38ch;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.ml-hero-likes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    margin-bottom: 22px !important;
    color: rgba(255, 250, 245, 0.95);
}

.ml-hero-likes-icon {
    font-size: 18px;
}

.ml-hero-likes strong {
    font-weight: 800;
    color: #fff;
}

.ml-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ml-hero-buttons--triple {
    flex-wrap: nowrap;
    align-items: center;
}

.ml-hero-buttons--triple .ml-btn {
    flex: 0 1 auto;
    white-space: nowrap;
    padding: 11px 18px;
    font-size: 14px;
}

.ml-hero-slide-content:has(.ml-hero-buttons--triple) {
    max-width: min(100%, 920px);
}

.ml-btn {
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ml-btn-primary {
    background: var(--ml-accent);
    color: white;
    border: 2px solid var(--ml-accent);
}

.ml-btn-primary:hover {
    background: var(--ml-accent-hover);
    border-color: var(--ml-accent-hover);
}

.ml-btn-light {
    background: rgba(255, 255, 255, 0.65);
    color: var(--ml-ink);
    border: 2px solid rgba(62, 39, 35, 0.2);
}

.ml-btn-light:hover {
    background: white;
    border-color: rgba(62, 39, 35, 0.35);
}

.ml-hero-carousel .ml-btn-primary {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ml-hero-carousel .ml-btn-light {
    background: rgba(255, 255, 255, 0.22);
    color: #fffaf5;
    border-color: rgba(255, 250, 245, 0.45);
}

.ml-hero-carousel .ml-btn-light:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 250, 245, 0.65);
}

.ml-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 250, 245, 0.92);
    color: var(--ml-ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ml-shadow);
    transition: background 0.15s, transform 0.15s;
}

.ml-hero-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.ml-hero-arrow--prev {
    left: max(12px, calc((100% - 1250px) / 2 + 8px));
}

.ml-hero-arrow--next {
    right: max(12px, calc((100% - 1250px) / 2 + 8px));
}

.ml-hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(35, 22, 18, 0.35);
    backdrop-filter: blur(6px);
}

.ml-hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 250, 245, 0.45);
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.ml-hero-dot:hover {
    background: rgba(255, 250, 245, 0.75);
}

.ml-hero-dot.is-active {
    background: var(--ml-accent);
    transform: scale(1.25);
}

/* ================= SECTIONS ================= */

.ml-section-title h2 {
    font-family: var(--ml-font-display);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ml-ink);
}

.ml-section-lead {
    font-family: var(--ml-font-body);
    font-size: 17px;
    font-weight: 400;
    color: var(--ml-ink-muted);
    max-width: 52ch;
    margin-bottom: 28px;
    line-height: 1.5;
}

.ml-section-lead--one-line {
    max-width: none;
    white-space: nowrap;
}

.ml-section {
    padding: 44px 0;
}

.ml-section-explore .ml-section-title {
    margin-bottom: 0;
}

/* Listing cards — marketplace grid & shop listings */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.listing-card {
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--ml-header-border);
    background: #fff;
}

.listing-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.listing-img {
    width: 100%;
    min-height: 180px;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #f8efe6;
}

.listing-body {
    padding: 0.9rem 1rem 1.1rem;
    display: grid;
    gap: 0.45rem;
}

.listing-body .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.listing-body .badges span {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #fff4e7;
    border: 1px solid rgba(230, 138, 69, 0.35);
    text-transform: capitalize;
}

.listing-body h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}

.listing-body p {
    margin: 0;
    color: var(--ml-ink-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.listing-body strong {
    font-size: 1.05rem;
}

.listing-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
}

.listing-sold {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    background: rgba(230, 138, 69, 0.12);
    color: #8a4a1c;
    border: 1px solid rgba(230, 138, 69, 0.35);
}

.listing-distance {
    display: block;
    font-size: 0.9rem;
    color: var(--ml-ink-muted);
    margin-top: 0.15rem;
}

.listing-distance--muted {
    font-size: 0.86rem;
}

.listing-distance--muted a {
    color: var(--ml-accent-hover);
    font-weight: 600;
}

.listing-body .ml-listing-posted-ago {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(93, 64, 55, 0.72);
    letter-spacing: 0.01em;
}

.listing-map-card {
    margin: 0.85rem 0 1rem;
    border: 1px solid rgba(107, 95, 86, 0.18);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.listing-map-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.listing-map-card__frame {
    display: block;
    width: 100%;
    height: 230px;
    border: 0;
    pointer-events: none;
}

.listing-map-card__cta {
    display: block;
    padding: 0.6rem 0.8rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ml-accent, #d97830);
    border-top: 1px solid rgba(107, 95, 86, 0.14);
    background: rgba(255, 248, 241, 0.65);
}

.listing-map-card__hint {
    margin: 0;
    padding: 0.5rem 0.8rem 0.75rem;
    font-size: 0.8rem;
    color: rgba(93, 64, 55, 0.8);
}

.listing-map-card__hint a {
    color: var(--ml-accent, #d97830);
    font-weight: 700;
}

.listing-adoption-org-card {
    margin: 0.75rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(62, 39, 35, 0.12);
    background: #fffdfb;
    box-sizing: border-box;
}

.listing-adoption-org-card__row {
    margin: 0 0 0.55rem;
    display: grid;
    gap: 0.15rem;
}

.listing-adoption-org-card__row:last-child {
    margin-bottom: 0;
}

.listing-adoption-org-card__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(62, 39, 35, 0.62);
}

.listing-adoption-org-card__value {
    font-size: 0.98rem;
    font-weight: 700;
    color: #3e2723;
}

.listing-adoption-org-card__policy {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(62, 39, 35, 0.1);
}

.listing-adoption-org-card__policy-body {
    margin-top: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #3e2723;
}

.listing-adoption-org-card__row--apply {
    margin-top: 0.35rem;
}

.listing-adoption-org-card__apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-top: 0.25rem;
    text-decoration: none;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
}

.listing-adoption-org-card__apply-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(62, 39, 35, 0.62);
}

.listing-adoption-org-card__please-note {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(62, 39, 35, 0.1);
}

.listing-adoption-org-card__please-note-body {
    margin-top: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #3e2723;
}

.listing-adoption-org-card__please-note--writer-hint {
    border-style: dashed;
    background: rgba(217, 120, 48, 0.06);
}

.listing-adoption-org-card__please-note-hint {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(62, 39, 35, 0.72);
}

.listing-adoption-org-card__please-note-hint a {
    color: var(--ml-accent, #d97830);
    font-weight: 800;
}

.ml-shop-about-adoption-policy {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(62, 39, 35, 0.1);
}

.ml-shop-about-subtitle {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    font-weight: 800;
    color: #3e2723;
}

.listing-detail-owner-edit {
    margin: 0;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    box-sizing: border-box;
    display: block;
    text-align: right;
}

.listing-detail-media-col > .listing-detail-owner-edit {
    /* Keep the control on the far right of the gallery/map column (bulletproof vs flex quirks). */
    padding-left: 0;
    padding-right: 0;
}

.listing-detail-owner-edit__btn.ml-btn {
    display: inline-flex;
    text-decoration: none;
    box-sizing: border-box;
    font-size: 0.92rem;
    padding: 0.5rem 1.15rem;
    min-height: 2.5rem;
}

.listing-detail-owner-edit__btn.ml-btn-primary:visited {
    color: #fff;
}

.listing-detail-owner-edit__btn.ml-btn-primary:hover {
    color: #fff;
}

/* Shop listing grids (My shop + public shop): price bottom-left, “posted” bottom-right */
.ml-shop-listings-grid > .listing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.ml-shop-listings-grid > .listing-card > a {
    flex: 1 1 auto;
    min-height: 0;
}

.ml-shop-listings-grid .listing-card__stack {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.ml-shop-listings-grid .listing-card__media {
    position: relative;
}

.ml-shop-listings-grid .listing-card__thumb-link {
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.ml-shop-listings-grid .listing-card__thumb-link .listing-img {
    pointer-events: none;
}

.ml-shop-listings-grid .listing-card__body-shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
}

.ml-shop-listings-grid .listing-body > h3 {
    margin: 0;
    font-size: 1.24rem;
    line-height: 1.22;
    font-weight: 700;
    min-height: calc(2 * 1.22em);
    box-sizing: border-box;
}

.ml-shop-listings-grid .listing-body > h3:not(.listing-card__title-heading) {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ml-shop-listings-grid .listing-card__title-heading .listing-card__title-link {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ml-shop-listings-grid .listing-card__title-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.ml-shop-listings-grid .listing-card__title-link:hover {
    text-decoration: underline;
}

.ml-shop-listings-grid .listing-card__snippet-link {
    display: block;
    flex: 0 0 auto;
    min-height: 0;
    color: inherit;
    text-decoration: none;
}

.ml-shop-listings-grid .listing-card__snippet-link:hover .ml-shop-listing-snippet {
    text-decoration: underline;
}

.ml-shop-listings-grid .listing-card__footer-hit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 1rem;
    width: 100%;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
}

.ml-shop-listings-grid .listing-card__footer-hit:hover .ml-shop-listing-price {
    text-decoration: underline;
}

.ml-shop-listing-card-floating-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.ml-shop-listing-card-floating-actions .ml-result-row__msg-form,
.ml-shop-listing-card-floating-actions .ml-wishlist-btn,
.ml-shop-listing-card-floating-actions .ml-shop-listing-card-icon-btn {
    pointer-events: auto;
}

.ml-shop-listing-card-floating-actions .ml-result-row__msg-form {
    margin: 0;
}

.ml-shop-listing-card-floating-actions .ml-shop-listing-card-icon-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
    box-sizing: border-box;
}

.ml-shop-listing-card-floating-actions a.ml-shop-listing-card-icon-btn {
    text-decoration: none;
}

.ml-shop-listing-card-floating-actions .ml-shop-listing-msg-icon {
    width: 17px;
    height: 17px;
    display: block;
}

.ml-shop-listing-card-floating-actions .ml-wishlist-btn {
    margin-left: 0;
}

/* Seller listing cards: view + wishlist save counts (top-left, mirrors edit/delete sizing) */
.ml-shop-listing-card-toolbar--stats-left {
    left: 8px;
    right: auto;
    top: 8px;
    flex-direction: row;
    gap: 6px;
    pointer-events: none;
    z-index: 6;
}

.ml-listing-stat-btn {
    position: relative;
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(93, 64, 55, 0.22);
    background: #fff;
    color: #212121;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.ml-listing-stat-btn--wishlist {
    color: var(--ml-accent, #c45c26);
}

.ml-listing-stat-btn__badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 1.05rem;
    padding: 0.08rem 0.32rem;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    background: var(--ml-accent, #c45c26);
    border-radius: 999px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ml-listing-stat-btn__icon {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
}

.ml-dash-post-card__thumb .ml-shop-listing-card-toolbar--stats-left {
    position: absolute;
    left: 8px;
    top: 8px;
}

.ml-shop-listings-grid .listing-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    min-height: 0;
}

.ml-shop-listings-grid .listing-body .ml-shop-listing-snippet {
    flex: 0 0 auto;
    margin: 0;
    min-height: 0;
    font-size: 0.88rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-height: calc(4 * 1.4em);
    max-height: calc(4 * 1.4em);
    box-sizing: border-box;
}

.ml-shop-listings-grid .ml-shop-listing-footer {
    margin-top: auto;
    padding-top: 0.35rem;
}

.ml-shop-listings-grid .ml-shop-listing-price {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    justify-self: start;
}

.ml-shop-listings-grid .listing-body .ml-listing-posted-ago {
    margin: 0;
    justify-self: end;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.25;
}

/* My shop listing cards: edit + delete (banner-style), top-right over image */
.listing-card--manageable {
    position: relative;
}

.ml-shop-listing-card-toolbar {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
}

.ml-shop-listing-card-toolbar .ml-shop-listing-toolbar-edit,
.ml-shop-listing-card-toolbar .ml-shop-listing-toolbar-del-form,
.ml-shop-listing-card-toolbar .ml-shop-listing-toolbar-renew-form,
.ml-shop-listing-card-toolbar .ml-shop-listing-toolbar-delete,
.ml-shop-listing-card-toolbar .ml-shop-listing-toolbar-hide-draft {
    pointer-events: auto;
}

.ml-shop-listing-toolbar-del-form {
    margin: 0;
    padding: 0;
    display: inline;
}

.ml-shop-listing-card-toolbar .ml-shop-listing-toolbar-renew-form {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

a.ml-shop-listing-toolbar-edit {
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(93, 64, 55, 0.22);
    background: #fff;
    color: #212121;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    line-height: 0;
}

a.ml-shop-listing-toolbar-edit:hover {
    background: #fafafa;
    color: #000;
}

a.ml-shop-listing-toolbar-edit:focus-visible {
    outline: 2px solid var(--ml-primary, #d84315);
    outline-offset: 2px;
}

.ml-shop-listing-toolbar-edit-icon {
    display: block;
    pointer-events: none;
}

button.ml-shop-listing-toolbar-renew {
    box-sizing: border-box;
    width: auto;
    min-width: auto;
    height: 30px;
    margin: 0;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(93, 64, 55, 0.22);
    background: #fff;
    color: #212121;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

button.ml-shop-listing-toolbar-renew:hover {
    background: #fafafa;
    color: #000;
}

button.ml-shop-listing-toolbar-renew:focus-visible {
    outline: 2px solid var(--ml-primary, #d84315);
    outline-offset: 2px;
}

.ml-shop-listing-toolbar-delete {
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(198, 40, 40, 0.35);
    background: rgba(255, 255, 255, 0.95);
    color: #c62828;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font: inherit;
}

.ml-shop-listing-toolbar-delete:hover {
    background: #fff;
    color: #b71c1c;
}

.ml-shop-listing-toolbar-delete:focus-visible {
    outline: 2px solid var(--ml-primary, #d84315);
    outline-offset: 2px;
}

button.ml-shop-listing-toolbar-hide-draft {
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(93, 64, 55, 0.22);
    background: rgba(255, 255, 255, 0.95);
    color: #212121;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font: inherit;
}

button.ml-shop-listing-toolbar-hide-draft:hover {
    background: #fafafa;
    color: #000;
}

button.ml-shop-listing-toolbar-hide-draft:focus-visible {
    outline: 2px solid var(--ml-primary, #d84315);
    outline-offset: 2px;
}

.ml-shop-listing-toolbar-hide-draft-icon {
    display: block;
    pointer-events: none;
}

.listing-body small {
    color: var(--ml-ink-muted);
}

.listing-loc {
    display: block;
}

/* Photo tiles — marketplace & community */

.ml-tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ml-tile-grid--community {
    gap: 18px;
}

.ml-tile-grid--community-bottom {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    max-width: 760px;
    margin: 18px auto 0;
}

.ml-tile {
    position: relative;
    display: block;
    min-height: 320px;
    border-radius: var(--ml-radius);
    overflow: hidden;
    border: 1px solid var(--ml-card-border);
    box-shadow: var(--ml-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ml-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(62, 39, 35, 0.14);
}

.ml-tile:focus-visible {
    outline: 3px solid var(--ml-accent);
    outline-offset: 3px;
}

.ml-tile-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--ml-bg-soft);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.45s ease;
}

.ml-tile:hover .ml-tile-media {
    transform: scale(1.06);
}

.ml-tile-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        165deg,
        rgba(35, 22, 18, 0.15) 0%,
        rgba(35, 22, 18, 0.35) 42%,
        rgba(22, 14, 11, 0.85) 100%
    );
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.ml-tile--aquatic .ml-tile-gradient {
    background: linear-gradient(
        165deg,
        rgba(15, 50, 70, 0.25) 0%,
        rgba(15, 40, 55, 0.45) 45%,
        rgba(10, 30, 45, 0.88) 100%
    );
}

.ml-tile--dog .ml-tile-gradient {
    background: linear-gradient(
        165deg,
        rgba(90, 50, 20, 0.2) 0%,
        rgba(80, 45, 25, 0.4) 45%,
        rgba(45, 28, 18, 0.88) 100%
    );
}

.ml-tile--cat .ml-tile-gradient {
    background: linear-gradient(
        165deg,
        rgba(70, 35, 55, 0.22) 0%,
        rgba(55, 28, 45, 0.42) 45%,
        rgba(35, 18, 30, 0.88) 100%
    );
}

.ml-tile-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    padding: 26px 24px 24px;
    color: #fffaf5;
}

.ml-tile-kicker {
    display: inline-block;
    font-family: var(--ml-font-body);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 250, 245, 0.88);
    margin-bottom: 10px;
}

.ml-tile-body h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.55rem);
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.ml-tile-body p {
    font-family: var(--ml-font-body);
    font-size: 15px;
    line-height: 1.45;
    color: rgba(255, 250, 245, 0.92);
    margin-bottom: 14px;
    max-width: 34ch;
}

.ml-tile-cta {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    opacity: 0.95;
}

.ml-tile:hover .ml-tile-cta {
    color: #ffe0c8;
}

/* Explore marketplace — “lift the glass” two-choice panel */

.ml-tile--explore {
    cursor: default;
}

.ml-tile--explore .ml-tile-media {
    transition:
        transform 0.45s ease,
        filter 0.28s ease;
}

.ml-tile-cta--explore-hint {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 250, 245, 0.82);
    transition: opacity 0.2s ease;
}

.ml-tile--explore:hover .ml-tile-cta--explore-hint,
.ml-tile--explore:focus-within .ml-tile-cta--explore-hint {
    opacity: 0;
}

.ml-tile--explore:hover .ml-tile-media,
.ml-tile--explore:focus-within .ml-tile-media {
    filter: brightness(1.04) saturate(1.03);
}

.ml-tile--explore:hover .ml-tile-gradient,
.ml-tile--explore:focus-within .ml-tile-gradient {
    opacity: 0.92;
}

.ml-tile-lift {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    height: min(48%, 188px);
    min-height: 148px;
    pointer-events: none;
    transform: translateY(102%);
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease;
    opacity: 0.98;
}

.ml-tile--explore:hover .ml-tile-lift,
.ml-tile--explore:focus-within .ml-tile-lift {
    transform: translateY(0);
    pointer-events: auto;
}

.ml-tile-lift__panel {
    height: 100%;
    margin: 0 10px 10px;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: start;
    align-content: start;
    box-sizing: border-box;
    border-radius: 14px 14px 12px 12px;
    border: 1px solid rgba(230, 138, 69, 0.35);
    background: rgba(255, 253, 249, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -8px 28px rgba(62, 39, 35, 0.12);
}

.ml-tile-lift__panel--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/*
 * Explore — Aquatic: 2×2 on photo (TL empty). TR = plants, BL = pets, BR = supplies.
 * Smaller cards + lift padding so nothing clips — clear breathing room vs clownfish background.
 */
.ml-tile-lift__panel--aquatic-hook {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-auto-rows: auto;
}

.ml-tile--explore .ml-tile-lift__panel--aquatic-hook {
    box-sizing: border-box;
    width: min(100%, 38rem);
    max-width: 97%;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    flex-shrink: 0;
    padding: 10px;
    gap: 10px;
}

.ml-tile--aquatic.ml-tile--explore .ml-tile-lift__panel--aquatic-hook .ml-tile-lift__card:nth-child(1) {
    /* Find aquatic pets */
    grid-column: 1;
    grid-row: 2;
}

.ml-tile--aquatic.ml-tile--explore .ml-tile-lift__panel--aquatic-hook .ml-tile-lift__card:nth-child(2) {
    /* Aquatic supplies */
    grid-column: 2;
    grid-row: 2;
}

.ml-tile--aquatic.ml-tile--explore .ml-tile-lift__panel--aquatic-hook .ml-tile-lift__card:nth-child(3) {
    /* Live plants (aquatic_plants listings) */
    grid-column: 2;
    grid-row: 1;
}

.ml-tile--aquatic.ml-tile--explore .ml-tile-lift__panel--aquatic-hook .ml-tile-lift__img-wrap {
    height: clamp(66px, 12vmin, 98px);
    min-height: 0;
    border-radius: 9px 9px 0 0;
}

.ml-tile--aquatic.ml-tile--explore .ml-tile-lift__panel--aquatic-hook .ml-tile-lift__card {
    border-radius: 10px;
}

.ml-tile--aquatic.ml-tile--explore .ml-tile-lift__panel--aquatic-hook .ml-tile-lift__label {
    padding: 8px 8px 10px;
    min-height: 0;
    font-size: clamp(10.5px, calc(9.5px + 0.35vw), 12.5px);
    line-height: 1.28;
    border-radius: 0 0 9px 9px;
}

/* Explore marketplace: consistent lift height + smooth panel (2 or 3 links) */
.ml-tile--explore .ml-tile-lift {
    height: auto;
    min-height: 200px;
    max-height: none;
}

/*
 * Aquatic hover: stretch lift full tile height (top+bottom) so flex centring is truly vertical on the photo.
 * Padding keeps a rim of clownfish visible around the link grid.
 */
.ml-tile--aquatic.ml-tile--explore .ml-tile-lift {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: clamp(12px, 4vw, 24px);
    overflow: visible;
}

.ml-tile--explore .ml-tile-lift__panel {
    height: auto;
    margin: 0 12px 14px;
    padding: 12px;
    gap: 10px;
    align-items: stretch;
    border-radius: 16px 16px 14px 14px;
    border-color: rgba(230, 138, 69, 0.26);
    box-shadow:
        0 -12px 36px rgba(62, 39, 35, 0.12),
        0 6px 24px rgba(62, 39, 35, 0.06);
}

/* Aquatic 2×2: rule above re-applies asymmetric bottom margin — undo so flex vertical centre stays true */
.ml-tile--explore .ml-tile-lift__panel.ml-tile-lift__panel--aquatic-hook {
    margin: 0 auto;
    padding: 10px;
    gap: 10px;
}

.ml-tile--explore .ml-tile-lift__card {
    height: 100%;
    min-height: 0;
    overflow: visible;
    border-radius: 12px;
    border-color: rgba(230, 138, 69, 0.16);
    box-shadow: 0 2px 12px rgba(62, 39, 35, 0.07);
}

.ml-tile--explore .ml-tile-lift__img-wrap {
    height: 86px;
    flex-shrink: 0;
    border-radius: 11px 11px 0 0;
    overflow: hidden;
}

/* Match `.ml-menu-pop-card span` — dog/cat Explore hover captions were too tall vs header dropdown */
.ml-tile--explore .ml-tile-lift__label {
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    min-height: 0;
    font-size: 13px;
    line-height: 1.35;
    text-wrap: balance;
    border-radius: 0 0 11px 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ml-tile-lift__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(230, 138, 69, 0.22);
    background: #fffdfa;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.ml-tile-lift__card:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 138, 69, 0.5);
    box-shadow: 0 6px 16px rgba(62, 39, 35, 0.1);
}

.ml-tile-lift__img-wrap {
    display: block;
    flex: 0 0 auto;
    /* Close to `.ml-menu-pop-card img` (110px) — photo-first, slim caption below */
    height: 100px;
    overflow: hidden;
    background: #f8efe6;
}

.ml-tile-lift__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Short strip + cover crops heavily; keep top of frame (faces) visible. */
    object-position: center top;
    display: block;
}

/* Cats “Find your cat” lift card — center the crop so the face sits in the middle of the strip */
.ml-tile--cat.ml-tile--explore .ml-tile-lift__panel .ml-tile-lift__card:first-child .ml-tile-lift__img {
    object-position: center center;
}

.ml-tile-lift__label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    /* Same band thickness as `.ml-menu-pop-card span` */
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: var(--ml-ink);
    background: linear-gradient(180deg, #fff9f3 0%, #fff3e8 100%);
}

@media (max-width: 768px) {
    .ml-tile-cta--explore-hint {
        display: none;
    }

    .ml-tile-lift {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        height: auto;
        min-height: 0;
        position: relative;
        margin-top: -8px;
    }

    .ml-tile-lift__panel {
        margin: 0;
        margin-top: 8px;
    }

    .ml-tile-lift__panel--triple,
    .ml-tile-lift__panel--aquatic-hook {
        grid-template-columns: 1fr;
    }

    .ml-tile--aquatic.ml-tile--explore .ml-tile-lift__panel--aquatic-hook .ml-tile-lift__card:nth-child(1),
    .ml-tile--aquatic.ml-tile--explore .ml-tile-lift__panel--aquatic-hook .ml-tile-lift__card:nth-child(2),
    .ml-tile--aquatic.ml-tile--explore .ml-tile-lift__panel--aquatic-hook .ml-tile-lift__card:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }

    .ml-tile--aquatic.ml-tile--explore .ml-tile-lift {
        max-height: none;
        overflow: visible;
        display: block;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
    }

    .ml-tile--explore .ml-tile-lift__panel--aquatic-hook {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
    }

    .ml-tile--explore .ml-tile-lift__label {
        min-height: 0;
        padding: 10px 8px;
    }

    .ml-tile--explore {
        display: flex;
        flex-direction: column;
    }

    .ml-tile-body--explore {
        min-height: 240px;
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ml-tile-lift {
        transition-duration: 0.01ms;
    }

    .ml-tile-lift__card:hover {
        transform: none;
    }
}

/* Community row — slightly softer cards */

.ml-explore-communities {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--ml-header-border);
}

.ml-tile--community {
    min-height: 280px;
}

.ml-tile--community .ml-tile-body {
    min-height: 280px;
    padding: 22px 20px 20px;
}

.ml-tile--community .ml-tile-gradient {
    opacity: 0.92;
}

/* Community page — three warm hero tiles (same vibe as homepage communities row, larger) */
.ml-community-landing {
    padding: 2rem 0 2.75rem;
    background: linear-gradient(185deg, #fff9f3 0%, #fffdf9 38%, #ffffff 100%);
}

.ml-community-landing-head {
    margin-bottom: 1.75rem;
    max-width: 42rem;
}

.ml-community-landing-head h1 {
    margin: 0 0 0.5rem 0;
    font-family: var(--ml-font-display, Georgia, serif);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--ml-ink, #3e2723);
}

.ml-community-landing-lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ml-ink-muted);
}

.ml-tile-grid--community-landing {
    gap: 22px;
}

.ml-tile-grid--community-landing .ml-tile--community {
    min-height: 400px;
}

.ml-tile-grid--community-landing .ml-tile--community .ml-tile-body {
    min-height: 400px;
    padding: 30px 26px 26px;
}

@media (max-width: 960px) {
    .ml-tile-grid--community-landing {
        grid-template-columns: 1fr;
    }

    .ml-tile-grid--community-landing .ml-tile--community,
    .ml-tile-grid--community-landing .ml-tile--community .ml-tile-body {
        min-height: 340px;
    }
}

/* ================= SELLERS ================= */

.ml-section-sellers .ml-section-title {
    margin-bottom: 0;
}

.ml-section-sellers .ml-section-lead {
    margin-bottom: 26px;
}

.ml-seller-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.ml-home-rescues-strip {
    margin-bottom: 0;
}

.ml-home-rescues-strip__track {
    align-items: stretch;
}

/* ~5 rescue cards visible on desktop; arrows when more than fit */
.ml-home-rescues-strip__track > .ml-home-rescues-strip__card {
    flex: 0 0 calc((100% - 4rem) / 5);
    min-width: calc((100% - 4rem) / 5);
    max-width: calc((100% - 4rem) / 5);
    scroll-snap-align: start;
    height: auto;
}

@media (max-width: 1000px) {
    .ml-home-rescues-strip__track > .ml-home-rescues-strip__card {
        flex-basis: calc((100% - 3rem) / 4);
        min-width: calc((100% - 3rem) / 4);
        max-width: calc((100% - 3rem) / 4);
    }
}

@media (max-width: 720px) {
    .ml-home-rescues-strip__track > .ml-home-rescues-strip__card {
        flex-basis: calc((100% - 0.75rem) / 2);
        min-width: calc((100% - 0.75rem) / 2);
        max-width: calc((100% - 0.75rem) / 2);
    }
}

@media (max-width: 420px) {
    .ml-home-rescues-strip__track > .ml-home-rescues-strip__card {
        flex-basis: 85%;
        min-width: 85%;
        max-width: 85%;
    }
}

.ml-seller-card {
    background: var(--ml-cream);
    border-radius: var(--ml-radius);
    border: 1px solid var(--ml-card-border);
    box-shadow: 0 6px 22px rgba(62, 39, 35, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.ml-seller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(62, 39, 35, 0.12);
    border-color: rgba(230, 138, 69, 0.28);
}

.ml-seller-card-inner {
    padding: 20px 16px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.ml-seller-card-inner:hover .ml-seller-name,
.ml-seller-card-inner:focus-visible .ml-seller-name {
    color: var(--ml-accent, #c45c26);
}

.ml-seller-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        hsl(var(--av-h, 32), 62%, 88%) 0%,
        hsl(var(--av-h, 32), 55%, 78%) 100%
    );
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 14px rgba(62, 39, 35, 0.12);
}

.ml-seller-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.ml-seller-initials {
    font-family: var(--ml-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: hsl(var(--av-h, 32), 35%, 28%);
    position: relative;
    z-index: 0;
}

.ml-seller-name {
    font-family: var(--ml-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--ml-ink);
}

.ml-seller-tagline {
    font-size: 13px;
    font-weight: 600;
    color: var(--ml-ink-muted);
    margin: 0;
    line-height: 1.45;
    min-height: calc(1.45em * 3);
    max-height: calc(1.45em * 3);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.ml-seller-card-meta {
    margin-top: auto;
    padding-top: 12px;
    flex-shrink: 0;
}

.ml-seller-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ml-ink-muted);
}

.ml-seller-stat-sep {
    opacity: 0.55;
}

.ml-seller-badge {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #8a4b1f;
}

.ml-seller-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-bottom: 10px;
    font-size: 13px;
}

.ml-seller-stars {
    color: #e8a317;
    letter-spacing: -2px;
    font-size: 13px;
    line-height: 1;
}

.ml-seller-score {
    font-weight: 800;
    color: var(--ml-ink);
}

.ml-seller-count {
    color: var(--ml-ink-muted);
    font-weight: 600;
}

.ml-seller-sales {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--ml-accent-hover);
}

/* Tail: sign-in + back to top */

.ml-home-founder {
    margin: 2.5rem 0 0;
    padding: 2.25rem 0 2.5rem;
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.65) 0%, rgba(239, 230, 220, 0.45) 100%);
    border-top: 1px solid rgba(93, 64, 55, 0.1);
}

.ml-home-founder__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: 2rem 2.5rem;
    align-items: start;
}

.ml-home-founder__title {
    margin: 0 0 0.45rem;
    font-family: var(--ml-font-display);
    font-size: clamp(1.55rem, 2.4vw, 1.95rem);
    font-weight: 700;
    color: var(--ml-ink);
}

.ml-home-founder__lead {
    margin: 0 0 1rem;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ml-ink-muted, #6d4c41);
}

.ml-home-founder__text {
    margin: 0 0 0.85rem;
    font-size: 0.98rem;
    line-height: 1.62;
    color: var(--ml-ink);
}

.ml-home-founder__company {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ml-ink-muted, #6d4c41);
}

.ml-home-founder__more {
    margin: 1.1rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.ml-home-founder__more a {
    color: var(--ml-accent);
    text-decoration: none;
}

.ml-home-founder__more a:hover,
.ml-home-founder__more a:focus-visible {
    text-decoration: underline;
}

.ml-home-founder__people {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    margin: 0;
    padding: 0.75rem 0 0;
}

.ml-home-founder__person {
    margin: 0;
    text-align: center;
    flex: 0 1 9.5rem;
}

.ml-home-founder__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8.5rem;
    height: 8.5rem;
    margin: 0 auto 0.65rem;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: transparent;
}

.ml-founder-avatar--jun,
.ml-founder-avatar--thi {
    background: transparent;
    box-shadow: none;
}

.ml-home-founder__photo,
.ml-about-founders__photo,
.ml-founder-avatar__art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ml-founder-role--jun,
.ml-founder-role--thi {
    color: var(--ml-accent);
}

.ml-home-founder__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ml-home-founder__initials {
    display: none;
}

.ml-home-founder__name {
    display: block;
    font-family: var(--ml-font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ml-ink);
}

.ml-home-founder__role {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ml-accent);
}

.ml-about-founders {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 1.5rem 0 1.75rem;
    padding: 0;
}

.ml-about-founders__person {
    margin: 0;
    text-align: center;
    flex: 0 1 10rem;
}

.ml-about-founders__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 9.5rem;
    height: 9.5rem;
    margin: 0 auto 0.7rem;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: transparent;
}

.ml-about-founders__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ml-about-founders__initials {
    display: none;
}

.ml-about-founders__name {
    display: block;
    font-family: var(--ml-font-display);
    font-size: 1.12rem;
    font-weight: 700;
}

.ml-about-founders__role {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ml-accent);
}

.ml-about-prose {
    margin-top: 0.5rem;
}

.ml-about-back {
    margin-top: 1.5rem;
}

@media (max-width: 820px) {
    .ml-home-founder__inner {
        grid-template-columns: 1fr;
    }

    .ml-home-founder__people {
        justify-content: flex-start;
    }
}

.ml-page-tail {
    margin-top: 8px;
}

.ml-tail-cta-inner {
    padding: 28px 16px 20px;
}

.ml-tail-account {
    text-align: center;
}

.ml-tail-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(165deg, var(--ml-accent) 0%, var(--ml-accent-hover) 100%);
    color: #fffaf5;
    border: none;
    box-shadow: 0 6px 20px rgba(230, 138, 69, 0.35);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.ml-tail-signin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(230, 138, 69, 0.42);
}

.ml-tail-register {
    margin: 18px 0 0;
    font-size: 16px;
    color: var(--ml-ink-muted);
}

.ml-tail-register a {
    font-weight: 800;
    color: var(--ml-accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ml-tail-register a:hover {
    color: var(--ml-ink);
}

.ml-tail-account--logged .ml-tail-register {
    margin-top: 0;
}

.ml-back-to-top {
    display: block;
    width: 100%;
    margin: 0;
    padding: 18px 24px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fffaf5;
    background: linear-gradient(
        90deg,
        #c76d2e 0%,
        var(--ml-accent) 35%,
        #0891b2 100%
    );
    transition:
        filter 0.2s ease,
        opacity 0.2s ease;
}

.ml-back-to-top:hover {
    filter: brightness(1.07);
}

.ml-back-to-top:focus-visible {
    outline: 3px solid #fffaf5;
    outline-offset: -6px;
}

/* Span full width when sidebar is closed; otherwise sit under the results
   column so the sticky sidebar cannot cover the back-to-top bar. */
.ml-discover-layout > .ml-discover-footer-extras {
    grid-column: 1 / -1;
}

.ml-discover-layout.ml-find-pet-filters--open > .ml-discover-footer-extras {
    grid-column: 2;
}

.ml-discover-footer-extras {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
}

.ml-discover-pager__nav {
    text-align: center;
    margin-bottom: 0;
}

.ml-discover-pager__nums {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    justify-content: center;
    align-items: center;
}

.ml-discover-pager__link {
    display: inline-flex;
    min-width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--ml-ink);
    text-decoration: none;
    border-radius: 6px;
}

a.ml-discover-pager__link:hover {
    background: rgba(0, 0, 0, 0.06);
}

.ml-discover-pager__link.is-current {
    background: var(--ml-accent);
    color: #fffaf5;
    border-radius: 6px;
}

/* ================= AUTH (login / register) ================= */

.ml-auth-page {
    padding: 2.5rem 0 3.5rem;
    background: var(--ml-bg);
    min-height: 50vh;
}

.ml-auth-inner {
    max-width: 480px;
    margin: 0 auto;
}

.ml-auth-card--wide {
    max-width: 520px;
    margin: 0 auto;
}

.ml-auth-card {
    background: var(--ml-cream);
    border: 1px solid var(--ml-header-border);
    border-radius: var(--ml-radius);
    box-shadow: 0 10px 40px rgba(62, 39, 35, 0.1);
    padding: 2.25rem 1.75rem 1.75rem;
}

@media (min-width: 480px) {
    .ml-auth-card {
        padding: 2.5rem 2.25rem 2rem;
    }
}

.ml-auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ml-auth-eyebrow {
    display: block;
    font-family: var(--ml-font-body);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ml-accent-hover);
    margin-bottom: 0.5rem;
}

.ml-auth-title {
    font-family: var(--ml-font-display);
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--ml-ink);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.ml-auth-lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ml-ink-muted);
    max-width: 36ch;
    margin-inline: auto;
}

.ml-auth-form {
    margin-top: 1.5rem;
    text-align: left;
}

.ml-auth-form .ml-field {
    margin-bottom: 1.1rem;
}

.ml-auth-form .ml-field input,
.ml-auth-form .ml-field select {
    width: 100%;
    margin-top: 6px;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--ml-header-border);
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    color: var(--ml-ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ml-auth-form .ml-field input::placeholder {
    color: #a1887f;
}

.ml-auth-form .ml-field input:focus,
.ml-auth-form .ml-field select:focus {
    outline: none;
    border-color: rgba(230, 138, 69, 0.55);
    box-shadow: 0 0 0 3px var(--ml-accent-soft);
}

.ml-password-wrap {
    position: relative;
    display: block;
    margin-top: 6px;
}

.ml-auth-form .ml-field--password .ml-password-wrap input,
.ml-field--password .ml-password-wrap input {
    width: 100%;
    margin-top: 0;
    padding-right: 2.75rem;
}

.ml-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--ml-ink-muted);
    cursor: pointer;
}

.ml-password-toggle:hover,
.ml-password-toggle:focus-visible {
    color: var(--ml-accent);
    background: var(--ml-accent-soft);
    outline: none;
}

.ml-password-toggle svg {
    display: block;
}

.ml-setup-store-wrap {
    max-width: min(96vw, 1120px);
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

.ml-setup-store-wrap .ml-setup-store-card {
    max-width: none;
    width: 100%;
}

.ml-setup-store-card.ml-auth-card {
    text-align: left;
    min-height: 430px;
}

.ml-setup-store-card .ml-auth-eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
}

.ml-setup-store-card .ml-auth-title {
    font-size: clamp(2.05rem, 3.8vw, 2.7rem);
    line-height: 1.08;
    margin-bottom: 0;
}

.ml-setup-store-form #mlSetupStoreStep1 {
    margin-top: 2.45rem;
}

.ml-setup-store-lead {
    max-width: none;
}

.ml-setup-store-card .ml-auth-lead.ml-setup-store-lead {
    max-width: min(72ch, 100%);
    margin-inline: auto;
}

/* My shops — power seller hub (full-width layout) */

.ml-my-shops-page .ml-container.ml-setup-store-wrap {
    width: 100%;
    max-width: min(1680px, 99vw);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(12px, 3vw, 36px);
    padding-right: clamp(12px, 3vw, 36px);
    box-sizing: border-box;
}

.ml-my-shops-page .ml-setup-store-wrap {
    max-width: none;
}

.ml-my-shops-page .ml-setup-store-card {
    max-width: none;
    width: 100%;
}

.ml-my-shops-page .ml-setup-store-card .ml-auth-title {
    margin-bottom: 0.85rem;
}

.ml-my-shops-page .ml-setup-store-lead-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 100%;
    width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
}

.ml-my-shops-page .ml-setup-store-lead--primary {
    max-width: min(72ch, 100%);
    margin-inline: auto;
}

.ml-my-shops-page .ml-setup-store-lead--primary,
.ml-my-shops-page .ml-setup-store-lead--actions {
    margin: 0;
}

.ml-my-shops-page .ml-setup-store-lead--actions.ml-my-shops-lead-inbox {
    justify-content: flex-end;
    align-self: stretch;
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.ml-my-shops-inline-link {
    font-weight: 600;
    color: var(--ml-accent, #c45c26);
    text-decoration: none;
}

.ml-my-shops-inline-link:hover,
.ml-my-shops-inline-link:focus-visible {
    text-decoration: underline;
}

.ml-my-shops-badge-num {
    display: inline-block;
    min-width: 1.25rem;
    padding: 0.1rem 0.45rem;
    margin-left: 0.15rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: var(--ml-accent, #c45c26);
    border-radius: 999px;
}

.ml-my-shops-lead-inbox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.ml-my-shops-inbox-picker {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 0.75rem;
    max-width: 100%;
}

.ml-my-shops-inbox-picker__label {
    font-weight: 600;
    color: var(--ml-accent, #c45c26);
    white-space: nowrap;
}

a.ml-my-shops-inbox-picker__link {
    text-decoration: none;
}

a.ml-my-shops-inbox-picker__link:hover,
a.ml-my-shops-inbox-picker__link:focus-visible {
    text-decoration: underline;
}

.ml-my-shops-inbox-select {
    min-width: min(14rem, 100%);
    max-width: min(20rem, 100%);
    padding: 0.55rem 2.35rem 0.55rem 1.05rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.35;
    color: var(--ml-ink, #3d342c);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 24 24' stroke='%23c45c26' stroke-width='2.25'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.72rem center;
    background-size: 14px 14px;
    border: 1px solid var(--ml-header-border);
    border-radius: 999px;
    box-shadow: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ml-my-shops-inbox-select:hover {
    background-color: #fff;
    border-color: rgba(196, 92, 38, 0.35);
    box-shadow: 0 1px 2px rgba(62, 47, 38, 0.05);
}

.ml-my-shops-inbox-select:focus {
    outline: none;
    background-color: #fff;
    border-color: rgba(196, 92, 38, 0.55);
    box-shadow: 0 0 0 3px var(--ml-accent-soft, rgba(230, 138, 69, 0.28));
}

/* Open list (supported in Chrome, Edge, Firefox; Safari may still use system styling). */
.ml-my-shops-inbox-select option {
    background-color: #fff;
    color: var(--ml-ink, #3d342c);
}

.ml-my-shops-inbox-select::-ms-expand {
    display: none;
}

.ml-my-shops-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0 1.75rem;
    padding: 1rem 1.1rem;
    /* Match Find pets / marketplace sidebar (`.ml-discover-sidebar`) */
    background: #fffdf9;
    border: 1px solid var(--ml-header-border);
    border-radius: 14px;
}

.ml-my-shops-summary__tile {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    align-items: center;
    text-align: center;
}

.ml-my-shops-summary__tile--alert .ml-my-shops-summary__value {
    color: #b45309;
}

.ml-my-shops-summary__tile--hint {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
}

.ml-my-shops-summary__hint {
    display: block;
    font-size: 0.72rem;
    color: var(--ml-ink-muted, #6b5f56);
    line-height: 1.35;
}

.ml-my-shops-summary__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ml-ink-muted, #6b5f56);
    text-align: center;
    width: 100%;
}

.ml-my-shops-summary__value {
    font-family: var(--ml-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ml-ink, #3d342c);
    text-align: center;
}

.ml-my-shops-summary-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ml-my-shops-summary-wrap .ml-my-shops-summary {
    width: 100%;
    margin-inline: auto;
}

.ml-my-shops-summary__tile--hint .ml-my-shops-summary__hint {
    text-align: center;
    max-width: 42rem;
    margin-inline: auto;
}

button.ml-my-shops-summary__shop-count {
    font-family: var(--ml-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ml-ink, #3d342c);
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border-radius: 6px;
    line-height: 1.2;
    text-align: center;
    align-self: center;
}

button.ml-my-shops-summary__shop-count:hover,
button.ml-my-shops-summary__shop-count:focus-visible {
    color: var(--ml-accent, #c45c26);
    outline: none;
    box-shadow: 0 0 0 2px rgba(196, 92, 38, 0.35);
}

.ml-storefront-logos-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 12000;
    border: none;
    padding: 0;
    border-radius: 14px;
    max-width: min(520px, 94vw);
    width: min(520px, calc(100vw - 2rem));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.ml-storefront-logos-dialog::backdrop {
    background: rgba(20, 14, 12, 0.45);
}

.ml-storefront-logos-dialog__inner {
    padding: 1rem 1.15rem 1.15rem;
}

.ml-storefront-logos-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.ml-storefront-logos-dialog__title {
    margin: 0;
    font-family: var(--ml-font-display, Fraunces, Georgia, serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c241f;
}

.ml-storefront-logos-dialog__close {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ml-ink-muted, #6b5f56);
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
}

.ml-storefront-logos-dialog__close:hover,
.ml-storefront-logos-dialog__close:focus-visible {
    color: var(--ml-ink, #3d342c);
    outline: none;
    box-shadow: 0 0 0 2px rgba(196, 92, 38, 0.25);
}

.ml-storefront-logos-dialog__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.ml-storefront-logos-dialog__item {
    margin: 0;
}

.ml-storefront-logos-dialog__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: 112px;
    text-decoration: none;
    color: var(--ml-ink, #3d342c);
    border-radius: 12px;
    padding: 0.45rem;
    border: 1px solid rgba(107, 95, 86, 0.18);
    background: rgba(255, 252, 247, 0.95);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ml-storefront-logos-dialog__card:hover,
.ml-storefront-logos-dialog__card:focus-visible {
    border-color: rgba(196, 92, 38, 0.45);
    box-shadow: 0 4px 14px rgba(180, 75, 35, 0.12);
    outline: none;
}

.ml-storefront-logos-dialog__thumb-wrap {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(243, 236, 228, 0.8);
}

.ml-storefront-logos-dialog__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ml-storefront-logos-dialog__name {
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ml-my-shops-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 820px) {
    .ml-my-shops-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ml-my-shops-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    height: 100%;
}

.ml-my-shops-card__head {
    margin-bottom: 0.6rem;
}

.ml-my-shops-card__hero-row {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 0.85rem;
    width: 100%;
}

.ml-my-shops-page .ml-my-shops-card__thumb-link {
    flex: 0 0 160px;
    width: 160px;
    align-self: flex-start;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    outline-offset: 2px;
}

.ml-my-shops-page .ml-my-shops-card__thumb-link:focus-visible {
    outline: 2px solid rgba(230, 138, 69, 0.75);
    outline-offset: 3px;
}

.ml-my-shops-page .ml-my-shops-card__thumb-link:hover .ml-my-shops-card__thumb {
    opacity: 0.93;
}

.ml-my-shops-card__thumb {
    display: block;
    width: 100%;
    height: 160px;
    border-radius: 14px;
    overflow: hidden;
}

.ml-my-shops-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ml-my-shops-card__hero-row .ml-my-shops-stats {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    align-self: stretch;
    box-sizing: border-box;
}

.ml-my-shops-card__stats-panel {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    align-self: stretch;
    box-sizing: border-box;
}

.ml-my-shops-stats-head {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 0.45rem;
}

.ml-my-shops-stats-head .ml-my-shops-stats-view-btn {
    margin: 0;
}

.ml-my-shops-card__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0;
}

.ml-my-shops-card .ml-community-card__title {
    margin: 0;
    font-size: 1.15rem;
}

.ml-my-shops-card .ml-my-shops-card__title-link {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.ml-my-shops-card .ml-my-shops-card__title-link:hover,
.ml-my-shops-card .ml-my-shops-card__title-link:focus-visible {
    color: var(--ml-accent, #c45c26);
    text-decoration: underline;
}

.ml-my-shops-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(107, 95, 86, 0.22);
    color: var(--ml-ink-muted, #6b5f56);
    background: rgba(255, 255, 255, 0.75);
}

.ml-my-shops-chip--focus {
    border-color: rgba(34, 139, 87, 0.45);
    color: #166534;
    background: rgba(220, 252, 231, 0.65);
}

.ml-my-shops-chip--focus-kind {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.72rem;
    font-weight: 700;
}

.ml-my-shops-chip--warn {
    border-color: rgba(180, 83, 9, 0.45);
    color: #9a3412;
    background: rgba(254, 243, 199, 0.65);
}

.ml-my-shops-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem 1rem;
    margin: 0 0 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(107, 95, 86, 0.12);
    border-radius: 10px;
}

@media (max-width: 520px) {
    .ml-my-shops-card__hero-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ml-my-shops-page .ml-my-shops-card__thumb-link {
        align-self: center;
    }

    .ml-my-shops-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ml-my-shops-card__hero-row .ml-my-shops-stats {
        width: 100%;
    }

    .ml-my-shops-card__stats-panel {
        width: 100%;
    }
}

.ml-my-shops-stat {
    min-width: 0;
}

.ml-my-shops-stat dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ml-ink-muted, #6b5f56);
}

.ml-my-shops-stat__suffix {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.85;
}

.ml-my-shops-stat dd {
    margin: 0.1rem 0 0;
    font-family: var(--ml-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ml-ink, #3d342c);
}

.ml-my-shops-stat--alert dd {
    color: #b45309;
}

.ml-my-shops-meta-line {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: var(--ml-ink-muted, #6b5f56);
}

.ml-my-shops-meta-label {
    display: inline-block;
    margin-right: 0.35rem;
    font-weight: 600;
    color: var(--ml-ink, #3d342c);
}

.ml-my-shops-meta-empty {
    font-style: italic;
}

.ml-my-shops-card__actions {
    margin-top: auto;
}

.ml-my-shops-footer-actions {
    margin-top: 1.5rem;
}

/* Storefront hub: actions — view storefront left, add listing bottom-right */
.ml-my-shops-page .ml-my-shops-card__actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem 0.85rem;
    margin-top: auto;
}

.ml-my-shops-page .ml-my-shops-card__actions-leading {
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.85rem;
}

.ml-my-shops-page .ml-my-shops-card__actions-trailing {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.85rem;
    justify-content: flex-end;
}

.ml-my-shops-page .ml-my-shops-card__actions-row .btn {
    width: auto;
    margin: 0;
    justify-content: center;
    box-sizing: border-box;
}

.ml-my-shops-page .ml-my-shops-footer-actions.ml-setup-store-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem 0.85rem;
}

.ml-my-shops-page .ml-my-shops-footer-actions.ml-setup-store-actions > .ml-btn,
.ml-my-shops-page .ml-my-shops-footer-actions.ml-setup-store-actions > .btn {
    width: auto;
    margin: 0;
}

/* Shop focus tiles (setup + dashboard create shop) */

.ml-shop-focus-fieldset {
    border: none;
    margin: 0 0 1.35rem;
    padding: 0;
}

.ml-shop-focus-legend {
    font-family: var(--ml-font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ml-ink);
    padding: 0;
    margin-bottom: 0.35rem;
}

.ml-shop-focus-hint {
    margin: 0 0 0.9rem;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ml-ink-muted);
}

.ml-shop-focus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (min-width: 720px) {
    .ml-shop-focus-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .ml-shop-focus-grid {
        grid-template-columns: 1fr;
    }
}

.ml-shop-focus-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 20px 18px 20px 14px;
    border-radius: 16px;
    border: 1px solid var(--ml-card-border);
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.18s,
        background 0.18s,
        box-shadow 0.18s;
    min-height: 4.4rem;
}

.ml-shop-focus-tile:hover {
    border-color: rgba(230, 138, 69, 0.45);
    background: rgba(255, 253, 250, 0.85);
}

.ml-shop-focus-tile:has(input:focus-visible) {
    outline: none;
    border-color: var(--ml-accent);
    box-shadow: 0 0 0 3px rgba(230, 138, 69, 0.22);
}

.ml-shop-focus-tile input[type="checkbox"] {
    margin-top: 0;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--ml-accent-hover);
    flex-shrink: 0;
}

.ml-shop-focus-tile-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ml-shop-focus-tile-text {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ml-ink);
}

.container .post-form .ml-shop-focus-fieldset {
    margin-bottom: 1rem;
}

.ml-setup-store-points {
    margin: 0 0 1.35rem;
    padding-left: 1.35rem;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ml-ink-muted);
}

.ml-setup-store-points li {
    margin-bottom: 0.35rem;
}

.ml-setup-store-form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--ml-header-border);
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    color: var(--ml-ink);
    min-height: 100px;
    resize: vertical;
}

.ml-setup-store-form textarea:focus {
    outline: none;
    border-color: rgba(230, 138, 69, 0.55);
    box-shadow: 0 0 0 3px var(--ml-accent-soft);
}

.ml-setup-store-file.ml-listing-photo-wrap {
    position: relative;
}

.ml-setup-store-file input[type="file"]:not(.ml-setup-store-file-input-hidden) {
    margin-top: 8px;
    font-size: 14px;
    width: 100%;
}

/* Visually hidden but activatable (display:none breaks label + .click() file pickers). */
.ml-setup-store-file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
}

.ml-setup-store-picker-btn {
    appearance: none;
    border: 1px solid var(--ml-header-border);
    background: #f2eee9;
    color: #5d4037;
    font-weight: 700;
    font-family: inherit;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    margin-top: 8px;
}

.ml-setup-store-file-warning {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.84rem;
    color: #a33a2d;
    font-weight: 600;
}

.ml-setup-store-form input[type="file"]::file-selector-button {
    appearance: none;
    border: 1px solid var(--ml-header-border);
    background: #f2eee9;
    color: #5d4037;
    font-weight: 700;
    font-family: inherit;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    margin-right: 0.65rem;
    cursor: pointer;
}

.ml-setup-store-form input[type="file"]::-webkit-file-upload-button {
    appearance: none;
    border: 1px solid var(--ml-header-border);
    background: #f2eee9;
    color: #5d4037;
    font-weight: 700;
    font-family: inherit;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    margin-right: 0.65rem;
    cursor: pointer;
}

.ml-field-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--ml-ink);
}

.ml-optional {
    font-weight: 600;
    color: var(--ml-ink-muted);
    font-size: 13px;
}

.ml-setup-store-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
}

.ml-setup-store-actions .btn {
    text-decoration: none;
}

.ml-setup-store-actions .btn.btn-light {
    padding: 0.5rem 1rem;
    min-height: 40px;
    font-size: 0.9rem;
}

.ml-setup-store-actions--step1 {
    width: 100%;
    justify-content: flex-end;
    margin-top: 2rem;
}

.ml-setup-store-file .ml-listing-photo-wrap__head {
    justify-content: flex-start;
    gap: 10px;
}

.ml-setup-store-file .ml-listing-photo-grid {
    min-height: 172px;
}

.ml-setup-store-file .ml-listing-photo-grid .ml-lpg-slot--add,
.ml-setup-store-file .ml-listing-photo-grid .ml-lpg-slot--photo {
    width: 100%;
    height: 100%;
    min-height: 86px;
}

.ml-setup-store-file .ml-listing-photo-grid .ml-lpg-slot--static-add {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.ml-setup-abn-row {
    grid-template-columns: minmax(0, 340px) auto;
    max-width: 470px;
}

.ml-setup-abn-validate-btn {
    min-width: 110px;
    padding: 12px 22px;
}

.ml-adoption-org-block .ml-adoption-org-abn-hint {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
}

.ml-adoption-org-no-abn-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.85rem 0 0.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--ml-ink, #3e2723);
}

.ml-adoption-org-no-abn-row input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.ml-adoption-org-no-abn-hint {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
}

.ml-adoption-org-block select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f5f0eb;
}

.ml-shop-name-block {
    margin-bottom: 1.15rem;
}

.ml-shop-name-block .ml-shop-name-label {
    margin-bottom: 0.35rem;
}

.ml-shop-name-row {
    display: grid;
    grid-template-columns: minmax(0, 520px) auto;
    align-items: end;
    gap: 10px;
}

@media (max-width: 760px) {
    .ml-shop-name-row {
        grid-template-columns: 1fr;
    }

    .ml-setup-abn-row {
        max-width: 100%;
    }
}

.ml-shop-name-input {
    width: 100%;
    min-width: 0;
    margin-top: 0 !important;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--ml-header-border);
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    color: var(--ml-ink);
}

.ml-shop-name-row .ml-check-shop-name-btn {
    white-space: nowrap;
    align-self: flex-end;
    margin-bottom: 2px;
}

.ml-check-shop-name-btn,
.ml-shop-validate-compliance-btn {
    min-width: 82px;
    justify-content: center;
    text-align: center;
}

@media (max-width: 560px) {
    .ml-check-shop-name-btn,
    .ml-shop-validate-compliance-btn {
        min-width: 100%;
    }
}

.ml-auth-form .ml-shop-name-input:focus {
    outline: none;
    border-color: rgba(230, 138, 69, 0.55);
    box-shadow: 0 0 0 3px var(--ml-accent-soft);
}

.ml-shop-name-charcount {
    margin: 0.35rem 0 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--ml-ink-muted);
}

.ml-shop-name-microhint {
    margin: 0.45rem 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ml-ink-muted);
}

.ml-shop-name-microhint code {
    font-size: 12px;
    padding: 0.1em 0.35em;
    border-radius: 6px;
    background: rgba(62, 39, 35, 0.06);
}

.container .post-form .ml-shop-name-input {
    width: auto;
}

.ml-shop-name-check-result {
    margin-top: 0.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.ml-shop-name-check-result--neutral {
    background: rgba(62, 39, 35, 0.05);
    color: var(--ml-ink-muted);
}

.ml-shop-name-check-result--success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.ml-shop-name-check-result--warn {
    background: #fff8e1;
    color: #5d4037;
    border: 1px solid #ffe082;
}

.ml-shop-name-check-result--error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

.ml-shop-compliance-block {
    margin-bottom: 1.25rem;
}

.ml-shop-compliance-fieldset {
    border: 1px solid rgba(230, 138, 69, 0.28);
    border-radius: 14px;
    padding: 1rem 1.1rem 1.1rem;
    margin: 0;
    background: rgba(255, 253, 250, 0.65);
}

.ml-shop-compliance-grow {
    width: 100%;
    min-width: 0;
}

.ml-shop-validate-compliance-btn {
    align-self: flex-end;
    margin-bottom: 2px;
}

.ml-shop-compliance-result {
    margin-top: 0.5rem;
}

.ml-dash-compliance-note {
    font-size: 14px;
    line-height: 1.45;
    color: var(--ml-ink);
    margin: 0 0 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: rgba(230, 138, 69, 0.1);
    border: 1px solid rgba(230, 138, 69, 0.25);
}

.ml-dash-compliance-hint,
.ml-dash-compliance-fallback-hint {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ml-ink-muted);
    margin-top: 0.35rem;
}

.ml-dash-compliance-entity {
    font-weight: 700;
    color: var(--ml-ink);
}

.ml-sell-compliance-value {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ml-ink);
}

.ml-store-preview-wrap {
    /* Top rhythm matches dashboard “My profile” (`.ml-dash-profile`) under the site header */
    padding: clamp(1.35rem, 3.5vw, 2.25rem) 0 2rem;
}

.ml-store-preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.ml-store-preview-topbar--under-banner {
    margin: 0;
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(93, 64, 55, 0.08);
    border-bottom: 1px solid rgba(93, 64, 55, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

.ml-store-preview-topbar--under-white {
    margin-top: 0.8rem;
}

.ml-store-preview-topbar-left {
    display: inline-flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ml-store-preview-active-shop {
    flex: 0 1 auto;
    min-width: min(12rem, 100%);
    max-width: min(20rem, 100%);
}

.ml-store-preview-active-shop-form.ml-field {
    align-items: flex-start;
    margin-bottom: 0;
    width: 100%;
}

.ml-store-preview-active-shop-form .ml-field-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3d342c;
    margin-bottom: 0.2rem;
}

.ml-store-preview-active-shop-select {
    width: 100%;
    min-width: min(12rem, 100%);
    max-width: min(20rem, 100%);
    box-sizing: border-box;
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #e9d8c2;
    background: #fffdf8;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #3d342c;
    cursor: pointer;
}

.ml-store-preview-topbar-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ml-store-preview-topbar-right {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
}

/* Ensure scripted tab toggles reliably hide marketplace search on About preview */
#mlPreviewTopbarRight[hidden] {
    display: none !important;
}

.ml-store-preview-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ml-header-border);
    border-radius: 999px;
    padding: 0.42rem 0.82rem;
    text-decoration: none;
    color: #5d4037;
    background: #f2eee9;
    font-weight: 700;
    line-height: 1.2;
    min-height: 36px;
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.ml-store-preview-tab:hover {
    background: #ebe5de;
}

.ml-store-preview-tab--active {
    background: #fff;
    border-color: #c5bdb5;
}

/* Gumtree-like active tab: strong black outline + inset text feel */
.ml-store-preview-tab.ml-store-preview-tab--active.ml-store-preview-tab--shop-strong {
    color: #111;
    border: 2px solid #111;
    background: #fafafa;
    padding: calc(0.42rem - 1px) calc(0.82rem - 1px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.ml-store-preview-tab--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* My shop: primary CTA beside Shop / About tabs */
.ml-store-preview-tab--sell {
    margin-left: 0.15rem;
    border: 2px solid var(--ml-accent);
    background: var(--ml-accent);
    color: #fff;
    padding: calc(0.42rem - 1px) calc(1rem - 1px);
    font-weight: 800;
}

.ml-store-preview-tab--sell:hover {
    background: var(--ml-accent-hover);
    border-color: var(--ml-accent-hover);
    color: #fff;
}

.ml-store-preview-tab--sell:focus-visible {
    outline: 2px solid var(--ml-primary, #d84315);
    outline-offset: 2px;
}

.ml-store-preview-shop-panel-hint {
    margin: 0;
    font-size: 0.94rem;
    color: var(--ml-brown-muted-text, #5d4037);
    line-height: 1.45;
}

.ml-store-preview-listing-grid {
    margin-top: 0.75rem;
}

.ml-store-preview-listing-grid .ml-shop-listing-footer {
    margin-top: auto;
    padding-top: 0.35rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 1rem;
}

.ml-store-preview-listing-grid .ml-shop-listing-price {
    justify-self: start;
}

.ml-store-preview-listing-grid .ml-listing-posted-ago {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.ml-store-preview-listing-draft,
.ml-shop-listing-draft {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #92400e;
}

.ml-store-preview-listing-expired {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #991b1b;
}

.ml-store-preview-listing-expired-meta {
    margin: 0.35rem 0 0.15rem;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--ml-ink-muted, #6d4c41);
}

.ml-store-preview-listing-subsection {
    margin-top: 1.35rem;
}

.ml-store-preview-listing-subsection:first-of-type {
    margin-top: 0.65rem;
}

.ml-store-preview-listing-subsection__title {
    margin: 0 0 0.35rem;
    font-family: var(--ml-font-display, Fraunces, Georgia, serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #3d342c;
}

.ml-store-preview-listing-subsection__lead {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--ml-ink-muted, #6b5f56);
}

.ml-store-preview-listing-subsection__empty {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ml-ink-muted, #6b5f56);
}

.ml-shop-tabbar-row {
    margin-top: 0.85rem;
    margin-bottom: 0;
}

.ml-shop-public-topbar {
    margin-bottom: 0;
    width: 100%;
}

/* Public shop page: Shop / About / Message / Save / Share in one row (wraps on narrow viewports) */
.ml-shop-public-topbar-cluster {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 0.5rem 0.55rem;
}

.ml-shop-public-buyer-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.ml-shop-public-action-btn {
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    min-height: 36px;
    border-radius: 999px;
    line-height: 1.2;
}

.ml-shop-public-action-btn[disabled],
.ml-shop-public-action-btn[aria-disabled="true"] {
    opacity: 0.72;
}

.ml-shop-page-heading {
    margin-top: 0.65rem;
    margin-bottom: 0.55rem;
}

.ml-shop-page-name {
    margin: 0;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: var(--ml-ink, #1a1a1a);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.65rem;
}

.ml-shop-page-stats {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    font-family: var(--ml-font-sans, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.ml-shop-page-stat {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(93, 64, 55, 0.16);
    color: var(--ml-ink-muted, #6d4c41);
    white-space: nowrap;
}

.ml-shop-page-stat + .ml-shop-page-stat::before {
    content: none;
}

@media (max-width: 520px) {
    .ml-shop-page-stats {
        width: 100%;
        margin-top: 0.15rem;
    }
}

.ml-shop-listings-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
}

.ml-shop-listings-toolbar .ml-shop-listings-section-title {
    flex: 1 1 auto;
    margin: 0;
    min-width: min(100%, 12rem);
}

.ml-shop-listings-search {
    flex: 0 1 auto;
    margin-left: auto;
    width: min(490px, 100%);
    max-width: 100%;
}

.ml-shop-listings-section-title {
    margin: 0;
    font-family: inherit;
    font-size: clamp(1.12rem, 2.2vw, 1.35rem);
    font-weight: 800;
    color: var(--ml-ink, #1a1a1a);
}

/* Edit listing page spacing + centred form layout */
.ml-edit-listing-head {
    margin-top: 1.1rem;
    margin-bottom: 0.8rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(217, 120, 48, 0.38);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 232, 213, 0.96), rgba(255, 244, 232, 0.98) 55%, rgba(255, 251, 246, 0.98));
    box-shadow: 0 8px 18px rgba(217, 120, 48, 0.08);
}

.ml-edit-listing-head h1 {
    margin-top: 0;
    margin-bottom: 0.3rem;
}

.ml-edit-listing-head p {
    margin: 0;
}

.ml-edit-listing-section .ml-edit-listing-form {
    max-width: 52rem;
    margin: 0 auto;
}

.ml-edit-listing-form .ml-grid-2,
.ml-edit-listing-form .ml-grid-3 {
    display: grid;
    gap: 0.8rem 1rem;
    align-items: start;
}

.ml-edit-listing-form .ml-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ml-edit-listing-form .ml-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 840px) {
    .ml-edit-listing-form .ml-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .ml-edit-listing-head {
        margin-top: 0.65rem;
    }

    .ml-edit-listing-form .ml-grid-2,
    .ml-edit-listing-form .ml-grid-3 {
        grid-template-columns: 1fr;
    }
}

.ml-shop-about-section {
    padding-top: 0.85rem;
}

.ml-shop-about-edit-form {
    margin-top: 0.95rem;
    border-top: 1px solid var(--ml-card-border);
    padding-top: 0.9rem;
}

.ml-shop-about-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ml-shop-about-edit-toggle {
    flex-shrink: 0;
}

.ml-store-preview-about-edit-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.ml-store-preview-about-edit-actions {
    margin-top: 0.85rem;
    display: flex;
    justify-content: flex-start;
}

.ml-shop-about-section--preview {
    padding-top: 0.7rem;
    margin-bottom: 0.25rem;
}

.ml-shop-about-card {
    margin: 0;
    padding: 1rem 1.15rem;
    border: 1px solid var(--ml-card-border);
    border-radius: 14px;
    background: #fff;
}

.ml-shop-about-title {
    margin: 0 0 0.6rem;
    font-size: 1.3rem;
    color: var(--ml-ink);
}

.ml-shop-about-body {
    font-size: 1rem;
    line-height: 1.58;
    color: var(--ml-ink);
}

.ml-shop-about-empty {
    margin: 0;
    color: var(--ml-ink-muted);
}

.ml-shop-about-textarea-wrap {
    display: block;
    width: 100%;
}

.ml-shop-about-textarea {
    width: 100%;
    min-height: 8rem;
    box-sizing: border-box;
}

.ml-shop-about-counter {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--ml-ink-muted);
}

.ml-shop-about-counter--over {
    color: #b42318;
    font-weight: 600;
}

.ml-shop-about-tail {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--ml-header-border);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ml-shop-about-tail p {
    margin: 0.35rem 0 0;
}

.ml-shop-about-tail p:first-child {
    margin-top: 0;
}

.ml-shop-about-tail strong {
    display: inline-block;
    min-width: 10.75rem;
    font-weight: 700;
    color: #111;
}

@media (max-width: 560px) {
    .ml-shop-about-tail strong {
        display: block;
        min-width: 0;
    }
}

.ml-store-preview-search {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: min(490px, 100%);
}

.ml-store-preview-search input[type="text"] {
    flex: 1 1 auto;
    min-width: 150px;
    min-height: 38px;
    border: 1px solid var(--ml-header-border);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: #fff;
}

.ml-store-preview-search-btn {
    border: 1px solid var(--ml-header-border);
    border-radius: 999px;
    background: #fff;
    color: #5d4037;
    font-weight: 700;
    min-height: 38px;
    padding: 0.42rem 0.86rem;
    cursor: pointer;
}

.ml-store-preview-search-btn:hover {
    background: #f8f5f1;
}

.ml-setup-store-file-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.84rem;
    color: var(--ml-ink-muted);
}

.ml-setup-store-file-list {
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.42rem;
}

.ml-setup-store-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.42rem 0.55rem;
    border: 1px solid var(--ml-card-border);
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--ml-ink);
    background: #fff;
}

.ml-setup-store-file-remove {
    appearance: none;
    border: 1px solid var(--ml-header-border);
    border-radius: 999px;
    background: #f8f3ee;
    color: #5d4037;
    font: inherit;
    font-weight: 700;
    padding: 0.2rem 0.62rem;
    cursor: pointer;
    flex-shrink: 0;
}

/* —— Listing photo grid (sell + dashboard) —— */
.ml-listing-photo-wrap {
    margin-top: 0.35rem;
}

.ml-listing-photo-wrap__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.ml-listing-photo-wrap__title {
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ml-ink, #2b1810);
}

.ml-listing-photo-wrap__count {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ml-ink-muted, #6b5a50);
    font-variant-numeric: tabular-nums;
}

.ml-listing-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    grid-auto-rows: minmax(86px, 12vw);
    max-width: 420px;
    gap: 10px;
    align-items: stretch;
}

@media (min-width: 520px) {
    .ml-listing-photo-grid {
        grid-auto-rows: minmax(92px, 72px);
        max-width: 480px;
    }
}

.ml-lpg-slot {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #ece8e3;
    border: 1px solid rgba(43, 24, 16, 0.08);
}

.ml-lpg-slot--main {
    border-radius: 16px;
}

.ml-lpg-slot__inner {
    position: absolute;
    inset: 0;
}

.ml-lpg-slot__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

.ml-lpg-slot__main-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(20, 14, 12, 0.72);
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.ml-lpg-slot__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    aspect-ratio: 1 / 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.94);
    color: #5d4037;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 2;
}

.ml-lpg-slot--photo:hover .ml-lpg-slot__remove,
.ml-lpg-slot--photo:focus-within .ml-lpg-slot__remove {
    opacity: 1;
}

@media (hover: none) and (pointer: coarse) {
    .ml-lpg-slot__remove {
        opacity: 1;
    }
}

.ml-lpg-slot__remove:hover {
    transform: scale(1.05);
    background: #fff;
}

.ml-lpg-slot__remove:focus-visible {
    opacity: 1;
    outline: 2px solid var(--ml-accent, #c45c26);
    outline-offset: 2px;
}

/* Listing photo adjust (pencil) — main: left of delete; thumbs: below delete */
.ml-lpg-slot__adjust {
    position: absolute;
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(93, 64, 55, 0.22);
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.96);
    color: #212121;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 3;
}

.ml-lpg-slot--main .ml-lpg-slot__adjust {
    top: 8px;
    right: 48px;
}

.ml-lpg-slot--photo:not(.ml-lpg-slot--main) .ml-lpg-slot__adjust {
    top: 48px;
    right: 8px;
}

.ml-lpg-slot--photo:hover .ml-lpg-slot__adjust,
.ml-lpg-slot--photo:focus-within .ml-lpg-slot__adjust {
    opacity: 1;
}

@media (hover: none) and (pointer: coarse) {
    .ml-lpg-slot__adjust {
        opacity: 1;
    }
}

.ml-lpg-slot__adjust:hover {
    transform: scale(1.05);
    background: #fff;
}

.ml-lpg-slot__adjust:focus-visible {
    opacity: 1;
    outline: 2px solid var(--ml-accent, #c45c26);
    outline-offset: 2px;
}

/* Listing photo reorder — grip (drag) + star (set as main) */
.ml-lpg-slot__grip,
.ml-lpg-slot__set-main {
    position: absolute;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: grab;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 3;
    border: 1px solid rgba(93, 64, 55, 0.18);
    color: #5d4037;
}

.ml-lpg-slot__grip {
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.ml-lpg-slot--main .ml-lpg-slot__grip {
    left: 8px;
    transform: none;
}

.ml-lpg-slot__set-main {
    bottom: 8px;
    left: 8px;
    color: var(--ml-accent, #e68a45);
    border-color: rgba(230, 138, 69, 0.45);
    cursor: pointer;
}

.ml-lpg-slot--photo:hover .ml-lpg-slot__grip,
.ml-lpg-slot--photo:hover .ml-lpg-slot__set-main,
.ml-lpg-slot--photo:focus-within .ml-lpg-slot__grip,
.ml-lpg-slot--photo:focus-within .ml-lpg-slot__set-main {
    opacity: 1;
}

@media (hover: none) and (pointer: coarse) {
    .ml-lpg-slot__grip,
    .ml-lpg-slot__set-main {
        opacity: 1;
    }
}

.ml-lpg-slot__grip:active {
    cursor: grabbing;
}

.ml-lpg-slot__grip:hover {
    background: #fff;
    transform: translateX(-50%) scale(1.05);
}

.ml-lpg-slot--main .ml-lpg-slot__grip:hover {
    transform: scale(1.05);
}

.ml-lpg-slot__set-main:hover {
    transform: scale(1.05);
    background: #fff;
}

.ml-lpg-slot__grip:focus-visible,
.ml-lpg-slot__set-main:focus-visible {
    opacity: 1;
    outline: 2px solid var(--ml-accent, #c45c26);
    outline-offset: 2px;
}

.ml-lpg-slot--dragging {
    opacity: 0.55;
}

.ml-lpg-slot--drag-over {
    outline: 2px solid var(--ml-accent, #e68a45);
    outline-offset: 2px;
}

.ml-sell-photo-reorder-hint {
    display: block;
    margin-top: 0.35rem;
}

.ml-lpg-slot__remove--labeled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: auto;
    min-width: auto;
    height: auto;
    min-height: 34px;
    padding: 0 0.65rem 0 0.45rem;
}

.ml-lpg-slot__remove-text {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.ml-lpg-slot__edit-label-text {
    font-size: 0.72rem;
    font-weight: 800;
}

.ml-lpg-slot__edit {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(43, 24, 16, 0.14);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #4f3f31;
    background: rgba(255, 252, 248, 0.96);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.ml-lpg-slot__edit:hover {
    background: #fff;
}

.ml-lpg-slot__edit:focus-visible {
    outline: 2px solid var(--ml-accent, #c45c26);
    outline-offset: 2px;
}

.ml-lpg-slot__edit-details {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
}

.ml-lpg-slot__edit--summary {
    list-style: none;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(43, 24, 16, 0.14);
    color: #3e2723;
    background: rgba(255, 252, 248, 0.96);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.ml-lpg-slot__edit--summary.ml-lpg-slot__edit--summary-labeled {
    width: auto;
    min-width: auto;
    height: auto;
    min-height: 34px;
    padding: 0 0.65rem;
    gap: 0.35rem;
    border-radius: 999px;
}

.ml-lpg-slot__edit--summary::-webkit-details-marker {
    display: none;
}

.ml-lpg-slot__edit-details[open] > .ml-lpg-slot__edit--summary {
    border-color: rgba(196, 92, 38, 0.45);
    box-shadow: 0 0 0 2px rgba(196, 92, 38, 0.2);
}

.ml-lpg-slot__edit-icon {
    display: block;
}

.ml-lpg-slot__edit-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 10.5rem;
    padding: 0.35rem 0;
    margin: 0;
    border-radius: 12px;
    background: #fffdf9;
    border: 1px solid rgba(43, 24, 16, 0.12);
    box-shadow: 0 10px 28px rgba(25, 19, 15, 0.18);
}

.ml-lpg-slot__edit-menu-item {
    display: block;
    width: 100%;
    padding: 0.55rem 1rem;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 650;
    color: #3e2723;
    text-align: left;
    cursor: pointer;
}

.ml-lpg-slot__edit-menu-item:hover,
.ml-lpg-slot__edit-menu-item:focus-visible {
    background: rgba(196, 92, 38, 0.1);
    outline: none;
}

.ml-lpg-slot--add {
    appearance: none;
    cursor: pointer;
    border: 2px dashed rgba(43, 24, 16, 0.2);
    background: #f5f2ee;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ml-lpg-slot--file-label {
    cursor: pointer;
}

.ml-lpg-slot__native-file {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
    z-index: 2;
    color: transparent;
}

.ml-lpg-slot__native-file::file-selector-button {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 0;
    color: transparent;
}

.ml-lpg-slot--file-label > .ml-lpg-slot__add-inner {
    pointer-events: none;
    z-index: 1;
}

.ml-lpg-slot--add:hover,
.ml-lpg-slot--add:focus-visible {
    background: #efeae4;
    border-color: rgba(196, 92, 38, 0.45);
    outline: none;
}

.ml-lpg-slot__add-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: var(--ml-ink-muted, #6b5a50);
}

.ml-lpg-slot__add-label {
    font-size: 0.82rem;
    font-weight: 700;
}

.ml-store-preview-hero {
    position: relative;
    z-index: 1;
    border: 1px solid var(--ml-card-border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(62, 39, 35, 0.08);
}

body.ml-store-preview-tools-open .ml-store-preview-hero {
    z-index: 1055;
    box-shadow:
        0 8px 24px rgba(62, 39, 35, 0.08),
        0 0 0 1px rgba(62, 39, 35, 0.06);
}

.ml-store-preview-banner-wrap {
    position: relative;
}

.ml-store-banner-nav {
    position: absolute;
    bottom: 10px;
    transform: none;
    z-index: 6;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.92);
    color: #2f1f17;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.ml-store-banner-nav:hover {
    background: #fff;
}

.ml-store-banner-nav.is-disabled,
.ml-store-banner-nav:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.ml-store-banner-nav--prev {
    right: 50px;
}

.ml-store-banner-nav--next {
    right: 10px;
}

.shop-hero {
    position: relative;
    /* Match `.ml-store-preview-banner` so uploads fill the strip (cover + min height). */
    min-height: 180px;
    height: min(34vw, 320px);
    background-color: #2a1812;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Light edge fade so carousel dots / arrows stay visible; no text on banner */
.shop-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(12, 8, 6, 0.4), rgba(12, 8, 6, 0.08));
    pointer-events: none;
}

.ml-store-banner-nav--hero {
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
}

.ml-store-banner-dots {
    position: absolute;
    left: 50%;
    bottom: 9px;
    transform: translateX(-50%);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(28, 19, 15, 0.26);
    border-radius: 999px;
    padding: 4px 8px;
}

.ml-store-banner-dots--hero {
    z-index: 5;
    bottom: max(9px, 1.5vw);
}

.shop-hero .ml-store-banner-dots--hero {
    z-index: 6;
}

.ml-store-banner-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.56);
    cursor: pointer;
}

.ml-store-banner-dot.is-active {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(62, 39, 35, 0.2);
}

.ml-store-banner-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
}

.ml-store-preview-logo-magnify-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(8px, 1.5vw);
    pointer-events: auto;
    box-sizing: border-box;
    /* cqmin = min(inner width, inner height) → perfect circle fits banner strip */
    container-type: size;
    container-name: ml-logo-magnify;
}

body.ml-store-preview-edit-logo .ml-store-preview-logo-magnify-overlay {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: max(10px, 1.75vw);
    padding-right: max(10px, 1.75vw);
}

/* Tall enough strip so the magnified logo can grow (cqmin follows the short side) */
body.ml-store-preview-edit-logo .ml-store-preview-banner-wrap {
    min-height: min(64vh, 520px);
}

body.ml-store-preview-edit-logo .ml-store-preview-banner-wrap .ml-store-preview-banner {
    height: min(64vh, 520px);
    min-height: min(64vh, 520px);
    filter: blur(13px) saturate(0.88);
    opacity: 0.92;
}

body.ml-store-preview-edit-banner .ml-store-preview-banner-wrap .ml-store-preview-banner {
    filter: none;
    opacity: 1;
}

body.ml-store-preview-edit-logo .ml-store-preview-banner-wrap > .ml-store-preview-img-edit,
body.ml-store-preview-edit-logo .ml-store-preview-banner-wrap > .ml-store-preview-img-menu,
body.ml-store-preview-edit-logo .ml-store-preview-banner-wrap > .ml-store-preview-banner-top-actions {
    visibility: hidden;
    pointer-events: none;
}

body.ml-store-preview-edit-logo .ml-store-preview-logo-corner {
    visibility: hidden;
    pointer-events: none;
}

.ml-store-preview-logo-magnify-disk {
    box-sizing: border-box;
    flex: 0 0 auto;
    flex-shrink: 0;
    align-self: center;
    margin: auto;
    border-radius: 50%;
    border: 5px solid #fff;
    background-color: #f5f5f5;
    background-repeat: no-repeat;
    background-position: center center;
    box-shadow:
        0 10px 28px rgba(62, 39, 35, 0.28),
        0 0 0 1px rgba(62, 39, 35, 0.08);
    cursor: default;
    user-select: none;
    touch-action: none;
    aspect-ratio: 1 / 1;
    /* Fallback when container query units unavailable */
    width: min(560px, min(92vmin, 94vw));
    height: auto;
    max-width: 100%;
}

@supports (width: calc(100cqmin - 1px)) {
    .ml-store-preview-logo-magnify-disk {
        /* Equal width/height → perfect circle; cqmin uses expanded banner area in logo-edit mode */
        width: min(560px, calc(100cqmin - 20px));
        height: min(560px, calc(100cqmin - 20px));
        max-width: none;
        max-height: none;
    }
}

.ml-store-preview-logo-magnify-disk.is-editable-active {
    cursor: grab;
}

.ml-store-preview-logo-magnify-disk.is-dragging {
    cursor: grabbing;
}

.ml-store-preview-banner {
    height: min(34vw, 320px);
    min-height: 180px;
    background-size: cover;
    background-position: center;
    cursor: default;
    user-select: none;
}

.ml-store-preview-banner.is-editable-active {
    cursor: grab;
}

.ml-store-preview-banner.is-dragging {
    cursor: grabbing;
}

.ml-store-preview-img-edit {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 0.28rem 0.55rem;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.15;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.92);
    color: #5d4037;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.ml-store-preview-img-edit:hover {
    background: #fff;
}

.ml-store-preview-img-edit:focus-visible {
    outline: 2px solid var(--ml-primary, #d84315);
    outline-offset: 2px;
}

.ml-store-preview-img-edit--logo:not(.ml-store-preview-img-edit--media-icon) {
    top: auto;
    bottom: 4px;
    right: 4px;
    padding: 0.22rem 0.45rem;
    font-size: 10px;
}

.ml-store-preview-banner-top-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 8;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}

.ml-store-preview-banner-top-actions .ml-store-preview-img-menu {
    position: static;
    top: auto;
    right: auto;
}

/* Banner: edit + delete share one exact circle size (34×34) */
.ml-store-preview-banner-top-actions .ml-store-preview-media-delete,
.ml-store-preview-banner-top-actions .ml-store-preview-img-edit--media-icon {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
}

/* Edit: white fill, black icon (same outer size as bin) */
.ml-store-preview-banner-top-actions .ml-store-preview-img-edit--media-icon {
    position: relative;
    top: auto;
    right: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(93, 64, 55, 0.22);
    background: #fff;
    color: #212121;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-size: 0;
    line-height: 0;
}

.ml-store-preview-banner-top-actions .ml-store-preview-img-edit--media-icon:hover {
    background: #fafafa;
    color: #000;
}

.ml-store-preview-banner-top-actions .ml-store-preview-img-edit--media-icon:focus-visible {
    outline: 2px solid var(--ml-primary, #d84315);
    outline-offset: 2px;
}

.ml-store-preview-banner-top-actions .ml-store-preview-media-edit-icon {
    display: block;
    pointer-events: none;
}

.ml-store-preview-media-delete {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(198, 40, 40, 0.35);
    background: rgba(255, 255, 255, 0.95);
    color: #c62828;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.ml-store-preview-media-delete:hover {
    background: #fff;
    color: #b71c1c;
}

.ml-store-preview-media-delete:focus-visible {
    outline: 2px solid var(--ml-primary, #d84315);
    outline-offset: 2px;
}

.ml-store-preview-media-delete[disabled],
.ml-store-preview-media-delete[hidden] {
    display: none;
}

/* Logo: delete 10 o'clock, edit 2 o'clock — same height, opposite sides */
.ml-store-preview-logo-corner {
    position: absolute;
    z-index: 8;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-store-preview-logo-corner--tl,
.ml-store-preview-logo-corner--tr {
    top: 18px;
}

.ml-store-preview-logo-corner--tl {
    left: 0;
}

.ml-store-preview-logo-corner--tr {
    right: 0;
}

.ml-store-preview-logo-corner .ml-store-preview-img-menu--logo {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.ml-store-preview-logo-corner .ml-store-preview-media-delete--logo,
.ml-store-preview-logo-corner .ml-store-preview-img-edit--media-icon.ml-store-preview-img-edit--logo {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
}

.ml-store-preview-logo-corner .ml-store-preview-img-edit--media-icon.ml-store-preview-img-edit--logo {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(93, 64, 55, 0.22);
    background: #fff;
    color: #212121;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-size: 0;
    line-height: 0;
}

.ml-store-preview-logo-corner .ml-store-preview-img-edit--media-icon.ml-store-preview-img-edit--logo:hover {
    background: #fafafa;
    color: #000;
}

.ml-store-preview-logo-corner .ml-store-preview-img-edit--media-icon.ml-store-preview-img-edit--logo:focus-visible {
    outline: 2px solid var(--ml-primary, #d84315);
    outline-offset: 2px;
}

.ml-store-preview-logo-corner .ml-store-preview-media-edit-icon {
    display: block;
    pointer-events: none;
}

.ml-store-preview-logo-corner .ml-store-preview-media-delete--logo {
    border-color: rgba(198, 40, 40, 0.45);
    background: #fff;
    color: #c62828;
}

.ml-store-preview-logo-corner .ml-store-preview-media-delete--logo:hover {
    background: #fff;
    color: #b71c1c;
}

.ml-store-preview-logo-corner .ml-store-preview-media-delete--logo:focus-visible {
    outline: 2px solid var(--ml-primary, #d84315);
    outline-offset: 2px;
}

.ml-store-preview-img-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    /* Above .ml-store-banner-nav (z-index 6); hero has overflow:hidden so menus must open inward */
    z-index: 8;
}

.ml-store-preview-img-menu .ml-store-preview-img-edit {
    position: relative;
    top: auto;
    right: auto;
}

/* Banner media menu: dropdown below edit button, right-aligned */
.ml-store-preview-banner-top-actions .ml-store-preview-img-menu-pop {
    top: calc(100% + 8px);
    bottom: auto;
    right: 0;
    left: auto;
    min-width: 9.5rem;
    width: max-content;
}

.ml-store-preview-img-menu-pop {
    position: absolute;
    min-width: 9.5rem;
    width: max-content;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(93, 64, 55, 0.18);
    background: #fff;
    box-shadow: 0 8px 24px rgba(62, 39, 35, 0.18);
}

/* Logo menu: teleported to body when open (logo-wrap transform traps position:fixed) */
.ml-store-preview-img-menu-pop--floating {
    position: fixed !important;
    z-index: 10060;
    min-width: 9.5rem;
    width: max-content;
}

.ml-store-preview-photo-menu-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.4rem 0.55rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #3e2723;
    font: inherit;
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.ml-store-preview-photo-menu-item:hover {
    background: #f5f2ef;
}

.ml-store-preview-photo-menu-item:focus-visible {
    outline: 2px solid var(--ml-primary, #d84315);
    outline-offset: 2px;
}


.ml-store-preview-head {
    position: relative;
    padding: 1rem 1rem 1rem 10.6rem;
    display: block;
    min-height: 168px;
}

.ml-store-preview-logo-wrap {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 122px;
    height: 122px;
    z-index: 2;
    overflow: visible;
}

.ml-store-preview-logo {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #fff;
    background-color: #f5f5f5;
    background-repeat: no-repeat;
    background-position: center center;
    box-shadow: 0 6px 18px rgba(62, 39, 35, 0.18);
    cursor: default;
    user-select: none;
}

.ml-store-preview-logo.is-editable-active {
    cursor: grab;
}

.ml-store-preview-logo.is-dragging {
    cursor: grabbing;
}

body.ml-store-preview-tools-open {
    overflow: hidden;
}

.ml-store-preview-image-overlay {
    position: fixed;
    inset: 0;
    /* Below hero (1055) so banner/logo stay draggable; above page chrome */
    z-index: 1040;
    border: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
    background: rgba(62, 39, 35, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ml-store-preview-image-overlay[hidden] {
    display: none;
}

.ml-store-preview-tools-hero-wrap {
    display: block;
}

/* Logo/banner sliders: position fixed; exact position set in JS next to artwork (scroll/sync) */
.ml-store-preview-image-tools {
    position: fixed;
    z-index: 1070;
    max-width: min(520px, calc(100vw - 2rem));
    width: min(520px, calc(100vw - 2rem));
    border: 0;
    padding: 0;
    margin: 0;
    cursor: default;
}

.ml-store-preview-image-tools[hidden] {
    display: none;
}

.ml-store-preview-image-tools-inner {
    box-sizing: border-box;
    padding: 1rem 1.05rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--ml-card-border);
    background: #fff;
    box-shadow: 0 12px 40px rgba(62, 39, 35, 0.18);
    max-height: min(78vh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
}

body.ml-store-preview-edit-logo.ml-store-preview-tools-open .ml-store-preview-image-tools-inner {
    padding-bottom: 1.15rem;
}

.ml-store-preview-tools-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.ml-store-preview-tools-hint {
    margin: 0 0 0.75rem;
    font-size: 13px;
    color: var(--ml-ink-muted);
    line-height: 1.45;
}

.ml-store-preview-tool-panel[hidden] {
    display: none;
}

.ml-store-preview-tools-done {
    margin-top: 0.85rem;
    width: 100%;
    justify-content: center;
    flex-shrink: 0;
}

.ml-store-preview-meta h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3.6vw, 2.55rem);
    line-height: 1.15;
}

.ml-store-preview-meta p {
    margin: 0 0 0.6rem;
    color: var(--ml-ink-muted);
}

.ml-store-preview-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    position: absolute;
    top: 1.35rem;
    right: 1rem;
    justify-content: flex-end;
}

.ml-store-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    justify-content: flex-end;
    position: absolute;
    right: 1rem;
    bottom: 0.95rem;
}

.ml-store-preview-meta {
    position: absolute;
    left: 11rem;
    right: 18.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

/* Seller My shop / draft preview: no Message/Save/Share row — free title space for stats column */
.ml-store-preview-head--seller .ml-store-preview-meta {
    right: 12rem;
}

.ml-store-preview-toolset {
    border: 1px solid var(--ml-card-border);
    border-radius: 10px;
    padding: 0.65rem 0.75rem 0.8rem;
}

.ml-store-preview-toolset legend {
    padding: 0 0.25rem;
    font-size: 13px;
    font-weight: 700;
}

.ml-store-preview-toolset label {
    display: block;
    font-size: 13px;
    margin: 0.45rem 0 0;
}

.ml-store-preview-toolset input[type="range"] {
    width: 100%;
    margin-top: 0.35rem;
}

.ml-store-preview-next {
    margin-top: 1rem;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ml-store-preview-about-cta {
    margin-top: 0.85rem;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 920px) {
    .ml-store-preview-topbar {
        flex-wrap: wrap;
    }

    .ml-store-preview-topbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .ml-store-preview-search {
        width: min(100%, 620px);
    }

    .ml-store-preview-head {
        padding: 1rem 1rem 1rem 9.6rem;
    }

    .ml-store-preview-meta {
        left: 10rem;
        right: 1rem;
    }

    .ml-store-preview-actions {
        position: static;
        margin-top: 0.9rem;
        justify-content: flex-start;
    }
}

.ml-store-preview-next .ml-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1.2;
    padding: 0.62rem 1.1rem;
}

.ml-store-preview-next form {
    display: inline-flex;
}

.ml-store-preview-next form .ml-btn {
    min-height: 42px;
    font-size: 15px;
    line-height: 1.2;
    padding: 0.62rem 1.1rem;
}

.ml-store-preview-actions .ml-btn,
.ml-store-preview-actions button.ml-btn {
    min-height: 40px;
    font-size: 15px;
    line-height: 1.2;
    padding: 0.56rem 1rem;
}

.ml-store-preview-actions .ml-btn[disabled],
.ml-store-preview-actions button.ml-btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    filter: grayscale(0.2);
}

.ml-sell-flash {
    margin-bottom: 1rem;
}

.ml-auth-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
    align-items: start;
}

@media (max-width: 520px) {
    .ml-auth-two-col {
        grid-template-columns: 1fr;
    }
}

.ml-auth-two-col .ml-field-tight {
    margin-bottom: 1rem;
}

.ml-auth-fieldset {
    border: 1px solid rgba(139, 99, 86, 0.22);
    border-radius: 14px;
    padding: 0.85rem 1rem 1rem;
    margin: 0 0 1rem;
    background: rgba(255, 253, 250, 0.45);
}

.ml-auth-fieldset-legend {
    font-size: 15px;
    font-weight: 800;
    color: rgba(93, 64, 55, 0.95);
    padding: 0 0.25rem;
}

.ml-auth-fieldset-hint {
    font-size: 13px;
    color: rgba(93, 64, 55, 0.82);
    margin: -0.2rem 0 0.75rem;
    line-height: 1.45;
}

.ml-optional-label {
    font-weight: 500;
    font-size: 12px;
    color: rgba(93, 64, 55, 0.65);
}

.ml-auth-address-row {
    display: grid;
    grid-template-columns: 1fr minmax(6.75rem, 8.25rem);
    gap: 0 1rem;
    align-items: start;
}

@media (max-width: 520px) {
    .ml-auth-address-row {
        grid-template-columns: 1fr;
    }
}

.ml-reg-address-lookup {
    position: relative;
    margin-bottom: 1rem;
}

.ml-address-search-kicker {
    font-weight: 600;
    font-size: 12px;
    color: rgba(93, 64, 55, 0.6);
}

.ml-address-suggest-list {
    list-style: none;
    margin: 0;
    padding: 0.3rem 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 80;
    max-height: 260px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(139, 99, 86, 0.28);
    background: #fffdfa;
    box-shadow: 0 14px 36px rgba(62, 39, 35, 0.18);
}

.ml-address-suggest-list [role="option"] {
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.35;
    color: var(--ml-ink);
}

.ml-address-suggest-list [role="option"]:hover,
.ml-address-suggest-item--active {
    background: rgba(230, 138, 69, 0.16);
}

.ml-address-suggest-attrib {
    font-size: 12px;
    color: rgba(93, 64, 55, 0.68);
    margin: 0.35rem 0 0;
    line-height: 1.4;
}

.ml-delivery-address-lookup .ml-address-suggest-attrib {
    margin-bottom: 0.5rem;
}

.ml-field-phone-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem 0.75rem;
    align-items: end;
}

.ml-auth-form .ml-field-phone-actions > .ml-field-phone-label {
    margin-bottom: 0;
    min-width: 0;
    position: relative;
}

.ml-field-checkmark {
    position: absolute;
    right: 10px;
    top: calc(50% + 12.5px);
    transform: translateY(-50%);
    color: #166534;
    width: 24px;
    height: 24px;
    display: none;
}

input:read-only ~ .ml-field-checkmark {
    display: block;
}

.ml-field-phone-button {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ml-field-phone-button .ml-auth-inline-hint {
    margin: 0 0.4rem 0 0;
}

.ml-btn-phone-verify {
    margin-bottom: 0;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid rgba(230, 138, 69, 0.55);
    background: linear-gradient(165deg, #fffdfa 0%, #ffe8cf 100%);
    color: #7e3d0f;
}

.ml-btn-phone-verify:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ml-reg-password-block .ml-reg-password-rules {
    list-style: none;
    margin: 0.35rem 0 0.85rem;
    padding: 0.5rem 0.65rem 0.55rem;
    border-radius: 10px;
    background: rgba(255, 253, 250, 0.85);
    border: 1px solid rgba(139, 99, 86, 0.15);
}

.ml-reg-password-rules .ml-reg-rule {
    position: relative;
    margin: 0.28rem 0;
    padding-left: 1.35rem;
    font-size: 13px;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.ml-reg-password-rules .ml-reg-rule::before {
    position: absolute;
    left: 0;
    top: 0.05em;
    font-weight: 800;
    font-size: 12px;
    width: 1.1em;
    text-align: center;
}

.ml-reg-rule--no {
    color: rgba(139, 65, 55, 0.92);
}

.ml-reg-rule--no::before {
    content: '✗';
    color: #c62828;
}

.ml-reg-rule--ok {
    color: rgba(46, 92, 58, 0.95);
}

.ml-reg-rule--ok::before {
    content: '✓';
    color: #2e7d32;
}

.ml-reg-rule--pending {
    color: rgba(93, 64, 55, 0.58);
}

.ml-reg-rule--pending::before {
    content: '○';
    color: rgba(93, 64, 55, 0.42);
}

.ml-reg-password-footnote {
    font-size: 12px;
    line-height: 1.45;
    color: rgba(93, 64, 55, 0.72);
    margin: -0.35rem 0 1rem;
    max-width: 36em;
}

.ml-auth-channel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin: 0 0 1.15rem;
    padding: 0.3rem;
    border-radius: 14px;
    background: rgba(62, 39, 35, 0.06);
}

.ml-auth-channel__btn {
    display: grid;
    place-items: center;
    min-height: 2.55rem;
    padding: 0.45rem 0.75rem;
    border-radius: 11px;
    text-decoration: none;
    font-weight: 650;
    font-size: 0.95rem;
    color: rgba(62, 39, 35, 0.78);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ml-auth-channel__btn:hover,
.ml-auth-channel__btn:focus-visible {
    color: var(--ml-ink, #3e2723);
    background: rgba(255, 255, 255, 0.55);
}

.ml-auth-channel__btn.is-active {
    background: #fff;
    color: var(--ml-ink, #3e2723);
    box-shadow: 0 1px 3px rgba(62, 39, 35, 0.12);
}

.ml-auth-inline-hint {
    font-size: 13px;
    color: rgba(93, 64, 55, 0.85);
    margin: -0.4rem 0 0.85rem;
    min-height: 1.2em;
}

.ml-auth-social-hint {
    font-size: 13px;
    color: rgba(93, 64, 55, 0.88);
    margin: -0.5rem 0 0;
    line-height: 1.45;
}

.ml-auth-social-hint code {
    font-size: 12px;
}

.ml-phone-verify-dialog {
    max-width: 96vw;
    width: min(400px, 96vw);
    padding: 0;
    border: none;
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(62, 39, 35, 0.25);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.ml-phone-verify-dialog::backdrop {
    background: rgba(45, 30, 25, 0.45);
}

.ml-phone-verify-dialog-inner {
    padding: 1.35rem 1.25rem 1.35rem;
}

.ml-phone-verify-heading {
    margin: 0 0 0.5rem;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.25rem;
    color: var(--ml-ink);
}

.ml-phone-verify-text {
    margin: 0 0 1rem;
    font-size: 14px;
    color: var(--ml-ink-muted);
    line-height: 1.45;
}

.ml-phone-verify-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
}

.ml-phone-verify-actions .ml-auth-submit {
    width: auto;
    min-width: 120px;
    margin-top: 0;
}

.ml-phone-verify-actions .ml-auth-secondary {
    width: auto;
    margin-top: 0;
}

.ml-auth-submit {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    color: #fffaf5;
    background: linear-gradient(165deg, var(--ml-accent) 0%, var(--ml-accent-hover) 100%);
    box-shadow: 0 6px 22px rgba(230, 138, 69, 0.35);
    transition: transform 0.18s, box-shadow 0.18s;
}

.ml-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(230, 138, 69, 0.45);
}

.ml-auth-submit:disabled,
.ml-auth-submit[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 16px rgba(230, 138, 69, 0.2);
}

.ml-auth-submit:disabled:hover,
.ml-auth-submit[disabled]:hover {
    transform: none;
}

.ml-auth-forgot-wrap {
    margin: -0.35rem 0 0.85rem;
    text-align: right;
}

.ml-auth-forgot {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ml-accent, #c45c26);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.ml-auth-forgot:hover {
    opacity: 0.9;
}

.ml-order-tracking {
    margin-top: 0.55rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.ml-order-tracking--compact {
    margin-top: 0.45rem;
    padding: 0.45rem 0.55rem;
}

.ml-order-tracking__label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2e7d32;
    margin-bottom: 0.2rem;
}

.ml-order-tracking__body {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    align-items: center;
    font-size: 0.88rem;
    color: var(--ml-ink);
}

.ml-order-tracking__number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    background: #fff;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    padding: 0.1rem 0.4rem;
}

.ml-order-tracking__link {
    font-weight: 800;
    color: #1b5e20;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.ml-auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.75rem 0 1.25rem;
    color: var(--ml-ink-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ml-auth-divider::before,
.ml-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ml-header-border);
}

.ml-auth-divider span {
    white-space: nowrap;
}

.ml-auth-secondary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ml-ink);
    background: #fff;
    border: 2px solid var(--ml-header-border);
    transition:
        border-color 0.15s,
        background 0.15s;
}

.ml-auth-secondary:hover {
    border-color: var(--ml-accent);
    background: var(--ml-accent-soft);
    color: var(--ml-ink);
}

.ml-auth-secondary--outline {
    background: transparent;
    border: 2px solid rgba(230, 138, 69, 0.45);
    color: var(--ml-accent-hover);
}

.ml-auth-secondary--outline:hover {
    background: var(--ml-accent-soft);
    border-color: var(--ml-accent);
}

.ml-auth-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0.25rem;
}

.ml-auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    border: 1px solid transparent;
    text-decoration: none;
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease,
        filter 0.2s ease,
        background-color 0.2s ease;
}

.ml-auth-social-btn:hover {
    transform: translateY(-1px);
}

.ml-auth-social-btn:focus-visible {
    outline: 2px solid var(--ml-accent, #e68a45);
    outline-offset: 3px;
}

.ml-auth-social-google:focus-visible {
    outline-color: #1a73e8;
}

.ml-auth-social-facebook:focus-visible {
    outline-color: #fff;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.45);
}

.ml-auth-social-btn.ml-auth-social-btn--disabled {
    opacity: 0.82;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.ml-auth-social-btn.ml-auth-social-btn--disabled:hover {
    transform: none;
    filter: none;
}

.ml-auth-social-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.ml-auth-social-svg {
    display: block;
}

.ml-auth-social-svg--facebook {
    margin-top: 1px;
}

.ml-auth-social-label {
    flex: 0 1 auto;
}

.ml-auth-social-google {
    font-family:
        "Google Sans",
        Roboto,
        system-ui,
        -apple-system,
        sans-serif;
    background: #fff;
    color: #1f1f1f;
    border-color: #dadce0;
    box-shadow:
        0 1px 2px rgba(60, 64, 67, 0.08),
        0 1px 3px rgba(60, 64, 67, 0.1);
}

.ml-auth-social-google:hover {
    background: #f8f9fa;
    border-color: #d2d6db;
    box-shadow:
        0 2px 8px rgba(60, 64, 67, 0.12),
        0 2px 4px rgba(60, 64, 67, 0.08);
}

.ml-auth-social-facebook {
    background: #0866ff;
    color: #fff;
    border-color: #0866ff;
    box-shadow:
        0 1px 2px rgba(8, 102, 255, 0.35),
        0 2px 6px rgba(8, 102, 255, 0.22);
}

.ml-auth-social-facebook:hover {
    background: #0860ef;
    border-color: #0860ef;
    filter: none;
    box-shadow:
        0 4px 14px rgba(8, 102, 255, 0.38),
        0 2px 6px rgba(8, 102, 255, 0.25);
}

.ml-auth-divider--tight {
    margin: 1.15rem 0 1.35rem;
}

.ml-auth-footnote {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ml-ink-muted);
    max-width: 40ch;
    margin-inline: auto;
}

.ml-auth-form + .ml-alert,
.ml-auth-header + .ml-alert {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

/* ================= SELL WIZARD ================= */

.ml-sell-wizard {
    padding: clamp(28px, 5vw, 56px) 0 64px;
    background: linear-gradient(180deg, #fffdfb 0%, var(--ml-cream) 100%);
}

.ml-sell-inner {
    width: min(96%, 640px);
    margin: 0 auto;
}

.ml-sell-head {
    margin-bottom: 28px;
    text-align: left;
}

.ml-auth-lead.ml-sell-head-lead {
    max-width: min(64ch, 100%);
    margin-inline: 0;
}

.ml-auth-lead.ml-sell-head-lead p {
    margin: 0;
}

.ml-auth-lead.ml-sell-head-lead p + p {
    margin-top: 0.32rem;
}

@media (min-width: 780px) {
    .ml-auth-lead.ml-sell-step5-lead {
        white-space: nowrap;
    }
}

.ml-auth-lead.ml-sell-step2-lead,
.ml-auth-lead.ml-sell-step4-lead {
    max-width: min(78ch, 100%);
}

.ml-auth-lead.ml-sell-step2-lead p,
.ml-auth-lead.ml-sell-step4-lead p {
    margin: 0;
}

.ml-auth-lead.ml-sell-step2-lead p + p,
.ml-auth-lead.ml-sell-step4-lead p + p {
    margin-top: 0.4rem;
}

@media (min-width: 780px) {
    .ml-auth-lead.ml-sell-step4-lead p {
        white-space: nowrap;
    }
}

.ml-sell-step {
    margin-top: 12px;
}

.ml-sell-search-label input[type="search"] {
    font-size: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--ml-header-border);
    width: 100%;
}

.ml-sell-actions {
    margin-top: 12px;
}

.ml-sell-results-wrap {
    margin-top: 24px;
    padding-top: 8px;
    border-top: 1px solid var(--ml-header-border);
}

.ml-sell-results-title {
    font-family: var(--ml-font-display);
    font-size: 1.25rem;
    margin: 8px 0 6px;
    color: var(--ml-ink);
}

.ml-sell-results-hint {
    font-size: 14px;
    color: var(--ml-ink-muted);
    margin-bottom: 14px;
}

.ml-sell-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding-right: 4px;
}

.ml-sell-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--ml-card-border);
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.18s,
        box-shadow 0.18s,
        background 0.18s;
}

.ml-sell-card:hover {
    border-color: rgba(230, 138, 69, 0.45);
    box-shadow: 0 4px 16px rgba(62, 39, 35, 0.08);
}

.ml-sell-card.is-picked {
    border-color: var(--ml-accent);
    background: var(--ml-accent-soft);
    box-shadow: 0 0 0 2px rgba(230, 138, 69, 0.25);
}

.ml-sell-card-thumb {
    width: 88px;
    min-width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--ml-cream);
}

.ml-sell-card-img--empty {
    width: 88px;
    min-width: 88px;
    height: 88px;
    border-radius: 10px;
    background: linear-gradient(135deg, #efe5dc, #e8ddd2);
}

.ml-sell-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ml-sell-card-title {
    font-weight: 700;
    color: var(--ml-ink);
    font-size: 15px;
    line-height: 1.3;
}

.ml-sell-card-meta {
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--ml-ink-muted);
}

.ml-sell-card-desc {
    font-size: 13px;
    color: var(--ml-ink-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ml-sell-empty {
    padding: 12px;
    border-radius: 12px;
    background: rgba(230, 138, 69, 0.08);
    color: var(--ml-ink);
    margin: 0;
    font-size: 14px;
}

.ml-sell-picked {
    margin-top: 14px;
    font-size: 14px;
    color: var(--ml-ink);
    font-weight: 600;
}

.ml-sell-footer-actions {
    margin-top: 28px;
}

.ml-sell-footer-actions--split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.ml-sell-footer-actions--split .ml-btn {
    text-decoration: none;
}

.ml-sell-kind-fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.ml-sell-legend {
    font-family: var(--ml-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 14px;
    padding: 0;
}

.ml-sell-choice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--ml-card-border);
    background: #fff;
    margin-bottom: 12px;
    cursor: pointer;
    transition:
        border-color 0.18s,
        background 0.18s,
        box-shadow 0.18s;
}

.ml-sell-choice:hover {
    border-color: rgba(230, 138, 69, 0.45);
}

.ml-sell-choice:focus-within {
    border-color: var(--ml-accent);
    box-shadow: 0 0 0 3px rgba(230, 138, 69, 0.2);
}

.ml-sell-choice input {
    margin-top: 4px;
}

.ml-sell-choice-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ml-sell-choice-title {
    font-weight: 800;
    color: var(--ml-ink);
    font-size: 16px;
}

.ml-sell-choice-desc {
    font-size: 14px;
    color: var(--ml-ink-muted);
    line-height: 1.45;
}

.ml-sell-subtype-wrap {
    margin-top: 8px;
    margin-bottom: 8px;
}

.ml-sell-recap {
    font-size: 15px;
    color: var(--ml-ink-muted);
    margin: 12px 0 0;
}

.ml-sell-recap strong {
    color: var(--ml-ink);
}

.ml-sell-policies-panel {
    margin-bottom: 1.5rem;
    padding: 1.1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid var(--ml-card-border);
    background: var(--ml-surface-subtle, #f6f7f9);
}

.ml-sell-policies-intro {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ml-ink);
    margin: 0 0 0.9rem;
}

.ml-sell-policies-intro a {
    color: var(--ml-primary, #0b5);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ml-sell-policies-requirements {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ml-ink);
}

.ml-sell-policies-requirements li {
    margin-bottom: 0.4rem;
}

.ml-sell-policies-confirm {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 1.25rem;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ml-ink);
    cursor: pointer;
}

.ml-sell-policies-confirm input {
    margin-top: 3px;
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
    cursor: pointer;
}

.ml-sell-step--details .ml-sell-section-head {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ml-ink);
    margin: 1.75rem 0 0.85rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--ml-card-border);
}

.ml-sell-step--details .ml-sell-section-head:first-of-type {
    margin-top: 0;
}

.ml-sell-step--details .ml-sell-section-head .ml-field-optional,
.ml-sell-step--details .ml-sell-section-head .ml-optional {
    display: inline-flex;
    align-items: center;
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(230, 138, 69, 0.12);
    color: #b45309;
    font-size: 0.78rem;
    font-weight: 800;
    vertical-align: middle;
}

.ml-sell-char-count {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ml-ink-muted);
}

.ml-sell-char-count--note {
    margin-top: 0.2rem;
    line-height: 1.35;
}

.ml-sell-char-count--warn {
    color: #b71c1c;
    font-weight: 700;
}

.ml-sell-optional-tag {
    font-weight: 600;
    color: var(--ml-ink-muted);
    font-size: 0.92em;
    white-space: nowrap;
}

.ml-sell-inner .ml-field > .ml-field-label {
    display: block;
    font-weight: 700;
    line-height: 1.35;
}

.ml-adoption-registry-fields .ml-field-label {
    white-space: nowrap;
    line-height: 1.35;
}

.ml-adoption-registry-fields__sync-hint {
    display: block;
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
}

.ml-sell-category-recap {
    font-size: 15px;
    margin: 0 0 1rem;
    color: var(--ml-ink-muted);
}

.ml-sell-category-recap strong {
    color: var(--ml-ink);
}

.ml-sell-category-dot {
    margin: 0 0.35rem;
    opacity: 0.55;
}

.ml-sell-readonly-block {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--ml-surface-subtle, #f6f7f9);
    border: 1px solid var(--ml-card-border);
}

.ml-sell-location-note {
    font-size: 14px;
    color: var(--ml-ink-muted);
    line-height: 1.45;
    margin: 0 0 1rem;
}

.ml-sell-subfieldset {
    margin: 0 0 1rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--ml-card-border);
}

.ml-sell-breeder-age-ack {
    margin-top: 0.75rem;
}

.ml-sell-check-line--legal > span {
    font-weight: 600;
    line-height: 1.45;
}

.ml-sell-breeder-age-ack .ml-sell-check-line--legal {
    align-items: flex-start;
}

.ml-sell-breeder-age-ack .ml-sell-check-line--legal input[type='checkbox'] {
    margin-top: 0.15rem;
}

.ml-sell-subfieldset--inline .ml-sell-check-line {
    display: inline-block;
    margin-right: 1.25rem;
}

.ml-sell-subfieldset .ml-sell-check-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.5rem 0;
    padding-left: 0.45rem;
    cursor: pointer;
}

.ml-sell-subfieldset .ml-sell-check-line input[type='checkbox'] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(230, 138, 69, 0.55);
    background: #fff;
    margin: 0;
    flex-shrink: 0;
}

.ml-sell-subfieldset .ml-sell-check-line input[type='checkbox']:checked {
    background: var(--ml-accent);
    border-color: var(--ml-accent);
    box-shadow: inset 0 0 0 4px #fff;
}

.ml-sell-subfieldset .ml-sell-check-line input[type='checkbox']:focus,
.ml-sell-subfieldset .ml-sell-check-line input[type='checkbox']:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 138, 69, 0.22);
}

.ml-sell-subfieldset input[type='radio'],
.ml-sell-subfieldset input[type='checkbox'],
.ml-sell-yesno-opt input[type='radio'],
.ml-sell-yesno-opt input[type='checkbox'] {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    border: 2px solid rgba(230, 138, 69, 0.55);
    background: #fff;
    margin: 0;
    flex-shrink: 0;
}

.ml-sell-subfieldset input[type='radio']:checked,
.ml-sell-subfieldset input[type='checkbox']:checked,
.ml-sell-yesno-opt input[type='radio']:checked,
.ml-sell-yesno-opt input[type='checkbox']:checked {
    background: var(--ml-accent);
    border-color: var(--ml-accent);
    box-shadow: inset 0 0 0 3px #fff;
}

.ml-sell-subfieldset input[type='radio']:focus,
.ml-sell-subfieldset input[type='checkbox']:focus,
.ml-sell-yesno-opt input[type='radio']:focus,
.ml-sell-yesno-opt input[type='checkbox']:focus,
.ml-sell-subfieldset input[type='radio']:focus-visible,
.ml-sell-subfieldset input[type='checkbox']:focus-visible,
.ml-sell-yesno-opt input[type='radio']:focus-visible,
.ml-sell-yesno-opt input[type='checkbox']:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 138, 69, 0.22);
}

.ml-sell-sublegend {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0 0.35rem;
}

.ml-pet-supply-packaging-card {
    background: rgba(230, 138, 69, 0.06);
    border-color: rgba(230, 138, 69, 0.24);
}

.ml-pet-supply-packaging-card .ml-pet-supply-packaging-card__line {
    align-items: flex-start;
    margin: 0;
    padding-left: 0;
}

.ml-pet-supply-packaging-card .ml-pet-supply-packaging-card__line input[type='checkbox'] {
    margin-top: 0.18rem;
}

.ml-pet-supply-packaging-card__line span {
    display: grid;
    gap: 0.18rem;
}

.ml-pet-supply-packaging-card__line small {
    color: var(--ml-ink-muted);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.4;
}

.ml-sell-yesno-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
}

.ml-sell-yesno-label {
    font-weight: 600;
    min-width: 6rem;
}

.ml-sell-yesno-opt {
    cursor: pointer;
}


.ml-sell-state-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ml-sell-state-row .ml-sell-field-label {
    white-space: nowrap;
}

@media (max-width: 560px) {
    .ml-sell-state-row {
        grid-template-columns: 1fr;
    }
}

.ml-adoption-registry-fields__row {
    display: grid;
    grid-template-columns: minmax(13.5rem, 0.85fr) minmax(17.5rem, 1.35fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 4px;
}

.ml-adoption-registry-fields__row > .ml-field {
    margin-bottom: 0.85rem;
    min-width: 0;
}

.ml-adoption-registry-fields__state,
.ml-adoption-registry-fields__type {
    min-width: 0;
}

.ml-adoption-registry-fields__state .ml-select-pair,
.ml-adoption-registry-fields__type .ml-select-pair {
    width: 100%;
}

.ml-adoption-registry-fields__state .ml-select-pair__select {
    min-width: 5.5rem;
}

.ml-adoption-registry-fields__type .ml-select-pair__select {
    min-width: 0;
}

.ml-dash-seller-compliance .ml-adoption-registry-fields__row > .ml-field {
    margin-bottom: 0.85rem;
}

.ml-adoption-registry-fields {
    margin-top: 1.25rem;
}

.ml-adoption-registry-fields__add-title {
    margin: 0.35rem 0 0.5rem;
}

.ml-adoption-registry-library {
    margin: 0 0 1rem;
    padding: 0.85rem 0.9rem 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--ml-card-border, rgba(0, 0, 0, 0.08));
    background: rgba(255, 255, 255, 0.55);
}

.ml-adoption-registry-library__title {
    margin: 0 0 0.7rem;
}

.ml-dash-seller-compliance .ml-adoption-registry-library__title {
    margin: 0 0 0.75rem;
}

.ml-adoption-registry-library__empty {
    margin: 0.15rem 0 0;
    line-height: 1.45;
}

.ml-adoption-registry-library__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ml-adoption-registry-library__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
    font-size: 0.95rem;
}

.ml-adoption-registry-library__label {
    font-weight: 700;
    color: var(--ml-ink);
}

.ml-adoption-registry-library__number {
    font-weight: 600;
    color: var(--ml-ink);
}

.ml-adoption-registry-library__remove {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ml-ink-muted);
    cursor: pointer;
}

@media (max-width: 560px) {
    .ml-adoption-registry-fields__row {
        grid-template-columns: 1fr;
    }

    .ml-adoption-registry-library__remove {
        margin-left: 0;
    }
}

.ml-sell-species {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.ml-sell-species-opt {
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 2px solid var(--ml-card-border);
    background: #fff;
    transition:
        border-color 0.18s,
        background 0.18s,
        box-shadow 0.18s;
}

.ml-sell-species-opt:hover {
    border-color: rgba(230, 138, 69, 0.45);
}

.ml-sell-species-opt:has(input:checked) {
    border-color: var(--ml-accent);
    background: var(--ml-accent-soft);
    box-shadow: 0 0 0 2px rgba(230, 138, 69, 0.22);
}

.ml-sell-species-opt input {
    accent-color: var(--ml-accent);
    flex-shrink: 0;
}

.ml-sell-species-opt span {
    font-weight: 800;
    font-size: 14px;
    color: var(--ml-ink);
}

.ml-sell-inline-hint {
    font-size: 13px;
    color: var(--ml-ink-muted);
    margin: -8px 0 14px;
}

.ml-sell-abn-validate-row {
    display: flex;
    justify-content: flex-start;
    margin: 0.35rem 0 0.5rem;
}

.ml-sell-abn-validate-btn {
    min-width: 5.5rem;
    width: auto;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 10px;
    white-space: nowrap;
}

.ml-sell-abn-validate-result {
    margin: 0 0 0.65rem;
}

.ml-sell-inline-hint.ml-sell-abn-hint {
    margin: 0.35rem 0 1rem;
    line-height: 1.45;
}

.ml-sell-pet-live .ml-field.ml-sell-breed-field input {
    font-size: 16px;
}

@media (max-width: 520px) {
    .ml-sell-species {
        grid-template-columns: 1fr;
    }
}

.ml-sell-cond-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ml-sell-cond-grid--aquatic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ml-sell-cond-grid--dogcat {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: stretch;
}

.ml-sell-cond-grid--dogcat .ml-sell-choice--cond {
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 0;
}

.ml-sell-cond-grid--dogcat .ml-sell-choice-body {
    min-height: 100%;
}

.ml-sell-cond-grid--sub {
    margin-top: 4px;
}

.ml-sell-choice--cond {
    margin-bottom: 0;
}

.ml-sell-choice--cond-sub .ml-sell-choice-title {
    font-size: 15px;
}

@media (max-width: 520px) {
    .ml-sell-cond-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= FOOTER ================= */

.ml-footer {
    background: var(--ml-accent);
    color: var(--ml-cream);
    padding: 44px 0 22px;
    margin-top: 48px;
}

.ml-footer h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.ml-footer-brand__logo {
    display: inline-block;
    margin: 0 0 10px;
    margin-left: -4px;
    font-size: 2.05rem;
    line-height: 1;
    text-decoration: none;
    color: inherit;
}

.ml-footer-brand__logo-group {
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
    user-select: none;
}

.ml-footer-brand__logo-mark {
    flex-shrink: 0;
    width: auto;
    height: 1.45em;
    padding-right: 0.05em;
    margin-bottom: 0.04em;
    display: block;
    -webkit-user-drag: none;
}

.ml-footer-brand__logo-word {
    font-family: var(--ml-font-display);
    font-weight: 700;
    color: #fff8f0;
    letter-spacing: -0.02em;
    line-height: 1;
}

.ml-footer h4 {
    font-family: var(--ml-font-display);
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.95;
}

.ml-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
}

.ml-footer a,
.ml-footer p {
    display: block;
    margin: 8px 0;
    color: rgba(255, 250, 245, 0.95);
}

.ml-footer a:hover {
    text-decoration: underline;
}

.ml-footer-brand p {
    opacity: 0.92;
    max-width: 34ch;
}

.ml-footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 0.85rem 0 0.25rem;
}

.ml-footer-social__link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    margin: 0 !important;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 0;
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1.2;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-clip: padding-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.ml-footer-social__link:hover {
    text-decoration: none !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

.ml-footer-social__link--facebook {
    background: #1877f2;
    z-index: 1;
}

.ml-footer-social__link--facebook:hover {
    background: #166fe5;
}

.ml-footer-social__link--instagram {
    background-color: #e1306c;
    background-image: linear-gradient(
        45deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
    z-index: 0;
}

.ml-footer-social__link--instagram:hover {
    background-image: linear-gradient(
        45deg,
        #e6683c 0%,
        #dc2743 30%,
        #cc2366 65%,
        #bc1888 100%
    );
}

.ml-footer-social__link--tiktok {
    background: #010101;
    z-index: 0;
}

.ml-footer-social__link--tiktok:hover {
    background: #111;
}

.ml-footer-social__icon {
    display: block;
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .ml-footer-social {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .ml-footer-social__link {
        width: 100%;
        max-width: 16rem;
        justify-content: center;
    }
}

.ml-newsletter-form--footer {
    margin-top: 1.15rem;
    max-width: 22rem;
}

.ml-newsletter-form__label {
    display: block;
    margin: 0 0 0.25rem;
    font-family: var(--ml-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fffaf5;
}

.ml-newsletter-form--footer .ml-newsletter-form__hint {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    line-height: 1.4;
    opacity: 0.88;
    max-width: 34ch;
}

.ml-newsletter-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: stretch;
}

.ml-newsletter-form__input {
    flex: 1 1 10rem;
    min-width: 0;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 250, 245, 0.35);
    background: rgba(255, 250, 245, 0.12);
    color: #fffaf5;
    font: inherit;
    font-size: 0.92rem;
}

.ml-newsletter-form__input::placeholder {
    color: rgba(255, 250, 245, 0.7);
}

.ml-newsletter-form__input:focus {
    outline: 2px solid #fffaf5;
    outline-offset: 1px;
}

.ml-newsletter-form__btn {
    flex: 0 0 auto;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 10px;
    background: #fffaf5;
    color: var(--ml-accent);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

.ml-newsletter-form__btn:hover {
    filter: brightness(0.97);
}

.ml-newsletter-form__btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.ml-newsletter-form__status {
    margin: 0.55rem 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.ml-newsletter-form__status.is-ok {
    color: #fffaf5;
}

.ml-newsletter-form__status.is-err {
    color: #ffe8d6;
}

.ml-footer-brand-legal {
    margin-top: 1.1rem;
}

.ml-footer-brand-legal__copy {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.92;
    color: #fff;
}

.ml-footer-brand-legal__links {
    margin: 0.4rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    font-size: 0.9rem;
    color: #fff;
}

.ml-footer-brand-legal__links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    font-weight: 650;
    opacity: 0.95;
}

.ml-footer-brand-legal__links a:hover {
    opacity: 1;
}

.ml-newsletter-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ml-newsletter-home {
    text-align: center;
    margin: 0 auto 1.75rem;
    max-width: 28rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(62, 39, 35, 0.1);
}

.ml-newsletter-home__title {
    margin: 0 0 0.4rem;
    font-family: var(--ml-font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--ml-ink);
}

.ml-newsletter-home__lead {
    margin: 0 auto 0.85rem;
    max-width: 36rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ml-ink-muted);
    white-space: nowrap;
}

@media (max-width: 520px) {
    .ml-newsletter-home__lead {
        white-space: normal;
    }
}

.ml-newsletter-form--home .ml-newsletter-form__row {
    justify-content: center;
}

.ml-newsletter-form--home .ml-newsletter-form__input {
    border: 1px solid var(--ml-header-border);
    background: #fff;
    color: var(--ml-ink);
}

.ml-newsletter-form--home .ml-newsletter-form__input::placeholder {
    color: var(--ml-ink-muted);
}

.ml-newsletter-form--home .ml-newsletter-form__input:focus {
    outline: 2px solid var(--ml-accent);
    outline-offset: 1px;
}

.ml-newsletter-form--home .ml-newsletter-form__btn {
    background: var(--ml-accent);
    color: #fffaf5;
}

.ml-newsletter-form--home .ml-newsletter-form__status.is-ok {
    color: var(--ml-ink);
}

.ml-newsletter-form--home .ml-newsletter-form__status.is-err {
    color: #b42318;
}

.ml-newsletter-unsub-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.ml-footer-marketplace-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 18px;
    margin-bottom: 4px;
}

.ml-footer-marketplace-col a {
    margin: 6px 0;
}

@media (max-width: 420px) {
    .ml-footer-marketplace-cols {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.ml-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    margin-top: 28px;
    padding-top: 16px;
    text-align: center;
}

.ml-footer-bottom p {
    font-size: 14px;
    opacity: 0.9;
}

.ml-footer-bottom-links {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0.65rem;
    align-items: center;
}

.ml-footer-bottom-links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    font-weight: 650;
    opacity: 0.95;
}

.ml-footer-bottom-links a:hover {
    opacity: 1;
}

/* Accepted payments row */
.ml-footer-payments {
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.ml-footer-payments__inner {
    display: flex;
    justify-content: center;
}

.ml-footer-payments__row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.5rem;
}

.ml-footer-pay {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.ml-footer-pay__img {
    display: block;
    width: 3.35rem;
    height: auto;
    aspect-ratio: 128 / 80;
    object-fit: contain;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0.55rem;
}

.ml-footer-pay--stripe {
    margin-left: 0.35rem;
    padding-left: 0.55rem;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.ml-footer-payments__stripe-label {
    color: rgba(255, 252, 248, 0.95);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: 0.95;
}

.ml-footer-payments__stripe-mark {
    flex-shrink: 0;
}

/* ================= UTILITY PAGES (delivery, cart, wishlist) ================= */

.ml-page-narrow {
    max-width: 640px;
    margin-inline: auto;
    padding-block: 2.25rem 3rem;
}

.ml-contact-page-title {
    font-family: var(--ml-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.4rem;
    color: var(--ml-ink);
}

.ml-legal-prose {
    margin-top: 1.25rem;
    color: var(--ml-ink);
    font-size: 0.98rem;
    line-height: 1.65;
}

.ml-legal-prose h2 {
    font-family: var(--ml-font-display);
    font-size: 1.2rem;
    margin: 1.6rem 0 0.55rem;
}

.ml-legal-prose ul,
.ml-legal-prose ol {
    margin: 0.5rem 0 1rem;
    padding-left: 0;
    margin-left: 0;
    list-style-position: inside;
}

.ml-legal-prose li {
    margin: 0.45rem 0;
    padding-left: 0;
}

.ml-legal-prose a {
    color: var(--ml-accent, #c45c26);
    font-weight: 650;
}

.ml-contact-form .ml-field textarea,
.ml-field textarea {
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--ml-header-border);
    background: var(--ml-cream);
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    color: var(--ml-ink);
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
}

.ml-contact-message {
    min-height: 10rem;
    resize: vertical;
}

.ml-contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.ml-contact-account-summary {
    margin-bottom: 1.35rem;
    padding: 1rem 1.1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--ml-header-border);
    background: var(--ml-bg-soft);
}

.ml-contact-account-summary__kicker {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ml-ink-muted);
}

.ml-contact-account-summary__dl {
    margin: 0;
    display: grid;
    gap: 0.5rem 1rem;
}

.ml-contact-account-summary__row {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.5rem 1rem;
    align-items: baseline;
    font-size: 14px;
}

.ml-contact-account-summary__row dt {
    margin: 0;
    font-weight: 700;
    color: var(--ml-ink-muted);
}

.ml-contact-account-summary__row dd {
    margin: 0;
    font-weight: 700;
    color: var(--ml-ink);
    word-break: break-word;
}

.ml-contact-account-summary__hint {
    margin: 0.85rem 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ml-ink-muted);
    line-height: 1.45;
}

.ml-contact-actions {
    margin-top: 0.25rem;
}

.ml-contact-send-btn {
    min-width: min(100%, 280px);
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 800;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(230, 138, 69, 0.35);
}

.ml-contact-send-btn:hover {
    box-shadow: 0 6px 18px rgba(214, 116, 46, 0.4);
}

.ml-wishlist-page {
    max-width: min(96%, 1280px);
}

.ml-delivery-page-title {
    font-family: var(--ml-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.4rem;
    color: var(--ml-ink);
}

.ml-delivery-page > .ml-section-lead:first-of-type {
    max-width: none;
    margin-bottom: 1.25rem;
}

.ml-delivery-login-hint {
    font-size: 15px;
    color: var(--ml-ink-muted);
    margin-bottom: 1.25rem;
}

.ml-delivery-login-hint a {
    font-weight: 700;
    color: var(--ml-accent-hover);
}

.ml-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--ml-radius-sm);
    margin-bottom: 1rem;
    font-size: 15px;
}

.ml-alert-success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.ml-alert-error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

.ml-alert-info {
    background: #fff7ec;
    color: #5a3416;
    border: 1px solid #f0d3a8;
}

/* Sell — Aquatic live plants compliance UI (Step 1 hint + Step 7 listing form). */
.ml-sell-live-plants-notice {
    margin: 0.5rem 0 0.75rem;
}

.ml-live-plants-alert {
    line-height: 1.5;
}

.ml-live-plants-alert p {
    margin: 0 0 0.5rem;
}

.ml-live-plants-alert p:last-child {
    margin-bottom: 0;
}

.ml-live-plants-alert__title {
    font-size: 15px;
}

.ml-live-plants-alert__examples {
    font-size: 13px;
    color: #6b4523;
}

.ml-live-plants-rule-list {
    list-style: none;
    margin: 0.5rem 0 0.75rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.ml-live-plants-rule {
    border: 1px solid #f0d3a8;
    background: #fffefb;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ml-live-plants-rule__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    color: #2b1a0c;
    font-size: 14px;
}

.ml-live-plants-rule__sci {
    color: #6b4523;
    font-size: 13px;
}

.ml-live-plants-rule__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ml-live-plants-rule__badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.ml-live-plants-rule__badge--banned {
    background: #fde6e3;
    color: #8a1a14;
    border: 1px solid #f7c4be;
}

.ml-live-plants-rule__badge--restricted {
    background: #fff1d6;
    color: #6a3f0a;
    border: 1px solid #f0d39a;
}

.ml-live-plants-ack-line {
    margin-top: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: #fffaf1;
    border: 1px solid #f0d3a8;
    border-radius: 12px;
    line-height: 1.45;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.ml-live-plants-ack-line input[type='checkbox'] {
    margin-top: 0.15rem;
    flex: 0 0 auto;
}

/* Live plants — Step 7 consent / biosecurity gate. */
.ml-alert-warning {
    background: #fff4dd;
    color: #6b3a08;
    border: 1px solid #f0b66a;
}

.ml-live-plants-consent-section {
    margin: 0 0 1.25rem;
}

.ml-live-plants-consent-section__head {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.ml-live-plants-consent-hero__alert {
    padding: 1rem 1.1rem;
    line-height: 1.5;
}

.ml-live-plants-consent-hero__head {
    margin: 0 0 0.4rem;
    font-size: 16px;
}

.ml-live-plants-consent-hero__alert p {
    margin: 0 0 0.5rem;
}

.ml-live-plants-consent-hero__alert p:last-child {
    margin-bottom: 0;
}

.ml-live-plants-rule__alt {
    font-size: 12px;
    color: #7a5a36;
    margin-left: 0.25rem;
}

.ml-live-plants-consent-list {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.5;
    color: #2b1a0c;
}

.ml-live-plants-consent-list li {
    margin-bottom: 0.5rem;
}

.ml-live-plants-consent-list li:last-child {
    margin-bottom: 0;
}

.ml-live-plants-consent-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
}

.ml-live-plants-consent-links li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--ml-card-border, #e7d5b9);
    border-radius: 10px;
    background: #fffefb;
    font-size: 13px;
    line-height: 1.4;
}

.ml-live-plants-consent-links__code {
    display: inline-block;
    min-width: 2.6rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: #f4e7d2;
    color: #5a3416;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.04em;
}

.ml-live-plants-consent-links a {
    color: var(--ml-accent, #c66325);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.ml-live-plants-consent-links a:hover {
    color: var(--ml-accent-hover, #a04812);
}

.ml-live-plants-consent-ack-section {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 2px dashed var(--ml-accent, #c66325);
    border-radius: 14px;
    background: #fffaf1;
}

.ml-live-plants-ack-line--gate {
    margin-top: 0;
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.5;
}

.ml-live-plants-ack-line--gate input[type='checkbox'] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
}

.ml-live-plants-alert--reminder {
    margin-top: 1rem;
    line-height: 1.5;
}

.ml-live-plants-alert--reminder p {
    margin: 0;
}

.ml-live-plants-alert__back-link {
    color: var(--ml-accent, #c66325);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ml-live-plants-alert__back-link:hover {
    color: var(--ml-accent-hover, #a04812);
}

.ml-live-plants-keyword-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.65rem;
    margin: 0.5rem 0 0.75rem;
}

.ml-live-plants-keyword-card {
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--ml-card-border, #e7d5b9);
    border-radius: 12px;
    background: #fffefb;
    line-height: 1.45;
}

.ml-live-plants-keyword-card p {
    margin: 0 0 0.35rem;
}

.ml-live-plants-keyword-card p:last-child {
    margin-bottom: 0;
}

.ml-live-plants-keyword-card__head {
    color: #2b1a0c;
    font-size: 14px;
}

.ml-live-plants-keyword-card__examples {
    color: #6b4523;
    font-size: 13px;
}

/* Live legality check status pill under the Scientific Name field (Step 8). */
.ml-sci-status {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    border: 1px solid transparent;
}

.ml-sci-status[hidden] {
    display: none;
}

.ml-sci-status small {
    font-size: 12px;
    opacity: 0.8;
    display: block;
    margin-top: 2px;
}

.ml-sci-status__icon {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}

.ml-sci-status--ok {
    background: #e8f6ec;
    color: #1b5e20;
    border-color: #b9dec0;
}

.ml-sci-status--ok .ml-sci-status__icon {
    background: #1b5e20;
    color: #fff;
}

.ml-sci-status--restricted {
    background: #fff5dc;
    color: #6a3f0a;
    border-color: #f0c773;
}

.ml-sci-status--restricted .ml-sci-status__icon {
    background: #c66325;
    color: #fff;
}

.ml-sci-status--banned {
    background: #fde6e3;
    color: #8a1a14;
    border-color: #f0a39c;
}

.ml-sci-status--banned .ml-sci-status__icon {
    background: #8a1a14;
    color: #fff;
}

/* Live-plant legality popup — fires when a banned / restricted species name is typed
   into any of the title / description / scientific-name fields. */
.ml-legal-alert-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: fit-content;
    max-width: min(460px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    border-radius: 16px;
    background: #fffefb;
    color: #2b1a0c;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid #f0d3a8;
    overflow: auto;
}

.ml-legal-alert-dialog::backdrop {
    background: rgba(20, 14, 10, 0.55);
}

.ml-legal-alert-dialog__form {
    margin: 0;
    padding: 1.5rem 1.5rem 1.25rem;
    display: block;
    width: min(420px, calc(100vw - 4rem));
    box-sizing: border-box;
}

.ml-legal-alert-dialog__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fde6e3;
    color: #8a1a14;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.ml-legal-alert-dialog--restricted .ml-legal-alert-dialog__icon {
    background: #fff1d6;
    color: #c66325;
}

.ml-legal-alert-dialog__title {
    margin: 0 0 0.5rem;
    text-align: center;
    font-size: 18px;
    line-height: 1.35;
    color: #2b1a0c;
}

.ml-legal-alert-dialog__lead {
    margin: 0 0 0.75rem;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.ml-legal-alert-dialog__lead strong {
    color: #8a1a14;
}

.ml-legal-alert-dialog--restricted .ml-legal-alert-dialog__lead strong {
    color: #c66325;
}

.ml-legal-alert-dialog__quote {
    margin: 0 0 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #fff5dc;
    border-left: 3px solid #c66325;
    font-size: 14px;
    line-height: 1.5;
    color: #5a3416;
    font-style: italic;
}

.ml-legal-alert-dialog--banned .ml-legal-alert-dialog__quote {
    background: #fde6e3;
    border-left-color: #8a1a14;
    color: #6a1812;
}

.ml-legal-alert-dialog__hint {
    margin: 0 0 1rem;
    font-size: 13px;
    line-height: 1.5;
    color: #6b4523;
}

.ml-legal-alert-dialog__actions {
    display: flex;
    justify-content: center;
    margin: 0;
}

.ml-legal-alert-dialog__actions .ml-btn {
    min-width: 10rem;
}

/* Find-pet / marketplace: compact centred toast for ?message= (e.g. Message sent.) */
.ml-flash-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10050;
    max-width: min(22rem, calc(100vw - 2rem));
    padding: 0.65rem 1.1rem;
    margin: 0;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
    box-shadow:
        0 8px 28px rgba(62, 39, 35, 0.14),
        0 2px 8px rgba(62, 39, 35, 0.08);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ml-flash-toast--success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.ml-flash-toast--info {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.ml-flash-toast--error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

.ml-flash-toast__text {
    display: block;
}

.ml-flash-toast--gone {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
    pointer-events: none;
}

/* Global “message sent” toast (above modals e.g. z-index 12000) */
.ml-msg-sent-toast {
    z-index: 13000;
}

.ml-dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.ml-dash-kpi-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 8.75rem;
    box-sizing: border-box;
    background: #fdfbf7;
    border: 1.5px solid #efebe9;
    border-radius: 14px;
    padding: 1.15rem;
}

.ml-dash-kpi-card__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #8d6e63;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    min-height: calc(1.3em * 2);
    display: flex;
    align-items: flex-start;
}

.ml-dash-kpi-card__value {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--ml-ink);
    line-height: 1.2;
    min-height: 1.9rem;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.15rem 0.25rem;
}

.ml-dash-kpi-card__unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8d6e63;
}

.ml-dash-kpi-card__sub {
    font-size: 0.82rem;
    color: #6d4c41;
    margin-top: auto;
    padding-top: 0.55rem;
    line-height: 1.35;
}

.ml-dash-kpi-card__link {
    color: #e65100;
    font-weight: 700;
    text-decoration: underline;
}

.ml-dash-kpi-card--profit {
    background: #e8f5e9;
    border-color: #c8e6c9;
}

.ml-dash-kpi-card--profit .ml-dash-kpi-card__label,
.ml-dash-kpi-card--profit .ml-dash-kpi-card__sub {
    color: #2e7d32;
}

.ml-dash-kpi-card--profit .ml-dash-kpi-card__value {
    color: #1b5e20;
}

.ml-dash-kpi-card--profit .ml-dash-kpi-card__unit {
    color: #2e7d32;
}

.ml-dash-kpi-card--buyer-active {
    background: #f3e5f5;
    border-color: #e1bee7;
}

.ml-dash-kpi-card--buyer-active .ml-dash-kpi-card__label,
.ml-dash-kpi-card--buyer-active .ml-dash-kpi-card__sub {
    color: #6a1b9a;
}

.ml-dash-kpi-card--buyer-active .ml-dash-kpi-card__value {
    color: #4a148c;
}

.ml-dash-kpi-card--buyer-active .ml-dash-kpi-card__unit {
    color: #6a1b9a;
}

.ml-dash-kpi-card--action {
    background: #fff3e0;
    border-color: #ffe0b2;
}

.ml-dash-kpi-card--action .ml-dash-kpi-card__label,
.ml-dash-kpi-card--action .ml-dash-kpi-card__sub,
.ml-dash-kpi-card--action .ml-dash-kpi-card__value,
.ml-dash-kpi-card--action .ml-dash-kpi-card__unit {
    color: #e65100;
}

@media (max-width: 1100px) {
    .ml-dash-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ml-dash-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.ml-dash-open-store {
    padding: 1rem 1.15rem 1.15rem;
    margin-bottom: 1.25rem;
    border-radius: var(--ml-radius-sm);
    background: var(--ml-accent-soft);
    border: 1px solid rgba(230, 138, 69, 0.38);
    box-shadow: 0 2px 10px rgba(62, 39, 35, 0.06);
}

.ml-dash-open-store-copy {
    margin: 0 0 0.85rem;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ml-ink);
}

.ml-dash-open-store-btn {
    text-decoration: none;
}

.ml-dash-open-store-footnote {
    margin: 1rem 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ml-ink-muted);
}

.ml-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1rem;
    font-size: 14px;
    font-weight: 700;
    color: var(--ml-ink);
}

.ml-field .ml-optional {
    font-weight: 600;
    color: var(--ml-ink-muted);
    font-size: 12px;
}

.ml-field input,
.ml-field select {
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--ml-header-border);
    background: var(--ml-cream);
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    color: var(--ml-ink);
}

.ml-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: end;
}

.ml-delivery-submit {
    margin-top: 0.5rem;
}

.ml-cart-page h1,
.ml-wishlist-title {
    font-family: var(--ml-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.ml-wishlist-viewbar {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.1rem 0 0.9rem;
    padding: 0.28rem 0.4rem;
    border: 1px solid var(--ml-header-border);
    border-radius: 999px;
    background: #fffdf9;
}

.ml-wishlist-viewbar > span {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ml-ink-muted);
    padding: 0 0.3rem;
}

.ml-wishlist-viewbtn {
    border: 1px solid rgba(230, 138, 69, 0.35);
    background: #fff7ee;
    color: var(--ml-ink);
    border-radius: 999px;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.22rem 0.62rem;
    cursor: pointer;
}

.ml-wishlist-viewbtn.is-active {
    background: var(--ml-accent);
    border-color: var(--ml-accent);
    color: #fff;
}

.ml-discover-results.ml-wishlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: stretch;
}

.ml-discover-results.ml-wishlist-grid .ml-result-row__link {
    grid-template-columns: 1fr;
}

.ml-discover-results.ml-wishlist-grid .ml-result-row__aside {
    flex: 0 0 auto;
    /* Override global min-height: 100% — in stacked grid cards it steals the full row height and collapses the body */
    min-height: 0;
    align-self: stretch;
}

.ml-discover-results.ml-wishlist-grid .ml-result-row__aside-link {
    flex: 0 0 auto;
    min-height: 0;
}

.ml-discover-results.ml-wishlist-grid .ml-result-row__aside-link > .ml-result-row__image {
    flex: 0 0 auto;
}

.ml-discover-results.ml-wishlist-grid .ml-result-row__body {
    flex: 1 1 auto;
    min-height: 0;
}

.ml-discover-results.ml-wishlist-grid .ml-result-row__image {
    min-height: 145px;
    flex: 0 0 auto;
}

.ml-discover-results.ml-wishlist-grid .ml-result-row__loc {
    margin-left: 0;
    width: 100%;
}

/* Wishlist page (favorites) — grid: equal row heights, fixed description band, shop + message pills aligned */
.ml-wishlist-page .ml-discover-results.ml-wishlist-grid {
    align-items: stretch;
}

.ml-wishlist-page .ml-discover-results.ml-wishlist-grid .ml-result-row--wishlist-card {
    align-self: stretch;
    height: 100%;
}

.ml-wishlist-page .ml-discover-results.ml-wishlist-grid .ml-result-row--wishlist-card .ml-result-row__link {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.ml-wishlist-page .ml-discover-results.ml-wishlist-grid .ml-result-row--wishlist-card .ml-result-row__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ml-wishlist-page .ml-discover-results.ml-wishlist-grid .ml-result-row__footer-wishlist {
    margin-top: auto;
}

/* List or grid: same description block height */
.ml-wishlist-page .ml-discover-results .ml-result-row__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-height: calc(3 * 1.45em);
    flex-shrink: 0;
}

.ml-wishlist-page .ml-discover-results.ml-wishlist-grid .ml-result-row__wishlist-footer-actions {
    align-items: center;
}

.ml-wishlist-page .ml-discover-results .ml-result-row__shop-pill {
    min-height: 2.75rem;
    box-sizing: border-box;
    align-items: center;
}

.ml-wishlist-page .ml-discover-results .ml-result-row__msg-btn.ml-result-row__msg-btn--icon-wishlist {
    min-height: 2.75rem;
    box-sizing: border-box;
    align-self: center;
}

/* Saved posts — Messages hub + dashboard: 4 columns; equal row heights; shop above message in grid */
.ml-messages-main .ml-discover-results.ml-wishlist-grid,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: stretch;
}

.ml-messages-main .ml-discover-results.ml-wishlist-grid .ml-result-row--wishlist-card,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid .ml-result-row--wishlist-card {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.ml-messages-main .ml-discover-results.ml-wishlist-grid .ml-result-row--wishlist-card .ml-result-row__link,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid .ml-result-row--wishlist-card .ml-result-row__link {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ml-messages-main .ml-discover-results.ml-wishlist-grid .ml-result-row__image,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid .ml-result-row__image {
    min-height: 92px;
}

.ml-messages-main .ml-discover-results.ml-wishlist-grid .ml-result-row__body,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid .ml-result-row__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0.5rem 0.6rem 0.65rem;
    gap: 0.35rem;
}

.ml-messages-main .ml-discover-results.ml-wishlist-grid .ml-result-row__footer-wishlist,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid .ml-result-row__footer-wishlist {
    margin-top: auto;
}

.ml-messages-main .ml-discover-results.ml-wishlist-grid .ml-result-row__top,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid .ml-result-row__top {
    flex-shrink: 0;
}

.ml-messages-main .ml-discover-results.ml-wishlist-grid .ml-result-row__title,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid .ml-result-row__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
}

.ml-messages-main .ml-discover-results.ml-wishlist-grid .ml-result-row__title a,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid .ml-result-row__title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    word-break: break-word;
}

.ml-messages-main .ml-discover-results.ml-wishlist-grid .ml-result-row__desc,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid .ml-result-row__desc {
    flex-shrink: 0;
    font-size: 0.82rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
    min-height: calc(6 * 0.82rem * 1.35);
}

.ml-messages-main .ml-discover-results.ml-wishlist-grid .ml-result-row__wishlist-bottom,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid .ml-result-row__wishlist-bottom {
    padding-top: 0.35rem;
    gap: 0.35rem;
}

.ml-messages-main .ml-discover-results.ml-wishlist-grid .ml-result-row__wishlist-footer-actions,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid .ml-result-row__wishlist-footer-actions {
    flex-direction: column;
    align-items: stretch;
    align-content: flex-start;
}

.ml-messages-main .ml-discover-results.ml-wishlist-grid .ml-result-row__wishlist-footer-actions .ml-result-row__msg-form,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid .ml-result-row__wishlist-footer-actions .ml-result-row__msg-form {
    display: flex;
    width: 100%;
}

.ml-messages-main .ml-discover-results.ml-wishlist-grid .ml-result-row__wishlist-footer-actions .ml-result-row__msg-btn.ml-result-row__msg-btn--icon-wishlist,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid .ml-result-row__wishlist-footer-actions .ml-result-row__msg-btn.ml-result-row__msg-btn--icon-wishlist {
    width: 100%;
    justify-content: center;
}

.ml-messages-main .ml-discover-results.ml-wishlist-grid .ml-result-row__shop-pill,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid .ml-result-row__shop-pill {
    font-size: 0.72rem;
    max-width: 100%;
    min-height: 2.5rem;
    box-sizing: border-box;
    align-items: center;
}

.ml-messages-main .ml-discover-results.ml-wishlist-grid .ml-result-row__msg-btn.ml-result-row__msg-btn--icon-wishlist,
.ml-dash-two-col .ml-discover-results.ml-wishlist-grid .ml-result-row__msg-btn.ml-result-row__msg-btn--icon-wishlist {
    min-height: 2.5rem;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .ml-messages-main .ml-discover-results.ml-wishlist-grid,
    .ml-dash-two-col .ml-discover-results.ml-wishlist-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .ml-messages-main .ml-discover-results.ml-wishlist-grid,
    .ml-dash-two-col .ml-discover-results.ml-wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .ml-discover-results.ml-wishlist-grid {
        grid-template-columns: 1fr;
    }

    .ml-messages-main .ml-discover-results.ml-wishlist-grid,
    .ml-dash-two-col .ml-discover-results.ml-wishlist-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .ml-field-row {
        grid-template-columns: 1fr;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 1024px) {
    .ml-header-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .ml-header-toolbar--no-search .ml-header-toolbar-tail {
        flex-wrap: wrap;
        justify-content: flex-end;
        flex-basis: auto;
    }

    .ml-logo {
        margin-left: 0;
        font-size: 38px;
    }

    .ml-header-toolbar-start {
        flex: 1 1 auto;
        min-width: 0;
        order: 1;
    }

    .ml-search {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        margin-left: 0;
        min-width: 0;
        order: 3;
    }

    .ml-search select {
        width: min(126px, 34vw);
    }

    .ml-header-tools {
        flex: 0 1 auto;
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-left: auto;
        gap: 8px;
        order: 2;
    }

    .ml-delivery {
        flex: 0 1 auto;
        max-width: 260px;
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .ml-tile-grid,
    .ml-footer-grid {
        grid-template-columns: 1fr;
    }

    .ml-seller-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .ml-menu-inner {
        grid-template-columns: 1fr 1fr;
    }

    .ml-menu-link,
    .ml-menu-item {
        border-right: none;
        border-bottom: 1px solid var(--ml-header-border);
    }

    .ml-menu-item .ml-menu-link {
        border-right: none;
        border-bottom: none;
    }

    .ml-menu-pop {
        left: 0;
        transform: none;
        width: 100%;
    }

    .ml-menu-pop--triple {
        grid-template-columns: 1fr;
    }

    .ml-hero-carousel h1 {
        font-size: 28px;
    }

    .ml-hero-slide {
        min-height: 420px;
    }

    .ml-hero-slide--warm .ml-hero-slide-img {
        object-position: 52% 32%;
    }

    .ml-hero-slide-content {
        padding: 56px 0 88px;
    }

    .ml-hero-buttons--triple {
        flex-wrap: wrap;
    }

    .ml-hero-arrow {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .ml-hero-arrow--prev {
        left: 8px;
    }

    .ml-hero-arrow--next {
        right: 8px;
    }

    .ml-hero-dots {
        bottom: 20px;
    }

    .ml-section-lead--one-line {
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .ml-seller-grid {
        grid-template-columns: 1fr;
    }
}

/* Sell wizard — step 6 listing details (wider, roomier type)
   Must override .ml-sell-inner { width: min(96%, 640px) } or step 6 stays 640px wide */
.ml-sell-inner--details-wide {
    width: min(98%, 1480px);
    max-width: min(98%, 1480px);
    padding-left: clamp(16px, 4vw, 44px);
    padding-right: clamp(16px, 4vw, 44px);
    box-sizing: border-box;
}

.ml-sell-head--details .ml-auth-lead.ml-sell-details-intro {
    font-size: 1.08rem;
    max-width: none;
    margin-inline: 0;
    text-align: left;
    line-height: 1.55;
}

/* Flush left with title; one line on wide viewports (long sentence — wrap on smaller screens) */
@media (min-width: 1100px) {
    .ml-sell-head--details .ml-auth-lead.ml-sell-details-intro {
        white-space: nowrap;
    }
}

.ml-sell-readonly-input {
    width: 100%;
    background: #f3f4f6;
    color: #374151;
    cursor: default;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.ml-sell-pricing-model {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin: 0.35rem 0 0;
}

.ml-sell-choice--inline {
    margin: 0;
}

.ml-sell-choice--inline .ml-sell-choice-body {
    padding: 0.45rem 0.7rem;
}

.ml-sell-kind-fieldset--compact {
    margin-bottom: 0.35rem;
}

.ml-field-optional {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.92em;
}

.ml-sell-address-note {
    font-size: 0.96rem;
    color: #4b5563;
    margin: 0 0 1.1rem;
    line-height: 1.55;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(199, 109, 46, 0.22);
    background: rgba(255, 251, 245, 0.95);
}

.ml-aquatic-radius-wrap {
    margin-top: 0.35rem;
}

.ml-aquatic-radius-card {
    margin-top: 0.65rem;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(199, 109, 46, 0.28);
    background: linear-gradient(
        165deg,
        rgba(255, 253, 248, 0.98) 0%,
        rgba(250, 245, 238, 0.92) 100%
    );
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.ml-aquatic-radius-card__label {
    display: block;
    font-weight: 800;
    font-size: 1.02rem;
    color: #3f2e26;
    margin-bottom: 0.55rem;
    letter-spacing: 0.01em;
}

.ml-aquatic-radius-card__control {
    margin-bottom: 0.45rem;
}

.ml-aquatic-radius-select {
    width: 100%;
    max-width: 28rem;
    font-size: 1.05rem;
    padding: 0.72rem 2.25rem 0.72rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #e8dfd4;
    background-color: #fffdf9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23755e54' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    appearance: none;
    cursor: pointer;
}

.ml-aquatic-radius-select:focus {
    outline: 3px solid rgba(199, 109, 46, 0.35);
    outline-offset: 2px;
    border-color: rgba(199, 109, 46, 0.55);
}

.ml-aquatic-radius-card__hint {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #5c504a;
}

.ml-sell-step--details {
    font-size: 1.0625rem;
}

.ml-sell-inner--details-wide .ml-field {
    font-size: 1.02rem;
}

.ml-sell-inner--details-wide .ml-field input,
.ml-sell-inner--details-wide .ml-field select:not(.ml-select-pair__select),
.ml-sell-inner--details-wide .ml-field textarea {
    font-size: 1.06rem;
    padding: 0.7rem 0.85rem;
}

.ml-sell-desc-area {
    min-height: 14rem;
    line-height: 1.55;
}

.ml-field--stock .ml-stock-input,
.ml-stock-input {
    display: block;
    width: 5.25rem;
    max-width: 100%;
    box-sizing: border-box;
}

.ml-sell-category-recap--kicker {
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    margin-bottom: 1.35rem;
    line-height: 1.35;
}

.ml-sell-category-recap--kicker strong {
    font-weight: 800;
}

.ml-sell-step--details .ml-sell-section-head {
    font-size: 1.15rem;
    margin-top: 2rem;
}

.ml-field:has(input[type='file']) + .ml-sell-photo-tip-box {
    margin-top: 1.35rem;
}

.ml-sell-photo-tip-box {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin: 0 0 1.65rem;
    padding: 1.05rem 1.15rem 1.15rem;
    border-radius: 16px;
    border: 1px dashed var(--ml-card-border);
    background: rgba(255, 253, 248, 0.92);
}

.ml-sell-tip-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    color: #6b4423;
    background: linear-gradient(145deg, #fff8e8, #ffe9c9);
    border: 1px solid rgba(230, 161, 88, 0.45);
    padding: 0.28rem 0.65rem 0.28rem 0.55rem;
    border-radius: 999px;
    box-shadow:
        0 2px 6px rgba(214, 138, 56, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.ml-sell-tip-badge__dot {
    font-size: 0.72rem;
    line-height: 1;
    opacity: 0.92;
}

.ml-sell-photo-tip {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ml-ink-muted);
}

/* Price: hide browser increment/decrement controls */
.ml-input-no-spin::-webkit-outer-spin-button,
.ml-input-no-spin::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ml-input-no-spin[type='number'] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* Price input — leading $ inside field */
.ml-price-input-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--ml-header-border);
    background: var(--ml-cream);
    overflow: hidden;
    box-sizing: border-box;
}

.ml-price-input-wrap:focus-within {
    outline: 2px solid rgba(230, 138, 69, 0.55);
    outline-offset: 1px;
}

.ml-price-input__prefix {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 0 0 0.85rem;
    font-weight: 700;
    font-size: 15px;
    color: var(--ml-ink-muted);
    user-select: none;
}

.ml-price-input-wrap .ml-price-input__field {
    flex: 1;
    min-width: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0.65rem 0.75rem 0.65rem 0.25rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    color: var(--ml-ink);
}

.ml-price-input-wrap .ml-price-input__field:focus {
    outline: none;
}

.ml-field .ml-price-input-wrap {
    align-self: stretch;
}

.ml-field .ml-price-input-wrap .ml-price-input__field {
    border: none;
    background: transparent;
}

.ml-sell-inner--details-wide .ml-field .ml-price-input-wrap .ml-price-input__field {
    font-size: 1.06rem;
    padding: 0.7rem 0.85rem 0.7rem 0.25rem;
}

.ml-sell-inner--details-wide .ml-field .ml-price-input__prefix {
    font-size: 1.06rem;
    padding-left: 0.9rem;
}

/* Custom select: chevron cue + cream field (shop, state, size, gender) */
.ml-select-pair {
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--ml-header-border);
    background: var(--ml-cream);
    overflow: hidden;
}

.ml-field--gender-row .ml-select-pair {
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--ml-header-border);
    background: var(--ml-cream);
    overflow: hidden;
}

.ml-select-pair__cue {
    flex: 0 0 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #625252;
    background: rgba(255, 255, 255, 0.45);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.ml-select-pair__cue svg {
    display: block;
}

.ml-select-pair__select {
    flex: 1;
    min-width: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: 1.06rem;
    font-weight: 600;
    color: var(--ml-ink);
    padding: 0.7rem 2.35rem 0.7rem 0.85rem !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23625252' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 16px;
    cursor: pointer;
    text-align: left;
}

.ml-select-pair__select:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(230, 138, 69, 0.35);
}

.ml-sell-field-error {
    display: block;
    color: #b42318;
    font-size: 0.96rem;
    margin-top: 0.35rem;
    font-weight: 600;
}

.ml-sell-microchip-count {
    display: block;
    font-size: 0.92rem;
    color: var(--ml-ink-muted);
    margin-top: 0.3rem;
}

.ml-sell-microchip-group {
    margin-bottom: 1.35rem;
}

.ml-sell-microchip-fields .ml-field:not(:last-child) {
    margin-bottom: 0.62rem;
}

.ml-sell-microchip-fields .ml-field:last-child {
    margin-bottom: 0.28rem;
}

.ml-sell-microchip-hint.ml-sell-inline-hint {
    display: block;
    margin: 0.2rem 0 0;
    line-height: 1.45;
    max-width: 40rem;
}

.ml-sell-microchip-group .ml-sell-field-error {
    margin-top: 0.4rem;
}

/* Public listing page */
.listing-detail--spacious.listing-detail--page-top-gap {
    padding-top: clamp(1.25rem, 4vw, 2.75rem);
}

.listing-detail--spacious.container {
    max-width: min(99%, 1480px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(12px, 3vw, 28px);
    padding-right: clamp(12px, 3vw, 28px);
}

.listing-detail-flash {
    margin-bottom: 0.25rem;
}

.listing-detail-flash .ml-alert {
    margin-bottom: 0;
}

.listing-detail-flash .ml-alert + .ml-alert {
    margin-top: 0.75rem;
}

.listing-detail-media-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.listing-hero-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.listing-hero-wrap .detail-image {
    border-radius: 18px;
}

.listing-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1a1410;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.listing-hero-nav:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.listing-hero-nav:focus-visible {
    outline: 2px solid var(--ml-accent, #c45c26);
    outline-offset: 2px;
}

.listing-hero-nav svg {
    width: 22px;
    height: 22px;
}

.listing-hero-nav--prev {
    left: 10px;
}

.listing-hero-nav--next {
    right: 10px;
}

.listing-hero-counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    pointer-events: none;
}

.listing-hero--clickable {
    cursor: zoom-in;
}

.listing-hero--clickable:focus-visible {
    outline: 3px solid var(--ml-accent, #c45c26);
    outline-offset: 3px;
}

/* Full-screen photo viewer on listing detail */
body.ml-listing-lightbox-open {
    overflow: hidden;
}

.ml-listing-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    box-sizing: border-box;
}

.ml-listing-lightbox[hidden] {
    display: none !important;
}

.ml-listing-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 6, 0.92);
    cursor: zoom-out;
}

.ml-listing-lightbox__stage {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: min(96vw, 1400px);
    max-height: calc(100vh - 5rem);
    touch-action: pan-y pinch-zoom;
}

.ml-listing-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.ml-listing-lightbox__close {
    position: absolute;
    top: clamp(8px, 2vw, 18px);
    right: clamp(8px, 2vw, 18px);
    z-index: 4;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.ml-listing-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.ml-listing-lightbox__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.ml-listing-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1410;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.ml-listing-lightbox__nav:hover {
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.ml-listing-lightbox__nav:focus-visible {
    outline: 2px solid var(--ml-accent, #c45c26);
    outline-offset: 2px;
}

.ml-listing-lightbox__nav svg {
    width: 24px;
    height: 24px;
}

.ml-listing-lightbox__nav--prev {
    left: clamp(8px, 2.5vw, 22px);
}

.ml-listing-lightbox__nav--next {
    right: clamp(8px, 2.5vw, 22px);
}

.ml-listing-lightbox__counter {
    position: absolute;
    bottom: clamp(10px, 2.5vw, 22px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    pointer-events: none;
}

.listing-detail-under-photo__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    flex-wrap: wrap;
}

.listing-detail-under-photo__spacer {
    flex: 1 1 auto;
    min-width: 0;
}

.listing-detail-under-photo__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
    flex-shrink: 0;
    margin-left: auto;
}

.listing-detail-under-photo .listing-detail-msg-form {
    margin: 0;
}

.listing-detail-under-photo .ml-wishlist-btn {
    margin-left: 0;
}

.listing-detail--spacious .detail-info {
    font-size: 1.08rem;
    line-height: 1.65;
}

.listing-detail-renew-banner {
    margin: 0 0 1.15rem;
}

.listing-detail-renew-banner .listing-detail-renew-banner__form {
    display: inline-flex;
    align-items: center;
    margin: 0.55rem 0.65rem 0 0;
    vertical-align: middle;
}

.listing-detail-renew-banner__btn {
    margin: 0;
}

.listing-detail--spacious .detail-list {
    font-size: 1.02rem;
}

/* Shop link on listing detail — slightly larger than surrounding facts */
.listing-detail--spacious .detail-list li a {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Pet facts card: tidy label/value table for dog, cat & adoption listings */
.ml-pet-facts {
    background: #fff;
    border: 1px solid var(--ml-header-border);
    border-radius: 16px;
    box-shadow: var(--ml-shadow);
    overflow: hidden;
    margin-top: 1.25rem;
}

.ml-pet-facts__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: var(--ml-accent-soft);
    border-bottom: 1px solid var(--ml-header-border);
    color: var(--ml-accent);
}

.ml-pet-facts__head h3 {
    margin: 0;
    font-family: var(--ml-font-display);
    font-size: 1.05rem;
    color: var(--ml-ink);
}

.ml-pet-facts__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.58rem 1.2rem;
    font-size: 0.95rem;
}

.ml-pet-facts__row:nth-child(even) {
    background: var(--ml-cream);
}

.ml-pet-facts__row + .ml-pet-facts__row {
    border-top: 1px solid rgba(62, 39, 35, 0.05);
}

.ml-pet-facts__label {
    color: var(--ml-ink-muted);
    font-weight: 600;
}

.ml-pet-facts__value {
    font-weight: 800;
    text-align: right;
    word-break: break-word;
}

.ml-pet-facts__divider {
    padding: 0.55rem 1.2rem;
    background: var(--ml-accent-soft);
    border-top: 1px solid var(--ml-header-border);
    border-bottom: 1px solid var(--ml-header-border);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ml-ink-muted);
}

.ml-pet-cols {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem 1rem 1rem;
}

.ml-pet-cols--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ml-pet-cols--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ml-pet-col {
    border: 1px solid rgba(62, 39, 35, 0.08);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.ml-pet-col__head {
    padding: 0.55rem 0.7rem;
    background: var(--ml-accent-soft);
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--ml-ink);
}

.ml-pet-col .ml-pet-facts__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 0.55rem 0.7rem;
    background: transparent;
}

.ml-pet-col .ml-pet-facts__row + .ml-pet-facts__row {
    border-top: 1px solid rgba(62, 39, 35, 0.05);
}

.ml-pet-col .ml-pet-facts__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.75;
}

.ml-pet-col .ml-pet-facts__value {
    text-align: left;
    font-size: 0.92rem;
}

.ml-adoption-pet-panels {
    display: grid;
    gap: 0.85rem;
}

.ml-adoption-pet-panel {
    margin: 0;
}

.ml-sell-subfieldset--nested {
    margin-top: 0.65rem;
    padding-top: 0.35rem;
}

@media (max-width: 720px) {
    .ml-pet-cols--2,
    .ml-pet-cols--3 {
        grid-template-columns: 1fr;
    }
}

.ml-fact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.ml-fact-chip svg {
    width: 12px;
    height: 12px;
}

.ml-fact-chip--yes {
    background: #e7f2e8;
    color: #2e7d32;
}

.ml-fact-chip--no {
    background: #fdeceb;
    color: #c0392b;
}

.ml-fact-chip--na {
    background: #f2ece7;
    color: #8a7d72;
    font-weight: 700;
}

.listing-kicker {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin: 0 0 0.4rem;
    letter-spacing: 0.02em;
}

.listing-kicker strong {
    font-weight: 800;
}

.listing-kicker-dot {
    margin: 0 0.5rem;
    opacity: 0.45;
}

.listing-title-main {
    font-size: clamp(1.75rem, 4.2vw, 2.5rem);
    margin: 0.35rem 0 0.85rem;
    line-height: 1.18;
}

.listing-price-line {
    font-size: clamp(1.4rem, 3.2vw, 1.9rem);
    font-weight: 700;
    margin: 0 0 1.35rem;
}

.listing-price-line--quote {
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 1rem;
}

.listing-description {
    margin-top: 0.65rem;
    max-width: none;
}

.listing-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.listing-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.listing-gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-color: #f0e7de;
    flex-shrink: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.listing-gallery-thumb:hover,
.listing-gallery-thumb:focus-visible {
    outline: none;
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.listing-gallery-thumb.is-active {
    border-color: var(--ml-accent, #c45c26);
    box-shadow: 0 0 0 1px rgba(196, 92, 38, 0.35);
}

.listing-detail--spacious .detail-image {
    min-height: 280px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    background-color: #f8efe6;
}

@media (min-width: 840px) {
    .listing-detail--spacious {
        display: grid;
        grid-template-columns: minmax(0, 1.12fr) minmax(300px, 1fr);
        gap: clamp(1.5rem, 3vw, 2.75rem);
        align-items: start;
    }

    .listing-detail-flash {
        grid-column: 1 / -1;
    }

    .listing-detail--spacious .detail-info {
        grid-column: 2;
        grid-row: 2;
    }

    .listing-detail--spacious .listing-detail-media-col {
        grid-column: 1;
        grid-row: 2;
    }

    .listing-detail--spacious .detail-image {
        min-height: 420px;
    }
}

/* Dashboard / community — `.container` & `.two-col` were never styled; listing form stayed narrow */
.container {
    width: 100%;
    max-width: min(98%, 1380px);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 4vw, 48px);
    padding-right: clamp(16px, 4vw, 48px);
}

/* Space below site header on dashboard */
.container.two-col.ml-dash-two-col {
    padding-top: clamp(0.35rem, 1.1vw, 0.8rem);
}

@media (min-width: 880px) {
    .container.two-col {
        display: grid;
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
        gap: clamp(1.5rem, 4vw, 3rem);
        align-items: start;
    }

    .container.two-col.ml-dash-two-col {
        grid-template-columns: minmax(168px, 220px) minmax(0, 1fr);
        gap: clamp(1.75rem, 5vw, 3.25rem);
    }

    .container.two-col.ml-dash-two-col > *:last-child {
        min-width: 0;
    }
}

.ml-dash-main {
    min-width: 0;
}


@media (max-width: 880px) {
    .ml-dash-main {
        margin-top: 2rem;
    }
}

/* Multi-shop switcher: top of main column — label left-aligned above the select */
.ml-dash-active-shop-bar {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin: 0 0 clamp(0.55rem, 1.8vw, 0.95rem);
    box-sizing: border-box;
}

.ml-dash-main .ml-dash-active-shop-form.ml-field {
    align-items: flex-start;
    margin-bottom: 0;
    max-width: min(20rem, 100%);
}

.ml-dash-main .ml-dash-active-shop-form .ml-field-label {
    align-self: flex-start;
    width: 100%;
    text-align: left;
}

.ml-dash-main .ml-dash-active-shop-form select {
    width: 100%;
    min-width: min(14rem, 100%);
    max-width: min(20rem, 100%);
    box-sizing: border-box;
}

.ml-dash-page-title {
    width: 100%;
    max-width: none;
    align-self: stretch;
    margin: 0 0 clamp(1rem, 2.6vw, 1.5rem);
    padding: 0;
    text-align: left;
    font-family: var(--ml-font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    color: #b26028;
    letter-spacing: 0.01em;
}

.ml-dash-page-title-link {
    color: inherit;
    text-decoration: none;
}

.ml-dash-page-title-link:hover,
.ml-dash-page-title-link:focus-visible {
    text-decoration: underline;
}

.ml-dash-overview-manage {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(0.55rem, 2vw, 0.85rem);
    margin-bottom: clamp(1rem, 2.6vw, 1.45rem);
}

.ml-dash-overview-manage .ml-btn,
.ml-dash-overview-manage .btn {
    width: auto;
    max-width: 100%;
}

.ml-dash-overview-sheet {
    display: flex;
    flex-direction: column;
    /* Same top rhythm as “My profile” (`.ml-dash-profile`) below the site menu */
    padding-top: clamp(1.35rem, 3.5vw, 2.25rem);
    margin-bottom: clamp(1.85rem, 4.5vw, 2.85rem);
}

.ml-dash-overview-danger-row {
    margin-top: 0.5rem;
    padding-top: 0.4rem;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.ml-dash-overview-danger-row--page-bottom {
    margin-top: 1.2rem;
    margin-bottom: 0.2rem;
}

.ml-dash-overview-delete-btn {
    border-color: rgba(185, 28, 28, 0.35);
    color: #b91c1c;
}

.ml-dash-overview-delete-btn:hover,
.ml-dash-overview-delete-btn:focus-visible {
    background: rgba(254, 226, 226, 0.7);
    border-color: rgba(185, 28, 28, 0.55);
}

.ml-dash-traffic-sheet {
    margin-top: clamp(0.5rem, 1.8vw, 1rem);
    margin-bottom: 1rem;
    padding-inline: clamp(0.35rem, 2.5vw, 1.75rem);
    box-sizing: border-box;
}

.ml-dash-traffic-sheet__title {
    margin-top: 0;
    margin-bottom: 0.65rem;
    text-align: center;
    font-family: var(--ml-font-display, Fraunces, Georgia, serif);
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 700;
    color: #3d342c;
}

.ml-dash-traffic-chart-shell {
    width: 100%;
    max-width: min(960px, 100%);
    margin-inline: auto;
}

.ml-dash-traffic-chart-shell svg {
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(107, 95, 86, 0.14);
    box-shadow: 0 2px 12px rgba(60, 45, 35, 0.06);
}

.ml-dash-traffic-legend {
    margin: 0.5rem 0 0;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    max-width: min(960px, 100%);
    margin-inline: auto;
    font-size: 0.82rem;
}

.ml-dash-traffic-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ml-dash-traffic-legend__sep {
    opacity: 0.55;
    user-select: none;
}

.ml-dash-traffic-legend__swatch {
    width: 14px;
    height: 4px;
    border-radius: 2px;
    flex-shrink: 0;
}

.ml-dash-traffic-legend__swatch--visits {
    background: #e68a45;
}

.ml-dash-traffic-legend__swatch--views {
    background: #e14f9a;
}

.ml-dash-overview-title {
    text-align: center;
    width: 100%;
    font-family: var(--ml-font-display);
    font-size: clamp(1.75rem, 3.6vw, 2.45rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #b26028;
    margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
}

.ml-dash-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 1.25rem);
    align-items: stretch;
    margin: 0;
    padding: clamp(0.85rem, 2vw, 1.15rem) 0 0;
    border-top: 1px dashed var(--ml-header-border);
    list-style: none;
    padding-inline-start: 0;
}

.ml-dash-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.35rem 0.25rem;
}

.ml-dash-kpi__label {
    font-size: clamp(0.78rem, 1.6vw, 0.9rem);
    font-weight: 700;
    color: #111;
    line-height: 1.25;
}

.ml-dash-kpi__value {
    font-size: clamp(1.2rem, 2.6vw, 1.55rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #b26028;
    line-height: 1.2;
}

@media (max-width: 720px) {
    .ml-dash-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .ml-dash-kpis {
        grid-template-columns: 1fr;
    }
}

.ml-dash-post-section__title {
    margin-top: 0;
    font-family: var(--ml-font-display, Fraunces, Georgia, serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #3d342c;
}

.ml-dash-post-section__empty {
    margin: 0;
    color: var(--ml-ink-muted, #6b5f56);
}

.ml-dash-post-section__lead {
    margin: -0.15rem 0 0.35rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--ml-ink-muted, #6b5f56);
}

.ml-dash-post-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0.65rem;
    align-items: stretch;
}

.ml-dash-post-cards > .ml-dash-post-card {
    height: 100%;
    min-height: 0;
}

@media (max-width: 1100px) {
    .ml-dash-post-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ml-dash-post-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .ml-dash-post-cards {
        grid-template-columns: 1fr;
    }
}

.ml-dash-post-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(107, 95, 86, 0.2);
    background: #fffdf9;
    box-shadow: 0 2px 8px rgba(60, 45, 35, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ml-dash-post-card--manageable {
    position: relative;
}

.ml-dash-post-card__thumb-hit {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.ml-dash-post-card__thumb-hit:focus-visible {
    outline: 2px solid var(--ml-primary, #d84315);
    outline-offset: 2px;
    border-radius: 12px 12px 0 0;
}

.ml-dash-post-card:hover,
.ml-dash-post-card:focus-within {
    border-color: rgba(196, 92, 38, 0.45);
    box-shadow: 0 6px 18px rgba(180, 75, 35, 0.12);
}

.ml-dash-post-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.55rem 0.65rem 0.65rem;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
}

.ml-dash-post-card__title-link {
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.3;
    color: #3d342c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    min-height: calc(2 * 1.3em);
    box-sizing: border-box;
}

.ml-dash-post-card__title-link:hover {
    color: #b26028;
    text-decoration: underline;
}

.ml-dash-post-card__title-link:focus-visible {
    outline: 2px solid var(--ml-primary, #d84315);
    outline-offset: 2px;
    border-radius: 2px;
}

.ml-dash-post-card__snippet {
    margin: 0;
    flex: 0 0 auto;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--ml-ink-muted, #6b5f56);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-height: calc(4 * 1.4em);
    max-height: calc(4 * 1.4em);
    box-sizing: border-box;
}

.ml-dash-post-card__footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
    margin-top: auto;
    padding-top: 0.15rem;
}

.ml-dash-post-card__footer--renew-only {
    justify-content: flex-end;
}

.ml-dash-post-card__footer-start {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 0;
}

.ml-dash-post-card .ml-listing-posted-ago {
    font-size: 0.68rem;
    color: var(--ml-ink-muted, #6b5f56);
    line-height: 1.25;
}

.ml-dash-post-card__footer .ml-shop-listing-toolbar-renew {
    height: 28px;
    padding: 0 10px;
    font-size: 0.68rem;
}

.ml-dash-post-card__meta {
    font-size: 0.75rem;
    color: var(--ml-ink-muted, #6b5f56);
}

.ml-dash-post-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: rgba(243, 236, 228, 0.85);
    overflow: hidden;
}

.ml-dash-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ml-dash-sidebar {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.ml-dash-sidebar .ml-dash-nav {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.ml-dash-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.ml-dash-nav-list li {
    margin: 0;
}

.ml-dash-nav-item--setup-store {
    margin-top: 0.65rem;
    padding-top: 0.95rem;
    border-top: 1px dashed var(--ml-header-border);
}

.ml-dash-nav-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 1.05rem 0.9rem;
    margin: 0;
    color: #7a4018;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    text-align: center;
    border-radius: 14px;
    border: 1px solid rgba(200, 110, 55, 0.28);
    background: #fff0e6;
    box-shadow: 0 2px 8px rgba(200, 100, 50, 0.1);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ml-dash-nav-btn:hover {
    background: #ffe4d4;
    color: #5c3010;
    border-color: rgba(200, 110, 55, 0.42);
    box-shadow: 0 4px 14px rgba(200, 90, 40, 0.16);
}

.ml-dash-nav-btn--active {
    background: #d4733a;
    color: #fffaf7;
    border-color: rgba(130, 55, 25, 0.55);
    box-shadow: 0 2px 12px rgba(180, 75, 35, 0.28);
}

.ml-dash-seller-compliance {
    margin-bottom: 1.5rem;
}

.ml-dash-seller-compliance__title {
    margin-top: 0;
    margin-bottom: 0.55rem;
}

.ml-dash-seller-compliance__lead {
    margin: 0 0 1.25rem;
}

.ml-dash-seller-compliance__form + .ml-dash-seller-compliance__form {
    margin-top: 1.35rem;
}

.ml-dash-seller-compliance .ml-shop-compliance-fieldset {
    padding: 1.15rem 1.15rem 1.2rem;
}

.ml-dash-seller-compliance .ml-shop-compliance-fieldset--follow,
.ml-dash-seller-compliance .ml-shop-compliance-fieldset + .ml-shop-compliance-fieldset {
    margin-top: 1.35rem;
}

.ml-dash-seller-compliance .ml-shop-focus-legend {
    margin-bottom: 0.4rem;
}

.ml-dash-seller-compliance .ml-shop-compliance-fieldset > .ml-shop-focus-hint {
    margin: 0 0 1.1rem;
}

/* One rhythm: label → control gap, then even field spacing */
.ml-dash-seller-compliance .ml-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0 0 1.1rem;
    font-size: 14px;
    font-weight: 700;
    color: var(--ml-ink);
}

.ml-dash-seller-compliance .ml-field:last-child {
    margin-bottom: 0;
}

.ml-dash-seller-compliance .ml-field-label {
    display: block;
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    color: var(--ml-ink);
}

.ml-dash-seller-compliance .ml-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ml-dash-seller-compliance .ml-field select,
.ml-dash-seller-compliance .ml-shop-name-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--ml-header-border);
    background: var(--ml-cream);
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    color: var(--ml-ink);
}

.ml-dash-seller-compliance__field-hint {
    display: block;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ml-ink-muted);
}

.ml-dash-seller-compliance .ml-shop-compliance-result {
    margin: 0.15rem 0 1.1rem;
}

.ml-dash-seller-compliance .ml-shop-compliance-result[hidden] {
    display: none;
}

/* Compact Validate buttons; input row uses remaining width */
.ml-dash-seller-compliance .ml-shop-name-row {
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.ml-dash-seller-compliance .ml-shop-validate-compliance-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: max-content;
    align-self: stretch;
    margin-bottom: 0;
    padding: 9px 16px;
    font-size: 0.88rem;
}

@media (max-width: 560px) {
    .ml-dash-seller-compliance .ml-shop-validate-compliance-btn {
        min-width: 0 !important;
        width: auto;
        max-width: none;
        justify-self: start;
        align-self: start;
    }
}

.ml-dash-seller-compliance__save-row {
    justify-content: flex-start;
    margin-top: 1.15rem;
}

.ml-dash-profile {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    /* Match sidebar top offset so the main column breathes under the global header */
    padding-top: clamp(1.35rem, 3.5vw, 2.25rem);
}

.ml-dash-profile__title {
    font-family: var(--ml-font-display, 'Fraunces', Georgia, serif);
    font-size: 1.75rem;
    color: var(--ml-ink);
    margin: 0 0 0.5rem;
    padding: 0;
}

.ml-dash-profile__lead {
    color: var(--ml-ink-muted, #5c4a42);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.ml-dash-mateloop-id {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    border: 1px solid rgba(47, 74, 54, 0.14);
    background: linear-gradient(135deg, #f4faf6 0%, #fff 70%);
}

.ml-dash-mateloop-id__title {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    color: #2f4a36;
}

.ml-dash-mateloop-id__lead {
    margin: 0;
    color: var(--ml-ink-muted, #5c4a42);
    font-size: 0.92rem;
}

/* Dashboard MateLoop ID hub */
.ml-dash-mlid__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 1.5rem;
}

.ml-dash-mlid__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.45rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1.5px solid #2f4a36;
    background: #fff;
    color: #2f4a36;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.ml-dash-mlid__action--solid {
    background: #2f4a36;
    color: #fff;
}

.ml-dash-mlid__action:hover,
.ml-dash-mlid__action:focus-visible {
    background: #243b2b;
    border-color: #243b2b;
    color: #fff;
}

.ml-dash-mlid__list-title {
    margin: 0 0 0.85rem;
    font-size: 1.1rem;
    color: #2f4a36;
}

.ml-dash-mlid__empty {
    padding: 1.15rem 1.2rem;
    border-radius: 1rem;
    border: 1px dashed rgba(47, 74, 54, 0.28);
    background: #f4faf6;
}

.ml-dash-mlid__empty p {
    margin: 0 0 0.85rem;
    color: var(--ml-ink-muted, #5c4a42);
}

.ml-dash-mlid__cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.ml-dash-mlid__card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(47, 74, 54, 0.12);
    background: #fff;
    box-shadow: 0 8px 22px rgba(47, 74, 54, 0.05);
}

.ml-dash-mlid__card-media {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #e8efe9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-dash-mlid__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ml-dash-mlid__card-ph {
    font-size: 1.5rem;
    opacity: 0.55;
}

.ml-dash-mlid__card-body {
    min-width: 0;
    flex: 1 1 auto;
}

.ml-dash-mlid__card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin: 0 0 0.2rem;
}

.ml-dash-mlid__card-name {
    margin: 0;
    font-size: 1.05rem;
    color: var(--ml-ink, #3e2723);
}

.ml-dash-mlid__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ml-dash-mlid__badge--safe {
    background: #d7e4d3;
    color: #2f4a36;
}

.ml-dash-mlid__badge--lost {
    background: #f8d7d4;
    color: #8a2f2f;
}

.ml-dash-mlid__card-meta {
    margin: 0 0 0.7rem;
    font-size: 0.86rem;
    color: var(--ml-ink-muted, #5c4a42);
}

.ml-dash-mlid__card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ml-dash-profile__section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.ml-dash-profile__h {
    font-size: 1.15rem;
    margin: 0 0 0.75rem;
    color: var(--ml-ink);
}

.ml-dash-profile__subh {
    font-size: 1.02rem;
    margin: 1.25rem 0 0.5rem;
    color: var(--ml-ink);
}

/* Extra gap before “My address” after the phone block */
.ml-dash-profile__fieldset + .ml-dash-profile__subh {
    margin-top: clamp(2rem, 4.5vw, 3rem);
}

.ml-dash-profile__legend {
    font-weight: 700;
    padding: 0 0.25rem;
}

.ml-dash-profile__hint {
    font-size: 0.9rem;
    color: #5c4a42;
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

.ml-dash-profile__hint--after-name {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.ml-dash-profile__field--name-locked {
    margin-bottom: 1rem;
}

.ml-dash-profile__name-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ml-ink);
}

.ml-dash-profile__locked-value {
    margin: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px dashed rgba(93, 64, 55, 0.22);
    background: rgba(93, 64, 55, 0.06);
    color: var(--ml-ink);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    user-select: none;
}

.ml-dash-profile__input--readonly {
    cursor: default;
    background: rgba(93, 64, 55, 0.06);
    color: var(--ml-ink-muted, #5c4a42);
}

.ml-dash-profile__fieldset {
    border: 1px solid rgba(93, 64, 55, 0.12);
    border-radius: 12px;
    padding: 1rem 1rem 0.5rem;
    margin: 0.75rem 0 1rem;
    margin-inline: 0;
    min-inline-size: 0;
}

/* Align form blocks with page title; separate each major block from the next */
.ml-dash-profile form.ml-dash-profile__section {
    margin: 0 0 clamp(2.25rem, 5vw, 3.25rem);
    padding: 0 0 clamp(1.75rem, 3.5vw, 2.5rem);
    border: 0;
    border-bottom: 1px solid rgba(93, 64, 55, 0.12);
}

.ml-dash-profile form.ml-dash-profile__section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.ml-dash-profile .ml-dash-profile__email-section {
    margin: 0 0 clamp(2.25rem, 5vw, 3.25rem);
    padding: 0 0 clamp(1.75rem, 3.5vw, 2.5rem);
    border: 0;
    border-bottom: 1px solid rgba(93, 64, 55, 0.12);
}

.ml-dash-profile__email-save-row {
    margin-top: 0.35rem;
}

.ml-dash-profile .ml-dash-profile__fieldset legend {
    margin-inline-start: 0;
    padding-inline: 0;
}

.ml-dash-profile__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}

@media (max-width: 520px) {
    .ml-dash-profile__row {
        grid-template-columns: 1fr;
    }
}

.ml-dash-profile__footer-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.ml-dash-profile__phone-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.ml-dash-profile__phone-msg {
    margin: 0.65rem 0 0;
    min-height: 1.35em;
}

.ml-dash-profile__btn-strong.btn-light {
    background: linear-gradient(180deg, #f5ebe0 0%, #e8ddd2 100%);
    color: var(--ml-ink);
    border: 2px solid rgba(62, 39, 35, 0.32);
    box-shadow:
        0 2px 8px rgba(62, 39, 35, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.ml-dash-profile__btn-strong.btn-light:hover {
    background: linear-gradient(180deg, #faf3ea 0%, #efe3d6 100%);
    border-color: rgba(62, 39, 35, 0.46);
    color: var(--ml-ink);
    box-shadow:
        0 4px 14px rgba(62, 39, 35, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ml-dash-profile__section--danger {
    border-top: 1px solid rgba(185, 28, 28, 0.18);
    padding-top: 1.35rem;
    margin-top: 0.35rem;
}

.ml-dash-profile__section--danger .ml-dash-profile__h {
    color: #991b1b;
}

.ml-dash-profile__btn-danger.btn {
    background: #991b1b;
    border-color: #991b1b;
    color: #fff;
    font-weight: 700;
}

.ml-dash-profile__btn-danger.btn:hover,
.ml-dash-profile__btn-danger.btn:focus-visible {
    background: #7f1d1d;
    border-color: #7f1d1d;
    color: #fff;
}

.ml-dash-profile__inline-msg {
    font-size: 0.9rem;
    color: #166534;
}

.ml-dash-profile__phone-msg .ml-dash-profile__inline-msg {
    margin-left: 0;
}

.container .post-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.container .post-form textarea,
.container .post-form select {
    width: 100%;
    max-width: 100%;
}

.container .post-form textarea {
    min-height: 11rem;
}

/* Messages hub — sidebar + inbox / saved sellers / saved posts */
.ml-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;
}

.ml-messages-shell {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(1rem, 3vw, 1.75rem);
    margin-top: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .ml-messages-shell {
        flex-direction: column;
    }
}

.ml-messages-sidebar {
    flex: 0 0 min(200px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(93, 64, 55, 0.08);
    padding: 0.5rem 0;
}

.ml-messages-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ml-messages-nav li {
    margin: 0;
}

.ml-messages-nav__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.7rem;
    margin: 0.12rem 0.35rem;
    color: #2d241c;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
}

.ml-messages-nav__link:hover {
    background: #f6f1ea;
    color: #1a1410;
}

.ml-messages-nav__link.is-active {
    color: #1e7a4c;
    background: #e8f5ee;
}

.ml-messages-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.85;
}

.ml-messages-nav__divider {
    display: block;
    height: 1px;
    background: rgba(93, 64, 55, 0.12);
    margin: 0.45rem 0.7rem;
    padding: 0;
    list-style: none;
}

button.ml-messages-nav__link {
    width: calc(100% - 0.7rem);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.ml-messages-nav__link--danger {
    color: #991b1b;
}

.ml-messages-nav__link--danger:hover {
    background: #fef2f2;
    color: #7f1d1d;
}

.ml-messages-nav__link--danger[disabled],
.ml-messages-nav__link--danger[aria-disabled="true"] {
    color: #b89a96;
    cursor: not-allowed;
    background: transparent;
    opacity: 0.6;
}

.ml-messages-nav__link--danger.is-active {
    background: #fff1f1;
    color: #7f1d1d;
}

.ml-messages-nav__label {
    flex: 1 1 auto;
    min-width: 0;
}

.ml-messages-nav__count {
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 1.5rem;
    padding: 0 0.45rem;
    height: 1.25rem;
    line-height: 1.25rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.ml-messages-nav__count--unread {
    background: var(--ml-accent, #c45c26);
    color: #fff;
}

.ml-messages-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(93, 64, 55, 0.08);
    padding: 1.15rem 1.35rem 1.5rem;
}

.ml-messages-split.messages-layout {
    display: grid;
    grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    min-height: min(70vh, 560px);
    margin: 0 -1.35rem;
    padding: 0;
}

@media (max-width: 960px) {
    .ml-messages-split.messages-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

.ml-messages-alerts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding: 0 0.75rem;
    text-align: center;
}

.ml-messages-alerts .ml-alert {
    margin: 0;
    max-width: 28rem;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.ml-inbox-flash {
    margin: 0;
}

.ml-inbox-bulk-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.ml-inbox-bulk-form.ml-inbox-bulk-form--empty {
    justify-content: center;
    align-items: center;
    min-height: min(52vh, 420px);
    padding: 1.25rem 0.75rem 2rem;
}

.ml-inbox-list-empty {
    max-width: 22rem;
    margin: 0 auto;
    text-align: center;
}

.ml-inbox-list-empty .ml-messages-empty {
    margin: 0 0 0.7rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: #3d342c;
    line-height: 1.35;
}

.ml-inbox-list-empty .ml-messages-empty-hint {
    margin: 0;
    text-align: center;
    line-height: 1.55;
}

.ml-inbox-list-empty .ml-messages-empty-hint strong {
    color: #5c4035;
}

.ml-inbox-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.5rem 0.75rem 0.55rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #fffef9;
    position: sticky;
    top: 0;
    z-index: 2;
}

.ml-inbox-toolbar--filter-only {
    justify-content: flex-end;
}

.ml-inbox-toolbar__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.ml-inbox-toolbar__actions--only {
    margin-left: auto;
}

.ml-inbox-store-select {
    min-width: 10rem;
    max-width: 16rem;
    padding: 0.42rem 2.1rem 0.42rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #3d342c;
    border: 1.5px solid rgba(230, 138, 69, 0.55);
    border-radius: 999px;
    background-color: #fff7ec;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23c45c26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 0.7rem auto;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    box-shadow: 0 1px 0 rgba(196, 92, 38, 0.05);
}

.ml-inbox-store-select:hover {
    border-color: var(--ml-accent, #e68a45);
    background-color: #fff1de;
    color: #2d241c;
}

.ml-inbox-store-select:focus,
.ml-inbox-store-select:focus-visible {
    outline: none;
    border-color: var(--ml-accent, #e68a45);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(230, 138, 69, 0.22);
    color: #2d241c;
}

.ml-inbox-store-select option {
    background: #fff;
    color: #2d241c;
}

.ml-inbox-select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    color: #3d342c;
}

.ml-inbox-delete-btn {
    font-size: 0.84rem;
    padding: 0.28rem 0.85rem;
    border-color: rgba(185, 28, 28, 0.45);
    color: #991b1b;
}

.ml-inbox-delete-btn:hover {
    background: #fef2f2;
    border-color: rgba(185, 28, 28, 0.65);
    color: #7f1d1d;
}

.ml-conversation-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ml-conversation-item:last-child {
    border-bottom: none;
}

.ml-conversation-item__pick {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 0.15rem 0 0.65rem;
    background: #fdfcfa;
}

.ml-conversation-item__cb {
    width: 17px;
    height: 17px;
    accent-color: var(--ml-accent);
    cursor: pointer;
}

.conversation-list.ml-conversation-list {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(93, 64, 55, 0.12);
    max-height: min(70vh, 560px);
    overflow: hidden;
    background: #fdfcfa;
}

.ml-conversation-list__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

@media (max-width: 960px) {
    .conversation-list.ml-conversation-list {
        border-right: none;
        border-bottom: 1px solid rgba(93, 64, 55, 0.12);
        max-height: 42vh;
    }
}

.ml-conversation-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ml-conversation-item .ml-conversation-row {
    flex: 1;
    min-width: 0;
    border-bottom: none;
}

.ml-conversation-row:hover {
    background: #faf6f1;
}

.ml-conversation-row.active {
    background: #e8f5ee;
}

.ml-conversation-row.ml-conversation-row--unread:not(.active) {
    background: rgba(254, 243, 242, 0.95);
}

.ml-conversation-row.ml-conversation-row--unread:not(.active):hover {
    background: #fcf1ef;
}

.ml-conversation-row.ml-conversation-row--unread .ml-conversation-row__snippet:not(.ml-conversation-row__snippet--unread-count) {
    font-weight: 600;
    color: #3d342c;
}

.ml-conversation-row.ml-conversation-row--unread .ml-conversation-row__snippet.ml-conversation-row__snippet--unread-count {
    color: var(--ml-accent, #e68a45);
    font-weight: 700;
}

.ml-conversation-row--demo.ml-conversation-row--unread:not(.active) {
    background: rgba(254, 243, 242, 0.98);
}

.ml-conversation-item__pick-spacer {
    display: inline-block;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.ml-conversation-row__check {
    display: none;
}

.ml-conversation-row__thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    background-color: #f0e7de;
}

.ml-conversation-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ml-conversation-row__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.ml-conversation-row__headline {
    font-size: 0.94rem;
    font-weight: 700;
    color: #3d342c;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-conversation-row__date {
    font-size: 0.78rem;
    color: var(--ml-ink-muted, #6b5f56);
    white-space: nowrap;
}

.ml-conversation-row__snippet {
    font-size: 0.8rem;
    color: var(--ml-ink-muted, #6b5f56);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ml-conversation-row__snippet.ml-conversation-row__snippet--unread-count {
    color: var(--ml-accent, #e68a45);
    font-weight: 700;
    -webkit-line-clamp: 2;
}

.ml-chat-thread-context {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(93, 64, 55, 0.12);
    background: #faf7f3;
}

.ml-chat-thread-context__thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    background-color: #eee5dc;
}

.ml-chat-thread-context__text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ml-chat-thread-context__heading-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
}

.ml-chat-thread-context__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d241c;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.ml-chat-thread-context__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ml-ink-muted, #6b5f56);
}

.ml-chat-thread-context__shop-link {
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.01em;
    color: var(--ml-accent, #c45c26);
    text-decoration: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-chat-thread-context__shop-link:hover,
.ml-chat-thread-context__shop-link:focus-visible {
    text-decoration: underline;
    color: var(--ml-accent-hover, #a84d21);
}

.ml-chat-thread-context__shop-link--block {
    display: block;
    white-space: normal;
}

.ml-chat-thread-context__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #3d342c;
    min-width: 0;
    line-height: 1.35;
}

button.ml-chat-thread-context__title--peer {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #3d342c;
    text-align: left;
    cursor: pointer;
}

.ml-chat-thread-context__title--peer:hover,
.ml-chat-thread-context__title--peer:focus-visible {
    color: var(--ml-accent-hover, #a84d21);
    text-decoration: underline;
}

a.ml-chat-thread-context__title--listing {
    text-decoration: none;
    color: inherit;
}

.ml-chat-thread-context__title--listing:hover,
.ml-chat-thread-context__title--listing:focus-visible {
    color: var(--ml-accent-hover, #a84d21);
    text-decoration: underline;
}

.chat-box.ml-chat-box {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    min-height: min(70vh, 560px);
    /* Cap the pane so long threads scroll inside .ml-messages-area instead of stretching the page. */
    max-height: min(70vh, 560px);
}

.ml-messages-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.ml-messages-scroll-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.7rem;
    min-height: 100%;
    padding: 0.2rem 0 0.35rem;
    box-sizing: border-box;
}

.ml-messages-area .message {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-width: min(82%, 28rem);
    align-self: flex-start;
}

.ml-messages-area .message.mine {
    align-self: flex-end;
}

.ml-messages-area .message .ml-msg-bubble {
    border-radius: 14px;
    padding: 0.55rem 0.8rem;
    background: #f4efe8;
    border: 1px solid rgba(93, 64, 55, 0.14);
    text-align: left;
}

.ml-messages-area .message.mine .ml-msg-bubble {
    background: #e3f2e9;
    border-color: rgba(30, 122, 76, 0.32);
}

.ml-messages-area .ml-msg-sender {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ml-ink-muted, #6b5f56);
    margin-bottom: 0.12rem;
}

.ml-messages-area .message.mine .ml-msg-sender {
    color: #1a5c3a;
}

.ml-messages-area button.ml-msg-sender--profile {
    display: block;
    width: 100%;
    margin: 0 0 0.12rem;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.ml-messages-area button.ml-msg-sender--profile:hover,
.ml-messages-area button.ml-msg-sender--profile:focus-visible {
    text-decoration: underline;
    text-decoration-color: rgba(107, 95, 86, 0.45);
}

.ml-messages-area .message.mine button.ml-msg-sender--profile {
    color: #1a5c3a;
}

.ml-messages-area .message .ml-msg-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #2d241c;
    word-break: break-word;
}

.ml-messages-area .ml-msg-time {
    display: block;
    font-size: 0.72rem;
    color: var(--ml-ink-muted, #8a7d72);
    line-height: 1.3;
}

.ml-messages-area .message.mine .ml-msg-time {
    text-align: right;
    align-self: flex-end;
}

/* Read receipts on own messages: ✓ sent (grey) → ✓✓ Read (green) */
.ml-msg-ticks {
    font-size: 0.72rem;
    font-weight: 700;
    color: #a99c90;
    letter-spacing: -0.08em;
}

.ml-msg-ticks--read {
    color: #2e7d32;
    letter-spacing: normal;
}

.ml-messages-area .ml-msg-attachments {
    margin-top: 0.35rem;
}

.ml-chat-empty-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    min-height: min(40vh, 280px);
}

.ml-chat-empty-wrap .ml-chat-empty.empty {
    margin: 0;
    max-width: 24rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ml-ink-muted, #6b5f56);
}

.ml-message-compose.message-form {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(93, 64, 55, 0.1);
}

.ml-message-compose--bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ml-message-compose__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.ml-message-compose__chip {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(93, 64, 55, 0.15);
    flex-shrink: 0;
}

.ml-message-compose__chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ml-message-compose__chip-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-message-compose__row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
}

.ml-message-compose__plus {
    flex-shrink: 0;
    width: 2.65rem;
    min-height: 2.65rem;
    border-radius: 12px;
    border: 1px solid rgba(93, 64, 55, 0.22);
    background: #fff;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1;
    color: #3d342c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ml-message-compose__plus:hover:not(:disabled) {
    background: #f6f1ea;
}

.ml-message-compose__plus:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ml-message-compose__pill-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    border: 1px solid rgba(93, 64, 55, 0.18);
    border-radius: 999px;
    background: #fff;
    padding: 0.2rem 0.85rem;
}

.ml-message-compose__textarea {
    width: 100%;
    min-height: 2.45rem;
    max-height: 8rem;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    resize: vertical;
    padding: 0.45rem 0;
    outline: none;
}

.ml-message-compose__send {
    flex-shrink: 0;
    min-width: 5.5rem;
    min-height: 2.65rem;
    padding: 0 1.1rem;
    border: none;
    border-radius: 10px;
    background: #1e7a4c;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
}

.ml-message-compose__send:hover {
    background: #186840;
}

.ml-deal-milestones {
    margin: 0 0.75rem 0.55rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(62, 39, 35, 0.12);
    border-radius: 12px;
    background: #faf7f2;
}

.ml-deal-milestones__label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8d6e63;
    margin-bottom: 0.25rem;
}

.ml-deal-milestones__current,
.ml-deal-milestones__hint {
    margin: 0 0 0.55rem;
    font-size: 0.86rem;
    color: #5d4037;
    line-height: 1.35;
}

.ml-deal-milestones__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ml-deal-milestones__form {
    margin: 0;
}

.ml-deal-milestones__btn {
    appearance: none;
    border: 1px solid #d7ccc8;
    background: #fff;
    color: #3e2723;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
}

.ml-deal-milestones__btn:hover:not(:disabled) {
    border-color: var(--ml-accent, #e68a45);
    color: var(--ml-accent, #e68a45);
}

.ml-deal-milestones__btn.is-active,
.ml-deal-milestones__btn:disabled {
    background: #efebe9;
    color: #6d4c41;
    cursor: default;
}

.ml-msg-bubble--deal {
    background: #fff8e7 !important;
    border: 1px solid #ffe0b2;
}

.message--deal .ml-msg-text {
    font-weight: 600;
}

.ml-msg-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.35rem 0 0;
}

.ml-msg-attachment {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.ml-msg-attachment img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ml-message-attach-dialog {
    border: none;
    border-radius: 14px;
    padding: 0;
    max-width: min(26rem, calc(100vw - 2rem));
    width: min(26rem, calc(100vw - 2rem));
    box-shadow: 0 16px 48px rgba(45, 38, 34, 0.22);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 10060;
}

.ml-message-attach-dialog::backdrop {
    background: rgba(45, 38, 34, 0.45);
}

.ml-message-attach-dialog__inner {
    padding: 1.1rem 1.25rem 1.2rem;
}

.ml-message-attach-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.ml-message-attach-dialog__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d241c;
}

.ml-message-attach-dialog__close {
    border: none;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: #5d4037;
    padding: 0.1rem 0.25rem;
}

.ml-message-attach-dialog__meta {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    color: var(--ml-ink-muted, #6b5f56);
}

.ml-message-attach-dialog__drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 7.5rem;
    border: 2px dashed rgba(93, 64, 55, 0.25);
    border-radius: 12px;
    background: #faf7f3;
    cursor: pointer;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ml-message-attach-dialog__drop.is-drag {
    border-color: rgba(30, 122, 76, 0.55);
    background: #e8f5ee;
}

.ml-message-attach-dialog__drop-plus {
    font-size: 1.75rem;
    font-weight: 400;
    color: #1e7a4c;
    line-height: 1;
}

.ml-message-attach-dialog__drop-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #4a423b;
}

.ml-message-attach-dialog__preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    min-height: 0;
}

.ml-message-attach-dialog__thumb {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(93, 64, 55, 0.12);
}

.ml-message-attach-dialog__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ml-message-attach-dialog__thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 1.35rem;
    height: 1.35rem;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.ml-message-attach-dialog__foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ml-message-attach-dialog__done {
    background: #1e7a4c;
    color: #fff;
    border: 2px solid #1e7a4c;
}

.ml-message-attach-dialog__done:hover {
    background: #186840;
    border-color: #186840;
    color: #fff;
}

.ml-message-about-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 12000;
    border: none;
    padding: 0;
    border-radius: 12px;
    max-width: min(480px, 94vw);
    width: min(480px, calc(100vw - 2rem));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.ml-message-about-dialog::backdrop {
    background: rgba(20, 14, 12, 0.45);
}

.ml-message-about-dialog__inner {
    padding: 1.1rem 1.15rem 1rem;
}

.ml-message-about-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.ml-message-about-dialog__title {
    margin: 0;
    font-family: var(--ml-font-display, Fraunces, Georgia, serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c241f;
}

.ml-message-about-dialog__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #5c524c;
    padding: 0.15rem 0.35rem;
}

.ml-message-about-dialog__close:hover {
    color: #1a1512;
}

.ml-message-about-dialog__response-hint {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    line-height: 1.35;
    color: #6d4c41;
    font-weight: 600;
}

.ml-seller-response-time {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    line-height: 1.35;
    color: #6d4c41;
    font-weight: 600;
}

.ml-shop-page-response-time {
    margin-top: 0.35rem;
}

.listing-detail-response-time {
    margin-top: 0.45rem;
}

.ml-message-about-dialog__textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 7rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #c9bfb5;
    border-radius: 10px;
    font: inherit;
    font-size: 0.98rem;
    resize: vertical;
    margin-bottom: 0.85rem;
}

.ml-message-about-dialog__textarea:focus {
    outline: 2px solid rgba(30, 122, 76, 0.35);
    outline-offset: 1px;
    border-color: #1e7a4c;
}

.ml-message-about-dialog__foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ml-message-about-dialog__send {
    background: #1e7a4c;
    color: #fff;
    border: 2px solid #1e7a4c;
}

.ml-message-about-dialog__send:hover {
    background: #186840;
    border-color: #186840;
    color: #fff;
}

.ml-delete-post-dialog {
    /* Fixed + translate keeps modal centred even when <dialog> sits inside transformed layout ancestors */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 10050;
    width: min(92vw, 460px);
    max-height: min(90vh, 85dvh);
    overflow: auto;
    border: 1px solid #f0dcc8;
    border-radius: 18px;
    padding: 0;
    background: #fffaf4;
    color: var(--ml-ink);
    box-shadow: 0 24px 60px rgba(27, 19, 16, 0.24);
}

.ml-delete-post-dialog::backdrop {
    background: rgba(20, 14, 12, 0.45);
}

.ml-delete-post-dialog__inner {
    padding: 1.15rem 1.2rem 1.05rem;
}

.ml-delete-post-dialog__title {
    margin: 0;
    font-family: var(--ml-font-display, Fraunces, Georgia, serif);
    font-size: 1.18rem;
    color: #6a3716;
}

.ml-delete-post-dialog__text {
    margin: 0.65rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.ml-delete-post-dialog__actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}

.ml-delete-post-dialog__btn-danger {
    background: #991b1b;
    border-color: #991b1b;
    color: #fff;
}

.ml-delete-post-dialog__btn-danger:hover {
    background: #7f1d1d;
    border-color: #7f1d1d;
}

.ml-form-alert-dialog__actions {
    justify-content: center;
}

.ml-form-alert-dialog .ml-delete-post-dialog__text {
    text-align: center;
    font-weight: 600;
}

.ml-form-alert-dialog .ml-delete-post-dialog__title {
    text-align: center;
}

.ml-dash-post-card__expired-meta {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--ml-ink-muted, #6d4c41);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-height: calc(3 * 1.35em);
    max-height: calc(3 * 1.35em);
    box-sizing: border-box;
}

.ml-dash-expired-other-shops {
    margin: 0.5rem 0 0.85rem;
    padding: 0.5rem 0.65rem;
    border-radius: 12px;
    background: rgba(254, 243, 199, 0.65);
    border: 1px solid rgba(217, 119, 6, 0.25);
    font-size: 0.9rem;
    line-height: 1.45;
}

.ml-shop-listing-card-toolbar--expired {
    flex-wrap: wrap;
    gap: 0.25rem;
}

.ml-messages-empty {
    margin: 1rem 0;
    color: #4a423b;
}

.ml-inbox-list-empty .ml-messages-empty + .ml-messages-empty-hint {
    margin-top: 0;
}

.ml-messages-empty + .ml-messages-empty-hint {
    margin-top: -0.35rem;
}

.ml-messages-panel__title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.ml-messages-panel__lead {
    margin: 0 0 1rem;
    color: var(--ml-ink-muted, #6b5f56);
    font-size: 0.98rem;
}

.ml-messages-wishlist-toolbar {
    margin-bottom: 1rem;
}

.ml-saved-sellers-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 900px) {
    .ml-saved-sellers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .ml-saved-sellers-grid {
        grid-template-columns: 1fr;
    }
}

.ml-saved-sellers-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid rgba(93, 64, 55, 0.12);
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
}

.ml-saved-sellers-card__main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.65rem 0.65rem 0.45rem;
}

.ml-saved-sellers-card__logo-ring {
    width: 100%;
    aspect-ratio: 1;
    min-height: 7.5rem;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(93, 64, 55, 0.07);
}

.ml-saved-sellers-card__logo-ring .ml-saved-sellers-card__logo-img,
.ml-saved-sellers-card__logo-ring .ml-saved-sellers-card__logo-fallback {
    width: 100%;
    height: 100%;
    border-radius: 0;
    flex-shrink: 0;
}

.ml-saved-sellers-card__logo-img {
    object-fit: cover;
    display: block;
}

.ml-saved-sellers-card__logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.35rem, 5vw, 2rem);
    font-weight: 700;
    color: var(--ml-ink-muted, #6b5f56);
    letter-spacing: 0.02em;
    background: rgba(93, 64, 55, 0.06);
}

.ml-saved-sellers-card__shop-link--media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    text-decoration: none;
    color: inherit;
}

.ml-saved-sellers-card__shop-link--media:hover .ml-saved-sellers-card__logo-img,
.ml-saved-sellers-card__shop-link--media:hover .ml-saved-sellers-card__logo-fallback {
    opacity: 0.92;
}

.ml-saved-sellers-card__shop-link--media:focus-visible {
    outline: 2px solid rgba(30, 122, 76, 0.55);
    outline-offset: 2px;
}

.ml-saved-sellers-card__shop-link--footer {
    display: block;
    text-decoration: none;
    color: inherit;
    margin: 0 -0.15rem;
    padding: 0.15rem;
    border-radius: 6px;
}

.ml-saved-sellers-card__shop-link--footer:focus-visible {
    outline: 2px solid rgba(30, 122, 76, 0.55);
    outline-offset: 1px;
}

.ml-saved-sellers-card__shop-link--footer:hover .ml-saved-sellers-card__name {
    text-decoration: underline;
}

.ml-saved-sellers-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: stretch;
}

.ml-saved-sellers-card__message-form {
    margin: 0;
    min-width: 0;
    display: block;
}

.ml-saved-sellers-card__icon-btn {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.4rem 0.45rem;
    margin: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
    font: inherit;
    line-height: 1.2;
}

.ml-saved-sellers-card__btn-label {
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ml-saved-sellers-card__icon-btn--remove svg {
    display: block;
}

.ml-saved-sellers-card__icon-btn--remove {
    border: 1px solid rgba(93, 64, 55, 0.22);
    background: #fff;
    color: #5d4037;
}

.ml-saved-sellers-card__icon-btn--remove:hover {
    background: #fff5f5;
    border-color: #c62828;
    color: #b42318;
}

.ml-saved-sellers-card__icon-btn--message {
    border: 1px solid rgba(30, 122, 76, 0.35);
    background: #e8f5ee;
    color: #1e6b47;
}

.ml-saved-sellers-card__icon-btn--message:hover {
    border-color: rgba(30, 122, 76, 0.55);
    background: #dcf3e6;
}

.ml-saved-sellers-card__footer {
    margin: 0;
    padding: 0.55rem 0.65rem 0.7rem;
    border-top: 1px solid rgba(93, 64, 55, 0.1);
    text-align: center;
    background: rgba(93, 64, 55, 0.03);
}

.ml-saved-sellers-card__name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #3d342c;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-saved-sellers-remove {
    cursor: pointer;
}

/* Fixed + translate keeps modal centred even when <dialog> sits inside transformed layout ancestors */
.ml-saved-sellers-remove-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 10050;
    border: none;
    border-radius: 14px;
    padding: 0;
    width: min(22rem, calc(100vw - 2rem));
    max-width: min(22rem, calc(100vw - 2rem));
    max-height: min(90vh, 32rem);
    overflow: auto;
    box-shadow: 0 14px 44px rgba(45, 38, 34, 0.22);
}

.ml-saved-sellers-remove-dialog::backdrop {
    background: rgba(45, 38, 34, 0.48);
}

.ml-saved-sellers-remove-dialog__form {
    padding: 1.2rem 1.35rem 1.35rem;
    margin: 0;
}

.ml-saved-sellers-remove-dialog__title {
    margin: 0 0 0.45rem;
    font-size: 1.12rem;
    font-weight: 700;
    color: #3d342c;
}

.ml-saved-sellers-remove-dialog__text {
    margin: 0 0 1.1rem;
    font-size: 0.94rem;
    line-height: 1.45;
    color: var(--ml-ink-muted, #6b5f56);
}

.ml-saved-sellers-remove-dialog__actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ml-saved-sellers-remove-dialog__btn {
    font-size: 0.88rem;
}

.ml-saved-sellers-remove-dialog__btn--danger {
    background: #b42318;
    color: #fff;
    border: 2px solid #942017;
}

.ml-saved-sellers-remove-dialog__btn--danger:hover {
    background: #941f15;
    border-color: #7a1a12;
    color: #fff;
}

.ml-shop-public-action-btn.is-saved {
    border-color: rgba(30, 122, 76, 0.35);
    color: #1e7a4c;
    background: #e8f5ee;
}

.ml-community-page {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 1.15rem;
    margin-top: 1rem;
}

/* Community: floating Create Post FAB (non-feed views only; feed uses toolbar Post) */
.ml-community-fab {
    position: fixed;
    right: 22px;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--ml-accent);
    background: var(--ml-accent);
    box-shadow: 0 12px 34px rgba(230, 138, 69, 0.35);
    cursor: pointer;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -0.01em;
    color: #fff;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ml-community-fab:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 44px rgba(214, 116, 46, 0.4);
    background: var(--ml-accent-hover);
    border-color: var(--ml-accent-hover);
    color: #fff;
}

a.ml-community-fab {
    text-decoration: none;
    color: #fff;
    box-sizing: border-box;
}

.ml-community-fab__icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 15px;
    line-height: 1;
}

/*
 * Full post + comments in a modal (width matched to the card in the feed).
 * Never set display:flex on `dialog` without scoping to [open] — it overrides the UA
 * `dialog:not([open]) { display:none }` rule and can leave the closed dialog (and its × toolbar)
 * partially painted over the feed (WebKit/Safari especially).
 */
.ml-community-comment-post-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: clamp(0.5rem, 2vw, 1rem);
    border: none;
    background: transparent;
    box-sizing: border-box;
    z-index: 4200;
}

.ml-community-comment-post-dialog:not([open]) {
    display: none !important;
}

.ml-community-comment-post-dialog[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-community-comment-post-dialog::backdrop {
    background: rgba(40, 28, 22, 0.42);
    backdrop-filter: blur(5px);
}

body.ml-community-notif-focus .ml-community-comment-post-dialog::backdrop {
    background: rgba(20, 14, 10, 0.92);
    backdrop-filter: blur(2px);
}

body.ml-community-notif-focus .ml-community-fab,
body.ml-community-notif-focus .ml-community-post-btn {
    display: none !important;
}

body.ml-community-notif-focus .ml-community-page {
    visibility: hidden;
}

body.ml-community-notif-focus .ml-community-comment-post-dialog,
body.ml-community-notif-focus .ml-community-comment-post-dialog * {
    visibility: visible;
}

.ml-community-comment.ml-community-comment--notif-highlight {
    animation: ml-community-comment-notif-pulse 3s ease-out 1;
    border-radius: 10px;
}

@keyframes ml-community-comment-notif-pulse {
    0% {
        background-color: rgba(230, 138, 69, 0.32);
        box-shadow: 0 0 0 3px rgba(230, 138, 69, 0.45);
    }
    55% {
        background-color: rgba(230, 138, 69, 0.18);
        box-shadow: 0 0 0 2px rgba(230, 138, 69, 0.22);
    }
    100% {
        background-color: transparent;
        box-shadow: 0 0 0 0 rgba(230, 138, 69, 0);
    }
}

.ml-community-comment-post-dialog__panel {
    position: relative;
    margin: 0 auto;
    max-height: min(92vh, 920px);
    display: flex;
    flex-direction: column;
    background: #fffefb;
    border-radius: 16px;
    border: 1px solid rgba(93, 64, 55, 0.14);
    box-shadow: 0 22px 56px rgba(25, 19, 15, 0.28);
    overflow: hidden;
}

.ml-community-toast.ml-community-toast--in-comment-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 6000;
    pointer-events: none;
}

.ml-community-comment-post-dialog__toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    padding: 0.35rem 0.45rem 0.35rem 0.55rem;
    border-bottom: 1px solid rgba(93, 64, 55, 0.1);
    background: rgba(255, 254, 251, 0.98);
}

.ml-community-comment-post-dialog__close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(93, 64, 55, 0.18);
    background: #fff;
    color: #3e2723;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ml-community-comment-post-dialog__close:hover {
    background: #faf7f2;
}

.ml-community-comment-post-dialog__close:focus-visible {
    outline: 2px solid var(--ml-accent, #c45c26);
    outline-offset: 2px;
}

.ml-community-comment-edit-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: clamp(0.5rem, 2vw, 1rem);
    border: none;
    background: transparent;
    box-sizing: border-box;
    z-index: 4600;
}

.ml-community-comment-edit-dialog:not([open]) {
    display: none !important;
}

.ml-community-comment-edit-dialog[open] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
}

.ml-community-comment-edit-dialog::backdrop {
    background: rgba(40, 28, 22, 0.42);
    backdrop-filter: blur(5px);
}

.ml-community-comment-edit-dialog__panel {
    position: relative;
    margin: 0 auto;
    width: min(100%, min(94vw, 760px));
    max-height: min(92vh, 920px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fffefb;
    border-radius: 16px;
    border: 1px solid rgba(93, 64, 55, 0.14);
    box-shadow: 0 22px 56px rgba(25, 19, 15, 0.28);
}

.ml-community-comment-edit-dialog__panel .ml-community-comment-form--edit-dialog {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.ml-community-comment-edit-dialog__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid rgba(93, 64, 55, 0.1);
    background: rgba(255, 254, 251, 0.98);
    flex-shrink: 0;
}

.ml-community-comment-edit-dialog__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 750;
    color: #3e2723;
}

.ml-community-comment-edit-dialog__close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(93, 64, 55, 0.18);
    background: #fff;
    color: #3e2723;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ml-community-comment-edit-dialog__close:hover {
    background: #faf7f2;
}

.ml-community-comment-edit-dialog__author-bar {
    padding: 0.35rem 0.85rem 0;
    flex-shrink: 0;
}

.ml-community-comment-edit-dialog__author-name {
    font-weight: 700;
    color: #4c3d32;
    font-size: 0.95rem;
}

.ml-community-comment-edit-dialog__composer {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem 1rem;
}

.ml-community-comment-edit-dialog__form-main {
    flex: 1;
    min-width: 0;
}

.ml-community-comment-form--edit-dialog .ml-community-comment-upload {
    margin-top: 0.45rem;
}

.ml-community-comment-form--edit-dialog .ml-community-comment-form__attach.is-active {
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.45);
    background: #eef6ff;
}

/* My / Saved / Following — custom confirm (replaces window.confirm) */
.ml-community-static-hidden-form {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ml-community-static-confirm-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100vw;
    /* Explicit height so flex/grid children centre vertically (some UAs size <dialog> to content only). */
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    padding: max(clamp(0.75rem, 3vw, 1.25rem), env(safe-area-inset-top, 0px))
        max(clamp(0.75rem, 3vw, 1.25rem), env(safe-area-inset-right, 0px))
        max(clamp(0.75rem, 3vw, 1.25rem), env(safe-area-inset-bottom, 0px))
        max(clamp(0.75rem, 3vw, 1.25rem), env(safe-area-inset-left, 0px));
    border: none;
    background: transparent;
    box-sizing: border-box;
    z-index: 5200;
}

.ml-community-static-confirm-dialog:not([open]) {
    display: none !important;
}

.ml-community-static-confirm-dialog[open] {
    display: grid;
    place-items: center;
    align-content: center;
}

.ml-community-static-confirm-dialog::backdrop {
    background: rgba(40, 28, 22, 0.45);
    backdrop-filter: blur(4px);
}

.ml-community-static-confirm-dialog__panel {
    width: min(100%, 420px);
    max-height: min(85dvh, calc(100vh - 2.5rem));
    margin: 0 auto;
    overflow: auto;
    padding: 1.15rem 1.2rem 1.2rem;
    background: #fffefb;
    border-radius: 16px;
    border: 1px solid rgba(93, 64, 55, 0.16);
    box-shadow: 0 22px 48px rgba(25, 19, 15, 0.26);
}

.ml-community-static-confirm-dialog__title {
    margin: 0 0 0.45rem;
    font-size: 1.18rem;
    font-weight: 750;
    font-family: Georgia, 'Times New Roman', serif;
    color: #3e2723;
}

.ml-community-static-confirm-dialog__message {
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #5d4a40;
}

.ml-community-static-confirm-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.ml-community-static-confirm-dialog__btn-cancel {
    border-radius: 999px;
}

.ml-community-static-confirm-dialog__btn-ok {
    border-radius: 999px;
}

.ml-community-comment-post-dialog__host {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.65rem 0.85rem;
}

.ml-community-comment-post-dialog__host .ml-community-post {
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}

body.ml-community-comment-dialog-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .ml-community-comment-post-dialog__panel {
        width: min(100%, 100vw - 1rem) !important;
        max-height: 94vh;
    }

    #mlCommunityCommentEditDialogPanel.ml-community-comment-edit-dialog__panel {
        width: min(100%, 100vw - 1rem) !important;
        max-height: 94vh;
    }
}

.ml-community-sidebar {
    border: 1px solid #eadfcb;
    border-radius: 12px;
    background: #fffefb;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-self: start;
    position: sticky;
    top: 0.8rem;
}

.ml-community-side-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ml-community-side-divider {
    border-top: 1px solid #e3d8c5;
    margin: 0.25rem 0;
}

.ml-community-side-link {
    display: block;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: #4c3d32;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
}

.ml-community-side-link__icon {
    width: 1.1rem;
    text-align: center;
    line-height: 1;
    font-size: 1rem;
}

.ml-community-side-link:hover,
.ml-community-side-link.is-active {
    background: #f6efe2;
    color: #2d261f;
}

.ml-community-main {
    min-width: 0;
}

.ml-community-my-posts h2 {
    margin: 0 0 0.55rem;
}

.ml-community-my-posts-list {
    display: grid;
    gap: 0.7rem;
}

.ml-community-following-user-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid #eadfcb;
    border-radius: 12px;
    background: #fff;
    padding: 0.75rem 0.8rem;
}

.ml-community-following-user-card__avatar {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #cfe3ef;
    flex-shrink: 0;
}

.ml-community-following-user-card__body {
    min-width: 0;
    flex: 1 1 auto;
}

.ml-community-following-user-card__body h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #2d261f;
}

.ml-community-following-user-card__meta {
    margin: 0.3rem 0 0;
    font-size: 0.86rem;
    color: #6b5f56;
    font-weight: 600;
}

.ml-community-following-user-card__view {
    flex: 0 0 auto;
    align-self: flex-start;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    margin-top: 2px;
}

.ml-community-my-post-card {
    border: 1px solid #eadfcb;
    border-radius: 12px;
    background: #fff;
    padding: 0.75rem 0.8rem;
}

.ml-community-my-post-card[data-ml-community-static-card='1'] {
    cursor: pointer;
}

.ml-community-my-post-card[data-ml-community-static-card='1']:focus-visible {
    outline: 2px solid var(--ml-accent, #c45c26);
    outline-offset: 3px;
}

.ml-community-my-post-card[data-ml-community-static-card='1'] form,
.ml-community-my-post-card[data-ml-community-static-card='1'] .ml-community-my-post-card__delete {
    cursor: pointer;
}

.ml-community-my-post-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
}

.ml-community-my-post-card__actions {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    flex-shrink: 0;
}

.ml-community-my-post-card__edit {
    border: 1px solid #c9b896;
    background: #fffdf8;
    color: #5c4d3a;
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.ml-community-my-post-card__edit:hover {
    background: #f7f2ea;
}

.ml-community-my-post-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.ml-community-my-post-card__meta {
    margin: 0.22rem 0 0;
    color: #7a664e;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.ml-community-my-post-card__excerpt {
    margin: 0.45rem 0 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #3d342a;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.ml-community-my-post-card__delete {
    border: 1px solid #dc7660;
    background: #fff5f2;
    color: #9b3826;
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.ml-community-my-post-card__delete:hover {
    background: #ffeae4;
}

/* Not sticky: sticky + high z-index caused WebKit compositor “ghost” pills over post text on some scroll positions. */
.ml-community-search-sticky {
    position: relative;
    top: auto;
    z-index: auto;
    background: var(--ml-bg);
    padding-bottom: 0.65rem;
    margin-bottom: 0;
    border: none;
    box-shadow: none;
}

.ml-community-search-row {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
}

.ml-community-search {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
    align-items: center;
    border: 2px solid #e7b15a;
    border-radius: 999px;
    background: #fff;
    padding: 0.2rem 0.55rem 0.2rem 0.35rem;
    margin-bottom: 0;
    box-shadow: 0 4px 16px rgba(62, 39, 35, 0.07);
    outline: none;
}

.ml-community-search:focus-within {
    outline: none;
}

.ml-community-search input[type="text"],
.ml-community-search input[type="search"] {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    padding: 0.62rem 0.2rem;
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 999px;
}

/* Legacy type="search": strip WebKit decorations (pill/cancel UI under the field). */
.ml-community-search input[type="search"]::-webkit-search-decoration,
.ml-community-search input[type="search"]::-webkit-search-cancel-button,
.ml-community-search input[type="search"]::-webkit-search-results-button,
.ml-community-search input[type="search"]::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

.ml-community-search__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2d261f;
    width: 2rem;
    min-width: 2rem;
    margin-left: 0.2rem;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 999px;
}

.ml-community-search__icon:hover {
    color: #000;
}

.ml-community-search__icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

/* Accent Post CTA beside search — high contrast on cream feed background */
.ml-community-post-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 1.1rem;
    min-height: 2.75rem;
    border-radius: 999px;
    border: 1px solid var(--ml-accent);
    background: var(--ml-accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(230, 138, 69, 0.28);
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.ml-community-post-btn:hover {
    background: var(--ml-accent-hover);
    border-color: var(--ml-accent-hover);
    color: #fff;
    box-shadow: 0 6px 18px rgba(214, 116, 46, 0.34);
    transform: translateY(-1px);
}

.ml-community-post-btn__icon {
    font-size: 0.95rem;
    line-height: 1;
}

.ml-community-search__submit {
    border: none;
    background: transparent;
    color: #2d261f;
    font-weight: 700;
    border-left: 1px solid #e5ddcf;
    padding: 0.55rem 0.85rem 0.55rem 0.95rem;
    margin-left: 0.35rem;
    cursor: pointer;
}

.ml-community-search__submit:hover {
    color: #000;
}

.ml-community-divider {
    border: none;
    border-top: 1px solid #d6c8ae;
    margin: 0.75rem 0 1rem;
}

.ml-community-post-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ml-community-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 1.25rem 0 2rem;
}

.ml-community-load-more-wrap[hidden] {
    display: none !important;
}

.ml-community-footer-extras {
    margin-top: 1.25rem;
    margin-bottom: 2rem;
}

/* Feed cards stay compact: composer + thread render only inside the comment dialog, not inline under each post */
#mlCommunityPosts > article.ml-community-post > form.ml-community-comment-form:not(.ml-community-comment-form--inline),
#mlCommunityPosts > article.ml-community-post > .ml-community-login-note,
#mlCommunityPosts > article.ml-community-post > .ml-community-comments {
    display: none !important;
}

/* My / Saved / Following lists use the same rule — otherwise composer + thread stay visible on each row after closing the popup */
.ml-community-my-posts-list > article.ml-community-post > form.ml-community-comment-form:not(.ml-community-comment-form--inline),
.ml-community-my-posts-list > article.ml-community-post > .ml-community-login-note,
.ml-community-my-posts-list > article.ml-community-post > .ml-community-comments {
    display: none !important;
}

.ml-community-post {
    border: 1px solid #eadfcb;
    border-radius: 12px;
    background: #fff;
    padding: 0.85rem 0.9rem;
}

.ml-community-post-head {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
}

.ml-community-author {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.ml-community-author img,
.ml-community-settings-logo img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 999px;
    border: 1px solid #e5dccd;
}

.ml-community-focus-chip {
    color: #6f5c48;
    font-size: 0.83rem;
}

.ml-community-post-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #7e6c59;
    font-size: 0.85rem;
}

.ml-community-author-line {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
}

.ml-community-author-time {
    color: #7e6c59;
    font-size: 0.82rem;
    font-weight: 600;
}

.ml-community-author-link {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 800;
    color: #2f241a;
    cursor: pointer;
    text-align: left;
}

.ml-community-author-link:hover {
    text-decoration: underline;
}

.ml-community-more {
    position: relative;
}

.ml-community-more summary {
    list-style: none;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid #e3e8ee;
    background: #eef1f5;
    color: #2d261f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    line-height: 1;
}

.ml-community-more summary::-webkit-details-marker {
    display: none;
}

.ml-community-more summary:focus-visible {
    outline: 2px solid var(--ml-accent);
    outline-offset: 2px;
}

.ml-community-more[open] summary {
    background: #e8edf3;
    border-color: #d6dde6;
}

.ml-community-more-menu {
    position: absolute;
    right: 0;
    top: 1.3rem;
    min-width: 140px;
    border: 1px solid #e1d4bc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(45, 38, 34, 0.12);
    padding: 0.35rem;
    z-index: 12;
}

.ml-community-more-menu a {
    display: block;
    text-decoration: none;
    color: #3b3026;
    padding: 0.35rem 0.45rem;
    border-radius: 6px;
}

.ml-community-more-menu a:hover {
    background: #f6efe2;
}

.ml-community-share {
    position: relative;
}

.ml-community-share__summary {
    list-style: none;
    border: 1px solid rgba(214, 116, 46, 0.55);
    background: #fffdfa;
    border-radius: 999px;
    cursor: pointer;
    padding: 0.34rem 0.78rem;
    font-size: 0.95rem;
    color: #c9773a;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.ml-community-share__summary::-webkit-details-marker {
    display: none;
}

.ml-community-share__summary:focus-visible {
    outline: 2px solid var(--ml-accent);
    outline-offset: 2px;
}

.ml-community-share-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 150px;
    border: 1px solid #e1d4bc;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(45, 38, 34, 0.13);
    padding: 0.35rem;
    z-index: 12;
}

.ml-community-share-copy {
    width: 100%;
    border: 0;
    background: transparent;
    color: #3b3026;
    text-align: left;
    padding: 0.4rem 0.45rem;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}

.ml-community-share-copy:hover {
    background: #f6efe2;
}

.ml-community-post h3 {
    margin: 0.5rem 0 0.35rem;
}

.ml-community-post p {
    margin: 0;
    white-space: pre-wrap;
}

.ml-community-actions {
    margin-top: 0.7rem;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.ml-community-vote-btn,
.ml-community-comment-btn,
.ml-community-share-btn {
    border: 1px solid rgba(214, 116, 46, 0.55);
    background: #fffdfa;
    border-radius: 999px;
    cursor: pointer;
    padding: 0.34rem 0.78rem;
    font-size: 0.95rem;
    color: #c9773a;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Align bar height: vote cluster is taller (26px icons); pin comment + share to the same min height. */
.ml-community-vote-cluster,
.ml-community-comment-btn,
.ml-community-share__summary {
    min-height: 2.55rem;
    box-sizing: border-box;
}

.ml-community-comment-btn {
    justify-content: center;
    min-width: 5.85rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.ml-community-vote-btn.is-active {
    border-color: #d6742e;
    background: #fff4e8;
    color: #b95f1f;
}

.ml-community-vote-cluster {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    border: 1px solid rgba(214, 116, 46, 0.55);
    border-radius: 999px;
    background: #fffdfa;
    color: #c9773a;
    padding: 0.2rem 0.42rem;
}

.ml-community-vote-btn--icon {
    border: 0;
    background: transparent;
    padding: 0.12rem;
    min-width: 26px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    color: #c9773a;
}

.ml-community-vote-cluster__count {
    min-width: 3rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    color: #6f5c48;
}

.ml-community-vote-btn--icon.is-active {
    background: #fff1e4;
    color: #b95f1f;
}

.ml-community-action-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

.ml-community-score {
    margin-left: auto;
    color: #6f5c48;
    font-size: 0.88rem;
}

.ml-community-comment-form {
    margin-top: 0.7rem;
    display: grid;
    gap: 0.45rem;
}

.ml-community-comment-form__row {
    display: flex;
    gap: 0;
    border: 1px solid #d9c8ae;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.ml-community-comment-form input {
    flex: 1;
    border: 0;
    outline: 0;
    min-height: 38px;
    padding: 0 0.85rem;
    background: transparent;
    font: inherit;
}

.ml-community-comment-form button:not(.ml-community-comment-upload__remove) {
    border: 0;
    border-left: 1px solid #d9c8ae;
    background: #f6efe2;
    color: #4b3c2f;
    border-radius: 0;
    width: 52px;
    min-width: 52px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ml-community-comment-form button:not(.ml-community-comment-upload__remove):hover {
    background: #efe4d2;
}

.ml-community-comment-form__file-input {
    display: none;
}

.ml-community-comment-form__attach {
    width: 46px;
    min-width: 46px;
}

.ml-community-comment-form__attach-icon {
    width: 18px;
    height: 18px;
    display: block;
    margin: 0 auto;
}

.ml-community-comment-form__send-icon {
    width: 18px;
    height: 18px;
    display: block;
    margin: 0 auto;
    transform: translateX(-1px);
}

.ml-community-comment-form__files {
    margin-left: 0.4rem;
    font-size: 0.78rem;
    color: #7a664e;
    white-space: nowrap;
}

.ml-community-comment-upload {
    margin-top: 0.55rem;
    border: 1px solid #e8dbc7;
    border-radius: 12px;
    background: #fffdf9;
    padding: 0.55rem 0.6rem;
}

.ml-community-comment-upload__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.ml-community-comment-upload__title {
    font-size: 0.83rem;
    font-weight: 700;
    color: #4f3f31;
}

.ml-community-comment-upload__count {
    font-size: 0.78rem;
    color: #7a664e;
    font-weight: 700;
}

.ml-community-comment-upload__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
}

.ml-community-comment-upload__slot {
    position: relative;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid #ecdfcc;
    background: #fff;
    aspect-ratio: 1 / 1;
}

.ml-community-comment-upload__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ml-community-comment-upload__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 1px solid rgba(43, 24, 16, 0.12);
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 250, 245, 0.96);
    color: #5d4037;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

.ml-community-comment-upload__remove:hover {
    background: #fff;
}

.ml-community-comment-upload__remove:focus-visible {
    outline: 2px solid var(--ml-accent, #c45c26);
    outline-offset: 2px;
}

.ml-community-comment-upload__hint {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.74rem;
    color: #7a664e;
}

.ml-community-comment-upload__add {
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-radius: 9px;
    border: 2px dashed #cec0ae;
    background: #fffdf7;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    padding: 0.35rem;
    color: #6d5a48;
    font: inherit;
    line-height: 1.1;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ml-community-comment-upload__add:hover {
    background: #faf6ee;
    border-color: #b8a995;
    color: #4f3f31;
}

.ml-community-comment-upload__add:focus-visible {
    outline: 2px solid var(--ml-accent, #c45c26);
    outline-offset: 2px;
}

.ml-community-comment-upload__add-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #8b7358;
}

.ml-community-comment-upload__add-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ml-community-comments {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    overflow-x: visible;
    position: relative;
}

.ml-community-thread-svg {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.ml-community-comment {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.ml-community-comment-avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #e5dccd;
    background: #f4f0ea;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.ml-community-comment-body {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.26rem;
    align-items: stretch;
}

.ml-community-comment-bubble {
    background: #f7f8fa;
    border: 1px solid #ece4d8;
    border-radius: 16px;
    padding: 0.52rem 0.7rem;
    min-width: 220px;
    flex: 0 0 auto;
    align-self: flex-start;
    max-width: 100%;
}

.ml-community-comment-head {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.ml-community-comment-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    margin-left: 0.2rem;
}

.ml-community-comment-tool {
    border: 1px solid #decdb4;
    background: #fffaf2;
    color: #6b4a24;
    border-radius: 999px;
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ml-community-comment-tool:hover {
    background: #fff0dd;
}

.ml-community-comment p {
    margin: 0.22rem 0 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ml-community-comment-gallery {
    margin-top: 0.45rem;
    display: block;
    clear: both;
}

.ml-community-comment-gallery__thumb {
    position: relative;
    display: block;
    border: 1px solid #ebddc9;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    cursor: pointer;
    width: 64px;
    height: 64px;
    overflow: hidden;
}

.ml-community-comment .ml-community-comment-gallery__more {
    position: absolute;
    right: 4px;
    bottom: 4px;
    min-width: 1.5rem;
    padding: 2px 5px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    pointer-events: none;
}

.ml-community-comment-gallery img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    border-radius: 0;
    border: none;
    display: block;
}

.ml-community-comment span {
    color: #8b7a66;
    font-size: 0.82rem;
}

.ml-community-comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.34rem;
    margin-left: 0.1rem;
    width: 100%;
    min-width: 0;
}

.ml-community-comment-inline-reply {
    margin-top: 0.5rem;
    min-width: 0;
    box-sizing: border-box;
    /* Rem fallback when composer lives under the owner; --ml-inline-reply-offset-px when docked to thread root. */
    --ml-inline-reply-indent-rem: 1;
    margin-left: var(--ml-inline-reply-offset-px, calc(var(--ml-inline-reply-indent-rem, 1) * 1rem));
    width: calc(100% - var(--ml-inline-reply-offset-px, calc(var(--ml-inline-reply-indent-rem, 1) * 1rem)));
    max-width: none;
}

.ml-community-comment-inline-reply__inner {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: flex-start;
    column-gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.ml-community-comment-inline-reply__avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #e5dccd;
    background: #f4f0ea;
    box-sizing: border-box;
}

.ml-community-comment-inline-reply__form-wrap {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.ml-community-comment-inline-reply__form-wrap > .ml-community-comment-form {
    width: 100%;
    min-width: 0;
}

/* Open-state styling only: thread guides come from .ml-community-thread-svg (avoid extra border + radius that drew arcs beside the avatar). */
.ml-community-comment-inline-reply:not([hidden]) {
    position: relative;
    z-index: 2;
    padding-left: 0;
    box-sizing: border-box;
}

.ml-community-comment-form--inline {
    margin: 0;
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
}

.ml-community-comment-form--inline .ml-community-comment-form__row {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
}

.ml-community-comment-form--inline .ml-community-comment-upload {
    margin-top: 0.45rem;
}

.ml-community-comment-time {
    color: #857363;
    font-size: 0.82rem;
    margin-left: 0.25rem;
    white-space: nowrap;
}

.ml-community-comment-action-vote,
.ml-community-comment-action-reply {
    border: none;
    background: transparent;
    color: #75604a;
    padding: 0;
    font-size: 0.96rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ml-community-comment-action-vote {
    width: 20px;
    height: 20px;
}

.ml-community-comment-action-vote.is-active {
    color: #ef8b2e;
}

.ml-community-comment .ml-community-comment-score {
    min-width: 12px;
    text-align: center;
    color: #7f6952;
    font-size: 0.84rem;
    font-weight: 700;
}

.ml-community-comment-action-reply {
    font-size: 0.98rem;
    font-weight: 700;
    margin-left: 0.24rem;
}

/* Thread connectors are drawn in JS (.ml-community-thread-svg) logo-to-logo */
.ml-community-comment-branch {
    display: none !important;
}

.ml-community-comment--depth-1,
.ml-community-comment--depth-2,
.ml-community-comment--depth-3,
.ml-community-comment--depth-4,
.ml-community-comment--depth-5,
.ml-community-comment--depth-6 {
    margin-top: 0.45rem;
}

.ml-community-comment--depth-1 { margin-left: 1rem; }
.ml-community-comment--depth-2 { margin-left: 2rem; }
.ml-community-comment--depth-3 { margin-left: 3rem; }
.ml-community-comment--depth-4 { margin-left: 4rem; }
.ml-community-comment--depth-5 { margin-left: 5rem; }
.ml-community-comment--depth-6 { margin-left: 6rem; }

.ml-community-comment-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3500;
    background: rgba(15, 12, 10, 0.86);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    box-sizing: border-box;
}

/*
 * Inside the native comment <dialog>, `position: fixed` can anchor oddly vs the top layer.
 * Fill the dialog box so backdrop + chrome stay aligned (avoids a stray × over in-feed photos).
 */
.ml-community-comment-lightbox.ml-community-comment-lightbox--on-comment-dialog {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    z-index: 500;
    padding: clamp(0.35rem, 2vw, 1rem);
}

/* Same as .ml-listing-lightbox[hidden]: author `display:flex` beats the HTML hidden attribute */
.ml-community-comment-lightbox[hidden] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.ml-community-comment-lightbox__panel {
    position: relative;
    z-index: 1;
    isolation: isolate;
    width: min(760px, 92vw);
    min-height: 300px;
    max-height: 86vh;
    border-radius: 16px;
    border: 1px solid #e8d9c4;
    background: #fff9f1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px 56px 56px;
}

.ml-community-comment-lightbox__img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 62vh;
    border-radius: 10px;
    border: 1px solid #ead9c5;
    object-fit: contain;
    background: #fff;
}

.ml-community-comment-lightbox__close {
    position: absolute;
    z-index: 50;
    top: 12px;
    right: 12px;
    border: none;
    background: #fff;
    color: #5a3f23;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    border: 1px solid #e9d8c2;
    pointer-events: auto;
}

.ml-community-comment-lightbox__arrow {
    position: absolute;
    z-index: 25;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid #e9d8c2;
    background: #fff;
    color: #8f5f2d;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.ml-community-comment-lightbox__arrow--prev { left: 10px; }
.ml-community-comment-lightbox__arrow--next { right: 10px; }

.ml-community-comment-lightbox__pos {
    position: absolute;
    z-index: 22;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: #6f5235;
    font-weight: 700;
    font-size: 0.9rem;
}

body.ml-no-scroll {
    overflow: hidden;
}

.ml-community-settings-logo {
    margin: 0.3rem 0 0.7rem;
}

.ml-community-settings-logo img {
    width: 56px;
    height: 56px;
}

.ml-community-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 21000;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(230, 138, 69, 0.35);
    background: #fffdf9;
    color: #3e2723;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(25, 19, 15, 0.22);
    opacity: 1;
    transition: opacity 0.2s ease;
}

.ml-community-toast--hide {
    opacity: 0;
}

/* Community settings — logo next to label; single square grid cell = perfect circle */
.ml-community-settings-logo-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.ml-community-settings-logo-toolbar__text {
    flex: 0 0 auto;
    min-width: 6rem;
}

.ml-community-settings-logo-toolbar__preview {
    flex: 0 0 auto;
    position: relative;
    overflow: visible;
    padding: 6px;
    margin: -6px;
}

.ml-community-settings-form .ml-community-settings-logo-grid {
    --ml-community-logo-size: min(240px, 78vw);
    display: grid;
    grid-template-columns: var(--ml-community-logo-size);
    grid-auto-rows: var(--ml-community-logo-size);
    width: var(--ml-community-logo-size);
    max-width: var(--ml-community-logo-size);
    margin: 0;
    gap: 0;
    align-items: stretch;
    justify-items: stretch;
}

.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot--photo,
.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot--add {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    max-width: none;
    margin: 0;
}

/* Photo clips on __inner; slot stays overflow visible so edit/delete aren’t cut off at the circle (same idea as .ml-store-preview-logo-corner). */
.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot--photo {
    overflow: visible;
}

.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot--main {
    border-radius: 50%;
}

.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot__inner {
    border-radius: 50%;
    overflow: hidden;
    z-index: 0;
}

/* Edit/remove/badge sit on the slot (see ml_listing_photo_grid clipLogoChrome), above the circular image layer */
.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot__chrome-bar,
.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot__remove,
.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot__edit-details,
.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot--photo > .ml-lpg-slot__edit {
    z-index: 5;
}

.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot__main-badge {
    z-index: 4;
}

/* One flex row: edit (left) and delete (right) share the same vertical center — matches edit pill baseline */
.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot__chrome-bar {
    position: absolute;
    left: 4px;
    right: 4px;
    top: 4px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    min-height: 34px;
    pointer-events: none;
}

.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot__chrome-bar > * {
    pointer-events: auto;
    flex-shrink: 0;
}

.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot__chrome-bar .ml-lpg-slot__edit-details {
    position: static;
    top: auto;
    left: auto;
    margin: 0;
    padding: 0;
    border: 0;
    height: auto;
    min-height: 0;
    display: block;
    overflow: visible;
}

.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot__chrome-bar .ml-lpg-slot__edit {
    position: static;
    top: auto;
    left: auto;
}

.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot__chrome-bar .ml-lpg-slot__remove {
    position: static;
    top: auto;
    right: auto;
    opacity: 1;
    margin: 0;
    border: 1px solid rgba(198, 40, 40, 0.45);
    background: #fff;
    color: #c62828;
}

.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot__chrome-bar .ml-lpg-slot__remove:hover {
    background: #fff;
    color: #b71c1c;
}

.ml-community-settings-form .ml-community-settings-logo-grid .ml-lpg-slot__chrome-bar .ml-lpg-slot__remove:focus-visible {
    outline-color: #c62828;
}

/* Community logo — adjust editor (mirrors shop preview “Adjust logo”) */
.ml-community-logo-editor {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 1.5rem);
}

.ml-community-logo-editor[hidden] {
    display: none !important;
}

.ml-community-logo-editor__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 14, 11, 0.55);
    backdrop-filter: blur(6px);
}

.ml-community-logo-editor__shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: min(920px, 100%);
    padding: 1.25rem;
    border-radius: 18px;
    background: #fffdf9;
    border: 1px solid rgba(62, 39, 35, 0.12);
    box-shadow: 0 22px 48px rgba(25, 19, 15, 0.28);
}

.ml-community-logo-editor__stage {
    flex: 0 0 auto;
}

.ml-community-logo-editor__disk {
    width: min(280px, 72vw);
    height: min(280px, 72vw);
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid rgba(62, 39, 35, 0.12);
    box-shadow: inset 0 0 0 1px rgba(62, 39, 35, 0.06);
    background-repeat: no-repeat;
}

.ml-community-logo-editor__panel {
    flex: 1 1 260px;
    min-width: min(100%, 280px);
}

.ml-community-logo-editor__panel h3 {
    font-family: var(--ml-font-display);
    font-size: 1.35rem;
    margin: 0 0 0.35rem;
    color: var(--ml-ink);
}

.ml-community-logo-editor__hint {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--ml-ink-muted);
    line-height: 1.45;
}

.ml-community-logo-editor__fieldset {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(62, 39, 35, 0.14);
    background: rgba(255, 250, 245, 0.65);
}

.ml-community-logo-editor__fieldset legend {
    padding: 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--ml-ink-muted);
}

.ml-community-logo-editor__slider {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.65rem;
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--ml-ink);
}

.ml-community-logo-editor__slider input[type="range"] {
    width: 100%;
}

.ml-community-logo-editor__done {
    width: 100%;
}

/* Sell / edit listing — per-photo adjust modal */
.ml-listing-photo-editor {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 1.5rem);
}

.ml-listing-photo-editor[hidden] {
    display: none !important;
}

.ml-listing-photo-editor__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 14, 11, 0.55);
    backdrop-filter: blur(6px);
}

.ml-listing-photo-editor__shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: min(920px, 100%);
    padding: 1.25rem;
    border-radius: 18px;
    background: #fffdf9;
    border: 1px solid rgba(62, 39, 35, 0.12);
    box-shadow: 0 22px 48px rgba(25, 19, 15, 0.28);
}

.ml-listing-photo-editor__stage {
    flex: 1 1 320px;
    min-width: min(100%, 280px);
}

.ml-listing-photo-editor__frame {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(62, 39, 35, 0.14);
    background: #f5f2ef;
    box-shadow: inset 0 0 0 1px rgba(62, 39, 35, 0.06);
}

.ml-listing-photo-editor__frame--main {
    aspect-ratio: 4 / 3;
}

.ml-listing-photo-editor__frame--thumb {
    aspect-ratio: 1 / 1;
    max-width: 360px;
}

.ml-listing-photo-editor__canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.ml-listing-photo-editor__panel {
    flex: 1 1 260px;
    min-width: min(100%, 280px);
}

.ml-listing-photo-editor__panel h3 {
    font-family: var(--ml-font-display);
    font-size: 1.35rem;
    margin: 0 0 0.35rem;
    color: var(--ml-ink);
}

.ml-listing-photo-editor__hint {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--ml-ink-muted);
    line-height: 1.45;
}

.ml-listing-photo-editor__fieldset {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(62, 39, 35, 0.14);
    background: rgba(255, 250, 245, 0.65);
}

.ml-listing-photo-editor__fieldset legend {
    padding: 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--ml-ink-muted);
}

.ml-listing-photo-editor__slider {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.65rem;
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--ml-ink);
}

.ml-listing-photo-editor__slider input[type='range'] {
    width: 100%;
}

.ml-listing-photo-editor__done {
    width: 100%;
}

@media (max-width: 720px) {
    .ml-listing-photo-editor__shell {
        flex-direction: column;
    }
}

.ml-community-user-popover {
    position: fixed;
    z-index: 1400;
    width: min(360px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
}

.ml-community-user-popover.ml-community-user-popover--on-comment-dialog {
    z-index: 60;
}

.ml-community-user-popover[hidden] {
    display: none !important;
}

.ml-community-user-card {
    padding: 0.85rem 0.9rem;
    background: #fbfeff;
    border: 1px solid #dbe6ec;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(25, 19, 15, 0.2);
}

.ml-community-user-card--compact {
    max-height: min(70vh, 560px);
    overflow: auto;
}

.ml-community-user-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.55rem;
}

.ml-community-user-top__lead {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
}

.ml-community-user-top__lead > img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #cfe3ef;
    flex-shrink: 0;
}

.ml-community-user-follow-btn {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 0.38rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 999px;
    white-space: nowrap;
    margin-top: 2px;
}

.ml-community-user-follow-btn[hidden] {
    display: none !important;
}

.ml-community-user-top__meta h3 {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1;
}

.ml-community-user-top__meta p {
    margin: 0.25rem 0 0;
    color: #4e7a8f;
    font-weight: 700;
    font-size: 0.95rem;
}

.ml-community-user-card hr {
    border: 0;
    border-top: 1px solid #dfe8ed;
    margin: 0.9rem 0;
}

.ml-community-user-card h4 {
    margin: 0 0 0.42rem;
    font-size: 0.95rem;
}

.ml-community-user-stores {
    display: grid;
    gap: 0.45rem;
}

.ml-community-user-store {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #2d261f;
    text-decoration: none;
    width: fit-content;
}

.ml-community-user-store img {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #cfe3ef;
}

.ml-community-user-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}

/* .ml-btn sets display:inline-flex and overrides the UA [hidden] hint in some browsers */
#mlCommunityUserMessageBtn[hidden],
#mlCommunityUserMessageBtn.ml-community-user-message--hidden {
    display: none !important;
}

.ml-community-post-dialog {
    border: none;
    border-radius: 16px;
    width: min(960px, calc(100vw - 1.5rem));
    max-height: 92vh;
    margin: auto;
    inset: 0;
    overflow: auto;
    padding: 0;
    box-shadow: 0 18px 44px rgba(25, 19, 15, 0.3);
}

.ml-community-post-dialog::backdrop {
    background: rgba(25, 19, 15, 0.45);
}

.ml-community-post-dialog .ml-community-create-post {
    margin: 0;
    border-radius: 16px;
    display: grid;
    gap: 0.8rem;
    padding: 1.15rem 1.2rem;
}

.ml-community-create-post h2 {
    margin: 0;
}

.ml-community-create-post .ml-field {
    margin: 0;
}

.ml-community-create-post .ml-field-label {
    font-weight: 700;
}

.ml-community-create-post input[type="text"],
.ml-community-create-post input[name="title"],
.ml-community-create-post select,
.ml-community-create-post textarea {
    width: 100%;
    border: 1px solid #e5d6c2;
    border-radius: 12px;
    padding: 0.72rem 0.85rem;
    font: inherit;
    background: #fff;
}

.ml-community-create-post textarea {
    min-height: 160px;
    resize: vertical;
}

.ml-community-create-post input[type="file"] {
    width: 100%;
    border: 1px dashed #d8c7b3;
    border-radius: 12px;
    padding: 0.6rem 0.7rem;
    background: #fffdf8;
}

.ml-community-post-gallery {
    margin-top: 0.7rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.45rem;
}

.ml-community-post-gallery__thumb {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 1px solid #eadfcb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.ml-community-post-gallery__thumb:focus-visible {
    outline: 3px solid var(--ml-accent);
    outline-offset: 2px;
}

.ml-community-post-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 0;
    border: none;
    display: block;
    vertical-align: middle;
}

.ml-community-post-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

@media (max-width: 900px) {
    .ml-community-page {
        grid-template-columns: 1fr;
    }
    .ml-community-sidebar {
        position: static;
    }

    .ml-community-fab {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        padding: 10px 14px;
        font-size: 13px;
    }

    .ml-sticky-top-filters,
    .ml-sticky-find-pet-controls {
        --ml-sticky-filters-top: 0;
        --ml-sticky-filter-strip-top: 82px;
    }
}

/* —— In-app notifications (notifications.php) —— */
.ml-notifications-mark-all {
    margin: 0 0 0.75rem;
}

.ml-notifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ml-notifications-list__item {
    border: 1.5px solid #1a1410;
    border-radius: 10px;
    background: #fff;
}

.ml-notifications-list__item--unread {
    border-color: var(--ml-accent, #e68a45);
    box-shadow: 0 0 0 1px rgba(230, 138, 69, 0.25);
}

.ml-notifications-list__link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    padding: 0.65rem 0.75rem;
    text-decoration: none;
    color: #2d261f;
    font-weight: 650;
}

.ml-notifications-list__link:hover {
    background: #fdf9f3;
}

.ml-notifications-list__text {
    flex: 1 1 14rem;
}

.ml-notifications-list__meta {
    font-size: 0.82rem;
    font-weight: 600;
    color: #7a6e66;
}

/* Admin Control Center */
.ml-admin-head {
    padding-bottom: 0.6rem;
    margin-top: 1rem;
}

.ml-admin-kicker {
    margin: 0 0 0.25rem;
    color: var(--ml-accent-hover, #d6742e);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ml-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.ml-admin-stat {
    border: 1px solid rgba(230, 138, 69, 0.22);
    border-radius: 16px;
    padding: 1rem;
    background: linear-gradient(180deg, #fffaf5 0%, #fff2e7 100%);
    box-shadow: 0 8px 22px rgba(62, 39, 35, 0.06);
}

.ml-admin-stat strong {
    display: block;
    color: var(--ml-ink, #3e2723);
    font-size: 1.7rem;
    line-height: 1;
}

.ml-admin-stat span {
    display: block;
    margin-top: 0.35rem;
    color: var(--ml-ink-muted, #6d4c41);
    font-weight: 800;
}

.ml-admin-section {
    margin-bottom: 1.35rem;
}

.ml-admin-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.ml-admin-section__head h2 {
    margin: 0;
}

.ml-admin-section__head p {
    margin: 0;
    color: var(--ml-ink-muted, #6d4c41);
    font-weight: 700;
}

.ml-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 0.8rem;
}

.ml-admin-card {
    position: relative;
    display: block;
    min-height: 175px;
    padding: 1rem;
    border: 1px solid rgba(62, 39, 35, 0.12);
    border-radius: 18px;
    background: #fffaf5;
    color: var(--ml-ink, #3e2723);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(62, 39, 35, 0.06);
}

.ml-admin-card--active {
    border-color: rgba(230, 138, 69, 0.34);
}

.ml-admin-card--active:hover {
    transform: translateY(-1px);
    border-color: rgba(230, 138, 69, 0.72);
    box-shadow: 0 14px 32px rgba(62, 39, 35, 0.11);
}

.ml-admin-card--planned {
    background: linear-gradient(180deg, #fffaf5 0%, #fbf4ed 100%);
}

.ml-admin-card__status {
    display: inline-flex;
    margin-bottom: 0.75rem;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    background: var(--ml-accent-soft, #fff0e6);
    color: var(--ml-accent-hover, #d6742e);
    font-size: 0.78rem;
    font-weight: 900;
}

.ml-admin-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.08rem;
}

.ml-admin-card p {
    margin: 0;
    color: var(--ml-ink-muted, #6d4c41);
    line-height: 1.45;
}

.ml-admin-flash {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 650;
}

.ml-admin-flash--ok {
    background: #e8f5e9;
    color: #1b5e20;
}

.ml-admin-flash--err {
    background: #fdecea;
    color: #8a1c1c;
}

.ml-admin-donate-queue {
    margin-top: 0.5rem;
}

.ml-admin-donate-card__inner {
    cursor: default;
    text-decoration: none;
    color: inherit;
}

.ml-admin-donate-card__shop {
    margin: 0.55rem 0 0;
    font-size: 0.88rem;
}

.ml-admin-donate-card__shop a {
    color: var(--ml-accent);
    font-weight: 700;
    text-decoration: none;
}

.ml-admin-donate-card__shop a:hover,
.ml-admin-donate-card__shop a:focus-visible {
    text-decoration: underline;
}

.ml-admin-donate-card__form {
    width: 100%;
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.ml-admin-donate-card__label {
    font-size: 0.78rem;
    font-weight: 750;
    color: var(--ml-ink-muted);
}

.ml-admin-donate-card__input {
    width: 100%;
    min-height: 2.4rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(62, 39, 35, 0.16);
    border-radius: 10px;
    background: #fff;
    font-size: 0.9rem;
}

.ml-admin-donate-card__btn {
    width: 100%;
    margin-top: 0.15rem;
}

.ml-admin-card small {
    display: block;
    margin-top: 0.7rem;
    color: #88776d;
    font-weight: 800;
}

.ml-admin-roadmap {
    margin: 0;
    padding: 1rem 1rem 1rem 2rem;
    border: 1px solid rgba(62, 39, 35, 0.12);
    border-radius: 18px;
    background: #fffaf5;
    box-shadow: 0 10px 24px rgba(62, 39, 35, 0.06);
}

.ml-admin-roadmap li + li {
    margin-top: 0.55rem;
}

.ml-admin-feedback-list {
    display: grid;
    gap: 0.8rem;
}

.ml-admin-feedback-card {
    border: 1px solid rgba(62, 39, 35, 0.12);
    border-radius: 18px;
    padding: 1rem;
    background: #fffaf5;
    box-shadow: 0 10px 24px rgba(62, 39, 35, 0.06);
}

.ml-admin-feedback-card__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ml-admin-feedback-card__head strong,
.ml-admin-feedback-card__head span,
.ml-admin-feedback-card__head small {
    display: block;
}

.ml-admin-feedback-card__head span,
.ml-admin-feedback-card__head small {
    color: var(--ml-ink-muted, #6d4c41);
    font-weight: 700;
}

.ml-admin-feedback-card__meta,
.ml-admin-feedback-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.ml-admin-feedback-card__meta span {
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    background: var(--ml-accent-soft, #fff0e6);
    color: var(--ml-accent-hover, #d6742e);
    font-size: 0.82rem;
    font-weight: 850;
}

.ml-admin-feedback-card__message {
    margin: 0.75rem 0 0;
    line-height: 1.5;
}

.ml-admin-feedback-card__actions a {
    color: var(--ml-accent-hover, #d6742e);
    font-weight: 850;
}

.ml-admin-newsletter-send label {
    display: block;
    margin: 0 0 0.9rem;
    font-weight: 700;
}

.ml-admin-newsletter-send input[type="text"],
.ml-admin-newsletter-send textarea {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    font-weight: 500;
}

.ml-admin-newsletter-confirm {
    display: flex !important;
    align-items: flex-start;
    gap: 0.55rem;
    font-weight: 600 !important;
    line-height: 1.4;
}

.ml-admin-newsletter-confirm input {
    margin-top: 0.2rem;
}

.ml-admin-newsletter-filters {
    margin-bottom: 1rem;
}

.ml-admin-newsletter-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ml-header-border);
    border-radius: 12px;
    background: #fff;
}

.ml-admin-newsletter-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.ml-admin-newsletter-table th,
.ml-admin-newsletter-table td {
    padding: 0.7rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(62, 39, 35, 0.08);
    vertical-align: middle;
}

.ml-admin-newsletter-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ml-ink-muted);
    background: rgba(62, 39, 35, 0.03);
}

.ml-admin-newsletter-inline {
    display: inline;
    margin: 0;
}

.ml-admin-newsletter-inline .btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
}

.ml-admin-listing-filters {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(220px, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
    border: 1px solid rgba(62, 39, 35, 0.12);
    border-radius: 18px;
    padding: 1rem;
    background: #fffaf5;
    box-shadow: 0 10px 24px rgba(62, 39, 35, 0.06);
}

.ml-admin-listing-filters label {
    display: grid;
    gap: 0.32rem;
    color: var(--ml-ink, #3e2723);
    font-weight: 850;
}

.ml-admin-listing-filters select,
.ml-admin-listing-filters input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(62, 39, 35, 0.18);
    border-radius: 12px;
    padding: 0.7rem 0.78rem;
    background: #fff;
    color: var(--ml-ink, #3e2723);
    font: inherit;
}

.ml-admin-listing-list {
    display: grid;
    gap: 0.85rem;
}

.ml-admin-listing-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    border: 1px solid rgba(62, 39, 35, 0.12);
    border-radius: 18px;
    padding: 1rem;
    background: #fffaf5;
    box-shadow: 0 10px 24px rgba(62, 39, 35, 0.06);
}

.ml-admin-listing-card__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.ml-admin-listing-card h3 {
    margin: 0;
    font-size: 1.08rem;
}

.ml-admin-listing-card__visibility {
    display: inline-flex;
    flex-shrink: 0;
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 900;
}

.ml-admin-listing-card__visibility.is-visible {
    background: #dcfce7;
    color: #166534;
}

.ml-admin-listing-card__visibility.is-hidden {
    background: #fee2e2;
    color: #991b1b;
}

.ml-admin-listing-card__meta,
.ml-admin-listing-card__seller,
.ml-admin-listing-card__desc {
    margin: 0.45rem 0 0;
    color: var(--ml-ink-muted, #6d4c41);
    line-height: 1.45;
}

.ml-admin-listing-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.ml-admin-listing-card__badges span {
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    background: var(--ml-accent-soft, #fff0e6);
    color: var(--ml-accent-hover, #d6742e);
    font-size: 0.78rem;
    font-weight: 850;
}

.ml-admin-listing-card__badges span.is-warning {
    background: #fef3c7;
    color: #92400e;
}

.ml-admin-listing-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.42rem;
    max-width: 320px;
}

.ml-admin-listing-card__actions form {
    margin: 0;
}

.ml-admin-listing-card__actions .ml-btn {
    min-height: 38px;
    padding: 0.48rem 0.82rem;
    font-size: 0.88rem;
}

.ml-admin-danger-link {
    border-color: rgba(185, 28, 28, 0.35) !important;
    color: #991b1b !important;
}

.ml-admin-delete-btn {
    border-color: #991b1b !important;
    background: #991b1b !important;
    color: #fff !important;
}

.ml-admin-delete-btn:hover,
.ml-admin-delete-btn:focus-visible {
    background: #7f1d1d !important;
    border-color: #7f1d1d !important;
    color: #fff !important;
}

@media (max-width: 720px) {
    .ml-admin-section__head {
        display: block;
    }
    .ml-admin-section__head p {
        margin-top: 0.25rem;
    }

    .ml-admin-listing-filters,
    .ml-admin-listing-card {
        grid-template-columns: 1fr;
    }

    .ml-admin-listing-card__actions {
        justify-content: flex-start;
        max-width: none;
    }
}

/* Site announcement bar */
.ml-site-announcement {
    border-bottom: 1px solid rgba(62, 39, 35, 0.12);
    font-size: 0.92rem;
}

.ml-site-announcement__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding: 0.55rem 0;
}

.ml-site-announcement__message {
    margin: 0;
    font-weight: 600;
}

.ml-site-announcement__link {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.ml-site-announcement--info {
    background: #e8f4fc;
    color: #0c4a6e;
}

.ml-site-announcement--info .ml-site-announcement__link {
    color: #075985;
}

.ml-site-announcement--promo {
    background: #fff4e6;
    color: #7c2d12;
}

.ml-site-announcement--promo .ml-site-announcement__link {
    color: #9a3412;
}

.ml-site-announcement--warning {
    background: #fef3c7;
    color: #78350f;
}

.ml-site-announcement--warning .ml-site-announcement__link {
    color: #92400e;
}

/* Admin homepage editor */
.ml-admin-homepage-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.ml-admin-homepage-form__full {
    grid-column: 1 / -1;
}

.ml-admin-homepage-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.ml-admin-homepage-form input[type="text"],
.ml-admin-homepage-form input[type="number"],
.ml-admin-homepage-form input[type="datetime-local"],
.ml-admin-homepage-form textarea,
.ml-admin-homepage-form select {
    font-weight: 400;
}

@media (max-width: 720px) {
    .ml-admin-homepage-form__grid {
        grid-template-columns: 1fr;
    }
}

.ml-admin-homepage-image-field {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.65rem;
}

.ml-admin-homepage-preview {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(62, 39, 35, 0.15);
    background: #f5ebe3;
}

.ml-admin-homepage-preview--card {
    max-width: 120px;
    flex-shrink: 0;
}

.ml-admin-moderation-card--with-thumb {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.ml-admin-moderation-card--with-thumb .ml-admin-moderation-card__content {
    flex: 1;
    min-width: 0;
}

.ml-admin-homepage-links {
    border-top: 1px solid rgba(62, 39, 35, 0.1);
    padding-top: 1.25rem;
}

/* Site-wide feedback popup */
.ml-site-feedback-dialog {
    border: 0;
    border-radius: 22px;
    width: min(520px, calc(100vw - 1.5rem));
    padding: 0;
    margin: auto;
    color: var(--ml-ink, #3e2723);
    background: #fffaf5;
    box-shadow: 0 22px 55px rgba(35, 24, 18, 0.28);
}

.ml-site-feedback-dialog::backdrop {
    background: rgba(28, 19, 14, 0.35);
}

.ml-site-feedback-dialog__inner {
    padding: 1.2rem;
}

.ml-site-feedback-dialog__head {
    position: relative;
    padding-right: 2.3rem;
}

.ml-site-feedback-dialog__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ml-accent-hover, #d6742e);
}

.ml-site-feedback-dialog__title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.ml-site-feedback-dialog__close {
    position: absolute;
    top: -0.35rem;
    right: -0.3rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(62, 39, 35, 0.08);
    color: var(--ml-ink, #3e2723);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.ml-site-feedback-dialog__copy {
    margin: 0.65rem 0 1rem;
    color: var(--ml-ink-muted, #6d4c41);
    line-height: 1.45;
}

.ml-site-feedback-dialog__form {
    display: grid;
    gap: 0.6rem;
}

.ml-site-feedback-dialog__label {
    font-weight: 800;
    font-size: 0.9rem;
}

.ml-site-feedback-dialog__textarea,
.ml-site-feedback-dialog__select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(62, 39, 35, 0.18);
    border-radius: 14px;
    padding: 0.78rem 0.85rem;
    background: #fff;
    color: var(--ml-ink, #3e2723);
    font: inherit;
}

.ml-site-feedback-dialog__textarea {
    min-height: 120px;
    resize: vertical;
}

.ml-site-feedback-dialog__textarea:focus,
.ml-site-feedback-dialog__select:focus {
    outline: none;
    border-color: rgba(230, 138, 69, 0.6);
    box-shadow: 0 0 0 3px var(--ml-accent-soft, #fff0e6);
}

.ml-site-feedback-dialog__website {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ml-site-feedback-dialog__status {
    min-height: 1.2rem;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.ml-site-feedback-dialog__status.is-error {
    color: #a33b1f;
}

.ml-site-feedback-dialog__status.is-success {
    color: #16704a;
}

.ml-site-feedback-dialog__foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.ml-site-feedback-dialog__send:disabled {
    cursor: wait;
    opacity: 0.7;
}

.ml-site-feedback-trigger {
    position: fixed;
    left: max(16px, env(safe-area-inset-left, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 900;
    border: 1px solid rgba(230, 138, 69, 0.5);
    border-radius: 999px;
    padding: 0.68rem 1rem;
    background: linear-gradient(165deg, var(--ml-accent, #e68a45) 0%, var(--ml-accent-hover, #d6742e) 100%);
    color: #fffaf5;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(62, 39, 35, 0.18);
    cursor: pointer;
}

.ml-site-feedback-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(62, 39, 35, 0.22);
}

.ml-site-feedback-trigger:focus-visible {
    outline: 3px solid rgba(230, 138, 69, 0.35);
    outline-offset: 3px;
}

@media (max-width: 560px) {
    .ml-site-feedback-trigger {
        left: max(10px, env(safe-area-inset-left, 0px));
        bottom: max(10px, env(safe-area-inset-bottom, 0px));
        padding: 0.55rem 0.78rem;
        font-size: 0.82rem;
    }

    .ml-site-feedback-dialog__foot .ml-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

.ml-admin-moderation-list {
    display: grid;
    gap: 0.8rem;
}

.ml-admin-moderation-card {
    border: 1px solid rgba(62, 39, 35, 0.12);
    border-radius: 18px;
    padding: 1rem;
    background: #fffaf5;
    box-shadow: 0 10px 24px rgba(62, 39, 35, 0.06);
}

.ml-admin-moderation-card__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ml-admin-moderation-card__head strong,
.ml-admin-moderation-card__head span,
.ml-admin-moderation-card__head small {
    display: block;
}

.ml-admin-moderation-card__head span,
.ml-admin-moderation-card__head small {
    color: var(--ml-ink-muted, #6d4c41);
    font-weight: 700;
}

.ml-admin-moderation-card__meta,
.ml-admin-moderation-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.ml-admin-moderation-card__meta span {
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    background: var(--ml-accent-soft, #fff0e6);
    color: var(--ml-accent-hover, #d6742e);
    font-size: 0.82rem;
    font-weight: 850;
}

.ml-admin-moderation-card__meta span.is-warning {
    background: #fef3c7;
    color: #92400e;
}

.ml-admin-moderation-card__meta span.is-ok {
    background: #dcfce7;
    color: #166534;
}

.ml-admin-moderation-card__body,
.ml-admin-moderation-card__notes {
    margin: 0.75rem 0 0;
    line-height: 1.5;
}

.ml-admin-moderation-card__actions form {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.ml-admin-moderation-card__actions input[type="text"] {
    min-width: 160px;
    border: 1px solid rgba(62, 39, 35, 0.18);
    border-radius: 10px;
    padding: 0.45rem 0.6rem;
    font: inherit;
}

.ml-admin-scan-form {
    margin-top: 0.85rem;
    border: 1px solid rgba(62, 39, 35, 0.12);
    border-radius: 18px;
    padding: 1rem;
    background: #fffaf5;
}

.ml-admin-scan-form p {
    margin: 0 0 0.65rem;
    color: var(--ml-ink-muted, #6d4c41);
}

.ml-report-btn {
    border: 1px solid rgba(62, 39, 35, 0.18);
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    background: #fff;
    color: var(--ml-ink, #3e2723);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.ml-report-btn:hover {
    border-color: rgba(230, 138, 69, 0.55);
    color: var(--ml-accent-hover, #d6742e);
}

.ml-report-dialog {
    border: none;
    border-radius: 18px;
    padding: 0;
    max-width: min(480px, calc(100vw - 2rem));
    box-shadow: 0 18px 48px rgba(62, 39, 35, 0.22);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ml-report-dialog::backdrop {
    background: rgba(62, 39, 35, 0.45);
}

.ml-report-dialog__form {
    padding: 1.1rem 1.15rem 1.15rem;
}

.ml-report-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ml-report-dialog__head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.ml-report-dialog__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ml-ink-muted, #6d4c41);
}

.ml-report-dialog__intro {
    margin: 0.55rem 0 0.85rem;
    color: var(--ml-ink-muted, #6d4c41);
    line-height: 1.45;
}

.ml-report-dialog__form label {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    font-weight: 750;
}

.ml-report-dialog__form select,
.ml-report-dialog__form textarea {
    font: inherit;
    border: 1px solid rgba(62, 39, 35, 0.18);
    border-radius: 12px;
    padding: 0.55rem 0.65rem;
}

.ml-report-dialog__status {
    min-height: 1.2rem;
    margin: 0.25rem 0 0.65rem;
    font-size: 0.9rem;
    font-weight: 750;
}

.ml-report-dialog__status.is-ok {
    color: #166534;
}

.ml-report-dialog__status.is-error {
    color: #991b1b;
}

.ml-report-dialog__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Explicit viewport centering for renew success (dialog engines vary slightly). */
.ml-report-dialog.ml-renew-success-dialog {
    margin: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ml-renew-success-dialog .ml-report-dialog__intro {
    text-align: center;
    margin-bottom: 1rem;
}

.ml-renew-success-dialog__actions {
    justify-content: center;
}

.ml-renew-success-dialog .ml-report-dialog__head {
    justify-content: center;
    position: relative;
}

.ml-renew-success-dialog .ml-report-dialog__head h2 {
    flex: 1;
    text-align: center;
}

.ml-renew-success-dialog .ml-report-dialog__close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.ml-community-locked-note {
    margin: 0.65rem 0 0;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.9rem;
    font-weight: 750;
}

.ml-admin-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.ml-admin-tab {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(62, 39, 35, 0.14);
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    background: #fff;
    color: var(--ml-ink, #3e2723);
    font-weight: 800;
    text-decoration: none;
}

.ml-admin-tab.is-active {
    border-color: rgba(230, 138, 69, 0.55);
    background: var(--ml-accent-soft, #fff0e6);
    color: var(--ml-accent-hover, #d6742e);
}

.ml-admin-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.ml-admin-analytics-card {
    border: 1px solid rgba(62, 39, 35, 0.12);
    border-radius: 18px;
    padding: 1rem;
    background: #fffaf5;
    box-shadow: 0 10px 24px rgba(62, 39, 35, 0.06);
}

.ml-admin-analytics-card h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
}

.ml-admin-analytics-card__value {
    margin: 0 0 0.45rem;
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1.1;
}

.ml-admin-analytics-card a {
    color: var(--ml-accent-hover, #d6742e);
    font-weight: 850;
}

.ml-admin-analytics-bars {
    display: grid;
    gap: 0.55rem;
}

.ml-admin-analytics-bar {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr auto;
    gap: 0.55rem;
    align-items: center;
}

.ml-admin-analytics-bar__label {
    font-weight: 800;
    font-size: 0.88rem;
}

.ml-admin-analytics-bar__track {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: rgba(62, 39, 35, 0.1);
    overflow: hidden;
}

.ml-admin-analytics-bar__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ml-accent, #e68a45), var(--ml-accent-hover, #d6742e));
}

.ml-admin-analytics-bar__count {
    font-weight: 900;
    font-size: 0.88rem;
    color: var(--ml-ink-muted, #6d4c41);
}

/* Admin Data Tracking */
.ml-admin-dt-period {
    margin-bottom: 1rem;
}

.ml-admin-dt-period__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.ml-admin-dt-period__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(230, 138, 69, 0.28);
    background: #fffaf5;
    color: #6d4c41;
    font-weight: 800;
    text-decoration: none;
}

.ml-admin-dt-period__tab:hover {
    border-color: rgba(230, 138, 69, 0.55);
    color: #3e2723;
}

.ml-admin-dt-period__tab.is-active {
    background: linear-gradient(180deg, #e68a45 0%, #d6742e 100%);
    border-color: transparent;
    color: #fff;
}

.ml-admin-dt-period__meta {
    margin: 0;
    color: var(--ml-ink-muted, #6d4c41);
    font-size: 0.92rem;
}

.ml-admin-dt-focus {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.7rem;
    margin: 0.75rem 0 0.65rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(230, 138, 69, 0.2);
    border-radius: 14px;
    background: #fffaf5;
}

.ml-admin-dt-focus__label {
    font-weight: 800;
    color: #3e2723;
    margin: 0;
}

.ml-admin-dt-focus__control {
    min-height: 2.35rem;
    min-width: min(100%, 14rem);
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(107, 95, 86, 0.28);
    border-radius: 10px;
    background: #fff;
    color: #3e2723;
    font: inherit;
}

.ml-admin-dt-focus__btn {
    min-height: 2.35rem;
}

.ml-admin-dt-kpi em {
    display: block;
    margin-top: 0.45rem;
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 800;
}

.ml-admin-dt-growth--up {
    color: #0f7a4d;
}

.ml-admin-dt-growth--down {
    color: #b42318;
}

.ml-admin-dt-growth--flat {
    color: #7b6558;
}

.ml-admin-dt-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 1rem;
}

.ml-admin-dt-chart-card {
    border: 1px solid rgba(230, 138, 69, 0.18);
    border-radius: 16px;
    padding: 0.95rem 1rem 1.05rem;
    background: #fff;
    box-shadow: 0 8px 22px rgba(62, 39, 35, 0.05);
}

.ml-admin-dt-chart-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    color: #3e2723;
}

.ml-admin-dt-chart-card__hint {
    margin: 0 0 0.7rem;
    color: #7b6558;
    font-size: 0.86rem;
}

.ml-admin-dt-chart-shell svg {
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(107, 95, 86, 0.14);
}

.ml-admin-dt-notes {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--ml-ink-muted, #6d4c41);
    line-height: 1.55;
}

.ml-admin-dt-notes li + li {
    margin-top: 0.35rem;
}

/* Global Admin & Seller Ledger Table Styles */
.ml-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: #ffffff;
}
.ml-admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
    text-align: left;
    background: #ffffff;
}
.ml-admin-table thead {
    background: #f8fafc;
}
.ml-admin-table th {
    padding: 1rem 1.25rem;
    font-weight: 750;
    color: #334155;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    border-bottom: 2px solid #cbd5e1;
    white-space: nowrap;
}
.ml-admin-table td {
    padding: 1.15rem 1.25rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.ml-admin-table tbody tr:last-child td {
    border-bottom: none;
}
.ml-admin-table tbody tr:hover {
    background: #f8fafc;
    transition: background 0.15s ease;
}
.ml-admin-table code {
    background: #f1f5f9;
    color: #475569;
    padding: 0.28rem 0.55rem;
    border-radius: 6px;
    font-size: 0.82rem;
    border: 1px solid #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.ml-admin-table a {
    color: var(--ml-accent, #635bff);
    font-weight: 650;
    text-decoration: none;
}
.ml-admin-table a:hover {
    text-decoration: underline;
}


/* Developer QA follow-ups */
.ml-field-readonly {
  margin: 0.35rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid #e5ded6;
  border-radius: 10px;
  background: #faf7f3;
  color: #3e2723;
  font-weight: 650;
}
.ml-verified-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  vertical-align: middle;
}

/* —— First-time intro tour (spotlight coach marks) —— */
.ml-intro-tour {
    position: fixed;
    inset: 0;
    z-index: 10070;
    pointer-events: auto;
    font-family: "Nunito Sans", system-ui, sans-serif;
}

.ml-intro-tour__hole {
    position: fixed;
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(18, 16, 14, 0.72);
    pointer-events: none;
    outline: 2px solid rgba(255, 255, 255, 0.92);
    outline-offset: 0;
    transition: top 0.22s ease, left 0.22s ease, width 0.22s ease, height 0.22s ease;
}

.ml-intro-tour__target-live {
    position: relative;
    z-index: 10071;
    border-radius: 10px;
}

.ml-intro-tour__card {
    position: fixed;
    z-index: 2;
    max-width: 320px;
    padding: 0;
    color: #fff;
    text-align: left;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ml-intro-tour__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.75rem 0 0.15rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: var(--ml-accent);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    text-decoration: none;
    text-shadow: none;
    pointer-events: auto;
    box-shadow: 0 6px 18px rgba(230, 138, 69, 0.4);
    transition: background 160ms ease, border-color 160ms ease;
}

.ml-intro-tour__cta:hover,
.ml-intro-tour__cta:focus-visible {
    background: var(--ml-accent-hover);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.ml-intro-tour__title {
    margin: 0 0 0.45rem;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.35rem, 3.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #fff;
}

.ml-intro-tour__body {
    margin: 0 0 0.75rem;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.ml-intro-tour__hint {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.72);
}

.ml-intro-tour__skip {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1.1rem, env(safe-area-inset-bottom));
    z-index: 3;
    min-width: 4.5rem;
    padding: 0.55rem 1.15rem;
    border: 1.5px solid rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.15s ease, color 0.15s ease;
}

.ml-intro-tour__skip:hover,
.ml-intro-tour__skip:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    outline: none;
}

.ml-intro-tour__skip:focus-visible {
    box-shadow: 0 0 0 3px rgba(232, 122, 46, 0.55);
}

/* Keep account panel above the dim while shop step is open */
body:has(.ml-intro-tour) .ml-header-account-dropdown[open] .ml-header-account-panel {
    z-index: 10072;
}

@media (prefers-reduced-motion: reduce) {
    .ml-intro-tour__hole {
        transition: none;
    }
}

@media (max-width: 720px) {
    .ml-intro-tour__card {
        max-width: min(320px, calc(100vw - 2rem));
    }

    .ml-intro-tour__title {
        font-size: 1.35rem;
    }

    .ml-intro-tour__body {
        font-size: 0.92rem;
    }
}

/* ——— Pet care guides (Community · SEO) ——— */
.ml-community-wrap {
    margin-top: 1rem;
}

.ml-guides-page,
.ml-guide-article {
    margin-top: 0;
    margin-bottom: 2rem;
    max-width: none;
}

.ml-guides-hero {
    margin: 0 0 1.5rem;
}

.ml-guides-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ml-accent);
}

.ml-guides-hero__title,
.ml-guide-article__title {
    margin: 0 0 0.5rem;
    font-family: var(--ml-font-display);
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ml-ink);
    line-height: 1.15;
}

.ml-guides-hero__lead,
.ml-guide-article__lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ml-ink-muted);
    max-width: 42rem;
}

.ml-guides-filters {
    margin: 0 0 1.25rem;
}

.ml-guides-search {
    margin: 0 0 1rem;
    max-width: 36rem;
}

.ml-guides-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ml-guides-search__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.ml-guides-search__input {
    flex: 1 1 12rem;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--ml-header-border);
    border-radius: 12px;
    background: #fff;
    font-size: 0.98rem;
    color: var(--ml-ink);
    box-shadow: var(--ml-shadow);
}

.ml-guides-search__input::placeholder {
    color: var(--ml-ink-muted);
}

.ml-guides-search__input:focus {
    outline: 2px solid var(--ml-accent);
    outline-offset: 1px;
}

.ml-guides-search__btn,
.ml-guides-search__clear {
    flex: 0 0 auto;
}

.ml-guides-search-meta {
    margin: -0.35rem 0 1rem;
    font-size: 0.92rem;
    color: var(--ml-ink-muted);
}

.ml-guides-grid {
    display: grid;
    gap: 1rem;
}

.ml-guides-card {
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--ml-header-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--ml-shadow);
}

.ml-guides-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    margin-bottom: 0.55rem;
}

.ml-guides-chip {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--ml-accent-soft);
    color: var(--ml-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.ml-guides-card__mins {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ml-ink-muted);
}

.ml-guides-card__title {
    margin: 0 0 0.45rem;
    font-family: var(--ml-font-display);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}

.ml-guides-card__title a {
    color: var(--ml-ink);
    text-decoration: none;
}

.ml-guides-card__title a:hover {
    color: var(--ml-accent);
}

.ml-guides-card__summary {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ml-ink-muted);
}

.ml-guides-card__cta {
    font-size: 0.92rem;
    font-weight: 750;
    color: var(--ml-accent);
    text-decoration: none;
}

.ml-guides-card__cta:hover {
    text-decoration: underline;
}

.ml-guide-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: var(--ml-ink-muted);
}

.ml-guide-breadcrumb a {
    color: var(--ml-accent);
    font-weight: 700;
    text-decoration: none;
}

.ml-guide-article__header {
    margin-bottom: 1.5rem;
}

.ml-guide-section {
    margin-bottom: 1.35rem;
}

.ml-guide-section h2 {
    margin: 0 0 0.55rem;
    font-family: var(--ml-font-display);
    font-size: 1.2rem;
    color: var(--ml-ink);
}

.ml-guide-section p {
    margin: 0 0 0.7rem;
    line-height: 1.65;
    color: var(--ml-ink);
}

.ml-guide-steps {
    margin: 0.35rem 0 0.85rem;
    padding-left: 1.25rem;
    line-height: 1.6;
}

.ml-guide-steps li {
    margin-bottom: 0.45rem;
}

.ml-guide-hero-img-wrap {
    margin: 0 0 1.25rem;
}

.ml-guide-hero-img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
}

.ml-guide-article__html {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--ml-ink);
}

.ml-guide-article__html h2,
.ml-guide-article__html h3 {
    margin: 1.4rem 0 0.55rem;
    line-height: 1.25;
    color: var(--ml-ink);
    font-family: var(--ml-font-display);
}

.ml-guide-article__html h2 {
    font-size: 1.2rem;
}

.ml-guide-article__html h3 {
    font-size: 1.08rem;
}

.ml-guide-article__html p {
    margin: 0 0 0.9rem;
}

.ml-guide-article__html ul,
.ml-guide-article__html ol {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.ml-guide-article__html li {
    margin: 0 0 0.4rem;
}

.ml-guide-article__html a {
    color: var(--ml-accent);
    font-weight: 700;
    text-decoration: none;
}

.ml-guide-article__html img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0.75rem 0;
}

.ml-guide-article__html table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.ml-guide-article__html th,
.ml-guide-article__html td {
    border: 1px solid var(--ml-header-border);
    padding: 0.5rem 0.65rem;
    text-align: left;
}

.ml-guide-disclaimer {
    margin: 1.25rem 0 0;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--ml-header-border);
    background: var(--ml-cream);
    font-size: 0.88rem;
    color: var(--ml-ink-muted);
    line-height: 1.5;
}

.ml-guide-ctas {
    margin: 1.75rem 0 1rem;
    padding: 1.2rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--ml-header-border);
    background: var(--ml-accent-soft);
}

.ml-guide-ctas__title {
    margin: 0 0 0.35rem;
    font-family: var(--ml-font-display);
    font-size: 1.15rem;
}

.ml-guide-ctas__lead {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    color: var(--ml-ink-muted);
}

.ml-guide-ctas__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.ml-guide-ctas__btn {
    text-decoration: none;
}

.ml-guide-related {
    margin: 1.75rem 0 0.5rem;
    padding: 1.15rem 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--ml-header-border);
    background: var(--ml-cream);
}

.ml-guide-related .ml-guide-ctas__title {
    margin-bottom: 0.65rem;
}

.ml-guide-related__list {
    margin: 0;
    padding-left: 1.15rem;
    line-height: 1.55;
}

.ml-guide-related__list li {
    margin: 0 0 0.4rem;
}

.ml-guide-related__list a {
    color: var(--ml-accent);
    font-weight: 700;
    text-decoration: none;
}

.ml-guide-related__list a:hover,
.ml-guide-related__list a:focus-visible {
    text-decoration: underline;
}

.ml-guide-back {
    margin: 1.25rem 0 0;
    font-size: 0.92rem;
}

.ml-guide-back a {
    color: var(--ml-accent);
    font-weight: 700;
    text-decoration: none;
}

.ml-home-guides {
    margin-top: 2.5rem;
    padding-top: 0.25rem;
}

.ml-home-guides__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ml-home-guides__track {
    align-items: stretch;
}

.ml-home-guides__track > .ml-home-guides__card {
    flex: 0 0 calc((100% - 2rem) / 3);
    min-width: calc((100% - 2rem) / 3);
    scroll-snap-align: start;
    height: auto;
}

.ml-home-guides__card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.1rem 1.15rem;
    border-radius: 16px;
    border: 1px solid var(--ml-header-border);
    background: #fff;
    box-shadow: var(--ml-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ml-home-guides__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(62, 39, 35, 0.1);
}

.ml-home-guides__kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ml-accent);
}

.ml-home-guides__title {
    font-family: var(--ml-font-display);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ml-ink);
}

.ml-home-guides__sum {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--ml-ink-muted);
    flex: 1;
}

.ml-home-guides__cta {
    margin-top: 0.35rem;
    font-size: 0.88rem;
    font-weight: 750;
    color: var(--ml-accent);
}

.ml-home-guides__all {
    margin: 1rem 0 0;
    text-align: center;
}

.ml-home-guides__all a {
    font-weight: 750;
    color: var(--ml-accent);
    text-decoration: none;
}

.ml-guide-inline-cta {
    margin-top: 1.75rem;
    padding: 1.15rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--ml-header-border);
    background: #fff;
    box-shadow: var(--ml-shadow);
}

.ml-guide-inline-cta__title {
    margin: 0 0 0.4rem;
    font-family: var(--ml-font-display);
    font-size: 1.15rem;
}

.ml-guide-inline-cta__text {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--ml-ink-muted);
    line-height: 1.5;
}

.ml-guide-inline-cta__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
}

.ml-guide-inline-cta__links a {
    font-size: 0.9rem;
    font-weight: 750;
    color: var(--ml-accent);
    text-decoration: none;
}

.ml-guide-inline-cta__links a:hover {
    text-decoration: underline;
}

.ml-guide-inline-cta--listing {
    margin-top: 1.25rem;
}

@media (max-width: 900px) {
    .ml-home-guides__grid {
        grid-template-columns: 1fr;
    }

    .ml-home-guides__track > .ml-home-guides__card {
        flex-basis: calc((100% - 0.75rem) / 2);
        min-width: calc((100% - 0.75rem) / 2);
    }
}

@media (max-width: 520px) {
    .ml-home-guides__track > .ml-home-guides__card {
        flex-basis: 100%;
        min-width: 100%;
    }
}

/* ——— Adoption success stories ——— */
.ml-stories-filters {
    margin: 0 0 1.25rem;
}

.ml-story-chip-place {
    background: var(--ml-cream, #f7f3ee);
    color: var(--ml-ink-muted);
}

.ml-story-byline {
    margin: 0.65rem 0 0;
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--ml-ink-muted);
}

.ml-story-quote {
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--ml-accent);
    background: var(--ml-accent-soft);
    border-radius: 0 12px 12px 0;
}

.ml-story-quote p {
    margin: 0;
    font-family: var(--ml-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ml-ink);
}

.ml-story-footnote,
.ml-story-empty {
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ml-ink-muted);
}

.ml-story-footnote a,
.ml-story-empty a {
    color: var(--ml-accent);
    font-weight: 700;
    text-decoration: none;
}

.ml-home-stories {
    margin-top: 2rem;
}

/* ——— Local adoption SEO hubs ——— */
.ml-local-page {
    margin-top: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 960px;
}

.ml-local-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ml-accent);
}

.ml-local-hero {
    margin: 0 0 1.25rem;
}

.ml-local-hero__title {
    margin: 0 0 0.5rem;
    font-family: var(--ml-font-display);
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ml-ink);
    line-height: 1.15;
}

.ml-local-hero__lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ml-ink-muted);
    max-width: 42rem;
}

.ml-local-prose {
    margin: 0 0 1.25rem;
}

.ml-local-prose p {
    margin: 0 0 0.75rem;
    line-height: 1.65;
    color: var(--ml-ink);
}

.ml-local-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 1.75rem;
}

.ml-local-section-title {
    margin: 0 0 0.85rem;
    font-family: var(--ml-font-display);
    font-size: 1.25rem;
    color: var(--ml-ink);
}

.ml-local-empty {
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: var(--ml-cream);
    border: 1px solid var(--ml-header-border);
    line-height: 1.5;
    color: var(--ml-ink-muted);
}

.ml-local-empty a {
    font-weight: 750;
    color: var(--ml-accent);
}

.ml-local-city-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.ml-local-city-card {
    padding: 1.15rem 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--ml-header-border);
    background: #fff;
    box-shadow: var(--ml-shadow);
}

.ml-local-city-card__title {
    margin: 0 0 0.4rem;
    font-family: var(--ml-font-display);
    font-size: 1.2rem;
}

.ml-local-city-card__blurb {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--ml-ink-muted);
}

.ml-local-city-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.ml-local-city-card__links a {
    font-weight: 750;
    color: var(--ml-accent);
    text-decoration: none;
}

.ml-local-city-card__links a:hover {
    text-decoration: underline;
}

.ml-local-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.ml-local-listing-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid var(--ml-header-border);
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--ml-shadow);
    transition: transform 0.15s ease;
}

.ml-local-listing-card:hover {
    transform: translateY(-2px);
}

.ml-local-listing-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--ml-cream) center / cover no-repeat;
}

.ml-local-listing-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0.8rem 0.85rem;
}

.ml-local-listing-card__title {
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--ml-ink);
}

.ml-local-listing-card__meta {
    font-size: 0.8rem;
    color: var(--ml-ink-muted);
}

.ml-local-more {
    margin: 0 0 1.5rem;
}

.ml-local-more a {
    font-weight: 750;
    color: var(--ml-accent);
    text-decoration: none;
}

.ml-local-other-cities {
    margin-top: 1.5rem;
}

.ml-local-other-cities__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.ml-local-other-cities__links a {
    font-weight: 700;
    color: var(--ml-accent);
    text-decoration: none;
}

@media (max-width: 800px) {
    .ml-local-city-grid,
    .ml-local-listing-grid {
        grid-template-columns: 1fr;
    }
}

/* ——— Breed SEO guides ——— */
.ml-breeds-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.ml-breeds-section-gap {
    margin-top: 1.75rem;
}

.ml-breeds-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.05rem 1.15rem;
    border-radius: 16px;
    border: 1px solid var(--ml-header-border);
    background: #fff;
    box-shadow: var(--ml-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease;
}

.ml-breeds-card:hover {
    transform: translateY(-2px);
}

.ml-breeds-card__name {
    font-family: var(--ml-font-display);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ml-ink);
}

.ml-breeds-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-top: 0.15rem;
    border-radius: 10px;
    background-color: #efe6dc;
    background-size: cover;
    background-position: center;
}

.ml-breed-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.85rem 0 0.35rem;
}

.ml-breed-photos__item {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--ml-header-border);
    background: #efe6dc;
    box-shadow: var(--ml-shadow);
}

.ml-breed-photos__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 22%;
}

.ml-breed-photos__note {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    color: var(--ml-ink-muted, #6d4c41);
}

.ml-breeds-card__meta {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ml-accent);
}

.ml-breeds-card__sum {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--ml-ink-muted);
    flex: 1;
}

.ml-breeds-card__cta {
    margin-top: 0.25rem;
    font-size: 0.88rem;
    font-weight: 750;
    color: var(--ml-accent);
}

@media (max-width: 640px) {
    .ml-breed-photos {
        grid-template-columns: 1fr;
    }
}

.ml-breed-facts {
    margin: 0 0 1.25rem;
    border: 1px solid var(--ml-header-border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--ml-shadow);
}

.ml-breed-facts__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.95rem;
}

.ml-breed-facts__row:nth-child(even) {
    background: var(--ml-cream);
}

.ml-breed-facts__label {
    font-weight: 700;
    color: var(--ml-ink-muted);
}

.ml-breed-facts__value {
    font-weight: 750;
    text-align: right;
    color: var(--ml-ink);
}

.ml-breed-care-list {
    margin: 0 0 1.15rem;
    padding-left: 1.2rem;
    line-height: 1.6;
}

.ml-breed-care-list li {
    margin-bottom: 0.4rem;
}

@media (max-width: 800px) {
    .ml-breeds-grid {
        grid-template-columns: 1fr;
    }
}




.ml-dash-invite__card{margin:0 0 1.25rem;padding:1.15rem 1.2rem;border:1px solid rgba(62,39,35,.1);border-radius:14px;background:#fff}
.ml-dash-invite__code{margin:0 0 .75rem;font-size:.95rem}
.ml-dash-invite__credits{margin:.25rem 0 .5rem;font-size:1.35rem;font-family:var(--ml-font-display)}

/* ——— Dog parks & beaches finder ——— */
.ml-dog-places-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 1.75rem;
}

.ml-dog-places-controls {
    margin: 0 0 1.25rem;
}

.ml-dog-places-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
    margin-top: 0.85rem;
}

.ml-dog-places-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 10rem;
}

.ml-dog-places-field--suburb {
    flex: 1 1 14rem;
    min-width: 14rem;
    position: relative;
}

.ml-dog-places-field__label {
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ml-ink-muted);
}

.ml-dog-places-field__select,
.ml-dog-places-field__input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--ml-header-border);
    border-radius: 12px;
    background: #fff;
    font-size: 0.98rem;
    color: var(--ml-ink);
    box-shadow: var(--ml-shadow);
}

.ml-dog-places-field__select:focus,
.ml-dog-places-field__input:focus {
    outline: 2px solid var(--ml-accent);
    outline-offset: 1px;
}

.ml-dog-places-suburb-wrap {
    position: relative;
}

.ml-dog-places-suggest {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--ml-header-border);
    border-radius: 12px;
    box-shadow: var(--ml-shadow);
    max-height: 16rem;
    overflow: auto;
}

.ml-dog-places-suggest li {
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.ml-dog-places-suggest li:hover,
.ml-dog-places-suggest li:focus {
    background: var(--ml-accent-soft);
    color: var(--ml-accent);
}

.ml-dog-places-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ml-dog-places-search-meta {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--ml-ink-muted);
}

.ml-dog-places-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.15rem 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--ml-header-border);
    background: #fff;
    box-shadow: var(--ml-shadow);
}

.ml-dog-places-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
}

.ml-dog-places-card__loc {
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--ml-ink-muted);
}

.ml-dog-places-card__dist {
    margin-left: auto;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ml-accent);
    white-space: nowrap;
}

.ml-dog-places-card__title {
    margin: 0;
    font-family: var(--ml-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}

.ml-dog-places-card__title a {
    color: var(--ml-ink);
    text-decoration: none;
}

.ml-dog-places-card__title a:hover {
    color: var(--ml-accent);
}

.ml-dog-places-card__sum {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--ml-ink-muted);
    flex: 1;
}

.ml-dog-places-card__cta {
    margin-top: 0.2rem;
    font-size: 0.88rem;
    font-weight: 750;
    color: var(--ml-accent);
    text-decoration: none;
}

.ml-dog-places-card__cta:hover {
    text-decoration: underline;
}

.ml-dog-places-disclaimer {
    margin: 1.5rem 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ml-ink-muted);
}

.ml-dog-place-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 0.35rem;
}

.ml-dog-place-photos__item {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--ml-header-border);
    background: #efe6dc;
    box-shadow: var(--ml-shadow);
}

.ml-dog-place-photos__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 30%;
}

.ml-dog-place-photos__note {
    margin: 0 0 1.1rem;
    font-size: 0.82rem;
    color: var(--ml-ink-muted, #6d4c41);
}

@media (max-width: 640px) {
    .ml-dog-place-photos {
        grid-template-columns: 1fr;
    }
}

.ml-dog-place-page__loc {
    margin: 0.65rem 0 0;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--ml-ink-muted);
}

.ml-dog-place-page__list {
    margin: 0 0 1.25rem;
    padding-left: 1.2rem;
    line-height: 1.6;
    color: var(--ml-ink);
}

.ml-dog-place-page__list li {
    margin-bottom: 0.4rem;
}

.ml-dog-place-page__council {
    margin: 0 0 1.25rem;
    padding: 0.9rem 1.05rem;
    border-radius: 14px;
    background: var(--ml-cream);
    border: 1px solid var(--ml-header-border);
    line-height: 1.5;
    color: var(--ml-ink);
    font-size: 0.95rem;
}

.ml-home-guides__all-sep {
    margin: 0 0.35rem;
    color: var(--ml-ink-muted);
}

@media (max-width: 800px) {
    .ml-dog-places-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Homepage browse hub (replaces hero carousel + explore tiles) ========== */
.ml-home-hero-stack {
    width: 100%;
}

/* Top — adoption ribbon (soft cream, Fraunces) */
.ml-home-adopt-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 140% at 50% 100%, rgba(230, 138, 69, 0.07) 0%, transparent 55%),
        linear-gradient(180deg, #fff8f1 0%, #f3e8dc 100%);
    border-bottom: 1px solid var(--ml-header-border);
}

.ml-home-adopt-hero__glow {
    position: absolute;
    inset: -30% -15% auto;
    height: 80%;
    background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.55) 0%, transparent 65%);
    pointer-events: none;
}

.ml-home-adopt-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.55rem 1.25rem;
    padding: clamp(0.7rem, 1.8vw, 1rem) 0 clamp(0.75rem, 1.9vw, 1.05rem);
    max-width: 56rem;
}

@media (min-width: 720px) {
    .ml-home-adopt-hero__inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

.ml-home-adopt-hero__line {
    margin: 0;
    font-family: var(--ml-font-display);
    font-size: clamp(1.12rem, 2.35vw, 1.58rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.32;
    letter-spacing: 0.015em;
    color: #4a372f;
    max-width: 30rem;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ml-home-adopt-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.65rem;
}

.ml-home-adopt-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    font-family: var(--ml-font-body);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ml-home-adopt-hero__btn:hover {
    transform: translateY(-1px);
}

.ml-home-adopt-hero__btn--donate {
    color: #fff;
    border: 2px solid var(--ml-accent);
    background: var(--ml-accent);
    box-shadow: 0 2px 10px rgba(230, 138, 69, 0.28);
}

.ml-home-adopt-hero__btn--donate:hover {
    background: var(--ml-accent-hover);
    border-color: var(--ml-accent-hover);
    box-shadow: 0 4px 14px rgba(230, 138, 69, 0.34);
}

.ml-home-adopt-hero__btn--adopt {
    color: #5c3d2e;
    border: 2px solid rgba(92, 61, 46, 0.38);
    background: rgba(255, 255, 255, 0.65);
}

.ml-home-adopt-hero__btn--adopt:hover {
    background: #fff;
    border-color: rgba(92, 61, 46, 0.55);
    color: var(--ml-ink);
}

/* Bottom — photo identity strip */
.ml-home-strip {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #efe6dc;
    border-bottom: 1px solid var(--ml-header-border);
}

.ml-home-strip__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 270;
    height: auto;
    overflow: hidden;
    background: #e8ddd2;
}

.ml-home-strip__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.ml-home-strip__copy {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(16.5% + 0.65rem);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    width: min(48%, 34rem);
    padding: 0.75rem 1.15rem 0.75rem 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
}

.ml-home-strip__kicker {
    margin: 0;
    font-family: var(--ml-font-body);
    font-size: clamp(0.9rem, 1.55vw, 1.08rem);
    font-weight: 700;
    letter-spacing: 0.015em;
    line-height: 1.35;
    color: #2f211c;
    text-shadow:
        0 0 6px rgba(255, 252, 248, 0.95),
        0 0 12px rgba(255, 252, 248, 0.9),
        0 0 22px rgba(255, 248, 240, 0.85),
        0 1px 0 rgba(255, 252, 248, 0.9);
}

.ml-home-strip__line {
    margin: 0;
    font-family: var(--ml-font-display);
    font-size: clamp(1.35rem, 2.7vw, 1.95rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: #2f211c;
    text-shadow:
        0 0 7px rgba(255, 252, 248, 0.98),
        0 0 14px rgba(255, 252, 248, 0.92),
        0 0 26px rgba(255, 248, 240, 0.88),
        0 1px 0 rgba(255, 252, 248, 0.95);
}

/* Rescue partner donate page */
.ml-rescue-donate-page {
    padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(2rem, 4vw, 3rem);
}

.ml-rescue-donate-page__wrap {
    width: 100%;
}

.ml-rescue-donate-page__head {
    width: 100%;
    max-width: none;
    margin: 0 0 1.65rem;
    text-align: center;
}

.ml-rescue-donate-page__title {
    margin: 0 0 0.55rem;
    font-family: var(--ml-font-display);
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
    font-weight: 700;
    color: var(--ml-ink);
    line-height: 1.15;
}

.ml-rescue-donate-page__lead {
    margin: 0 auto;
    max-width: 46rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ml-ink-muted);
}

.ml-rescue-donate-page__empty {
    width: 100%;
    padding: 1.35rem 1.15rem;
    border: 1px solid var(--ml-border, #e0d6cc);
    border-radius: var(--ml-radius);
    background: #fffaf5;
    text-align: center;
}

.ml-rescue-donate-page__empty p {
    margin: 0 0 0.65rem;
    line-height: 1.45;
    color: var(--ml-ink);
}

.ml-rescue-donate-page__empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.85rem !important;
}

.ml-rescue-donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
    gap: 18px;
    width: 100%;
}

.ml-rescue-donate-card {
    border: 1px solid var(--ml-card-border);
    border-radius: var(--ml-radius);
    background: var(--ml-cream);
    box-shadow: 0 6px 22px rgba(62, 39, 35, 0.07);
    padding: 20px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.ml-rescue-donate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(62, 39, 35, 0.12);
    border-color: rgba(230, 138, 69, 0.28);
}

.ml-rescue-donate-card__avatar {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(
        145deg,
        hsl(var(--av-h, 32), 62%, 88%) 0%,
        hsl(var(--av-h, 32), 55%, 78%) 100%
    );
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 14px rgba(62, 39, 35, 0.12);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ml-rescue-donate-card__logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
}

.ml-rescue-donate-card__initials {
    font-family: var(--ml-font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: hsl(var(--av-h, 32), 35%, 28%);
    position: relative;
    z-index: 0;
}

.ml-rescue-donate-card__avatar:has(.ml-rescue-donate-card__logo) .ml-rescue-donate-card__initials {
    display: none;
}

.ml-rescue-donate-card__name {
    margin: 0 0 4px;
    font-family: var(--ml-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.ml-rescue-donate-card__shop {
    color: var(--ml-ink);
    text-decoration: none;
    transition: color 0.15s ease;
}

.ml-rescue-donate-card__shop:hover,
.ml-rescue-donate-card__shop:focus-visible,
.ml-rescue-donate-card:hover .ml-rescue-donate-card__shop {
    color: var(--ml-accent);
}

.ml-rescue-donate-card__summary {
    margin: 0 0 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ml-ink-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.ml-rescue-donate-card__actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding-top: 2px;
}

.ml-rescue-donate-card__actions .ml-btn,
.ml-rescue-donate-card__donate {
    padding: 0.42rem 1.05rem;
    min-height: 2.25rem;
    font-size: 0.88rem;
    text-decoration: none;
}

.ml-home-hub {
    padding: 1.15rem 0 2rem;
}

.ml-home-hub .ml-section-title {
    margin-bottom: 1.25rem;
}

.ml-home-hub .ml-section-title h2 {
    font-size: clamp(1.85rem, 3.2vw, 2.35rem);
}

.ml-home-hub__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.15rem;
}

.ml-home-hub__tagline-img {
    display: block;
    width: min(16.5rem, 48vw);
    height: auto;
    margin: 0;
    background: transparent;
}

.ml-home-hub__tagline {
    margin: 0;
    font-family: var(--ml-font-display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    color: var(--ml-ink-muted);
    letter-spacing: 0.01em;
    text-align: right;
}

.ml-home-hub__tagline span {
    color: var(--ml-accent);
    font-style: normal;
}

.ml-home-hub__species {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.15rem;
}

/* Bird + Reptile: same card width as top row, centred as a pair */
.ml-home-hub__species--pair {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.ml-home-hub__species--pair > .ml-home-hub-card {
    flex: 0 1 calc((100% - 2rem) / 3);
    width: calc((100% - 2rem) / 3);
    max-width: calc((100% - 2rem) / 3);
}

.ml-home-hub-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--ml-radius);
    border: 1px solid var(--ml-card-border);
    background: #fff;
    box-shadow: var(--ml-shadow);
    overflow: hidden;
    min-height: 100%;
    position: relative;
}

.ml-home-hub-card--has-photo {
    min-height: 13.5rem;
}

.ml-home-hub-card--dog {
    background: #fff6ef;
}

.ml-home-hub-card--cat {
    background: #fff8f2;
}

.ml-home-hub-card--aquatic {
    background: #eef6f9;
}

.ml-home-hub-card--bird {
    background: #f7f3eb;
}

.ml-home-hub-card--reptile {
    background: #f3f0e8;
}

/* Photo as merged CSS background — not an <img>, so not draggable */
.ml-home-hub-card__photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(58%, 17rem);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 12%,
        rgba(0, 0, 0, 0.75) 38%,
        #000 58%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 12%,
        rgba(0, 0, 0, 0.75) 38%,
        #000 58%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.ml-home-hub-card--dog .ml-home-hub-card__photo {
    background-position: 55% 22%;
}

.ml-home-hub-card--cat .ml-home-hub-card__photo {
    /* Full face must show: contain + full height (never crop chin) */
    top: 0;
    right: 0;
    bottom: 0;
    width: min(50%, 15rem);
    background-size: contain;
    background-position: right 35%;
    background-repeat: no-repeat;
    /* Mask doesn't fade a contain-sized image — use cream overlay instead */
    -webkit-mask-image: none;
    mask-image: none;
}

.ml-home-hub-card--cat .ml-home-hub-card__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to right,
        #fff8f2 0%,
        rgba(255, 248, 242, 0.9) 28%,
        rgba(255, 248, 242, 0.4) 52%,
        transparent 72%
    );
}

.ml-home-hub-card--aquatic .ml-home-hub-card__photo {
    background-position: 60% center;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 18%,
        rgba(0, 0, 0, 0.85) 48%,
        #000 70%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 18%,
        rgba(0, 0, 0, 0.85) 48%,
        #000 70%
    );
}

.ml-home-hub-card--bird .ml-home-hub-card__photo {
    background-position: 58% 28%;
}

.ml-home-hub-card--reptile .ml-home-hub-card__photo {
    background-position: 62% 22%;
}

.ml-home-hub-card__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    z-index: 2;
    position: relative;
}

.ml-home-hub-card__head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    padding: 1.05rem 0.85rem 0.55rem;
    color: inherit;
}

.ml-home-hub-card__title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
}

.ml-home-hub-card__species {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3.45rem;
    height: 3.45rem;
}

.ml-home-hub-species-ico {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Tint black PNG silhouettes to each card accent (filter beats mask + CSS var in Safari). */
.ml-home-hub-card--dog .ml-home-hub-species-ico {
    filter: brightness(0) saturate(100%) invert(52%) sepia(89%) saturate(501%) hue-rotate(346deg) brightness(95%) contrast(89%);
}

.ml-home-hub-card--cat .ml-home-hub-species-ico {
    filter: brightness(0) saturate(100%) invert(59%) sepia(14%) saturate(1015%) hue-rotate(346deg) brightness(92%) contrast(88%);
}

.ml-home-hub-card--aquatic .ml-home-hub-species-ico {
    filter: brightness(0) saturate(100%) invert(46%) sepia(18%) saturate(1099%) hue-rotate(145deg) brightness(92%) contrast(88%);
}

.ml-home-hub-card--bird .ml-home-hub-species-ico {
    filter: brightness(0) saturate(100%) invert(48%) sepia(42%) saturate(620%) hue-rotate(338deg) brightness(95%) contrast(90%);
}

.ml-home-hub-card--reptile .ml-home-hub-species-ico {
    filter: brightness(0) saturate(100%) invert(42%) sepia(18%) saturate(780%) hue-rotate(22deg) brightness(92%) contrast(88%);
}

.ml-home-hub-card__titles {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    text-align: left;
}

.ml-home-hub-card__title {
    margin: 0;
    font-family: var(--ml-font-display);
    font-size: clamp(1.35rem, 1.9vw, 1.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: inherit;
    white-space: nowrap;
}

/* Species accent on title text */
.ml-home-hub-card--dog .ml-home-hub-card__title {
    color: #c46a2e;
}

.ml-home-hub-card--cat .ml-home-hub-card__title {
    color: #8a6a4e;
}

.ml-home-hub-card--aquatic .ml-home-hub-card__title {
    color: #3d7a86;
}

.ml-home-hub-card--bird .ml-home-hub-card__title {
    color: #c45d3a;
}

.ml-home-hub-card--reptile .ml-home-hub-card__title {
    color: #6b5a3e;
}

.ml-home-hub-card__sub {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ml-ink-muted);
}

/* Four equal links in a 2×2 grid — just wide enough for longest labels */
.ml-home-hub-card__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0 0.85rem 1rem;
    margin-top: auto;
    width: min(100%, 19.75rem);
}

.ml-home-hub-card__links--soon {
    display: flex;
    grid-template-columns: none;
    width: auto;
    max-width: 100%;
}

.ml-home-hub-card__soon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.45rem 1.1rem;
    border-radius: 14px;
    border: 1px dashed rgba(62, 39, 35, 0.22);
    background: rgba(255, 255, 255, 0.72);
    color: #6b5a3e;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    pointer-events: none;
    user-select: none;
}

.ml-home-hub-card__link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    min-width: 0;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.4rem 0.55rem;
    border-radius: 14px;
    border: 1px solid rgba(62, 39, 35, 0.1);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ml-ink);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    line-height: 1.15;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ml-home-hub-card__glyph {
    display: grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 auto;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    opacity: 0.95;
}

.ml-home-hub-card--dog .ml-home-hub-card__glyph {
    color: #c46a2e;
}

.ml-home-hub-card--cat .ml-home-hub-card__glyph {
    color: #8a6a4e;
}

.ml-home-hub-card--aquatic .ml-home-hub-card__glyph {
    color: #3d7a86;
}

.ml-home-hub-card--bird .ml-home-hub-card__glyph {
    color: #c45d3a;
}

/* Bird find + cage supplies PNGs: tint black marks to bird accent */
.ml-home-hub-card--bird .ml-home-hub-card__glyph--bird .ml-home-hub-ico--img,
.ml-home-hub-card--bird .ml-home-hub-card__glyph--cage .ml-home-hub-ico--img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(42%) saturate(620%) hue-rotate(338deg) brightness(95%) contrast(90%);
}

.ml-sell-bird-species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 0.45rem 0.75rem;
    margin-top: 0.5rem;
}

.ml-sell-bird-licence-warn {
    margin: 0.75rem 0 1rem;
}

.ml-sell-bird-offer {
    margin-bottom: 1rem;
}

/* Adopt = solid red heart; Find a breeder = muted paw (matches mockup) */
.ml-home-hub-card--dog .ml-home-hub-card__glyph--adopt,
.ml-home-hub-card--cat .ml-home-hub-card__glyph--adopt {
    color: #e53935;
    opacity: 1;
}

.ml-home-hub-card--dog .ml-home-hub-card__glyph--paw,
.ml-home-hub-card--cat .ml-home-hub-card__glyph--paw {
    color: #6d5c54;
    opacity: 1;
}

.ml-home-hub-card__link:hover .ml-home-hub-card__glyph--adopt,
.ml-home-hub-card__link:focus-visible .ml-home-hub-card__glyph--adopt {
    color: #d32f2f;
}

.ml-home-hub-card__link:hover .ml-home-hub-card__glyph--paw,
.ml-home-hub-card__link:focus-visible .ml-home-hub-card__glyph--paw {
    color: #564841;
}

.ml-home-hub-card--aquatic .ml-home-hub-card__glyph--plant {
    color: #5a8f62;
    opacity: 1;
}

/* Aquatic supplies fish-net PNG: tint to aquatic accent */
.ml-home-hub-card--aquatic .ml-home-hub-card__glyph--net .ml-home-hub-ico--img {
    filter: brightness(0) saturate(100%) invert(46%) sepia(18%) saturate(1099%) hue-rotate(145deg) brightness(92%) contrast(88%);
}

.ml-home-hub-ico {
    width: 1.45rem;
    height: 1.45rem;
    display: block;
}

.ml-home-hub-ico--img {
    width: 1.3rem;
    height: 1.3rem;
    object-fit: contain;
}

.ml-home-hub-card__link-label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.15;
    font-weight: 700;
    font-size: inherit;
    hyphens: none;
    word-break: keep-all;
    overflow-wrap: normal;
    white-space: nowrap;
}

.ml-home-hub-card__link:hover,
.ml-home-hub-card__link:focus-visible {
    background: var(--ml-accent-soft);
    border-color: rgba(230, 138, 69, 0.45);
    color: var(--ml-accent-hover);
}

.ml-home-hub-card__link:hover .ml-home-hub-card__glyph,
.ml-home-hub-card__link:focus-visible .ml-home-hub-card__glyph {
    background: none;
    opacity: 1;
}

.ml-home-hub-card--aquatic .ml-home-hub-card__link:hover,
.ml-home-hub-card--aquatic .ml-home-hub-card__link:focus-visible {
    background: #eef6f8;
    border-color: rgba(90, 150, 165, 0.45);
    color: #2f6674;
}

.ml-home-hub__more {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
}

.ml-home-hub-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.4rem;
    padding: 0.6rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--ml-header-border);
    background: #fff;
    color: var(--ml-ink);
    font-weight: 700;
    font-size: 1.08rem;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 10px rgba(62, 39, 35, 0.05);
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ml-home-hub-pill:hover,
.ml-home-hub-pill:focus-visible {
    border-color: rgba(230, 138, 69, 0.5);
    background: var(--ml-accent-soft);
    transform: translateY(-1px);
}

.ml-home-hub-pill__glyph {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    color: #c47a4a;
    flex: 0 0 auto;
}

.ml-home-hub-pill__glyph .ml-home-hub-ico {
    width: 1.55rem;
    height: 1.55rem;
}

.ml-home-hub-pill--guides .ml-home-hub-pill__glyph { color: #7c9a7e; }
.ml-home-hub-pill--parks .ml-home-hub-pill__glyph { color: #5a8f62; }
.ml-home-hub-pill--community .ml-home-hub-pill__glyph { color: #d4894f; }
.ml-home-hub-pill--breeds .ml-home-hub-pill__glyph { color: #8a6a4e; }
.ml-home-hub-pill--services .ml-home-hub-pill__glyph { color: #a67c52; }
.ml-home-hub-pill--sell .ml-home-hub-pill__glyph { color: #fff; }

.ml-home-hub-pill--sell {
    background: var(--ml-accent);
    border-color: var(--ml-accent);
    color: #fff;
}

.ml-home-hub-pill--sell:hover,
.ml-home-hub-pill--sell:focus-visible {
    background: var(--ml-accent-hover);
    border-color: var(--ml-accent-hover);
    color: #fff;
}

/* Homepage trust signals (under hero) */
.ml-home-trust-strip {
    padding: 0.85rem 0 0.15rem;
    background: transparent;
}

.ml-home-trust-strip__bar {
    list-style: none;
    margin: 0;
    padding: 0.85rem 0.35rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    border-radius: 1rem;
    background: #f3efe7;
    border: 1px solid rgba(70, 105, 78, 0.12);
    color: #2f4a36;
}

.ml-home-trust-strip__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.35rem 1rem;
    min-width: 0;
}

.ml-home-trust-strip__item + .ml-home-trust-strip__item {
    border-left: 1px solid rgba(70, 105, 78, 0.16);
}

.ml-home-trust-strip__ico {
    display: inline-flex;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    color: #2f4a36;
}

.ml-home-trust-strip__ico img,
.ml-home-trust-strip__ico svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ml-home-trust-strip__copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.ml-home-trust-strip__title {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
    color: #2f4a36;
}

.ml-home-trust-strip__lead {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    color: #4a6352;
}

@media (max-width: 900px) {
    .ml-home-trust-strip__bar {
        grid-template-columns: 1fr 1fr;
        padding: 0.55rem 0.4rem;
    }

    .ml-home-trust-strip__item {
        padding: 0.55rem 0.7rem;
    }

    .ml-home-trust-strip__item:nth-child(2n + 1) {
        border-left: none;
    }

    .ml-home-trust-strip__item:nth-child(n + 3) {
        border-top: 1px solid rgba(70, 105, 78, 0.14);
    }
}

@media (max-width: 520px) {
    .ml-home-trust-strip__bar {
        grid-template-columns: 1fr;
    }

    .ml-home-trust-strip__item,
    .ml-home-trust-strip__item:nth-child(2n + 1) {
        border-left: none;
    }

    .ml-home-trust-strip__item + .ml-home-trust-strip__item {
        border-top: 1px solid rgba(70, 105, 78, 0.14);
    }
}

/* MateLoop ID promo strip (homepage) */
.ml-mateloop-id-strip {
    padding: 0.35rem 0 0.85rem;
    background: transparent;
}

.ml-mateloop-id-strip__bar {
    display: flex;
    align-items: center;
    gap: 1.15rem 1.5rem;
    flex-wrap: wrap;
    padding: 0.95rem 1.15rem;
    border-radius: 1rem;
    background: #d7e4d3;
    border: 1px solid rgba(70, 105, 78, 0.14);
    color: #2f4a36;
}

.ml-mateloop-id-strip__intro {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: min(100%, 14.5rem);
    flex: 1 1 14rem;
}

.ml-mateloop-id-strip__mark {
    display: block;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.ml-mateloop-id-strip__copy {
    min-width: 0;
}

.ml-mateloop-id-strip__title {
    margin: 0;
    font-family: var(--ml-font-body);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    color: #2f4a36;
}

.ml-mateloop-id-strip__lead {
    margin: 0.12rem 0 0;
    font-size: 0.9rem;
    line-height: 1.3;
    color: #3d5a45;
}

.ml-mateloop-id-strip__points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 0.75rem 1.25rem;
    flex: 2 1 24rem;
    min-width: min(100%, 22rem);
}

.ml-mateloop-id-strip__points li {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.28;
    color: #2f4a36;
}

.ml-mateloop-id-strip__point-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2f4a36;
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    margin-top: 0;
}

.ml-mateloop-id-strip__point-ico svg,
.ml-mateloop-id-strip__point-ico img {
    display: block;
    width: 2.1rem;
    height: 2.1rem;
    object-fit: contain;
}

.ml-mateloop-id-strip__point-text {
    display: block;
}

.ml-mateloop-id-strip__action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin-left: auto;
    flex: 0 0 auto;
    min-width: 13.5rem;
}

.ml-mateloop-id-strip__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1.5px solid #2f4a36;
    background: #fff;
    color: #2f4a36;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ml-mateloop-id-strip__btn--solid {
    background: #2f4a36;
    color: #fff;
}

.ml-mateloop-id-strip__btn--ghost:hover,
.ml-mateloop-id-strip__btn--ghost:focus-visible {
    background: #2f4a36;
    color: #fff;
}

.ml-mateloop-id-strip__btn--solid:hover,
.ml-mateloop-id-strip__btn--solid:focus-visible {
    background: #243b2b;
    border-color: #243b2b;
    color: #fff;
}

/* MateLoop ID landing */
.ml-mateloop-id-page {
    padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.ml-mateloop-id-page__wrap {
    max-width: 68rem;
}

.ml-mateloop-id-page__hero {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

@media (min-width: 860px) {
    .ml-mateloop-id-page__hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    }
}

.ml-mateloop-id-page__badge {
    display: inline-flex;
    margin: 0 0 0.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #d7e4d3;
    border: 1px solid rgba(70, 105, 78, 0.18);
    color: #2f4a36;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ml-mateloop-id-page__title {
    margin: 0 0 0.65rem;
    font-family: var(--ml-font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.45rem);
    color: var(--ml-ink);
    line-height: 1.15;
}

.ml-mateloop-id-page__lead {
    margin: 0 0 1.15rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--ml-muted);
}

.ml-mateloop-id-page__points {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--ml-ink);
    line-height: 1.55;
}

.ml-mateloop-id-page__points li + li {
    margin-top: 0.4rem;
}

.ml-mateloop-id-page__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.ml-mateloop-id-page__badges .ml-mateloop-id-page__badge {
    margin: 0;
}

.ml-mateloop-id-page__points--icons {
    padding-left: 0;
    list-style: none;
}

.ml-mateloop-id-page__points--icons li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.ml-mateloop-id-page__point-icon {
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.1rem;
    color: #1f6a3c;
}

.ml-mateloop-id-page__point-icon svg,
.ml-mateloop-id-page__feature-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ml-mateloop-id-page__features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.ml-mateloop-id-page__features li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.3;
    color: var(--ml-ink);
}

.ml-mateloop-id-page__feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    padding: 0.8rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(47, 74, 54, 0.1);
    color: #1f6a3c;
}

@media (max-width: 480px) {
    .ml-mateloop-id-page__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Personalised tags */
@font-face {
    font-family: "MLTag";
    src: url("../fonts/Montserrat-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-display: swap;
}

.ml-mateloop-id-page__size {
    grid-column: 1 / -1;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: #eef5ef;
    color: #2f4a36;
    font-size: 0.95rem;
}

.ml-mateloop-id-page__size svg {
    width: 1.1rem;
    height: 1.1rem;
    color: #1f6a3c;
}

.ml-mateloop-id-page__custom-link {
    grid-column: 1 / -1;
    justify-self: center;
    font-weight: 700;
    color: #1f6a3c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ml-mateloop-id-custom {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    padding: clamp(1.1rem, 2.5vw, 1.6rem);
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid rgba(70, 105, 78, 0.16);
    scroll-margin-top: 6rem;
}

.ml-mateloop-id-custom__title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: #2f4a36;
}

.ml-mateloop-id-custom__lead {
    margin: 0 0 1rem;
    color: #3d5a45;
    line-height: 1.5;
}

.ml-mateloop-id-custom__limits {
    margin: -0.4rem 0 1rem;
    padding: 0.55rem 0.8rem;
    border-radius: 0.6rem;
    background: #eef5ec;
    color: #2f4a37;
    font-size: 0.88rem;
    line-height: 1.45;
}

.ml-mateloop-id-row__count {
    float: right;
    font-weight: 600;
    color: #6b8570;
}

.ml-mateloop-id-row__count.is-over,
.ml-mateloop-id-row__name-error {
    color: #b3261e;
}

.ml-mateloop-id-row__name-error {
    font-size: 0.75rem;
    line-height: 1.35;
}

.ml-mateloop-id-custom__sizes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.ml-mateloop-id-size {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.9rem 0.5rem;
    border: 2px solid #d7e4d3;
    border-radius: 0.9rem;
    background: #f7faf5;
    color: #2f4a36;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}

.ml-mateloop-id-size:hover:not(:disabled) {
    border-color: #1f6a3c;
    transform: translateY(-1px);
}

.ml-mateloop-id-size:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ml-mateloop-id-size__dot {
    display: block;
    margin-bottom: 0.3rem;
    border-radius: 50%;
    border: 4px solid #1c5c3a;
    background: #fff;
}

.ml-mateloop-id-size__dot--small { width: 1.9rem; height: 1.9rem; }
.ml-mateloop-id-size__dot--medium { width: 2.3rem; height: 2.3rem; }
.ml-mateloop-id-size__dot--large { width: 2.6rem; height: 2.6rem; }

.ml-mateloop-id-size__label {
    font-weight: 800;
}

.ml-mateloop-id-size__dims {
    font-size: 0.8rem;
    color: #5b7263;
}

.ml-mateloop-id-size__price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1f7a3c;
}

.ml-mateloop-id-size__add {
    margin-top: 0.25rem;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: #1c5c3a;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.ml-mateloop-id-custom__body {
    display: grid;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 820px) {
    .ml-mateloop-id-custom__body {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
}

.ml-mateloop-id-custom__rows {
    display: grid;
    gap: 0.75rem;
}

.ml-mateloop-id-custom__empty {
    margin: 0;
    padding: 1rem;
    border: 2px dashed #d7e4d3;
    border-radius: 0.8rem;
    color: #5b7263;
    text-align: center;
}

.ml-mateloop-id-row {
    padding: 0.8rem 0.9rem;
    border-radius: 0.8rem;
    background: #f1f5ef;
}

.ml-mateloop-id-row__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #2f4a36;
}

.ml-mateloop-id-row__remove {
    border: 0;
    background: none;
    color: #8a2f2f;
    font: inherit;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

.ml-mateloop-id-row__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.ml-mateloop-id-order-form .ml-mateloop-id-row__size input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    min-height: 0;
    width: 1px;
    height: 1px;
    padding: 0;
}

.ml-mateloop-id-row__size span {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border: 1.5px solid #c9d9c5;
    border-radius: 999px;
    background: #fff;
    font-size: 0.85rem;
    cursor: pointer;
}

.ml-mateloop-id-row__size input:checked + span {
    border-color: #1c5c3a;
    background: #1c5c3a;
    color: #fff;
}

.ml-mateloop-id-row__size input:focus-visible + span {
    outline: 2px solid #f2c94c;
    outline-offset: 2px;
}

.ml-mateloop-id-row__colours {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0.45rem 0 0.55rem;
}

.ml-mateloop-id-row__colours-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2f4a36;
    margin-right: 0.15rem;
}

.ml-mateloop-id-row__colour {
    position: relative;
    cursor: pointer;
}

.ml-mateloop-id-order-form .ml-mateloop-id-row__colour input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ml-mateloop-id-row__colour span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem 0.28rem 0.4rem;
    border: 1.5px solid #c9d9c5;
    border-radius: 999px;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2f4a36;
}

.ml-mateloop-id-row__colour i {
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.ml-mateloop-id-row__colour input:checked + span {
    border-color: #1f3a28;
    box-shadow: 0 0 0 1px #1f3a28;
}

.ml-mateloop-id-row__colour input:focus-visible + span {
    outline: 2px solid #f2c94c;
    outline-offset: 2px;
}

.ml-mateloop-id-row__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.ml-mateloop-id-row__fields label {
    display: grid;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2f4a36;
}

.ml-mateloop-id-row__fields input {
    padding: 0.5rem 0.6rem;
    border: 1px solid #c9d9c5;
    border-radius: 0.5rem;
    font: inherit;
    background: #fff;
}

@media (max-width: 480px) {
    .ml-mateloop-id-custom__sizes { gap: 0.4rem; }
    .ml-mateloop-id-row__fields { grid-template-columns: 1fr; }
}

.ml-mateloop-id-preview {
    padding: 0.9rem;
    border-radius: 0.9rem;
    background: #f7f3ea;
    text-align: center;
}

.ml-mateloop-id-preview.is-idle .ml-mateloop-id-preview__tags {
    opacity: 0.6;
}

.ml-mateloop-id-preview__label {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2f4a36;
}

.ml-mateloop-id-preview__tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.ml-mateloop-id-preview__tag {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
}

.ml-tagsvg-rim { fill: var(--tag-accent, #1c5c3a); }
.ml-tagsvg-face { fill: #fbfbf8; }
.ml-tagsvg-hole { fill: #f7f3ea; }

.ml-tagsvg-name,
.ml-tagsvg-phone,
.ml-tagsvg-scan {
    font-family: "MLTag", "Montserrat", "Arial Black", sans-serif;
    font-weight: 800;
    fill: #1c5c3a;
    text-anchor: middle;
}

.ml-tagsvg-scan { fill: var(--tag-accent, #1c5c3a); }
.ml-tagsvg-name { font-size: 8.6px; }
.ml-tagsvg-phone { font-size: 4.6px; }
.ml-tagsvg-scan { font-size: 3.9px; }

.ml-mateloop-id-preview__note {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    color: #5b7263;
}

.ml-mateloop-id-summary {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.75);
}

.ml-mateloop-id-summary__stock {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    cursor: pointer;
}

.ml-mateloop-id-order-form .ml-mateloop-id-summary__stock {
    flex-direction: row;
    font-size: 0.95rem;
}

.ml-mateloop-id-order-form .ml-mateloop-id-summary__stock input {
    flex: 0 0 auto;
    min-height: 0;
    margin-top: 0.2rem;
    padding: 0;
    width: 1.15rem;
    height: 1.15rem;
    accent-color: #1c5c3a;
}

.ml-mateloop-id-summary__stock span {
    display: grid;
    gap: 0.1rem;
    color: #2f4a36;
}

.ml-mateloop-id-summary__stock small {
    color: #5b7263;
}

.ml-mateloop-id-summary__stock.is-claimed {
    opacity: 0.55;
    cursor: not-allowed;
}

.ml-mateloop-id-summary__stock.is-claimed strong {
    text-decoration: line-through;
}

.ml-mateloop-id-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px dashed #c9d9c5;
}

.ml-mateloop-id-extra__text {
    display: grid;
    gap: 0.1rem;
    color: #2f4a36;
}

.ml-mateloop-id-extra__text small {
    color: #5b7263;
}

.ml-mateloop-id-extra__stepper {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    border: 1px solid #c9d9c5;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.ml-mateloop-id-extra__stepper button {
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    background: transparent;
    color: #1c5c3a;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.ml-mateloop-id-extra__stepper button:disabled {
    color: #b9c7bb;
    cursor: default;
}

.ml-mateloop-id-order-form .ml-mateloop-id-extra__stepper input {
    width: 2.6rem;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #1f3a28;
    -moz-appearance: textfield;
    appearance: textfield;
}

.ml-mateloop-id-extra__stepper input::-webkit-outer-spin-button,
.ml-mateloop-id-extra__stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ml-mateloop-id-summary__claimed {
    margin: 0.6rem 0 0;
    padding: 0.55rem 0.75rem;
    border-radius: 0.55rem;
    background: #fdf1d6;
    border: 1px solid #f2c94c;
    color: #6b4a00;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.ml-mateloop-id-summary__claimed[hidden] {
    display: none;
}

.ml-mateloop-id-summary__lines {
    margin: 0.75rem 0 0;
    padding: 0.6rem 0 0;
    border-top: 1px solid rgba(70, 105, 78, 0.18);
    list-style: none;
}

.ml-mateloop-id-summary__lines:empty {
    display: none;
}

.ml-mateloop-id-summary__lines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.15rem 0;
    font-size: 0.92rem;
    color: #2f4a36;
}

.ml-mateloop-id-summary__total {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(70, 105, 78, 0.18);
    color: #2f4a36;
}

.ml-mateloop-id-summary__total strong {
    font-size: 1.15rem;
}

/* Price badge: crossed-out price, big $0, yellow FREE NOW brush */
.ml-mateloop-id-price {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
}

.ml-mateloop-id-price--hero {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 0.5rem;
}

.ml-mateloop-id-price__was {
    position: relative;
    font-size: 1.9rem;
    font-weight: 800;
    color: #3a3a3a;
    text-decoration: none;
}

.ml-mateloop-id-price__was::after {
    content: "";
    position: absolute;
    left: -6%;
    right: -6%;
    top: 52%;
    height: 3px;
    border-radius: 3px;
    background: #d9412b;
    transform: rotate(-14deg);
}

.ml-mateloop-id-price__now {
    padding: 0.05rem 0.9rem;
    border: 3px solid #f2c94c;
    border-radius: 50% 46% 52% 48% / 55% 50% 50% 45%;
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1;
    color: #1f7a3c;
    transform: rotate(-3deg);
}

.ml-mateloop-id-price__free {
    padding: 0.45rem 1rem;
    background: #f7d34a;
    border-radius: 0.35rem 1.2rem 0.4rem 1rem;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #1d1d1d;
    transform: rotate(-4deg);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}

.ml-mateloop-id-price--order {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    padding: 0.5rem 0.9rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 2px 10px rgba(47, 74, 54, 0.1);
}

.ml-mateloop-id-price--order .ml-mateloop-id-price__was {
    font-size: 1.5rem;
}

.ml-mateloop-id-price--order .ml-mateloop-id-price__now {
    font-size: 2.8rem;
}

.ml-mateloop-id-price--order .ml-mateloop-id-price__free {
    font-size: 1.05rem;
    padding: 0.35rem 0.8rem;
}

.ml-mateloop-id-price__free {
    white-space: nowrap;
}

.ml-mateloop-id-page__order-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

@media (max-width: 600px) {
    .ml-mateloop-id-page__order-head {
        flex-direction: column;
    }

    .ml-mateloop-id-price--order {
        flex-direction: row;
        align-items: center;
    }
}

.ml-mateloop-id-page__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.ml-mateloop-id-page__photo {
    margin: 0;
}

.ml-mateloop-id-page__photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    background: #f3efe6;
    box-shadow: 0 10px 28px rgba(47, 74, 54, 0.1);
}

.ml-mateloop-id-page__photo figcaption,
.ml-mateloop-id-page__app figcaption {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: var(--ml-muted);
    text-align: center;
}

.ml-mateloop-id-page__how {
    display: grid;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
    margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
    padding: clamp(1.15rem, 2.5vw, 1.5rem);
    border-radius: 1.15rem;
    background:
        linear-gradient(135deg, rgba(215, 228, 211, 0.55) 0%, rgba(255, 255, 255, 0.9) 55%),
        #fff;
    border: 1px solid rgba(70, 105, 78, 0.12);
}

@media (min-width: 860px) {
    .ml-mateloop-id-page__how {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }
}

.ml-mateloop-id-page__how-title {
    margin: 0 0 0.5rem;
    font-family: var(--ml-font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    color: var(--ml-ink);
}

.ml-mateloop-id-page__how-lead {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ml-muted);
}

.ml-mateloop-id-page__postage {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2f4a36;
    font-weight: 600;
}

.ml-mateloop-id-page__app {
    margin: 0;
}

.ml-mateloop-id-page__app img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.85rem;
    box-shadow: 0 12px 32px rgba(47, 74, 54, 0.12);
}

.ml-mateloop-id-page__interest {
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 1rem;
    background: #d7e4d3;
    border: 1px solid rgba(70, 105, 78, 0.14);
}

.ml-mateloop-id-page__interest-title {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
    color: #2f4a36;
}

.ml-mateloop-id-page__interest-lead {
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
    color: #3d5a45;
}

.ml-mateloop-id-page__order {
    padding: 1.25rem 1.25rem 1.4rem;
    border-radius: 1.15rem;
    background: #d7e4d3;
    border: 1px solid rgba(70, 105, 78, 0.14);
}

.ml-mateloop-id-page__order-title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    color: #2f4a36;
}

.ml-mateloop-id-page__order-lead {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #3d5a45;
    line-height: 1.5;
}

.ml-mateloop-id-page__order-quote {
    margin: 0 0 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.65);
    color: #2f4a36;
    font-size: 0.95rem;
}

.ml-mateloop-id-page__order-flash {
    margin: 0 0 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.7);
    color: #3d5a45;
    font-size: 0.92rem;
}

.ml-mateloop-id-page__order-flash--err {
    background: #f8e0e0;
    color: #8a2f2f;
}

.ml-mateloop-id-order-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.75rem;
}

@media (max-width: 640px) {
    .ml-mateloop-id-order-form__grid {
        grid-template-columns: 1fr;
    }
}

.ml-mateloop-id-order-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2f4a36;
}

.ml-mateloop-id-order-form__wide {
    grid-column: 1 / -1;
}

.ml-mateloop-id-order-form input,
.ml-mateloop-id-order-form select {
    min-height: 2.55rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(70, 105, 78, 0.28);
    background: #fff;
    color: var(--ml-ink);
    font-size: 0.95rem;
    font-weight: 400;
}

.ml-mateloop-id-order-form__note {
    margin: 0.9rem 0 0.85rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #3d5a45;
}

.ml-mateloop-id-order-form__btn {
    min-height: 2.7rem;
    padding: 0.55rem 1.25rem;
    border-radius: 0.65rem;
    border: none;
    background: #2f4a36;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.ml-mateloop-id-order-form__btn:hover,
.ml-mateloop-id-order-form__btn:focus-visible {
    background: #243a2b;
}

.ml-mateloop-id-order-form__btn[aria-busy="true"] {
    opacity: 0.8;
    cursor: progress;
}

.ml-mateloop-id-interest-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.ml-mateloop-id-interest-form__input {
    flex: 1 1 10rem;
    min-height: 2.55rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(70, 105, 78, 0.28);
    background: #fff;
    color: var(--ml-ink);
    font-size: 0.95rem;
}

.ml-mateloop-id-interest-form__btn {
    min-height: 2.55rem;
    padding: 0.5rem 1.1rem;
    border-radius: 0.65rem;
    border: none;
    background: #2f4a36;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.ml-mateloop-id-interest-form__btn:hover,
.ml-mateloop-id-interest-form__btn:focus-visible {
    background: #243a2b;
}

.ml-mateloop-id-interest-form__btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.ml-mateloop-id-interest-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ml-mateloop-id-interest-form__status {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
}

.ml-mateloop-id-interest-form__status.is-ok {
    color: #2f4a36;
}

.ml-mateloop-id-interest-form__status.is-err {
    color: #8a2f2f;
}

/* Activate MateLoop ID */
.ml-activate-id {
    padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2.75rem, 5vw, 3.75rem);
    background:
        radial-gradient(ellipse 80% 55% at 10% 0%, rgba(215, 228, 211, 0.7) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 95% 10%, rgba(230, 138, 69, 0.08) 0%, transparent 50%),
        #fff;
}

.ml-activate-id__wrap {
    max-width: 28rem;
}

.ml-activate-id__intro {
    margin-bottom: 1.25rem;
}

.ml-activate-id__mark {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 0 0.75rem;
    object-fit: contain;
}

.ml-activate-id__badge {
    display: inline-flex;
    margin: 0 0 0.65rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #d7e4d3;
    border: 1px solid rgba(70, 105, 78, 0.18);
    color: #2f4a36;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ml-activate-id__title {
    margin: 0 0 0.55rem;
    font-family: var(--ml-font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--ml-ink, #3e2723);
    line-height: 1.15;
}

.ml-activate-id__lead {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--ml-muted, #6d4c41);
}

.ml-activate-id__steps {
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.ml-activate-id__steps li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    padding: 0.65rem 0.4rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(47, 74, 54, 0.12);
}

.ml-activate-id__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: #2f4a36;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.ml-activate-id__step-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: #2f4a36;
    line-height: 1.25;
}

.ml-activate-id__flash {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.4;
}

.ml-activate-id__flash--error {
    background: #fceceb;
    border: 1px solid rgba(138, 47, 47, 0.2);
    color: #8a2f2f;
}

.ml-activate-id__card {
    padding: 1.25rem 1.3rem 1.4rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid rgba(47, 74, 54, 0.12);
    box-shadow: 0 12px 32px rgba(47, 74, 54, 0.07);
}

.ml-activate-id__card-title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    color: #2f4a36;
}

.ml-activate-id__card-lead {
    margin: 0 0 1.05rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #3d5a45;
}

.ml-activate-id__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ml-activate-id__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.65rem;
    padding: 0.55rem 1.15rem;
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ml-activate-id__btn--accent {
    background: var(--ml-accent, #e68a45);
    color: #fff;
}

.ml-activate-id__btn--accent:hover,
.ml-activate-id__btn--accent:focus-visible {
    background: var(--ml-accent-hover, #d6742e);
    color: #fff;
}

.ml-activate-id__btn--ghost {
    background: #fff;
    color: #2f4a36;
    border: 1.5px solid rgba(47, 74, 54, 0.28);
}

.ml-activate-id__btn--ghost:hover,
.ml-activate-id__btn--ghost:focus-visible {
    background: #f4faf6;
    color: #2f4a36;
}

.ml-activate-id__btn--wide {
    width: 100%;
    margin-top: 0.25rem;
}

.ml-activate-id__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0 0 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ml-ink, #3e2723);
}

.ml-activate-id__field input {
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.85rem 0.95rem;
    border-radius: 0.75rem;
    border: 1.5px solid rgba(47, 74, 54, 0.22);
    background: #f8fbf9;
    font-size: 1.15rem;
    color: #2f4a36;
}

.ml-activate-id__field input:focus {
    outline: 2px solid rgba(230, 138, 69, 0.45);
    border-color: var(--ml-accent, #e68a45);
    background: #fff;
}

.ml-activate-id__foot {
    margin: 1.15rem 0 0;
    text-align: center;
    font-size: 0.92rem;
}

.ml-activate-id__foot a {
    color: #2f4a36;
    font-weight: 700;
    text-decoration: none;
}

.ml-activate-id__foot a:hover,
.ml-activate-id__foot a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .ml-mateloop-id-strip {
        padding: 0.2rem 0 0.55rem;
    }

    .ml-mateloop-id-strip__bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding: 0.85rem 0.95rem;
    }

    .ml-mateloop-id-strip__intro {
        flex: 0 0 auto;
        min-width: 0;
        gap: 0.55rem;
    }

    .ml-mateloop-id-strip__mark {
        width: 2.1rem;
        height: 2.1rem;
    }

    .ml-mateloop-id-strip__title {
        font-size: 1rem;
    }

    .ml-mateloop-id-strip__lead {
        font-size: 0.84rem;
    }

    .ml-mateloop-id-strip__points {
        flex: 0 0 auto;
        min-width: 0;
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .ml-mateloop-id-strip__points li {
        gap: 0.45rem;
        font-size: 0.82rem;
        line-height: 1.2;
    }

    .ml-mateloop-id-strip__point-ico,
    .ml-mateloop-id-strip__point-ico svg,
    .ml-mateloop-id-strip__point-ico img {
        width: 1.65rem;
        height: 1.65rem;
    }

    .ml-mateloop-id-strip__point-text br {
        display: none;
    }

    .ml-mateloop-id-strip__action {
        align-items: stretch;
        margin-left: 0;
        min-width: 0;
        width: 100%;
        gap: 0.4rem;
        flex: 0 0 auto;
    }

    .ml-mateloop-id-strip__btn {
        min-height: 2.3rem;
        width: 100%;
        font-size: 0.86rem;
        padding: 0.4rem 0.85rem;
    }

    .ml-home-hub__species {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .ml-home-hub__species--pair {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .ml-home-hub__species--pair > .ml-home-hub-card {
        flex: none;
        width: 100%;
        max-width: none;
    }

    .ml-home-hub-card--has-photo {
        min-height: 12.5rem;
    }

    .ml-home-hub-card__photo {
        width: min(52%, 14rem);
    }

    .ml-home-hub-card__links {
        grid-template-columns: 1fr 1fr;
        width: min(100%, 21.25rem);
    }

    .ml-home-hub-card__link {
        font-size: 0.9rem;
        min-height: 3rem;
    }

    .ml-home-hub__more {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ml-home-strip__frame {
        aspect-ratio: 1920 / 380;
        min-height: 5.25rem;
    }

    .ml-home-strip__copy {
        left: calc(10% + 0.5rem);
        width: min(62%, 20rem);
        max-width: none;
        padding: 0.65rem 0.85rem 0.65rem 0;
        gap: 0.26rem;
        border-radius: 0;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        transform: none;
    }

    .ml-home-strip__kicker {
        font-size: clamp(0.76rem, 2.35vw, 0.88rem);
        line-height: 1.3;
    }

    .ml-home-strip__line {
        font-size: clamp(1.08rem, 3.15vw, 1.28rem);
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .ml-home-adopt-hero__inner {
        padding: 0.65rem 0 0.75rem;
        gap: 0.5rem;
    }

    .ml-home-adopt-hero__line {
        font-size: 1.08rem;
        max-width: 18rem;
    }

    .ml-home-adopt-hero__btn {
        min-height: 2.2rem;
        padding: 0.42rem 1rem;
        font-size: 0.72rem;
    }

    .ml-home-strip__frame {
        aspect-ratio: 1920 / 440;
        min-height: 6.15rem;
    }

    .ml-home-strip__img {
        object-position: center 40%;
    }

    .ml-home-strip__copy {
        left: 0.7rem;
        width: min(68%, 16.5rem);
        max-width: none;
        padding: 0.55rem 0.65rem 0.55rem 0;
        gap: 0.18rem;
        border-radius: 0;
        background: none;
        box-shadow: none;
        transform: none;
    }

    .ml-home-strip__kicker {
        font-size: 0.7rem;
        line-height: 1.28;
    }

    .ml-home-strip__line {
        font-size: 0.98rem;
        line-height: 1.18;
    }

    .ml-home-hub__more {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ml-home-hub-pill {
        min-height: 3.15rem;
        font-size: 1.02rem;
    }

    .ml-home-hub-card__species {
        width: 3.1rem;
        height: 3.1rem;
    }

    .ml-home-hub-card__title {
        font-size: 1.28rem;
    }

    .ml-home-hub-card__photo {
        width: min(48%, 11.5rem);
    }

    .ml-home-hub-card__links {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 0.4rem;
        padding: 0 0.7rem 0.9rem;
    }

    .ml-home-hub-card__link {
        font-size: 0.84rem;
        min-height: 2.9rem;
        padding: 0.4rem 0.45rem;
    }

    .ml-home-hub-card__glyph {
        width: 1.4rem;
        height: 1.4rem;
    }

    .ml-home-hub-ico {
        width: 1.3rem;
        height: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ml-home-hub-pill,
    .ml-home-hub-card__link {
        transition: none;
    }

    .ml-home-hub-pill:hover,
    .ml-home-hub-pill:focus-visible {
        transform: none;
    }
}

/* Homepage listing strips (adoption + featured marketplace) */
.ml-home-listing-strip {
    margin-bottom: 2.5rem;
}

.ml-home-listing-strip--adoption-band {
    background: #eef4ec;
    border-radius: calc(var(--ml-radius) + 4px);
    padding: 1.25rem 1.15rem 1.4rem;
    border: 1px solid rgba(90, 120, 95, 0.12);
}

.ml-home-listing-strip--adoption-band .ml-section-title {
    margin-bottom: 1rem;
}

.ml-home-listing-strip__row {
    display: block;
}

.ml-home-listing-strip--with-cta .ml-home-listing-strip__row {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

.ml-home-listing-strip--with-cta .ml-home-listing-strip__scroller {
    flex: 1 1 auto;
    min-width: 0;
}

.ml-home-listing-strip__scroller {
    position: relative;
}

.ml-home-listing-strip__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
}

.ml-home-listing-strip__track::-webkit-scrollbar {
    display: none;
}

.ml-home-listing-strip__track > .ml-adoption-card {
    flex: 0 0 calc((100% - 3rem) / 4);
    min-width: calc((100% - 3rem) / 4);
    scroll-snap-align: start;
    height: auto;
}

/* Adoption: 3 pet slots + pinned CTA (CTA not in the scroll track) */
.ml-home-listing-strip--with-cta .ml-home-listing-strip__track > .ml-adoption-card {
    flex-basis: calc((100% - 2rem) / 3);
    min-width: calc((100% - 2rem) / 3);
}

.ml-home-adoption-cta {
    flex: 0 0 calc((100% - 3rem) / 4);
    width: calc((100% - 3rem) / 4);
    max-width: calc((100% - 3rem) / 4);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.55rem;
    padding: 1.15rem 1rem 1.2rem;
    border-radius: var(--ml-radius);
    background: #d7e4d3;
    border: 1px solid rgba(70, 105, 78, 0.14);
    color: #2f4a36;
    min-height: 100%;
}

.ml-home-adoption-cta__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    margin: 0 auto 0.15rem;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}

.ml-home-adoption-cta__paw {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ml-home-adoption-cta__title {
    margin: 0;
    font-family: var(--ml-font-display);
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    font-weight: 700;
    line-height: 1.2;
    color: #2a4532;
}

.ml-home-adoption-cta__lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.35;
    color: rgba(47, 74, 54, 0.88);
}

.ml-home-adoption-cta__flourish {
    display: block;
    width: min(11.5rem, 88%);
    height: auto;
    margin: 0.15rem auto 0.1rem;
    background: transparent;
}

.ml-home-adoption-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: auto;
    min-height: 2.55rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: #3d6b4f;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.15s ease, transform 0.15s ease;
}

.ml-home-adoption-cta__btn:hover,
.ml-home-adoption-cta__btn:focus-visible {
    background: #345c44;
    color: #fff;
}

.ml-home-adoption-cta__btn-arrow {
    font-size: 1rem;
    line-height: 1;
}

.ml-home-listing-strip__track .ml-adoption-card__photo--empty {
    background:
        linear-gradient(145deg, #fff0e4 0%, #f5e6d8 55%, #efe0d0 100%);
}

.ml-home-listing-strip__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    margin: 0;
    padding: 0;
    border: 1px solid var(--ml-card-border);
    border-radius: 999px;
    background: rgba(255, 250, 245, 0.96);
    box-shadow: 0 4px 14px rgba(62, 39, 35, 0.14);
    color: var(--ml-ink);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.ml-home-listing-strip__arrow:hover:not(:disabled) {
    border-color: rgba(230, 138, 69, 0.35);
    box-shadow: 0 6px 18px rgba(62, 39, 35, 0.16);
}

.ml-home-listing-strip__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.ml-home-listing-strip__arrow--prev {
    left: -0.2rem;
}

.ml-home-listing-strip__arrow--next {
    right: -0.2rem;
}

.ml-home-listing-strip--with-cta .ml-home-listing-strip__arrow--next {
    right: 0.15rem;
}

.ml-home-listing-strip__arrow[hidden] {
    display: none !important;
}

.ml-home-featured {
    margin-bottom: 2.5rem;
}

.ml-home-featured__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.ml-home-featured__grid > .ml-adoption-card {
    min-width: 0;
    height: 100%;
}

.ml-home-featured__grid .ml-adoption-card__photo--empty {
    background:
        linear-gradient(145deg, #fff0e4 0%, #f5e6d8 55%, #efe0d0 100%);
}

.ml-home-featured__all {
    margin: 1.1rem 0 0;
    font-weight: 750;
}

.ml-home-featured__all a {
    color: var(--ml-accent);
    text-decoration: none;
}

.ml-home-featured__all a:hover,
.ml-home-featured__all a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 1000px) {
    .ml-home-listing-strip__track > .ml-adoption-card {
        flex-basis: calc((100% - 2rem) / 3);
        min-width: calc((100% - 2rem) / 3);
    }

    .ml-home-listing-strip--with-cta .ml-home-listing-strip__track > .ml-adoption-card {
        flex-basis: calc((100% - 1rem) / 2);
        min-width: calc((100% - 1rem) / 2);
    }

    .ml-home-adoption-cta {
        flex-basis: calc((100% - 3rem) / 4);
        width: calc((100% - 3rem) / 4);
        max-width: calc((100% - 3rem) / 4);
    }

    .ml-home-featured__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ml-home-listing-strip__track > .ml-adoption-card {
        flex-basis: calc((100% - 0.75rem) / 2);
        min-width: calc((100% - 0.75rem) / 2);
    }

    .ml-home-listing-strip--with-cta .ml-home-listing-strip__row {
        flex-direction: column;
    }

    .ml-home-listing-strip--with-cta .ml-home-adoption-cta {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        min-height: 14rem;
    }

    .ml-home-listing-strip--with-cta .ml-home-listing-strip__track > .ml-adoption-card {
        flex-basis: calc((100% - 0.75rem) / 2);
        min-width: calc((100% - 0.75rem) / 2);
    }

    .ml-home-listing-strip__arrow {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 1.3rem;
    }

    .ml-home-featured__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 420px) {
    .ml-home-listing-strip__track > .ml-adoption-card {
        flex-basis: 100%;
        min-width: 100%;
    }

    .ml-home-listing-strip--with-cta .ml-home-listing-strip__track > .ml-adoption-card {
        flex-basis: 100%;
        min-width: 100%;
    }

    .ml-home-featured__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ml-home-listing-strip__track {
        scroll-behavior: auto;
    }

    .ml-home-listing-strip__track .ml-adoption-card__link:hover .ml-adoption-card__name,
    .ml-home-listing-strip__track .ml-adoption-card__link:focus-visible .ml-adoption-card__name,
    .ml-home-featured__grid .ml-adoption-card__link:hover .ml-adoption-card__name,
    .ml-home-featured__grid .ml-adoption-card__link:focus-visible .ml-adoption-card__name {
        transition: none;
    }
}

.ml-home-faq {
    margin-top: 2.5rem;
}

.ml-home-faq__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin: 0;
}

.ml-home-faq__item {
    margin: 0;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--ml-card-border);
    background: #fff;
    box-shadow: var(--ml-shadow);
}

.ml-home-faq__item dt {
    font-family: var(--ml-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ml-ink);
    margin: 0 0 0.4rem;
}

.ml-home-faq__item dd {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--ml-ink-muted);
}

.ml-home-faq__links {
    display: block;
    margin-top: 0.55rem;
    font-weight: 700;
}

.ml-home-faq__links a {
    color: var(--ml-accent);
    text-decoration: none;
}

.ml-home-faq__links a:hover,
.ml-home-faq__links a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .ml-home-faq__list {
        grid-template-columns: 1fr;
    }
}

/* Adoption fee — donation on application / contact organisation */
.ml-sell-adoption-fee-opts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.35rem 0 0.45rem;
}

.ml-field--adoption-fee .ml-sell-adoption-fee-opt {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--ml-ink, #3e2723);
    cursor: pointer;
}

.ml-sell-adoption-fee-opt input[type='radio'] {
    width: 13px;
    height: 13px;
    border-width: 1.5px;
}

.ml-sell-adoption-fee-opt input[type='radio']:checked {
    box-shadow: inset 0 0 0 2px #fff;
}

.ml-sell-adoption-fee-opt input[type='radio']:focus,
.ml-sell-adoption-fee-opt input[type='radio']:focus-visible {
    box-shadow: 0 0 0 2px rgba(230, 138, 69, 0.22);
}

.ml-sell-adoption-fee-opt input[type='radio']:checked:focus,
.ml-sell-adoption-fee-opt input[type='radio']:checked:focus-visible {
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px rgba(230, 138, 69, 0.22);
}

.ml-sell-subfieldset .ml-sell-yesno-opt {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.45rem 1rem 0.45rem 0;
    font-weight: 600;
    cursor: pointer;
}

.ml-field--adoption-fee .ml-price-input-wrap[hidden] {
    display: none !important;
}

/* Buyer — book a pet service */
.ml-svc-buyer-book {
    max-width: 960px;
}

.ml-svc-buyer-book__back {
    margin: 0 0 0.75rem;
}

.ml-svc-buyer-book__head {
    margin-bottom: 1.25rem;
}

.ml-svc-buyer-book__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 1.5rem 2rem;
    align-items: start;
}

.ml-svc-buyer-book__form {
    max-width: none;
    margin: 0;
}

.ml-svc-buyer-book__panel {
    border: 1px solid #e0d6cc;
    border-radius: 12px;
    background: #fff;
    padding: 1rem 1.1rem 1.1rem;
    margin: 0 0 1rem;
}

.ml-svc-buyer-book__legend {
    font-family: var(--ml-font-display, inherit);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ml-ink, #3b2a22);
    padding: 0 0.15rem;
    margin-bottom: 0.35rem;
}

.ml-svc-buyer-book__hint {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ml-ink-muted, #6f5b4f);
}

.ml-svc-buyer-book__when-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
}

.ml-svc-buyer-book__field {
    margin-bottom: 0;
}

.ml-svc-buyer-book__field--count {
    max-width: 12rem;
    margin-bottom: 0.75rem;
}

.ml-svc-buyer-book__date-warn {
    margin: 0.5rem 0 0;
    font-size: 0.84rem;
    color: #9a3412;
}

.ml-svc-buyer-book__pets {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.ml-svc-buyer-book__pet-row {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.5rem 0.75rem;
    align-items: start;
    padding: 0.65rem 0.75rem;
    border: 1px solid #ebe3da;
    border-radius: 10px;
    background: #faf7f3;
}

.ml-svc-buyer-book__pet-row-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ml-ink-muted, #6f5b4f);
    padding-top: 0.45rem;
}

.ml-svc-buyer-book__pet-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.65rem;
}

.ml-svc-buyer-book__pet-fields--dog {
    grid-template-columns: 1fr;
}

.ml-svc-buyer-book__pet-fields .ml-field {
    margin-bottom: 0;
}

.ml-svc-buyer-book__aside {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ml-svc-buyer-book__summary,
.ml-svc-buyer-book__contact {
    border: 1px solid #e0d6cc;
    border-radius: 12px;
    background: #fff;
    padding: 1rem 1.1rem 1.1rem;
}

.ml-svc-buyer-book__summary-thumb {
    border-radius: 10px;
    overflow: hidden;
    background: #f3eee8;
    margin-bottom: 0.75rem;
    aspect-ratio: 4 / 3;
}

.ml-svc-buyer-book__summary-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ml-svc-buyer-book__summary-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ml-ink, #3b2a22);
}

.ml-svc-buyer-book__summary-loc,
.ml-svc-buyer-book__summary-meta {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--ml-ink-muted, #6f5b4f);
}

.ml-svc-buyer-book__summary-meta {
    margin-top: 0.35rem;
}

.ml-svc-buyer-book__contact-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ml-ink, #3b2a22);
}

.ml-svc-buyer-book__contact .ml-field {
    margin-bottom: 0.75rem;
}

.ml-svc-buyer-book__submit {
    width: 100%;
    margin-top: 0.35rem;
}

.ml-svc-buyer-book input[type="date"] {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 820px) {
    .ml-svc-buyer-book__layout {
        grid-template-columns: 1fr;
    }

    .ml-svc-buyer-book__aside {
        position: static;
        order: -1;
    }

    .ml-svc-buyer-book__summary {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 0.75rem 1rem;
        align-items: center;
    }

    .ml-svc-buyer-book__summary-thumb {
        margin-bottom: 0;
        aspect-ratio: 1;
    }
}

@media (max-width: 560px) {
    .ml-svc-buyer-book__when-row,
    .ml-svc-buyer-book__pet-fields {
        grid-template-columns: 1fr;
    }

    .ml-svc-buyer-book__pet-row {
        grid-template-columns: 1fr;
    }

    .ml-svc-buyer-book__pet-row-label {
        padding-top: 0;
    }

    .ml-svc-buyer-book__summary {
        grid-template-columns: 1fr;
    }
}

/* ===== Reptiles (contact-seller only, licence warnings) ===== */
.ml-home-hub-card--reptile .ml-home-hub-card__link .ml-home-hub-ico {
    color: #5b7f3a;
}

.ml-reptile-rules {
    margin-top: 1rem;
    border: 1px solid #f0c9a8;
    background: #fff7f0;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    text-align: left;
}
.ml-reptile-rules summary {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    list-style: none;
}
.ml-reptile-rules summary::-webkit-details-marker { display: none; }
.ml-reptile-rules summary strong { color: #b4501f; }
.ml-reptile-rules summary strong::after { content: ' ▾'; font-size: 0.85em; }
.ml-reptile-rules[open] summary strong::after { content: ' ▴'; }
.ml-reptile-rules summary span { font-size: 0.92rem; color: #6d4c41; }
.ml-reptile-rules ul { margin: 0.7rem 0 0.4rem 1.1rem; padding: 0; font-size: 0.92rem; line-height: 1.5; }
.ml-reptile-rules li { margin-bottom: 0.3rem; }
.ml-reptile-rules__statement { margin: 0.5rem 0 0; font-weight: 600; font-size: 0.9rem; color: #4e342e; }
.ml-reptile-rules__more { margin: 0.5rem 0 0; font-size: 0.9rem; }
.ml-reptile-rules__more a { color: #b4501f; font-weight: 700; }
.ml-reptile-licence-page { padding-top: 1.5rem; padding-bottom: 2.5rem; }
.ml-reptile-licence-page .ml-legal-prose h2 { margin-top: 1.4rem; }
.ml-reptile-licence-page__ack { margin-top: 1.5rem; }
.ml-reptile-licence-page__ack .ml-btn { margin-top: 0.9rem; width: 100%; }
.ml-reptile-licence-page__ack .ml-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ml-reptile-licence-page__alt { margin-top: 1rem; font-size: 0.92rem; color: #6d4c41; }
.ml-reptile-licence-page__alt a { color: #b4501f; font-weight: 700; }

.ml-reptile-licence__nums[hidden],
.ml-reptile-state-box[hidden] { display: none; }
.ml-reptile-state-box,
.ml-reptile-note {
    margin: 0.75rem 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #fff4e5;
    border: 1px solid #f3d2a6;
    font-size: 0.92rem;
    line-height: 1.5;
}
.ml-reptile-state-box p { margin: 0.35rem 0 0.5rem; }

.ml-reptile-ack {
    margin: 0.4rem 0 0.9rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 2px solid #e68a45;
    background: #fff7f0;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.ml-reptile-ack strong { display: block; margin-bottom: 0.45rem; color: #b4501f; }
.ml-reptile-ack__line { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.9rem; line-height: 1.45; cursor: pointer; }
.ml-reptile-ack__line input { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; accent-color: #e68a45; }
.ml-reptile-ack__err { color: #c62828; display: block; margin-top: 0.4rem; }
.ml-reptile-ack__err[hidden] { display: none; }
.ml-reptile-ack.is-attention { box-shadow: 0 0 0 4px rgba(230, 138, 69, 0.35); }
.ml-reptile-ack.is-done { border-color: #7cb342; background: #f4faee; }
.ml-reptile-ack.is-done strong { color: #558b2f; }
.ml-reptile-gated [data-ml-message-about] { opacity: 0.5; }

.ml-reptile-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 0.7rem; }
.ml-reptile-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f1ece8;
    color: #5d4037;
}
.ml-reptile-badge--licence { background: #fff0e6; color: #b4501f; }
.ml-reptile-badge--venom { background: #c62828; color: #fff; }
.ml-reptile-badge--delivery { background: #eef5e6; color: #33691e; }
.ml-reptile-statement {
    margin: 0 0 0.8rem;
    padding: 0.6rem 0.8rem;
    border-left: 4px solid #e68a45;
    background: #fff7f0;
    font-weight: 600;
    font-size: 0.92rem;
    color: #4e342e;
}
.ml-reptile-venom-warn {
    margin: 0 0 0.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    background: #fdecea;
    color: #8e1b1b;
    font-size: 0.9rem;
}
.ml-reptile-small { margin: 0.35rem 0 0.6rem; font-size: 0.82rem; color: #8d6e63; }
.ml-reptile-buyer-warn {
    margin-top: 0.9rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: #fbf6f2;
    border: 1px solid #eadbd0;
    font-size: 0.88rem;
    line-height: 1.5;
}
.ml-reptile-buyer-warn ul { margin: 0.45rem 0 0 1.05rem; padding: 0; }
.ml-pet-facts .ml-reptile-badges { margin: 0.6rem 1.2rem 0.7rem; }
.ml-pet-facts .ml-reptile-statement,
.ml-pet-facts .ml-reptile-venom-warn { margin: 0 1.2rem 0.8rem; }
.ml-pet-facts .ml-reptile-small { margin: 0.35rem 1.2rem 0.8rem; }
.ml-pet-facts .ml-reptile-buyer-warn { margin: 0.9rem 1.2rem 1.2rem; }
.ml-reptile-buyer-warn li { margin-bottom: 0.25rem; }
.ml-reptile-buyer-warn__you {
    margin: 0.45rem 0;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    background: #fff0e6;
    color: #8a3a12;
    font-weight: 600;
}

[id^="sellReptile"][hidden],
[id^="sellBird"][hidden] { display: none !important; }
.ml-reptile-state-box .ml-sell-check-line { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.5rem; }
.ml-reptile-state-box .ml-sell-check-line input { margin-top: 0.2rem; flex: 0 0 auto; }
.ml-field[hidden] { display: none !important; }

.ml-mateloop-id-fulfil {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.6rem;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
}
.ml-mateloop-id-fulfil legend {
    grid-column: 1 / -1;
    margin-bottom: 0.45rem;
    padding: 0;
    font-weight: 700;
    color: #2f4a36;
}
.ml-mateloop-id-order-form .ml-mateloop-id-fulfil__opt {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(70, 105, 78, 0.28);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
}
.ml-mateloop-id-order-form .ml-mateloop-id-fulfil__opt:has(input:checked) {
    border: 2px solid #1c5c3a;
    background: #f3f9f2;
}
.ml-mateloop-id-order-form .ml-mateloop-id-fulfil__opt input {
    flex: 0 0 auto;
    min-height: 0;
    margin-top: 0.2rem;
    padding: 0;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #1c5c3a;
}
.ml-mateloop-id-fulfil__opt span { display: grid; gap: 0.15rem; color: #2f4a36; }
.ml-mateloop-id-fulfil__opt small { color: #5b7263; font-size: 0.82rem; line-height: 1.35; }
.ml-mateloop-id-order-form [data-ship-field][hidden] { display: none; }
