﻿:root {
  color-scheme: light;
  --bg: #fff8ee;
  --surface: #ffffff;
  --surface-soft: #fff1df;
  --ink: #32251a;
  --muted: #7c6c5f;
  --line: #f2ddc5;
  --brand: #f7a04e;
  --brand-light: #ffc06d;
  --brand-dark: #e67e22;
  --danger: #d94832;
  --shadow: 0 18px 48px rgba(230, 126, 34, 0.16);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 210, 122, 0.34), transparent 260px),
    linear-gradient(180deg, rgba(247, 160, 78, 0.18), transparent 260px),
    var(--bg);
  overflow-x: hidden;
}

body.has-confirm-dialog,
body.has-photo-lightbox {
  overflow: hidden;
}

button, input, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

h1, h2, h3, p {
  margin-top: 0;
}

.app-shell {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 20px calc(98px + var(--safe-bottom));
  background: rgba(255, 248, 238, 0.78);
  overflow-x: hidden;
}

.test-site-notice {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #f0b38d;
  border-radius: 8px;
  color: #43271a;
  background: #fff4d8;
  box-shadow: 0 10px 24px rgba(179, 92, 38, 0.12);
}

.test-site-notice strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

.test-site-notice span {
  color: #6e5240;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.brand-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1.24rem;
  line-height: 1.2;
}

h1 {
  margin-bottom: 0;
  font-size: 2.42rem;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: 0;
}

.nest-button {
  position: relative;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(201, 118, 43, 0.08);
}

.nest-button span {
  font-size: 1.42rem;
  font-weight: 950;
}

.nest-button::after {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  content: "";
}

.view { display: none; }
.view.is-active { display: block; }

.view[data-view="me"] {
  padding-bottom: calc(122px + var(--safe-bottom));
}

.search-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 82px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(230, 126, 34, 0.09);
}

.market-result-toast {
  position: absolute;
  right: 18px;
  top: 50%;
  z-index: 2;
  max-width: min(46%, 190px);
  padding: 8px 13px;
  border: 1px solid rgba(232, 137, 39, 0.44);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 233, 198, 0.92), rgba(255, 201, 131, 0.92));
  color: #87470e;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 10px 22px rgba(141, 86, 24, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-42%) scale(0.96);
}

.market-result-toast.is-showing {
  animation: marketResultFloatNotice 3.8s ease both;
}

.search-card label {
  margin-right: 18px;
  color: #6f625a;
  font-size: 1.15rem;
  font-weight: 900;
}

.search-card input {
  min-width: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1.04rem;
  font-weight: 800;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
}

.search-card input::placeholder {
  color: #8a817c;
  opacity: 1;
}

.search-card input::-webkit-search-cancel-button,
.search-card input::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
}

.welcome-card {
  min-height: 212px;
  margin-bottom: 28px;
  border-radius: 30px;
  padding: 27px 25px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 228, 170, 0.8), transparent 160px),
    linear-gradient(145deg, #ffbd73 0%, var(--brand) 50%, var(--brand-dark) 100%);
  box-shadow: var(--shadow);
}

.welcome-card p {
  margin-bottom: 16px;
  font-size: 1.08rem;
  font-weight: 800;
}

.welcome-card h2 {
  margin-bottom: 16px;
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.welcome-card strong {
  display: block;
  margin-bottom: 24px;
  font-size: 1.25rem;
  line-height: 1.45;
}

.welcome-card button,
.primary-action {
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  padding: 0 24px;
  color: var(--brand-dark);
  background: #fff;
  font-size: 1.18rem;
  font-weight: 950;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.metric-grid article,
.category-card,
.product-card,
.form-card,
.message-item,
.login-panel,
.member-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(230, 126, 34, 0.09);
}

.metric-grid article {
  display: grid;
  min-height: 106px;
  place-items: center;
  padding: 14px 8px;
  text-align: center;
}

.metric-grid strong {
  color: var(--brand);
  font-size: 2rem;
  line-height: 1;
}

.metric-grid span {
  color: #756a63;
  font-size: 1rem;
  font-weight: 800;
}

.content-section {
  margin-top: 30px;
}

.section-title,
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title h2,
.section-title-row h2 {
  margin-bottom: 0;
  font-size: 1.75rem;
  font-weight: 950;
}

.section-title button {
  border: 0;
  color: var(--brand);
  background: transparent;
  font-size: 1.18rem;
  font-weight: 950;
}

.category-scroll-shell {
  position: relative;
}

.category-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 37%;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.category-grid::-webkit-scrollbar,
.status-tabs::-webkit-scrollbar,
.choice-row::-webkit-scrollbar {
  display: none;
}

.category-card {
  display: grid;
  min-height: 122px;
  place-items: center;
  padding: 16px 10px;
  text-align: center;
}

.category-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(160deg, var(--brand-light), var(--brand));
  font-weight: 950;
}

