:root {
  --page-bg: #e8e2dc;
  --surface: #fcfaf8;
  --surface-soft: #f6f0eb;
  --hero: #f2ddd6;
  --ink: #302f2d;
  --muted: #8b817b;
  --line: #ebe2dc;
  --accent: #8b665c;
  --accent-dark: #665049;
  --sage: #6f8277;
  --price: #95685e;
  --radius-card: 8px;
  --frame-width: 480px;
  color: var(--ink);
  font-family: -apple-system, "PingFang SC", "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: auto; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--ink);
}
body.modal-open { overflow: hidden; }

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }

.site-frame {
  width: min(100%, var(--frame-width));
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
  background: var(--surface);
  box-shadow: 0 0 28px rgba(77, 59, 47, .08);
}

.hero {
  min-height: 255px;
  padding: 31px 20px 23px;
  background: var(--hero);
  border-radius: 0 0 30px 30px;
  text-align: center;
  overflow: hidden;
}

.wordmark h1 {
  margin: 0;
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.wordmark p {
  margin: 7px 0 22px;
  color: #9e8177;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.search-form {
  display: flex;
  align-items: center;
  min-height: 47px;
  padding: 0 12px 0 17px;
  background: rgba(255, 253, 251, .86);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 25px;
  box-shadow: 0 9px 18px rgba(132, 90, 78, .08);
  text-align: left;
}

.search-form input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 9px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.search-form input::placeholder { color: #aa9992; }
.search-form input::-webkit-search-cancel-button { display: none; }

.icon, .icon-button, .bottom-icon, .back-link svg, .note-icon svg { flex: 0 0 auto; }
.icon { width: 19px; height: 19px; color: #a0877e; }
.icon svg, .icon-button svg, .bottom-icon svg, .back-link svg, .note-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.icon-button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #a0877e;
  background: transparent;
  border-radius: 50%;
}
.icon-button:hover, .icon-button:focus-visible { background: rgba(139, 102, 92, .1); outline: none; }

.hero-copy { margin-top: 24px; }
.hero-title { margin: 0; color: #98776e; font-size: 17px; font-weight: 600; line-height: 1.5; }
.hero-subtitle { margin: 4px 0 0; color: #b18f85; font-size: 11px; line-height: 1.5; }

.filter-section { padding: 14px 16px 0; }
.category-section { padding-top: 13px; }
.filter-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 5px;
  scrollbar-width: none;
}
.filter-track::-webkit-scrollbar { display: none; }

.filter-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 17px;
  color: #93837b;
  background: var(--surface-soft);
  border: 1px solid #efe6e0;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.filter-button:hover { transform: translateY(-1px); }
.filter-button.is-active { color: #fffaf7; background: var(--accent); border-color: var(--accent); box-shadow: 0 5px 12px rgba(139, 102, 92, .16); }
.category-section > .filter-track:first-child .filter-button:not(.is-active) { background: #fffdfb; }
.sub-filter-track { margin-top: 4px; padding-left: 8px; }
.sub-filter-track .filter-button { min-height: 31px; padding: 0 12px; color: var(--sage); background: #f4f7f3; border-color: #e2ebe5; font-size: 11px; }
.sub-filter-track .filter-button.is-active { color: #fff; background: var(--sage); border-color: var(--sage); }

.catalog-main { padding: 22px 16px 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px 12px; }
.section-heading h2 { margin: 0; color: #5d524e; font-size: 18px; font-weight: 600; line-height: 1.35; }
.section-heading p { margin: 0; color: #b0a19a; font-family: Georgia, "Times New Roman", serif; font-size: 10px; letter-spacing: 0; white-space: nowrap; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.product-card { display: block; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 4px 14px rgba(91, 72, 61, .035); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover, .product-card:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(91, 72, 61, .1); outline: none; }
.product-image-wrap { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; background: #f7ede6; }
.product-image { position: absolute; inset: 10px; display: block; width: calc(100% - 20px); height: calc(100% - 20px); min-width: 0; min-height: 0; object-fit: contain; border-radius: 6px; background: #fff; }
.product-info { display: block; padding: 12px 14px 14px; }
.product-brand { display: inline-block; max-width: 100%; padding: 2px 7px; overflow: hidden; color: var(--accent); border: 1px solid #eedfda; border-radius: 8px; font-size: 9.5px; letter-spacing: .12em; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.product-name { display: -webkit-box; min-height: 40px; margin: 8px 0 0; overflow: hidden; color: #4a4441; font-size: 13px; font-weight: 500; letter-spacing: .02em; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: 8px; }
.product-price {
  flex: 0 0 auto;
  color: var(--price);
  font-family: Arial, Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.product-price span { margin-right: 1px; font-size: 11px; font-weight: 500; }
.product-spec { min-width: 0; overflow: hidden; color: #a79a93; font-size: 10px; letter-spacing: .04em; line-height: 1.3; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.empty-state { padding: 50px 16px 35px; color: var(--muted); text-align: center; }
.empty-mark { display: grid; width: 54px; height: 54px; margin: 0 auto 14px; place-items: center; color: var(--accent); background: #f5e8e3; border-radius: 50%; font-family: Georgia, "Times New Roman", serif; font-size: 31px; }
.empty-state h3, .not-found h1 { margin: 0; color: #665a55; font-size: 16px; font-weight: 600; }
.empty-state p { margin: 7px 0 16px; font-size: 12px; }
.text-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 17px; color: #fff; background: var(--accent); border-radius: 6px; font-size: 12px; }
.text-button:hover, .text-button:focus-visible, .primary-button:hover, .primary-button:focus-visible { background: var(--accent-dark); outline: none; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; margin-top: 18px; }
.page-button { display: grid; min-width: 31px; height: 31px; padding: 0 7px; place-items: center; color: #9b8d87; background: transparent; border: 1px solid transparent; border-radius: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 12px; }
.page-button:hover, .page-button:focus-visible { border-color: var(--line); outline: none; }
.page-button.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }
.page-button[disabled] { cursor: default; opacity: .38; }
.page-ellipsis { color: #b7aaa3; font-size: 12px; }

.site-footer { padding: 14px 16px 8px; color: #b5a9a3; text-align: center; }
.site-footer p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 9px; line-height: 1.4; }
.bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 50%; display: grid; grid-template-columns: repeat(2, 1fr); width: min(100%, var(--frame-width)); padding: 8px 18px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 253, 251, .96); border-top: 1px solid #eee5df; box-shadow: 0 -7px 18px rgba(85, 68, 58, .06); transform: translateX(-50%); backdrop-filter: blur(12px); }
.bottom-link { display: flex; min-height: 47px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #aaa09b; font-size: 10px; }
.bottom-link.active { color: var(--accent); }
.bottom-icon { width: 20px; height: 20px; }
.bottom-link:hover, .bottom-link:focus-visible { color: var(--accent-dark); outline: none; }

/* Homepage presentation is scoped so product-detail and image-save views stay unchanged. */
body.catalog-page {
  --catalog-card-line: #e4c7c0;
  --catalog-card-soft: #f8ece9;
  overflow-x: hidden;
  background: #e9e4df;
}
.catalog-page .site-frame { background: #fcfaf8; }
.catalog-page .hero {
  min-height: 292px;
  padding: 37px 20px 29px;
  background: #f2dfd8;
  border-radius: 0 0 31px 31px;
}
.catalog-page .wordmark h1 {
  color: #554945;
  font-family: "Songti SC", STSong, SimSun, Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
}
.catalog-page .wordmark p {
  margin: 8px 0 27px;
  color: #957f78;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}
.catalog-page .search-form {
  min-height: 54px;
  padding: 0 14px 0 19px;
  background: rgba(255, 254, 253, .92);
  border-color: rgba(255, 255, 255, .88);
  border-radius: 28px;
  box-shadow: 0 8px 20px rgba(112, 83, 73, .055);
}
.catalog-page .search-form input {
  height: 50px;
  padding: 0 11px;
  font-size: 14px;
}
.catalog-page .hero-copy { margin-top: 29px; }
.catalog-page .hero-title {
  color: #725f59;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}
.catalog-page .hero-subtitle {
  margin-top: 5px;
  color: #a4877e;
  font-size: 11px;
  letter-spacing: 0;
}
.catalog-page .brand-section { padding: 0 16px; }
.catalog-page #brand-tabs {
  gap: 0;
  min-height: 59px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5ddd7;
  border-radius: 30px;
  box-shadow: 0 5px 14px rgba(84, 67, 58, .055);
  scroll-padding: 6px;
}
.catalog-page #brand-tabs .filter-button {
  min-height: 45px;
  padding: 0 20px;
  background: transparent;
  border-color: transparent;
  border-radius: 23px;
  font-size: 12px;
  letter-spacing: 0;
}
.catalog-page #brand-tabs .filter-button.is-active {
  color: #fffaf7;
  background: #9a675c;
  border-color: #9a675c;
  box-shadow: none;
}
.catalog-page .category-section { padding: 24px 16px 0; }
.catalog-page .category-section > .filter-track:first-child { gap: 10px; padding: 1px 0 4px; }
.catalog-page .category-section > .filter-track:first-child .filter-button {
  min-height: 45px;
  padding: 0 20px;
  background: #fff;
  border-color: #e2dcd7;
  border-radius: 23px;
  font-size: 12px;
  letter-spacing: 0;
}
.catalog-page .category-section > .filter-track:first-child .filter-button.is-active {
  color: #fffaf7;
  background: #9a675c;
  border-color: #9a675c;
  box-shadow: none;
}
.catalog-page .sub-filter-track { margin-top: 7px; }
.catalog-page .catalog-main { padding: 31px 16px 0; }
.catalog-page .section-heading { padding: 0 2px 14px; }
.catalog-page .section-heading h2 {
  color: #393432;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
}
.catalog-page .section-heading p {
  color: #a99e98;
  font-size: 10.5px;
  letter-spacing: 0;
}
.catalog-page .product-grid { gap: 14px 10px; }
.catalog-page .product-card {
  background: #fff;
  border-color: var(--catalog-card-line);
  box-shadow: 0 2px 8px rgba(154, 103, 92, .065);
}
.catalog-page .product-card:hover,
.catalog-page .product-card:focus-visible { box-shadow: 0 6px 15px rgba(154, 103, 92, .12); }
.catalog-page .product-image-wrap { background: var(--catalog-card-soft); }
.catalog-page .product-image {
  inset: 11px;
  width: calc(100% - 22px);
  height: calc(100% - 22px);
  background: var(--catalog-card-soft);
}
.catalog-page .product-brand {
  border-color: var(--catalog-card-line);
  letter-spacing: 0;
}
.catalog-page .product-name { letter-spacing: 0; }
.catalog-page .product-spec { letter-spacing: 0; }

.detail-frame { position: relative; }
.detail-header {
  position: absolute;
  z-index: 10;
  top: 16px;
  left: 16px;
  width: 54px;
  height: 54px;
  min-height: 0;
  padding: 0;
  background: transparent;
}
.back-link {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #393634;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(91, 79, 72, .14);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(67, 54, 47, .12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.back-link svg { width: 26px; height: 26px; stroke-width: 2; }
.back-link:hover, .back-link:focus-visible { color: #272523; background: #fff; outline: none; }
.back-link:active { transform: scale(.96); }
.detail-main { padding: 22px 16px 0; }
.detail-product { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); }
.detail-image-wrap {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  background: #f3efeb;
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.detail-image { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; pointer-events: none; -webkit-touch-callout: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
.image-longpress-shield { position: absolute; z-index: 1; inset: 0; display: block; background: rgba(255, 255, 255, .001); touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.gallery-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: #675a55;
  background: rgba(255, 253, 251, .9);
  border: 1px solid rgba(111, 92, 83, .14);
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(69, 53, 45, .12);
  transform: translateY(-50%);
  backdrop-filter: blur(7px);
}
.gallery-nav:hover, .gallery-nav:focus-visible { color: var(--accent-dark); background: #fff; outline: 2px solid rgba(139, 102, 92, .28); outline-offset: 2px; }
.gallery-nav:active { transform: translateY(-50%) scale(.95); }
.gallery-nav[hidden] { display: none; }
.gallery-nav svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-counter {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  min-width: 45px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(48, 47, 45, .7);
  border-radius: 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1;
  text-align: center;
}
.gallery-counter[hidden] { display: none; }
.gallery-thumbnails {
  display: flex;
  gap: 8px;
  min-height: 76px;
  padding: 9px 10px 10px;
  overflow-x: auto;
  background: #fff;
  border-top: 1px solid var(--line);
  scrollbar-color: #c8bbb4 transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.gallery-thumbnails[hidden] { display: none; }
.gallery-thumbnail {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  padding: 2px;
  overflow: hidden;
  background: #f3efeb;
  border: 2px solid transparent;
  border-radius: 5px;
  scroll-snap-align: start;
}
.gallery-thumbnail:hover, .gallery-thumbnail:focus-visible { border-color: #cbbab3; outline: none; }
.gallery-thumbnail.is-active { border-color: var(--accent); }
.gallery-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.detail-copy { padding: 16px 16px 18px; }
.detail-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-brand { margin: 0 0 7px; color: var(--sage); font-size: 12px; }
.detail-brand-row .detail-brand { min-width: 0; margin-bottom: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-share {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  color: var(--accent);
  background: #f8f1ed;
  border: 1px solid #eaded8;
  border-radius: 6px;
  font-size: 11px;
}
.detail-share:hover, .detail-share:focus-visible { color: #fff; background: var(--accent); outline: none; }
.detail-share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.detail-copy h1 { margin: 0; color: #453f3b; font-size: 21px; font-weight: 650; line-height: 1.45; }
.detail-brand-row + h1 { margin-top: 9px; }
.detail-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 13px;
  color: var(--price);
  font-family: Arial, Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: 0;
}
.detail-price span { font-size: 16px; font-weight: 600; line-height: 1; }
.detail-price strong { font-size: 27px; font-weight: 700; line-height: 1; }
.detail-price em { color: #a79a93; font-size: 12px; font-style: normal; font-weight: 400; line-height: 1; }
.detail-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.detail-meta div {
  display: grid;
  min-width: 0;
  min-height: 50px;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}
.detail-meta span { display: block; margin: 0; color: #a79a93; font-size: 12px; line-height: 1.5; }
.detail-meta strong { display: block; overflow: hidden; color: #665a55; font-size: 13px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.filing-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 0 20px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.filing-button:hover, .filing-button:focus-visible { color: var(--accent-dark); background: #fbf7f4; outline: none; }
.filing-button[hidden] { display: none; }
.detail-note { display: flex; gap: 10px; margin: 15px 0 25px; padding: 14px 15px; background: #f4f7f3; border: 1px solid #e3ebe5; border-radius: var(--radius-card); }
.note-icon { flex: 0 0 auto; width: 22px; height: 22px; color: var(--sage); }
.detail-note strong { display: block; color: #65756b; font-size: 12px; font-weight: 600; }
.detail-note p { margin: 4px 0 0; color: #89958e; font-size: 11px; line-height: 1.5; }
.detail-description { margin-bottom: 26px; }
.detail-description .section-heading { padding-bottom: 10px; }
.description-copy { margin: 0 2px 18px; color: #6d625d; font-size: 12px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.product-long-images { overflow: hidden; background: #fff; }
.product-long-image-wrap { position: relative; width: 100%; overflow: hidden; background: #fff; touch-action: pan-y; -webkit-touch-callout: none; }
.product-long-images img { display: block; width: 100%; height: auto; max-width: 100%; background: #fff; pointer-events: none; -webkit-touch-callout: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
.product-long-image-wrap + .product-long-image-wrap { border-top: 1px solid var(--line); }
.related-section .section-heading { padding-bottom: 12px; }
.related-grid { gap: 10px; }
.related-grid .product-info { padding: 8px; }
.related-grid .product-name { font-size: 12px; }
.related-grid .product-price { font-size: 15px; }
.not-found { padding: 50px 15px; text-align: center; }
.not-found .primary-button { margin-top: 18px; }

.overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(35, 31, 29, .58);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}
.overlay[hidden] { display: none; }
.overlay.is-open { opacity: 1; visibility: visible; }
.overlay-panel {
  position: relative;
  width: min(100%, 410px);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  padding: 21px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(35, 27, 23, .24);
  transform: translateY(10px);
  transition: transform .18s ease;
}
.overlay.is-open .overlay-panel { transform: translateY(0); }
.overlay-panel h2 { margin: 0 40px 17px 0; color: #4f4642; font-size: 18px; font-weight: 650; line-height: 1.4; }
.overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: #8f837d;
  background: transparent;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}
.overlay-close:hover, .overlay-close:focus-visible { color: var(--accent-dark); background: #f1e8e3; outline: none; }
.registration-track { display: flex; width: 100%; overflow-x: auto; background: #f7f0eb; border: 1px solid var(--line); border-radius: 6px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.registration-track::-webkit-scrollbar { display: none; }
.registration-slide { display: grid; min-width: 100%; min-height: 240px; place-items: center; scroll-snap-align: start; }
.registration-slide img { display: block; width: 100%; max-height: min(68vh, 560px); object-fit: contain; background: #fff; }
.registration-counter { min-height: 17px; margin: 10px 0 0; color: #9b8e87; font-family: Georgia, "Times New Roman", serif; font-size: 11px; line-height: 1; text-align: center; }
.share-panel { width: min(100%, 375px); }
.poster-container {
  width: min(100%, 294px);
  aspect-ratio: 750 / 1300;
  margin: 0 auto;
  overflow: hidden;
  background: #f0e8e3;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.poster-container img { display: block; width: 100%; height: 100%; object-fit: contain; background: #f7f0eb; }
.poster-container img:not([src]) { visibility: hidden; }
.poster-tip { min-height: 36px; margin: 10px 0 12px; color: #9a8d87; font-size: 10px; line-height: 1.6; text-align: center; white-space: pre-line; }
.poster-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.poster-button {
  display: inline-flex;
  min-width: 0;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
}
.poster-button svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.poster-button-ghost { color: var(--accent); background: #f8f1ed; border: 1px solid #e7d9d2; }
.poster-button-primary { color: #fff; background: var(--accent); border: 1px solid var(--accent); }
.poster-button:hover, .poster-button:focus-visible { filter: brightness(.94); outline: none; }
.poster-button[disabled] { cursor: wait; opacity: .45; filter: none; }

.image-save-overlay { align-items: flex-end; padding: 0; }
.image-save-sheet {
  width: min(100%, 430px);
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -12px 35px rgba(35, 27, 23, .18);
  transform: translateY(12px);
  transition: transform .18s ease;
}
.overlay.is-open .image-save-sheet { transform: translateY(0); }
.image-save-sheet h2 { margin: 0 0 8px; color: #8a7c75; font-size: 13px; font-weight: 500; line-height: 1.4; text-align: center; }
.image-save-option, .image-save-cancel {
  display: block;
  width: 100%;
  min-height: 52px;
  color: #3f3936;
  background: #fff;
  border-top: 1px solid #eee8e4;
  font-size: 16px;
  text-align: center;
}
.image-save-option:first-of-type { border-top: 0; }
.image-save-option:active { background: #f8f2ee; }
.image-save-cancel { margin-top: 10px; border: 0; border-radius: 9px; background: #f6f1ee; }
.image-save-option[disabled], .image-save-cancel[disabled] { cursor: wait; opacity: .55; }
.image-save-option[hidden] { display: none; }

@media (max-height: 720px) {
  .poster-container { width: min(100%, 228px); }
}

@media (min-width: 600px) {
  .site-frame { min-height: 100vh; }
}

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