/* Homepage marketplace 2026 — intentionally isolated from legacy section personalization. */
:root {
    --market-navy: #071b2c;
    --market-navy-soft: #0d2f43;
    --market-teal: #0b9ca4;
    --market-teal-dark: #087981;
    --market-teal-pale: #e8f8f8;
    --market-ink: #102635;
    --market-muted: #607483;
    --market-line: #dce7eb;
    --market-surface: #ffffff;
}

.market-trust { margin-top: 22px; }
.market-trust__details {
    overflow: hidden;
    border: 1px solid var(--market-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(6, 42, 59, .06);
}
.market-trust__details > summary {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 20px;
    color: var(--market-navy);
    cursor: pointer;
    list-style: none;
}
.market-trust__details > summary::-webkit-details-marker { display: none; }
.market-trust__details > summary > span:first-child { display: grid; gap: 2px; min-width: 0; }
.market-trust__details > summary small { color: #078b91; font-size: .68rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.market-trust__details > summary strong { overflow: hidden; font-size: .98rem; text-overflow: ellipsis; white-space: nowrap; }
.market-trust__details > summary:focus-visible { outline: 3px solid rgba(11, 156, 164, .34); outline-offset: -3px; }
.market-trust__toggle { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #087981; background: #e8f8f8; font-size: 1.35rem; font-weight: 900; transition: transform .18s ease; }
.market-trust__details[open] .market-trust__toggle { transform: rotate(180deg); }
.market-trust__details:not([open]) > .market-trust__content { display: none; }
.market-trust__content { padding: 22px 20px 20px; border-top: 1px solid var(--market-line); }
.market-trust__content > header h2 { margin: 0; color: var(--market-navy); font-size: clamp(1.35rem, 2.7vw, 2.05rem); }
.market-trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.market-trust__grid article { position: relative; min-height: 178px; padding: 22px; border: 1px solid var(--market-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(6, 42, 59, .06); }
.market-trust__grid article > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #087e83; background: #e5f7f7; font-size: 1.2rem; font-weight: 900; }
.market-trust__grid h3 { margin: 14px 0 7px; color: var(--market-ink); font-size: 1.05rem; }
.market-trust__grid p { margin: 0; color: var(--market-muted); font-size: .86rem; line-height: 1.55; }
.market-trust__flow { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 13px; padding: 15px 18px; border-radius: 13px; color: #365464; background: #eaf4f6; font-size: .83rem; }
.market-trust__flow strong { margin-right: 5px; color: var(--market-navy); }
.market-trust__flow span { padding: 5px 9px; border-radius: 999px; background: #fff; font-weight: 750; }
.market-trust__flow i { color: #0a999d; font-style: normal; font-weight: 900; }
.market-trust__disclaimer { margin: 11px 0 0; color: #667d89; font-size: .78rem; }
@media (max-width: 980px) {
    .market-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .market-trust__details > summary { min-height: 58px; padding: 11px 14px; }
    .market-trust__details > summary strong { font-size: .88rem; }
    .market-trust__content { padding: 18px 14px 16px; }
    .market-trust__grid { grid-template-columns: 1fr; }
    .market-trust__grid article { min-height: 0; }
    .market-trust__flow i { display: none; }
}

.homepage-market-container {
    width: min(1480px, calc(100% - 56px));
    margin-inline: auto;
}

.market-hero {
    position: relative;
    min-height: 338px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 25%, rgba(29, 192, 195, 0.24), transparent 22rem),
        radial-gradient(circle at 22% 115%, rgba(16, 139, 153, 0.22), transparent 28rem),
        linear-gradient(120deg, #061724 0%, #0a2a3d 56%, #0b3d4d 100%);
}

.market-hero::before,
.market-hero::after {
    position: absolute;
    border: 1px solid rgba(122, 226, 228, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.market-hero::before { top: -190px; right: 4%; width: 510px; height: 510px; }
.market-hero::after { right: 29%; bottom: -310px; width: 560px; height: 560px; }

.market-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    align-items: center;
    gap: clamp(32px, 5vw, 88px);
    min-height: 338px;
    padding-block: 38px 34px;
}

.market-hero__copy { max-width: 900px; }

.market-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: #a9dfe0;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.market-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.15rem, 3.2vw, 3.65rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.03;
}

.market-hero h1 em {
    color: #43d0d1;
    font-style: normal;
}

.market-hero__claim {
    max-width: 720px;
    margin: 14px 0 20px;
    color: #c5d5de;
    font-size: clamp(0.96rem, 1.4vw, 1.13rem);
    line-height: 1.55;
}

.market-search {
    display: block;
    width: min(100%, 820px);
    margin: 0;
}

.market-search__row,
body:not(.admin-page) form.homepage-search.js-public-simple-search .market-search__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0;
    min-height: 62px;
    padding: 6px 6px 6px 18px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(0, 9, 17, 0.28);
}

.market-search__icon {
    display: grid;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    color: #56717f;
    place-items: center;
}

.market-search__icon svg,
.market-hero__actions svg,
.market-hero__visual svg,
.market-category svg,
.market-toolbar svg,
.market-card svg,
.market-empty svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.market-search__icon svg { width: 23px; height: 23px; }

.market-search input[type="search"],
body:not(.admin-page) .market-search.js-public-simple-search .public-search-input-wrap > input[name="q"] {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 9px 12px 9px 2px;
    border: 0;
    color: var(--market-ink);
    background: transparent;
    box-shadow: none;
    font-size: 1.03rem;
    outline: 0;
}

.market-search input::placeholder { color: #748893; opacity: 1; }

.market-search button[type="submit"],
body:not(.admin-page) form.homepage-search.js-public-simple-search .market-search__row > button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 48px;
    margin: 0;
    padding: 11px 24px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #0ba1a7, #087d85);
    box-shadow: none;
    font-size: 0.94rem;
    font-weight: 850;
}

.market-search button[type="submit"]:hover { background: linear-gradient(135deg, #0aaeb4, #076f77); }
.market-search .public-voice-runtime { margin-top: 8px; color: #dce9ee; }

.market-hero__actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 16px;
}

.market-hero__actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    color: #dcebf0;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.market-hero__actions a:not(.market-hero__primary):hover { color: #fff; }
.market-hero__actions .market-hero__primary {
    padding: 9px 15px;
    border: 1px solid rgba(93, 223, 224, 0.38);
    border-radius: 10px;
    color: #eaffff;
    background: rgba(14, 153, 161, 0.14);
}
.market-hero__primary svg { width: 18px; height: 18px; }

.market-hero__visual {
    position: relative;
    min-height: 238px;
}

.market-hero__visual-ring {
    position: absolute;
    border: 1px solid rgba(106, 222, 224, 0.21);
    border-radius: 50%;
}
.market-hero__visual-ring--one { inset: 7px 20px 8px auto; width: 224px; }
.market-hero__visual-ring--two { top: 45px; right: 58px; width: 145px; height: 145px; border-style: dashed; }
.market-hero__visual-mark {
    position: absolute;
    top: 60px;
    right: 94px;
    color: rgba(62, 211, 212, 0.19);
    font-size: 5rem;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.market-hero__visual-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 14px;
    color: #fff;
    background: rgba(8, 34, 50, 0.82);
    box-shadow: 0 18px 42px rgba(0, 8, 15, 0.24);
}
.market-hero__visual-card svg { flex: 0 0 30px; width: 30px; height: 30px; color: #40d1d1; }
.market-hero__visual-card span { display: grid; gap: 2px; }
.market-hero__visual-card strong { font-size: 0.88rem; }
.market-hero__visual-card small { color: #9fb7c3; font-size: 0.72rem; }
.market-hero__visual-card--tag { top: 19px; right: 64px; }
.market-hero__visual-card--auction { right: 5px; bottom: 23px; }

.market-category-shell { position: relative; z-index: 30; margin-top: 18px; isolation: isolate; }
.market-category-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    padding: 3px 1px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 125, 133, 0.35) transparent;
    overscroll-behavior-inline: contain;
}

.market-category {
    display: inline-flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 126px;
    min-height: 48px;
    padding: 9px 15px;
    border: 1px solid #d8e5e9;
    border-radius: 12px;
    color: #385362;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 5px 16px rgba(13, 47, 65, 0.045);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.market-category:hover,
.market-category.is-active {
    border-color: rgba(10, 155, 163, 0.48);
    color: #056c73;
    background: #e9f9f9;
    box-shadow: 0 7px 19px rgba(10, 126, 134, 0.09);
}
.market-category.is-active { box-shadow: inset 0 -2px #0a9ba3, 0 7px 19px rgba(10, 126, 134, 0.09); }
.market-category__icon { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; }
.market-category__icon svg { width: 21px; height: 21px; }
.market-category--more { min-width: 104px; }

.market-more-panel {
    position: absolute;
    z-index: 1;
    top: calc(100% + 3px);
    right: 0;
    left: 0;
    padding: 20px;
    border: 1px solid #d8e5e9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 56px rgba(7, 31, 47, 0.18);
}
.market-more-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.market-more-panel__head strong { color: var(--market-ink); font-size: 1.05rem; }
.market-more-panel__head button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; color: #31505f; background: #edf4f6; font-size: 1.45rem; cursor: pointer; }
.market-more-panel__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.market-more-panel__grid a { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px; border: 1px solid #e4ecef; border-radius: 11px; color: var(--market-ink); text-decoration: none; }
.market-more-panel__grid a:hover { border-color: #9bd8db; background: #f0fbfb; }
.market-more-panel__grid a > span:first-child { font-size: 1.35rem; }
.market-more-panel__grid a > span:last-child { display: grid; min-width: 0; gap: 2px; }
.market-more-panel__grid strong { font-size: 0.86rem; }
.market-more-panel__grid small { overflow: hidden; color: var(--market-muted); font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; }

.market-feed { padding-block: 22px 46px; scroll-margin-top: 112px; }
.market-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 17px;
    padding-bottom: 14px;
    border-bottom: 1px solid #d6e3e8;
}
.market-toolbar__title p { margin: 0 0 3px; color: #0a848b; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.market-toolbar__title h2 { margin: 0; color: var(--market-ink); font-size: clamp(1.35rem, 2vw, 1.8rem); letter-spacing: -0.025em; line-height: 1.1; }
.market-toolbar__title > span { display: block; margin-top: 5px; color: var(--market-muted); font-size: 0.82rem; }
.market-toolbar__controls { display: flex; align-items: center; gap: 9px; }
.market-sort { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 5px 4px 12px; border: 1px solid #d6e3e8; border-radius: 10px; background: #fff; }
.market-sort > span { color: #6a7e89; font-size: 0.75rem; font-weight: 750; }
.market-sort select { min-height: 32px; padding: 4px 30px 4px 7px; border: 0; color: var(--market-ink); background-color: transparent; font-size: 0.82rem; font-weight: 800; box-shadow: none; }
.market-feed-groups { display: grid; gap: 30px; }
.market-feed-group { min-width: 0; }
.market-feed-group[hidden] { display: none; }
.market-feed-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 0 1px 9px;
    border-bottom: 1px solid #dbe6ea;
}
.market-feed-group__header h3 { margin: 0; color: var(--market-ink); font-size: 1.12rem; letter-spacing: -0.015em; }
.market-feed-group__actions { display: inline-flex; align-items: center; gap: 12px; color: var(--market-muted); font-size: 0.75rem; font-weight: 750; }
.market-feed-group__actions > a { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 6px 10px; border: 1px solid #b9dadd; border-radius: 8px; color: #087981; background: #f4fbfb; font-size: 0.76rem; font-weight: 850; text-decoration: none; }
.market-feed-group__actions > a:hover { border-color: #6dc2c6; background: #e8f8f8; }
.market-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(14px, 1.25vw, 20px);
}

.market-card {
    --market-card-border: #dce6ea;
    position: relative;
    width: 100%;
    max-width: none;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--market-card-border);
    border-radius: 15px;
    color: var(--market-ink);
    background: var(--promo-bg, #fff);
    box-shadow: 0 8px 23px rgba(7, 38, 55, 0.075);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.market-card.is-promotion-active { --market-card-border: var(--promo-border, #159ca3); border-width: 2px; box-shadow: var(--promo-shadow, 0 12px 30px rgba(7, 140, 145, 0.16)); }
.market-card:hover { transform: translateY(-3px); border-color: rgba(8, 145, 153, 0.55); box-shadow: 0 15px 34px rgba(7, 38, 55, 0.13); }
.market-card__surface { display: flex; height: 100%; min-width: 0; flex-direction: column; color: inherit; text-decoration: none; }
.market-card__surface:focus-visible { outline: 3px solid #13a8ae; outline-offset: -3px; }
.market-card__media { position: relative; display: block; width: 100%; overflow: hidden; aspect-ratio: 3 / 2; background: #e9f0f2; }
.market-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.32s ease; }
.market-card:hover .market-card__media img { transform: scale(1.025); }
.market-card__media--placeholder { display: grid; align-content: center; justify-items: center; gap: 8px; padding: 18px; color: #66808d; background: linear-gradient(145deg, #e7f1f3, #f5f9fa); font-size: 0.72rem; text-align: center; }
.market-card__placeholder-icon { display: grid; width: 48px; height: 48px; border-radius: 50%; color: #3d7583; background: #fff; place-items: center; box-shadow: 0 7px 16px rgba(14, 58, 77, 0.08); }
.market-card__placeholder-icon svg { width: 26px; height: 26px; }
.market-card__badges { position: absolute; z-index: 2; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 5px; max-width: calc(100% - 64px); }
.market-card__type,
.market-card__badges .promotion-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border: 1px solid rgba(255,255,255,.24); border-radius: 7px; color: #fff; background: rgba(4, 25, 38, 0.88); box-shadow: 0 4px 12px rgba(2, 17, 26, 0.18); font-size: 0.64rem; font-weight: 900; letter-spacing: 0.055em; line-height: 1; text-transform: uppercase; }
.market-card__type--auction { background: #784710; }
.market-card__type--request { background: #31558c; }
.market-card__type--service { background: #496e41; }
.market-card__type--job { background: #116c76; }
.market-card__type--supplier { background: #5d557e; }
.market-card__type--digital { background: #385c91; }
.market-card__type--shop { background: #497252; }
.market-card__type--project { background: #694f88; }
.market-card__type--handmade { background: #7e436d; }
.market-card__type--product { background: #365d75; }
.market-card--job .market-card__media--placeholder { color: #dff9f9; background: linear-gradient(145deg, #0d4251, #11727a); }
.market-card--job .market-card__placeholder-icon { color: #087f86; }
.market-card__photo-count { position: absolute; right: 10px; bottom: 9px; display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 4px 8px; border-radius: 7px; color: #fff; background: rgba(4, 25, 38, 0.78); font-size: 0.7rem; font-weight: 850; }
.market-card__photo-count svg { width: 15px; height: 15px; }
.market-card__content { display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 10px 12px 12px; }
.market-card__title { display: -webkit-box; min-height: 2.45em; overflow: hidden; color: var(--market-ink); -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 0.95rem; font-weight: 850; letter-spacing: -0.012em; line-height: 1.23; }
.market-card__price-label { margin-top: 7px; color: #738591; font-size: 0.66rem; font-weight: 750; }
.market-card__price { display: block; margin-top: auto; padding-top: 7px; overflow: hidden; color: #092c3c; font-size: 1.14rem; font-weight: 950; letter-spacing: -0.025em; line-height: 1.12; text-overflow: ellipsis; white-space: nowrap; }
.market-card__price-label + .market-card__price { margin-top: 2px; padding-top: 0; }
.market-card__meta { display: flex; align-items: center; gap: 7px; min-width: 0; margin-top: 6px; color: #657986; font-size: 0.7rem; line-height: 1.25; }
.market-card__meta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-card__meta > span + span { padding-left: 8px; border-left: 1px solid #d9e3e7; }
.market-card__place { display: inline-flex; align-items: center; gap: 3px; }
.market-card__place svg { flex: 0 0 13px; width: 13px; height: 13px; }
.market-card__auction-time { display: block; margin-top: 8px; color: #9a5f16; font-size: 0.73rem; font-weight: 850; }
.market-card__service-note { display: block; margin-top: auto; padding-top: 10px; color: #536d79; font-size: 0.73rem; font-weight: 720; }
.market-card__source { display: block; margin-top: auto; padding-top: 9px; color: #087981; font-size: 0.68rem; font-weight: 800; }
.market-layout-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.market-layout-list .market-card { max-width: none; }
.market-layout-list .market-card__surface { display: grid; height: 210px; grid-template-columns: minmax(180px, 42%) minmax(0, 1fr); }
.market-layout-list .market-card__media { height: 210px; min-height: 0; aspect-ratio: auto; }
.market-layout-list .market-card__content { min-height: 0; padding: 17px; }
.market-layout-list .market-card__title { font-size: 1.1rem; }

.market-empty { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 150px; padding: 26px; border: 1px dashed #b8cdd5; border-radius: 15px; color: var(--market-ink); background: rgba(255,255,255,.74); text-align: left; }
.market-empty[hidden] { display: none; }
.market-empty > span { display: grid; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 15px; color: #0a838a; background: #e6f7f7; place-items: center; }
.market-empty svg { width: 30px; height: 30px; }
.market-empty h3 { margin: 0 0 4px; font-size: 1.1rem; }
.market-empty p { margin: 0; color: var(--market-muted); font-size: 0.86rem; }
.market-empty a { display: inline-flex; align-items: center; min-height: 40px; margin-left: 12px; padding: 8px 15px; border-radius: 9px; color: #fff; background: #087f86; font-size: 0.82rem; font-weight: 850; text-decoration: none; }

.market-feed-ad { padding-bottom: 42px; }
.market-feed-ad .public-ad-slot { margin: 0 auto; }

@media (max-width: 1260px) {
    .market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .market-more-panel__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .homepage-market-container { width: min(100% - 36px, 1480px); }
    .market-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .market-hero__visual { display: none; }
    .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .market-layout-list { grid-template-columns: 1fr; }
    .market-more-panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .homepage-market-container { width: calc(100% - 24px); }
    .market-hero { min-height: 0; }
    .market-hero::before { top: -220px; right: -170px; }
    .market-hero::after { display: none; }
    .market-hero__inner { display: block; min-height: 0; padding-block: 25px 27px; }
    .market-hero__eyebrow { margin-bottom: 8px; font-size: 0.64rem; letter-spacing: 0.09em; }
    .market-hero h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); line-height: 1.08; }
    .market-hero__claim { margin: 10px 0 16px; font-size: 0.88rem; line-height: 1.45; }
    .market-search__row,
    body:not(.admin-page) form.homepage-search.js-public-simple-search .market-search__row { min-height: 55px; padding: 4px 4px 4px 12px; border-radius: 12px; }
    .market-search__icon { width: 22px; height: 22px; margin-right: 4px; }
    .market-search__icon svg { width: 19px; height: 19px; }
    .market-search input[type="search"],
    body:not(.admin-page) .market-search.js-public-simple-search .public-search-input-wrap > input[name="q"] { min-height: 45px; padding-left: 4px; font-size: 0.89rem; }
    .market-search button[type="submit"],
    body:not(.admin-page) form.homepage-search.js-public-simple-search .market-search__row > button[type="submit"] { min-width: 76px; min-height: 45px; padding: 8px 13px; border-radius: 9px; font-size: 0.82rem; }
    .market-search .public-voice-runtime { font-size: 0.75rem; }
    .market-hero__actions { gap: 14px; margin-top: 11px; }
    .market-hero__actions a { min-height: 38px; font-size: 0.78rem; }
    .market-hero__actions .market-hero__primary { padding: 7px 11px; }

    .market-category-shell { width: 100%; margin-top: 10px; padding-left: 12px; }
    .market-category-row { gap: 7px; padding: 2px 12px 9px 0; }
    .market-category { flex: 0 0 auto; min-width: auto; min-height: 43px; padding: 7px 12px; border-radius: 10px; font-size: 0.78rem; }
    .market-category__icon { flex-basis: 19px; width: 19px; height: 19px; }
    .market-category__icon svg { width: 18px; height: 18px; }
    .market-more-panel { position: fixed; z-index: 90; top: auto; right: 10px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); left: 10px; max-height: min(70dvh, 560px); overflow-y: auto; padding: 15px; border-radius: 15px; }
    .market-more-panel__grid { grid-template-columns: 1fr 1fr; }
    .market-more-panel__grid a { padding: 9px; }
    .market-more-panel__grid small { display: none; }

    .market-feed { width: calc(100% - 24px); padding-block: 11px 30px; scroll-margin-top: 76px; }
    .market-toolbar { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; }
    .market-toolbar__title p { font-size: 0.62rem; }
    .market-toolbar__title h2 { font-size: 1.25rem; }
    .market-toolbar__title > span { margin-top: 3px; font-size: 0.74rem; }
    .market-toolbar__controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
    .market-sort { min-width: 0; min-height: 40px; padding-left: 9px; }
    .market-sort > span { display: none; }
    .market-sort select { width: 100%; min-width: 0; font-size: 0.76rem; }
    .market-feed-groups { gap: 24px; }
    .market-feed-group__header { margin-bottom: 9px; padding-bottom: 7px; }
    .market-feed-group__header h3 { font-size: 1rem; }
    .market-feed-group__actions { gap: 7px; font-size: 0.68rem; }
    .market-feed-group__actions > a { min-height: 32px; padding: 5px 8px; font-size: 0.7rem; }
    .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .market-card { max-width: none; border-radius: 12px; box-shadow: 0 6px 18px rgba(7, 38, 55, 0.07); }
    .market-card__media { aspect-ratio: 4 / 3; }
    .market-card:hover { transform: none; }
    .market-card__content { padding: 9px 10px 11px; }
    .market-card__title { min-height: 2.45em; font-size: 0.86rem; line-height: 1.23; }
    .market-card__price { padding-top: 7px; font-size: 1.01rem; }
    .market-card__price-label { margin-top: 7px; font-size: 0.61rem; }
    .market-card__meta { gap: 5px; margin-top: 6px; font-size: 0.65rem; }
    .market-card__meta > span + span { padding-left: 5px; }
    .market-card__meta > span:first-child { display: none; }
    .market-card__meta > span + span { padding-left: 0; border-left: 0; }
    .market-card__auction-time,
    .market-card__service-note,
    .market-card__source { margin-top: 6px; padding-top: 0; font-size: 0.65rem; }
    .market-card__badges { top: 7px; left: 7px; max-width: calc(100% - 50px); }
    .market-card__type,
    .market-card__badges .promotion-badge { min-height: 20px; padding: 3px 5px; border-radius: 5px; font-size: 0.53rem; }
    .market-card__photo-count { right: 6px; bottom: 6px; min-height: 20px; padding: 3px 6px; font-size: 0.59rem; }
    .market-card__photo-count svg { width: 13px; height: 13px; }
    .market-layout-list { grid-template-columns: 1fr; gap: 9px; }
    .market-layout-list .market-card__surface { height: 132px; grid-template-columns: 125px minmax(0, 1fr); }
    .market-layout-list .market-card__media { height: 132px; min-height: 0; }
    .market-layout-list .market-card__content { min-height: 0; padding: 10px 11px; }
    .market-layout-list .market-card__title { min-height: 2.45em; font-size: 0.9rem; }
    .market-layout-list .market-card__price { font-size: 1.06rem; }

    .market-empty { display: grid; justify-items: center; gap: 10px; min-height: 0; padding: 22px 16px; text-align: center; }
    .market-empty a { margin: 2px 0 0; }
    .market-feed-ad { padding-bottom: 24px; }

}

@media (max-width: 339px) {
    .homepage-market-container { width: calc(100% - 20px); }
    .market-hero__inner { padding-block: 21px 24px; }
    .market-hero h1 { font-size: 1.62rem; }
    .market-hero__claim,
    .market-hero__actions { display: none; }
    .market-search__icon { display: none; }
    .market-search__row,
    body:not(.admin-page) form.homepage-search.js-public-simple-search .market-search__row { grid-template-columns: minmax(0, 1fr) auto; padding-left: 8px; }
    .market-search button[type="submit"],
    body:not(.admin-page) form.homepage-search.js-public-simple-search .market-search__row > button[type="submit"] { min-width: 68px; padding-inline: 10px; }
    .market-category-shell { padding-left: 10px; }
    .market-grid { grid-template-columns: 1fr; }
    .market-card__surface { display: grid; height: 132px; grid-template-columns: 122px minmax(0, 1fr); }
    .market-card__media { height: 132px; min-height: 0; aspect-ratio: auto; }
    .market-card__content { min-height: 122px; }
    .market-toolbar__controls { grid-template-columns: minmax(0, 1fr) auto; }
    .market-more-panel__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .market-card,
    .market-card__media img { transition: none; }
}
