/* 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;
}

.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;
}

/* 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;
}



@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;
    }
}

.ml-discover-results {
    display: grid;
    gap: 0.85rem;
    margin-top: 2.25rem;
}

.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__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--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-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;
}

/* 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-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-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;
    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;
}

.ml-seller-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    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-initials {
    font-family: var(--ml-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: hsl(var(--av-h, 32), 35%, 28%);
}

.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 0 12px;
}

.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-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: otherwise grid auto-placement puts this under the sidebar column. */
.ml-discover-layout > .ml-discover-footer-extras {
    grid-column: 1 / -1;
}

.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-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 input[type="file"] {
    margin-top: 8px;
    font-size: 14px;
    width: 100%;
    display: none;
}

.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;
    pointer-events: none;
}

.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-abn-row {
    grid-template-columns: minmax(0, 340px) auto;
    max-width: 470px;
}

.ml-setup-abn-validate-btn {
    min-width: 110px;
    padding: 12px 22px;
}

.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);
}

.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;
}

.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--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 {
    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: edit top-left, delete top-right — same 30×30 circle as each other */
.ml-store-preview-logo-corner {
    position: absolute;
    z-index: 4;
}

.ml-store-preview-logo-corner--tl {
    top: 4px;
    left: 4px;
}

.ml-store-preview-logo-corner--tr {
    top: 4px;
    right: 4px;
}

/* Same vertical band as edit (30px control); keeps trash aligned with pencil */
.ml-store-preview-logo-corner--tl,
.ml-store-preview-logo-corner--tr {
    display: flex;
    align-items: center;
    height: 30px;
}

.ml-store-preview-logo-corner .ml-store-preview-img-menu--logo {
    position: relative;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    align-self: center;
    height: 30px;
    line-height: 0;
}

.ml-store-preview-logo-corner--tl .ml-store-preview-img-menu--logo .ml-store-preview-img-menu-pop {
    top: calc(100% + 8px);
    bottom: auto;
    left: 0;
    right: auto;
}

.ml-store-preview-logo-corner .ml-store-preview-media-delete--logo,
.ml-store-preview-logo-corner--tl .ml-store-preview-img-edit--media-icon.ml-store-preview-img-edit--logo {
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0;
}

.ml-store-preview-logo-corner--tl .ml-store-preview-img-edit--media-icon.ml-store-preview-img-edit--logo {
    top: auto;
    bottom: 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-logo-corner--tl .ml-store-preview-img-edit--media-icon.ml-store-preview-img-edit--logo:hover {
    background: #fafafa;
    color: #000;
}

.ml-store-preview-logo-corner--tl .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--tl .ml-store-preview-media-edit-icon {
    display: block;
    pointer-events: none;
}

.ml-store-preview-media-delete--logo {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
}

.ml-store-preview-logo-corner--tr .ml-store-preview-media-delete--logo {
    flex-shrink: 0;
    align-self: center;
    border-color: rgba(198, 40, 40, 0.45);
    background: #fff;
    color: #c62828;
}

.ml-store-preview-logo-corner--tr .ml-store-preview-media-delete--logo:hover {
    background: #fff;
    color: #b71c1c;
}

.ml-store-preview-logo-corner--tr .ml-store-preview-media-delete--logo:focus-visible {
    outline-color: #c62828;
}

.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--logo {
    top: auto;
    bottom: 4px;
    right: 4px;
}

.ml-store-preview-img-menu .ml-store-preview-img-edit {
    position: relative;
    top: auto;
    right: auto;
}

/* Banner: open downward (upward was clipped by .ml-store-preview-hero overflow) */
.ml-store-preview-img-menu:not(.ml-store-preview-img-menu--logo) .ml-store-preview-img-menu-pop {
    top: calc(100% + 8px);
    bottom: auto;
    right: 0;
    left: auto;
}

/* Logo: open to the right, aligned with pill — avoids top/left clipping in the header */
.ml-store-preview-img-menu--logo .ml-store-preview-img-menu-pop {
    top: auto;
    bottom: 0;
    left: calc(100% + 8px);
    right: auto;
}

.ml-store-preview-img-menu-pop {
    position: absolute;
    min-width: 9.5rem;
    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);
}

.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;
}

@media (max-width: 520px) {
    .ml-store-preview-img-menu--logo .ml-store-preview-img-menu-pop,
    .ml-store-preview-logo-corner--tl .ml-store-preview-img-menu--logo .ml-store-preview-img-menu-pop {
        left: 0;
        right: auto;
        top: calc(100% + 8px);
        bottom: auto;
    }
}

.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;
}

.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-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-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;
}

.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: 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 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 4px #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;
}

@media (max-width: 560px) {
    .ml-sell-state-row {
        grid-template-columns: 1fr;
    }
}

.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-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 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-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;
}

/* ================= 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-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--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-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-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;
}

/* Gender: chevron in its own column so label text aligns with suburb / text inputs */
.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-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;
}

.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-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(300px, 1fr) minmax(0, 1.12fr);
        gap: clamp(1.5rem, 3vw, 2.75rem);
        align-items: start;
    }

    .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;
}

/* 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: end;
}

.ml-dash-seller-compliance .ml-shop-validate-compliance-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: max-content;
    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;
    }
}

.ml-dash-seller-compliance__save-row {
    justify-content: flex-start;
}

.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-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__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);
}

.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;
}

.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-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__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 */
.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 rgba(34, 36, 39, 0.14);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(34, 36, 39, 0.16);
    cursor: pointer;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -0.01em;
    color: #222427;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ml-community-fab:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 44px rgba(34, 36, 39, 0.18);
    background: #ffffff;
}

a.ml-community-fab {
    text-decoration: none;
    color: inherit;
    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(34, 36, 39, 0.06);
    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 {
    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 {
    display: flex;
    gap: 0;
    align-items: center;
    border: 2px solid #e7b15a;
    border-radius: 999px;
    background: #fff;
    padding: 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;
}

.ml-community-search__icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.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%;
}

.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-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-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;
}

@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);
}

/* 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;
}

