/* 1911 — Галт зэвсэг, тоног хэрэгслийн арилжаа */

:root {
    --ink: #222222;
    --paper: #f8f8f8;
    --muted: #767676;
    --line: #dedede;
    --sand: #e4e4e4;
    --soft: #ededed;
    --danger: #a3392a;
    --font-body: 'Roboto', Arial, sans-serif;
    --font-display: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    --font-logo: 'Big Shoulders Stencil Display', Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { cursor: pointer; }
button { border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
button:hover, a:hover { opacity: .78; }
button:focus-visible, a:focus-visible { outline: 2px solid #777; outline-offset: 5px; }

/* Top line & header */
.topline { background: var(--ink); color: #d9d9d9; display: flex; justify-content: space-between; padding: 10px 5%; font-size: 9px; letter-spacing: 1.5px; }
.dot { display: inline-block; width: 5px; height: 5px; background: #9a9a9a; border-radius: 50%; margin: 0 8px; vertical-align: middle; }
header { height: 96px; display: flex; align-items: center; gap: 40px; margin: 0 5%; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.logo { display: inline-flex; align-items: center; background: var(--ink); color: #fff; font-family: var(--font-logo); font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: 1px; padding: 9px 14px 7px; }
nav { display: flex; gap: 28px; font-size: 13px; white-space: nowrap; }
nav .active { font-weight: 700; }
.header-actions { margin-left: auto; display: flex; gap: 24px; align-items: center; white-space: nowrap; }
.saved-button { font-size: 13px; }
.login-button { gap: 20px; }
.saved-button.active { font-weight: 700; }
.save-count { background: #e9e9e9; padding: 3px 6px; margin-left: 5px; }

/* Header search */
.site-search { position: relative; flex: 1; max-width: 560px; display: flex; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, box-shadow .2s; }
.site-search:hover { box-shadow: inset 0 0 0 1px #c9c9c9; }
.site-search:focus-within, .site-search.open { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.site-search-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; cursor: text; }
.site-search-icon { font-size: 22px; line-height: 1; transition: transform .3s; }
.site-search.is-loading .site-search-icon { animation: search-pulse .8s ease-in-out infinite alternate; }
@keyframes search-pulse { to { opacity: .3; transform: scale(.85); } }
.site-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 14px 0; font-size: 13px; color: inherit; -webkit-appearance: none; appearance: none; }
.site-search input::placeholder { color: #8f8f8f; }
.site-search input::-webkit-search-cancel-button { display: none; }
kbd { display: inline-block; min-width: 20px; padding: 2px 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--paper); font: 600 10px/1.3 var(--font-body); color: var(--muted); text-align: center; }
.site-search:focus-within .site-search-field > kbd { visibility: hidden; }
.site-search-submit { padding: 0 20px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.search-panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: min(72vh, 540px); overflow-y: auto; overscroll-behavior: contain; padding: 6px 0 10px; background: #fff; border: 1px solid var(--ink); box-shadow: 0 28px 50px -20px #22222255; }
.search-panel[hidden], [data-search-results][hidden], [data-recent][hidden] { display: none; }
.suggest-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 8px; font-size: 8px; font-weight: 600; letter-spacing: 1.4px; color: var(--muted); }
.suggest-head button { font-size: 10px; letter-spacing: 0; font-weight: 400; color: var(--muted); text-decoration: underline; padding: 0; }
.suggest-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 18px 8px; }
.suggest-chips a { padding: 8px 12px; border: 1px solid var(--line); font-size: 11px; }
.suggest-chips a:hover, .suggest-chips a.active { border-color: var(--ink); background: var(--soft); opacity: 1; }
.suggest-recent-list a { display: flex; align-items: center; gap: 12px; padding: 9px 18px; font-size: 12px; }
.suggest-recent-list a:before { content: '↺'; color: var(--muted); font-size: 13px; }
.suggest-recent-list a:hover, .suggest-recent-list a.active { background: var(--soft); opacity: 1; }
.suggest-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 18px; }
.suggest-item:hover, .suggest-item.active { background: var(--soft); opacity: 1; }
.suggest-art { display: flex; align-items: center; justify-content: center; height: 44px; background: var(--soft); transition: background .15s; }
.suggest-item:hover .suggest-art, .suggest-item.active .suggest-art { background: var(--sand); }
.suggest-art svg { width: 92%; height: 82%; }
.suggest-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.suggest-text b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-text small { font-size: 8px; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); }
.suggest-price { font-size: 12px; font-weight: 600; }
.suggest-all { display: flex; justify-content: space-between; gap: 16px; margin: 8px 18px 0; padding: 13px 16px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
.suggest-all.active { outline: 2px solid var(--ink); outline-offset: 2px; }
.suggest-empty { padding: 16px 18px 8px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.suggest-empty b { color: var(--ink); }
.suggest-tip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 8px 0 0; padding: 12px 18px 2px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.suggest-tip b { color: var(--ink); font-weight: 600; }
.suggest-tip kbd { min-width: 0; padding: 0 4px; margin-right: 2px; font-size: 9px; }
mark { background: #dbdbdb; color: inherit; padding: 0 1px; }

/* Account menu */
.user-menu { position: relative; }
.user-menu summary { display: flex; align-items: center; gap: 10px; list-style: none; font-size: 13px; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:after { content: '▾'; font-size: 10px; color: var(--muted); }
.user-menu summary:focus-visible { outline: 2px solid #777; outline-offset: 5px; }
.avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 14px); min-width: 230px; padding: 6px 0; background: #fff; border: 1px solid var(--ink); box-shadow: 0 28px 50px -20px #22222255; }
.user-menu-head { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.user-menu-head span { font-size: 11px; color: var(--muted); }
.user-menu-panel a, .user-menu-panel button { display: block; width: 100%; padding: 11px 16px; text-align: left; font-size: 12px; }
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--soft); opacity: 1; }
.user-menu-panel form { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }

/* Buttons */
.dark, .white, .ghost { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 15px 22px; font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; }
.white { background: var(--paper); color: var(--ink); }
.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* Hero */
main { margin: 0 5%; }
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 475px; padding: 34px 0; }
.hero-copy { padding: 30px 40px 0 0; display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow { font-size: 9px; font-weight: 600; letter-spacing: 1.6px; }
.line { display: inline-block; width: 24px; height: 1px; background: var(--ink); margin: 0 9px 3px 0; }
h1 { font-family: var(--font-display); font-size: clamp(60px, 6.8vw, 105px); line-height: .96; letter-spacing: -.5px; margin: 27px 0 18px; font-weight: 700; }
.hero-copy p { max-width: 380px; font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 24px; }
.hero-bottom { display: flex; width: 100%; justify-content: space-between; margin-top: auto; padding-top: 32px; font-size: 8px; letter-spacing: 1px; color: var(--muted); }
.hero-art { position: relative; background: var(--sand); overflow: hidden; min-height: 420px; }
.hero-art-top { display: flex; justify-content: space-between; position: absolute; inset: 25px 25px auto; font-size: 8px; letter-spacing: 1.3px; z-index: 2; }
.hero-gear { position: absolute; inset: 30% 0 12%; z-index: 1; transform: rotate(-26deg) scale(1.16); filter: drop-shadow(0 20px 10px #45454525); }
.hero-gear svg { width: 100%; height: 100%; }
.art-circle { width: 350px; height: 350px; border: 1px solid #cacaca; border-radius: 50%; position: absolute; top: 45px; left: 20%; }
.art-circle:before { content: ''; position: absolute; inset: 35px; border: 1px solid #cacaca; border-radius: 50%; }
.art-caption { position: absolute; bottom: 27px; left: 25px; display: flex; flex-direction: column; gap: 6px; font-size: 8px; letter-spacing: 1.5px; }
.art-caption span:last-child { letter-spacing: 0; color: #747474; font-size: 10px; }
.floating-tag { position: absolute; bottom: 26px; right: 24px; display: flex; gap: 10px; align-items: center; font-size: 8px; line-height: 1.6; letter-spacing: .5px; }
.tag-square { background: var(--ink); color: #fff; padding: 9px; font-size: 18px; }

/* Category strip */
.category-strip { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-strip a { display: block; padding: 24px 16px; border-right: 1px solid var(--line); font-size: 12px; }
.category-strip a:first-child { padding-left: 0; }
.category-strip a:last-child { border: 0; }
.category-strip span { font-size: 8px; margin-right: 15px; color: var(--muted); }
.category-strip b { float: right; font-size: 17px; }

/* Marketplace */
.market { padding: 62px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; }
h2 { font-size: 35px; letter-spacing: -1.2px; font-weight: 500; margin: 10px 0 0; }
.sample-note { font-size: 8px; letter-spacing: 1px; color: var(--muted); }
.catalog { display: grid; grid-template-columns: 190px 1fr; gap: 32px; border-top: 1px solid var(--line); padding-top: 28px; }
aside { border-right: 1px solid var(--line); padding-right: 24px; }
.filter-title { font-size: 11px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.filter-title a { font-size: 9px; font-weight: 400; color: var(--muted); text-decoration: underline; }
.filter-label { font-size: 8px; letter-spacing: 1.3px; font-weight: 600; display: block; margin: 25px 0 12px; }
select { border: 1px solid var(--line); background: transparent; padding: 10px; font-size: 11px; max-width: 100%; color: inherit; }
aside select { width: 100%; }
.check { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); margin: 12px 0; }
.check input { accent-color: var(--ink); margin: 0; width: 14px; height: 14px; flex: none; }
input[type=range] { width: 100%; accent-color: var(--ink); }
.range-label { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.apply-filters { width: 100%; margin-top: 22px; }
.js .apply-filters { display: none; }
.aside-card { padding: 18px; background: #ececec; margin-top: 32px; }
.aside-card > span { font-size: 30px; }
.aside-card h3 { font-size: 12px; line-height: 1.5; margin: 14px 0 5px; }
.aside-card p { font-size: 10px; color: var(--muted); line-height: 1.6; }
.aside-card a { display: block; font-size: 10px; padding: 12px 0 0; border-top: 1px solid #d7d7d7; }
#results { transition: opacity .2s; }
#results.is-loading { opacity: .45; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; font-size: 10px; color: var(--muted); }
.results-bar select { border: 0; padding: 0 0 0 8px; color: var(--ink); font-size: 10px; }
.results-count { display: flex; align-items: center; gap: 12px; }
.query-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; background: var(--ink); color: #fff; font-size: 10px; }
.query-chip b { font-size: 13px; line-height: 1; font-weight: 400; }
.empty { padding: 60px 30px; background: #eeeeee; font-size: 13px; line-height: 1.7; }

/* Listing cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px 18px; }
.card { position: relative; }
.product-image { background: var(--soft); height: 180px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-image svg { width: 92%; height: 80%; filter: drop-shadow(0 8px 4px #2f2f2f22); }
.save-form { position: absolute; right: 10px; top: 8px; z-index: 2; margin: 0; }
.heart { font-size: 21px; padding: 3px 7px; background: #f6f6f6; line-height: 1.3; }
.heart.on { color: #222; }
.product-info { display: block; padding: 15px 0 0; }
.meta { font-size: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; }
.card h3 { font-size: 13px; font-weight: 600; margin: 8px 0 13px; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 14px; font-weight: 600; }
.condition-pill { font-size: 8px; border: 1px solid var(--line); padding: 4px 7px; }
.location { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; display: flex; justify-content: space-between; font-size: 8px; color: var(--muted); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; font-size: 11px; }
.pagination a, .pagination span { min-width: 36px; padding: 9px 12px; border: 1px solid var(--line); text-align: center; }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .disabled { color: var(--muted); opacity: .6; }

/* Order banner & process */
.order-banner { background: var(--ink); color: #f0f0f0; padding: 40px 45px; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; overflow: hidden; }
.order-banner .eyebrow { grid-column: 1 / -1; color: #b6b6b6; }
.order-banner h2 { font-size: 39px; line-height: 1.13; margin: 0; }
.order-banner p { font-size: 12px; line-height: 1.9; color: #c5c5c5; margin: 0 0 20px; }
.order-banner > div:last-of-type { z-index: 1; }
.banner-arrow { position: absolute; font-size: 190px; right: 0; bottom: -45px; color: #ffffff08; }
.how { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; padding: 65px 0; }
.how h2 { font-size: 28px; }
.how article > span { font-size: 10px; color: var(--muted); }
.how h3 { font-size: 13px; margin: 17px 0 10px; }
.how p { font-size: 11px; color: var(--muted); line-height: 1.8; }

/* Listing detail page */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; padding: 28px 0 0; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink); }
.detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; padding: 24px 0 64px; border-bottom: 1px solid var(--line); }
.detail-art { position: relative; background: var(--sand); min-height: 460px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.detail-art .art-circle { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.detail-art svg { position: relative; width: 90%; max-height: 80%; filter: drop-shadow(0 16px 8px #45454525); }
.detail-info { display: flex; flex-direction: column; align-items: flex-start; padding-top: 8px; }
.detail-info h1 { font-size: clamp(42px, 4.4vw, 68px); margin: 18px 0 4px; }
.detail-price { font-size: 26px; font-weight: 600; margin: 12px 0 26px; }
.detail-rows { width: 100%; border-top: 1px solid var(--line); }
.detail-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.detail-row span { color: var(--muted); }
.detail-text { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 24px 0; }
.detail-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: #ececec; margin-bottom: 28px; }
.detail-note span { flex: none; display: grid; place-items: center; width: 22px; height: 22px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }
.detail-note p { margin: 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.detail-actions .save-form { position: static; }
.detail-hint { margin: 18px 0 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.detail-hint a { color: var(--ink); text-decoration: underline; }
.related { padding: 56px 0 64px; }
.related .grid { grid-template-columns: repeat(4, 1fr); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 30px 5%; display: flex; align-items: center; justify-content: space-between; }
footer .logo { font-size: 26px; padding: 7px 11px 5px; }
footer p, footer > span { font-size: 9px; letter-spacing: 1px; color: var(--muted); }

/* Forms */
.muted { font-size: 12px; color: var(--muted); line-height: 1.8; }
.muted-text { color: var(--muted); }
form { margin: 0; }
.form { margin-top: 25px; }
.form label { display: block; font-size: 10px; margin-bottom: 16px; }
.form input:not([type=checkbox]), .form select, .form textarea { display: block; padding: 12px; background: var(--soft); border: 1px solid var(--line); width: 100%; margin-top: 7px; font-size: 12px; border-radius: 0; color: inherit; outline: 0; }
.form input:not([type=checkbox]):focus, .form select:focus, .form textarea:focus { border-color: var(--ink); background: #fff; }
.form textarea { height: 85px; resize: vertical; line-height: 1.6; }
.form textarea[rows] { height: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form .check { display: flex; font-size: 11px; line-height: 1.5; }
.form > .dark { margin-top: 8px; }
.optional { color: var(--muted); }
.field-error { display: block; margin: 6px 0 0; color: var(--danger); font-size: 10px; }
.form .check + .field-error { margin: -6px 0 16px; }
.phone-input { display: flex; margin-top: 7px; border: 1px solid var(--line); background: var(--soft); }
.phone-input:focus-within { border-color: var(--ink); background: #fff; }
.phone-input > span { display: grid; place-items: center; padding: 0 12px; border-right: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.form .phone-input input { margin: 0; border: 0; background: none; letter-spacing: 1px; }
.notice { margin: 20px 0 0; padding: 14px 16px; background: #ececec; border-left: 3px solid var(--ink); font-size: 11px; line-height: 1.7; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice-error { background: #e9e9e9; border-left-color: var(--danger); }
main > .notice { margin: 24px 0 0; }
.plain { padding: 0; font-size: 11px; text-decoration: underline; }
.js .js-hidden { display: none; }

/* Sign in & register */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 34px 0 64px; }
.auth-art { min-height: 560px; }
.auth-card { display: flex; flex-direction: column; justify-content: center; max-width: 440px; padding: 20px 0; }
.auth-card h1 { font-size: clamp(52px, 5.4vw, 84px); margin: 22px 0 12px; }
.auth-card .dark { width: 100%; }
.auth-switch { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.auth-switch a { color: var(--ink); font-weight: 600; }

/* Order request */
.order { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 24px 0 64px; }
.order-summary .detail-art { min-height: 300px; margin-bottom: 24px; }
.order-summary .detail-art .art-circle { width: 260px; height: 260px; }
.order-summary h2 { font-size: 26px; letter-spacing: -.6px; line-height: 1.25; margin: 12px 0 22px; }
.order-form { max-width: 480px; }
.order-form h1 { font-size: clamp(52px, 5.4vw, 84px); margin: 22px 0 12px; }
.contact-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 16px; background: #ececec; }
.contact-card div { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.contact-card div span { font-size: 11px; color: var(--muted); }
.contact-card small { font-size: 8px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.order-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; margin-bottom: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.order-total b { font-size: 22px; color: var(--ink); }
.order-form .dark { width: 100%; }

/* My orders */
.account { padding: 48px 0 64px; min-height: 50vh; }
.order-list { border-top: 1px solid var(--line); }
.order-row { display: grid; grid-template-columns: 110px 1fr auto 120px; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.order-thumb { height: 70px; display: flex; align-items: center; justify-content: center; background: var(--soft); }
.order-thumb svg { width: 90%; height: 80%; }
.order-main h3 { font-size: 14px; margin: 6px 0 0; }
.order-main p { margin: 6px 0 0; font-size: 11px; color: var(--muted); line-height: 1.6; }
.order-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 10px; color: var(--muted); }
.order-amount b { font-size: 15px; color: var(--ink); }
.status-pill { justify-self: end; padding: 6px 10px; font-size: 9px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; border: 1px solid var(--line); }
.status-new { background: var(--ink); border-color: var(--ink); color: #fff; }
.status-contacted { background: var(--sand); border-color: var(--sand); }
.status-completed { border-color: var(--ink); }
.status-cancelled { color: var(--muted); text-decoration: line-through; }

/* Admin */
.admin { padding: 40px 0 64px; min-height: 60vh; }
.admin-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 0; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.admin-bar h2 { margin-bottom: 18px; }
.admin-tabs, .status-tabs { display: flex; gap: 28px; }
.admin-tabs a { display: flex; align-items: center; gap: 8px; padding: 18px 0; font-size: 12px; color: var(--muted); border-bottom: 2px solid transparent; }
.admin-tabs .selected { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.admin-tabs .count { padding: 2px 6px; background: var(--danger); color: #fff; font-size: 9px; }
.status-tabs { flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.status-tabs a { padding: 8px 12px; border: 1px solid var(--line); font-size: 11px; }
.status-tabs a span { margin-left: 6px; color: var(--muted); }
.status-tabs .selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.status-tabs .selected span { color: #c5c5c5; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { padding: 12px 14px; background: var(--soft); text-align: left; font-size: 8px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.admin-table td { padding: 14px; border-top: 1px solid var(--line); vertical-align: top; }
.admin-table tbody tr:hover { background: #fbfbfb; }
.admin-table .num { text-align: right; }
.admin-table .nowrap { white-space: nowrap; }
.admin-table .wide { min-width: 260px; }
.admin-table .mono { font-variant-numeric: tabular-nums; color: var(--muted); }
.admin-table small, .admin-table .tel { display: block; margin-top: 4px; font-size: 10px; }
.admin-table .tel { color: var(--ink); text-decoration: underline; font-variant-numeric: tabular-nums; }
.admin-table .note { margin: 6px 0 0; padding: 8px 10px; background: var(--soft); font-size: 11px; line-height: 1.6; color: var(--muted); }
.source-link { display: inline-block; margin-left: 6px; font-size: 10px; text-decoration: underline; color: var(--muted); }
td > .source-link:first-child { margin-left: 0; }
.status-select { padding: 7px 8px; font-size: 11px; font-weight: 600; }
.status-select.status-cancelled { text-decoration: none; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions a, .row-actions button { font-size: 11px; text-decoration: underline; padding: 0; }
.row-actions form { display: inline; margin-left: 12px; }
.row-actions button { color: var(--danger); }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 14px; font-size: 11px; }
.import-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 24px 28px; background: var(--sand); }
.import-card-compact { max-width: 760px; margin-bottom: 24px; padding: 18px 22px; }
.import-main { flex: 1; min-width: 0; }
.import-card h3 { font-size: 16px; margin: 10px 0 14px; }
.import-form { display: flex; gap: 10px; margin-top: 12px; }
.import-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); background: #fff; font-size: 12px; outline: 0; }
.import-form input:focus { border-color: var(--ink); }
.import-form .dark { flex: none; gap: 16px; }
.import-main > .muted-text { margin: 12px 0 0; font-size: 10px; line-height: 1.7; }
.import-alt { flex: none; width: 280px; padding: 14px 16px; background: #fbfbfb; font-size: 11px; }
.import-alt summary { cursor: pointer; font-weight: 600; }
.import-alt ol { margin: 10px 0 14px; padding-left: 16px; font-size: 10px; line-height: 1.8; color: #4f4f4f; }
.bookmarklet { cursor: grab; box-shadow: 0 0 0 4px #22222222; }
.sync-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-width: 760px; margin: 0 0 20px; padding: 12px 16px; background: var(--soft); font-size: 11px; }
.sync-line form { margin-left: auto; }
.status-ended { background: var(--danger); border-color: var(--danger); color: #fff; }
.admin-table .status-pill { display: inline-block; margin-top: 6px; }
.admin-toolbar .actions { display: flex; gap: 10px; }
.admin-toolbar .ghost { gap: 14px; }
.danger-text { color: var(--danger); }
.import-alt .import-form { margin-top: 10px; flex-direction: column; }
.import-alt .muted-text { margin: 10px 0 0; font-size: 10px; line-height: 1.7; }

/* GunBroker batch window */
.bridge-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; font-size: 11px; }
.progress { flex: 1 0 160px; height: 4px; background: var(--line); }
.progress b { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s; }
.bridge-status small { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin: 0 0 16px; font-size: 10px; }
.batch-controls label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.form .batch-controls input { width: 120px; margin: 0; padding: 9px 10px; font-size: 12px; background: #fff; }
.batch-controls .muted-text { flex-basis: 100%; line-height: 1.6; }
.batch-table td { vertical-align: top; }
.batch-check input { width: 15px; height: 15px; margin-top: 10px; accent-color: var(--ink); }
.batch-thumb img { display: block; width: 72px; height: 54px; object-fit: cover; background: var(--soft); }
.form .batch-title { width: 100%; margin: 0; padding: 8px 10px; font-size: 12px; background: #fff; }
.form .batch-table select { padding: 8px; font-size: 11px; background: #fff; }
.form .batch-mnt { width: 130px; margin: 0; padding: 8px 10px; font-size: 12px; background: #fff; }
.batch-table small { display: block; margin-top: 6px; font-size: 10px; }
.row-details { margin-top: 6px; font-size: 10px; }
.row-details summary { cursor: pointer; color: var(--muted); }
.form .row-details textarea { margin-top: 6px; padding: 8px; font-size: 11px; height: auto; background: #fff; }
.batch-table tr.is-ended { opacity: .55; }
.batch-table tr.is-ended:has(input:checked) { opacity: 1; }
.bridge-help { margin-top: 28px; width: auto; max-width: 560px; }
.admin > .empty { margin-bottom: 20px; }
.admin-form { max-width: 760px; margin-top: 0; }
.admin > .notice { max-width: 760px; margin: 0 0 24px; }
.admin-form fieldset { margin: 0 0 22px; padding: 22px 22px 6px; border: 1px solid var(--line); }
.admin-form legend { padding: 0 8px; font-size: 8px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.form-row-wide { grid-template-columns: 2fr 1fr; }
.form-actions { display: flex; gap: 12px; }

/* Toast */
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 14px 24px; font-size: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 10; max-width: 90%; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1500px) {
    main, header { max-width: 1400px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 1200px) {
    header { gap: 28px; }
    nav a + a { display: none; }
    .user-menu .label, .saved-button .label { display: none; }
}

@media (max-width: 1000px) {
    .site-search-field > kbd { display: none; }
    .grid, .related .grid { grid-template-columns: repeat(2, 1fr); }
    .hero-copy { padding-right: 15px; }
    .hero-bottom span:last-child { display: none; }
    .floating-tag { display: none; }
    .how { gap: 20px; }
    .category-strip a { padding: 20px 10px; }
    .category-strip span { margin-right: 8px; }
    .detail, .auth, .order { gap: 32px; }
    .order-row { grid-template-columns: 90px 1fr auto; }
    .order-row .status-pill { grid-column: 2 / -1; justify-self: start; }
    .import-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
    .topline { font-size: 7px; }
    .topline > span:last-child { display: none; }
    header { height: auto; flex-wrap: wrap; gap: 14px 18px; padding: 14px 0; }
    .logo { font-size: 27px; padding: 7px 10px 5px; }
    nav { gap: 18px; font-size: 11px; }
    .header-actions { gap: 14px; }
    .login-button { padding: 11px 14px; gap: 10px; }
    .avatar { width: 32px; height: 32px; }
    .site-search { order: 3; flex: 1 0 100%; max-width: none; }
    .site-search input { font-size: 16px; padding: 12px 0; }
    .site-search-submit { padding: 0 16px; }
    .search-panel { max-height: 62vh; }
    .suggest-item { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding: 8px 14px; }
    .suggest-head, .suggest-chips, .suggest-tip, .suggest-empty { padding-left: 14px; padding-right: 14px; }
    .suggest-all { margin: 8px 14px 0; }
    .suggest-tip span { display: none; }
    .user-menu-panel { right: -4px; }
    .hero { grid-template-columns: 1fr; padding: 24px 0; gap: 25px; }
    .hero-copy { padding-top: 5px; }
    h1 { font-size: 72px; }
    .hero-copy p { max-width: 100%; }
    .hero-bottom { display: none; }
    .hero-art { min-height: 300px; }
    .art-circle { top: 10px; width: 270px; height: 270px; }
    .category-strip { display: flex; overflow-x: auto; }
    .category-strip a { min-width: 150px; font-size: 10px; }
    .section-heading { display: block; }
    .sample-note { margin-top: 18px; }
    .market { padding: 40px 0; }
    .catalog { grid-template-columns: 1fr; gap: 0; padding-top: 18px; }
    aside { border: 0; padding: 0; display: flex; gap: 8px; align-items: center; margin-bottom: 15px; }
    .filter-title { margin: 0; white-space: nowrap; font-size: 10px; }
    .filter-title a { margin-left: 10px; }
    aside > select { width: 160px; margin-left: auto; }
    aside > .filter-label, aside > .check, aside > input, aside > .range-label, .aside-card { display: none; }
    .apply-filters { width: auto; margin: 0; padding: 10px 12px; }
    .grid { gap: 25px 12px; }
    .product-image { height: 150px; }
    .card h3 { font-size: 12px; line-height: 1.5; min-height: 36px; }
    .card-bottom { align-items: flex-start; gap: 5px; }
    .price { font-size: 12px; }
    .condition-pill { font-size: 7px; padding: 3px 5px; }
    .location { font-size: 7px; }
    .order-banner { padding: 30px 24px; grid-template-columns: 1fr; gap: 22px; }
    .order-banner h2 { font-size: 32px; }
    .how { grid-template-columns: 1fr; padding: 40px 0; gap: 20px; }
    .how article { border-top: 1px solid var(--line); padding-top: 20px; }
    .how h3 { margin-top: 8px; }
    .detail { grid-template-columns: 1fr; gap: 28px; padding-bottom: 44px; }
    .detail-art { min-height: 280px; }
    .detail-art .art-circle { width: 240px; height: 240px; }
    .detail-info h1 { font-size: 44px; }
    .related { padding: 40px 0 48px; }
    footer { flex-wrap: wrap; gap: 20px; }
    footer p { display: none; }
    .form-row, .form-row-wide { grid-template-columns: 1fr; gap: 0; }
    .auth, .order { grid-template-columns: 1fr; padding-bottom: 44px; }
    .auth-art { min-height: 240px; order: 2; }
    .auth-card { padding: 0; }
    .auth-card h1, .order-form h1 { font-size: 52px; }
    .order-summary .detail-art { min-height: 200px; }
    .order-summary .detail-art .art-circle { width: 180px; height: 180px; }
    .account, .admin { padding-top: 32px; }
    .account .section-heading .ghost { margin-top: 18px; }
    .order-row { grid-template-columns: 70px 1fr; gap: 10px 14px; }
    .order-thumb { height: 52px; }
    .order-amount { grid-column: 2; align-items: flex-start; }
    .admin-bar { flex-direction: column; align-items: flex-start; gap: 0; }
    .import-card { padding: 20px; }
    .admin-form fieldset { padding: 16px 14px 2px; }
    .import-form { flex-direction: column; }
    .import-alt { width: 100%; }
    .admin-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .batch-controls label { flex: 1 1 40%; }
    .form .batch-controls input { width: 100%; }
    .hero-art-top { inset: 20px 20px auto; }
}
