@font-face {
    font-family: "DM Sans";
    src: url("assets/fonts/DMSans-Variable.ttf") format("truetype");
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("assets/fonts/DMSans-Italic-Variable.ttf") format("truetype");
    font-weight: 100 1000;
    font-style: italic;
    font-display: swap;
}

:root {
    --orange: #ffad56;
    --orange-soft: #ffba70;
    --orange-pale: #fff4e8;
    --orange-panel: #fff0df;
    --white: #ffffff;
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --link: #ff8b0f;
    --link-hover: #d86b00;
    --red: #b00000;
    --line: #f0dfcf;
    --line-strong: #e8caae;
    --surface: #fffaf5;
    --shadow: 0 18px 45px rgba(70, 43, 10, .10);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-width: 320px;
    background: var(--surface);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 0;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button,
select,
a {
    -webkit-tap-highlight-color: transparent;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, #fffaf2 0%, #fff0df 100%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(43, 28, 8, .06);
    transition: transform .22s ease, box-shadow .22s ease;
    will-change: transform;
}

.topbar.is-hidden {
    transform: translateY(calc(-100% - 2px));
    box-shadow: none;
}

.topbar.is-at-top {
    transform: translateY(0);
}

.topbar__inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 190px minmax(360px, 1fr) 360px;
    gap: 18px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    color: var(--ink);
    font-weight: 1000;
    font-variation-settings: "wght" 1000;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.brand span {
    font-size: 33px;
    font-weight: 1000;
    font-variation-settings: "wght" 1000;
    text-shadow: .25px 0 0 currentColor, -.25px 0 0 currentColor;
    text-transform: lowercase;
}

.brand strong {
    color: #9a5600;
    font-size: 18px;
    font-weight: 1000;
    font-variation-settings: "wght" 1000;
}

.search {
    height: 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.search:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 173, 86, .18);
}

.search input {
    min-width: 0;
    width: 100%;
    height: 46px;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: var(--ink);
    background: transparent;
}

.search button,
.post-ad,
.topbar__link,
.topbar__actions a,
.reset {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius);
    border: 0;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.search button {
    height: 46px;
    padding-inline: 24px;
    color: #231305;
    background: var(--orange);
    cursor: pointer;
}

.topbar__link,
.topbar__actions a {
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
}

.post-ad {
    color: var(--white) !important;
    background: var(--ink) !important;
    border-color: var(--ink) !important;
    box-shadow: 0 10px 20px rgba(29, 29, 31, .16);
}

.topbar__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    transform: translateX(40px);
}

.search button:hover,
.topbar__link:hover,
.topbar__actions a:hover,
.reset:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(120, 76, 22, .14);
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 40px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 38px;
    color: #7a4a0b;
    font-size: 13px;
    font-weight: 700;
}

.breadcrumb a {
    color: #7a4a0b;
    text-decoration: none;
}

.breadcrumb span::before {
    content: ">";
    margin-right: 8px;
    color: #bc8950;
}

.layout {
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.filters {
    display: grid;
    gap: 12px;
}

.filter-panel,
.result-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(67, 42, 11, .07);
}

.filter-panel {
    overflow: hidden;
}

.filter-panel h2 {
    margin: 0;
    padding: 16px 16px;
    color: var(--white);
    background: var(--ink);
    font-size: 17px;
    line-height: 1.2;
}

.category-panel {
    padding-bottom: 8px;
}

.condition-panel {
    padding-bottom: 8px;
}

.category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 0 14px;
    color: var(--link);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(240, 223, 207, .7);
}

.category:last-child {
    border-bottom: 0;
}

.category span {
    color: var(--muted);
    font-size: 12px;
}

.category:hover,
.category.is-active {
    background: var(--orange-pale);
    color: #7a3f00;
}

.filter-row,
.price-grid {
    display: grid;
    gap: 8px;
    padding: 12px 14px 0;
}

.filter-row label,
.price-grid label,
.result-tools label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.filter-row select,
.price-grid input,
.result-tools select {
    width: 100%;
    min-height: 44px;
    color: var(--ink);
    background: #fffdfa;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 12px;
    outline: 0;
}

.filter-row select:focus,
.price-grid input:focus,
.result-tools select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 173, 86, .16);
}

.price-grid {
    grid-template-columns: 1fr 1fr;
}

.price-grid label {
    grid-column: 1 / -1;
}

.reset {
    width: calc(100% - 28px);
    margin: 14px;
    color: #251306;
    background: var(--orange);
    cursor: pointer;
}

.content {
    min-width: 0;
}

.result-card {
    overflow: hidden;
}

.result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px;
    border-bottom: 1px solid var(--line);
}

.result-summary h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.15;
    letter-spacing: 0;
}

.result-summary p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.result-summary strong {
    color: var(--ink);
    font-size: 19px;
}

.result-tools {
    display: grid;
    gap: 7px;
    min-width: 210px;
}

