:root {
  color-scheme: light;
  --primary: #ff6fa8;
  --primary-dark: #e94888;
  --pink: #f23f83;
  --ink: #3d3038;
  --muted: #846f79;
  --line: #f0d9e4;
  --surface: #ffffff;
  --soft: #fff3f7;
  --purple-soft: #ffe7f0;
  --yellow-soft: #fff0f5;
  --mint: #ce6f9a;
  --shadow: 0 16px 40px rgba(118, 49, 80, 0.14);
  --display-font: "Jua", "Arial Rounded MT Bold", sans-serif;
  --app-viewport-height: 100dvh;
  --app-viewport-top: 0px;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: #fff9fb;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; font-family: var(--display-font); letter-spacing: 0; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(240, 217, 228, 0.96);
  background: rgba(255, 251, 253, 0.96);
  backdrop-filter: blur(8px);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 70px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(280px, 520px) auto;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 14px 5px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 12px rgba(218, 71, 131, .18);
  transform: rotate(-1.5deg);
}

.brand-mark svg { width: 27px; height: 27px; stroke-width: 2.25; transform: rotate(1.5deg); }

.desktop-search, .mobile-search {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #efd7e2;
  border-radius: 15px;
  background: #fff7fa;
  padding: 0 16px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.desktop-search:focus-within, .mobile-search:focus-within {
  border-color: rgba(255, 111, 168, .7);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 111, 168, .11);
}

.desktop-search svg, .mobile-search svg { width: 20px; color: var(--muted); }
.desktop-search input, .mobile-search input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.mobile-account-button, .mobile-category-menu-button { display: none; }
.category-menu-button, .mobile-category-menu-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: #6f5964;
  padding: 0;
}
.category-menu-button { display: grid; }
.category-menu-button span, .mobile-category-menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}
.category-menu-button:hover, .category-menu-button.active,
.mobile-category-menu-button:hover, .mobile-category-menu-button.active {
  border-color: #ef9dbd;
  background: #fff3f8;
  color: var(--primary-dark);
}
.category-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: max(20px, calc((100% - 1180px) / 2));
  z-index: 90;
  width: min(360px, calc(100vw - 24px));
  border: 1px solid #ecd6e1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(95, 43, 67, .18);
  padding: 14px;
}
.category-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 1px 2px 8px;
  border-bottom: 1px solid #f2e3ea;
}
.category-menu-head strong { font-size: .95rem; }
.category-menu-head button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: #fff4f8;
  color: #8a6575;
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1;
}
.category-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.category-menu-grid button {
  min-height: 44px;
  border: 1px solid #efdbe4;
  border-radius: 12px;
  background: #fffafd;
  color: #604a55;
  padding: 0 12px;
  text-align: left;
  font-size: .84rem;
  font-weight: 700;
}
.category-menu-grid button:hover, .category-menu-grid button:focus-visible {
  border-color: #ed8db3;
  background: #fff1f7;
  color: #b7356c;
}
.category-menu-grid .category-menu-ad {
  border-color: #e8bd45;
  background: #fff1a8;
  color: #7a5a00;
}

.text-button {
  border: 0;
  background: transparent;
  color: #6c5662;
  padding: 12px;
  font-weight: 700;
}
.account-button { display: inline-flex; align-items: center; gap: 7px; }
.account-button [data-account-label] { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px #ffe5ef; }
body.account-signed-in .account-dot { display: block; }

.primary-button {
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  min-height: 50px;
  padding: 0 22px;
  font-weight: 700;
  box-shadow: none;
  transition: transform .2s, background .2s;
}
.primary-button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.primary-button:disabled { background: #c9bcc2; color: #fff; cursor: default; transform: none; }
.primary-button.compact { min-height: 46px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; }
.primary-button.compact svg { width: 18px; }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 100px; }
.mobile-search-wrap { display: none; }

.location-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 7px; color: var(--primary-dark); font-size: .82rem; font-weight: 800; letter-spacing: .02em; }
h1, h2 { font-family: var(--display-font); font-weight: 400; letter-spacing: -.01em; }
p { letter-spacing: -.02em; }
h1 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.3rem); line-height: 1.2; }
.location-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 10px 13px;
  color: #6d5963;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.location-button svg { width: 18px; }
.location-button select {
  max-width: 132px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  outline: 0;
  cursor: pointer;
}

.notice-card {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #f4bfd3;
  border-left: 6px solid var(--primary);
  border-radius: 16px;
  background: var(--yellow-soft);
  color: var(--ink);
  padding: 23px 26px;
}

.notice-copy { display: flex; flex-direction: column; gap: 5px; }
.notice-copy strong { font-family: var(--display-font); font-size: 1.16rem; font-weight: 400; letter-spacing: 0; }
.notice-copy > span:last-child { color: var(--muted); font-size: .9rem; }
.notice-action {
  flex: 0 0 auto;
  border: 1px solid #efb3ca;
  border-radius: 999px;
  background: #fff;
  color: #b6356c;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 750;
}

