:root {
  --bg: #F6F0E7;
  --paper: #FFFDFC;
  --ink: #25221F;
  --muted: #817A72;
  --line: #E8DED3;
  --brand: #E45732;
  --brand-soft: #FFF4EF;
  --ok: #4E9278;
  --ok-bg: #E6F2ED;
  --warn: #C58B3C;
  --warn-bg: #F8E8C8;
  --no: #C94B43;
  --no-bg: #F8E4E1;
  --shadow: 0 4px 20px rgba(50, 40, 30, 0.045);
  --radius: 18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tab-h: 56px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Noto Serif SC", "Songti SC", serif;
  --num: "Inter", "Noto Sans SC", sans-serif;
  --cat-handmade: #C95432;
  --cat-food: #B8873D;
  --cat-music: #52648F;
  --cat-plant: #39806B;
  --cat-aesthetics: #8D6B8A;
  --cat-mix: #716C63;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
}
button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

#app {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 16px calc(24px + var(--safe-bottom));
}
.page.with-tab {
  padding-bottom: calc(24px + var(--tab-h) + var(--safe-bottom));
}
.page.with-footer {
  padding-bottom: calc(100px + var(--safe-bottom));
}

.kicker {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.28em;
  font-weight: 700;
}
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.muted { color: var(--muted); font-size: 13px; }
.price { color: var(--brand); font-weight: 800; }
.link { color: var(--brand); font-size: 14px; }