.list-head,
.listing {
    display: grid;
    grid-template-columns: 128px minmax(220px, 1fr) 96px 86px 82px 150px 108px;
    align-items: stretch;
}

.list-head {
    min-height: 42px;
    color: #704108;
    background: #fff3e5;
    border-bottom: 1px solid var(--line-strong);
    font-size: 12px;
    font-weight: 900;
}

.list-head span,
.list-head button {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-right: 1px solid rgba(232, 202, 174, .9);
}

.list-head button {
    width: 100%;
    color: #704108;
    background: transparent;
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    text-align: left;
}

.list-head button:hover,
.list-head button.is-active {
    color: #2e1700;
    background: #ffe7cd;
}

.list-head button::after {
    content: "";
    margin-left: 6px;
    color: var(--link);
    font-size: 10px;
}

.list-head button.is-asc::after {
    content: "↑";
}

.list-head button.is-desc::after {
    content: "↓";
}

.list-head span:last-child {
    border-right: 0;
}

.listing {
    min-height: 108px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transform-origin: center;
    transition: transform .1s ease;
}

.listing:hover {
    position: relative;
    z-index: 2;
    transform: scale(1.003);
}

.listing__media {
    min-width: 0;
    background: #fff6ec;
}

.listing__image {
    position: relative;
    display: block;
    height: 108px;
    overflow: hidden;
    background: #fff6ec;
}

.listing__image img {
    width: 100%;
    height: 108px;
    display: block;
    object-fit: contain;
}