.category-section {
  position: sticky;
  top: 70px;
  z-index: 35;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: 10px 0;
  border-bottom: 1px solid rgba(240, 217, 228, .96);
  background: rgba(255, 251, 253, .94);
  box-shadow: 0 7px 18px rgba(93, 48, 68, .06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.category-scroll { width: min(1120px, calc(100vw - 40px)); display: flex; gap: 10px; overflow-x: auto; margin: 0 auto; padding: 1px 0; scroll-padding-inline: 20px; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #66545e;
  padding: 9px 16px;
  font-size: .92rem;
  font-weight: 700;
}
.category-chip:nth-child(2) { background: #fff0f5; }
.category-chip:nth-child(3) { background: #fff6f9; }
.category-chip:nth-child(4) { background: #ffedf4; }
.category-chip:nth-child(5) { background: #fff4f8; }
.category-chip:nth-child(6) { background: #ffeaf2; }
.category-chip.business-category { border-color: #e8c7dc; background: #fbedf5; color: #80546f; }
.category-chip.community-category { gap: 6px; border-color: #f0bfd3; background: #fff5f8; color: #ad3e6c; }
.category-chip.community-category svg { width: 17px; height: 17px; }
.category-chip.map-category { border-color: #f1b6cd; background: #fff0f5; color: #b63b6d; }
.category-chip.map-category svg { width: 18px; height: 18px; }
.category-chip.ad-center-category {
  border-color: #e8bd45;
  background: #fff1a8;
  color: #7a5a00;
  box-shadow: 0 3px 10px rgba(174, 128, 0, .10);
}
.category-chip.active { border-color: #ff83b3; background: var(--purple-soft); color: var(--primary-dark); box-shadow: 0 3px 10px rgba(226, 72, 135, .08); }

.market-section { padding-top: 32px; }
.market-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.market-heading h2 { margin: 0 0 5px; font-size: 1.65rem; }
.market-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #685861;
  padding: 10px 0 10px 12px;
  font-size: .9rem;
  font-weight: 700;
}
.sort-button svg { width: 17px; }

.trade-tabs { display: flex; gap: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.trade-tab {
  min-width: auto;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #967b88;
  padding: 9px 2px 11px;
  font-weight: 700;
}
.trade-tab.active { border-bottom-color: var(--primary); background: transparent; color: var(--primary-dark); }

.grade-guide {
  margin: 0 0 22px;
  border: 1px solid #efd8e3;
  border-radius: 14px;
  background: #fff;
}
.grade-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 12px 16px;
  color: #5e4a54;
  cursor: pointer;
  list-style: none;
}
.grade-guide summary::-webkit-details-marker { display: none; }
.grade-guide summary > span:first-child { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.grade-guide summary strong { font-family: var(--display-font); font-size: 1.05rem; font-weight: 400; }
.grade-guide summary small { color: var(--muted); font-size: .76rem; }
.grade-guide-labels { flex: 0 0 auto; color: #bf477b; font-size: .82rem; font-weight: 800; }
.grade-guide-labels::after { content: "+"; display: inline-block; width: 18px; margin-left: 8px; text-align: center; }
.grade-guide[open] .grade-guide-labels::after { content: "−"; }
.grade-guide-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}
.grade-guide-grid > div { min-width: 0; border-radius: 11px; background: #fff7fa; padding: 12px; }
.grade-guide-grid strong { display: block; margin: 9px 0 4px; color: #5e4a54; font-size: .78rem; }
.grade-guide-grid p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.55; }
.grade-badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 7px; padding: 4px 7px; font-size: .72rem; font-weight: 900; line-height: 1.2; }
.grade-s { background: #ffe3ee; color: #be2c68; }
.grade-a { background: #f2e8ff; color: #7753a1; }
.grade-b { background: #e7f2ff; color: #426f9a; }
.grade-c { background: #fff0d4; color: #96651f; }
.grade-used { background: #eee9ec; color: #695a62; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; }
.product-card { min-width: 0; position: relative; }
.product-open {
  width: 100%;
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
}
.image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff2f7;
}
.image-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; filter: none; transition: transform .2s ease; }
.product-open:hover img { transform: scale(1.025); }
.product-badges {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 60px);
}
.owner-moderation-badge { display: inline-flex; min-height: 25px; align-items: center; border-radius: 8px; background: #fff0c8; color: #7d5700; padding: 4px 7px; font-size: .68rem; font-weight: 900; }
.owner-moderation-badge.limited { background: #ffe7ef; color: #a53663; }
.owner-moderation-badge.hidden { background: #eee7eb; color: #684f5b; }

.trade-badge {
  border-radius: 8px;
  padding: 6px 9px;
  background: rgba(73, 52, 63, .9);
  color: #fff;
  font-size: .76rem;
  font-weight: 750;
}
.trade-badge.exchange { background: rgba(178, 92, 137, .96); }
.trade-badge.wanted { background: rgba(242, 63, 131, .95); }
.trade-badge.sold { background: rgba(103, 94, 99, .91); }
.product-badges .grade-badge { min-height: 27px; border: 1px solid rgba(255,255,255,.72); box-shadow: 0 2px 8px rgba(64,38,50,.12); }
.favorite-button {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: #745764;
  box-shadow: none;
}
.favorite-button svg { width: 20px; }
.favorite-button.active { color: var(--pink); }
.favorite-button.active svg { fill: currentColor; }
.product-title-row { display: flex; align-items: center; gap: 7px; margin: 12px 0 7px; }
.product-title { min-width: 0; margin: 0; overflow: hidden; font-size: 1rem; font-weight: 600; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.price { margin: 0 0 8px; font-size: 1.08rem; font-weight: 900; letter-spacing: -.02em; }
.exchange-copy { color: #b25282; }
.wanted-copy { color: var(--pink); }
.product-trade-info { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 7px; }
.product-trade-info span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; border-radius: 999px; background: #fff0f5; color: #775e6a; padding: 5px 7px; font-size: .72rem; font-weight: 700; }
.product-trade-info svg { flex: 0 0 auto; width: 14px; height: 14px; color: #c44779; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; }
.meta span + span::before { content: "·"; margin-right: 6px; }

.battery-status { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; color: var(--battery-color); white-space: nowrap; }
.battery-shell { position: relative; width: 29px; height: 14px; display: inline-block; flex: 0 0 auto; border: 2px solid currentColor; border-radius: 4px; padding: 2px; }
.battery-shell::after { content: ""; position: absolute; top: 3px; right: -5px; width: 3px; height: 6px; border-radius: 0 2px 2px 0; background: currentColor; }
.battery-shell i { display: block; width: var(--battery-level); max-width: 100%; height: 100%; border-radius: 1px; background: currentColor; }
.battery-status b { color: #69535e; font-size: .79rem; font-weight: 850; }
.battery-status.compact { gap: 4px; }
.battery-status.compact .battery-shell { width: 23px; height: 12px; border-width: 1.5px; padding: 1.5px; }
.battery-status.compact .battery-shell::after { top: 2px; right: -4px; width: 2.5px; height: 5px; }
.battery-status.compact b { color: inherit; font-size: .72rem; }

.empty-state { min-height: 310px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); font-size: 1.05rem; }
.empty-state p { margin: 6px 0 0; }

.community-section { padding-top: 32px; }
.community-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.community-heading h1 { margin-bottom: 8px; }
.community-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: .92rem; }
.community-write-button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border-radius: 999px; padding: 0 14px; font-size: .86rem; white-space: nowrap; }
.community-write-button svg { width: 16px; height: 16px; stroke-width: 2.2; }
.community-tabs { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 3px; scrollbar-width: none; }
.community-tabs::-webkit-scrollbar { display: none; }
.community-tab { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #806975; padding: 9px 13px; font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; font-size: .8rem; font-weight: 750; }
.community-tab.active { border-color: #ff84b3; background: #ffe7f0; color: #b7356c; }
.board-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; border: 1px solid #f1d5e1; border-radius: 16px; background: #fff3f7; padding: 20px 22px; }
.board-intro > div > span { color: #bd4878; font-size: .74rem; font-weight: 800; }
.board-intro h2 { margin: 4px 0 6px; font-size: 1.35rem; }
.board-intro p { max-width: 720px; margin: 0; color: #745e69; font-size: .84rem; line-height: 1.6; }
.board-intro small { flex: 0 0 auto; color: #9a838e; font-size: .68rem; }
.community-post-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
.community-list-item { min-width: 0; }
.community-list-open {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #efc9da;
  border-radius: 13px;
  background: linear-gradient(105deg, #fff 0%, #fffafd 100%);
  color: #4c3a43;
  padding: 13px 16px;
  text-align: left;
  box-shadow: 0 3px 12px rgba(171, 74, 116, .06);
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.community-list-open:hover { border-color: #ed82b2; background: #fff7fb; box-shadow: 0 6px 16px rgba(171, 74, 116, .11); transform: translateY(-1px); }
.community-list-open:focus-visible { outline: 3px solid rgba(255, 111, 168, .28); outline-offset: 2px; }
.community-list-copy { min-width: 0; display: grid; gap: 3px; }
.community-list-kicker { color: #bd5e86; font-size: .67rem; font-weight: 850; letter-spacing: .01em; }
.community-list-title { min-width: 0; overflow: hidden; font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; font-size: .98rem; font-weight: 850; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.community-list-meta { overflow: hidden; color: #9b838e; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.community-list-action { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; border: 1px solid #f3bbd1; border-radius: 999px; background: #fff1f6; color: #b7356c; padding: 7px 9px 7px 11px; font-size: .7rem; font-weight: 850; white-space: nowrap; }
.community-list-action svg { width: 15px; height: 15px; color: currentColor; }
.community-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; border-bottom: 1px solid #f3e2ea; padding-bottom: 11px; }
.community-detail-head > span { color: #b7356c; font-size: .78rem; font-weight: 850; }
.community-detail-head small { color: #9b838e; font-size: .68rem; text-align: right; }
.community-post-detail { padding-bottom: 4px; }
.community-post-detail .community-post, .community-post-detail .review-card { border: 0; border-radius: 0; background: transparent; padding: 0; }
.community-post-detail .community-post h3, .community-post-detail .review-card h3 { font-size: 1.12rem; }
.community-post-detail .community-post > p, .community-post-detail .review-card > p { display: block; overflow: visible; font-size: .88rem; line-height: 1.75; white-space: pre-wrap; -webkit-line-clamp: unset; }
.community-post, .review-card { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 20px; }
.community-post h3, .review-card h3 { margin: 15px 0 8px; color: #4c3a43; font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; font-size: 1rem; line-height: 1.45; }
.community-post > p, .review-card > p { display: -webkit-box; overflow: hidden; margin: 0; color: #745e69; font-size: .82rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.review-store { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.review-store strong { display: block; color: #4d3943; font-size: 1rem; }
.review-store span, .post-location { display: flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--muted); font-size: .73rem; }
.review-store svg, .post-location svg { width: 14px; height: 14px; color: #c44779; }
.review-store button, .post-label-row button { border: 1px solid #efd1df; border-radius: 999px; background: #fff7fa; color: #b84272; padding: 6px 9px; font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; font-size: .68rem; font-weight: 800; }
.review-store button.active, .post-label-row button.active { border-color: #ff8ab7; background: #ffedf4; color: #c42f6a; }
.review-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 15px; }
.review-facts > div { min-width: 0; border-radius: 10px; background: #fff4f8; padding: 9px; }
.review-facts span, .wholesale-facts small { display: block; margin-bottom: 4px; color: #9b7b8a; font-size: .65rem; }
.review-facts strong { display: block; overflow: hidden; color: #6c505e; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.review-facts .key-machine.yes { color: #c03972; }
.community-post-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 13px; border-top: 1px solid #f4e2ea; color: #9b838e; font-size: .68rem; }
.community-empty { display: grid; place-items: center; min-height: 220px; border: 1px dashed #edcedb; border-radius: 14px; background: #fffafd; padding: 32px 20px; text-align: center; }
.community-empty strong { color: #674f5b; font-size: 1rem; }
.community-empty p { margin: 7px 0 0; color: var(--muted); font-size: .8rem; }
.post-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.platform-badge, .business-label { display: inline-flex; border-radius: 999px; background: #ffe7f0; color: #b5376b; padding: 6px 9px; font-size: .7rem; font-weight: 850; }
.platform-badge.donation { background: #fff0db; color: #9b6921; }
.platform-badge.sharing { background: #eaf7f1; color: #397561; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.post-tags span { border-radius: 999px; background: #f8edf2; color: #836b76; padding: 5px 8px; font-size: .68rem; }
.post-link { display: inline-flex; margin-top: 13px; border-radius: 999px; background: #ffe7f0; color: #b5376b; padding: 7px 10px; font-size: .72rem; font-weight: 800; text-decoration: none; }
.linked-product { width: 100%; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 11px; margin-top: 16px; border: 1px solid #efd5e0; border-radius: 12px; background: #fff9fb; color: inherit; padding: 9px; text-align: left; }
.linked-product img { width: 54px; height: 54px; display: block; border-radius: 9px; object-fit: cover; }
.linked-product span { min-width: 0; }
.linked-product small, .linked-product strong, .linked-product em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linked-product small { color: #bd4778; font-size: .64rem; }
.linked-product strong { margin: 3px 0; color: #523f48; font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; font-size: .76rem; }
.linked-product em { color: #836d77; font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; font-size: .68rem; font-style: normal; }
.linked-product b { color: #b7356c; font-size: .72rem; }
.wholesale-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 13px 0; }
.wholesale-facts span { min-width: 0; border-radius: 10px; background: #fff4f8; padding: 10px; }
.wholesale-facts strong { display: block; overflow: hidden; color: #654b58; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.community-review-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.community-sheet { width: min(720px, 100%); }

.map-section { padding-top: 32px; }
.map-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.map-heading h1 { margin-bottom: 8px; }
.map-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: .92rem; }
.map-home-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #6d5963;
  padding: 10px 14px;
  font-weight: 700;
}
.map-toolbar {
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #fff;
  padding: 16px;
}
.store-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #efd7e2;
  border-radius: 14px;
  background: #fff7fa;
  padding: 0 14px;
}
.store-search:focus-within { border-color: rgba(255,111,168,.72); box-shadow: 0 0 0 3px rgba(255,111,168,.11); }
.store-search svg { flex: 0 0 auto; width: 20px; color: #9b687f; }
.store-search input { width: 100%; height: 46px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.region-scroll { display: flex; gap: 7px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
.region-scroll::-webkit-scrollbar { display: none; }
.region-chip { 
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #806b75;
  padding: 7px 12px;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: .8rem;
  font-weight: 700;
}
.region-chip.active { border-color: #ff83b3; background: #ffe9f1; color: #b7356c; }
.map-area-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 11px; }
.map-area-filters label { min-width: 0; }
.map-area-filters label > span { display: block; margin: 0 0 5px 2px; color: var(--muted); font-size: .72rem; font-weight: 800; }
.map-area-filters select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #705b66; padding: 0 10px; outline: 0; font-size: .82rem; }
.map-area-filters select:focus { border-color: rgba(255,111,168,.72); box-shadow: 0 0 0 3px rgba(255,111,168,.11); }
.map-area-filters select:disabled { background: #fff8fb; color: #b19da7; cursor: not-allowed; }
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  background: #fff;
}
.map-canvas-wrap { position: relative; min-width: 0; border-right: 1px solid var(--line); background: #fff0f5; }
#clawMap { width: 100%; height: 610px; z-index: 1; }
.map-location-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 650;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(222, 203, 212, .94);
  border-radius: 50%;
  background: rgba(255, 255, 255, .97);
  color: #79636e;
  padding: 0;
  box-shadow: 0 7px 20px rgba(91, 48, 67, .16);
  backdrop-filter: blur(8px);
}
.map-location-button:hover { border-color: #9abfff; color: #2f78e8; }
.map-location-button:active { transform: scale(.95); }
.map-location-button:focus-visible { outline: 3px solid rgba(47, 120, 232, .22); outline-offset: 2px; }
.map-location-button.active { border-color: #2f78e8; background: #2f78e8; color: #fff; }
.map-location-button:disabled { cursor: wait; opacity: .78; }
.map-location-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.map-location-button.loading svg { animation: map-location-spin .9s linear infinite; }
@keyframes map-location-spin { to { transform: rotate(360deg); } }
.map-search-here {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transform: translateX(-50%);
  border: 1px solid rgba(231, 98, 151, .42);
  border-radius: 999px;
  background: rgba(255, 255, 255, .97);
  color: #b52f68;
  padding: 0 17px;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: .84rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 7px 20px rgba(91, 48, 67, .18);
  backdrop-filter: blur(8px);
}
.map-search-here:hover { border-color: #ed77a6; background: #fff7fa; }
.map-search-here:active { transform: translateX(-50%) scale(.97); }
.map-search-here:focus-visible { outline: 3px solid rgba(255, 111, 168, .25); outline-offset: 2px; }
.map-search-here[hidden] { display: none; }
.map-search-here svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.map-list-button {
  position: absolute;
  right: 14px;
  bottom: 34px;
  z-index: 650;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(222, 203, 212, .94);
  border-radius: 999px;
  background: rgba(255, 255, 255, .97);
  color: #735d68;
  padding: 0 10px 0 14px;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 7px 20px rgba(91, 48, 67, .18);
  backdrop-filter: blur(8px);
}
.map-list-button:hover { border-color: #ed77a6; color: #b52f68; background: #fff7fa; }
.map-list-button:active { transform: scale(.97); }
.map-list-button:focus-visible { outline: 3px solid rgba(255, 111, 168, .25); outline-offset: 2px; }
.map-list-button[hidden] { display: none; }
.map-list-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.map-list-button strong { min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 999px; background: #ffe8f1; color: #b52f68; padding: 0 7px; font-size: .7rem; line-height: 1; }
.user-location-leaflet-icon { border: 0 !important; background: transparent !important; }
.user-location-marker { position: relative; width: 76px; height: 76px; pointer-events: none; }
.user-location-heading { position: absolute; inset: 0; opacity: 0; transform-origin: 38px 50px; transition: transform .28s ease-out, opacity .15s ease; }
.user-location-marker.has-heading .user-location-heading { opacity: 1; }
.user-location-heading svg { width: 76px; height: 76px; overflow: visible; }
.user-location-heading path { fill: url(#user-heading-gradient); stroke: rgba(32, 102, 215, .2); stroke-width: .8; stroke-linejoin: round; }
.user-location-pulse { position: absolute; top: 50px; left: 38px; width: 30px; height: 30px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(47, 120, 232, .2); animation: user-location-pulse 1.9s ease-out infinite; }
.user-location-dot { position: absolute; top: 50px; left: 38px; width: 18px; height: 18px; transform: translate(-50%, -50%); border: 3px solid #fff; border-radius: 50%; background: #2f78e8; box-shadow: 0 2px 9px rgba(22, 74, 155, .42); }
@keyframes user-location-pulse { 0% { transform: translate(-50%, -50%) scale(.7); opacity: .8; } 75%, 100% { transform: translate(-50%, -50%) scale(1.55); opacity: 0; } }
.map-loading {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  transform: translateX(-50%);
  border: 1px solid rgba(239, 207, 221, .94);
  border-radius: 999px;
  background: rgba(255, 250, 253, .94);
  color: #946177;
  padding: 9px 13px;
  font-family: var(--display-font);
  font-size: .82rem;
  box-shadow: 0 5px 16px rgba(92, 52, 70, .12);
  pointer-events: none;
  white-space: nowrap;
}
.map-loading::before { content: ""; width: 12px; height: 12px; flex: 0 0 auto; border: 2px solid #f3c2d6; border-top-color: #d94f88; border-radius: 50%; animation: map-spin .8s linear infinite; }
.map-loading > span { overflow: hidden; text-align: center; text-overflow: ellipsis; }
.map-loading.error { pointer-events: auto; }
.map-loading.error::before { display: none; }
@keyframes map-spin { to { transform: rotate(360deg); } }
.map-retry-button {
  border: 1px solid #f1b6cd;
  border-radius: 999px;
  background: #fff;
  color: #b7356c;
  padding: 9px 14px;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: .82rem;
  font-weight: 800;
}
.store-panel { min-width: 0; height: 610px; display: flex; flex-direction: column; background: #fff; }
.store-panel-highlight { animation: store-panel-highlight .85s ease; }
@keyframes store-panel-highlight { 0%, 100% { box-shadow: none; } 35% { box-shadow: inset 0 0 0 3px rgba(255, 111, 168, .45); } }
.store-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.store-panel-head strong { font-family: var(--display-font); font-size: 1.08rem; font-weight: 400; }
.store-panel-head span { color: var(--muted); font-size: .72rem; }
.store-list { overflow-y: auto; }
.store-item {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #f5e5ec;
  background: #fff;
  color: inherit;
  padding: 14px 15px;
  text-align: left;
}
.store-item:hover { background: #fff8fb; }
.store-item-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px 12px 12px 5px; background: #ffe9f1; color: #c03c74; font-family: var(--display-font); }
.store-item-copy { min-width: 0; }
.store-item-copy strong, .store-item-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-item-copy strong { margin-bottom: 4px; color: var(--ink); font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; font-size: .9rem; font-weight: 800; }
.store-item-copy span { color: var(--muted); font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; font-size: .76rem; }
.store-item > svg { width: 17px; color: #bba3ae; }
.store-empty { min-height: 220px; display: grid; place-items: center; align-content: center; padding: 24px; color: var(--muted); text-align: center; }
.store-empty strong, .store-empty span { display: block; }
.store-empty strong { margin-bottom: 6px; color: var(--ink); }
.store-empty span { font-size: .82rem; }
.map-source-note { margin: 12px 2px 0; color: var(--muted); font-size: .76rem; line-height: 1.6; }
.claw-marker-shell { border: 0; background: transparent; }
.claw-map-pin {
  width: 34px;
  height: 38px;
  display: grid;
  place-items: center;
  position: relative;
  border: 3px solid #fff;
  border-radius: 14px 14px 14px 4px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 12px rgba(111, 48, 77, .22);
  transform: rotate(-2deg);
}
.claw-map-pin::after { content: ""; position: absolute; left: 4px; bottom: -6px; width: 9px; height: 9px; border: 3px solid #fff; border-top: 0; border-left: 0; background: var(--primary); transform: rotate(45deg); }
.claw-map-pin svg { width: 23px; height: 23px; stroke-width: 2.1; transform: rotate(2deg); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(255,111,168,.24); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: #ff6fa8; color: #fff; font-family: var(--display-font); }
.store-popup { min-width: 220px; padding: 3px 2px 2px; }
.store-popup strong { display: block; margin-bottom: 6px; color: var(--ink); font-family: var(--display-font); font-size: 1.05rem; font-weight: 400; }
.store-popup p { margin: 0 0 8px; color: #735f69; font-size: .8rem; line-height: 1.5; }
.store-popup span { display: block; overflow: hidden; margin-bottom: 8px; color: #9a7f8c; font-size: .7rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.store-popup a { display: inline-flex; border-radius: 999px; background: #ffe9f1; color: #b7356c; padding: 7px 10px; font-weight: 800; text-decoration: none; }

.floating-register, .bottom-nav { display: none; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 54; display: flex; align-items: center; gap: 5px; border: 1px solid #efd5e0; border-radius: 999px; background: rgba(255,255,255,.95); color: #a13d68; padding: 9px 12px; opacity: 0; pointer-events: none; box-shadow: 0 7px 20px rgba(86,46,64,.14); transform: translateY(10px); transition: opacity .18s, transform .18s; }
.back-to-top svg { width: 17px; height: 17px; }
.back-to-top span { font-size: .75rem; }
body.show-back-to-top .back-to-top { opacity: 1; pointer-events: auto; transform: translateY(0); }

.modal-layer { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(58, 39, 50, .52); }
.product-modal {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  box-shadow: none;
}
.modal-close svg { width: 20px; }
.modal-close.inline { position: static; box-shadow: none; background: var(--soft); }
.product-close-anchor {
  position: sticky;
  top: 0;
  z-index: 8;
  height: 0;
  overflow: visible;
  pointer-events: none;
}
.product-close-anchor .modal-close {
  top: 16px;
  right: 16px;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(74, 45, 59, .12);
}
.detail-layout { display: grid; grid-template-columns: 1.04fr .96fr; align-items: start; min-height: 560px; }
.detail-image { position: relative; height: 560px; min-height: 0; overflow: hidden; background: var(--soft); }
.detail-image > .detail-main-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.detail-thumbnails { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 8px; overflow-x: auto; padding: 3px; scrollbar-width: none; }
.detail-thumbnails::-webkit-scrollbar { display: none; }
.detail-thumbnails button { width: 58px; height: 58px; flex: 0 0 auto; overflow: hidden; border: 2px solid rgba(255,255,255,.9); border-radius: 11px; background: #fff; padding: 0; box-shadow: 0 3px 14px rgba(63,39,50,.16); }
.detail-thumbnails button.active { border-color: var(--primary); }
.detail-thumbnails img { width: 100%; height: 100%; display: block; object-fit: cover; }
.detail-info { display: flex; flex-direction: column; padding: 46px 40px 34px; }
.detail-type { width: fit-content; margin: 0 0 14px; border-radius: 8px; background: var(--purple-soft); color: var(--primary-dark); padding: 6px 10px; font-size: .8rem; font-weight: 700; }
.detail-info h2 { margin: 0 0 10px; font-size: 1.65rem; line-height: 1.3; }
.detail-price { margin: 0 0 20px; font-size: 1.45rem; font-weight: 900; }
.seller-row { display: flex; align-items: center; gap: 11px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seller-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #ffe8f1; color: var(--primary-dark); font-family: var(--display-font); font-size: 1.25rem; }
.seller-row > div strong, .seller-row > div span { display: block; }
.seller-row > div span { color: var(--muted); margin-top: 3px; font-size: .82rem; }
.seller-row > .battery-status { margin-left: auto; }
.battery-guide { margin: 10px 0 0; border: 1px solid #f0dce5; border-radius: 11px; background: #fff9fb; }
.battery-guide summary { color: #7c5f6c; padding: 9px 12px; font-size: .76rem; font-weight: 800; cursor: pointer; }
.battery-guide p { margin: 0; border-top: 1px solid #f2e2e9; color: #8b737f; padding: 10px 12px; font-size: .72rem; line-height: 1.55; }
.detail-grade { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; margin-top: 16px; border-radius: 12px; background: #fff7fa; padding: 12px; }
.detail-grade strong { display: block; margin-bottom: 3px; color: #594750; font-size: .84rem; }
.detail-grade p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.detail-description { margin: 22px 0; color: #69545f; line-height: 1.7; white-space: pre-line; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.detail-tags span { border-radius: 999px; background: var(--soft); color: #806975; padding: 7px 10px; font-size: .82rem; }
.detail-actions { display: grid; grid-template-columns: 52px 1fr; gap: 10px; margin-top: auto; }
.detail-favorite { border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #755b68; }
.detail-favorite svg { width: 22px; }
.detail-favorite.active { color: var(--pink); }
.detail-favorite.active svg { fill: currentColor; }
.detail-owner-tools { margin-top: auto; border: 1px solid #efcfdd; border-radius: 14px; background: #fff8fb; padding: 14px; }
.detail-owner-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.detail-owner-heading > div { min-width: 0; }
.detail-owner-heading strong { display: block; color: #5f4652; font-size: .92rem; }
.detail-owner-heading span:not(.detail-owner-status) { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.detail-owner-status { flex: 0 0 auto; border-radius: 999px; background: #ffe5ef; color: var(--primary-dark); padding: 5px 8px; font-size: .7rem; font-weight: 800; }
.detail-owner-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.detail-owner-actions button { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #6b5360; padding: 0 9px; font-size: .74rem; font-weight: 800; cursor: pointer; }
.detail-owner-actions button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary-dark); }
.detail-owner-actions button:disabled { opacity: .55; cursor: wait; }
.detail-owner-actions .owner-primary-action { border-color: var(--primary); background: var(--primary); color: #fff; }
.owner-status-note { margin: 0 0 15px; border-radius: 11px; background: #fff7fa; color: #745b68; padding: 11px 12px; font-size: .78rem; line-height: 1.55; }
.owner-status-note strong { color: var(--primary-dark); }

.register-sheet {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
  max-height: min(860px, calc(100vh - 30px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 34px 38px 40px;
  box-shadow: var(--shadow);
}
.sheet-handle { display: none; }
.sheet-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.sheet-header h2 { margin: 0; font-size: 1.55rem; }
.photo-uploader {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #e9bfd1;
  border-radius: 12px;
  background: var(--soft);
  color: #755e69;
  margin-bottom: 24px;
  cursor: pointer;
}
.photo-uploader input { position: absolute; opacity: 0; pointer-events: none; }
.photo-uploader small { margin-top: 5px; color: var(--muted); font-size: .78rem; text-align: center; line-height: 1.45; }
.photo-uploader.has-selection { border-style: solid; border-color: #efa8c4; background: #fff8fb; }
.photo-uploader.has-selection #photoLabel { color: var(--primary-dark); }
.photo-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--primary); margin-bottom: 9px; }
.photo-icon svg { width: 23px; }
.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: -10px 0 24px;
}
.photo-preview-item {
  position: relative;
  margin: 0;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.photo-preview-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 24, 28, .72);
  color: #fff;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.photo-preview-remove:hover { background: rgba(32, 24, 28, .9); }
.photo-preview-remove:focus-visible { outline: 3px solid rgba(255, 111, 168, .38); outline-offset: 2px; }
.photo-preview-remove svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.photo-preview-item:first-child::after {
  content: "대표";
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 93, 161, .92);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
}
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend, .field-label { display: block; color: #6c5662; margin-bottom: 8px; font-size: .88rem; font-weight: 800; }
.segment-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segment-control label { cursor: pointer; }
.segment-control input { position: absolute; opacity: 0; }
.segment-control span { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #806b75; font-weight: 700; }
.segment-control input:checked + span { border-color: var(--primary); background: var(--purple-soft); color: var(--primary-dark); }
.field-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  padding: 12px 13px;
  margin-bottom: 18px;
  resize: vertical;
}
.field-input:focus { border-color: rgba(255,111,168,.68); box-shadow: 0 0 0 3px rgba(255,111,168,.11); }
.field-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; }
.region-field-row { display: grid; grid-template-columns: minmax(132px, .8fr) minmax(0, 1.2fr); gap: 10px; }
.price-input-wrap { position: relative; display: block; }
.price-input-wrap .field-input { padding-right: 42px; }
.price-input-wrap em { position: absolute; right: 13px; top: 14px; font-style: normal; color: var(--muted); font-size: .9rem; }
.submit-button { width: 100%; margin-top: 4px; }

.chat-sheet {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  height: min(720px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.chat-header { min-height: 74px; display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-header > div { min-width: 0; }
.chat-header h2 { margin: 0 0 3px; font-size: 1.05rem; }
.chat-header p { margin: 0; overflow: hidden; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.chat-header .modal-close { margin-left: auto; }
.chat-product { min-height: 76px; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fffafd; }
.chat-product img { width: 52px; height: 52px; display: block; border-radius: 10px; object-fit: cover; }
.chat-product strong { display: block; overflow: hidden; color: #594750; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.chat-product p { display: flex; align-items: center; gap: 7px; margin: 5px 0 0; color: var(--ink); font-size: .82rem; font-weight: 800; }
.chat-messages { flex: 1; min-height: 0; overflow-y: auto; background: #fff7fa; padding: 18px 16px 14px; }
.chat-day { width: fit-content; margin: 0 auto 10px; border-radius: 999px; background: #f3e6ec; color: #8c747f; padding: 5px 9px; font-size: .68rem; }
.chat-system { margin: 0 auto 20px; color: #9a808c; font-size: .72rem; text-align: center; }
.chat-message-row { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 10px; }
.chat-message-row.mine { flex-direction: row-reverse; }
.chat-bubble { max-width: 76%; border: 1px solid #edd9e2; border-radius: 15px 15px 15px 4px; background: #fff; color: #56454d; padding: 10px 12px; font-size: .9rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.chat-message-row.mine .chat-bubble { border-color: #ff90ba; border-radius: 15px 15px 4px 15px; background: var(--primary); color: #fff; }
.chat-message-row time { flex: 0 0 auto; color: #a58b97; font-size: .64rem; }
.chat-empty { min-height: 160px; display: grid; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.chat-empty strong, .chat-empty span { display: block; }
.chat-empty strong { margin-bottom: 6px; color: #594750; }
.chat-empty span { max-width: 300px; font-size: .8rem; line-height: 1.55; }
.chat-suggestions { display: flex; gap: 7px; overflow-x: auto; margin-top: 18px; padding-bottom: 2px; scrollbar-width: none; }
.chat-suggestions::-webkit-scrollbar { display: none; }
.chat-suggestions button { flex: 0 0 auto; border: 1px solid #edcfdd; border-radius: 999px; background: #fff; color: #9b416a; padding: 8px 10px; font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; font-size: .72rem; font-weight: 700; }
.chat-form { position: relative; padding: 11px 13px 7px; border-top: 1px solid var(--line); background: #fff; }
.chat-composer-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 8px; }
.chat-composer-row > input[type="text"] { width: 100%; min-width: 0; height: 48px; border: 1px solid #eed5e0; border-radius: 15px; background: #fff7fa; outline: 0; padding: 0 15px; color: var(--ink); font-size: .91rem; }
.chat-composer-row > input[type="text"]:focus { border-color: rgba(255,111,168,.72); box-shadow: 0 0 0 3px rgba(255,111,168,.11); }
.chat-more-button, .chat-send-button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; cursor: pointer; }
.chat-more-button { border: 1px solid #eacbd9; background: #fff; color: var(--primary-dark); }
.chat-more-button svg { width: 22px; transition: transform .18s ease; }
.chat-more-button[aria-expanded="true"] svg { transform: rotate(45deg); }
.chat-send-button { border: 0; border-radius: 14px 14px 14px 5px; background: var(--primary); color: #fff; }
.chat-send-button svg { width: 22px; }
.chat-send-button:disabled { cursor: wait; opacity: .55; }
.chat-attachment-menu { position: absolute; z-index: 8; left: 13px; bottom: calc(100% + 8px); width: min(260px, calc(100vw - 28px)); display: grid; gap: 6px; border: 1px solid #ead0dc; border-radius: 17px; background: #fff; padding: 8px; box-shadow: 0 14px 34px rgba(78, 42, 59, .18); }
.chat-attachment-option { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 12px; background: #fff8fb; color: #624c57; padding: 8px 10px; text-align: left; cursor: pointer; }
.chat-attachment-option:hover { background: #ffedf5; }
.chat-attachment-option > input { display: none; }
.chat-attachment-option > span:last-child { min-width: 0; display: grid; gap: 2px; }
.chat-attachment-option strong { font-size: .82rem; }
.chat-attachment-option small { color: var(--muted); font-size: .69rem; }
.chat-option-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--primary-dark); box-shadow: 0 3px 10px rgba(107, 55, 78, .08); }
.chat-option-icon svg { width: 20px; height: 20px; }
.chat-voice-panel { min-height: 48px; display: flex; align-items: center; gap: 9px; border: 1px solid #edcfdd; border-radius: 15px; background: #fff7fa; padding: 6px 7px 6px 12px; }
.chat-form.is-recording .chat-composer-row { display: none; }
.chat-recording-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #f13e78; box-shadow: 0 0 0 5px rgba(241,62,120,.12); animation: chat-recording-pulse 1.2s infinite; }
.chat-voice-copy { color: #765c68; font-size: .77rem; font-weight: 700; }
.chat-voice-panel > strong { margin-right: auto; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.chat-voice-panel > button { min-width: 48px; height: 34px; border: 1px solid #e6c7d5; border-radius: 10px; background: #fff; color: #795e6a; padding: 0 10px; font-size: .72rem; cursor: pointer; }
.chat-voice-panel > .chat-voice-finish { border-color: var(--primary); background: var(--primary); color: #fff; font-weight: 800; }
@keyframes chat-recording-pulse { 50% { opacity: .48; transform: scale(.82); } }
.chat-safety { margin: 0; background: #fff; color: #9a808c; padding: 0 14px 10px; font-size: .67rem; text-align: center; }

.auth-sheet {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: min(820px, calc(100vh - 30px));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 34px 38px 30px;
  box-shadow: var(--shadow);
}
.auth-heading { margin-bottom: 23px; text-align: center; }
.auth-heading .eyebrow { margin-top: 12px; }
.auth-heading h2, .account-view h2 { margin: 0; font-size: 1.7rem; }
.auth-heading > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .86rem; }
.auth-claw { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto; border-radius: 18px 18px 18px 6px; background: var(--primary); color: #fff; transform: rotate(-2deg); }
.auth-claw svg { width: 35px; height: 35px; stroke-width: 2.2; transform: rotate(2deg); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.auth-tab { border: 0; border-bottom: 3px solid transparent; background: transparent; color: #9a7d8b; padding: 10px 4px 11px; font-size: .95rem; font-weight: 700; }
.auth-tab.active { border-bottom-color: var(--primary); color: var(--primary-dark); }
.social-login-list { display: grid; gap: 9px; }
.social-login { position: relative; min-height: 48px; border: 1px solid transparent; border-radius: 12px; padding: 0 42px; font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; font-size: .9rem; font-weight: 750; }
.social-login span { position: absolute; left: 17px; top: 50%; width: 20px; transform: translateY(-50%); font-size: 1rem; font-weight: 900; text-align: center; }
.social-login.kakao { border-color: #fee500; background: #fee500; color: #191919; }
.social-login.naver { border-color: #03c75a; background: #03c75a; color: #fff; }
.social-login.google { border-color: #ded7da; background: #fff; color: #4d4047; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 19px 0; color: #a48a96; font-size: .75rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form .field-input { margin-bottom: 15px; }
.password-field { position: relative; }
.password-field .field-input { padding-right: 58px; }
.password-field > button { position: absolute; top: 0; right: 4px; height: 48px; border: 0; background: transparent; color: #9a7184; padding: 0 10px; font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; font-size: .75rem; font-weight: 750; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 1px 0 15px; }
.check-row { display: inline-flex; align-items: flex-start; gap: 8px; color: #765f6a; font-size: .8rem; line-height: 1.45; }
.check-row input { width: 17px; height: 17px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--primary); }
.link-button { border: 0; background: transparent; color: #a23c68; padding: 2px; font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; font-size: .78rem; font-weight: 750; }
.terms-check { margin: 2px 0 13px; }
.form-message { min-height: 18px; margin: 0 0 9px; color: #cf356f; font-size: .75rem; line-height: 1.45; }
.form-message.success { color: #267e55; }
.auth-submit { width: 100%; min-height: 50px; }
.auth-submit.loading { cursor: wait; opacity: .72; }
.auth-prototype-note { margin: 16px 0 0; color: #a38a96; font-size: .7rem; line-height: 1.5; text-align: center; }
.profile-setup-sheet { width: min(500px, 100%); }
.profile-setup-sheet .auth-heading { margin-bottom: 25px; }
.profile-setup-account-type { margin: 0 0 18px; }
.profile-setup-account-type button { min-height: 46px; }
.account-view { padding: 42px 0 2px; text-align: center; }
.account-avatar { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 26px 26px 26px 9px; background: #ffe6f0; color: var(--primary-dark); font-family: var(--display-font); font-size: 2rem; }
.account-view > .eyebrow { margin-bottom: 7px; }
.account-view > p:not(.eyebrow):not(.auth-prototype-note) { margin: 7px 0 0; color: var(--muted); font-size: .86rem; }
.account-battery { display: flex; justify-content: center; margin-top: 17px; }
.account-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 25px 0 18px; }
.account-summary-action { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 92px; border: 1px solid var(--line); border-radius: 13px; background: #fff8fb; color: inherit; padding: 13px 26px 13px 10px; text-align: center; }
.account-summary-action:hover { border-color: #f2a3c2; background: #fff2f7; }
.account-summary-action > span { color: #947b87; font-size: .75rem; }
.account-summary-action > strong { margin-top: 5px; color: #59454f; font-family: var(--display-font); font-size: 1.15rem; font-weight: 400; }
.account-summary-action > svg { position: absolute; top: 50%; right: 8px; width: 17px; height: 17px; color: #bf9fac; transform: translateY(-50%); }
.secondary-button { min-height: 46px; border: 1px solid #e8ccd9; border-radius: 12px; background: #fff; color: #8e4163; padding: 0 18px; font-weight: 750; }
.account-logout { width: 100%; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  max-width: calc(100% - 32px);
  transform: translate(-50%, 18px);
  border-radius: 10px;
  background: #4a3540;
  color: #fff;
  padding: 13px 18px;
  opacity: 0;
  pointer-events: none;
  font-size: .92rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(74, 53, 64, .22);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.notification-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6c5662;
}
.notification-button:hover { background: var(--soft); color: var(--primary-dark); }
.notification-button svg { width: 21px; }
.notification-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 99px;
  background: #e94278;
  color: #fff;
  font: 700 .62rem/13px system-ui, sans-serif;
}

.market-filters {
  margin: -7px 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.market-filters summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; color: #684e5a; cursor: pointer; font-family: var(--display-font); }
.market-filters summary small { color: var(--primary-dark); font-family: "Noto Sans KR", sans-serif; font-size: .72rem; font-weight: 700; }
.filter-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; padding: 0 14px 10px; }
.filter-grid label > span { display: block; margin: 0 0 5px 2px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.filter-grid .field-input { height: 42px; padding: 0 10px; font-size: .78rem; }
.filter-reset { margin: 0 14px 13px; border: 0; background: transparent; color: var(--primary-dark); font-size: .78rem; }

.chat-tools { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px; border-bottom: 1px solid var(--line); background: #fffafb; scrollbar-width: none; }
.chat-tools button { flex: 0 0 auto; min-height: 31px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #745b68; padding: 0 10px; font-size: .72rem; }
.chat-tools span { margin-left: auto; align-self: center; white-space: nowrap; color: var(--primary-dark); font-size: .7rem; font-weight: 800; }
.chat-image { display: block; width: min(220px, 62vw); max-height: 260px; object-fit: cover; border-radius: 12px; }
.chat-bubble.media-bubble { background: #fff; padding: 6px; }
.chat-message-row.mine .chat-bubble.media-bubble { background: #fff; color: #56454d; }
.chat-audio { display: block; width: min(260px, 68vw); height: 40px; }
.chat-voice-duration { display: block; margin: 3px 6px 1px; color: #8e7480; font-size: .65rem; }
.chat-form.is-disabled { opacity: .55; pointer-events: none; }

.account-type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0 0 15px; padding: 4px; border-radius: 13px; background: #f8eaf0; }
.account-type-switch button { min-height: 39px; border: 0; border-radius: 10px; background: transparent; color: #896d7a; }
.account-type-switch button.active { background: #fff; color: var(--primary-dark); box-shadow: 0 2px 8px rgba(113, 56, 81, .1); }
.field-help { margin: -5px 0 12px; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.account-type-badge { display: inline-flex; margin: 6px 0 3px; border-radius: 99px; background: var(--soft); color: var(--primary-dark); padding: 5px 9px; font-size: .7rem; font-weight: 800; }
.account-type-badge.business { background: #fff1c8; color: #8b5a00; }
.account-menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin: 17px 0; }
.account-menu-grid button { min-height: 43px; border: 1px solid var(--line); border-radius: 11px; background: #fffafb; color: #694f5c; font-size: .78rem; }
.account-menu-grid .admin-menu-link { display: grid; place-items: center; min-height: 43px; border: 1px solid var(--line); border-radius: 11px; background: #fffafb; color: #694f5c; font-size: .78rem; text-decoration: none; }
.account-menu-grid .admin-menu-link:hover { border-color: var(--primary); color: var(--primary-dark); }
.account-delete { margin-top: 12px; border: 0; background: transparent; color: #a38d97; font-size: .72rem; text-decoration: underline; }

.workspace-sheet, .action-sheet {
  position: relative;
  width: min(900px, calc(100% - 32px));
  max-height: min(820px, 92vh);
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.workspace-sheet { min-height: 620px; }
.action-sheet { width: min(540px, calc(100% - 32px)); padding-bottom: 22px; }
.workspace-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; min-height: 78px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.workspace-header h2 { margin: 2px 0 0; font-family: var(--display-font); font-size: 1.35rem; font-weight: 400; }
.workspace-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 13px 20px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.workspace-tabs button { flex: 0 0 auto; min-height: 38px; border: 1px solid #d8c2cc; border-radius: 10px; background: #fff; color: #4f3b44; padding: 0 13px; font-size: .86rem; font-weight: 700; letter-spacing: -.01em; }
.workspace-tabs button.active { border-color: var(--primary); background: #fff2f7; color: #c63674; font-weight: 800; }
.workspace-content { padding: 22px; }
.workspace-note { margin: 0 0 17px; border-radius: 12px; background: #fff6d9; color: #765d18; padding: 12px 14px; font-size: .77rem; line-height: 1.55; }
.workspace-empty { display: grid; place-items: center; min-height: 260px; text-align: center; color: var(--muted); }
.workspace-empty strong { display: block; margin-bottom: 7px; color: var(--ink); font-family: var(--display-font); font-size: 1.1rem; font-weight: 400; }
.workspace-list { display: grid; gap: 10px; }
.workspace-card { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 11px; background: #fff; }
.workspace-card > img { width: 72px; height: 72px; border-radius: 11px; object-fit: cover; background: var(--soft); }
.workspace-card-copy { min-width: 0; }
.workspace-card-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.workspace-card-copy span, .workspace-card-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: .73rem; }
.workspace-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 220px; }
.workspace-actions button, .small-action { min-height: 33px; border: 1px solid var(--line); border-radius: 9px; background: #fffafb; color: #6e5662; padding: 0 9px; font-size: .7rem; }
.workspace-actions button.primary-small { border-color: var(--primary); background: var(--primary); color: #fff; }
.workspace-section-title { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; }
.workspace-section-title h3 { margin: 0; font-family: var(--display-font); font-size: 1.2rem; font-weight: 400; }
.notification-card { border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: #fff; }
.notification-card.unread { border-color: #ffc1d8; background: #fff7fa; }
.notification-card strong { display: block; margin-bottom: 4px; font-size: .88rem; }
.notification-card p { margin: 0; color: var(--muted); font-size: .77rem; line-height: 1.5; }
.notification-card time { display: block; margin-top: 7px; color: #b09ba5; font-size: .67rem; }
.notification-card.notification-link { position: relative; cursor: pointer; padding-right: 112px; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.notification-card.notification-link:hover { border-color: var(--primary); box-shadow: 0 8px 20px rgba(198,54,116,.09); transform: translateY(-1px); }
.notification-card.notification-link:focus-visible { outline: 3px solid rgba(255,95,157,.24); outline-offset: 2px; }
.notification-link-label { position: absolute; right: 14px; top: 50%; color: var(--primary-dark); font-size: .7rem; font-weight: 800; transform: translateY(-50%); }
.notification-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.notification-actions button { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fffafb; color: #745b68; font-size: .7rem; cursor: pointer; }
.notification-actions button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary-dark); }
.notification-actions button:disabled { opacity: .45; cursor: default; }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fffafb; }
.notification-toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.notification-toolbar .small-action:disabled { opacity: .45; cursor: default; }
.notification-danger-action { color: #a63661 !important; }
.notification-select-all, .notification-select-control { display: inline-flex; align-items: center; gap: 7px; color: #745b68; font-size: .72rem; font-weight: 800; cursor: pointer; }
.notification-select-all input, .notification-select-control input { width: 17px; height: 17px; margin: 0; accent-color: var(--primary); }
.notification-select-control { margin: 0 0 8px; }
.notification-card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(218,71,131,.08); }
.chat-selectable-card { position: relative; padding-left: 42px; }
.chat-selectable-card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(218,71,131,.08); }
.chat-select-control { position: absolute; left: 13px; top: 50%; display: inline-flex; align-items: center; transform: translateY(-50%); cursor: pointer; }
.chat-select-control input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.chat-selection-toolbar { margin-top: -4px; }
.profile-form, .action-form { display: grid; gap: 9px; }
.profile-form { max-width: 520px; }
.support-form { display: grid; gap: 9px; max-width: 620px; margin-bottom: 28px; }
.support-form textarea { resize: vertical; }
.support-form .primary-button { min-height: 46px; margin-top: 6px; }
.support-history-title { margin-top: 6px; }
.support-answer { margin-top: 10px; padding: 10px 11px; border-radius: 10px; background: #fff7fa; color: var(--muted); font-size: .76rem; }
.support-answer > span { color: var(--primary-dark); font-weight: 800; }
.support-answer p { margin-top: 7px; white-space: pre-wrap; }
.profile-form textarea, .action-form textarea { resize: vertical; }
.action-sheet #actionContent { padding: 20px 22px 0; }
.action-form .primary-button { min-height: 46px; margin-top: 6px; }
.appointment-datetime-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: #fff;
  cursor: pointer;
}
.appointment-datetime-trigger [data-appointment-picker-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appointment-datetime-chevron { margin-left: 12px; color: var(--muted); font-size: 1.05rem; }
.appointment-picker {
  display: grid;
  gap: 12px;
  margin: -5px 0 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(108, 55, 78, .1);
}
.appointment-picker[hidden] { display: none; }
.appointment-picker-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
}
.appointment-picker-header strong { text-align: center; font-size: .9rem; }
.appointment-picker-header button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffafb;
  color: var(--ink);
  font-size: 1.35rem;
}
.appointment-picker-weekdays,
.appointment-picker-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.appointment-picker-weekdays span {
  padding: 2px 0;
  color: var(--muted);
  text-align: center;
  font-size: .68rem;
  font-weight: 800;
}
.appointment-picker-day,
.appointment-picker-blank {
  min-width: 0;
  aspect-ratio: 1;
}
.appointment-picker-day {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: .78rem;
}
.appointment-picker-day:hover,
.appointment-picker-day:focus-visible { background: var(--soft); }
.appointment-picker-day.selected {
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}
.appointment-picker-time {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.appointment-picker-time label { display: grid; gap: 6px; }
.appointment-picker-time label > span { color: var(--muted); font-size: .7rem; font-weight: 800; }
.appointment-picker-time select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}
.appointment-picker-confirm {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}
.community-comment-list { max-height: 310px; overflow-y: auto; display: grid; gap: 8px; margin-bottom: 18px; padding-right: 3px; }
.community-comment { border: 1px solid #f0dce5; border-radius: 12px; background: #fffafd; padding: 11px 12px; }
.community-comment strong { display: block; color: #684f5b; font-size: .78rem; }
.community-comment p { margin: 5px 0; color: #67535d; font-size: .8rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-comment time { color: #a08793; font-size: .66rem; }
.community-comment-empty { margin: 0; border: 1px dashed #edd3df; border-radius: 12px; color: var(--muted); padding: 20px 12px; text-align: center; font-size: .78rem; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 18px; }
.admin-stats div { border: 1px solid var(--line); border-radius: 13px; padding: 15px; background: #fffafb; }
.admin-stats strong { display: block; margin-bottom: 4px; color: var(--primary-dark); font-family: var(--display-font); font-size: 1.35rem; font-weight: 400; }
.admin-stats span { color: var(--muted); font-size: .7rem; }
.moderation-state { display: inline-flex !important; width: fit-content; border-radius: 99px; background: #eee; padding: 4px 7px; color: #745b68 !important; font-weight: 800; }
.moderation-state.open { background: #fff1c8; color: #805800 !important; }
.moderation-state.warned { background: #fff0dd; color: #9a4c00 !important; }
.moderation-state.suspended, .moderation-state.hidden { background: #ffe3ec; color: #aa2459 !important; }
.moderation-state.dismissed { background: #edf5ef; color: #3d7350 !important; }
.server-report-card { display: grid; gap: 9px; }
.server-report-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.notification-card.server-report-card .server-report-heading strong { margin: 0; }
.notification-card .server-report-meta { color: #745b68; font-weight: 700; }
.server-report-note { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 9px; margin-top: 4px; }
.server-report-note > span { color: #745b68; font-size: .74rem; font-weight: 800; }
.server-report-note .field-input { min-height: 42px; margin: 0; }
.server-report-actions { justify-content: flex-start; max-width: none; padding-top: 2px; }
.server-report-complete { border-top: 1px solid #f3e2ea; padding-top: 9px; font-weight: 700; }
.post-manage-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f5e6ed; }
.post-manage-actions button { min-height: 34px; border: 1px solid #efd2df; border-radius: 999px; background: #fff8fb; color: #8d6275; padding: 0 10px; font-size: .7rem; font-weight: 800; }
.post-manage-actions button:hover, .post-manage-actions button:focus-visible { border-color: #ed82b2; background: #fff0f6; color: #b7356c; }
.store-popup button { display: block; width: 100%; margin: 10px 0 6px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; padding: 8px 10px; font-size: .72rem; }
.store-detail-panel > p { margin: 0 0 16px; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.store-detail-panel .primary-button { width: 100%; min-height: 45px; margin-top: 16px; }
.workspace-card > .workspace-card-copy:first-child { grid-column: 1 / 3; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .desktop-search { display: none; }
  .header-actions .text-button { display: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-layout { grid-template-columns: minmax(0, 1fr) 280px; min-height: 560px; }
  #clawMap, .store-panel { height: 560px; }
  .store-item { padding: 12px; }
  .store-item-copy strong { font-size: .84rem; }
  .store-item-copy span { font-size: .71rem; }
  .filter-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .map-layout { display: block; min-height: auto; }
  .map-canvas-wrap { border-right: 0; border-bottom: 1px solid var(--line); }
  #clawMap { height: 48vh; min-height: 360px; max-height: 520px; }
  .store-panel { height: 330px; }
}

@media (max-width: 680px) {
  body { background: #fff9fb; padding-bottom: 76px; }
  .site-header { position: relative; border-bottom: 0; }
  .header-inner { width: calc(100% - 32px); height: 64px; grid-template-columns: minmax(0, 1fr) 42px 42px; gap: 7px; }
  .brand { font-size: 1.3rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px 11px 11px 4px; }
  .brand-mark svg { width: 23px; }
  .header-actions { display: none; }
  .mobile-account-button {
    position: relative;
    display: grid;
    place-items: center;
    justify-self: end;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: #765f6a;
  }
  .mobile-category-menu-button {
    display: grid;
    justify-self: end;
    width: 42px;
    height: 42px;
  }
  .category-menu-panel {
    top: calc(100% + 4px);
    right: 12px;
    left: 12px;
    width: auto;
    padding: 12px;
    border-radius: 16px;
  }
  .category-menu-grid { gap: 7px; }
  .category-menu-grid button { min-height: 43px; font-size: .82rem; }
  .mobile-account-button svg { width: 23px; height: 23px; }
  .mobile-account-button .account-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; }
  main { width: 100%; padding: 0 0 30px; }
  .mobile-search-wrap { display: block; padding: 4px 16px 20px; }
  .mobile-search input { height: 48px; }
  .quick-area { padding: 0 16px; }
  .location-row { align-items: center; margin-bottom: 16px; }
  .eyebrow { font-size: .75rem; }
  h1 { font-size: 1.55rem; }
  .location-button { border: 1px solid var(--line); background: #fff; padding: 9px 11px; font-size: .78rem; }
  .location-button select { max-width: 92px; }
  .notice-card { min-height: 112px; border-radius: 10px; padding: 20px; align-items: center; }
  .notice-copy strong { max-width: 260px; font-size: 1.08rem; line-height: 1.4; }
  .notice-copy > span:last-child { font-size: .86rem; }
  .notice-action { display: none; }
  .category-section { top: 0; padding: 8px 0; }
  .category-scroll { width: 100%; padding: 0 16px; }
  .category-chip { min-height: 40px; padding: 0 14px; font-size: .84rem; }
  .market-section { padding: 25px 16px 0; }
  .market-heading { margin-bottom: 15px; }
  .market-heading h2 { font-size: 1.32rem; }
  .trade-tabs { margin: 0 -16px 20px; padding: 0 16px; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .trade-tab { min-width: auto; padding: 9px 2px 10px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 11px; }
  .image-wrap { border-radius: 12px; }
  .product-badges { top: 8px; left: 8px; gap: 4px; max-width: calc(100% - 49px); }
  .trade-badge { padding: 5px 7px; font-size: .68rem; }
  .product-badges .grade-badge { min-height: 25px; padding: 4px 6px; font-size: .66rem; }
  .favorite-button { top: 7px; right: 7px; width: 34px; height: 34px; }
  .grade-guide { margin: 0 0 19px; border-right: 0; border-left: 0; border-radius: 0; }
  .grade-guide summary { min-height: 54px; padding: 11px 16px; }
  .grade-guide summary small { display: none; }
  .grade-guide-grid { grid-template-columns: repeat(5, 150px); overflow-x: auto; padding: 0 16px 13px; }
  .grade-guide-grid p { font-size: .69rem; }
  .product-title-row { margin-top: 10px; }
  .product-title { font-size: .92rem; }
  .price { font-size: 1rem; }
  .product-trade-info { gap: 4px; }
  .product-trade-info span { padding: 5px 6px; font-size: .66rem; }
  .meta { font-size: .7rem; }
  .floating-register { display: grid; place-items: center; position: fixed; z-index: 60; right: 18px; bottom: 88px; width: 52px; height: 52px; border: 0; border-radius: 17px 17px 17px 6px; background: var(--primary); color: #fff; box-shadow: 0 7px 18px rgba(218, 71, 131, .24); }
  .floating-register svg { width: 24px; stroke-width: 2.2; }
  .bottom-nav { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; height: 70px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); background: rgba(255,250,253,.97); backdrop-filter: blur(8px); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-item { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #a58b98; padding: 0 1px; font-size: .69rem; font-weight: 700; }
  .bottom-item span { white-space: nowrap; }
  .bottom-item svg { width: 21px; height: 21px; }
  .bottom-item.active { color: var(--primary); }
  .modal-layer {
    top: var(--app-viewport-top, 0px);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 100vh;
    height: var(--app-viewport-height, 100dvh);
    align-items: end;
    overflow: hidden;
    padding: max(8px, env(safe-area-inset-top)) 0 0;
  }
  .product-modal, .register-sheet, .chat-sheet, .auth-sheet, .workspace-sheet, .action-sheet {
    width: 100%;
    max-height: calc(100vh - 8px);
    max-height: calc(var(--app-viewport-height, 100dvh) - max(8px, env(safe-area-inset-top)));
    border-radius: 18px 18px 0 0;
  }
  .product-close-anchor .modal-close { top: 12px; right: 12px; }
  .detail-layout { display: block; min-height: auto; }
  .detail-image { height: auto; min-height: auto; aspect-ratio: 1 / .82; }
  .detail-info { padding: 25px 20px 26px; }
  .detail-info h2 { font-size: 1.35rem; }
  .detail-description { margin: 18px 0; }
  .register-sheet { padding: 14px 20px 30px; }
  .auth-sheet { padding: 13px 20px calc(24px + env(safe-area-inset-bottom)); }
  .auth-sheet > .modal-close { top: 12px; right: 12px; }
  .auth-heading { margin-bottom: 19px; }
  .auth-heading h2 { font-size: 1.5rem; }
  .auth-claw { width: 46px; height: 46px; border-radius: 16px 16px 16px 6px; }
  .auth-claw svg { width: 31px; height: 31px; }
  .social-login { min-height: 46px; }
  .chat-sheet {
    height: calc(100vh - 8px);
    height: calc(var(--app-viewport-height, 100dvh) - max(8px, env(safe-area-inset-top)));
  }
  .chat-sheet .sheet-handle { margin: 9px auto 4px; }
  .chat-header { position: relative; z-index: 4; min-height: 64px; flex: 0 0 auto; padding: 8px 14px; }
  .chat-product { min-height: 70px; padding: 9px 14px; }
  .chat-messages { padding: 16px 13px 12px; }
  .chat-bubble { max-width: 82%; font-size: .86rem; }
  .chat-form { padding-right: 12px; padding-left: 12px; }
  .chat-safety { padding-bottom: calc(9px + env(safe-area-inset-bottom)); }
  .chat-tools { padding-right: 12px; padding-left: 12px; }
  .filter-grid { grid-template-columns: repeat(2, 1fr); padding: 0 12px 10px; }
  .market-filters { margin: 0 -16px 18px; border-right: 0; border-left: 0; border-radius: 0; }
  .workspace-sheet {
    min-height: min(88vh, calc(100vh - 8px));
    min-height: min(88dvh, calc(var(--app-viewport-height, 100dvh) - max(8px, env(safe-area-inset-top))));
  }
  .workspace-header { min-height: 66px; padding: 12px 16px; }
  .workspace-tabs { padding: 10px 14px; }
  .workspace-content { padding: 15px; }
  .workspace-card { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
  .workspace-card > img { width: 58px; height: 58px; }
  .workspace-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .admin-stats { grid-template-columns: 1fr; }
  .sheet-handle { display: block; width: 44px; height: 5px; border-radius: 99px; background: #ead3de; margin: 0 auto 19px; }
  .sheet-header { margin-bottom: 20px; }
  .photo-uploader { min-height: 130px; }
  .photo-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .region-field-row { grid-template-columns: minmax(118px, .85fr) minmax(0, 1.15fr); gap: 8px; }
  .toast { bottom: 84px; }
  .back-to-top { right: 78px; bottom: 88px; padding: 9px; }
  .back-to-top span { display: none; }
  body.map-view .back-to-top, body.community-view .back-to-top { right: 18px; }
  .map-section { padding: 25px 16px 0; }
  .map-heading { align-items: flex-start; margin-bottom: 17px; }
  .map-heading h1 { font-size: 1.55rem; }
  .map-heading > div > p:last-child { max-width: 280px; font-size: .8rem; line-height: 1.55; }
  .map-home-button { padding: 8px 10px; font-size: .75rem; }
  .map-toolbar { margin: 0 -16px; border-right: 0; border-left: 0; border-radius: 0; padding: 14px 16px; }
  .map-layout { display: block; margin: 0 -16px; border-right: 0; border-left: 0; border-radius: 0; }
  .map-canvas-wrap { border-right: 0; border-bottom: 1px solid var(--line); }
  #clawMap { height: 54vh; min-height: 390px; max-height: 560px; }
  .map-location-button { top: 12px; right: 12px; width: 42px; height: 42px; }
  .map-search-here { top: 12px; min-height: 42px; padding: 0 15px; font-size: .82rem; }
  .store-panel { height: 360px; }
  .store-panel-head { min-height: 54px; }
  .store-item { padding: 13px 16px; }
  .map-source-note { margin: 12px 0 0; }
  .community-section { padding: 25px 16px 0; }
  .community-heading { align-items: center; margin-bottom: 14px; }
  .community-heading h1 { font-size: 1.55rem; }
  .community-heading > div > p:last-child { max-width: 250px; font-size: .78rem; line-height: 1.5; }
  .community-write-button { min-height: 36px; padding: 0 12px; font-size: .82rem; }
  .community-tabs { margin: 0 -16px 14px; padding: 0 16px 4px; }
  .community-tab { padding: 8px 11px; font-size: .74rem; }
  .board-intro { display: block; border-right: 0; border-left: 0; border-radius: 0; margin: 0 -16px; padding: 17px 16px; }
  .board-intro h2 { font-size: 1.2rem; }
  .board-intro small { display: block; margin-top: 10px; }
  .community-post-list { grid-template-columns: 1fr; gap: 7px; }
  .community-list-open { min-height: 78px; padding: 11px 13px; }
  .community-list-title { font-size: .9rem; }
  .community-list-action { padding: 6px 7px 6px 9px; font-size: .66rem; }
  .community-detail-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .community-detail-head small { text-align: left; }
  .community-post, .review-card { padding: 17px; }
  .review-facts { gap: 4px; }
  .review-facts > div { padding: 8px 7px; }
  .review-facts strong { font-size: .68rem; }
  .wholesale-facts { gap: 4px; }
  .linked-product { grid-template-columns: 50px minmax(0, 1fr); }
  .linked-product img { width: 50px; height: 50px; }
  .linked-product b { display: none; }
  .community-review-fields { grid-template-columns: 1fr; gap: 0; }
  body.map-view .floating-register, body.community-view .floating-register { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .user-location-pulse, .map-location-button.loading svg { animation: none !important; }
}

/* Mobile-first responsive refinements */
body { overflow-x: hidden; }
button, a, input, select, textarea { touch-action: manipulation; }

@media (min-width: 681px) and (max-width: 1100px) {
  .header-inner, main { width: calc(100% - 32px); }
  .header-inner { gap: 18px; }
  .product-grid { gap: 24px 12px; }
}

@media (min-width: 681px) and (max-width: 900px) {
  .header-actions .text-button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 9px;
    font-size: .82rem;
  }
  .primary-button.compact { min-height: 44px; padding: 0 12px; font-size: .82rem; }
}

@media (max-width: 680px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .header-inner { width: calc(100% - 24px); height: 60px; grid-template-columns: minmax(0, 1fr) 42px 42px; gap: 7px; }
  .brand { min-width: 0; font-size: 1.24rem; }
  .brand-mark { flex: 0 0 auto; }
  .mobile-search-wrap { padding: 8px 12px 14px; }
  .mobile-search { min-height: 50px; padding: 0 13px; border-radius: 14px; }
  .mobile-search input { height: 50px; font-size: .95rem; }
  .quick-area { padding: 0 12px; }
  .location-row { align-items: flex-start; gap: 10px; margin-bottom: 14px; }
  .location-row > div { min-width: 0; }
  .location-row h1 { font-size: 1.48rem; }
  .location-button { flex: 0 0 auto; min-height: 44px; max-width: 48%; padding: 8px 10px; }
  .location-button select { max-width: 94px; }
  .notice-card { min-height: 0; flex-direction: column; align-items: stretch; gap: 14px; padding: 17px 16px; }
  .notice-copy strong { max-width: none; font-size: 1.03rem; }
  .notice-copy > span:last-child { line-height: 1.45; }
  .notice-action { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; padding: 0 14px; font-size: .88rem; }
  .category-section { top: 0; padding: 7px 0; }
  .category-scroll { width: 100%; gap: 8px; padding: 0 12px; overscroll-behavior-inline: contain; }
  .category-chip { min-height: 40px; padding: 0 13px; font-size: .82rem; }
  .category-chip.community-category, .category-chip.map-category { display: none; }
  .market-section { padding: 22px 12px 0; }
  .market-heading { align-items: flex-end; gap: 10px; }
  .market-heading h2 { font-size: 1.34rem; }
  .market-heading p { font-size: .82rem; }
  .sort-button { min-height: 44px; padding: 0 10px; font-size: .78rem; }
  .grade-guide { margin-right: -12px; margin-left: -12px; }
  .grade-guide summary { min-height: 58px; padding: 12px 14px; }
  .grade-guide-grid { padding-right: 14px; padding-left: 14px; }
  .market-filters { margin-right: -12px; margin-left: -12px; }
  .market-filters summary { min-height: 52px; padding: 0 14px; }
  .filter-grid { gap: 9px; padding: 0 12px 12px; }
  .filter-grid label > span { margin-bottom: 6px; font-size: .74rem; }
  .filter-grid .field-input { min-height: 48px; height: 48px; padding: 0 10px; font-size: .86rem; }
  .trade-tabs { margin-right: -12px; margin-left: -12px; padding-right: 12px; padding-left: 12px; gap: 20px; }
  .trade-tab { min-height: 46px; padding: 9px 3px 10px; }
  .product-grid { gap: 22px 10px; }
  .product-title { font-size: .9rem; }
  .price { font-size: 1.02rem; }
  .product-trade-info span { min-height: 28px; font-size: .67rem; }
  .meta { font-size: .72rem; line-height: 1.4; }

  .floating-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 122px;
    min-height: 50px;
    height: 50px;
    right: 14px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    padding: 0 15px;
    border-radius: 17px 17px 17px 6px;
  }
  .floating-register svg { width: 22px; height: 22px; }
  .floating-register span { font-size: .8rem; font-weight: 800; white-space: nowrap; }
  .bottom-nav { height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-item { min-height: 64px; gap: 3px; font-size: .7rem; }
  .bottom-item svg { width: 22px; height: 22px; }

  .map-section, .community-section { padding-right: 12px; padding-left: 12px; }
  .map-heading, .community-heading { gap: 12px; }
  .map-heading h1, .community-heading h1 { font-size: 1.5rem; }
  .map-home-button { min-height: 44px; padding: 0 11px; }
  .map-toolbar { margin-right: -12px; margin-left: -12px; padding: 12px; }
  .store-search { min-height: 50px; padding: 0 13px; }
  .store-search input { height: 50px; font-size: .92rem; }
  .region-scroll { gap: 7px; margin-top: 10px; padding-bottom: 2px; }
  .region-chip { min-height: 42px; padding: 0 13px; font-size: .82rem; }
  .map-area-filters { gap: 8px; margin-top: 10px; }
  .map-area-filters label > span { font-size: .74rem; }
  .map-area-filters select { min-height: 48px; font-size: .84rem; }
  .map-layout { margin-right: -12px; margin-left: -12px; }
  .store-item { min-height: 70px; padding: 13px 14px; }
  .map-source-note { margin-right: 0; margin-left: 0; font-size: .74rem; }
  .community-heading { align-items: center; }
  .community-heading > div { min-width: 0; }
  .community-heading > div > p:last-child { max-width: none; }
  .community-write-button { width: auto; min-height: 36px; padding: 0 12px; font-size: .82rem; }
  .community-tabs { margin-right: -12px; margin-left: -12px; padding-right: 12px; padding-left: 12px; }
  .community-tab { min-height: 44px; padding: 0 13px; font-size: .78rem; }
  .board-intro { margin-right: -12px; margin-left: -12px; padding-right: 12px; padding-left: 12px; }

  .product-modal, .register-sheet, .chat-sheet, .auth-sheet, .workspace-sheet, .action-sheet { box-shadow: 0 -7px 28px rgba(118, 49, 80, .12); }
  .detail-image { max-height: 42vh; }
  .detail-info { padding: 22px 16px calc(28px + env(safe-area-inset-bottom)); }
  .detail-info h2 { font-size: 1.34rem; }
  .detail-actions { grid-template-columns: 52px minmax(0, 1fr); }
  .detail-favorite, .detail-actions .primary-button { min-height: 50px; }
  .detail-owner-tools { padding: 13px; }
  .detail-owner-actions { grid-template-columns: 1fr; }
  .detail-owner-actions button { min-height: 48px; font-size: .8rem; }

  .register-sheet { padding: 0 16px calc(28px + env(safe-area-inset-bottom)); }
  .register-sheet .sheet-header { position: sticky; top: 0; z-index: 4; margin: 0 -16px 18px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
  .register-sheet .sheet-header h2 { font-size: 1.3rem; }
  .photo-uploader { min-height: 148px; border-radius: 16px; }
  .photo-preview-grid { gap: 8px; margin-bottom: 22px; }
  fieldset { margin-bottom: 22px; }
  legend, .field-label { margin-bottom: 8px; font-size: .9rem; line-height: 1.4; }
  .segment-control { gap: 7px; }
  .segment-control span { min-height: 48px; }
  .field-input { min-height: 50px; margin-bottom: 15px; font-size: 1rem; }
  .submit-button { min-height: 52px; }

  .auth-sheet { padding: 13px 16px calc(28px + env(safe-area-inset-bottom)); }
  .auth-heading h2 { font-size: 1.45rem; }
  .social-login { min-height: 50px; }
  .auth-sheet .field-input { min-height: 50px; }
  .account-menu-grid button { min-height: 48px; }

  .workspace-header { min-height: 64px; padding: 11px 14px; }
  .workspace-header h2 { font-size: 1.22rem; }
  .workspace-tabs { padding: 10px 12px; }
  .workspace-tabs button { min-height: 44px; padding: 0 13px; }
  .workspace-content { padding: 14px 12px; }
  .workspace-actions button, .small-action { min-height: 42px; padding: 0 10px; font-size: .74rem; }
  .notification-card { padding: 14px; }
  .notification-toolbar { align-items: stretch; flex-direction: column; }
  .notification-toolbar-actions { justify-content: flex-start; }
  .notification-toolbar-actions .small-action { flex: 1 1 auto; }
  .notification-card.notification-link { padding-right: 14px; padding-bottom: 38px; }
  .notification-link-label { top: auto; right: 14px; bottom: 13px; transform: none; }
  .notification-actions { padding-right: 0; }
  .server-report-heading { align-items: center; }
  .server-report-note { grid-template-columns: 1fr; gap: 6px; }
  .server-report-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-report-actions button { width: 100%; }

  .chat-tools { padding: 8px 12px; }
  .chat-tools button { min-height: 40px; }
  .chat-suggestions button { min-height: 42px; padding: 0 12px; }
  .chat-bubble { font-size: .88rem; line-height: 1.55; }
  .chat-form { padding: 10px 12px 7px; }
  .chat-composer-row > input[type="text"] { min-height: 50px; height: 50px; font-size: 1rem; }
  .chat-composer-row button { min-width: 48px; min-height: 48px; }
  .chat-safety { font-size: .7rem; }

  .action-sheet #actionContent { padding: 18px 16px 0; }
  .action-form .primary-button { min-height: 50px; }
  .toast { max-width: calc(100% - 24px); bottom: calc(84px + env(safe-area-inset-bottom)); }
  .back-to-top { right: 78px; bottom: calc(88px + env(safe-area-inset-bottom)); min-height: 42px; }
}

@media (max-width: 380px) {
  .header-inner { width: calc(100% - 18px); }
  .brand { font-size: 1.16rem; }
  .brand-mark { width: 32px; height: 32px; }
  .location-row h1 { font-size: 1.38rem; }
  .location-button { padding-right: 8px; padding-left: 8px; }
  .location-button select { max-width: 78px; }
  .product-grid { gap: 20px 8px; }
  .product-title { font-size: .86rem; }
  .price { font-size: .96rem; }
  .floating-register { min-width: 112px; padding-right: 12px; padding-left: 12px; }
  .floating-register span { font-size: .74rem; }
  .bottom-item { font-size: .62rem; }
  .bottom-item svg { width: 20px; height: 20px; }
  .chat-composer-row { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 6px; }
  .chat-composer-row button { min-width: 42px; min-height: 44px; }
}