.category-card strong {
  display: block;
  margin-top: 13px;
  font-size: 1.18rem;
  font-weight: 950;
}

.category-card span {
  color: #756a63;
  font-weight: 800;
}

@media (hover: hover) and (pointer: fine) {
  .category-grid {
    grid-auto-columns: minmax(122px, 31%);
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(247, 160, 78, 0.55) transparent;
  }

  .category-grid::-webkit-scrollbar {
    display: block;
    height: 8px;
  }

  .category-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(247, 160, 78, 0.55);
  }
}

.product-list,
.message-list,
.sell-form,
.member-panel {
  display: grid;
  gap: 16px;
}

.message-list {
  min-height: min(58vh, 560px);
  align-content: start;
}

.product-card {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  overflow: hidden;
}

.product-card[role="button"] {
  cursor: pointer;
}

.product-card:focus-visible {
  outline: 4px solid rgba(247, 160, 78, 0.36);
  outline-offset: 3px;
}

.product-card.is-done,
.product-card.is-offline {
  opacity: 0.72;
}

.product-card.is-done::after {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(43, 34, 29, 0.72);
  content: "已完成";
  font-size: 0.86rem;
  font-weight: 900;
}

.product-card.is-offline::after {
  content: "已下架";
  background: rgba(124, 108, 95, 0.72);
}

.favorite-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(242, 221, 197, 0.88);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(50, 37, 26, 0.1);
  font-size: 1.16rem;
  font-weight: 950;
}

.favorite-chip.is-active {
  color: #fff;
  background: var(--brand);
}

.product-thumb {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1.1 / 0.82;
  place-items: center;
  border-radius: 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.34), transparent 120px),
    linear-gradient(160deg, var(--brand-light), var(--brand));
  font-size: 2rem;
  font-weight: 950;
  overflow: hidden;
}

.image-count-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(50, 37, 26, 0.72);
  font-size: 0.82rem;
  font-weight: 950;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card strong {
  display: block;
  margin: 0 0 12px;
  font-size: 1.34rem;
  font-weight: 950;
  line-height: 1.25;
}

.product-card p,
.helper-text,
.quick-step-title p,
.form-message,
.login-message {
  color: #766960;
  line-height: 1.5;
}

.login-message[data-state="loading"] {
  color: #9a5f18;
}

.login-message[data-state="success"] {
  color: #3f7a45;
}

.login-message[data-state="error"] {
  color: #b0442e;
}

.login-message[data-state="info"] {
  color: #6f6258;
}

.product-card p {
  margin-bottom: 14px;
  color: #81736b;
  font-size: 1rem;
  font-weight: 700;
}

.product-card > div:not(.product-thumb) {
  display: grid;
  gap: 10px;
  padding: 18px 18px 20px;
}

.product-footer,
.product-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.price {
  color: var(--brand-dark);
  font-weight: 950;
}

.product-footer .price {
  order: 4;
  flex-basis: 100%;
  margin-top: 4px;
  font-size: 1.58rem;
}

.status,
.status-tabs button,
.status-pill,
.distance-pill {
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff1dc;
  color: #7a6555;
  font-size: 0.78rem;
  font-weight: 950;
}

.status.available,
.status-tabs button.is-active {
  color: #fff;
  background: var(--brand);
}

.status.reserved {
  background: #edf3f7;
  color: #527d9d;
}

.status.done {
  background: #eee5df;
  color: #6b5b51;
}

