:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #171716;
  --muted: #6c6860;
  --line: #e2ddd3;
  --accent: #b07a34;
  --accent-dark: #7c5525;
  --dark: #111827;
  --green: #1f7a4d;
  --blue: #255d99;
  --red: #a43f35;
  --shadow: 0 24px 70px rgba(25, 23, 20, 0.09);
  --radius: 22px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { width: min(1220px, calc(100% - 40px)); margin: 20px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 14px 16px; background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(12px); position: sticky; top: 14px; z-index: 20; box-shadow: 0 12px 30px rgba(0,0,0,.04); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 245px; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: white; display: grid; place-items: center; font-weight: 800; font-size: 12px; letter-spacing: .08em; }
.brand strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: -2px; }
.nav { display: flex; align-items: center; gap: 18px; color: #4b4741; font-size: 14px; }
.nav a:hover, .text-link:hover { color: var(--accent-dark); }
.admin-link { padding: 8px 12px; background: var(--ink); color: white; border-radius: 999px; }
.hero { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; align-items: stretch; margin: 52px 0 30px; }
.hero-copy { padding: 62px; background: linear-gradient(135deg, #fff 0%, #f4eadc 100%); border: 1px solid var(--line); border-radius: 36px; box-shadow: var(--shadow); }
.eyebrow { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .14em; font-weight: 750; font-size: 12px; margin: 0 0 14px; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.04em; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 78px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 22px; }
.hero-text { font-size: 19px; color: var(--muted); max-width: 760px; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions.centered { justify-content: center; }
.btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 12px 18px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; gap: 8px; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: white; border-color: var(--ink); }
.btn.secondary { background: #fffaf4; color: var(--ink); }
.btn.dark { background: var(--dark); color: white; border-color: var(--dark); }
.btn.large { padding: 15px 24px; font-size: 15px; }
.btn.tiny { padding: 7px 10px; font-size: 12px; }
.btn.danger { color: white; background: var(--red); border-color: var(--red); }
.hero-panel { border-radius: 36px; padding: 34px; color: white; background: radial-gradient(circle at 20% 0%, #5b5b52, #111 70%); display: flex; flex-direction: column; justify-content: end; min-height: 320px; box-shadow: var(--shadow); }
.panel-label { text-transform: uppercase; letter-spacing: .12em; color: #d9bd96; font-size: 12px; font-weight: 800; }
.hero-panel p { color: #d6d0c7; margin-bottom: 0; }
.filter-section, .content-card, .sidebar-card, .form-card, .declaration-box, .auth-card, .empty-state, .notice-band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 42px rgba(0,0,0,.04); }
.filter-section { padding: 18px; margin: 24px 0 42px; }
.filters { display: grid; grid-template-columns: minmax(220px, 1fr) 200px 180px auto; gap: 12px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font: inherit; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
label { display: block; font-weight: 700; font-size: 14px; color: #312f2b; }
label input, label select, label textarea { margin-top: 8px; }
.region-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pill { border: 1px solid var(--line); background: #fbfaf8; border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: 13px; color: #4d4942; }
.pill span { color: var(--muted); margin-left: 6px; }
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.listings-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin: 0 0 20px; }
.text-link { color: var(--accent-dark); font-weight: 800; }
.machine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.machine-card { background: white; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 18px 54px rgba(0,0,0,.06); position: relative; }
.card-image { display: block; height: 235px; background: #e9e2d8; position: relative; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.machine-card:hover img { transform: scale(1.04); }
.placeholder-image { height: 100%; min-height: 220px; display: grid; place-items: center; background: linear-gradient(135deg, #e6dfd5, #f6f1ea); color: #92877b; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.placeholder-image.large { min-height: 420px; border-radius: 24px; }
.status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 850; background: #eee; color: #333; }
.card-image .status-badge { position: absolute; top: 14px; left: 14px; backdrop-filter: blur(12px); }
.status-badge.available { background: #dff4e8; color: var(--green); }
.status-badge.reserved { background: #e0edff; color: var(--blue); }
.status-badge.sold, .status-badge.rejected, .status-badge.spam { background: #f7dedb; color: var(--red); }
.status-badge.pending_review, .status-badge.new { background: #fff0d6; color: #915d10; }
.status-badge.archived, .status-badge.closed { background: #e9e7e2; color: #69635b; }
.status-badge.contact_shared, .status-badge.matched, .status-badge.reviewed { background: #e0edff; color: var(--blue); }
.card-body { padding: 22px; }
.meta, .specs, .summary, .muted { color: var(--muted); }
.meta { margin: 0 0 8px; font-size: 13px; font-weight: 750; }
.card-body h3 { margin-bottom: 10px; }
.specs { min-height: 24px; margin: 0 0 12px; }
.price { font-weight: 900; margin: 0 0 12px; }
.price span { color: var(--accent-dark); font-size: 13px; margin-left: 8px; }
.summary { margin: 0 0 16px; }
.card-link { font-weight: 900; color: var(--accent-dark); }
.is-sold .card-image img { filter: grayscale(.35); }
.notice-band { margin: 44px 0; padding: 32px; background: #171716; color: white; }
.notice-band p { color: #d1cbc2; max-width: 980px; }
.page-hero { margin: 52px auto 28px; padding: 48px; background: #fff; border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow); }
.page-hero.narrow { max-width: 900px; }
.page-hero p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.form-shell { max-width: 980px; margin: 0 auto 56px; display: grid; gap: 18px; }
.form-card, .declaration-box { padding: 28px; }
.form-card h2, .declaration-box h2 { margin-bottom: 18px; }
.form-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; line-height: 1.4; }
.check-row input { width: auto; margin-top: 2px; }
.declaration-box { background: #fffaf4; }
.declaration-box.compact p { margin-top: 0; }
.form-errors { max-width: 980px; margin: 0 auto 18px; padding: 14px 18px; border: 1px solid #efb8b1; color: #8a2f27; background: #fff1ef; border-radius: 16px; font-weight: 750; }
.form-errors p { margin: 4px 0; }
.flash { width: min(1180px, calc(100% - 40px)); margin: 18px auto 0; padding: 12px 18px; border-radius: 14px; font-weight: 800; }
.flash.success { background: #e3f5eb; color: var(--green); }
.detail-hero { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin: 52px 0 22px; padding: 42px; border-radius: 32px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.detail-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-weight: 850; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; margin-bottom: 56px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.gallery img { border-radius: 20px; height: 180px; width: 100%; object-fit: cover; border: 1px solid var(--line); }
.gallery .main-photo { grid-column: span 3; height: 500px; }
.content-card, .sidebar-card { padding: 28px; margin-bottom: 22px; }
.content-card h2, .sidebar-card h2 { margin-bottom: 14px; }
.warning-card { background: #fff7eb; }
.spec-list { display: grid; grid-template-columns: 130px 1fr; gap: 12px 16px; margin: 18px 0; }
.spec-list.two-col { grid-template-columns: 170px 1fr; }
.spec-list dt { color: var(--muted); font-weight: 800; }
.spec-list dd { margin: 0; font-weight: 700; }
.checklist ol { padding-left: 24px; }
.checklist li { margin: 0 0 18px; }
.empty-state { margin: 52px auto; padding: 52px; max-width: 760px; text-align: center; }
.empty-state p { color: var(--muted); font-size: 18px; }
.success-state { background: linear-gradient(135deg, #fff, #f3eadc); }
.auth-card { max-width: 470px; margin: 74px auto; padding: 36px; }
.auth-card p { color: var(--muted); }
.admin-top { margin: 44px 0 14px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.admin-nav a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 800; color: #4b4741; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 20px; font-weight: 850; color: var(--muted); }
.stat-card span { display: block; color: var(--ink); font-size: 34px; line-height: 1; margin-bottom: 8px; }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.admin-table small { color: var(--muted); }
.machine-cell { display: flex; gap: 12px; align-items: center; min-width: 270px; }
.machine-cell img { width: 74px; height: 54px; object-fit: cover; border-radius: 10px; }
.machine-cell strong, .machine-cell small { display: block; }
.table-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 220px; }
.table-actions form { display: inline; }
.admin-filters { margin-bottom: 18px; }
.private-card { border-color: #ecd2aa; background: #fffaf4; }
.admin-image-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-image { border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: #fbfaf8; }
.admin-image img { height: 120px; width: 100%; object-fit: cover; border-radius: 12px; }
.admin-image small { display: block; color: var(--muted); margin: 8px 0; }
.admin-detail-layout { grid-template-columns: 1fr 340px; }
.copy-box { margin-top: 16px; white-space: pre-wrap; background: #111; color: #fff; border-radius: 16px; padding: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.mini-listing { max-width: 980px; margin: 0 auto 18px; }
.site-footer { width: min(1180px, calc(100% - 40px)); margin: 40px auto 24px; display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer strong { color: var(--ink); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 800; color: #4d4942; }
.small { font-size: 13px; }
code { background: #f2eee7; border-radius: 8px; padding: 3px 6px; }
@media (max-width: 980px) {
  .site-header { border-radius: 24px; align-items: flex-start; flex-direction: column; }
  .nav { flex-wrap: wrap; }
  .hero, .detail-layout, .admin-detail-layout, .admin-two-col { grid-template-columns: 1fr; }
  .hero-copy { padding: 40px; }
  .machine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .detail-hero { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  main, .site-header, .site-footer, .flash { width: min(100% - 24px, 1180px); }
  h1 { font-size: 42px; }
  .hero-copy, .page-hero, .detail-hero { padding: 28px; }
  .machine-grid, .filters, .form-grid.two, .form-grid.three, .stats-grid, .gallery, .admin-image-grid { grid-template-columns: 1fr; }
  .gallery .main-photo { grid-column: span 1; height: 280px; }
  .machine-card .card-image { height: 220px; }
  .spec-list, .spec-list.two-col { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

/* Floating marketplace actions and modal forms */
.nav button, .nav a[data-open-modal], .footer-links a[data-open-modal] { font: inherit; }
.floating-actions { position: fixed; right: 22px; bottom: 22px; display: grid; gap: 10px; z-index: 80; }
.float-btn { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 16px 42px rgba(0,0,0,.18); border-radius: 999px; padding: 13px 18px; font-weight: 850; cursor: pointer; backdrop-filter: blur(14px); }
.float-btn.primary { background: var(--ink); color: #fff; }
.float-btn:hover { transform: translateY(-1px); }
body.modal-open { overflow: hidden; }
.modal-overlay { position: fixed; inset: 0; background: rgba(18, 17, 15, .54); backdrop-filter: blur(8px); display: none; place-items: center; padding: 22px; z-index: 100; }
.modal-overlay.active { display: grid; }
.modal-panel { width: min(760px, 100%); max-height: min(90vh, 920px); overflow: auto; background: var(--bg); border: 1px solid rgba(255,255,255,.4); border-radius: 30px; box-shadow: 0 30px 100px rgba(0,0,0,.36); position: relative; }
.modal-panel.wide { width: min(1020px, 100%); }
.modal-close { position: sticky; top: 14px; margin-left: auto; margin-right: 14px; margin-top: 14px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.modal-header { padding: 0 28px 18px; }
.modal-header p:not(.eyebrow) { color: var(--muted); margin-bottom: 0; }
.modal-step { display: none; padding: 0 28px 28px; }
.modal-step.active { display: block; }
.terms-scroll { max-height: 430px; overflow: auto; background: #fffaf4; border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.terms-scroll p { color: #4f4a42; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.sticky-actions { position: sticky; bottom: 0; margin: 18px -28px -28px; padding: 16px 28px; background: rgba(246,243,238,.92); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
.modal-form-grid { display: grid; gap: 16px; }
.compact-card { padding: 22px; margin-bottom: 0; }
.compact-card h3 { margin-bottom: 14px; }
.needs-attention { color: var(--red); }
.needs-attention input { outline: 2px solid var(--red); }
@media (max-width: 680px) {
  .floating-actions { right: 12px; left: 12px; bottom: 12px; grid-template-columns: 1fr 1fr; }
  .float-btn { padding: 12px 10px; font-size: 13px; }
  .modal-overlay { padding: 12px; }
  .modal-panel { border-radius: 22px; }
  .modal-header, .modal-step { padding-left: 18px; padding-right: 18px; }
  .sticky-actions { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
}

/* v2.4 clean marketplace redesign */
body { background: #f7f6f2; }
.minimal-header {
  width: min(1180px, calc(100% - 40px));
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 34px rgba(20, 18, 15, .05);
}
.minimal-header .brand { min-width: auto; }
.minimal-header .brand-mark { border-radius: 14px; }
.admin-mini-nav { display: flex; align-items: center; gap: 10px; }
.admin-mini-nav form { margin: 0; }
.catalog-hero {
  display: block;
  margin: 46px 0 22px;
}
.catalog-hero-copy {
  padding: 54px 56px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #faf8f3 58%, #efe7dc 100%);
  box-shadow: 0 18px 54px rgba(25,23,20,.06);
}
.catalog-hero-copy h1 {
  max-width: 900px;
  font-size: clamp(40px, 5.4vw, 70px);
  letter-spacing: -.055em;
}
.catalog-hero-copy .hero-text {
  max-width: 780px;
  font-size: 18px;
  margin-top: 20px;
}
.catalog-filter {
  padding: 16px;
  margin: 18px 0 34px;
  border-radius: 24px;
  box-shadow: none;
  background: rgba(255,255,255,.78);
}
.catalog-filter .filters { grid-template-columns: minmax(260px, 1fr) 190px 170px auto; }
.compact-region-pills { margin-top: 12px; }
.compact-region-pills .pill { background: #fff; }
.catalog-listings-head { margin-bottom: 16px; }
.catalog-listings-head h2 { font-size: clamp(28px, 3.2vw, 42px); }
.listing-note { max-width: 420px; text-align: right; margin: 0; }
.catalog-machine-grid { gap: 18px; }
.catalog-machine-card {
  border-radius: 22px;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.catalog-machine-card:hover {
  transform: translateY(-3px);
  border-color: #d5cbbd;
  box-shadow: 0 20px 54px rgba(25,23,20,.08);
}
.catalog-machine-card .card-image { height: 250px; background: #ece7df; }
.catalog-machine-card .card-body { padding: 20px; }
.catalog-machine-card h3 { font-size: 21px; letter-spacing: -.035em; }
.catalog-machine-card .summary { display: none; }
.catalog-machine-card .card-link { display: inline-flex; margin-top: 4px; }
.compact-empty-state { margin: 34px auto; padding: 36px; box-shadow: none; }
.compact-notice-band {
  margin: 40px 0 34px;
  padding: 28px;
  border-radius: 24px;
  background: #161614;
}
.compact-notice-band h2 { font-size: 30px; }
.clean-footer {
  margin-top: 28px;
  padding-top: 22px;
  font-size: 14px;
}
.clean-footer p { max-width: 760px; margin: 8px 0 0; }
.footer-quiet-links { align-items: flex-start; justify-content: flex-end; }
.floating-actions {
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(17,17,17,.16);
}
.float-btn {
  box-shadow: none;
  border-color: #ded8ce;
  background: #fff;
  padding: 12px 16px;
}
.float-btn.primary { background: #151514; border-color: #151514; }
.modal-panel { background: #f7f6f2; }
.modal-header h2 { letter-spacing: -.045em; }
@media (max-width: 980px) {
  .minimal-header { flex-direction: row; align-items: center; border-radius: 22px; }
  .catalog-filter .filters { grid-template-columns: 1fr 1fr; }
  .listing-note { text-align: left; }
}
@media (max-width: 680px) {
  .minimal-header { width: min(100% - 24px, 1180px); }
  .catalog-hero-copy { padding: 34px 26px; border-radius: 24px; }
  .catalog-filter .filters { grid-template-columns: 1fr; }
  .catalog-machine-card .card-image { height: 230px; }
  .catalog-listings-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .floating-actions { right: 12px; left: 12px; bottom: 12px; display: grid; grid-template-columns: 1fr 1fr; }
  .footer-quiet-links { justify-content: flex-start; }
}
.detail-action-note { max-width: 260px; font-weight: 750; text-align: right; }
@media (max-width: 980px) { .detail-action-note { text-align: left; max-width: none; } }

/* Image upload preview and validation */
.image-upload-error { display: none; margin: 10px 0 0; padding: 10px 12px; border: 1px solid #efb8b1; background: #fff1ef; color: #8a2f27; border-radius: 14px; font-size: .9rem; font-weight: 750; }
.image-upload-error.active { display: block; }
.image-upload-error p { margin: 3px 0; }
.image-preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.image-preview-item { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 8px; display: grid; gap: 8px; box-shadow: 0 12px 30px rgba(42, 36, 28, .06); }
.image-preview-item img { width: 100%; height: 110px; object-fit: cover; border-radius: 12px; background: #eee8de; }
.image-preview-meta { min-width: 0; display: grid; gap: 2px; }
.image-preview-meta strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.image-preview-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .84rem; }
.image-preview-meta small { color: var(--soft); font-weight: 750; }
.image-remove-btn { border: 1px solid var(--line); background: #fbfaf8; color: var(--ink); border-radius: 999px; padding: 7px 10px; cursor: pointer; font-weight: 800; }
.image-remove-btn:hover { border-color: #d7c4a4; background: #f4efe7; }
@media (max-width: 820px) { .image-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .image-preview-grid { grid-template-columns: 1fr; } }

/* v2.6 Apple-inspired cleanup */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --accent: #0071e3;
  --accent-dark: #0057b8;
  --shadow: 0 22px 70px rgba(0,0,0,.07);
}
body { background: var(--bg); color: var(--ink); }
.minimal-header { border: 0; background: rgba(255,255,255,.72); box-shadow: 0 10px 36px rgba(0,0,0,.05); }
.brand-mark { background: #1d1d1f; }
.eyebrow { color: #86868b; letter-spacing: .16em; }
.btn { border-color: #d2d2d7; background: #fff; }
.btn.primary, .btn.dark { background: #0071e3; border-color: #0071e3; color: #fff; }
.btn.secondary { background: #f5f5f7; }
.btn.ghost { background: transparent; color: #6e6e73; }
.btn.ghost:hover { background: #f5f5f7; color: #1d1d1f; }
.flash.error { background: #fff1f1; color: #b42318; }

.apple-hero { text-align: center; max-width: 920px; margin: 70px auto 34px; padding: 0 12px; }
.apple-hero h1 { font-size: clamp(48px, 7.5vw, 92px); letter-spacing: -.065em; line-height: .95; }
.apple-hero p:not(.eyebrow) { color: var(--muted); font-size: clamp(18px, 2vw, 24px); max-width: 660px; margin: 22px auto 0; }
.apple-filter-panel { background: rgba(255,255,255,.76); border: 1px solid rgba(0,0,0,.05); border-radius: 26px; padding: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.04); margin-bottom: 44px; }
.apple-filters { grid-template-columns: minmax(260px,1fr) 190px 170px auto; }
.apple-region-pills { margin-top: 12px; }
.apple-region-pills .pill { background: #fff; border-color: #e6e6ea; }
.apple-region-pills .pill.active { background: #1d1d1f; }
.apple-section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 0 0 18px; }
.apple-section-head h2 { font-size: clamp(34px, 4.4vw, 56px); }
.apple-section-head p { color: var(--muted); font-weight: 800; margin: 0 0 8px; }
.apple-machine-grid { gap: 22px; }
.apple-machine-card { border: 0; border-radius: 28px; box-shadow: none; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.apple-machine-card:hover { transform: translateY(-4px); box-shadow: 0 24px 70px rgba(0,0,0,.08); }
.apple-card-image { height: 280px; background: #f1f1f3; }
.apple-card-image .status-badge { top: 16px; left: 16px; background: rgba(255,255,255,.86); color: #1d1d1f; border: 1px solid rgba(0,0,0,.06); }
.apple-card-body { padding: 22px; }
.apple-card-body h3 { font-size: 23px; letter-spacing: -.045em; }
.apple-card-body .meta { color: #86868b; }
.apple-card-body .specs { color: #6e6e73; min-height: 48px; }
.apple-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; }
.apple-card-bottom .price { margin: 0; }
.apple-card-bottom .card-link { color: #0071e3; }
.apple-empty-state { border: 0; background: #fff; box-shadow: none; text-align: center; padding: 52px; }
.apple-micro-note { margin: 42px auto 8px; padding: 16px 20px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; color: #6e6e73; font-size: 14px; border-top: 1px solid #e5e5ea; }
.apple-micro-note strong { color: #1d1d1f; }
.apple-footer { color: #86868b; font-size: 13px; }
.apple-footer p { max-width: 600px; }

.apple-detail-hero { border: 0; border-radius: 32px; box-shadow: none; padding: 42px 0 18px; background: transparent; }
.apple-detail-hero h1 { font-size: clamp(44px, 6vw, 76px); }
.apple-detail-layout { grid-template-columns: minmax(0,1fr) 340px; }
.apple-gallery { gap: 10px; }
.gallery-item { appearance: none; padding: 0; border: 0; background: transparent; cursor: zoom-in; border-radius: 22px; overflow: hidden; }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; border-radius: 22px; border: 0; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item.main-photo { grid-column: span 3; }
.gallery-item.main-photo img { height: 560px; }
.apple-content-card, .apple-sidebar-card { border: 0; box-shadow: none; border-radius: 26px; }
.apple-content-card h2, .apple-sidebar-card h2 { font-size: 28px; }
.two-note-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.sidebar-note { color: #6e6e73; border-top: 1px solid #e5e5ea; padding-top: 16px; font-size: 14px; }
.admin-preview-bar { margin: 34px 0 0; background: #111; color: #fff; border-radius: 24px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-preview-bar span { color: #c7c7cc; margin-left: 10px; }
.preview-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.preview-actions form { margin: 0; }

.lightbox-overlay { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgba(0,0,0,.84); padding: 28px; }
.lightbox-overlay.active { display: grid; }
.lightbox-overlay img { max-width: min(96vw, 1280px); max-height: 84vh; object-fit: contain; border-radius: 18px; box-shadow: 0 34px 120px rgba(0,0,0,.55); }
.lightbox-overlay p { color: #fff; margin: 14px 0 0; text-align: center; }
.lightbox-close { position: fixed; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.14); color: #fff; font-size: 28px; cursor: pointer; }

.admin-shell { margin: 38px 0 64px; }
.admin-hero-clean { display: flex; justify-content: space-between; align-items: end; gap: 24px; background: #fff; border-radius: 30px; padding: 34px; box-shadow: 0 12px 40px rgba(0,0,0,.04); }
.admin-hero-clean h1 { font-size: clamp(40px, 5vw, 68px); }
.admin-hero-clean p:not(.eyebrow) { color: #6e6e73; margin: 12px 0 0; }
.clean-admin-nav { display: inline-flex; gap: 6px; padding: 6px; margin: 18px 0 22px; background: #fff; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.04); }
.clean-admin-nav a { padding: 10px 15px; border-radius: 999px; color: #6e6e73; font-weight: 800; }
.clean-admin-nav a.active, .clean-admin-nav a:hover { background: #1d1d1f; color: #fff; }
.admin-card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.admin-metric-card { background: #fff; border-radius: 26px; padding: 24px; box-shadow: 0 10px 34px rgba(0,0,0,.04); display: grid; gap: 8px; }
.admin-metric-card span { font-size: 42px; font-weight: 900; letter-spacing: -.05em; }
.admin-metric-card strong { font-size: 16px; }
.admin-metric-card small { color: #6e6e73; }
.primary-metric { background: #1d1d1f; color: #fff; }
.primary-metric small { color: #c7c7cc; }
.clean-admin-card { border: 0; box-shadow: none; border-radius: 26px; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.card-title-row h2 { margin: 0; font-size: 28px; }
.clean-table { border-collapse: separate; border-spacing: 0 8px; }
.clean-table thead th { color: #86868b; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.clean-table tbody tr { background: #f8f8fa; }
.clean-table td, .clean-table th { border-bottom: 0; padding: 12px 14px; }
.clean-table tbody td:first-child { border-radius: 14px 0 0 14px; }
.clean-table tbody td:last-child { border-radius: 0 14px 14px 0; }
.apple-admin-filters { background: #fff; border-radius: 24px; padding: 14px; margin: 0 0 18px; box-shadow: 0 8px 24px rgba(0,0,0,.04); }
.clean-table-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.clean-table-actions form { display: inline; margin: 0; }
.sticky-save-row { position: sticky; bottom: 18px; display: flex; gap: 10px; justify-content: flex-end; padding: 12px; border-radius: 22px; background: rgba(255,255,255,.82); backdrop-filter: blur(18px); box-shadow: 0 16px 44px rgba(0,0,0,.12); }
.clean-request-layout { grid-template-columns: minmax(0,1fr) 340px; }
.admin-review-card { position: sticky; top: 110px; }
.admin-review-card hr { border: 0; border-top: 1px solid #e5e5ea; margin: 20px 0; }
.match-machine-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.match-card { display: grid; grid-template-columns: auto 92px 1fr; gap: 12px; align-items: center; padding: 10px; border: 1px solid #e5e5ea; border-radius: 18px; background: #fff; cursor: pointer; }
.match-card input { width: auto; margin: 0; }
.match-card img, .placeholder-image.mini { width: 92px; height: 68px; object-fit: cover; border-radius: 14px; min-height: 68px; font-size: 10px; }
.match-card span { min-width: 0; }
.match-card small { display: block; color: #6e6e73; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matched-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.matched-strip a { background: #f5f5f7; border-radius: 999px; padding: 8px 12px; font-weight: 800; }
.copy-box { background: #f5f5f7; border: 1px solid #e5e5ea; }

@media (max-width: 1050px) {
  .machine-grid, .apple-machine-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .apple-detail-layout, .clean-request-layout { grid-template-columns: 1fr; }
  .admin-review-card { position: static; }
}
@media (max-width: 760px) {
  .apple-hero { margin-top: 46px; }
  .apple-filters, .apple-admin-filters { grid-template-columns: 1fr; }
  .apple-section-head, .admin-hero-clean { flex-direction: column; align-items: flex-start; }
  .apple-machine-grid, .machine-grid, .match-machine-grid, .two-note-grid, .admin-card-grid { grid-template-columns: 1fr; }
  .gallery-item.main-photo { grid-column: span 1; }
  .gallery-item.main-photo img { height: 320px; }
  .apple-card-image { height: 240px; }
  .admin-preview-bar { flex-direction: column; align-items: flex-start; }
}

/* v2.7 mobile-first machine focus and ultra-clean public UI */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.home-hero-minimal {
  text-align: center;
  max-width: 940px;
  margin: 68px auto 26px;
  padding: 0 10px;
}
.home-hero-minimal h1 {
  font-size: clamp(46px, 7.5vw, 96px);
  line-height: .94;
  letter-spacing: -.075em;
}
.home-hero-minimal p:not(.eyebrow) {
  color: #6e6e73;
  font-size: clamp(17px, 2vw, 22px);
  max-width: 640px;
  margin: 22px auto 0;
}
.search-dock {
  max-width: 880px;
  margin: 0 auto 48px;
}
.search-dock-form {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 28px;
  box-shadow: 0 16px 44px rgba(0,0,0,.055);
  padding: 12px;
  backdrop-filter: blur(18px);
}
.primary-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.primary-search-row input {
  border: 0;
  background: #f5f5f7;
  border-radius: 18px;
  min-height: 52px;
  font-size: 16px;
}
.primary-search-row .btn {
  min-height: 52px;
  padding-inline: 24px;
}
.advanced-filter-drawer {
  margin-top: 8px;
}
.advanced-filter-drawer summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 6px;
  color: #1d1d1f;
  font-weight: 850;
}
.advanced-filter-drawer summary::-webkit-details-marker { display: none; }
.advanced-filter-drawer summary::after {
  content: '+';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f5f5f7;
  color: #6e6e73;
  flex: 0 0 auto;
}
.advanced-filter-drawer[open] summary::after { content: '–'; }
.advanced-filter-drawer summary span { white-space: nowrap; }
.advanced-filter-drawer summary small {
  margin-left: auto;
  color: #86868b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}
.advanced-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  padding: 12px 2px 2px;
  align-items: end;
}
.filter-drawer-actions {
  display: flex;
  gap: 8px;
}
.catalog-heading-minimal {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 0 0 18px;
}
.catalog-heading-minimal h2 {
  font-size: clamp(34px, 4.5vw, 58px);
}
.catalog-heading-minimal p {
  color: #86868b;
  margin: 0 0 8px;
  font-weight: 750;
}
.focus-machine-grid {
  gap: 22px;
}
.focus-machine-card {
  border: 0;
  border-radius: 30px;
  box-shadow: none;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.focus-machine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(0,0,0,.08);
}
.focus-card-image {
  height: 300px;
  background: #f1f1f3;
}
.focus-card-image .status-badge {
  background: rgba(255,255,255,.88);
  color: #1d1d1f;
  border: 1px solid rgba(0,0,0,.06);
}
.focus-card-body {
  padding: 22px;
}
.focus-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #86868b;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 10px;
}
.focus-card-topline strong {
  color: #1d1d1f;
  white-space: nowrap;
}
.focus-card-body h3 {
  font-size: 24px;
  letter-spacing: -.052em;
  margin-bottom: 10px;
}
.focus-card-body p {
  color: #6e6e73;
  margin: 0 0 16px;
  min-height: 48px;
}
.machine-view-link {
  color: #0071e3;
  font-weight: 850;
}
.quiet-platform-note {
  margin: 44px auto 6px;
  padding: 16px 0;
  display: flex;
  justify-content: center;
  gap: 12px 18px;
  flex-wrap: wrap;
  color: #86868b;
  border-top: 1px solid #e5e5ea;
  font-size: 13px;
}
.quiet-platform-note span:first-child { color: #1d1d1f; font-weight: 850; }
.clean-empty-state {
  border: 0;
  box-shadow: none;
  text-align: center;
  background: #fff;
}
.action-hub .float-btn {
  display: grid;
  gap: 1px;
  text-align: left;
  min-width: 138px;
  padding: 10px 16px;
}
.action-hub .float-btn span {
  color: inherit;
  opacity: .62;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 850;
}
.action-hub .float-btn strong {
  font-size: 14px;
  line-height: 1.1;
}
.action-hub .float-btn.primary span { opacity: .74; }

.machine-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin: 62px 0 26px;
}
.machine-detail-copy h1 {
  font-size: clamp(42px, 6vw, 82px);
  letter-spacing: -.075em;
  line-height: .95;
  max-width: 940px;
}
.detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #6e6e73;
  font-weight: 850;
}
.detail-chip-row strong {
  color: #1d1d1f;
  font-size: 18px;
}
.detail-action-stack {
  display: flex;
  justify-content: flex-end;
}
.detail-gallery-section {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.detail-gallery-main .hero-photo {
  width: 100%;
  height: min(62vw, 620px);
  min-height: 420px;
  border-radius: 32px;
  overflow: hidden;
}
.detail-gallery-main .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}
.detail-thumb-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.thumb-photo,
.thumb-photo img {
  width: 100%;
  height: 130px;
  border-radius: 20px;
}
.machine-essentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.essential-card {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  display: grid;
  gap: 7px;
  min-height: 108px;
}
.essential-card span {
  color: #86868b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 900;
}
.essential-card strong {
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: -.02em;
}
.detail-accordion-stack {
  display: grid;
  gap: 10px;
  margin: 24px 0 68px;
}
.detail-accordion-stack details {
  background: #fff;
  border-radius: 22px;
  border: 0;
  overflow: hidden;
}
.detail-accordion-stack summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.015em;
}
.detail-accordion-stack summary::-webkit-details-marker { display: none; }
.detail-accordion-stack summary::after {
  content: '+';
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f5f5f7;
  color: #6e6e73;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.detail-accordion-stack details[open] summary::after { content: '–'; }
.detail-prose {
  border-top: 1px solid #f0f0f2;
  padding: 0 22px 22px;
  color: #424245;
  white-space: pre-wrap;
}
.detail-prose p { margin: 16px 0 0; }

@media (max-width: 1050px) {
  .detail-thumb-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .machine-essentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  main { width: min(100% - 24px, 1180px); }
  .site-header.minimal-header {
    top: 8px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 18px;
  }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; font-size: 10px; }
  .brand strong { font-size: 13px; }
  .brand small { display: none; }
  .home-hero-minimal {
    margin: 44px auto 22px;
  }
  .home-hero-minimal h1 {
    font-size: clamp(42px, 13vw, 66px);
  }
  .home-hero-minimal p:not(.eyebrow) {
    font-size: 16px;
    max-width: 360px;
  }
  .search-dock {
    margin-bottom: 34px;
  }
  .search-dock-form {
    border-radius: 24px;
    padding: 10px;
  }
  .primary-search-row {
    grid-template-columns: 1fr;
  }
  .primary-search-row input,
  .primary-search-row .btn {
    min-height: 50px;
  }
  .advanced-filter-drawer summary {
    padding: 12px 8px 4px;
  }
  .advanced-filter-drawer summary small {
    max-width: 155px;
  }
  .advanced-filter-grid {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }
  .filter-drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .catalog-heading-minimal {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .catalog-heading-minimal p {
    font-size: 14px;
    margin: 0;
  }
  .focus-card-image { height: 255px; }
  .focus-card-body { padding: 18px; }
  .focus-card-topline { font-size: 12px; }
  .focus-card-body h3 { font-size: 22px; }
  .focus-card-body p {
    min-height: auto;
    font-size: 14px;
  }
  .quiet-platform-note {
    text-align: center;
    margin-bottom: 88px;
  }
  .floating-actions.action-hub {
    right: 12px;
    left: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 22px;
    padding: 8px;
  }
  .action-hub .float-btn {
    min-width: 0;
    text-align: center;
    border-radius: 16px;
    padding: 11px 8px;
  }
  .action-hub .float-btn span { font-size: 10px; }
  .action-hub .float-btn strong { font-size: 13px; }
  body:not(.modal-open) { padding-bottom: 78px; }

  .machine-detail-top {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 38px 0 18px;
  }
  .machine-detail-copy h1 {
    font-size: clamp(38px, 12vw, 60px);
  }
  .detail-chip-row {
    gap: 8px;
    margin-top: 14px;
  }
  .detail-chip-row strong { font-size: 16px; }
  .detail-action-stack,
  .detail-action-stack .btn {
    width: 100%;
  }
  .detail-gallery-main .hero-photo {
    height: 360px;
    min-height: 0;
    border-radius: 24px;
  }
  .detail-gallery-main .hero-photo img { border-radius: 24px; }
  .detail-thumb-strip {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }
  .thumb-photo {
    flex: 0 0 118px;
    scroll-snap-align: start;
  }
  .thumb-photo,
  .thumb-photo img {
    height: 88px;
    border-radius: 16px;
  }
  .machine-essentials {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .essential-card {
    min-height: auto;
    grid-template-columns: 118px 1fr;
    align-items: start;
    padding: 16px;
    border-radius: 18px;
  }
  .essential-card span {
    font-size: 11px;
  }
  .essential-card strong {
    font-size: 16px;
  }
  .detail-accordion-stack summary {
    font-size: 16px;
    padding: 17px 18px;
  }
  .detail-prose { padding: 0 18px 18px; }
  .lightbox-overlay { padding: 14px; }
  .lightbox-overlay img { border-radius: 12px; max-height: 78vh; }
}

/* v2.8 focused Apple-style catalog refinements */
.v28-hero {
  max-width: 980px;
  margin: 68px auto 24px;
}
.v28-hero h1 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(42px, 7vw, 88px);
  line-height: .98;
  letter-spacing: -.07em;
  text-wrap: balance;
}
.v28-hero p:not(.eyebrow) {
  max-width: 680px;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.42;
}
.v28-search {
  max-width: 820px;
  margin-bottom: 46px;
}
.v28-search-form {
  border-radius: 24px;
  box-shadow: 0 18px 52px rgba(0,0,0,.055);
}
.v28-search-row input {
  background: #f5f5f7;
  color: #1d1d1f;
}
.v28-filter-drawer summary {
  padding-top: 10px;
}
.v28-catalog-head {
  margin-bottom: 18px;
}
.v28-catalog-head h2 {
  font-size: clamp(30px, 4vw, 50px);
}
.v28-machine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.v28-machine-card {
  border: 0;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.v28-machine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 80px rgba(0,0,0,.08);
}
.v28-card-image {
  display: block;
  position: relative;
  height: 238px;
  background: #f5f5f7;
  overflow: hidden;
}
.v28-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}
.v28-machine-card:hover .v28-card-image img {
  transform: scale(1.025);
}
.v28-card-image .placeholder-image {
  min-height: 238px;
  background: #f5f5f7;
}
.v28-card-image .status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(0,0,0,.06);
  color: #1d1d1f;
  backdrop-filter: blur(16px);
}
.v28-card-body {
  display: grid;
  gap: 10px;
  padding: 20px 20px 22px;
}
.v28-card-location {
  color: #6e6e73;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v28-card-body h3 {
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -.045em;
  margin: 0;
  min-height: 50px;
}
.v28-card-price {
  color: #1d1d1f;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 900;
  margin-top: 2px;
}
.is-sold .v28-card-price { color: #a43f35; }
.v28-card-specs {
  display: grid;
  gap: 5px;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.35;
  min-height: 42px;
}
.v28-card-specs span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v28-card-link {
  color: #0071e3;
  font-weight: 850;
  margin-top: 4px;
}
.v28-platform-note {
  margin-bottom: 12px;
}

.v28-detail-hero {
  margin: 54px auto 26px;
  max-width: 1040px;
}
.v28-detail-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: #6e6e73;
  font-weight: 850;
  margin-bottom: 14px;
}
.v28-detail-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: end;
}
.v28-detail-title-row h1 {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: .98;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.v28-detail-title-row p {
  color: #6e6e73;
  font-size: clamp(15px, 1.6vw, 18px);
  margin: 16px 0 0;
  max-width: 760px;
}
.v28-price-panel {
  background: #fff;
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 18px 54px rgba(0,0,0,.055);
  display: grid;
  gap: 7px;
}
.v28-price-panel span {
  color: #86868b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 900;
}
.v28-price-panel strong {
  color: #1d1d1f;
  font-size: clamp(28px, 4vw, 42px);
  line-height: .98;
  letter-spacing: -.06em;
}
.v28-price-panel small {
  color: #1f7a4d;
  font-weight: 850;
}
.v28-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.v28-product-viewer {
  max-width: 1040px;
  margin: 0 auto 24px;
}
.v28-main-photo-wrap {
  background: #f5f5f7;
  border-radius: 34px;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.v28-main-photo {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: min(52vw, 520px);
  min-height: 420px;
  background: transparent;
  cursor: zoom-in;
}
.v28-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
}
.v28-no-photo {
  min-height: 420px;
  width: 100%;
}
.v28-thumbnail-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px 2px;
  scrollbar-width: thin;
}
.v28-thumb {
  appearance: none;
  border: 2px solid transparent;
  background: #f5f5f7;
  border-radius: 18px;
  padding: 0;
  flex: 0 0 116px;
  height: 82px;
  overflow: hidden;
  cursor: pointer;
}
.v28-thumb.active {
  border-color: #1d1d1f;
}
.v28-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v28-essential-strip {
  max-width: 1040px;
  margin: 24px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.v28-essential-strip > div {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 7px;
}
.v28-essential-strip span {
  color: #86868b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 900;
}
.v28-essential-strip strong {
  color: #1d1d1f;
  font-size: 17px;
  line-height: 1.24;
  letter-spacing: -.02em;
}
.v28-video-section,
.v28-accordion-stack {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.v28-section-title {
  margin: 32px 0 14px;
}
.v28-section-title h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  margin: 0;
  letter-spacing: -.055em;
}
.v28-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 28px;
  overflow: hidden;
}
.v28-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.v28-video-link {
  display: inline-flex;
  background: #fff;
  border-radius: 999px;
  padding: 13px 18px;
  color: #0071e3;
  font-weight: 850;
}
.v28-accordion-stack {
  margin-top: 26px;
}
.v28-accordion-stack details:first-child {
  border-radius: 26px;
}
.lightbox-overlay img {
  background: #f5f5f7;
  padding: 16px;
  object-fit: contain;
}

@media (max-width: 1050px) {
  .v28-machine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v28-detail-title-row { grid-template-columns: 1fr; }
  .v28-price-panel { max-width: 360px; }
  .v28-essential-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .v28-hero {
    margin: 42px auto 20px;
  }
  .v28-hero h1 {
    font-size: clamp(38px, 12.2vw, 58px);
    letter-spacing: -.065em;
  }
  .v28-hero p:not(.eyebrow) {
    font-size: 15px;
    max-width: 340px;
    margin-top: 16px;
  }
  .v28-search { margin-bottom: 32px; }
  .v28-search-form { border-radius: 22px; }
  .v28-filter-drawer summary small { max-width: 180px; }
  .v28-catalog-head { margin-bottom: 12px; }
  .v28-machine-grid { grid-template-columns: 1fr; gap: 16px; }
  .v28-card-image { height: 214px; }
  .v28-card-image .placeholder-image { min-height: 214px; }
  .v28-card-body { padding: 18px; gap: 8px; }
  .v28-card-body h3 { min-height: 0; font-size: 21px; }
  .v28-card-price { font-size: 26px; }
  .v28-card-specs { min-height: auto; font-size: 13px; }
  .v28-detail-hero { margin: 36px auto 18px; }
  .v28-detail-kicker { font-size: 13px; }
  .v28-detail-title-row h1 {
    font-size: clamp(34px, 10.8vw, 54px);
  }
  .v28-detail-title-row p { font-size: 14px; margin-top: 12px; }
  .v28-price-panel {
    max-width: none;
    padding: 18px;
    border-radius: 22px;
  }
  .v28-price-panel strong { font-size: 32px; }
  .v28-detail-actions { display: grid; grid-template-columns: 1fr; }
  .v28-product-viewer { margin-bottom: 18px; }
  .v28-main-photo-wrap {
    border-radius: 24px;
    min-height: 280px;
  }
  .v28-main-photo {
    height: 310px;
    min-height: 280px;
  }
  .v28-main-photo img { padding: 12px; }
  .v28-no-photo { min-height: 280px; }
  .v28-thumb { flex-basis: 86px; height: 64px; border-radius: 14px; }
  .v28-essential-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }
  .v28-essential-strip > div {
    min-height: 0;
    grid-template-columns: 118px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border-radius: 18px;
  }
  .v28-essential-strip span { font-size: 11px; }
  .v28-essential-strip strong { font-size: 15px; }
  .v28-section-title { margin-top: 24px; }
  .v28-video-frame { border-radius: 20px; }
}

/* v2.9 machine detail split layout + calmer Apple-style viewer */
.v29-detail-nav,
.v29-bottom-nav {
  max-width: 1180px;
  margin: 32px auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.v29-bottom-nav { margin-top: 28px; margin-bottom: 18px; }
.v29-detail-nextprev {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.v29-nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #1d1d1f;
  font-weight: 850;
  box-shadow: 0 10px 30px rgba(0,0,0,.045);
  border: 1px solid rgba(0,0,0,.055);
}
.v29-nav-pill.muted { color: #6e6e73; background: rgba(255,255,255,.72); }
.v29-machine-stage {
  max-width: 1180px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: 26px;
  align-items: start;
}
.v29-media-column,
.v29-info-column { min-width: 0; }
.v29-gallery-card,
.v29-info-panel {
  background: #fff;
  border-radius: 36px;
  box-shadow: 0 22px 70px rgba(0,0,0,.06);
  overflow: hidden;
}
.v29-gallery-card {
  padding: 16px;
}
.v29-main-photo-wrap {
  background: #f5f5f7;
  border-radius: 28px;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.v29-main-photo {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 100%;
  height: min(45vw, 500px);
  min-height: 430px;
  cursor: zoom-in;
}
.v29-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}
.v29-no-photo {
  width: 100%;
  min-height: 430px;
  border-radius: 28px;
}
.v29-thumbnail-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 2px 2px;
  scrollbar-width: thin;
}
.v29-thumb {
  appearance: none;
  border: 2px solid transparent;
  background: #f5f5f7;
  border-radius: 16px;
  padding: 0;
  flex: 0 0 92px;
  height: 68px;
  overflow: hidden;
  cursor: pointer;
}
.v29-thumb.active { border-color: #1d1d1f; }
.v29-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v29-info-column {
  position: sticky;
  top: 18px;
}
.v29-info-panel {
  padding: 30px;
  display: grid;
  gap: 22px;
}
.v29-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #6e6e73;
  font-size: 14px;
  font-weight: 850;
}
.v29-info-panel h1 {
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: .99;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.v29-price-block {
  display: grid;
  gap: 6px;
  padding: 20px 0 4px;
  border-top: 1px solid rgba(0,0,0,.07);
}
.v29-price-block span,
.v29-quick-specs span {
  color: #86868b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 900;
}
.v29-price-block strong {
  color: #1d1d1f;
  font-size: clamp(38px, 5vw, 60px);
  line-height: .94;
  letter-spacing: -.065em;
  font-weight: 950;
}
.v29-price-block small {
  color: #1f7a4d;
  font-weight: 850;
}
.v29-quick-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.v29-quick-specs > div {
  background: #f5f5f7;
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 6px;
  min-height: 84px;
}
.v29-quick-specs strong {
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.v29-action-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.v29-video-section,
.v29-accordion-stack {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.v29-section-title { margin: 34px 0 14px; text-align: center; }
.v29-section-title h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 46px);
  letter-spacing: -.06em;
}
.v29-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,.08);
}
.v29-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.v29-video-link {
  display: inline-flex;
  background: #fff;
  border-radius: 999px;
  padding: 13px 18px;
  color: #0071e3;
  font-weight: 850;
  box-shadow: 0 10px 30px rgba(0,0,0,.045);
}
.v29-accordion-stack { margin-top: 28px; }
.v29-accordion-stack details { background: #fff; }
.lightbox-overlay img {
  max-width: min(1180px, 94vw);
  max-height: 86vh;
  background: #f5f5f7;
  padding: 18px;
  object-fit: contain;
}
@media (max-width: 980px) {
  .v29-machine-stage {
    grid-template-columns: 1fr;
    max-width: 720px;
    gap: 18px;
  }
  .v29-info-column { position: static; }
  .v29-detail-nav,
  .v29-bottom-nav { max-width: 720px; }
  .v29-info-panel { padding: 24px; border-radius: 30px; }
  .v29-gallery-card { border-radius: 30px; }
  .v29-main-photo-wrap { min-height: 360px; }
  .v29-main-photo { height: 420px; min-height: 360px; }
  .v29-no-photo { min-height: 360px; }
}
@media (max-width: 640px) {
  .v29-detail-nav,
  .v29-bottom-nav {
    margin: 18px auto 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .v29-detail-nextprev {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  .v29-nav-pill { width: 100%; min-height: 44px; padding: 10px 12px; }
  .v29-machine-stage { gap: 14px; margin-bottom: 20px; }
  .v29-gallery-card,
  .v29-info-panel { border-radius: 24px; }
  .v29-gallery-card { padding: 10px; }
  .v29-main-photo-wrap { min-height: 260px; border-radius: 18px; }
  .v29-main-photo { height: 290px; min-height: 260px; }
  .v29-main-photo img { padding: 10px; }
  .v29-no-photo { min-height: 260px; }
  .v29-thumb { flex-basis: 74px; height: 56px; border-radius: 12px; }
  .v29-info-panel { padding: 20px; gap: 18px; }
  .v29-status-line { font-size: 13px; }
  .v29-info-panel h1 { font-size: clamp(32px, 10vw, 48px); }
  .v29-price-block strong { font-size: clamp(36px, 11vw, 52px); }
  .v29-quick-specs { grid-template-columns: 1fr; }
  .v29-quick-specs > div {
    min-height: 0;
    grid-template-columns: 112px 1fr;
    align-items: start;
    gap: 10px;
    padding: 13px;
  }
  .v29-quick-specs span { font-size: 10px; }
  .v29-quick-specs strong { font-size: 14px; }
  .v29-video-section,
  .v29-accordion-stack { max-width: 100%; }
  .v29-section-title { text-align: left; margin-top: 24px; }
  .v29-video-frame { border-radius: 20px; }
}

/* v3.0 prelaunch polish: catalog-first, Apple-inspired refinements */
:root {
  --v30-bg: #f5f5f7;
  --v30-surface: rgba(255,255,255,.92);
  --v30-text: #1d1d1f;
  --v30-muted: #6e6e73;
  --v30-border: rgba(0,0,0,.08);
  --v30-blue: #0071e3;
  --v30-shadow: 0 22px 70px rgba(0,0,0,.08);
}
body { background: var(--v30-bg); color: var(--v30-text); }
.minimal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245,245,247,.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--v30-border);
}
.brand-mark { background: #1d1d1f; color: #fff; }
.v30-hero {
  max-width: 980px;
  margin: 68px auto 28px;
  padding: 0 22px;
  text-align: center;
}
.v30-hero h1 {
  margin: 8px auto 14px;
  max-width: 820px;
  font-size: clamp(46px, 8vw, 88px);
  line-height: .95;
  letter-spacing: -.06em;
  font-weight: 750;
}
.v30-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--v30-muted);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.35;
}
.v30-search-panel {
  max-width: 960px;
  margin: 0 auto 34px;
  padding: 0 22px;
}
.v30-search-form {
  background: var(--v30-surface);
  border: 1px solid var(--v30-border);
  border-radius: 30px;
  box-shadow: 0 18px 52px rgba(0,0,0,.055);
  overflow: hidden;
}
.v30-search-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
}
.v30-search-main input {
  width: 100%;
  min-height: 54px;
  border: 0;
  background: #f5f5f7;
  border-radius: 18px;
  padding: 0 20px;
  font-size: 17px;
  outline: none;
}
.v30-search-main input:focus { box-shadow: inset 0 0 0 2px rgba(0,113,227,.2); background: #fff; }
.v30-filters { border-top: 1px solid var(--v30-border); }
.v30-filters summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  font-weight: 650;
}
.v30-filters summary::-webkit-details-marker { display: none; }
.v30-filters summary small { color: var(--v30-muted); font-weight: 500; }
.v30-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px 18px;
  align-items: end;
}
.v30-filter-grid label { color: var(--v30-muted); font-size: 13px; font-weight: 650; }
.v30-filter-grid select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  border-radius: 16px;
  border: 1px solid var(--v30-border);
  background: #fff;
  padding: 0 14px;
  font-size: 15px;
}
.v30-filter-actions { display: flex; gap: 10px; justify-content: flex-end; }
.v30-region-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 15px 4px 2px;
  scrollbar-width: none;
}
.v30-region-chips::-webkit-scrollbar { display: none; }
.v30-region-chips a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--v30-text);
  background: #fff;
  border: 1px solid var(--v30-border);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 650;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.v30-region-chips a.active { background: #1d1d1f; color: #fff; }
.v30-region-chips span { opacity: .6; }
.v30-catalog-head {
  max-width: 1180px;
  margin: 34px auto 18px;
  padding: 0 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.v30-catalog-head h2 { margin: 0; font-size: clamp(30px, 4vw, 54px); letter-spacing: -.04em; }
.v30-catalog-head p { max-width: 360px; color: var(--v30-muted); text-align: right; margin: 0; }
.v30-machine-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.v30-machine-card {
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--v30-border);
  box-shadow: 0 12px 42px rgba(0,0,0,.055);
  transition: transform .22s ease, box-shadow .22s ease;
}
.v30-machine-card:hover { transform: translateY(-3px); box-shadow: var(--v30-shadow); }
.v30-card-image {
  position: relative;
  display: flex;
  height: 265px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,#fafafa,#f0f0f2);
  text-decoration: none;
}
.v30-card-image img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.v30-card-image .status-badge { position: absolute; left: 16px; top: 16px; }
.v30-card-body { padding: 22px; }
.v30-card-topline { color: var(--v30-muted); font-size: 13px; font-weight: 650; margin-bottom: 10px; }
.v30-card-body h3 { font-size: 22px; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 14px; }
.v30-card-body h3 a { color: inherit; text-decoration: none; }
.v30-card-price { font-size: 27px; letter-spacing: -.035em; font-weight: 760; margin-bottom: 13px; }
.v30-card-specs { display: grid; gap: 7px; min-height: 44px; color: var(--v30-muted); font-size: 14px; line-height: 1.32; }
.v30-card-link { display: inline-block; margin-top: 18px; color: var(--v30-blue); text-decoration: none; font-weight: 700; }
.v30-platform-note {
  max-width: 1180px;
  margin: 6px auto 72px;
  padding: 0 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--v30-muted);
  font-size: 13px;
}
.v30-platform-note span { background: rgba(255,255,255,.7); border: 1px solid var(--v30-border); border-radius: 999px; padding: 8px 12px; }
.v29-machine-stage { max-width: 1240px; }
.v29-gallery-card, .v29-info-panel { border-color: var(--v30-border); box-shadow: 0 18px 60px rgba(0,0,0,.06); }
.v29-info-panel h1 { letter-spacing: -.045em; }
.v29-price-block strong { letter-spacing: -.045em; }
.lightbox-overlay img { background: #f5f5f7; border-radius: 24px; }
.admin-shell { max-width: 1240px; }
.admin-hero-clean, .clean-admin-card, .admin-metric-card { border-color: var(--v30-border); box-shadow: 0 12px 46px rgba(0,0,0,.055); }
.admin-metric-card span { letter-spacing: -.05em; }
.admin-table.rich .machine-cell img { object-fit: contain; background: #f5f5f7; }
@media (max-width: 980px) {
  .v30-machine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v30-filter-grid { grid-template-columns: 1fr; }
  .v30-filter-actions { justify-content: stretch; }
  .v30-filter-actions .btn { flex: 1; }
}
@media (max-width: 680px) {
  .minimal-header { padding-inline: 14px; }
  .v30-hero { margin-top: 42px; padding-inline: 16px; text-align: left; }
  .v30-hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .v30-hero p { font-size: 17px; }
  .v30-search-panel { padding-inline: 14px; }
  .v30-search-form { border-radius: 24px; }
  .v30-search-main { grid-template-columns: 1fr; }
  .v30-search-main input { min-height: 52px; }
  .v30-filters summary { align-items: flex-start; flex-direction: column; gap: 3px; }
  .v30-catalog-head { padding-inline: 16px; align-items: flex-start; flex-direction: column; }
  .v30-catalog-head p { text-align: left; }
  .v30-machine-grid { grid-template-columns: 1fr; padding-inline: 14px; gap: 16px; }
  .v30-card-image { height: 235px; }
  .v30-card-body { padding: 20px; }
  .v30-card-price { font-size: 25px; }
  .v30-platform-note { justify-content: flex-start; padding-inline: 14px; margin-bottom: 110px; }
  .action-hub { left: 12px; right: 12px; bottom: 14px; display: grid; grid-template-columns: 1fr 1fr; }
  .float-btn { width: auto; justify-content: center; }
}
.v30-admin-alert { display: flex; justify-content: space-between; gap: 18px; align-items: center; background: #fff8e5; }
.v30-admin-alert span { color: #715800; }
.v30-admin-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.v30-admin-next div { background: #fff; border: 1px solid var(--v30-border); border-radius: 22px; padding: 18px; box-shadow: 0 10px 32px rgba(0,0,0,.045); }
.v30-admin-next strong { display: block; margin-bottom: 6px; }
.v30-admin-next span { color: var(--v30-muted); font-size: 14px; line-height: 1.35; }
@media (max-width: 760px) { .v30-admin-next { grid-template-columns: 1fr; } .v30-admin-alert { align-items: flex-start; flex-direction: column; } }

/* v3.1 Admin deletion, email testing, and buyer info readability */
.btn.soft-danger {
  background: #fff1f0;
  color: #b42318;
  border-color: #ffd2cc;
}
.btn.soft-danger:hover {
  background: #b42318;
  color: #fff;
  border-color: #b42318;
}
.btn.full { width: 100%; }
.admin-delete-form { margin-top: 14px; }
.email-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border: 1px solid #e5e5ea;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.email-status-card strong { display: block; font-size: 17px; margin-bottom: 4px; }
.email-status-card span { color: #6e6e73; }
.email-test-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: min(460px, 100%);
}
.buyer-info-panel {
  background: #ffffff;
  border: 1px solid #e5e5ea;
}
.buyer-info-panel .spec-list {
  background: #f5f5f7;
  border-radius: 22px;
  padding: 18px;
  gap: 0;
  overflow: hidden;
}
.buyer-info-panel .spec-list dt,
.buyer-info-panel .spec-list dd {
  padding: 12px 0;
  border-bottom: 1px solid #e5e5ea;
}
.buyer-info-panel .spec-list dt {
  color: #6e6e73;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.buyer-info-panel .spec-list dd {
  color: #1d1d1f;
  font-weight: 800;
  word-break: break-word;
}
.buyer-info-panel .spec-list dt:nth-last-child(2),
.buyer-info-panel .spec-list dd:last-child { border-bottom: 0; }
.copy-box {
  color: #1d1d1f;
  white-space: pre-wrap;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .email-status-card { align-items: stretch; flex-direction: column; }
  .email-test-form { grid-template-columns: 1fr; min-width: 0; }
  .clean-table-actions { min-width: 0; }
  .buyer-info-panel .spec-list { grid-template-columns: 1fr; }
}


/* v3.2 cleanup */
.admin-shell-clean { gap: 22px; }
.compact-admin-hero { margin-bottom: 10px; align-items: flex-start; }
.admin-hero-actions { display:flex; align-items:center; gap:12px; }
.mail-pill { display:inline-flex; align-items:center; padding:8px 12px; border-radius:999px; font-size:13px; font-weight:600; }
.mail-pill.ok { background:#eaf7ee; color:#166534; }
.mail-pill.warn { background:#fff4e8; color:#9a3412; }
.tidy-admin-metrics { margin-top: 6px; }
.simple-email-card { margin-top: 0; }
.compact-email-test { display:flex; gap:10px; align-items:center; }
.compact-email-test input { min-width: 260px; }

.apple-catalog-hero { margin-bottom: 18px; }
.apple-hero-copy { background: linear-gradient(180deg,#ffffff 0%,#f7f7f8 100%); border:1px solid rgba(18,18,18,.06); }
.apple-hero-copy h1 { max-width: 780px; }
.apple-hero-copy .hero-text { max-width: 700px; color:#5a5a5f; }
.search-drawer-shell {
  margin: 8px 0 26px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(18,18,18,.06);
  box-shadow: 0 10px 32px rgba(15,23,42,.04);
}
.search-drawer-head {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.search-drawer-head h2 { font-size: clamp(24px, 3vw, 34px); margin:4px 0 0; }
.search-toggle-btn {
  border:1px solid rgba(18,18,18,.08); background:#fff; color:#111827; border-radius:16px;
  padding:12px 16px; display:flex; flex-direction:column; align-items:flex-start; gap:4px; cursor:pointer;
  min-width: 180px; box-shadow:0 4px 20px rgba(15,23,42,.04);
}
.search-toggle-btn span { font-weight:600; }
.search-toggle-btn small { color:#6b7280; }
.search-drawer { display:none; margin-top:16px; }
.search-drawer.open { display:block; }
.search-drawer-form { display:grid; gap:12px; }
.search-input-row { display:grid; grid-template-columns: 1fr auto; gap:12px; }
.search-input-row input, .search-filter-row select {
  width:100%; border-radius:16px; border:1px solid rgba(18,18,18,.1); background:#fff; padding:14px 16px; font-size:15px;
}
.search-filter-row { display:grid; grid-template-columns: 1fr 1fr auto; gap:12px; align-items:end; }
.search-filter-row label { display:grid; gap:8px; color:#4b5563; font-size:14px; }
.search-actions { display:flex; gap:10px; align-items:center; }
.refined-machine-grid { gap:20px; }
.refined-machine-card { background:#fff; border:1px solid rgba(18,18,18,.06); box-shadow: 0 12px 36px rgba(15,23,42,.05); border-radius: 26px; overflow:hidden; }
.refined-card-image { aspect-ratio: 4 / 3; background:#f5f5f7; }
.refined-card-image img { width:100%; height:100%; object-fit:contain; padding:18px; }
.refined-card-body { padding:20px 20px 22px; }
.card-kicker { display:flex; justify-content:space-between; gap:10px; color:#6b7280; font-size:13px; margin-bottom:10px; }
.card-location { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.card-year { flex-shrink:0; }
.refined-card-price { font-size: 28px; line-height:1.05; margin: 10px 0 12px; letter-spacing:-.03em; }
.refined-spec-list { display:grid; gap:6px; margin-bottom:16px; color:#4b5563; font-size:14px; }
.refined-spec-list span { display:block; }
.refined-card-link { font-weight:600; color:#2563eb; text-decoration:none; }
.compact-empty-state { margin-top: 18px; }
.seller-upload-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background:#f5f7fb; color:#4b5563; font-size:14px; }

@media (max-width: 768px) {
  .search-drawer-head { flex-direction:column; align-items:flex-start; }
  .search-toggle-btn { width:100%; }
  .search-input-row, .search-filter-row { grid-template-columns: 1fr; }
  .search-actions { justify-content:stretch; }
  .search-actions .btn { flex:1; }
  .compact-email-test { flex-direction:column; align-items:stretch; }
  .compact-email-test input { min-width:0; width:100%; }
  .card-kicker { flex-direction:column; align-items:flex-start; }
}

/* v3.3 hard cleanup: hide previous listing-count headers if an older template/CSS remains cached */
.v30-catalog-head,
.catalog-listings-head,
.listing-note {
  display: none !important;
}

/* v3.4 focused product/admin polish */
.v34-admin-shell { gap: 22px; }
.v34-admin-hero { align-items: flex-start; margin-bottom: 10px; }
.v34-admin-toolbar {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(18,18,18,.06);
  box-shadow: 0 10px 34px rgba(15,23,42,.04);
}
.v34-status-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.v34-status-tabs::-webkit-scrollbar { display:none; }
.v34-status-tabs a {
  white-space: nowrap;
  text-decoration: none;
  color: #3f3f46;
  background: #f5f5f7;
  border: 1px solid rgba(18,18,18,.06);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
}
.v34-status-tabs a.active { background:#111827; color:#fff; border-color:#111827; }
.v34-admin-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, .4fr) minmax(130px, .35fr) auto auto;
  gap: 10px;
  align-items: center;
}
.v34-admin-search input,
.v34-admin-search select,
.v34-status-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(18,18,18,.1);
  background: #fff;
  border-radius: 14px;
  padding: 0 12px;
  font-size: 14px;
  color: #111827;
}
.v34-table-card { padding: 0; overflow: hidden; }
.v34-admin-table th { background:#fafafa; }
.v34-admin-table td { padding: 16px 14px; vertical-align: middle; }
.v34-machine-cell { min-width: 300px; }
.v34-machine-cell img,
.v34-admin-thumb {
  width: 76px;
  height: 58px;
  border-radius: 14px;
  object-fit: contain;
  background:#f5f5f7;
  flex-shrink: 0;
}
.v34-admin-thumb {
  display:grid;
  place-items:center;
  font-size: 11px;
  font-weight: 800;
  color:#6b7280;
}
.v34-machine-cell small,
.v34-buyer-cell small { display:block; margin-top: 3px; }
.v34-action-cell { min-width: 220px; display:grid; gap:8px; }
.v34-action-cell.compact { min-width: 110px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.v34-action-row { display:flex; gap:8px; flex-wrap:wrap; }
.v34-status-form { display:grid; grid-template-columns: 1fr auto; gap:8px; align-items:center; }
.v34-type-pill {
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:800;
  border:1px solid rgba(18,18,18,.08);
  background:#f5f5f7;
  color:#3f3f46;
}
.v34-type-pill.contact { background:#eff6ff; color:#1d4ed8; }
.v34-type-pill.buying { background:#f0fdf4; color:#166534; }
.v34-empty-admin { padding: 42px; text-align:center; }
.v34-empty-admin h2 { margin:0 0 8px; letter-spacing:-.03em; }
.v34-empty-admin p { margin:0; color:#6b7280; }

.v34-preview-bar { max-width: 1240px; margin: 18px auto; }
.v34-detail-nav,
.v34-bottom-nav {
  max-width: 1240px;
  margin: 24px auto 16px;
  padding: 0 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.v34-detail-nav a,
.v34-bottom-nav a {
  text-decoration:none;
  color:#111827;
  background:#fff;
  border:1px solid rgba(18,18,18,.07);
  border-radius:999px;
  padding:10px 14px;
  font-weight:700;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}
.v34-detail-nav > div { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.v34-machine-detail {
  max-width: 1240px;
  margin: 0 auto 22px;
  padding: 0 22px;
  display:grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 24px;
  align-items:start;
}
.v34-gallery-card,
.v34-summary-card,
.v34-info-card,
.v34-buyer-note {
  background: #fff;
  border: 1px solid rgba(18,18,18,.06);
  border-radius: 32px;
  box-shadow: 0 18px 60px rgba(15,23,42,.055);
}
.v34-gallery-card { padding: 16px; }
.v34-main-photo {
  width:100%;
  min-height: 560px;
  display:grid;
  place-items:center;
  border:0;
  border-radius: 24px;
  background: linear-gradient(180deg,#fafafa,#f1f1f3);
  cursor: zoom-in;
}
.v34-main-photo img { width:100%; height:100%; max-height: 620px; object-fit:contain; padding:24px; }
.v34-no-photo { min-height: 520px; border-radius: 24px; }
.v34-thumb-row { display:flex; gap:10px; margin-top:12px; overflow-x:auto; padding-bottom:2px; }
.v34-thumb {
  width:86px; height:66px; flex:0 0 auto; border:1px solid rgba(18,18,18,.08); border-radius:16px; background:#f5f5f7; padding:4px; cursor:pointer;
}
.v34-thumb.active { border-color:#0071e3; box-shadow:0 0 0 3px rgba(0,113,227,.12); }
.v34-thumb img { width:100%; height:100%; object-fit:contain; }
.v34-detail-summary { position: sticky; top: 86px; }
.v34-summary-card { padding: 28px; display:grid; gap:20px; }
.v34-status-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; color:#6b7280; font-size:14px; font-weight:700; }
.v34-summary-card h1 { margin:0; font-size:clamp(36px, 4.5vw, 62px); line-height:.96; letter-spacing:-.06em; }
.v34-price-line { border-top:1px solid rgba(18,18,18,.07); padding-top:18px; display:grid; gap:6px; }
.v34-price-line span,
.v34-spec-strip span,
.v34-info-grid span,
.v34-message-box span,
.v34-email-log span {
  color:#6b7280;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-weight:850;
}
.v34-price-line strong { font-size:clamp(38px, 5vw, 58px); line-height:.95; letter-spacing:-.05em; }
.v34-price-line small { color:#166534; font-weight:800; }
.v34-detail-actions { display:grid; gap:10px; }
.v34-spec-strip {
  max-width: 1240px;
  margin: 0 auto 24px;
  padding: 0 22px;
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.v34-spec-strip div {
  background:#fff;
  border:1px solid rgba(18,18,18,.06);
  border-radius:22px;
  padding:16px;
  min-height:84px;
  display:grid;
  gap:6px;
  box-shadow: 0 10px 34px rgba(15,23,42,.04);
}
.v34-spec-strip strong { font-size:15px; line-height:1.25; }
.v34-content-grid {
  max-width: 1040px;
  margin: 0 auto 58px;
  padding: 0 22px;
  display:grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items:start;
}
.v34-content-main { display:grid; gap:20px; }
.v34-info-card { padding:28px; }
.v34-info-card p { color:#3f3f46; line-height:1.7; margin:0; }
.v34-section-head { margin-bottom:14px; }
.v34-section-head h2 { margin:4px 0 0; font-size:32px; letter-spacing:-.04em; }
.v34-video-frame { position:relative; aspect-ratio:16/9; border-radius:22px; overflow:hidden; background:#111; }
.v34-video-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.v34-video-link { color:#0071e3; font-weight:800; }
.v34-two-note-card { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:18px; }
.v34-two-note-card h3 { margin:0 0 8px; }
.v34-buyer-note { padding:24px; position:sticky; top:86px; }
.v34-buyer-note h2 { margin:0 0 10px; letter-spacing:-.03em; }
.v34-buyer-note p { color:#4b5563; line-height:1.55; }
.v34-buyer-note a { color:#0071e3; font-weight:800; text-decoration:none; }
.v34-bottom-nav { margin-bottom: 80px; }

.v34-request-page {
  display:grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap:22px;
  align-items:start;
}
.v34-request-main { display:grid; gap:18px; }
.v34-request-card { padding:24px; }
.v34-request-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.v34-request-title-row h2 { margin:4px 0 0; font-size:30px; letter-spacing:-.04em; }
.v34-info-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:10px; }
.v34-info-grid div,
.v34-message-box {
  background:#f7f7f8;
  border:1px solid rgba(18,18,18,.05);
  border-radius:18px;
  padding:14px;
  display:grid;
  gap:6px;
}
.v34-info-grid strong { font-size:15px; word-break:break-word; }
.v34-message-box { margin-top:12px; }
.v34-message-box p { margin:0; color:#3f3f46; line-height:1.55; }
.v34-copy-box { margin-top:14px; border-radius:18px; background:#f7f7f8; border:1px solid rgba(18,18,18,.06); }
.v34-review-panel { position:sticky; top:86px; display:grid; gap:16px; }
.v34-review-panel .sidebar-card { margin:0; }
.v34-review-panel label { display:grid; gap:7px; margin-bottom:12px; color:#4b5563; font-size:14px; }
.v34-review-panel select,
.v34-review-panel textarea {
  width:100%; border:1px solid rgba(18,18,18,.1); border-radius:14px; background:#fff; padding:12px; color:#111827;
}
.v34-email-log { padding:22px; }
.v34-email-log h2 { margin:0 0 14px; }
.v34-email-log p { display:grid; gap:5px; padding:10px 0; border-bottom:1px solid rgba(18,18,18,.07); margin:0; }
.v34-email-log p:last-child { border-bottom:0; }
.v34-matched-strip { margin-bottom:14px; }
.v34-match-grid { grid-template-columns: 1fr; }
.v34-match-card { border-radius:20px; }

@media (max-width: 1040px) {
  .v34-machine-detail,
  .v34-content-grid,
  .v34-request-page { grid-template-columns: 1fr; }
  .v34-detail-summary,
  .v34-buyer-note,
  .v34-review-panel { position:static; }
  .v34-spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v34-admin-search { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .v34-admin-search { grid-template-columns: 1fr; }
  .v34-table-card { overflow-x:auto; }
  .v34-admin-table { min-width: 860px; }
  .v34-machine-detail,
  .v34-spec-strip,
  .v34-content-grid,
  .v34-detail-nav,
  .v34-bottom-nav { padding-left:14px; padding-right:14px; }
  .v34-detail-nav,
  .v34-bottom-nav { align-items:stretch; flex-direction:column; }
  .v34-detail-nav > div { justify-content:stretch; }
  .v34-detail-nav a,
  .v34-bottom-nav a { text-align:center; }
  .v34-main-photo { min-height: 330px; }
  .v34-main-photo img { padding:14px; }
  .v34-summary-card { padding:22px; }
  .v34-spec-strip { grid-template-columns: 1fr; }
  .v34-content-grid { margin-bottom: 112px; }
  .v34-two-note-card,
  .v34-info-grid { grid-template-columns: 1fr; }
  .v34-request-title-row { flex-direction:column; }
}