.listing__image span {
    position: absolute;
    left: 8px;
    top: 8px;
    min-width: 27px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(29, 29, 31, .78);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.listing__title,
.cell,
.price,
.city {
    min-width: 0;
    padding: 10px 12px;
    border-right: 1px solid rgba(240, 223, 207, .9);
}

.listing__title {
    display: block;
}

.listing__title > a {
    display: inline-block;
    color: #2e1700;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.28;
    text-decoration: none;
}

.listing__title > a:hover {
    color: #4a2500;
    text-decoration: underline;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.chips a,
.chips span {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    color: #6d3d08;
    background: #fff2e3;
    border: 1px solid #ffe0bd;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.chips a {
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}

.chips a:hover {
    color: #2e1700;
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-1px);
}

.listing__chips--media {
    display: none;
}

.cell,
.price,
.city {
    display: flex;
    align-items: center;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.cell small,
.price small,
.city small {
    display: none;
}

.price {
    justify-content: flex-end;
    color: var(--red);
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
}

.city {
    justify-content: center;
    text-align: center;
    border-right: 0;
}

.empty {
    display: none;
    padding: 34px 18px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.empty.is-visible {
    display: block;
}

.listing.is-hidden {
    display: none;
}

.detail-shell {
    width: min(1088px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 46px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
    align-items: start;
}

.detail-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.detail-toolbar__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.detail-toolbar__actions form {
    margin: 0;
}

.detail-toolbar .back-link {
    margin-bottom: 0;
}

.favorite-button,
.manage-chip {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    color: #2e1700;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 18px rgba(67, 42, 11, .06);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.favorite-button:hover,
.manage-chip:hover {
    transform: translateY(-1px);
    border-color: var(--orange);
    background: var(--orange-pale);
    box-shadow: 0 12px 24px rgba(120, 76, 22, .12);
}

.favorite-button.is-active {
    background: var(--orange);
    border-color: var(--orange);
}

.manage-chip--danger {
    color: #8b1a0f;
}

.owner-notice {
    margin-bottom: 12px;
    padding: 12px 14px;
    color: #5c3307;
    background: #fff2df;
    border: 1px solid #ffd5a4;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 850;
}

.detail-main,
.detail-side-card,
.description-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(67, 42, 11, .07);
}

.detail-main {
    padding: 18px;
}

.detail-title {
    margin: 0 0 18px;
    color: #050505;
    font-size: 23px;
    line-height: 1.22;
    font-weight: 900;
    letter-spacing: 0;
}

.gallery {
    display: grid;
    gap: 14px;
}

.gallery__stage {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--orange-panel);
}

.gallery__stage img,
.gallery__stage video {
    width: 100%;
    aspect-ratio: 16 / 9.35;
    display: block;
    object-fit: cover;
}

.gallery__actions {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    gap: 8px;
}

.gallery__actions form {
    margin: 0;
}

.gallery-open {
    position: absolute;
    right: 12px;
    top: 12px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(29, 29, 31, .55);
    border: 0;
    border-radius: var(--radius);
    font-size: 24px;
    font-weight: 950;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .16s ease, transform .16s ease;
}

.gallery-nav:hover {
    background: rgba(29, 29, 31, .78);
    transform: translateY(-50%) scale(1.02);
}

.gallery-nav--prev {
    left: 12px;
}

.gallery-nav--next {
    right: 12px;
}

.icon-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(29, 29, 31, .72);
    border: 0;
    border-radius: var(--radius);
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.icon-button:hover {
    transform: translateY(-1px);
    background: rgba(29, 29, 31, .88);
}

.thumb-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    padding: 2px 2px 8px;
}

.thumb-row > .thumbs:only-child {
    grid-column: 1 / -1;
}

.thumbs button {
    flex: 0 0 clamp(112px, 18%, 152px);
    overflow: hidden;
    padding: 0;
    background: var(--orange-panel);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
}

.thumbs button.is-active {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 173, 86, .16);
}

.thumbs img {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
}

.thumb-scroll {
    width: 34px;
    color: #2e1700;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 950;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease;
}

.thumb-scroll:hover {
    border-color: var(--orange);
    background: var(--orange-pale);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(12, 10, 8, .84);
}

body.has-lightbox,
body.has-share-sheet {
    overflow: hidden;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox img {
    max-width: min(1160px, 94vw);
    max-height: 86vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 26px 80px rgba(0, 0, 0, .35);
}

.lightbox-close,
.lightbox-nav {
    position: fixed;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: var(--radius);
    cursor: pointer;
}

.lightbox-close {
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    font-size: 28px;
}

.lightbox-nav {
    top: 50%;
    width: 46px;
    height: 54px;
    font-size: 26px;
    font-weight: 950;
    transform: translateY(-50%);
}

.lightbox-nav--prev {
    left: 22px;
}

.lightbox-nav--next {
    right: 22px;
}

.description-card {
    margin-top: 16px;
    padding: 20px;
}

.description-card h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 900;
}

.description-card p {
    margin: 0;
    color: #2f2418;
    font-size: 15px;
    font-weight: 520;
    line-height: 1.65;
    white-space: pre-line;
}

.detail-sidebar {
    display: grid;
    gap: 10px;
}

.price-box {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #221305;
    background: var(--orange);
    border-radius: var(--radius);
    font-size: 23px;
    font-weight: 950;
    box-shadow: 0 14px 26px rgba(255, 173, 86, .24);
}

.spec-card {
    overflow: hidden;
    background: var(--orange-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    min-height: 42px;
    align-items: center;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(232, 202, 174, .9);
}

.spec-row:last-child {
    border-bottom: 0;
}

.spec-row span:first-child {
    color: #7b5b39;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.spec-row span:last-child {
    color: #101010;
    font-size: 13px;
    font-weight: 900;
}

.detail-side-card {
    padding: 14px;
}

.meta-card {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #2f2418;
    background: var(--orange-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 750;
    text-align: center;
}

.meta-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.seller-card {
    display: block;
}

.seller-card__link {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.seller-card__link:hover strong {
    color: var(--link);
}

.seller-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #7a4a0b;
    background: var(--orange-panel);
    border-radius: 999px;
    font-size: 18px;
    font-weight: 900;
}

.seller-card strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #2e1700;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
}

.seller-card__text {
    min-width: 0;
    display: grid;
    align-content: center;
}

.seller-card small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.contact-button {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 18px rgba(67, 42, 11, .07);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.contact-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(120, 76, 22, .13);
}

.contact-button--orange {
    background: var(--orange);
    border-color: var(--orange);
}

button.contact-button {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

.share-sheet {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(24, 20, 16, .42);
    backdrop-filter: blur(10px);
}

.share-sheet[hidden] {
    display: none;
}

.share-sheet__panel {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, 92vh);
    overflow: auto;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 28px 90px rgba(67, 42, 11, .22);
}

.share-sheet__close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #2e1700;
    background: var(--orange-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.share-sheet__head {
    padding-right: 48px;
}

.share-sheet__head span {
    color: var(--link);
    font-size: 13px;
    font-weight: 950;
}

.share-sheet__head h2 {
    margin: 6px 0 8px;
    color: #2e1700;
    font-size: 24px;
    line-height: 1.18;
    font-weight: 1000;
}

.share-sheet__head p {
    margin: 0;
    color: #765b3c;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.share-platforms {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.share-platform {
    padding: 14px;
    background: #fff8f0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.share-platform h3 {
    margin: 0 0 10px;
    color: #2e1700;
    font-size: 16px;
    font-weight: 1000;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
    gap: 8px;
}

.share-options a,
.share-options button,
.share-copy-all {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    color: #2e1700;
    background: var(--white);
    border: 1px solid #ffd9ae;
    border-radius: var(--radius);
    box-shadow: 0 8px 18px rgba(67, 42, 11, .06);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.share-options a:hover,
.share-options button:hover,
.share-copy-all:hover {
    transform: translateY(-1px);
    border-color: var(--orange);
    background: var(--orange);
    box-shadow: 0 12px 22px rgba(120, 76, 22, .14);
}

.share-copy-all {
    width: 100%;
    margin-top: 14px;
    background: var(--orange);
    border-color: var(--orange);
}

.share-sheet__notice {
    min-height: 20px;
    margin: 10px 0 0;
    color: #3b2811;
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

.share-sheet__notice.is-error {
    color: #9b2417;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    margin-bottom: 12px;
    color: var(--link);
    font-weight: 850;
    text-decoration: none;
}

.back-link span {
    color: inherit;
    font-weight: 950;
}

.back-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.account-shell {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 44px;
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.account-card,
.account-side,
.agreement-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(70, 43, 10, .09);
}

.account-card {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.account-kicker {
    width: fit-content;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: #704108;
    background: var(--orange-panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.account-card h1,
.account-side h2,
.agreement-card h2 {
    margin: 0;
    color: #2e1700;
    line-height: 1.18;
    font-weight: 950;
}

.account-card h1 {
    font-size: 30px;
}

.account-card p,
.account-side p,
.agreement-card p {
    margin: 0;
    color: #614221;
    line-height: 1.58;
    font-size: 15px;
    font-weight: 520;
}

.account-card label {
    display: grid;
    gap: 7px;
    color: #614221;
    font-size: 13px;
    font-weight: 850;
}

.account-card input {
    min-height: 48px;
    width: 100%;
    padding: 0 13px;
    color: var(--ink);
    background: #fffdfa;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: 0;
}

.account-card input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 173, 86, .16);
}

.check-row {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px !important;
    color: #2e1700 !important;
    line-height: 1.4;
}

.check-row input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--orange);
}

.account-card button[type="submit"],
.account-side a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2e1700;
    background: var(--orange);
    border: 0;
    border-radius: var(--radius);
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
}

.account-link {
    color: var(--link);
    font-size: 14px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.account-side,
.agreement-card {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.agreement-card {
    background: linear-gradient(180deg, #fffaf5 0%, #fff2e5 100%);
}

.post-shell {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 46px;
}

.post-hero,
.post-section,
.post-steps {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(70, 43, 10, .08);
}

.post-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: center;
    padding: 24px;
    margin-bottom: 14px;
}

.post-hero h1 {
    margin: 12px 0 10px;
    color: #2e1700;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 950;
}

.post-hero p,
.post-section__head p,
.post-auth-card span,
.upload-box span {
    margin: 0;
    color: #614221;
    line-height: 1.55;
    font-size: 15px;
    font-weight: 520;
}

.post-auth-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(180deg, #fff4e8 0%, #fffaf5 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.post-auth-card strong {
    color: #2e1700;
    font-size: 18px;
    font-weight: 950;
}

.post-auth-card div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.post-auth-card a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2e1700;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 900;
    text-decoration: none;
}

.post-auth-card a:first-child {
    background: var(--orange);
    border-color: var(--orange);
}

.post-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: hidden;
    margin-bottom: 14px;
}

.post-steps span {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #704108;
    background: #fff8f0;
    border-right: 1px solid var(--line);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.post-steps span:last-child {
    border-right: 0;
}

.post-steps span.is-active {
    color: #2e1700;
    background: var(--orange);
}

.post-form {
    display: grid;
    gap: 14px;
}

.post-section {
    padding: 22px;
}

.post-section__head {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 18px;
}

.post-section__head > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #2e1700;
    background: var(--orange);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 950;
}

.post-section__head h2 {
    margin: 0 0 5px;
    color: #2e1700;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 950;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-wide,
.form-block {
    grid-column: 1 / -1;
}

.post-form label {
    display: grid;
    gap: 7px;
    color: #614221;
    font-size: 13px;
    font-weight: 850;
}

.post-form input,
.post-form select,
.post-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    color: var(--ink);
    background: #fffdfa;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: 0;
}

.post-form textarea {
    padding: 12px 13px;
    resize: vertical;
}

.post-form input:focus,
.post-form select:focus,
.post-form textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 173, 86, .16);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.feature-grid label,
.post-submit .check-row {
    grid-template-columns: auto 1fr;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    background: #fff8f0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.feature-grid input,
.post-submit input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    accent-color: var(--orange);
}

.upload-box {
    position: relative;
    display: grid;
    margin-bottom: 14px;
}

.upload-box input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-box label {
    min-height: 132px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 20px;
    color: #2e1700;
    background: #fff8f0;
    border: 1px dashed var(--orange);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
}

.upload-box strong {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: #2e1700;
    background: var(--orange);
    border-radius: var(--radius);
    font-weight: 950;
}

.post-submit {
    display: grid;
    gap: 14px;
}

.post-submit button {
    min-height: 52px;
    color: #2e1700;
    background: var(--orange);
    border: 0;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
}

@media (max-width: 1120px) {
    .topbar__inner {
        grid-template-columns: 178px minmax(280px, 1fr) 330px;
    }

    .topbar__actions {
        transform: translateX(0);
    }

    .list-head,
    .listing {
        grid-template-columns: 128px minmax(190px, 1fr) 96px 82px 138px 98px;
    }

    .list-head .sort-head[data-sort="power"],
    .listing .cell--power {
        display: none;
    }
}

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

    .filters {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .category-panel {
        min-height: 100%;
    }

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

    .detail-toolbar {
        grid-template-columns: 1fr;
    }

    .detail-toolbar__side {
        display: none;
    }

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

    .post-hero {
        grid-template-columns: 1fr;
    }

    .post-steps {
        grid-template-columns: 1fr;
    }

    .post-steps span {
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .post-steps span:last-child {
        border-bottom: 0;
    }

    .detail-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .price-box,
    .spec-card {
        grid-column: 1 / -1;
    }
}

@media (min-width: 761px) and (orientation: portrait) {
    .layout {
        grid-template-columns: 1fr;
    }

    .filters {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .list-head {
        display: none;
    }

    .listing {
        grid-template-columns: 176px minmax(0, 1fr);
        min-height: 0;
        margin: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: 0 10px 24px rgba(67, 42, 11, .08);
    }

    .listing__media {
        grid-row: span 6;
        display: flex;
        flex-direction: column;
        min-height: 178px;
        border-right: 1px solid rgba(240, 223, 207, .9);
    }

    .listing__image {
        height: 118px;
        min-height: 0;
    }

    .listing__image img {
        height: 118px;
        min-height: 0;
    }

    .listing__title,
    .cell,
    .price,
    .city {
        min-height: 39px;
        padding: 9px 13px;
        border-right: 0;
        border-bottom: 1px solid rgba(240, 223, 207, .9);
    }

    .listing__title {
        padding-top: 14px;
    }

    .listing__title > a {
        font-size: 15px;
    }

    .listing__chips--title {
        display: none;
    }

    .listing__chips--media {
        display: flex;
        align-content: flex-start;
        align-items: flex-start;
        gap: 5px;
        margin: 0;
        padding: 9px 8px 10px;
        border-top: 1px solid rgba(240, 223, 207, .9);
    }

    .listing__chips--media a {
        min-height: 23px;
        padding-inline: 8px;
        font-size: 11px;
    }

    .cell,
    .price,
    .city {
        justify-content: space-between;
        gap: 12px;
        text-align: left;
    }

    .cell small,
    .price small,
    .city small {
        display: inline-flex;
        color: var(--muted);
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .price {
        white-space: normal;
    }

    .city {
        border-bottom: 0;
    }
}

@media (max-width: 760px) {
    .topbar__inner,
    .shell {
        width: min(100% - 24px, 560px);
    }

    .topbar__inner {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 0;
    }

    .brand {
        justify-content: center;
    }

    .detail-toolbar__main {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-toolbar__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .favorite-button,
    .manage-chip {
        min-height: 42px;
    }

    .topbar__actions {
        width: 100%;
        margin-left: 0;
        transform: none;
    }

    .post-ad {
        width: 100%;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .result-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .result-tools {
        min-width: 0;
    }

    .list-head {
        display: none;
    }

    .listing {
        grid-template-columns: 144px minmax(0, 1fr);
        min-height: 0;
        margin: 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: 0 10px 24px rgba(67, 42, 11, .08);
    }

    .listing__media {
        grid-row: span 6;
        display: flex;
        flex-direction: column;
        min-height: 166px;
        border-right: 1px solid rgba(240, 223, 207, .9);
    }

    .listing__image {
        height: 108px;
        min-height: 0;
    }

    .listing__image img {
        height: 108px;
        min-height: 0;
    }

    .listing__title,
    .cell,
    .price,
    .city {
        min-height: 36px;
        padding: 8px 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(240, 223, 207, .9);
    }

    .listing__title {
        padding-top: 12px;
    }

    .listing__title > a {
        font-size: 14px;
    }

    .chips {
        gap: 5px;
        margin-top: 8px;
    }

    .listing__chips--title {
        display: none;
    }

    .listing__chips--media {
        display: flex;
        align-content: flex-start;
        align-items: flex-start;
        margin: 0;
        padding: 8px 7px 10px;
        border-top: 1px solid rgba(240, 223, 207, .9);
    }

    .chips a,
    .chips span {
        min-height: 24px;
        font-size: 11px;
    }

    .cell,
    .price,
    .city {
        justify-content: space-between;
        gap: 10px;
        font-size: 13px;
        text-align: left;
    }

    .cell small,
    .price small,
    .city small {
        display: inline-flex;
        color: var(--muted);
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .price {
        white-space: normal;
    }

    .city {
        border-bottom: 0;
    }

    .detail-shell {
        width: min(100% - 24px, 560px);
        padding-top: 16px;
    }

    .account-shell {
        width: min(100% - 24px, 560px);
        padding-top: 16px;
    }

    .post-shell {
        width: min(100% - 24px, 560px);
        padding-top: 16px;
    }

    .account-card,
    .account-side,
    .agreement-card {
        padding: 18px;
    }

    .post-hero,
    .post-section {
        padding: 18px;
    }

    .form-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .post-auth-card div {
        grid-template-columns: 1fr;
    }

    .detail-main {
        padding: 14px;
    }

    .detail-title {
        font-size: 20px;
    }

    .thumbs {
        gap: 8px;
    }

    .thumbs button {
        flex-basis: 32%;
    }

    .detail-sidebar {
        grid-template-columns: 1fr;
    }

    .price-box,
    .spec-card {
        grid-column: auto;
    }

    .price-box {
        font-size: 21px;
    }

    .spec-row {
        min-height: 46px;
    }
}

@media (max-width: 430px) {
    .brand span {
        font-size: 27px;
    }

    .listing {
        grid-template-columns: 128px minmax(0, 1fr);
    }

    .listing__image,
    .listing__image img {
        height: 96px;
        min-height: 0;
    }

    .listing__media {
        min-height: 178px;
    }

    .listing__chips--media a {
        min-height: 22px;
        padding-inline: 7px;
        font-size: 10.5px;
    }
}

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

.flash-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 14px auto 0;
    display: grid;
    gap: 8px;
}

.flash,
.form-error,
.field-error {
    border-radius: var(--radius);
    font-weight: 800;
}

.flash {
    padding: 14px 16px;
    color: #2e1700;
    background: #fff1df;
    border: 1px solid #ffd3a4;
}

.flash--success {
    background: #fff4e8;
    border-color: var(--orange);
}

.form-error {
    margin: 10px 0 16px;
    padding: 13px 14px;
    color: #7d1f00;
    background: #fff0e8;
    border: 1px solid #ffc3a5;
}

.field-error,
.field-hint {
    display: block;
    margin-top: 7px;
    font-size: 13px;
}

.field-error {
    color: #a13800;
}

.field-hint {
    color: var(--muted);
    font-weight: 700;
}

.profile-menu {
    position: relative;
}

.profile-menu summary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 14px;
    font-weight: 900;
}

.profile-menu summary::-webkit-details-marker {
    display: none;
}

.profile-avatar,
.profile-card__avatar,
.seller-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dedede;
    color: #2e1700;
    font-weight: 1000;
}

.profile-avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.profile-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 250px;
    z-index: 70;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.profile-menu__panel a,
.profile-menu__panel button {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.profile-menu__panel a:hover,
.profile-menu__panel button:hover {
    background: var(--orange-pale);
    box-shadow: none;
    transform: none;
}

.profile-card,
.success-card {
    display: grid;
    gap: 14px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.profile-card {
    grid-template-columns: 92px 1fr;
    align-items: center;
}

.profile-card--wide {
    margin-bottom: 16px;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
}

.profile-card__avatar {
    width: 76px;
    height: 76px;
    font-size: 26px;
}

.profile-card__body {
    min-width: 0;
    display: grid;
    gap: 14px;
}

.profile-card h1,
.success-card h1 {
    margin: 6px 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: 0;
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.profile-meta-grid div {
    min-height: 70px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 12px;
    background: #fff8f0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.profile-meta-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.profile-meta-grid strong {
    min-width: 0;
    color: #2e1700;
    font-size: 14px;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-actions a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    color: #2e1700;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.profile-actions a.account-action {
    background: var(--orange);
    border-color: var(--orange);
}

.profile-listings {
    margin-top: 16px;
}

.profile-listing-row {
    min-height: 92px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 10px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
}

.profile-listing-row:hover {
    border-color: var(--orange);
    background: var(--orange-pale);
}

.profile-listing-row img {
    width: 112px;
    height: 72px;
    object-fit: contain;
    background: #fff6ec;
    border-radius: var(--radius);
}

.profile-listing-row span {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.profile-listing-row strong {
    color: #2e1700;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.25;
}

.profile-listing-row small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.profile-listing-row b {
    color: var(--red);
    font-size: 15px;
    font-weight: 1000;
    white-space: nowrap;
}

.success-card {
    max-width: 640px;
    margin: 40px auto;
    text-align: center;
    justify-items: center;
}

.success-mark {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #2e1700;
    background: var(--orange);
    font-size: 42px;
    font-weight: 1000;
}

.account-action {
    color: #2e1700;
    background: var(--orange);
    text-decoration: none;
}

.account-list-card {
    padding: 22px;
}

.account-list {
    display: grid;
    gap: 8px;
}

.account-list__row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px 180px 90px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.account-list__row:hover {
    border-color: var(--orange);
    background: var(--orange-pale);
}

.account-list__row--manage,
.admin-row {
    grid-template-columns: minmax(220px, 1fr) 140px 150px 90px minmax(220px, auto);
}

.account-list__row strong a {
    color: #2e1700;
    text-decoration: none;
}

.account-list__row strong a:hover {
    color: var(--link);
    text-decoration: underline;
}

.listing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.listing-actions a,
.listing-actions button,
.admin-row button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #2e1700;
    background: var(--orange-pale);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.listing-actions a:hover,
.listing-actions button:hover,
.admin-row button:hover {
    border-color: var(--orange);
    background: var(--orange);
}

.edit-card {
    max-width: none;
}

.edit-media-section {
    margin: 18px 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-grid article {
    min-height: 112px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.admin-grid strong {
    color: #2e1700;
    font-size: 32px;
    line-height: 1;
    font-weight: 1000;
}

.admin-grid span {
    color: #614221;
    font-weight: 850;
}

.admin-row form {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.admin-row select {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.report-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 18px rgba(67, 42, 11, .07);
}

.report-card summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #2e1700;
    background: #fff8f0;
    border: 1px solid #ffd9ae;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 950;
    list-style: none;
    list-style-type: none;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
}

.report-card summary::marker,
.report-card summary::-webkit-details-marker {
    display: none;
    content: "";
}

.report-card summary::before,
.report-card summary::after {
    content: none !important;
}

.report-card[open] summary {
    background: var(--orange);
    border-color: var(--orange);
}

.report-card form {
    display: grid;
    gap: 9px;
}

.report-card select,
.report-card textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 11px;
    background: #fffdfa;
    color: var(--ink);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 650;
    outline: 0;
}

.report-card button {
    width: fit-content;
    min-height: 40px;
    padding: 0 14px;
    color: #2e1700;
    background: var(--orange);
    border: 0;
    border-radius: var(--radius);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

.report-card .report-toggle {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    justify-content: center;
    color: #2e1700;
    background: #fff8f0;
    border: 1px solid #ffd9ae;
    border-radius: var(--radius);
    box-shadow: none;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 950;
    text-align: center;
}

.report-card .report-toggle[aria-expanded="true"] {
    background: var(--orange);
    border-color: var(--orange);
}

.report-card .report-toggle:hover {
    transform: none;
    background: var(--orange);
}

.report-card .report-toggle::before,
.report-card .report-toggle::after {
    content: none !important;
}

.profile-v2,
.profile-v2-list {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(70, 43, 10, .08);
}

.profile-v2 {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 22px;
}

.profile-v2__avatar {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    color: #2e1700;
    background: var(--orange-panel);
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 1000;
}

.profile-v2__main {
    min-width: 0;
    display: grid;
    gap: 14px;
}

.profile-v2 h1 {
    margin: 0;
    color: #2e1700;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.08;
    font-weight: 1000;
}

.profile-v2__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.profile-v2__facts--seller {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-v2__facts div {
    min-height: 70px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 12px;
    background: #fff8f0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.profile-v2__facts span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.profile-v2__facts strong {
    min-width: 0;
    color: #2e1700;
    font-size: 14px;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-v2__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-v2__actions a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: #2e1700;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
}

.profile-v2__actions a.account-action {
    background: var(--orange);
    border-color: var(--orange);
}

.profile-v2-list {
    margin-top: 16px;
    padding: 18px;
}

.profile-v2-list__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-v2-list__head h2 {
    margin: 0;
    color: #2e1700;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 1000;
}

.profile-v2-list__head span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    color: #704108;
    background: var(--orange-pale);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
}

.profile-machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.profile-machine-card {
    min-width: 0;
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 104px;
    padding: 10px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    overflow: hidden;
}

.profile-machine-card:hover {
    border-color: var(--orange);
    background: var(--orange-pale);
}

.profile-machine-card__media {
    width: 112px !important;
    height: 84px !important;
    display: block !important;
    overflow: hidden;
    background: #fff6ec;
    border-radius: var(--radius);
}

.profile-machine-card__media img {
    width: 112px !important;
    height: 84px !important;
    display: block !important;
    object-fit: contain !important;
}

.profile-machine-card__body {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.profile-machine-card__body strong {
    min-width: 0;
    overflow: hidden;
    color: #2e1700;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-machine-card__body small {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-machine-card__body b {
    color: var(--red);
    font-size: 14px;
    font-weight: 1000;
    white-space: nowrap;
}

.site-footer {
    margin-top: 34px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #fffaf5 0%, #fff0df 100%);
}

.site-footer__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0;
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(150px, 1fr));
    gap: 22px;
}

.site-footer__brand span {
    font-size: 26px;
}

.site-footer p {
    max-width: 320px;
    margin: 12px 0 0;
    color: #614221;
    line-height: 1.55;
    font-weight: 650;
}

.site-footer h2 {
    margin: 0 0 10px;
    color: #2e1700;
    font-size: 14px;
    font-weight: 950;
}

.site-footer a:not(.brand) {
    min-height: 30px;
    display: flex;
    align-items: center;
    color: #704108;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.site-footer a:not(.brand):hover {
    color: var(--link);
    text-decoration: underline;
}

.page-shell {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 46px;
}

.info-page {
    display: grid;
    gap: 18px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.info-page--center {
    max-width: 620px;
    margin: 34px auto;
    justify-items: center;
    text-align: center;
}

.info-page h1 {
    margin: 0;
    color: #2e1700;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
    font-weight: 1000;
}

.info-page__lead {
    margin: 0;
    color: #614221;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 650;
}

.info-page section {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.info-page h2 {
    margin: 0 0 8px;
    color: #2e1700;
    font-size: 20px;
    font-weight: 950;
}

.info-page p {
    margin: 0 0 10px;
    color: #2f2418;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 560;
}

.wizard-step {
    display: none;
}

.wizard-step.is-active {
    display: block;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 10px;
}

.category-choice {
    position: relative;
    display: block;
    padding: 0;
}

.category-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.category-choice span {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 16px;
    font-weight: 900;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

.category-choice input:checked + span {
    border-color: var(--orange);
    background: var(--orange-pale);
    color: #2e1700;
}

.category-choice:hover span {
    transform: scale(1.003);
    border-color: var(--orange-soft);
}

.wizard-message {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--radius);
    color: var(--muted);
    background: #f2f2f2;
    font-weight: 900;
}

.wizard-message.is-ready {
    color: #2e1700;
    background: var(--orange-pale);
    border: 1px solid var(--orange);
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.wizard-actions button,
.publish-box button {
    min-height: 48px;
    border: 0;
    border-radius: var(--radius);
    padding: 0 22px;
    font-weight: 1000;
    cursor: pointer;
    transition: transform .1s ease, background .15s ease, box-shadow .15s ease;
}

.wizard-actions button {
    color: #2e1700;
    background: var(--orange);
}

.wizard-actions button[disabled] {
    color: #8a8a8a;
    background: #e7e7e7;
    cursor: not-allowed;
}

.wizard-actions button:not([disabled]):hover,
.publish-box button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(120, 76, 22, .14);
}

.inline-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.inline-section h3 {
    margin: 0 0 6px;
    font-size: 21px;
}

.inline-section p {
    margin: 0 0 14px;
    color: var(--muted);
    font-weight: 700;
}

.post-check {
    margin: 18px 0;
}

.media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.media-tile {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: #2e1700;
    font-weight: 900;
}

.media-tile:hover {
    border-color: var(--orange);
}

.media-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.media-remove {
    position: absolute;
    right: 7px;
    top: 7px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(29, 29, 31, .78);
    border: 0;
    border-radius: 999px;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform .1s ease, background .15s ease;
}

.media-remove:hover {
    transform: scale(1.04);
    background: rgba(29, 29, 31, .92);
}

.preview-card {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.preview-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
}

.preview-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-media span {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    color: rgba(46, 23, 0, .24);
    font-size: clamp(28px, 6vw, 76px);
    font-weight: 1000;
    letter-spacing: 0;
    pointer-events: none;
}

.preview-body h3 {
    margin: 0 0 12px;
    color: #2e1700;
    font-size: 24px;
}

.preview-body strong {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--orange);
    color: #2e1700;
    font-size: 22px;
}

.preview-body p {
    white-space: pre-wrap;
}

.publish-box {
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--orange-pale);
}

.publish-box button {
    min-width: min(100%, 420px);
    min-height: 64px;
    color: #2e1700;
    background: var(--orange);
    font-size: 20px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.pagination a {
    min-width: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    text-decoration: none;
    font-weight: 900;
}

.pagination a.is-active {
    border-color: var(--orange);
    background: var(--orange);
    color: #2e1700;
}

@media (max-width: 860px) {
    .account-list__row,
    .preview-card,
    .profile-card {
        grid-template-columns: 1fr;
    }

    .profile-card--wide {
        grid-template-columns: 1fr;
    }

    .profile-meta-grid {
        grid-template-columns: 1fr;
    }

    .account-list__row--manage,
    .admin-row,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .listing-actions,
    .admin-row form {
        justify-content: flex-start;
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .profile-menu__panel {
        right: auto;
        left: 0;
    }

    .profile-v2 {
        grid-template-columns: 1fr;
    }

    .profile-v2__facts,
    .profile-v2__facts--seller {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .info-page {
        padding: 22px;
    }

    .profile-listing-row {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .profile-listing-row img {
        width: 92px;
        height: 76px;
        grid-row: span 2;
    }

    .profile-listing-row b {
        grid-column: 2;
    }

    .profile-v2 {
        padding: 18px;
    }

    .profile-v2__facts,
    .profile-v2__facts--seller,
    .profile-machine-grid {
        grid-template-columns: 1fr;
    }

    .profile-machine-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .profile-machine-card__media,
    .profile-machine-card__media img {
        width: 96px !important;
        height: 78px !important;
    }
}