.status.offline {
  background: #f0ece7;
  color: #8a817c;
}

.meta,
.product-meta {
  color: #81736b;
  font-size: 0.92rem;
  font-weight: 800;
}

.status-tabs {
  display: flex;
  gap: 8px;
  margin: -8px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.status-tabs button {
  flex: 0 0 auto;
  border: 0;
}

.status-tabs .market-layout-toggle {
  border: 1px solid rgba(232, 137, 39, 0.3);
  color: #8a4a12;
  background: rgba(255, 248, 237, 0.96);
}

.status-tabs .market-layout-toggle.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
}

.product-list.is-wall {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.product-list.is-wall .product-card {
  min-width: 0;
  border-radius: 10px;
  background: #fffdf9;
  box-shadow: 0 8px 18px rgba(91, 61, 34, 0.08);
}

.product-list.is-wall .product-thumb {
  aspect-ratio: 1 / 1;
}

.product-list.is-wall .favorite-chip {
  display: none;
}

.product-list.is-wall .image-count-badge {
  right: 4px;
  bottom: 4px;
  min-height: 18px;
  padding: 2px 5px;
  font-size: 0.62rem;
}

.product-list.is-wall .product-card > div:not(.product-thumb) {
  gap: 3px;
  padding: 5px 6px 7px;
}

.product-list.is-wall .product-card strong {
  margin: 0;
  overflow: hidden;
  font-size: 0.68rem;
  line-height: 1.18;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-list.is-wall .product-card p,
.product-list.is-wall .product-footer .meta {
  display: none;
}

.product-list.is-wall .product-footer {
  gap: 3px;
}

.product-list.is-wall .price {
  font-size: 0.66rem;
  line-height: 1.1;
}

.product-list.is-wall .status {
  display: none;
}

.product-list.is-wall .product-card.is-done::after,
.product-list.is-wall .product-card.is-offline::after {
  top: 4px;
  left: 4px;
  padding: 3px 5px;
  font-size: 0.58rem;
}

.product-detail-view {
  display: none;
}

.product-detail-view.is-active {
  display: block;
}

.detail-back-button {
  min-height: 46px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  font-weight: 950;
}

.product-detail-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(230, 126, 34, 0.1);
}

.detail-hero {
  position: relative;
  display: grid;
  min-height: 270px;
  aspect-ratio: 1 / 0.92;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.35), transparent 130px),
    linear-gradient(155deg, var(--brand-light), var(--brand));
  font-size: 2.4rem;
  font-weight: 950;
  overflow: hidden;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.detail-photo-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.photo-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-layer.is-current {
  z-index: 1;
}

.photo-layer.is-next {
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 170ms ease;
}

.photo-layer.is-next.is-visible {
  opacity: 1;
  visibility: visible;
}

.detail-photo-stage:focus-visible,
.detail-photo-nav:focus-visible,
.photo-lightbox-close:focus-visible,
.photo-lightbox-nav:focus-visible {
  outline: 3px solid rgba(247, 160, 78, 0.72);
  outline-offset: 3px;
}

.detail-photo-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: inherit;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
}

.detail-photo-placeholder span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 2.2rem;
}

.detail-photo-placeholder strong {
  color: #fff;
  font-size: 1.08rem;
}

.detail-photo-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(50, 37, 26, 0.16);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

.detail-photo-nav.is-prev {
  left: 14px;
}

.detail-photo-nav.is-next {
  right: 14px;
}

.detail-count {
  right: 16px;
  bottom: 16px;
}

.detail-body {
  display: grid;
  gap: 16px;
  padding: 22px 20px 24px;
}

.detail-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-body h2 {
  margin: 0;
  font-size: 1.82rem;
  font-weight: 950;
  line-height: 1.18;
}

.detail-price {
  color: var(--brand-dark);
  font-size: 2rem;
  font-weight: 950;
}

.detail-body p {
  margin: 0;
  color: #766960;
  font-weight: 800;
  line-height: 1.65;
}

.detail-spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.detail-spec-list div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: #fffaf4;
}

.detail-spec-list dt {
  color: #8a7b70;
  font-size: 0.88rem;
  font-weight: 900;
}