.card {
  background: var(--paper);
  border: 1px solid rgba(220, 210, 200, 0.55);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.section {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin: 22px 0 12px;
}
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.seal {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}
.seal.lg {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-size: 32px;
}
.avatar-edit {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.avatar-edit img,
.avatar-edit .seal {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}
.avatar-edit .avatar-tip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 0;
  background: rgba(28, 25, 21, 0.55);
  color: #fff;
  font-size: 10px;
  text-align: center;
  letter-spacing: 0.05em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.btn:disabled, .btn.disabled {
  background: #D9D0C5;
}
.btn-ghost {
  background: #EFE7DC;
  color: var(--ink);
}
.btn-sm {
  width: auto;
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}
.btn-row {
  display: flex;
  gap: 10px;
}
.btn-row .btn { flex: 1; }

.tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1.4;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-pending { background: var(--warn-bg); color: var(--warn); }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-no { background: var(--no-bg); color: var(--no); }

.field { margin-bottom: 14px; }
.label {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 8px;
}
.label em {
  color: var(--brand);
  font-style: normal;
  font-weight: 700;
}
.label-soft {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}
.input, .textarea, .select {
  width: 100%;
  background: #F6F1EA;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(196, 81, 44, 0.35);
  background: #fff;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px;
  border-radius: 999px;
  background: #F6F1EA;
  color: var(--muted);
  font-size: 13px;
  min-height: 36px;
}
.chip.on {
  background: var(--brand);
  color: #fff;
}
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 16px;
  line-height: 1.7;
}
.notice {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  background: #F8EFE3;
  padding: 12px 14px;
  border-radius: 12px;
}

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(480px, 100%);
  height: calc(var(--tab-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 20;
}
.tab {
  display: grid;
  place-items: center;
  gap: 2px;
  color: #A59C92;
  font-size: 11px;
  font-weight: 600;
}
.tab.on { color: var(--brand); }
.tab svg { width: 20px; height: 20px; stroke-width: 1.8; }

.footer-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(480px, 100%);
  z-index: 20;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 18px calc(12px + var(--safe-bottom));
  background: rgba(255, 252, 248, 0.96);
  box-shadow: 0 -8px 24px rgba(40, 24, 8, 0.06);
}
.footer-bar .btn { flex: 1; width: auto; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(28, 25, 21, 0.9);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  max-width: 80%;
  text-align: center;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.back {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.top-title {
  font-size: 17px;
  font-weight: 800;
}

.tone-0 { background: linear-gradient(155deg, #E07A4F 0%, #A33B1A 55%, #6E2410 100%); }
.tone-1 { background: linear-gradient(155deg, #5A9A84 0%, #2D6A55 55%, #163D31 100%); }
.tone-2 { background: linear-gradient(155deg, #6A7AA8 0%, #3A466E 55%, #222A44 100%); }
.tone-3 { background: linear-gradient(155deg, #D4A45A 0%, #9A6A28 55%, #5C3E12 100%); }
.tone-4 { background: linear-gradient(155deg, #B06A72 0%, #7A3A44 55%, #4A2228 100%); }

.cover {
  border-radius: 18px 18px 0 0;
  padding: 16px 16px 20px;
  color: #fff;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.cover::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.cover-cat {
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.92;
  font-weight: 600;
}
.cover-cd {
  font-size: 11px;
  background: rgba(0,0,0,.22);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.cover-title {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.2;
  margin: 16px 0 8px;
  text-shadow: 0 1px 0 rgba(0,0,0,.12);
  position: relative;
  z-index: 1;
}
.cover-place {
  font-size: 12px;
  opacity: 0.88;
  position: relative;
  z-index: 1;
}

.act-card {
  position: relative;
  background: var(--paper);
  border: none;
  border-radius: 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .15s ease;
}
.act-card:active { transform: scale(0.985); }
.act-main { display: block; color: inherit; }
.act-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 78% 30%, rgba(255,255,255,.22), transparent 42%),
    linear-gradient(145deg, var(--cat-c, #C95432) 0%, #2a221e 100%);
  overflow: hidden;
}
.act-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.act-media.has-cover::before,
.act-media.has-cover::after {
  opacity: 0.35;
}
.act-media.has-cover::before {
  background: linear-gradient(180deg, rgba(36,33,31,.15) 0%, transparent 40%, rgba(36,33,31,.45) 100%);
}
.act-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(36,33,31,.08) 0%, transparent 40%, rgba(36,33,31,.35) 100%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.04) 18px 19px);
  pointer-events: none;
}
.act-media::after {
  content: '';
  position: absolute;
  right: 10%;
  bottom: 12%;
  width: 42%;
  height: 38%;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 0 8px rgba(255,255,255,.06);
  opacity: .7;
  pointer-events: none;
}
.cat-handmade { --cat-c: var(--cat-handmade); }
.cat-food { --cat-c: var(--cat-food); }
.cat-music { --cat-c: var(--cat-music); }
.cat-plant { --cat-c: var(--cat-plant); }
.cat-aesthetics { --cat-c: var(--cat-aesthetics); }
.cat-mix { --cat-c: var(--cat-mix); }
.act-cat,
.act-status {
  position: absolute;
  z-index: 1;
  top: 12px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.act-cat {
  left: 12px;
  background: rgba(255,253,252,.92);
  color: var(--ink);
}
.act-status {
  left: auto;
  right: 52px;
  background: rgba(36,33,31,.4);
  color: #fff;
}
.act-status.st-hot { background: rgba(217,87,50,.88); }
.act-status.st-full { background: rgba(113,108,99,.88); }
.act-status.st-soon { background: rgba(184,135,61,.9); }
.act-status.st-open { background: rgba(77,146,123,.88); }
.act-body { padding: 14px 16px 16px; }
.act-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--ink);
}
.act-place {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}
.act-date {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.act-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.act-fees {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 12px;
  color: var(--muted);
}
.act-fees em {
  font-style: normal;
  color: var(--ink);
  font-weight: 600;
  margin-left: 2px;
}
.act-left {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ok);
  font-family: var(--num);
}
.act-left.hot { color: var(--brand); }
.act-left.full { color: var(--muted); }
.act-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,253,252,.94);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 16px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(50,40,30,.1);
}
.act-fav.on { color: var(--brand); }

/* —— Brand header & market hero —— */
.brand-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.brand-cn {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.brand-en {
  margin-top: 4px;
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--brand);
  font-weight: 600;
}
.brand-tag {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.brand-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 4px;
}
.icon-ghost {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.icon-ghost svg { width: 20px; height: 20px; }

.market-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 1;
  min-height: 132px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  background: #3a2a22;
}
.market-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.market-banner-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36,33,31,.78) 0%, rgba(36,33,31,.35) 48%, rgba(36,33,31,.12) 100%);
  pointer-events: none;
}
.market-banner-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px;
  color: #fff;
  max-width: 58%;
}
.banner-en {
  font-family: var(--num);
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: .85;
  margin-bottom: 6px;
}
.market-banner-copy h2 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 6px;
}
.market-banner-copy p {
  margin: 0 0 10px;
  font-size: 12px;
  opacity: .88;
  line-height: 1.4;
}
.banner-cta {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}

.profile-nudge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.profile-ring {
  --p: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), #EDE6DC 0);
  display: grid;
  place-items: center;
}
.profile-ring > span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--num);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}
.profile-nudge-body { flex: 1; min-width: 0; }
.profile-nudge-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.profile-nudge-body p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.profile-nudge-go {
  flex-shrink: 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.profile-bar {
  height: 4px;
  background: #EDE6DC;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}
.profile-bar > i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
}

.home-hero {
  margin: -4px 0 18px;
  padding: 4px 0 2px;
}
.home-kicker {
  color: var(--brand);
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 800;
  margin-bottom: 8px;
}
.home-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 20em;
}
.home-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 8px 10px 8px 8px;
  max-width: 220px;
  background: rgba(255, 253, 252, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: transform .15s ease, background .15s ease;
}
.home-user:active {
  transform: scale(0.98);
  background: var(--paper);
}
.home-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.home-avatar.seal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 15px;
}
.home-user-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.home-user-meta strong {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-user-meta em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}
.home-user-go {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding-right: 2px;
}
.home-section {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}
.hello {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  height: 44px;
  padding: 0 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.search-ico {
  color: var(--muted);
  font-size: 16px;
}
.search input {
  width: 100%;
  height: 44px;
  border: none;
  background: transparent;
  outline: none;
}
.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats .chip {
  flex-shrink: 0;
  background: #F7F1E8;
  color: var(--ink);
}
.cats .chip.on {
  background: var(--brand);
  color: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border: 1px solid rgba(220, 210, 200, 0.55);
  border-radius: var(--radius);
  padding: 18px 8px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.stat { text-align: center; }
.stat .num {
  display: block;
  font-family: var(--num);
  font-size: 26px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
}
.stat .lab {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.stat .hint {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.3;
  opacity: 0.9;
}

.login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 56px 22px 40px;
}
.brand {
  font-family: var(--display);
  font-size: 40px;
  line-height: 1.1;
}
.demo-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  text-align: left;
  width: 100%;
  box-shadow: var(--shadow);
}
.demo-card:active { transform: scale(0.985); }
.demo-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.role-card {
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 12px;
  text-align: left;
  width: 100%;
  box-shadow: var(--shadow);
  transition: border-color .2s, background .2s, transform .15s;
  position: relative;
}
.role-card:active { transform: scale(0.985); }
.role-card.on {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.role-card .role-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.role-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 24px;
  background: #F6F1EA;
}
.role-card.on .role-icon.organizer { background: #F3D9CF; }
.role-card.on .role-icon.vendor { background: #DCEAE4; }
.role-name { font-size: 20px; font-weight: 800; }
.role-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.role-feat {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F6F1EA;
  color: var(--muted);
}
.role-card.on .role-feat {
  background: #fff;
  color: var(--brand);
}
.role-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #D9D0C5;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: transparent;
}
.role-card.on .role-check {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.login-prompt {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}
.login-hint {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}
.btn:disabled, .btn.disabled {
  background: #D9D0C5;
  color: rgba(255,255,255,.85);
}
.btn.ready {
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(217, 87, 50, 0.28);
}

.todo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.todo-strip::-webkit-scrollbar { display: none; }
.todo-chip {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(105deg, #FFF7F3 0%, #FFFCF8 60%);
  border: 1px solid rgba(196,81,44,.18);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(196, 81, 44, 0.06);
}
.todo-chip-text { min-width: 0; }
.todo-chip strong { color: var(--brand); }
.todo-chip-go {
  flex-shrink: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.mine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.mine-tile {
  background: var(--paper);
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 72px;
}
.mine-tile strong {
  font-size: 15px;
  font-weight: 700;
}
.mine-tile span {
  font-size: 12px;
  color: var(--muted);
}
.mine-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.mine-hero-body { flex: 1; min-width: 0; }
.mine-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 2px 0 4px;
}
.mine-phone {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.menu-danger strong { color: #A33B2A; }

.footer-bar .fav-side {
  width: 72px;
  height: 48px;
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.footer-bar .fav-side.on { color: var(--brand); border-color: rgba(217,87,50,.35); }
.footer-bar .fav-side svg { width: 18px; height: 18px; }
.footer-bar .btn { height: 48px; border-radius: 24px; }

.quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.quick {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 0 2px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  box-shadow: none;
  position: relative;
}
.quick .qi {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 6px 14px rgba(40,24,8,.05);
  color: var(--brand);
  font-size: 0;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.quick:active .qi {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(40,24,8,.06);
}
.quick strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 0;
}
.quick-n {
  position: absolute;
  top: 0;
  right: calc(50% - 28px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  z-index: 1;
}
.qi-work::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: 3px 3px 0 -1px var(--paper), 3px 3px 0 1px currentColor;
}
.qi-star::before {
  content: '☆';
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
}
.qi-foot::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-right-color: transparent;
  transform: rotate(-45deg);
}
.qi-foot::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  right: 15px;
  bottom: 15px;
}
.qi-cert::before {
  content: '证';
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.qi-plus::before {
  content: '+';
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  margin-top: -2px;
}
.qi-yen::before {
  content: '¥';
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.pay-settled {
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.pay-settled-title {
  color: var(--ok);
  font-weight: 800;
  font-size: 15px;
}

.avatar-edit.uploading {
  opacity: 0.55;
  pointer-events: none;
}
.avatar-edit:disabled {
  cursor: wait;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  border: 1px solid rgba(255,255,255,.25);
}
.icon-btn.dark {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}
.icon-btn.on { color: #E24B4B; }

.cover-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-right: 44px;
}
.search-wrap .search { margin-bottom: 0; }
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F6F1EA;
  color: var(--muted);
}
.pill.hot { background: var(--warn-bg); color: var(--warn); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }

.skeleton {
  background: linear-gradient(90deg, #EFE7DC 25%, #F7F1E8 50%, #EFE7DC 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 12px;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.sk-card { height: 160px; margin-bottom: 12px; }

.search-wrap { position: relative; margin-bottom: 12px; }
.search-suggest {
  position: absolute;
  left: 0; right: 0; top: 46px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 5;
  overflow: hidden;
}
.search-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #F0E7DC;
  font-size: 13px;
}
.search-suggest button:last-child { border-bottom: none; }

.menu-card {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.menu-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  display: inline-grid;
  place-items: center;
  margin-right: 6px;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}
.action-tile {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(220, 210, 200, 0.55);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: left;
  min-height: 88px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.action-tile .t { font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.action-tile .muted { font-size: 12px; }
.action-tile.wide { grid-column: 1 / -1; }
.action-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.banner-soft {
  background: linear-gradient(120deg, #FFF7F3, #F8EFE3);
  border: 1px solid rgba(196,81,44,.12);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.detail-cover {
  margin: -20px -18px 18px;
  padding: 0;
  color: #fff;
  min-height: 0;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 78% 30%, rgba(255,255,255,.18), transparent 42%),
    linear-gradient(145deg, var(--cat-c, #C95432) 0%, #2a221e 100%);
}
.detail-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.detail-cover .cover-inner {
  position: relative;
  z-index: 1;
  padding: 22px 20px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(36,33,31,.72) 100%);
}
.detail-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 8px;
}
.stall-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stall-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.stall-opt {
  border: 2px solid transparent;
  margin-bottom: 10px;
}
.stall-opt.on {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #F0E7DC;
}
.check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #D9D0C5;
  margin-top: 2px;
  flex-shrink: 0;
}
.check.on {
  background: var(--brand);
  border-color: var(--brand);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  position: relative;
  z-index: 6;
}
.step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #6F675F;
  padding: 10px 4px;
  border: none;
  border-bottom: 3px solid #E6DCCE;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 252, 248, 0.7);
  font-family: inherit;
  cursor: pointer;
  position: relative;
  z-index: 6;
}
.step.on {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: #fff;
}
.mask {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 21, 0.45);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  width: min(480px, 100%);
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  padding: 12px 18px calc(20px + var(--safe-bottom));
  animation: sheetUp .22s ease;
}
@keyframes sheetUp {
  from { transform: translateY(24px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}
.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #E5D9CB;
  margin: 4px auto 14px;
}
.sheet-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}
.sheet-qual .chips-qual .chip {
  font-size: 12px;
  padding: 8px 12px;
}
.bar {
  height: 8px;
  background: #EFE7DC;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 14px;
  margin-bottom: 0;
}
.bar-in {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width .25s ease;
}
.vendor-progress {
  margin-bottom: 8px;
}
.vendor-pct {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.vendor-pct span {
  font-size: 14px;
  margin-left: 2px;
}
.vendor-form .field:last-of-type {
  margin-bottom: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field-row .field { margin-bottom: 14px; }
.qual-card .qual-actions {
  margin-top: 12px;
  display: flex;
  gap: 18px;
}
.link.danger { color: var(--no); }
.empty-soft {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 28px 16px;
}
.qual-imgs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.qual-imgs img, .thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: #F6F1EA;
}
.thumb-wrap {
  position: relative;
  padding: 0;
  border: none;
  background: none;
}
.thumb-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 18px;
  display: grid;
  place-items: center;
}
.add-img {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  border: 1.5px dashed rgba(196, 81, 44, 0.45);
  background: #FFF7F3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--brand);
  cursor: pointer;
}
.add-img span {
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
}
.add-img em {
  font-style: normal;
  font-size: 11px;
}
.loading {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.35s ease both; }
.rise-delay { animation-delay: 0.08s; }

/* —— Workbench (摊主工作台) —— */
.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.work-kicker {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.work-user {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.work-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.work-stall-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid rgba(220, 210, 200, 0.7);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.work-stall-btn svg { width: 16px; height: 16px; }

.work-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 160px;
  aspect-ratio: 3 / 1;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  background: #3a2a22;
}
.work-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
.work-banner-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(37,34,31,.78) 0%, rgba(37,34,31,.32) 55%, rgba(37,34,31,.1) 100%);
}
.work-banner-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  color: #fff;
  max-width: 62%;
}
.work-banner-copy h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 6px;
}
.work-banner-copy p {
  margin: 0 0 12px;
  font-size: 12px;
  opacity: .88;
  line-height: 1.45;
}
.work-banner-cta {
  display: inline-flex;
  width: fit-content;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.progress-title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  margin: 4px 0 10px;
}

.empty-market {
  text-align: center;
  padding: 28px 16px 24px;
  background: var(--paper);
  border: 1px solid rgba(220, 210, 200, 0.55);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.empty-illu {
  width: 120px;
  height: 88px;
  margin: 0 auto 14px;
  color: var(--brand);
}
.empty-market h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}
.empty-market p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.empty-market .btn {
  max-width: 180px;
  margin: 0 auto;
}

.reco-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 20px 0 10px;
}
.reco-head strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
}
.reco-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: none;
}
.reco-scroll::-webkit-scrollbar { display: none; }
.reco-card {
  flex: 0 0 220px;
  background: var(--paper);
  border: 1px solid rgba(220, 210, 200, 0.55);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
}
.reco-media {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.2), transparent 45%),
    linear-gradient(145deg, var(--cat-c, #C95432), #2a221e);
}
.reco-body { padding: 12px 12px 14px; }
.reco-loc {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.reco-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px;
}
.reco-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.reco-meta .left { color: var(--ok); font-weight: 600; font-family: var(--num); }

/* —— Mine identity —— */
.mine-page-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px;
}
.mine-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.mine-profile .avatar-edit,
.mine-profile .avatar-edit img,
.mine-profile .avatar-edit .seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.mine-profile .avatar-tip { border-radius: 0 0 32px 32px; }
.identity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.identity-card .lab {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.identity-card .role-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}
.identity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.identity-status {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ok);
}
.identity-status.warn { color: var(--warn); }
.identity-status.no { color: var(--no); }
.switch-list {
  background: var(--paper);
  border: 1px solid rgba(220, 210, 200, 0.55);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.switch-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(232, 222, 211, 0.8);
  background: transparent;
}
.switch-item:last-child { border-bottom: none; }
.switch-item:disabled {
  opacity: 1;
  cursor: default;
}
.switch-item.on .name { color: var(--brand); }
.switch-item .name { font-weight: 700; font-size: 15px; }
.switch-item .tip { font-size: 12px; color: var(--muted); margin-top: 4px; }
.logout-soft {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px;
  color: #C94B43;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: none;
}
.btn-soft {
  background: #F2E9DE;
  color: var(--brand);
}
