:root {
  --brand: #2f7d4f;
  --brand-weak: color-mix(in srgb, var(--brand) 12%, #fff);
  --bg: #f4f3ee;
  --card: #fff;
  --text: #1e2420;
  --text-2: #5c635e;
  --muted: #959a96;
  --line: #ecebe6;
  --price: #e0391f;
  --hot: #ff6a3d;
  --radius: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 640px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
body.has-tabbar { padding-bottom: calc(64px + var(--safe-b)); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 22px; border-radius: 22px;
  font-size: 15px; font-weight: 600;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:active { filter: brightness(.92); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn-block { width: 100%; }

/* ---------- top / search ---------- */
.home-top {
  position: sticky; top: 0; z-index: 20;
  padding: 10px 12px;
  background: var(--brand);
}
.search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 4px 0 12px;
  background: #fff; border-radius: 19px;
}
.search svg { color: var(--muted); font-size: 16px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { height: 30px; padding: 0 14px; border-radius: 15px; background: var(--brand); color: #fff; font-size: 13px; }
.search-inline { margin: 10px 12px 0; border: 1px solid var(--line); }

/* ---------- banner / swiper ---------- */
.banner { position: relative; margin: 0; background: var(--brand); padding: 0 12px 12px; }
.banner .swiper-track { border-radius: var(--radius); }
.swiper-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.swiper-track::-webkit-scrollbar { display: none; }
.swiper-item { flex: 0 0 100%; scroll-snap-align: center; }
.banner .swiper-item img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.swiper-dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 5px; }
.swiper-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: width .2s; }
.swiper-dots i.on { width: 16px; background: #fff; }
.hero {
  padding: 34px 20px 38px; border-radius: var(--radius); color: #fff;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.22), transparent 60%),
    linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,.25));
}
.hero h2 { font-size: 24px; letter-spacing: 1px; }
.hero p { margin-top: 6px; opacity: .9; }

/* ---------- cards ---------- */
.card { display: block; margin: 12px; padding: 16px; background: var(--card); border-radius: var(--radius); }
.card-title { font-size: 16px; margin-bottom: 12px; }

.brand-card { margin-top: 12px; }
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--brand-weak);
  display: flex; align-items: center; justify-content: center;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-logo span { font-size: 24px; font-weight: 700; color: var(--brand); }
.brand-name h1 { font-size: 18px; line-height: 1.3; }
.brand-name p { color: var(--muted); font-size: 12px; margin-top: 2px; }

.entries { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; text-align: center; }
.entries a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.ent {
  position: relative; width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px;
}
.ent-1 { background: linear-gradient(135deg, #36c39a, #1c9b78); }
.ent-2 { background: linear-gradient(135deg, #ff9a52, #ff5a3c); }
.ent-3 { background: linear-gradient(135deg, #5b9dff, #3a6cf0); }
.ent-4 { background: linear-gradient(135deg, #c48bff, #8f55f0); }
.ent .badge { position: absolute; top: -5px; right: -7px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 12px; }
.duo .card { margin: 0; }
.duo-qr { display: flex; align-items: center; gap: 10px; text-align: left; }
.duo-qr i {
  width: 40px; height: 40px; border-radius: 12px; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-weak); color: var(--brand);
}
.duo-qr b { display: block; font-size: 15px; }
.duo-qr small { color: var(--muted); font-size: 11px; }
.duo-links { display: flex; padding: 10px 0; }
.duo-links > * {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 12px; color: var(--text-2);
}
.duo-links > * + * { border-left: 1px solid var(--line); }
.duo-links svg { font-size: 22px; color: var(--brand); }

.badge {
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--price); color: #fff; font: 600 10px/16px sans-serif; font-style: normal; text-align: center;
}

/* ---------- sections ---------- */
.sec { margin: 18px 0 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 14px 10px; }
.card .sec-head { padding: 0 0 10px; }
.sec-head h2 { font-size: 17px; position: relative; padding-left: 10px; }
.sec-head h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--brand); }
.sec-head a { display: inline-flex; align-items: center; color: var(--muted); font-size: 12px; }

.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 12px 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 120px; background: var(--card); border-radius: 12px; overflow: hidden; padding-bottom: 8px; }
.hcard img { width: 120px; height: 120px; object-fit: cover; background: #eee; }
.hcard h3 { font-size: 13px; font-weight: 500; padding: 6px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard .price { padding: 0 8px; font-size: 14px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 30px; padding: 0 14px; border-radius: 15px; background: var(--card); color: var(--text-2); font-size: 13px; }
.chip.on { background: var(--brand); color: #fff; font-weight: 600; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px; }
.pcard { display: flex; flex-direction: column; background: var(--card); border-radius: 12px; overflow: hidden; }
.pcard-img { position: relative; aspect-ratio: 1; background: #efeee9; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.tag { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11px; line-height: 18px; color: #fff; font-weight: 600; }
.pcard-img .tag { position: absolute; left: 8px; top: 8px; }
.tag-hot { background: var(--hot); }
.tag-new { background: var(--brand); }
.pcard-body { flex: 1; display: flex; flex-direction: column; padding: 8px 10px 10px; }
.pcard-body h3 {
  font-size: 14px; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-sub { margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; }
.price { color: var(--price); font-weight: 700; font-size: 16px; }
.price small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 1px; }
.add-btn {
  width: 26px; height: 26px; border-radius: 13px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.add-btn:active { transform: scale(.9); }

.loadmore { text-align: center; padding: 16px; }
.loadmore .btn { height: 36px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; line-height: 2; }
.empty a { color: var(--brand); }
.list-count { padding: 0 14px 10px; font-size: 12px; }

.intro-text { color: var(--text-2); white-space: pre-wrap; line-height: 1.8; }
.clamp-5 { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

.copyright { text-align: center; color: var(--muted); font-size: 11px; padding: 16px 0 8px; line-height: 1.8; }

/* ---------- tabbar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  max-width: 640px; margin: 0 auto;
  display: flex; padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  position: relative; flex: 1; height: 54px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); font-size: 11px;
}
.tabbar a svg { font-size: 22px; }
.tabbar a.on { color: var(--brand); font-weight: 600; }
.tabbar .badge { position: absolute; top: 4px; left: 50%; margin-left: 6px; }

/* ---------- page header ---------- */
.pagebar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; height: 46px; padding: 0 6px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.pagebar h1 { flex: 1; text-align: center; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pagebar-back, .pagebar-act { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.pagebar-plain h1 { text-align: left; padding-left: 10px; }
.pagebar-plain .text-btn { width: auto; padding: 0 10px; font-size: 14px; color: var(--muted); }

/* ---------- category page ---------- */
.home-top-flat { position: sticky; }
.cat-wrap { display: flex; min-height: calc(100vh - 58px - 64px); }
.cat-side {
  flex: 0 0 88px; background: #f0efea;
  position: sticky; top: 58px; align-self: flex-start;
  max-height: calc(100vh - 58px - 64px); overflow-y: auto;
}
.cat-side a {
  display: block; padding: 15px 8px; text-align: center; font-size: 13px; color: var(--text-2); position: relative;
  word-break: break-all;
}
.cat-side a.on { background: var(--card); color: var(--brand); font-weight: 600; }
.cat-side a.on::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 2px 2px 0; background: var(--brand); }
.cat-main { flex: 1; min-width: 0; background: var(--card); padding: 4px 12px; }
.lrow { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lrow img { flex: none; width: 88px; height: 88px; border-radius: 10px; object-fit: cover; background: #efeee9; }
.lrow-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lrow-body h3 { font-size: 14px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- product page ---------- */
.page-product { padding-bottom: calc(66px + var(--safe-b)); }
.float-back {
  position: fixed; z-index: 25; top: 12px; left: max(12px, calc(50% - 308px));
  width: 36px; height: 36px; border-radius: 18px;
  background: rgba(0, 0, 0, .35); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.gallery { position: relative; background: #000; }
.gallery .swiper-item { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #f7f6f2; }
.gallery .swiper-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-video { background: #000 !important; }
.gallery-video video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.swiper-counter {
  position: absolute; right: 12px; bottom: 12px; padding: 0 10px; border-radius: 11px;
  background: rgba(0, 0, 0, .4); color: #fff; font-size: 12px; line-height: 22px;
}
.swiper-counter:empty { display: none; }
.pinfo { margin-top: -6px; position: relative; border-radius: var(--radius); }
.pinfo-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-lg { font-size: 26px; }
.price-lg small { font-size: 13px; }
.pinfo-price del { color: var(--muted); font-size: 13px; }
.pinfo-tags { margin-left: auto; display: flex; gap: 4px; }
.pinfo h1 { margin-top: 6px; font-size: 18px; line-height: 1.4; }
.pinfo-sub { margin-top: 4px; color: var(--text-2); font-size: 13px; }
.pinfo-acts { display: flex; gap: 10px; margin-top: 12px; }
.pinfo-acts button {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12px;
  background: var(--brand-weak); color: var(--brand);
}
.kv { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.kv:first-of-type { border-top: 0; }
.kv > span { flex: 0 0 64px; color: var(--muted); }
.kv > b { font-weight: 500; flex: 1; word-break: break-all; }
.kv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kv-chips i { font-style: normal; padding: 1px 10px; border-radius: 4px; border: 1px solid var(--line); }
.desc { white-space: pre-wrap; color: var(--text-2); line-height: 1.85; font-size: 14px; }
.detail-imgs { margin: 12px -16px -16px; }
.detail-imgs img { width: 100%; }
.detail-imgs:empty { display: none; }

.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px calc(8px + var(--safe-b));
  background: #fff; border-top: 1px solid var(--line);
}
.ab-icon { position: relative; width: 52px; display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--text-2); }
.ab-icon svg { font-size: 22px; }
.ab-icon .badge { position: absolute; top: -4px; right: 6px; }
.ab-main { flex: 1; margin-left: 6px; }

/* ---------- about ---------- */
.about-hero {
  text-align: center; padding: 28px 16px 22px; color: #fff;
  background: linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000));
}
.brand-logo-lg { width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 18px; border: 3px solid rgba(255,255,255,.5); background: #fff; }
.about-hero h1 { font-size: 20px; }
.about-hero p { opacity: .85; margin-top: 4px; font-size: 13px; }
.contact-row {
  display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line);
}
.card-title + .contact-row { border-top: 0; }
.contact-row svg { font-size: 18px; color: var(--brand); }
.contact-row span { color: var(--muted); flex: 0 0 44px; }
.contact-row b { flex: 1; font-weight: 500; word-break: break-all; }
.contact-row em { font-style: normal; font-size: 12px; color: var(--brand); padding: 2px 10px; border-radius: 12px; background: var(--brand-weak); }
.qr-duo { display: flex; gap: 12px; justify-content: center; }
.qr-duo figure { margin: 0; flex: 1; max-width: 200px; text-align: center; }
.qr-duo img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); }
.qr-duo figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.about-acts { padding: 4px 12px; }
.about-acts .btn { width: 100%; }

/* ---------- quote ---------- */
.quote-list { margin: 12px; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.quote-list:empty { display: none; }
.qitem { display: flex; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.qitem:last-child { border-bottom: 0; }
.qitem img { flex: none; width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: #efeee9; }
.qitem-body { flex: 1; min-width: 0; }
.qitem-name { font-size: 14px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qitem-opt { display: inline-block; margin-top: 3px; font-size: 11px; color: var(--text-2); background: #f4f3ee; padding: 0 6px; border-radius: 4px; }
.qitem-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.qitem-del { font-size: 12px; color: var(--muted); padding: 4px 0 4px 8px; }
.qitem-off { color: var(--muted); font-size: 12px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stepper button { width: 28px; height: 26px; font-size: 16px; color: var(--text-2); background: #faf9f6; }
.stepper input { width: 46px; height: 26px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; outline: 0; font-size: 13px; }
.quote-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 0; }
.quote-sum div { display: flex; flex-direction: column; }
.quote-sum span { color: var(--muted); font-size: 12px; }
.quote-sum b { font-size: 18px; }
.quote-total { grid-column: span 2; padding-top: 10px; border-top: 1px solid var(--line); flex-direction: row !important; align-items: baseline; justify-content: space-between; }
.quote-total .price { font-size: 22px; }
.quote-sum .small { grid-column: span 2; }
.quote-empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.quote-empty svg { font-size: 56px; color: #d5d4cd; }
.quote-empty p { margin: 10px 0 20px; }
.quote-acts { display: flex; gap: 10px; padding: 0 12px 12px; }
.quote-acts .btn { flex: 1; font-weight: 500; }

.form label { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.form label span { flex: 0 0 48px; line-height: 24px; color: var(--text-2); }
.form input, .form textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: none; line-height: 24px; resize: none; }
.form .btn { margin-top: 16px; }

/* ---------- modal / sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.modal-card {
  position: relative; width: min(86vw, 340px); background: #fff; border-radius: 18px; padding: 20px;
  animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.modal-x { position: absolute; right: 8px; top: 6px; width: 32px; height: 32px; font-size: 24px; color: var(--muted); }
.qr-head { display: flex; align-items: center; gap: 10px; padding-right: 20px; }
.qr-logo { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.qr-head b { display: block; font-size: 15px; }
.qr-head small { color: var(--muted); font-size: 12px; }
.qr-tabs { display: flex; gap: 6px; margin: 14px 0 10px; background: #f4f3ee; border-radius: 10px; padding: 3px; }
.qr-tabs button { flex: 1; height: 30px; border-radius: 8px; font-size: 13px; color: var(--text-2); }
.qr-tabs button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.qr-pane img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.qr-tip { text-align: center; font-size: 12px; color: var(--muted); margin-top: 6px; }
.pqr-top { display: flex; gap: 10px; align-items: center; padding-right: 20px; margin-bottom: 8px; }
.pqr-top img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.pqr-top b { display: block; font-size: 14px; line-height: 1.4; }

.sheet { position: fixed; inset: 0; z-index: 100; }
.sheet-card {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto;
  background: #fff; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + var(--safe-b));
  animation: up .22s ease;
}
@keyframes up { from { transform: translateY(100%); } }
.sheet-top { display: flex; gap: 12px; padding-right: 24px; }
.sheet-top img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; margin-top: -30px; border: 3px solid #fff; background: #efeee9; }
.sheet-top b { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; }
.sheet-sec { margin-top: 16px; }
.sheet-sec h4 { margin: 0 0 8px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-list button { padding: 5px 14px; border-radius: 6px; background: #f4f3ee; font-size: 13px; border: 1px solid transparent; }
.opt-list button.on { background: var(--brand-weak); color: var(--brand); border-color: var(--brand); }
.sheet-qty { display: flex; align-items: center; justify-content: space-between; }
.sheet-card .btn { margin-top: 20px; }

.share-guide { position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, .78); color: #fff; }
.share-arrow { position: absolute; right: 22px; top: 8px; }
.share-text { position: absolute; left: 24px; right: 24px; top: 110px; text-align: center; font-size: 16px; line-height: 1.9; }
.share-text b { font-size: 20px; letter-spacing: 2px; }
.share-link { margin: 14px 0; padding: 10px; border-radius: 8px; background: rgba(255,255,255,.12); font-size: 13px; word-break: break-all; }
.share-guide.in-wx .not-wx, .share-guide:not(.in-wx) .wx-only, .share-guide:not(.in-wx) .share-arrow { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 120; background: #000; }
.lightbox-track { height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-track div { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.lightbox-track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-count { position: absolute; left: 0; right: 0; top: 16px; text-align: center; color: #fff; font-size: 14px; }

.toast {
  position: fixed; left: 50%; top: 45%; z-index: 200; transform: translate(-50%, -50%);
  max-width: 76vw; padding: 10px 18px; border-radius: 10px;
  background: rgba(20, 20, 20, .85); color: #fff; font-size: 14px; text-align: center;
}

.msg-page { text-align: center; padding: 120px 24px; }
.msg-page h1 { font-size: 20px; }
.msg-page p { color: var(--muted); margin: 10px 0 24px; }