.detail-spec-list dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.35;
}

.seller-summary,
.safe-trade-note {
  border-radius: 20px;
  padding: 16px;
  background: var(--surface-soft);
}

.seller-summary {
  display: grid;
  gap: 6px;
}

.seller-summary strong {
  font-size: 1.08rem;
  font-weight: 950;
}

.seller-summary span {
  color: var(--ink);
  font-weight: 950;
}

.seller-summary small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.safe-trade-note {
  color: #7d6a5d;
  background: #fff6e8;
}

.detail-action-bar {
  position: sticky;
  bottom: calc(92px + var(--safe-bottom));
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(92px, 0.42fr) 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(230, 126, 34, 0.14);
  backdrop-filter: blur(14px);
}

.detail-favorite {
  background: #fff1df;
  color: var(--brand-dark);
}

.detail-favorite.is-active {
  color: #fff;
  background: var(--brand);
}

.detail-main-action:disabled {
  color: #fff;
  background: #a79b92;
  box-shadow: none;
  cursor: not-allowed;
}

.quick-sell-form {
  gap: 18px;
}

.form-card {
  padding: 28px 26px;
}

.quick-step-card {
  display: grid;
  gap: 17px;
}

.quick-step-title {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
}

.quick-step-title h2 {
  margin-bottom: 7px;
  font-size: 1.68rem;
  font-weight: 950;
  line-height: 1.2;
}

.quick-step-title p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
}

.step-badge {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #ffd08a, var(--brand) 58%, var(--brand-dark));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 950;
}

.photo-upload-input {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.photo-slot {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  min-width: 0;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  overflow: hidden;
  font-size: 1.55rem;
  font-weight: 950;
}

.photo-slot.has-photo {
  border-style: solid;
  background: #fffaf4;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cover-slot span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(230, 126, 34, 0.92);
  color: #fff;
  font-size: 11px;
  line-height: 22px;
}

.photo-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(50, 37, 26, 0.72);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.photo-count-note {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  width: 100%;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 950;
}

.photo-count-note[data-state="error"] {
  background: #fff0ed;
  color: var(--danger);
}

label,
.choice-group {
  display: grid;
  gap: 9px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.field-label {
  color: #756a63;
  font-size: 1.05rem;
  font-weight: 950;
}

input,
textarea {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 16px;
  color: var(--ink);
  background: #fffaf4;
  font-weight: 800;
  outline: 0;
}

textarea {
  min-height: 132px;
  padding: 17px 16px;
  resize: vertical;
  line-height: 1.55;
}

.choice-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.choice-chip {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(247, 160, 78, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #fff6e8);
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(230, 126, 34, 0.08);
}

.choice-chip.active-choice {
  border-color: transparent;
  background: linear-gradient(135deg, #ffc06d, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(230, 126, 34, 0.2);
}

.toggle-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #756a63;
}

.toggle-row input {
  width: 32px;
  height: 32px;
  min-height: 32px;
  accent-color: var(--brand);
}

.draft-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 950;
  white-space: nowrap;
}

.preview-product-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}

.preview-visual {
  aspect-ratio: 1.1 / 0.92;
  background: #f6efe5;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.preview-visual::before {
  content: "尚未上傳照片";
}

.preview-visual.has-photo::before {
  content: "";
}

.preview-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.preview-visual.has-photo img {
  display: block;
}

.preview-body {
  display: grid;
  gap: 14px;
  padding: 18px 18px 22px;
}

.preview-body h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 950;
}

.preview-body .price {
  font-size: 1.72rem;
}

.full-width {
  width: 100%;
}

.sell-submit-area {
  position: relative;
  display: grid;
  gap: 12px;
}

.sell-member-toast {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  left: 0;
  z-index: 4;
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 12px 18px;
  border: 1px solid rgba(232, 137, 39, 0.82);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 230, 191, 0.98), rgba(255, 199, 126, 0.98));
  color: #7d3f0a;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.35;
  text-align: center;
  box-shadow:
    0 18px 34px rgba(141, 86, 24, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
}

.sell-member-toast.is-showing {
  animation: sellFloatNotice 2.9s ease both;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 14px 14px calc(16px + var(--safe-bottom));
  background: rgba(50, 37, 26, 0.34);
  backdrop-filter: blur(3px);
}

.confirm-overlay[hidden] {
  display: none;
}

.confirm-dialog {
  width: min(100%, 360px);
  max-height: min(78vh, 420px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 192, 109, 0.24), transparent 120px),
    #fffdf8;
  box-shadow: 0 22px 68px rgba(50, 37, 26, 0.22);
}

.confirm-dialog [hidden] {
  display: none !important;
}

.confirm-dialog h2 {
  margin: 8px 0;
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1.2;
}

.confirm-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.55;
  white-space: pre-line;
}

.confirm-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.confirm-dialog-actions button {
  min-height: 46px;
  border-radius: 16px;
  font-size: 1.18rem;
  font-weight: 950;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px 14px calc(18px + var(--safe-bottom));
  background: rgba(50, 37, 26, 0.72);
  backdrop-filter: blur(8px);
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 430px);
  max-height: min(86vh, 720px);
  border: 1px solid rgba(255, 227, 195, 0.8);
  border-radius: 26px;
  overflow: hidden;
  background: #fffdf8;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.photo-lightbox-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.photo-lightbox-topbar h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-lightbox-topbar span {
  color: var(--brand-dark);
  font-weight: 950;
  white-space: nowrap;
}

.photo-lightbox-close {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brand-dark);
  background: var(--surface-soft);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.photo-lightbox-image-stage {
  position: relative;
  width: 100%;
  height: min(72vh, 640px);
  max-height: calc(86vh - 58px);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 192, 109, 0.16), transparent 150px),
    #221811;
  overflow: hidden;
}

.photo-lightbox-image-stage img {
  object-fit: contain;
}

.photo-lightbox-nav {
  position: absolute;
  top: calc(50% + 29px);
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

.photo-lightbox-nav[hidden] {
  display: none;
}

.photo-lightbox-nav.is-prev {
  left: 12px;
}

.photo-lightbox-nav.is-next {
  right: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .detail-photo-stage:hover img {
    filter: saturate(1.03) contrast(1.02);
  }

  .detail-photo-nav {
    width: 52px;
    height: 52px;
    opacity: 0.28;
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 18px 36px rgba(50, 37, 26, 0.2);
    font-size: 2.15rem;
    transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  }

  .detail-hero:hover .detail-photo-nav,
  .detail-photo-nav:hover,
  .detail-photo-nav:focus-visible {
    opacity: 1;
  }

  .detail-photo-nav:hover,
  .detail-photo-nav:focus-visible {
    box-shadow: 0 20px 42px rgba(50, 37, 26, 0.28);
  }

  .detail-photo-nav.is-prev {
    left: 18px;
  }

  .detail-photo-nav.is-next {
    right: 18px;
  }

  .photo-lightbox-dialog {
    width: min(92vw, 920px);
    max-height: min(90vh, 780px);
  }

  .photo-lightbox-image-stage {
    height: min(76vh, 700px);
    max-height: calc(90vh - 58px);
  }

  .photo-lightbox-nav {
    width: 56px;
    height: 56px;
    opacity: 0.38;
    font-size: 2.2rem;
    transition: opacity 160ms ease, box-shadow 160ms ease;
  }

  .photo-lightbox-dialog:hover .photo-lightbox-nav,
  .photo-lightbox-nav:hover,
  .photo-lightbox-nav:focus-visible {
    opacity: 1;
  }

  .photo-lightbox-nav:hover,
  .photo-lightbox-nav:focus-visible {
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.3);
  }

  .photo-lightbox-nav.is-prev {
    left: 18px;
  }

  .photo-lightbox-nav.is-next {
    right: 18px;
  }
}

@keyframes sellFloatNotice {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  18%,
  76% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
}

@keyframes marketResultFloatNotice {
  0% {
    opacity: 0;
    transform: translateY(-38%) scale(0.96);
  }

  16% {
    opacity: 0.94;
    transform: translateY(-50%) scale(1);
  }

  48% {
    opacity: 0.9;
    transform: translateY(-50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-56%) scale(0.985);
  }
}

.primary-action {
  color: #fff;
  background: linear-gradient(135deg, #ffc06d, var(--brand), var(--brand-dark));
  box-shadow: 0 16px 30px rgba(230, 126, 34, 0.18);
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.center-text {
  text-align: center;
}

.message-item,
.login-panel,
.member-card {
  padding: 20px;
}

.login-panel {
  display: grid;
  gap: 16px;
}

.guest-auth-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(230, 126, 34, 0.09);
}

.guest-auth-card {
  padding: 20px;
}

.register-draft-card {
  margin-top: 0;
}

.compact-title-row {
  margin-bottom: 14px;
}

.compact-title-row h2 {
  font-size: 1.24rem;
}

#registerDraftTitle {
  font-size: 1.24rem;
}

.register-form {
  display: grid;
  gap: 14px;
}

.message-item strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.1rem;
}

.message-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.message-title-row strong {
  min-width: 0;
  margin-bottom: 0;
}

.message-title-row .draft-pill {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.purchase-intent-message {
  border-color: rgba(247, 160, 78, 0.5);
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 192, 109, 0.22), transparent 100px),
    var(--surface);
}

.purchase-intent-message.is-unread {
  border-color: rgba(42, 157, 143, 0.52);
  box-shadow: 0 14px 30px rgba(42, 157, 143, 0.12);
}

.conversation-reply-state {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  margin-top: 10px;
  border-radius: 999px;
  padding: 0 11px;
  background: #f5efe6;
  color: #716154;
  font-size: 0.86rem;
  font-weight: 900;
}

.conversation-reply-state.is-unread {
  background: #e6f7f2;
  color: #167c70;
}

.message-action-button {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border-radius: 16px;
  font-size: 1rem;
}

.message-action-button:disabled {
  cursor: default;
}

.message-empty {
  border-style: dashed;
}

.message-item time {
  display: block;
  margin-top: 8px;
  color: #8b7c72;
  font-weight: 800;
}

.compact-message-action {
  min-height: 42px;
  margin-top: 12px;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.conversation-thread {
  display: grid;
  gap: 14px;
}

.conversation-thread-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(230, 126, 34, 0.08);
}

.conversation-thread-header strong,
.conversation-thread-header span {
  display: block;
}

.conversation-thread-header strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.conversation-thread-header span:not(.draft-pill) {
  color: var(--muted);
  font-weight: 800;
}

.conversation-thread-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.conversation-complete-action {
  min-height: 38px;
  margin-top: 0;
  border-color: #c7eadf;
  background: #f1fffb;
  color: #168f7e;
  font-size: 0.88rem;
  white-space: nowrap;
}

.conversation-bubbles {
  display: grid;
  gap: 10px;
}

.conversation-bubble {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 20px 20px 20px 8px;
  padding: 12px 14px;
  border-color: rgba(42, 157, 143, 0.35);
  background: #effaf7;
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.07);
}

.conversation-bubble.is-own {
  justify-self: stretch;
  border-radius: 20px 20px 8px 20px;
  border-color: #e8caa5;
  background: #fffaf3;
}

.conversation-bubble strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.86rem;
}

.conversation-bubble p {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.conversation-bubble time {
  display: block;
  margin-top: 6px;
  color: #8b7c72;
  font-size: 0.78rem;
  font-weight: 800;
}

.conversation-compose {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: var(--surface);
}

.conversation-compose textarea {
  min-height: 88px;
  resize: vertical;
}

.conversation-compose-message {
  min-height: 1.4em;
  margin: -2px 2px 0;
  color: #8b7c72;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.4;
}

.conversation-compose-message:empty {
  display: none;
}

.conversation-compose-message[data-state="error"] {
  color: #b0442e;
}

.conversation-closed-note {
  margin: 0;
  color: #8b7c72;
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.5;
}

.conversation-compose-actions {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.conversation-compose button {
  min-height: 46px;
}

.conversation-check-action {
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #45c4a8, #168f7e);
  color: #fff;
  font-size: 1.18rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(42, 157, 143, 0.18);
}

.conversation-send-action {
  width: 100%;
}

.conversation-check-hint {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: calc((100% - 10px) / 2);
  color: #78cfc2;
  font-size: 1.29rem;
  font-weight: 950;
  line-height: 1.15;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 250, 243, 0.9);
}

.conversation-check-hint.is-visible {
  animation:
    conversationCheckHintRise 2400ms cubic-bezier(0.37, 0, 0.63, 1) both,
    conversationCheckHintFade 2400ms linear both;
}

@keyframes conversationCheckHintRise {
  0% {
    transform: translateY(16px);
  }

  100% {
    transform: translateY(-30px);
  }
}

@keyframes conversationCheckHintFade {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 0.9;
  }

  72% {
    opacity: 0.78;
  }

  100% {
    opacity: 0;
  }
}

.google-button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 14px 28px rgba(230, 126, 34, 0.08);
  font-weight: 950;
  text-decoration: none;
}

.google-button::before {
  content: "G";
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: conic-gradient(from -45deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
  font-weight: 950;
  line-height: 1;
}

.google-button[data-state="checking"],
.google-button[data-state="unavailable"],
.google-button[data-state="preview"] {
  opacity: 0.62;
}

.google-button[data-state="checking"] {
  cursor: wait;
}

.google-button[data-state="unavailable"],
.google-button[data-state="preview"] {
  cursor: not-allowed;
}

.secondary-action {
  display: grid;
  min-height: 54px;
  place-items: center;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: #2b221d;
  font-weight: 950;
  text-decoration: none;
}

.member-panel.is-hidden,
.login-panel.is-hidden {
  display: none;
}

.member-card {
  background: linear-gradient(150deg, #fff, #fff0dc);
}

.member-hero-card {
  display: grid;
  gap: 18px;
  overflow: hidden;
}

.member-hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.member-card p {
  margin-bottom: 4px;
  color: var(--brand);
  font-weight: 950;
}

.member-card h2 {
  margin-bottom: 16px;
  font-size: 1.8rem;
  font-weight: 950;
}

.member-status-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.profile-settings-button {
  min-height: 36px;
  border: 1px solid rgba(230, 126, 34, 0.28);
  border-radius: 999px;
  padding: 0 14px;
  color: #8b4b12;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 950;
}

.profile-settings-form {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(230, 126, 34, 0.24);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.profile-settings-form.is-hidden {
  display: none;
}

.profile-settings-form label {
  display: grid;
  gap: 8px;
  color: #7d6f67;
  font-weight: 950;
}

.profile-settings-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-settings-actions .primary-action,
.profile-settings-actions .secondary-action {
  min-height: 44px;
  border-radius: 16px;
}

.member-status-pill {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid rgba(230, 126, 34, 0.22);
  border-radius: 999px;
  padding: 0 12px;
  color: #8b4b12;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 950;
  white-space: nowrap;
}

.member-identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-identity-grid div:last-child {
  grid-column: 1 / -1;
}

.member-identity-grid dd {
  overflow-wrap: anywhere;
}

.email-verify-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(230, 126, 34, 0.08);
}

.email-verify-card p {
  margin-bottom: 6px;
  color: var(--brand);
  font-weight: 950;
}

.email-verify-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.2rem;
  font-weight: 950;
}

.email-verify-card span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
}

.email-verify-button {
  min-width: 82px;
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--brand);
  font-weight: 950;
}

.email-verify-button:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.email-verify-button[data-state="verified"] {
  background: #3f7a45;
}

.email-verify-button[data-state="loading"] {
  cursor: wait;
  background: #9a6a3f;
}

.email-verify-button[data-state="sent"] {
  background: #7c6c5f;
}

.member-account-grid,
.member-product-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.member-account-grid article,
.member-product-summary article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(230, 126, 34, 0.07);
}

.member-account-grid span,
.member-product-summary span {
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 950;
}

.member-account-grid strong,
.member-product-summary strong {
  font-size: 1.18rem;
  font-weight: 950;
}

.member-account-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.member-product-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-product-summary article {
  min-height: 78px;
  place-items: center;
  text-align: center;
}

.product-edit-form {
  display: grid;
  gap: 14px;
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.product-edit-form.is-hidden {
  display: none;
}

.product-edit-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 950;
}

.product-edit-form input,
.product-edit-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255, 251, 246, 0.92);
  font: inherit;
  font-weight: 850;
}

.product-edit-form textarea {
  resize: vertical;
}

.member-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.member-action-button {
  display: grid;
  min-height: 86px;
  align-content: center;
  gap: 6px;
  padding: 14px;
  text-align: left;
}

.member-action-button strong,
.member-action-button span {
  display: block;
}

.member-action-button strong {
  font-size: 1.05rem;
}

.member-action-button span {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.member-action-button.secondary-action {
  color: #32251a;
  background: #fff;
  border: 1px solid var(--line);
}

.member-empty-state {
  display: grid;
  gap: 12px;
  border: 1px dashed rgba(230, 126, 34, 0.42);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.member-empty-state strong {
  font-size: 1.12rem;
  font-weight: 950;
}

.member-empty-state p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.member-product-list {
  display: grid;
  gap: 14px;
}

.member-product-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(230, 126, 34, 0.08);
}

.member-product-card.is-done {
  opacity: 0.78;
}

.member-product-card.is-offline {
  opacity: 0.72;
}

.member-product-preview {
  display: grid;
  width: 104px;
  min-height: 104px;
  overflow: hidden;
  place-items: center;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: var(--brand);
  font-size: 1.8rem;
  font-weight: 950;
}

.member-product-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-product-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.member-product-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.member-product-title-row strong {
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1.25;
}

.member-product-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-product-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.member-product-meta dt {
  font-size: 0.82rem;
}

.member-product-meta dd {
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}

.member-product-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.member-product-actions button {
  min-height: 38px;
  border: 1px solid rgba(230, 126, 34, 0.26);
  border-radius: 14px;
  color: #8b4b12;
  background: #fff7ed;
  font-size: 0.88rem;
  font-weight: 950;
}

.member-product-actions button:disabled {
  color: #8d8178;
  background: #f4eee7;
  border-color: rgba(125, 111, 103, 0.22);
}

dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

dt {
  color: #7d6f67;
  font-weight: 800;
}

dd {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 950;
}

.secondary-action {
  background: var(--brand);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100vw, 430px);
  margin: 0 auto;
  padding: 8px 10px calc(8px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 32px rgba(230, 126, 34, 0.12);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 62px;
  place-items: center;
  border: 0;
  border-radius: 16px;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
}

.bottom-nav strong,
.bottom-nav span {
  display: block;
  line-height: 1.1;
}

.bottom-nav strong {
  font-size: 0.9rem;
}

.bottom-nav span {
  font-size: 1rem;
}

.bottom-nav button.is-active:not(.plus-tab) {
  color: var(--brand-dark);
  background: var(--surface-soft);
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: 0;
  transform: translate(-22%, -48%);
  z-index: 1;
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff6f95, #e84887);
  box-shadow: 0 8px 18px rgba(232, 72, 135, 0.24);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.nav-badge[hidden] {
  display: none;
}

.bottom-nav .plus-tab {
  min-height: 76px;
  margin: -8px 6px 0;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #ffc06d, var(--brand), var(--brand-dark));
  box-shadow: 0 12px 24px rgba(247, 160, 78, 0.3);
}

@media (max-width: 380px) {
  .app-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  h1 {
    font-size: 2.12rem;
  }

  .form-card {
    padding: 24px 18px;
  }

  .quick-step-title {
    grid-template-columns: 50px 1fr;
    gap: 12px;
  }

  .member-hero-top,
  .email-verify-card,
  .member-account-grid,
  .member-quick-actions {
    grid-template-columns: 1fr;
  }

  .member-product-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-product-card {
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }

  .member-product-preview {
    width: 92px;
    min-height: 92px;
  }

  .member-product-title-row,
  .member-product-actions {
    grid-template-columns: 1fr;
  }

  .member-status-pill,
  .email-verify-button {
    justify-self: start;
  }

  .step-badge {
    width: 50px;
    height: 50px;
  }

  .choice-chip {
    min-height: 44px;
    padding: 0 15px;
  }
}
