:root {
  --brand-primary: #9a5b32;
  --brand-primary-hover: #784321;
  --brand-primary-soft: #f2e5d8;
  --brand-accent: #b77918;
  --brand-accent-soft: #fbf0d6;
  --brand-on-primary: #ffffff;
  --brand-canvas: #f5ebdd;
  --brand-canvas-soft: #fbf3e8;
  --brand-surface: #fffdf8;
  --brand-line: #e4d4c1;
  --brand-line-strong: #ccb79d;
  --brand-control-line: #b6a085;
  --brand-ink: #30281f;
  --brand-muted: #675b4e;
  --brand-success: #4f6a55;
  --brand-shadow: 0 1px 2px rgba(76,56,38,.06),0 6px 16px rgba(76,56,38,.07);
  --brand-violet-vivid: var(--brand-accent);
  --brand-violet: var(--brand-primary);
  --brand-violet-hover: var(--brand-primary-hover);
  --brand-violet-soft: var(--brand-primary-soft);
  --brand-orchid: #87664f;
  --brand-orchid-soft: #f2e7dd;
  --brand-rose: #875967;
  --brand-rose-vivid: #9f6371;
  --brand-rose-soft: #f4e7ea;
  --brand-coral: #c86845;
  --brand-cyan: #55705c;
  --brand-cyan-vivid: #667f6b;
  --brand-indigo: #6f5e51;
  --brand-spectrum: var(--brand-primary);
  --brand-spectrum-soft: var(--brand-primary-soft);
  --ink: var(--brand-ink);
  --muted: var(--brand-muted);
  --canvas: var(--brand-canvas);
  --surface: var(--brand-surface);
  --line: var(--brand-line);
  --yellow: #ffd000;
  --orange: #ff6845;
  --red: #c9252c;
  --radius-lg: 18px;
  --radius-md: 15px;
  --radius-sm: 11px;
  --deal-card-radius: 16px;
  --deal-title-mobile: 14px;
  --deal-title-narrow: 14px;
  --deal-summary-mobile: 10.5px;
  --merchant-input-height: 116px;
  --nav-mobile-height: 58px;
  --nav-narrow-height: 56px;
  --shadow: var(--brand-shadow);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: #e4d7c7;
  font-family: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
a,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button { cursor: pointer; }
a { text-decoration: none; }

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(154,91,50,.24);
  outline-offset: 2px;
}

.app-shell {
  position: relative;
  display: grid;
  width: min(100%, 760px);
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--brand-canvas);
  box-shadow: 0 0 38px rgba(76, 51, 38, 0.09);
}

.app-header {
  position: relative;
  z-index: 20;
  display: none;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 30px);
  border-bottom: 1px solid rgba(212, 203, 194, 0.86);
  color: var(--brand-ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(45, 39, 34, 0.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  padding: 2px;
  border: 1px solid var(--brand-line-strong);
  border-radius: 15px;
  background: var(--brand-canvas-soft);
  box-shadow: 0 4px 10px rgba(48, 40, 34, 0.08);
  transition: box-shadow 180ms ease, transform 180ms cubic-bezier(.2,.8,.2,1);
}

.brand-logo img { display: block; width: 100%; height: 100%; border-radius: 12px; object-fit: contain; }
.brand:hover .brand-logo { box-shadow: 0 6px 14px rgba(48,40,34,.11); transform: translateY(-1px) rotate(-1deg); }
.brand:active .brand-logo { transform: scale(.96); }

.brand-copy { min-width: 0; }
.brand strong,
.brand small { display: block; }
.brand strong {
  color: var(--brand-violet);
  background: none;
  font-size: 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  -webkit-text-fill-color: currentColor;
}
.brand small { margin-top: 2px; color: var(--brand-muted); font-size: 10px; }

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.share-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  color: var(--brand-violet);
  background: #fff;
  box-shadow: 0 3px 9px rgba(97,56,37,.07);
  transition: color 160ms ease,border-color 160ms ease,background 160ms ease,box-shadow 160ms ease,transform 160ms cubic-bezier(.2,.8,.2,1);
}

.share-button svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.share-button:hover { border-color: #cb8b6f; color: #fff; background: var(--brand-violet); box-shadow: 0 5px 12px rgba(115,57,35,.16); transform: translateY(-1px); }
.share-button:active { transform: scale(.96); }

.admin-entry {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  color: var(--brand-violet);
  background: var(--brand-violet-soft);
  font-size: 11px;
  font-weight: 800;
}

.channel-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: var(--brand-canvas);
}

.channel-button {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  color: var(--brand-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.channel-button.is-active {
  color: #fff;
  background: var(--brand-violet);
  box-shadow: 0 3px 9px rgba(151, 53, 31, 0.2);
}

body.is-miniapp .channel-switch { display: none; }

.page-content {
  display: flex;
  min-height: 0;
  grid-row: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: clamp(12px, 2.6vw, 20px);
  flex-direction: column;
  gap: 12px;
  background: var(--brand-canvas);
}

.page-content > * { flex: 0 0 auto; }

.page-content.is-page-entering { animation: page-enter 240ms cubic-bezier(.2,.8,.2,1) both; }

.home-hero {
  position: relative;
  display: grid;
  min-height: 160px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  color: var(--brand-ink);
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  animation: none;
}

.home-hero::before { display: none; }

.home-hero::after,
.merchant-coupon-tool::before {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 640px);
  min-width: 0;
  justify-self: center;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
}
.hero-topline {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.hero-identity {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0;
  text-align: center;
}
.hero-avatar-frame {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  padding: 2px;
  border: 1px solid #cba77f;
  border-radius: 50%;
  background: #fbf2e8;
  box-shadow: 0 4px 10px rgba(76,56,38,.09);
  transition: box-shadow 180ms ease, transform 180ms cubic-bezier(.2,.8,.2,1);
}
.hero-avatar-frame img { display: block; width: 100%; height: 100%; padding: 0; border-radius: 50%; background: var(--brand-surface); object-fit: contain; transform: scale(1.04); }
.home-hero:hover .hero-avatar-frame { border-color: #c8b8aa; box-shadow: 0 5px 11px rgba(48,40,34,.1); transform: translateY(-1px) rotate(-1deg); }
.hero-identity-copy { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 1px; text-align: center; transform: translateX(10px); }
.hero-identity-copy > strong {
  max-width: 100%;
  overflow: hidden;
  color: #9a3d2f;
  background: none;
  font-size: 26px;
  font-weight: 900;
  font-family: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 3px 8px rgba(116,50,37,.12);
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-text-fill-color: currentColor;
}
.hero-identity-meta {
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 7px;
}
.hero-brand-badge {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #806044;
  background: transparent;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.4;
  white-space: nowrap;
}
.hero-eyebrow {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #765246;
  background: transparent;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-eyebrow i { width: 7px; height: 7px; margin-right: 6px; border: 2px solid var(--brand-surface); border-radius: 50%; background: var(--eyebrow-color); box-shadow: 0 0 0 2px rgba(154,91,50,.1); }

.hero-share-button {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 0;
  display: inline-flex;
  min-width: 82px;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #d4a85f;
  border-radius: 10px;
  color: #77441f;
  background: #fff0d2;
  box-shadow: inset 0 1px rgba(255,255,255,.82),0 3px 8px rgba(103,65,31,.09);
  font-size: 10px;
  font-weight: 900;
  translate: 0 -50%;
  white-space: nowrap;
  transition: color 160ms ease,border-color 160ms ease,background-color 160ms ease,box-shadow 160ms ease,transform 160ms cubic-bezier(.2,.8,.2,1);
}
.hero-share-button svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform 160ms cubic-bezier(.2,.8,.2,1); }
.hero-share-button:hover { border-color: #a96643; color: #fff; background: #9a5b32; box-shadow: inset 0 1px rgba(255,255,255,.18),0 5px 10px rgba(103,55,29,.16); transform: translateY(-1px); }
.hero-share-button:hover svg { transform: translateX(1px) rotate(-3deg); }
.hero-share-button:active { transform: scale(.97); }

.hero-greeting {
  position: relative;
  display: grid;
  min-width: 0;
  grid-column: 1 / -1;
  justify-items: center;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid #cfb28f;
  border-radius: 14px;
  background: #f3e4d1;
  box-shadow: inset 0 1px rgba(255,255,255,.7),0 7px 18px rgba(76,56,38,.07);
  text-align: center;
}

.hero-moment {
  display: flex;
  width: 100%;
  min-height: 36px;
  margin-top: 0;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.hero-moment-mark {
  --hero-icon-ink: #4a251b;
  --hero-icon-warm: #ffd064;
  --hero-icon-accent: #e95b3d;
  --hero-icon-cool: #3f806d;
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid #dc7650;
  border-radius: 10px;
  background: #ffe9c7;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.78), 0 2px 6px rgba(116,48,32,.09);
}
.hero-moment-mark.is-night { --hero-icon-accent: #ae6675; --hero-icon-cool: #4d776c; border-color: #bf7379; background: #f3d1d0; }
.hero-moment-mark.is-morning { --hero-icon-warm: #ffd25f; --hero-icon-accent: #ef6a3e; border-color: #d9903e; background: #ffe4a8; }
.hero-moment-mark.is-noon { --hero-icon-warm: #ffcd62; --hero-icon-accent: #e85b3f; border-color: #d46f4d; background: #ffd8c2; }
.hero-moment-mark.is-tea { --hero-icon-warm: #f6c56f; --hero-icon-accent: #c96b4b; border-color: #bf8060; background: #f6dcc5; }
.hero-moment-mark.is-evening { --hero-icon-warm: #ffcf67; --hero-icon-accent: #e4573c; border-color: #d36f45; background: #ffddb5; }
.hero-moment-mark svg,
.hero-suggestions i svg { fill: none; stroke: var(--hero-icon-ink); stroke-linecap: round; stroke-linejoin: round; }
.hero-moment-mark svg { width: 20px; height: 20px; stroke-width: 1.75; transition: transform 180ms cubic-bezier(.2,.8,.2,1); }
.hero-icon-fill-warm { fill: var(--hero-icon-warm); }
.hero-icon-fill-accent { fill: var(--hero-icon-accent); }
.hero-icon-fill-cool { fill: var(--hero-icon-cool); }
.home-hero:hover .hero-moment-mark svg { transform: translateY(-1px) scale(1.04); }
.hero-moment strong { min-width: 0; align-self: center; overflow: hidden; color: #4b3c2e; font-size: 12px; line-height: 1.25; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.hero-moment small { min-width: 0; flex: 1 0 100%; overflow: hidden; color: var(--brand-muted); font-size: 9px; line-height: 1.3; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.hero-suggestions {
  display: flex;
  width: auto;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  align-self: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 1px;
}

.hero-suggestions::-webkit-scrollbar { display: none; }
.hero-suggestions span {
  --hero-tag-hover: #ffd9c8;
  --hero-tag-icon-bg: #f8d9c8;
  --hero-tag-icon-border: #d88e6d;
  --hero-icon-ink: #4a251b;
  --hero-icon-warm: #ffd064;
  --hero-icon-accent: #e95b3d;
  --hero-icon-cool: #3f806d;
  display: inline-flex;
  min-width: max-content;
  min-height: 22px;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  border: 1px solid #e3a185;
  border-radius: 999px;
  color: #713b2c;
  background: #ffe6da;
  box-shadow: inset 0 1px rgba(255,255,255,.72);
  scroll-snap-align: start;
  white-space: nowrap;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms cubic-bezier(.2,.8,.2,1);
}
.hero-suggestions span[data-tag-tone="2"] { --hero-tag-hover: #ffe6ae; --hero-tag-icon-bg: #f7dfa2; --hero-tag-icon-border: #cfa64b; --hero-icon-warm: #f4c64f; --hero-icon-accent: #d76d35; border-color: #d9b75f; color: #664817; background: #fff0c9; }
.hero-suggestions span[data-tag-tone="3"] { --hero-tag-hover: #e3e9cb; --hero-tag-icon-bg: #e2e8c7; --hero-tag-icon-border: #aab879; --hero-icon-warm: #f3c86a; --hero-icon-accent: #d45e43; --hero-icon-cool: #4d6f50; border-color: #b6c18a; color: #475b2e; background: #eef2e0; }
.hero-suggestions span:hover { border-color: currentColor; background: var(--hero-tag-hover); transform: translateY(-1px); }
.hero-suggestions i { display: grid; width: 16px; height: 16px; flex: 0 0 16px; place-items: center; border: 1px solid var(--hero-tag-icon-border); border-radius: 5px; background: var(--hero-tag-icon-bg); box-shadow: inset 0 1px rgba(255,255,255,.75); font-style: normal; line-height: 1; }
.hero-suggestions i svg { width: 12px; height: 12px; stroke-width: 1.7; transition: transform 160ms cubic-bezier(.2,.8,.2,1); }
.hero-suggestions span:hover i svg { transform: translateY(-.5px) rotate(-3deg); }
.hero-suggestions b { display: block; font-size: 9.5px; font-weight: 850; line-height: 1.1; }

.merchant-coupon-group {
  display: grid;
  gap: 10px;
}

.merchant-coupon-tool {
  position: relative;
  overflow: hidden;
  padding: clamp(14px, 2.6vw, 17px);
  border: 1px solid #d8c4ad;
  border-radius: 14px;
  background: #fffaf2;
  box-shadow: var(--brand-shadow);
  isolation: isolate;
  animation: none;
}

.merchant-coupon-tool > * { position: relative; z-index: 1; }

.merchant-tool-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.merchant-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 4px;
  border: 1px solid #e4b3a0;
  border-radius: 7px;
  color: var(--brand-violet);
  background: var(--brand-violet-soft);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.merchant-eyebrow i {
  position: relative;
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 6px;
  background: var(--brand-violet);
  font-style: normal;
}

.merchant-eyebrow i::after { color: #fff; content: "券"; font-size: 9px; font-weight: 950; line-height: 1; }

.merchant-tool-heading h2 {
  max-width: 520px;
  margin: 7px 0 6px;
  overflow-wrap: anywhere;
  color: var(--brand-ink);
  background: none;
  font-size: 18px;
  line-height: 1.22;
  -webkit-text-fill-color: currentColor;
}

.merchant-tool-heading.is-titleless { align-items: center; margin-bottom: 8px; }

.merchant-heading-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 7px; }
.merchant-titleline { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 6px; }

.merchant-stack-badge {
  display: inline-flex;
  min-height: 23px;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 0 7px 0 5px;
  border: 1px solid #dca35f;
  border-radius: 7px;
  color: #844623;
  background: #fff1d8;
  box-shadow: inset 0 1px rgba(255,255,255,.8);
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}
.merchant-stack-badge svg { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: #b85d38; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.merchant-stack-badge strong { font-weight: 900; }
.merchant-stack-badge.is-mobile { display: none; }

.merchant-query-form { display: grid; gap: 6px; }
.merchant-field-heading { display: flex; min-width: 0; align-items: center; justify-content: flex-start; gap: 12px; }
.merchant-field-heading > label { min-width: 0; color: #4c3026; font-size: 12px; font-weight: 900; overflow-wrap: anywhere; }

.merchant-tutorial-trigger {
  display: inline-flex;
  min-height: 38px;
  min-width: 80px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 12px 0 8px;
  max-width: 158px;
  border: 1px solid #ca903a;
  border-radius: 10px;
  color: #704515;
  background: #ffebbd;
  box-shadow: inset 0 1px rgba(255,255,255,.72),0 3px 7px rgba(122,77,25,.1);
  font-size: 10.5px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms cubic-bezier(.2,.8,.2,1);
}

.merchant-tutorial-trigger > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #bd6e25;
  font-size: 12px;
  font-weight: 950;
  animation: none;
}

.merchant-tutorial-trigger > strong { min-width: 0; overflow: hidden; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.merchant-tutorial-trigger:hover { border-color: #b96f25; background: #ffe5aa; box-shadow: inset 0 1px rgba(255,255,255,.68),0 5px 10px rgba(128,79,24,.13); transform: translateY(-1px); }
.merchant-tutorial-trigger:active { transform: scale(.98); }

.merchant-input-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--brand-control-line);
  border-radius: 11px;
  background: #fffdf9;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.merchant-input-shell:focus-within {
  border-color: var(--brand-violet);
  background: #fffdf9;
  box-shadow: 0 0 0 3px rgba(185, 71, 43, 0.1);
}

.merchant-input-shell textarea {
  display: block;
  width: 100%;
  height: var(--merchant-input-height);
  min-height: var(--merchant-input-height);
  max-height: var(--merchant-input-height);
  resize: none;
  padding: 11px 12px;
  border: 0;
  outline: 0;
  color: var(--brand-ink);
  background: transparent;
  font-size: 16px;
  line-height: 1.55;
}

.merchant-input-shell textarea::placeholder { color: #8a776d; }

.merchant-detect {
  display: flex;
  min-height: 20px;
  align-items: center;
  gap: 8px;
  padding: 0 3px;
  color: #77665d;
  font-size: 10px;
}

.merchant-detect > span {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #aab0b7;
}

.merchant-detect strong { overflow-wrap: anywhere; font-weight: 800; }
.merchant-detect.is-ok { color: #16714a; }
.merchant-detect.is-ok > span { background: var(--brand-success); box-shadow: 0 0 0 4px rgba(38, 150, 106, 0.1); }
.merchant-detect.is-warn { color: #a14e37; }
.merchant-detect.is-warn > span { background: #dc6b4b; box-shadow: 0 0 0 4px rgba(220, 107, 75, 0.1); }
.merchant-detect.is-loading { color: var(--brand-cyan); }
.merchant-detect.is-loading > span { background: var(--merchant-accent); animation: merchant-pulse 950ms ease-in-out infinite; }

.merchant-query-actions {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(96px, .72fr) minmax(140px, 1.28fr);
  gap: 6px;
}

.merchant-utility-button {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--brand-line-strong);
  border-radius: 10px;
  color: var(--brand-violet);
  background: #fffdf9;
  box-shadow: 0 2px 6px rgba(107,58,34,.06);
  font-size: 11px;
  font-weight: 900;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms cubic-bezier(.2,.8,.2,1);
}
.merchant-utility-button svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.merchant-utility-button.is-paste { border-color: #d9b69c; color: var(--brand-cyan); background: #f6e7cf; }
.merchant-utility-button.is-clear { color: #806050; background: #fff0e6; }
.merchant-utility-button:hover:not(:disabled) { border-color: currentColor; box-shadow: 0 5px 11px rgba(111,58,32,.11); transform: translateY(-1px); }
.merchant-utility-button:active:not(:disabled) { transform: scale(.98); }
.merchant-utility-button:disabled { cursor: not-allowed; opacity: .46; box-shadow: none; }

.merchant-submit-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 44px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 18px;
  border: 1px solid #93350f;
  border-radius: 10px;
  color: #fffaf4;
  background: #c04d18;
  box-shadow: inset 0 1px rgba(255,255,255,.22),0 3px 8px rgba(160,67,22,.2);
  font-size: 13px;
  font-weight: 950;
  transition: background 150ms ease,border-color 150ms ease,transform 150ms ease,box-shadow 150ms ease;
}

.merchant-submit-button:hover:not(:disabled) { border-color: #85300d; background: #b74617; box-shadow: inset 0 1px rgba(255,255,255,.2),0 5px 10px rgba(160,67,22,.26); transform: translateY(-1px); }
.merchant-submit-button:focus-visible { outline: 3px solid #7d2e28; outline-offset: 2px; }
.merchant-submit-button:active { transform: scale(0.987); }
.merchant-submit-button:disabled { cursor: wait; filter: saturate(0.4); }
.merchant-submit-button:disabled::after {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: rgba(255,255,255,.7);
  content: "";
  transform-origin: left;
  animation: merchant-scan 1.1s ease-in-out infinite;
}

.merchant-feedback {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--brand-line);
  animation: merchant-result-in 220ms ease-out both;
}

.merchant-error {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  border: 1px solid #f1d3cc;
  border-left: 4px solid #dc6b4b;
  border-radius: 10px;
  background: #fff7f5;
}

.merchant-error > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #dc6b4b;
  font-weight: 950;
}

.merchant-error strong { font-size: 12px; }
.merchant-error p { margin: 4px 0 0; color: #8a5043; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }

.merchant-result-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #16714a; font-size: 12px; }
.merchant-result-heading > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: #1ba16a; font-size: 11px; font-weight: 950; }

.merchant-result-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  border: 1px solid #ead3b8;
  border-radius: 12px;
  background: #fffaf2;
  box-shadow: inset 0 1px rgba(255,255,255,.86),0 5px 15px rgba(96,57,25,.055);
}

.merchant-shop-mark {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  overflow: hidden;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #7d3c1e;
  background: #f6d3ae;
  box-shadow: 0 0 0 1px #dfb98f,0 4px 11px rgba(116,66,31,.13);
  font-size: 16px;
  font-weight: 950;
}
.merchant-shop-mark > span { position: relative; z-index: 0; }
.merchant-shop-mark > img { position: absolute; z-index: 1; width: 100%; height: 100%; inset: 0; object-fit: cover; }
.merchant-shop-mark.is-fallback > img { display: none; }

.merchant-shop-copy { min-width: 0; }
.merchant-shop-copy strong,
.merchant-shop-copy small { display: block; overflow: hidden; text-overflow: ellipsis; }
.merchant-shop-copy strong { display: -webkit-box; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #342820; font-size: 15px; font-weight: 950; line-height: 1.35; white-space: normal; }
.merchant-shop-copy small { margin-top: 5px; color: #776157; font-size: 11px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.merchant-shop-copy small i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #2a9a68; box-shadow: 0 0 0 3px rgba(42,154,104,.1); vertical-align: 1px; }
.merchant-amount { min-width: 82px; text-align: right; }
.merchant-amount small,
.merchant-amount strong { display: block; }
.merchant-amount small { color: #64696f; font-size: 10px; font-weight: 700; }
.merchant-amount strong { margin-top: 3px; color: #c74b22; font-size: 19px; }

.merchant-claim-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 13px; }
.merchant-claim-link {
  appearance: none;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 14px;
  border: 1px solid #93350f;
  border-radius: 11px;
  color: #fffaf4;
  background: #c04d18;
  box-shadow: inset 0 1px rgba(255,255,255,.24),0 4px 10px rgba(160,67,22,.22);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  transition: filter 150ms ease, transform 150ms ease;
}

.merchant-claim-link.is-secondary { border-color: #93350f; color: #fffaf4; background: #c04d18; }
.merchant-claim-link:hover:not(:disabled) { filter: brightness(0.97); transform: translateY(-1px); }
.merchant-claim-link:disabled { cursor: not-allowed; filter: grayscale(.65); opacity: .58; }

.merchant-cashback-note { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 8px 10px; border: 1px solid #ecd6b8; border-radius: 9px; color: #67503b; background: #fff9ed; font-size: 9.5px; line-height: 1.45; }
.merchant-cashback-note > span { display: grid; width: 21px; height: 21px; flex: 0 0 21px; place-items: center; border-radius: 7px; color: #fffaf4; background: #a75a2b; font-size: 9px; font-weight: 950; }
.merchant-cashback-note p { margin: 0; }
.merchant-cashback-note a { color: #8e3e18; font-weight: 850; text-decoration: underline; text-underline-offset: 2px; }

.merchant-favorite-add {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid #d8dde4;
  border-radius: 11px;
  color: #173f70;
  background: #fff;
  font-size: 12px;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.merchant-favorite-add > span { color: #c59400; font-size: 19px; line-height: 1; }
.merchant-favorite-add:hover:not(:disabled) { border-color: #d2ad00; background: #fffaf0; transform: translateY(-1px); }
.merchant-favorite-add:active:not(:disabled) { transform: scale(.987); }
.merchant-favorite-add.is-saved { color: #16714a; border-color: #b7dccb; background: #f1faf6; }
.merchant-favorite-add.is-saved > span { color: #1ba16a; }

.merchant-favorites-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--brand-line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--brand-shadow);
}

.merchant-favorites-panel::before,
.merchant-favorites-panel::after {
  position: absolute;
  top: 73px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-canvas);
  content: "";
}

.merchant-favorites-panel::before { left: -10px; }
.merchant-favorites-panel::after { right: -10px; }

.merchant-favorites-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.merchant-favorites-heading > div:first-child > span {
  color: #916d00;
  font-size: 9px;
  font-weight: 900;
}

.merchant-favorites-heading h3 {
  margin: 4px 0 0;
  font-size: 19px;
  line-height: 1.25;
}

.merchant-favorites-heading h3 small {
  margin-left: 5px;
  color: #8b9097;
  font-size: 10px;
  font-weight: 800;
}

.merchant-favorite-tools { display: flex; gap: 7px; }
.merchant-favorite-tool {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  color: #173f70;
  background: #f7f8fa;
  font-size: 19px;
  line-height: 1;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease;
}

.merchant-favorite-tool:hover:not(:disabled) { border-color: #9fb3c9; background: #fff; transform: translateY(-1px); }
.merchant-favorite-tool.is-danger { color: #a14e37; }
.merchant-favorite-tool.is-danger:hover:not(:disabled) { border-color: #e2b8ad; background: #fff7f5; }
.merchant-favorite-tool:disabled { cursor: wait; opacity: .58; }
.merchant-favorite-tool.is-loading > span { animation: merchant-favorite-spin 720ms linear infinite; }

.merchant-favorites-note {
  margin: 10px 0 0;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--brand-line-strong);
  color: #7d838b;
  font-size: 10px;
  line-height: 1.65;
}

.merchant-favorite-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.merchant-favorite-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: var(--brand-canvas-soft);
  animation: merchant-favorite-in 260ms ease-out both;
  animation-delay: var(--favorite-delay);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.merchant-favorite-item:hover { border-color: var(--brand-line-strong); background: #fff; transform: translateY(-1px); }
.merchant-favorite-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #173f70;
  background: var(--merchant-accent);
  font-size: 10px;
  font-weight: 950;
}

.merchant-favorite-copy { display: grid; min-width: 0; grid-template-columns: auto 1fr; align-items: center; gap: 4px 8px; }
.merchant-favorite-copy > strong {
  min-width: 0;
  overflow: hidden;
  grid-column: 1 / -1;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-favorite-copy > small { color: #8b9097; font-size: 8px; }
.merchant-favorite-ticket {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 8px;
  border-left: 3px solid #aab0b7;
  border-radius: 6px;
  color: #6e747c;
  background: #eef0f3;
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-favorite-ticket.has-amount { border-left-color: #d19b00; color: #7a5a00; background: #fff3c8; }
.merchant-favorite-actions { display: flex; align-items: center; gap: 7px; }
.merchant-favorite-actions > .merchant-favorite-claim {
  appearance: none;
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 11px;
  border: 1px solid #93350f;
  border-radius: 9px;
  color: #fffaf4;
  background: #c04d18;
  box-shadow: inset 0 1px rgba(255,255,255,.24),0 3px 8px rgba(160,67,22,.2);
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 150ms ease, transform 150ms ease;
}

.merchant-favorite-actions > .merchant-favorite-claim:hover:not(:disabled) { filter: brightness(.97); transform: translateY(-1px); }
.merchant-favorite-actions > .merchant-favorite-remove {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  color: #8b9097;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.merchant-favorite-actions > .merchant-favorite-remove:hover:not(:disabled) { border-color: #e2b8ad; color: #a14e37; background: #fff7f5; }
.merchant-favorite-actions > button:disabled { cursor: wait; opacity: .5; }

.section-heading {
  display: grid;
  min-height: 30px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0 3px;
}

.section-heading h2 { display: flex; align-items: center; gap: 7px; margin: 0; color: #4b3c2e; font-size: 18px; font-weight: 850; line-height: 1.25; }
.section-heading h2::before { width: 4px; height: 18px; flex: 0 0 4px; border-radius: 2px; background: var(--brand-accent); content: ""; }
.section-heading p { max-width: min(52vw, 330px); margin: 0; overflow: hidden; color: var(--brand-muted); font-size: 11px; font-weight: 650; line-height: 1.35; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.platform-strip {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.platform-button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 80px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 7px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  transition: background 160ms ease;
}

.platform-button:last-child { border-right: 0; }
.platform-button.is-active { background: color-mix(in srgb, var(--mark-color, #ffd400) 12%, white); }
.platform-button.is-active::after { position: absolute; right: 22%; bottom: 0; left: 22%; height: 3px; border-radius: 3px 3px 0 0; background: var(--mark-color); content: ""; }

.platform-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--mark-color);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-weight: 950;
}

.platform-button[data-platform="meituan"] .platform-mark { color: #17191d; }
.platform-button > span:last-child { min-width: 0; text-align: left; }
.platform-button strong,
.platform-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-button strong { font-size: 13px; }
.platform-button small { margin-top: 3px; color: #92969c; font-size: 9px; }

.deal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
  align-items: stretch;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.deal-card {
  --deal-accent: var(--brand-rose);
  --deal-row-bg: #fff5e8;
  --deal-row-hover: #fff0df;
  --deal-row-active: #f8e5d2;
  --deal-row-accent: #7c5031;
  --deal-divider: #e2c09d;
  --deal-sequence-bg: #fffbf5;
  --deal-row-shadow: rgba(91,55,38,.07);
  --deal-row-shadow-hover: rgba(91,55,38,.1);
  position: relative;
  display: grid;
  width: 100%;
  min-height: 66px;
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "sequence content";
  align-items: center;
  gap: 6px 8px;
  padding: 8px 10px;
  border: 1px solid var(--deal-divider);
  border-radius: var(--deal-card-radius);
  color: var(--brand-ink);
  background: var(--deal-row-bg);
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 3px 9px var(--deal-row-shadow),inset 0 1px 0 rgba(255,255,255,.72);
  transition: background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,transform 160ms cubic-bezier(.2,.8,.2,1);
}

.deal-card::before,
.deal-card::after { display: none; }
.deal-card.is-full-row,
.deal-card.is-wide { grid-column: 1 / -1; }
.deal-card:hover { border-color: var(--deal-divider-hover,#d8ad83); background: var(--deal-row-hover); box-shadow: 0 5px 13px var(--deal-row-shadow-hover),inset 0 1px 0 rgba(255,255,255,.76); transform: translateY(-1px); }
.deal-card:active { background: var(--deal-row-active); box-shadow: 0 2px 6px var(--deal-row-shadow),inset 0 1px 0 rgba(255,255,255,.62); transform: translateY(0) scale(.996); }
.deal-card:focus-visible { z-index: 2; outline: 2px solid var(--deal-row-accent); outline-offset: 2px; }
.deal-card:disabled { cursor: wait; opacity: .64; }
.deal-card.is-preview-disabled { opacity: .56; filter: grayscale(.75); }
.deal-card.is-preview-invalid { box-shadow: inset 0 0 0 2px #cf3f59; }
.deal-visibility { position: absolute; top: 5px; left: 5px; z-index: 2; padding: 2px 4px; border-radius: 4px; color: #fff; background: #65708a; font-size: 7px; font-weight: 850; }

.deal-card[data-row-tone="1"] { --deal-row-accent: #a94e3a; --deal-divider: #dfa78f; --deal-divider-hover: #cf876c; --deal-sequence-bg: #fff0e8; --deal-row-shadow: rgba(160,73,52,.09); --deal-row-shadow-hover: rgba(160,73,52,.13); }
.deal-card[data-row-tone="2"] { --deal-row-accent: #8a6218; --deal-divider: #dec27c; --deal-divider-hover: #cda94c; --deal-sequence-bg: #fff6df; --deal-row-shadow: rgba(155,111,24,.08); --deal-row-shadow-hover: rgba(155,111,24,.12); }
.deal-card[data-row-tone="3"] { --deal-row-accent: #865065; --deal-divider: #d5adba; --deal-divider-hover: #bd8297; --deal-sequence-bg: #f9edf1; --deal-row-shadow: rgba(132,75,99,.08); --deal-row-shadow-hover: rgba(132,75,99,.12); }
.deal-card[data-row-tone="4"] { --deal-row-accent: #536d49; --deal-divider: #b7c9a7; --deal-divider-hover: #91ac7c; --deal-sequence-bg: #eff5e8; --deal-row-shadow: rgba(80,107,69,.08); --deal-row-shadow-hover: rgba(80,107,69,.12); }

.deal-content { position: relative; display: flex; min-width: 0; grid-area: content; flex-direction: column; align-self: center; }
.deal-sequence { display: grid; width: 24px; height: 24px; grid-area: sequence; place-items: center; align-self: start; margin-top: 1px; border: 1px solid var(--deal-divider); border-radius: 7px; color: var(--deal-row-accent); background: var(--deal-sequence-bg); box-shadow: inset 0 1px 0 rgba(255,255,255,.72); font-size: 11px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; }
.deal-title-row { display: flex; min-width: 0; align-items: center; gap: 5px; }
.deal-highlight { min-width: 0; overflow: hidden; color: var(--brand-ink); font-size: 14px; font-weight: 850; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.deal-title-row .deal-highlight { flex: 0 1 auto; }
.packet-body { fill: #dc6047; stroke: #8d352a; stroke-width: 1.4; }
.packet-flap { fill: none; stroke: #ffd98a; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.packet-seal { fill: #ffd667; stroke: #8d352a; stroke-width: 1.1; }
.packet-spark { fill: none; stroke: #c77a2f; stroke-linecap: round; stroke-width: 1.5; }
.deal-short-title { display: block; margin-top: 4px; overflow: hidden; color: #514b46; font-size: 11px; font-weight: 750; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.deal-summary { display: block; min-width: 0; margin-top: 2px; overflow: hidden; color: var(--brand-muted); font-size: 10.5px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.deal-entry-hint { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 4px; margin-top: 3px; overflow: hidden; color: var(--deal-row-accent); font-size: 10px; font-weight: 900; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.deal-entry-hint::before { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px rgba(255,255,255,.72); content: ""; transition: transform 160ms cubic-bezier(.2,.8,.2,1); }
.deal-card:hover .deal-entry-hint::before { transform: scale(1.35); }
.deal-card.is-featured-placement {
  --featured-fill: #ffdec0;
  min-height: 86px;
  grid-template-rows: none;
  grid-template-areas: none;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 8px 14px 8px 16px;
  border: 1px solid #f0a05a;
  border-radius: var(--deal-card-radius);
  background: linear-gradient(135deg,#ffe9d8 0%,#ffd0a7 52%,#ffe6cd 100%);
  box-shadow: 0 3px 7px rgba(166,79,29,.13),0 10px 20px rgba(166,79,29,.14);
  animation: featured-border-tone 6.4s ease-in-out infinite;
  transition: transform 160ms cubic-bezier(.2,.8,.2,1),box-shadow 160ms ease;
}
.deal-card.is-featured-placement > * { z-index: 1; }
.deal-card.is-featured-placement::before { position: absolute; inset: 1px; z-index: 2; display: block; border: 1px solid rgba(255,251,242,.56); border-radius: calc(var(--deal-card-radius) - 2px); pointer-events: none; content: ""; }
.deal-card.is-featured-placement::after { position: absolute; top: -35%; bottom: -35%; left: 0; z-index: 0; display: block; width: 13%; background: rgba(255,251,239,.22); clip-path: polygon(35% 0,100% 0,65% 100%,0 100%); opacity: 0; transform: translate3d(-180%,0,0) skewX(-18deg); pointer-events: none; content: ""; animation: featured-sheen 7.2s ease-in-out infinite; will-change: transform,opacity; }
.featured-deal-mark { position: absolute; top: 8px; left: 14px; z-index: 3; padding: 3px 7px; border: 1px solid #8e3915; border-radius: 6px; color: #fffaf4; background: #b94c1d; box-shadow: 0 2px 5px rgba(137,53,17,.2); font-size: 9px; font-weight: 850; line-height: 1; }
.featured-hot-mark { position: absolute; top: 8px; right: 14px; z-index: 3; display: inline-flex; min-height: 20px; align-items: center; gap: 4px; padding: 3px 7px; border: 1px solid #e3a04e; border-radius: 999px; color: #99461f; background: rgba(255,246,218,.94); box-shadow: 0 2px 5px rgba(155,87,29,.13),inset 0 1px rgba(255,255,255,.74); font-size: 9px; font-weight: 900; line-height: 1; }
.featured-hot-mark > i { display: block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #d76a2f; box-shadow: 0 0 0 2px rgba(215,106,47,.14); animation: featured-hot-pulse 2.8s ease-in-out infinite; }
.featured-hot-mark > b { font-weight: 900; }
.deal-card.is-featured-placement .deal-content { width: 100%; grid-area: auto; align-items: center; justify-content: center; padding-top: 6px; text-align: center; }
.deal-card.is-featured-placement .deal-title-row { width: min(100%, 320px); justify-content: center; gap: 8px; }
.deal-card.is-featured-placement .deal-title-row::before,
.deal-card.is-featured-placement .deal-title-row::after { display: block; height: 2px; min-width: 28px; flex: 1 1 64px; border-radius: 999px; background: linear-gradient(90deg,transparent 0%,rgba(187,96,48,.28) 20%,rgba(187,96,48,.76) 50%,rgba(187,96,48,.28) 80%,transparent 100%); box-shadow: 0 1px 0 rgba(255,255,255,.3); content: ""; }
.deal-card.is-featured-placement .deal-highlight { display: inline-flex; max-width: 100%; align-items: baseline; gap: 4px; overflow: visible; color: #71381e; font-size: 20px; }
.deal-highlight-amount { flex: 0 0 auto; }
.deal-highlight-detail { min-width: 0; overflow: hidden; color: #9a4931; font-size: 13px; font-weight: 850; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.deal-card.is-featured-placement .deal-short-title { display: inline-flex; width: auto; max-width: 100%; min-height: 18px; align-items: center; justify-content: center; margin-top: 3px; padding: 2px 9px; border: 1px solid rgba(178,104,57,.34); border-radius: 999px; color: #6d422e; background: rgba(255,250,239,.68); box-shadow: inset 0 1px rgba(255,255,255,.68); font-size: 10.5px; line-height: 1.15; text-align: center; }
.deal-card.is-featured-placement .deal-summary { width: 100%; color: #5f463a; font-size: 10.5px; text-align: center; }
.deal-card.is-featured-placement .deal-entry-hint { align-self: center; color: #8d3f20; }
.deal-card.is-featured-placement:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(166,79,29,.14),0 12px 22px rgba(166,79,29,.16); }
.deal-card.is-featured-placement:active { transform: translateY(1px) scale(.996); box-shadow: 0 2px 5px rgba(119,58,18,.14); animation-play-state: paused; }
.deal-card.is-featured-placement:focus-visible { outline-color: #7d2e28; outline-offset: 2px; }
.deal-list > .empty-state { border: 0; border-radius: 0; box-shadow: none; }

.notice-band,
.content-banner {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: var(--brand-surface);
}

.notice-band { grid-template-columns: auto minmax(0, 1fr) auto; }
.notice-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: var(--brand-violet); background: var(--brand-violet-soft); font-size: 11px; font-weight: 900; }
body[data-page="taobao"] .notice-mark,
body[data-page="jd"] .notice-mark { color: #fff; }
.notice-band strong,
.content-banner strong { color: #302e39; font-size: 13px; }
.content-banner strong { color: inherit; }
.notice-band p,
.content-banner p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.revision-pill { padding: 5px 7px; border: 0; border-radius: 6px; color: #777584; background: #f2f2f6; font: 9px/1.2 Consolas, monospace; }

.content-banner { position: relative; min-height: 120px; overflow: hidden; grid-template-columns: minmax(0, 1fr) 130px; color: #fff; background: var(--brand-violet); }
.content-banner img { width: 130px; height: 90px; border-radius: 12px; object-fit: cover; }
.banner-pattern { width: 104px; height: 74px; justify-self: center; border: 16px solid rgba(255,255,255,.18); border-radius: 50%; }
.content-spacer { height: var(--spacer-height); }

body.is-preview [data-preview-select-kind] { cursor: pointer; }
body.is-preview .is-preview-selected {
  outline: 3px solid #2f6fe4;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(47, 111, 228, 0.12), var(--shadow);
}

.empty-state,
.load-error,
.initial-loading {
  display: grid;
  min-height: 220px;
  grid-column: 1 / -1;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed var(--brand-line-strong);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  text-align: center;
}

.empty-state > span,
.load-error > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; color: #17191d; background: var(--yellow); font-weight: 950; }
.empty-state strong,
.load-error strong,
.initial-loading strong { color: var(--ink); font-size: 15px; }
.empty-state p,
.load-error p { margin: 0; font-size: 11px; }
.load-error button { margin-top: 5px; padding: 9px 14px; border: 0; border-radius: 9px; background: var(--yellow); font-weight: 800; }
.loading-mark { width: 30px; height: 30px; border: 4px solid #e4e6e9; border-top-color: var(--yellow); border-radius: 50%; animation: spin 700ms linear infinite; }
.initial-loading-line { display: block; width: 42%; max-width: 180px; height: 9px; border-radius: 999px; background: linear-gradient(90deg,#ece7e1 20%,#fff8ef 50%,#ece7e1 80%); background-size: 220% 100%; animation: loading-sheen 1.2s ease-in-out infinite; }
.initial-loading-line.is-wide { width: 68%; max-width: 280px; margin-top: 4px; }

.portal-home {
  --portal-surface: #fffaf2;
  --portal-line: #d8c1a7;
  --portal-ink: #3d3025;
  --portal-muted: #756455;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.portal-welcome {
  position: relative;
  display: grid;
  min-height: 150px;
  overflow: hidden;
  grid-template-columns: minmax(0,1fr);
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 14px 18px;
  border: 1px solid #cfb08d;
  border-radius: 16px;
  background: var(--portal-surface);
  box-shadow: 0 2px 4px rgba(91,64,39,.05),0 9px 22px rgba(91,64,39,.07);
}
.portal-welcome::before {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 28px;
  border-top: 1px solid rgba(183,121,24,.32);
  border-right: 1px solid rgba(183,121,24,.32);
  border-radius: 0 10px 0 0;
  content: "";
  pointer-events: none;
}
.portal-avatar {
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid #c9a781;
  border-radius: 50%;
  background: rgba(255,253,248,.46);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.62),0 6px 14px rgba(111,74,39,.11);
  animation: portal-avatar-arrive 420ms cubic-bezier(.18,.8,.2,1) both;
}
.portal-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; background: transparent; object-fit: contain; transform: scale(1.04); }
.portal-welcome-copy { width: 100%; min-width: 0; text-align: center; }
.portal-name-row { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 9px; }
.portal-name-row h1 { min-width: 0; margin: 0; overflow: hidden; color: var(--portal-ink); font-size: 24px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.portal-name-row > span { flex: 0 0 auto; padding: 3px 7px; border: 1px solid #d8b46b; border-radius: 999px; color: #795114; background: #fff1cf; font-size: 9.5px; font-weight: 850; }
.portal-welcome-copy p { margin: 6px 0 0; overflow: hidden; color: #9a5b32; font-size: 12.5px; font-weight: 800; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.portal-welcome-copy > small { display: block; margin-top: 4px; overflow: hidden; color: var(--portal-muted); font-size: 10.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

.portal-offers-section,
.portal-saving-section { min-width: 0; padding-inline: 2px; }
.portal-section-heading { display: flex; min-width: 0; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.portal-section-heading > h2 { min-width: 0; max-width: 62%; margin: 0; overflow: hidden; flex: 0 1 62%; color: #9a5b32; font-size: 14px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.portal-section-heading > span { min-width: 0; overflow: hidden; flex: 1 1 auto; color: var(--portal-muted); font-size: 10.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.portal-offer-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
.portal-offer-grid.is-single { grid-template-columns: minmax(0,1fr); }
.portal-offer-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 132px;
  overflow: hidden;
  grid-template: auto minmax(44px,auto) 32px / 42px minmax(0,1fr);
  align-items: center;
  gap: 7px 9px;
  padding: 10px;
  border: 1px solid #d8ba92;
  border-radius: 12px;
  color: var(--portal-ink);
  background: #fff9ef;
  box-shadow: inset 0 1px rgba(255,255,255,.86),0 4px 12px rgba(91,64,39,.07);
  text-decoration: none;
  transition: border-color 170ms ease,box-shadow 170ms ease,transform 170ms cubic-bezier(.2,.8,.2,1);
}
.portal-offer-card::after { position: absolute; top: 6px; right: 6px; width: 22px; height: 14px; border-top: 1px solid rgba(154,91,50,.24); border-right: 1px solid rgba(154,91,50,.24); border-radius: 0 6px 0 0; content: ""; pointer-events: none; }
.portal-offer-card:hover { border-color: #bd8f61; box-shadow: inset 0 1px rgba(255,255,255,.9),0 7px 16px rgba(91,64,39,.12); transform: translateY(-2px); }
.portal-offer-card:active { transform: scale(.985); }
.portal-offer-card:focus-visible { outline: 3px solid rgba(154,91,50,.28); outline-offset: 2px; }
.portal-offer-card.is-preview-disabled { opacity: .5; filter: grayscale(.7); }
.portal-offer-topline { display: flex; min-width: 0; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 5px; }
.portal-offer-topline small,.portal-offer-topline i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-offer-topline small { padding: 3px 6px; border: 1px solid #dec183; border-radius: 999px; color: #735014; background: #fff0c9; font-size: 9px; font-weight: 900; line-height: 1; }
.portal-offer-topline i { color: #8b7968; font-size: 8px; font-style: normal; font-weight: 700; }
.portal-offer-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #d4b77c; border-radius: 50%; color: #654814; background: rgba(255,252,244,.92); box-shadow: inset 0 0 0 2px rgba(255,255,255,.74),0 3px 8px rgba(117,80,37,.09); transition: transform 170ms cubic-bezier(.2,.8,.2,1); }
.portal-offer-icon svg { width: 27px; height: 27px; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.portal-offer-card:hover .portal-offer-icon { transform: translateY(-1px) rotate(-2deg); }
.portal-offer-copy { min-width: 0; align-self: center; }
.portal-offer-copy strong,.portal-offer-copy small { display: block; overflow: hidden; }
.portal-offer-copy strong { color: var(--portal-ink); font-size: 13.5px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.portal-offer-copy small { display: -webkit-box; margin-top: 3px; color: var(--portal-muted); font-size: 10.5px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.portal-offer-action { display: grid; min-height: 32px; grid-column: 1 / -1; place-items: center; border: 1px solid #7e4324; border-radius: 9px; color: #fffaf4; background: #98572d; box-shadow: inset 0 1px rgba(255,255,255,.2); font-size: 11px; font-weight: 900; line-height: 1; transition: background 170ms ease,box-shadow 170ms ease; }
.portal-offer-card:hover .portal-offer-action { background: #874824; box-shadow: inset 0 1px rgba(255,255,255,.22),0 3px 7px rgba(112,61,32,.17); }
.portal-offer-card.is-pdd .portal-offer-topline small { border-color: #dfb6a0; color: #88472e; background: #ffeadf; }
.home-lucky-bag { fill: #f2c979; stroke: #654814; }
.home-lucky-tie { fill: #cb7655; stroke: #654814; }
.home-lucky-coin { fill: #fff5d8; stroke: #654814; }
.home-lucky-line { fill: none; stroke: #654814; }
.portal-offer-grid.is-single .portal-offer-card { min-height: 76px; grid-template: auto 32px / 42px minmax(0,1fr) 92px; }
.portal-offer-grid.is-single .portal-offer-topline { grid-column: 2; justify-content: flex-start; }
.portal-offer-grid.is-single .portal-offer-topline i { display: none; }
.portal-offer-grid.is-single .portal-offer-icon { grid-row: 1 / 3; }
.portal-offer-grid.is-single .portal-offer-copy { grid-column: 2; }
.portal-offer-grid.is-single .portal-offer-action { grid-row: 1 / 3; grid-column: 3; }

.portal-saving-steps {
  position: relative;
  display: grid;
  min-height: 94px;
  margin: 0;
  padding: 13px 8px 11px;
  border-block: 1px solid #dcc5aa;
  background: #fbf0e3;
  grid-template-columns: repeat(3,minmax(0,1fr));
  list-style: none;
}
.portal-saving-steps::before { position: absolute; top: 26px; right: 18%; left: 18%; border-top: 1px dashed #c79d72; content: ""; }
.portal-saving-steps li { position: relative; z-index: 1; display: grid; min-width: 0; justify-items: center; align-content: start; gap: 3px; text-align: center; }
.portal-saving-steps li > span { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #c69a69; border-radius: 50%; color: #fffaf4; background: #9a5b32; box-shadow: 0 0 0 4px #fbf0e3; font-size: 10px; font-weight: 900; }
.portal-saving-steps strong,.portal-saving-steps small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-saving-steps strong { margin-top: 3px; color: var(--portal-ink); font-size: 11.5px; line-height: 1.25; }
.portal-saving-steps small { color: var(--portal-muted); font-size: 9.5px; line-height: 1.25; }
.portal-trust-note { display: flex; min-height: 24px; margin: -3px 0 0; align-items: center; justify-content: center; gap: 5px; color: var(--portal-muted); font-size: 10px; line-height: 1.4; text-align: center; }
.portal-trust-note > span { display: grid; width: 15px; height: 15px; place-items: center; border: 1px solid #b9c6ae; border-radius: 50%; color: #4f6a55; background: #f3f7ee; font-size: 8px; font-weight: 900; }

@keyframes portal-avatar-arrive {
  from { opacity: 0; transform: translateY(5px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-page {
  --profile-hero-surface: rgba(255,250,242,.64);
  --profile-hero-line: #cfb28f;
  --profile-panel-surface: #fffaf2;
  --profile-panel-line: #d8c4ad;
  --profile-action: #c04d18;
  --profile-action-line: #93350f;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 3px;
}
.profile-identity {
  position: relative;
  display: grid;
  min-height: 124px;
  grid-template-columns: 78px fit-content(300px);
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 18px 20px;
  border: 1px solid var(--profile-hero-line);
  border-radius: 14px;
  background: var(--profile-hero-surface);
  box-shadow: inset 0 1px rgba(255,255,255,.82),inset 0 -22px 34px rgba(195,137,78,.08),0 7px 18px rgba(76,56,38,.07);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  backdrop-filter: blur(14px) saturate(1.08);
  isolation: isolate;
}
.profile-identity::before { position: absolute; inset: 3px; z-index: 0; border: 1px solid rgba(255,255,255,.5); border-radius: 11px; pointer-events: none; content: ""; }
.profile-avatar-frame {
  position: relative;
  z-index: 1;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  padding: 0;
  border: 1px solid #cba77f;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 4px 10px rgba(76,56,38,.09);
}
.profile-avatar-frame img { display: block; width: 100%; height: 100%; border-radius: 50%; background: transparent; object-fit: contain; }
.profile-identity-copy { z-index: 1; min-width: 0; text-align: left; }
.profile-name-row { display: flex; min-width: 0; align-items: center; gap: 9px; }
.profile-name-row h1 { min-width: 0; margin: 0; color: #765038; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.profile-name-row > span { flex: 0 0 auto; padding: 4px 7px; border: 1px solid #d9b75f; border-radius: 7px; color: #664817; background: #fff0c9; font-size: 10px; font-weight: 900; }
.profile-identity-copy p { margin: 7px 0 0; color: #765246; font-size: 11px; line-height: 1.45; }
.profile-identity-copy > small { display: block; margin-top: 5px; color: #806044; font-size: 10px; line-height: 1.4; }

.profile-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: hidden; border: 1px solid var(--profile-panel-line); border-radius: 14px; background: var(--profile-panel-surface); box-shadow: var(--brand-shadow); }
.profile-stat { display: grid; min-height: 72px; place-items: center; align-content: center; gap: 4px; padding: 9px 12px; border: 0; color: var(--brand-ink); background: transparent; text-align: center; }
.profile-stat + .profile-stat { border-left: 1px solid #e9d7c4; }
button.profile-stat { transition: background 160ms ease,transform 160ms cubic-bezier(.2,.8,.2,1); }
button.profile-stat:hover { background: #fff0df; }
button.profile-stat:active { transform: scale(.985); }
.profile-stat strong { display: flex; align-items: baseline; justify-content: center; gap: 3px; line-height: 1; }
.profile-stat b { color: var(--profile-action); font-size: 24px; font-weight: 950; }
.profile-stat small { color: var(--brand-muted); font-size: 10px; font-weight: 800; }
.profile-stat > span { color: var(--brand-muted); font-size: 10px; font-weight: 800; }

.profile-favorites,.profile-services-section { display: grid; gap: 9px; }
.profile-section-heading { display: flex; min-height: 40px; align-items: end; justify-content: space-between; gap: 12px; padding: 0 3px; }
.profile-section-heading > div { min-width: 0; }
.profile-section-heading h2 { display: flex; align-items: center; gap: 7px; margin: 0; color: #4b3c2e; font-size: 18px; font-weight: 850; line-height: 1.25; }
.profile-section-heading h2::before { width: 4px; height: 18px; flex: 0 0 4px; border-radius: 2px; background: var(--brand-accent); content: ""; }
.profile-section-heading p { margin: 4px 0 0; color: var(--brand-muted); font-size: 10px; line-height: 1.4; }
.profile-favorite-count { flex: 0 0 auto; color: var(--brand-primary); font-size: 10px; font-weight: 900; }
.profile-local-note { margin: 0; padding: 8px 10px; border: 1px solid var(--profile-panel-line); border-radius: 8px; color: var(--brand-muted); background: var(--profile-panel-surface); font-size: 10px; line-height: 1.45; }
.profile-favorites-empty { display: grid; min-height: 172px; place-items: center; align-content: center; gap: 8px; padding: 20px 18px; border: 1px solid var(--profile-panel-line); border-radius: 14px; background: var(--profile-panel-surface); box-shadow: var(--brand-shadow); text-align: center; }
.profile-empty-mark { display: grid; width: 56px; height: 56px; place-items: center; border: 1px solid #e29438; border-radius: 18px; color: var(--profile-action); background: #ffd39b; box-shadow: inset 0 0 0 1px rgba(255,250,238,.62),0 3px 8px rgba(134,71,21,.12); }
.profile-empty-mark svg { width: 27px; height: 27px; fill: rgba(204,124,63,.14); stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.profile-favorites-empty > strong { color: #4b3c2e; font-size: 15px; }
.profile-favorites-empty > p { max-width: 320px; margin: 0; color: var(--brand-muted); font-size: 10px; line-height: 1.55; }
.profile-favorites-empty > button { min-height: 40px; margin-top: 2px; padding: 0 16px; border: 1px solid var(--profile-action-line); border-radius: 10px; color: #fffaf4; background: var(--profile-action); box-shadow: inset 0 1px rgba(255,255,255,.22),0 3px 8px rgba(160,67,22,.2); font-size: 11px; font-weight: 900; transition: background 150ms ease,box-shadow 150ms ease,transform 150ms cubic-bezier(.2,.8,.2,1); }
.profile-favorites-empty > button:hover { background: #a84116; box-shadow: inset 0 1px rgba(255,255,255,.2),0 5px 10px rgba(160,67,22,.26); transform: translateY(-1px); }
.profile-favorites-empty > button:active { transform: scale(.975); }
.profile-favorite-list { margin: 0; }
.profile-favorite-list .merchant-favorite-item { border-color: var(--profile-panel-line); background: var(--profile-panel-surface); }
.profile-favorite-list .merchant-favorite-index { color: #713b2c; background: #ffe6da; }

.profile-menu { overflow: hidden; border: 1px solid var(--profile-panel-line); border-radius: 14px; background: var(--profile-panel-surface); box-shadow: var(--brand-shadow); }
.profile-menu button { display: grid; width: 100%; min-height: 56px; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border: 0; border-bottom: 1px solid #e9d7c4; color: var(--brand-ink); background: transparent; text-align: left; transition: background 150ms ease,transform 150ms cubic-bezier(.2,.8,.2,1); }
.profile-menu button:last-child { border-bottom: 0; }
.profile-menu button:active { transform: scale(.985); }
.profile-menu button.is-preview-disabled { opacity: .48; }
.profile-menu button > svg { width: 15px; height: 15px; fill: none; stroke: var(--brand-primary); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; transition: transform 160ms ease; }
.profile-menu-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid transparent; border-radius: 10px; }
.profile-menu-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.profile-menu-icon.is-blue { border-color: #dfa78f; color: #a94e3a; background: #fff0e8; }
.profile-menu-icon.is-mint { border-color: #b7c9a7; color: #536d49; background: #eff5e8; }
.profile-menu-icon.is-orange { border-color: #dec27c; color: #8a6218; background: #fff6df; }
.profile-menu-copy { min-width: 0; }
.profile-menu-copy strong,.profile-menu-copy small,.profile-menu-copy em { display: block; }
.profile-menu-copy strong { overflow: hidden; color: #4b3c2e; font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-copy small { margin-top: 3px; overflow: hidden; color: var(--brand-muted); font-size: 10.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-copy em { display: -webkit-box; margin-top: 2px; overflow: hidden; color: #a94e3a; font-size: 10px; font-style: normal; font-weight: 800; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.profile-menu-status { min-width: 42px; padding: 4px 6px; border: 1px solid var(--profile-panel-line); border-radius: 7px; color: var(--brand-muted); background: var(--profile-hero-surface); font-size: 9.5px; font-weight: 800; text-align: center; white-space: nowrap; }

@media (hover: hover) {
  .profile-menu button:hover { background: #fff0df; }
  .profile-menu button:hover > svg { transform: translateX(2px); }
}

.bottom-nav {
  position: relative;
  z-index: 30;
  display: grid;
  width: calc(100% - 24px);
  width: min(calc(100% - 24px), 736px);
  height: 64px;
  max-width: 736px;
  min-height: 64px;
  max-height: 64px;
  margin: 0 auto 10px;
  margin-bottom: max(10px, env(safe-area-inset-bottom));
  grid-row: 2;
  grid-template-columns: repeat(var(--nav-count, 2), minmax(0, 1fr));
  align-self: end;
  align-items: stretch;
  gap: 5px;
  padding: 7px;
  border: 1px solid #d5c1aa;
  border-radius: 20px;
  background: rgba(255,250,243,.98);
  box-shadow: 0 6px 16px rgba(76,56,38,.09);
}

.bottom-nav-button { display: flex; min-width: 0; height: 48px; min-height: 0; align-items: center; justify-content: center; gap: 3px; border-radius: 12px; color: var(--brand-muted); background: transparent; flex-direction: column; font-size: 11px; font-weight: 750; transition: color 170ms ease,background 170ms ease,transform 170ms cubic-bezier(.2,.8,.2,1); }
.bottom-nav-button[data-platform="meituan"],
.bottom-nav-button[data-platform="taobao"],
.bottom-nav-button[data-platform="jd"],
.bottom-nav-button[data-platform="home"],
.bottom-nav-button[data-platform="profile"] { --nav-label-color: var(--brand-muted); }
.bottom-nav-button > span:last-child { color: var(--nav-label-color); line-height: 1; transition: color 170ms ease; }
.bottom-nav-button:hover { background: var(--brand-violet-soft); }
.bottom-nav-button:active { transform: scale(.97); }
.bottom-nav-button.is-active { color: var(--brand-violet); background: var(--brand-violet-soft); }
.bottom-nav-button.is-active > span:last-child { color: var(--brand-violet); }
.bottom-icon { position: relative; display: grid; width: 32px; height: 32px; flex: 0 0 auto; overflow: visible; place-items: center; border: 1px solid #d7c3ac; border-radius: 11px; color: var(--nav-label-color); background: #f4e9dd; box-shadow: none; font-size: 10px; font-weight: 850; transition: background 170ms ease,border-color 170ms ease,box-shadow 170ms ease,transform 170ms cubic-bezier(.2,.8,.2,1); }
.bottom-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.bottom-icon img { display: block; width: 100%; height: 100%; padding: 1px; border-radius: 9px; background: #fff; object-fit: contain; }
.bottom-nav-button[data-platform="home"] .bottom-icon { padding: 1px; border-color: #d6b979; border-radius: 50%; color: #614819; background: rgba(255,253,248,.9); box-shadow: inset 0 0 0 1px rgba(255,255,255,.88),0 3px 8px rgba(125,91,31,.1); }
.bottom-nav-button[data-platform="home"] .bottom-icon .nav-home-glyph { width: 22px; height: 22px; overflow: visible; stroke-width: 1.5; }
.nav-home-roof,.nav-home-door { fill: none; stroke: #654814; }
.nav-home-body { fill: #f6d88b; stroke: #654814; }
.nav-home-accent { fill: #cb7655; stroke: #654814; }
.bottom-nav-button[data-platform="meituan"] .bottom-icon { padding: 1px; border-color: #dfc477; border-radius: 50%; color: #604716; background: rgba(255,253,248,.9); box-shadow: inset 0 0 0 1px rgba(255,255,255,.88),0 3px 8px rgba(125,91,31,.12); }
.bottom-nav-button[data-platform="meituan"] .bottom-icon .nav-meituan-glyph { width: 22px; height: 22px; overflow: visible; stroke-width: 1.5; }
.nav-meituan-bag { fill: #f5c744; stroke: #654814; }
.nav-meituan-line { fill: none; stroke: #654814; }
.nav-meituan-accent { fill: #cf7655; stroke: #654814; }
.bottom-nav-button[data-platform="profile"] .bottom-icon { padding: 1px; border-color: var(--brand-line-strong); border-radius: 50%; background: rgba(255,253,248,.34); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.bottom-nav-button[data-platform="profile"] .bottom-icon img { padding: 0; border-radius: 50%; background: transparent; transform: scale(1.04); }
.bottom-nav-button.is-active .bottom-icon { color: #2b2210; border-color: var(--nav-color); background: var(--nav-color); box-shadow: none; }
.bottom-nav-button[data-platform="home"].is-active .bottom-icon { color: #3b2c00; border-color: #c79e3d; border-radius: 50%; background: rgba(255,251,239,.96); box-shadow: inset 0 0 0 1px #fff,0 4px 10px rgba(139,94,19,.15); transform: translateY(-1px); }
.bottom-nav-button[data-platform="meituan"].is-active .bottom-icon { color: #3b2c00; border-color: #c79e3d; border-radius: 50%; background: rgba(255,251,239,.96); box-shadow: inset 0 0 0 1px #fff,0 4px 10px rgba(139,94,19,.16); }
.bottom-nav-button[data-platform="jd"].is-active .bottom-icon { color: #fff; }
.bottom-nav-button[data-platform="taobao"].is-active .bottom-icon { color: #2a1711; }
.bottom-nav-button[data-platform="profile"].is-active .bottom-icon { color: var(--brand-primary); border-color: #c59b75; border-radius: 50%; background: rgba(255,246,237,.5); box-shadow: 0 3px 9px rgba(112,72,40,.12); animation: none; }

.toast { position: fixed; right: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 96; max-width: min(88vw,390px); padding: 11px 15px; border-radius: 13px; color: #fff; background: rgba(23,25,29,.95); box-shadow: 0 10px 28px rgba(0,0,0,.2); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(50%,12px); transition: opacity 170ms ease,transform 170ms ease; }
.toast.is-visible { opacity: 1; transform: translate(50%,0); }

.pdd-submit-notice {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 108;
  width: min(calc(100vw - 40px), 372px);
  box-sizing: border-box;
  padding: 15px 17px 15px 50px;
  border: 1px solid #d3aa75;
  border-radius: 14px;
  color: #5f3f2c;
  background: rgba(255, 249, 238, .97);
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 14px 36px rgba(86,54,29,.18);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.65;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 8px)) scale(.985);
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms cubic-bezier(.2,.8,.2,1), visibility 160ms ease;
}
.pdd-submit-notice::before {
  position: absolute;
  top: 50%;
  left: 16px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #c89255;
  border-radius: 50%;
  color: #fffaf2;
  background: #a96735;
  box-shadow: inset 0 1px rgba(255,255,255,.28), 0 3px 8px rgba(112,66,30,.14);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  content: "\2713";
  transform: translateY(-50%);
}
.pdd-submit-notice.is-visible { opacity: 1; transform: translate(-50%,-50%) scale(1); visibility: visible; }

.profile-service-modal {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: max(16px,env(safe-area-inset-top)) 12px max(16px,env(safe-area-inset-bottom));
}
.profile-service-backdrop { position: fixed; inset: 0; border: 0; background: rgba(55,38,29,.46); -webkit-backdrop-filter: blur(4px) saturate(.92); backdrop-filter: blur(4px) saturate(.92); }
.profile-service-dialog {
  position: relative;
  width: min(356px,calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid rgba(199,158,117,.92);
  border-radius: 18px;
  outline: 0;
  background: rgba(255,250,242,.94);
  box-shadow: inset 0 1px rgba(255,255,255,.9),0 24px 64px rgba(75,45,28,.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
  isolation: isolate;
  animation: tutorial-in 220ms cubic-bezier(.2,.8,.2,1) both;
  scrollbar-width: thin;
}
.profile-service-dialog::before { position: absolute; inset: 4px; z-index: -1; border: 1px solid rgba(255,255,255,.55); border-radius: 14px; pointer-events: none; content: ""; }
.profile-service-close { position: absolute; top: 11px; right: 11px; display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid #dcc7b1; border-radius: 10px; color: #765246; background: rgba(255,246,235,.82); font-size: 19px; line-height: 1; transition: color 150ms ease,background 150ms ease,transform 150ms cubic-bezier(.2,.8,.2,1); }
.profile-service-close:hover { color: #5b3528; background: #ffe8d7; transform: rotate(5deg); }
.profile-service-heading { display: grid; min-height: 52px; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 11px; padding-right: 40px; }
.profile-service-heading-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid; border-radius: 13px; box-shadow: inset 0 1px rgba(255,255,255,.78); }
.profile-service-heading-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.profile-service-heading-icon.is-blue { border-color: #dfa78f; color: #a94e3a; background: rgba(255,240,232,.88); }
.profile-service-heading-icon.is-mint { border-color: #b7c9a7; color: #536d49; background: rgba(239,245,232,.9); }
.profile-service-heading-icon.is-orange { border-color: #dec27c; color: #8a6218; background: rgba(255,246,223,.9); }
.profile-service-heading > div { min-width: 0; }
.profile-service-heading small { display: block; color: #9a704f; font-size: 9px; font-weight: 850; }
.profile-service-heading h2 { margin: 2px 0 0; color: #4b3529; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.profile-service-heading p { margin: 4px 0 0; color: #806658; font-size: 10px; line-height: 1.45; }
.profile-service-qr { display: grid; justify-items: center; gap: 9px; margin: 17px 0 0; }
.profile-service-qr-shell { position: relative; display: grid; width: clamp(196px,62vw,228px); aspect-ratio: 1; overflow: hidden; place-items: center; padding: 13px; border: 1px solid #d8b889; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 5px rgba(255,247,235,.78),0 9px 24px rgba(107,67,38,.12); }
.profile-service-qr-shell::after { position: absolute; inset: 5px; border: 1px solid rgba(210,173,126,.32); border-radius: 11px; pointer-events: none; content: ""; }
.profile-service-qr-shell img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.profile-service-qr-shell > span { max-width: 150px; color: var(--brand-muted); font-size: 10px; line-height: 1.5; text-align: center; }
.profile-service-qr figcaption { max-width: 260px; color: #806658; font-size: 10px; line-height: 1.5; text-align: center; }
.profile-service-text { margin-top: 16px; padding: 14px; border: 1px solid #d8c4ad; border-radius: 13px; background: rgba(255,246,235,.82); box-shadow: inset 0 1px rgba(255,255,255,.74); }
.profile-service-text > small { display: block; color: #9a704f; font-size: 9px; font-weight: 850; }
.profile-service-text > p { min-height: 52px; margin: 7px 0 0; color: #4b3529; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.profile-service-text > button,.profile-service-confirm { width: 100%; min-height: 42px; border-radius: 11px; font-size: 12px; font-weight: 900; transition: box-shadow 150ms ease,transform 150ms cubic-bezier(.2,.8,.2,1); }
.profile-service-text > button { margin-top: 12px; border: 1px solid #93350f; color: #fffaf4; background: #c04d18; box-shadow: inset 0 1px rgba(255,255,255,.22),0 4px 10px rgba(160,67,22,.2); }
.profile-service-text > button:hover { box-shadow: inset 0 1px rgba(255,255,255,.24),0 6px 13px rgba(160,67,22,.27); transform: translateY(-1px); }
.profile-service-hint { margin: 12px 0 0; padding: 8px 10px; border: 1px solid #e8b9a9; border-radius: 10px; color: #8d432e; background: rgba(255,235,225,.78); font-size: 10px; font-weight: 800; line-height: 1.5; text-align: center; }
.profile-service-confirm { margin-top: 14px; border: 1px solid #d8c4ad; color: #765246; background: rgba(255,248,240,.86); }
.profile-service-confirm:hover { background: #fff0df; transform: translateY(-1px); }
.profile-service-text > button:active,.profile-service-confirm:active { transform: scale(.98); }

.merchant-tutorial-modal,
.pdd-tutorial-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: max(18px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom));
}

.tutorial-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(30, 31, 34, 0.54);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

.tutorial-dialog {
  position: relative;
  width: 100%;
  width: min(100%,390px);
  max-width: 390px;
  max-height: calc(100vh - 36px);
  max-height: calc(100svh - 36px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 22px 18px 18px;
  border: 1px solid var(--brand-line-strong);
  border-radius: 16px;
  outline: 0;
  background: var(--brand-surface);
  box-shadow: 0 1px 2px rgba(62,45,36,.07), 0 14px 34px rgba(62,45,36,.18);
  animation: tutorial-in 220ms cubic-bezier(.2,.8,.2,1) both;
  scrollbar-width: thin;
}

.tutorial-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--brand-line);
  border-radius: 9px;
  color: var(--brand-muted);
  background: var(--brand-canvas-soft);
  font-size: 19px;
  line-height: 1;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.tutorial-close:hover { border-color: var(--brand-violet-vivid); color: var(--brand-violet); background: var(--brand-violet-soft); transform: rotate(5deg); }
.tutorial-heading { position: relative; min-height: 40px; padding: 0 42px 0 13px; text-align: left; }
.tutorial-heading::before { position: absolute; top: 2px; bottom: 2px; left: 0; width: 4px; border-radius: 4px; background: var(--brand-primary); content: ""; }
.tutorial-heading > span { display: inline-block; padding: 3px 6px; border-radius: 5px; color: var(--brand-violet); background: var(--brand-violet-soft); font-size: 9px; font-weight: 900; }
.tutorial-heading h2 { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 20px; line-height: 1.25; }

.tutorial-must-note {
  display: grid;
  margin-top: 13px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #efc3cf;
  border-left: 4px solid var(--brand-rose-vivid);
  border-radius: 10px;
  color: #6f263d;
  background: var(--brand-rose-soft);
}
.tutorial-must-note > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--brand-rose);
  box-shadow: none;
  font-size: 15px;
  font-weight: 950;
}
.tutorial-must-note strong { display: block; font-size: 12px; line-height: 1.35; }
.tutorial-must-note p { margin: 2px 0 0; color: #82475a; font-size: 9.5px; line-height: 1.5; }

.tutorial-steps {
  display: grid;
  margin: 12px 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  list-style: none;
}
.tutorial-steps li {
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: var(--brand-surface);
  box-shadow: 0 3px 9px rgba(91,55,38,.045);
}
.tutorial-steps li > b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand-violet);
  font-size: 10px;
}
.tutorial-steps li:nth-child(2) > b,
.tutorial-steps li:nth-child(4) > b { background: var(--brand-rose-vivid); }
.tutorial-steps li:nth-child(3) > b { background: var(--brand-cyan); }
.tutorial-steps li span { display: block; min-width: 0; }
.tutorial-steps li strong { display: block; color: #342a25; font-size: 10.5px; line-height: 1.35; }
.tutorial-steps li small { display: block; margin-top: 2px; color: var(--brand-muted); font-size: 8.5px; line-height: 1.4; }

.tutorial-image-frame {
  display: grid;
  margin: 12px 0 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: var(--brand-canvas-soft);
}

.tutorial-image-frame figcaption { width: 100%; padding: 7px 9px; border-bottom: 1px solid var(--brand-line); color: var(--brand-violet); background: var(--brand-violet-soft); font-size: 9px; font-weight: 900; text-align: left; }
.tutorial-image-frame img { display: block; width: auto; max-width: 100%; height: auto; max-height: 30vh; max-height: min(30svh, 250px); margin: 0 auto; object-fit: contain; }
.tutorial-dialog > .tutorial-extra-note { margin: 10px 0 0; padding: 8px 10px; border: 1px solid var(--brand-line); border-left: 4px solid var(--brand-violet); border-radius: 9px; color: var(--brand-muted); background: var(--brand-canvas-soft); font-size: 9.5px; line-height: 1.55; overflow-wrap: anywhere; }

.tutorial-confirm {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--brand-spectrum);
  box-shadow: 0 3px 8px rgba(119,57,35,.18);
  font-size: 13px;
  font-weight: 950;
  transition: filter 150ms ease, box-shadow 150ms ease, transform 150ms cubic-bezier(.2,.8,.2,1);
}

.tutorial-confirm:hover { filter: brightness(1.03) saturate(1.03); box-shadow: 0 5px 11px rgba(119,57,35,.21); transform: translateY(-1px); }
.tutorial-confirm:active { transform: scale(.985); }

.pdd-tutorial-dialog {
  max-width: 430px;
  border-color: #d8b28e;
  background: linear-gradient(155deg, #fffaf2 0%, #fffdf9 56%, #fff7ed 100%);
  box-shadow: 0 1px 2px rgba(75,48,31,.08), 0 18px 42px rgba(91,55,38,.22);
}
.pdd-tutorial-heading { padding-right: 48px; }
.pdd-tutorial-heading::before { background: linear-gradient(180deg, #b95e36, #d79a45); }
.pdd-tutorial-heading > span { color: #9a4a2d; border: 1px solid #ebc9a4; background: #fff0dd; }
.pdd-tutorial-description { margin: 9px 0 0 13px; color: #7a604f; font-size: 11px; line-height: 1.55; }
.pdd-tutorial-route {
  display: grid;
  margin: 13px 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}
.pdd-tutorial-route li {
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid #ead7c4;
  border-radius: 11px;
  background: rgba(255,255,255,.74);
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 3px 10px rgba(111,67,38,.05);
}
.pdd-tutorial-route li:nth-child(2) { border-color: #e6c9b3; background: rgba(255,247,240,.86); }
.pdd-tutorial-route li:nth-child(3) { border-color: #d5dfc7; background: rgba(247,251,242,.88); }
.pdd-tutorial-route li:nth-child(4) { border-color: #e5c987; background: rgba(255,249,229,.9); }
.pdd-tutorial-route li > b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  color: #fffaf3;
  background: #b65a34;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 3px 7px rgba(147,67,35,.18);
}
.pdd-tutorial-route li:nth-child(2) > b { background: #c87846; }
.pdd-tutorial-route li:nth-child(3) > b { background: #6f8d5e; }
.pdd-tutorial-route li:nth-child(4) > b { background: #b2892d; }
.pdd-tutorial-route li > span { min-width: 0; }
.pdd-tutorial-route strong,.pdd-tutorial-route small { display: block; overflow-wrap: anywhere; }
.pdd-tutorial-route strong { color: #49372d; font-size: 11px; line-height: 1.35; }
.pdd-tutorial-route small { margin-top: 3px; color: #8d7565; font-size: 9px; line-height: 1.35; }
.pdd-tutorial-gallery {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.pdd-tutorial-step {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e2cdb8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 13px rgba(102,62,37,.07);
}
.pdd-tutorial-step figcaption {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid #f0dfcf;
  color: #806351;
  background: #fff8ef;
  font-size: 10px;
  line-height: 1.35;
}
.pdd-tutorial-step figcaption b { color: #a95131; font-size: 10.5px; }
.pdd-tutorial-step figcaption span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdd-tutorial-step img { display: block; width: 100%; max-height: 190px; object-fit: contain; object-position: top center; background: #f6eee5; }
.pdd-tutorial-note { border-left-color: #b95e36 !important; color: #7a604f !important; background: rgba(255,248,238,.9) !important; }
.pdd-tutorial-confirm { background: linear-gradient(100deg, #b64f2e 0%, #c86c38 52%, #ad8730 100%); box-shadow: 0 5px 13px rgba(157,73,39,.22); }
.pdd-tutorial-confirm:hover { filter: brightness(1.05) saturate(1.04); box-shadow: 0 7px 16px rgba(157,73,39,.27); }

.pdd-instructions-title { display: flex; min-width: 0; align-items: center; gap: 7px; }
.pdd-tutorial-trigger {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 0 9px 0 5px;
  border: 1px solid #e0b77d;
  border-radius: 9px;
  color: #8f4b29;
  background: #fff4df;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms cubic-bezier(.2,.8,.2,1), background 150ms ease;
}
.pdd-tutorial-trigger > span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 7px; color: #fffaf3; background: #b95e36; font-size: 12px; font-weight: 950; }
.pdd-tutorial-trigger:hover { border-color: #bc6a3d; background: #fff0d5; box-shadow: 0 4px 10px rgba(149,75,39,.14); transform: translateY(-1px); }
.pdd-tutorial-trigger:active { transform: scale(.97); }
.pdd-tutorial-trigger > span { animation: pdd-tutorial-pulse 2.8s ease-in-out infinite; }

@keyframes pdd-tutorial-pulse {
  0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(185,94,54,0); }
  82% { box-shadow: 0 0 0 4px rgba(185,94,54,.12); }
}

@media (prefers-reduced-motion: reduce) {
  .pdd-tutorial-trigger > span { animation: none; }
}

.miniapp-sheet { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; }
.sheet-backdrop { position: absolute; inset: 0; border: 0; background: rgba(23,25,29,.46); }
.sheet-panel { position: relative; width: min(100%,540px); margin: 0 auto; padding: 12px 22px max(24px,env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff; text-align: center; animation: sheet-in 220ms cubic-bezier(.2,.8,.2,1); }
.sheet-handle { display: block; width: 44px; height: 4px; margin: 0 auto 16px; border-radius: 4px; background: #d8dade; }
.sheet-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 10px; place-items: center; border-radius: 15px; background: var(--yellow); font-weight: 950; }
.sheet-panel h2 { margin: 0; font-size: 20px; }
.sheet-panel > p { margin: 8px auto 15px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.sheet-code { margin: 0 0 14px; padding: 13px 15px; border: 1px solid #dfe3e8; border-radius: 12px; background: #f7f8fa; text-align: left; }
.sheet-code span { display: block; margin-bottom: 5px; color: #8b9097; font-size: 10px; }
.sheet-code code { display: block; color: #25282d; font: 600 12px/1.65 Consolas,monospace; overflow-wrap: anywhere; user-select: all; }
.sheet-icon.is-copy-success { color: #fff; background: #1ba16a; animation: copy-success 440ms cubic-bezier(.2,.9,.25,1.25); }
.sheet-panel dl { margin: 0; text-align: left; }
.sheet-panel dl div { padding: 10px 0; border-top: 1px solid var(--line); }
.sheet-panel dt { color: #8b9097; font-size: 10px; }
.sheet-panel dd { margin: 4px 0 0; overflow-wrap: anywhere; font: 11px/1.55 Consolas,monospace; }
.sheet-confirm { width: 100%; min-height: 44px; margin-top: 14px; border: 0; border-radius: 11px; background: var(--yellow); font-weight: 900; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }

body[data-page="home"] { background: #e4d7c7; }
body[data-page="home"] .app-shell { background: var(--brand-canvas); }
body[data-page="home"] .page-content { display: block; padding: 0; background: var(--brand-canvas); }

.pdd-portal {
  --pdd-coral: #9a5b32;
  --pdd-coral-dark: #784321;
  --pdd-amber: #b77918;
  --pdd-cream: #f5ebdd;
  --pdd-paper: #fffaf2;
  --pdd-ink: #30281f;
  --pdd-muted: #675b4e;
  --pdd-line: #d8c4ad;
  --pdd-mint: #4f6a55;
  --pdd-action: #c04d18;
  --pdd-action-line: #93350f;
  min-height: 100%;
  color: var(--pdd-ink);
  background: var(--pdd-cream);
}

.pdd-topbar {
  position: relative;
  z-index: 12;
  display: grid;
  min-height: 168px;
  align-content: center;
  justify-items: center;
  gap: 13px;
  margin: 12px 14px 0;
  padding: 16px 18px;
  border: 1px solid #cfb28f;
  border-radius: 14px;
  color: var(--brand-ink);
  background: rgba(255,250,242,.64);
  box-shadow: inset 0 1px rgba(255,255,255,.82),inset 0 -22px 34px rgba(195,137,78,.08),0 7px 18px rgba(76,56,38,.07);
  text-align: center;
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  backdrop-filter: blur(14px) saturate(1.08);
}

.pdd-brand { display: flex; width: 100%; min-width: 0; box-sizing: border-box; align-items: center; justify-content: center; gap: 12px; padding-inline: 108px; flex-direction: row; text-align: left; }
.pdd-brand-avatar { display: grid; width: 58px; height: 58px; overflow: hidden; flex: 0 0 58px; place-items: center; border: 1px solid #cba77f; border-radius: 50%; background: transparent; box-shadow: 0 4px 10px rgba(76,56,38,.09); }
.pdd-brand-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: contain; transform: scale(1.04); }
.pdd-brand-copy { display: grid; width: auto; min-width: 0; justify-items: start; text-align: left; }
.pdd-brand-copy small { display: block; margin-bottom: 2px; overflow: hidden; color: #806044; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.pdd-brand-copy h1 { margin: 0; overflow: hidden; color: #765038; font-size: 20px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.pdd-brand-copy p { max-width: 420px; margin: 4px 0 0; overflow: hidden; color: var(--brand-muted); font-size: 10.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.pdd-top-actions { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; }
.pdd-live-badge { display: inline-flex; min-height: 31px; align-items: center; gap: 4px; padding: 0 9px; border: 1px solid #d9b75f; border-radius: 999px; color: #664817; background: #fff0c9; font-size: 9.5px; font-weight: 800; white-space: nowrap; }
.pdd-live-badge i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-success); box-shadow: 0 0 0 3px rgba(79,106,85,.13); }
.pdd-live-badge i::after { position: absolute; inset: -4px; border: 1px solid rgba(79,106,85,.36); border-radius: 50%; animation: pdd-live-pulse 2.4s ease-out infinite; content: ""; }
.pdd-live-badge b { font-size: 11px; }
.pdd-share-button { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; padding: 0; border: 1px solid #d4a85f; border-radius: 50%; color: #77441f; background: #fff0d2; box-shadow: 0 3px 8px rgba(103,65,31,.09); transition: color 160ms ease,background 160ms ease,box-shadow 160ms ease,transform 160ms cubic-bezier(.2,.8,.2,1); }
.pdd-share-button:hover { color: #fff; background: var(--brand-primary); box-shadow: 0 5px 10px rgba(103,55,29,.16); transform: translateY(-1px); }
.pdd-share-button:active { transform: scale(.95); }
.pdd-share-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.pdd-content { display: grid; gap: 12px; padding: 12px 14px 18px; }
.pdd-service-strip { display: grid; width: min(100%,276px); overflow: hidden; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; border: 1px solid #cdb18f; border-radius: 12px; background: rgba(255,253,248,.82); box-shadow: inset 0 1px rgba(255,255,255,.9),0 3px 9px rgba(76,56,38,.08); scroll-margin-top: 104px; }
.pdd-service-button { position: relative; display: grid; min-width: 0; min-height: 44px; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 7px; padding: 5px 8px; border: 0; border-radius: 0; color: var(--pdd-ink); background: transparent; box-shadow: none; text-align: left; transition: background 160ms ease,transform 160ms cubic-bezier(.2,.8,.2,1); }
.pdd-service-button + .pdd-service-button::before { position: absolute; top: 9px; bottom: 9px; left: 0; width: 1px; background: #dfcdb8; content: ""; }
.pdd-service-button:hover { background: rgba(245,230,211,.62); transform: translateY(-1px); }
.pdd-service-button:active { transform: scale(.985); }
.pdd-service-button.is-unavailable { opacity: .64; }
.pdd-service-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #c9ab86; border-radius: 9px; color: #8f4f2f; background: #fff2df; }
.pdd-service-button.is-blue .pdd-service-icon { color: #315f79; background: #edf6f5; }
.pdd-service-button.is-mint .pdd-service-icon { color: #4f6a55; background: #eff5e8; }
.pdd-service-button.is-orange .pdd-service-icon { color: #9a552d; background: #fff0e3; }
.pdd-service-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.pdd-service-button > span:nth-child(2) { min-width: 0; }
.pdd-service-button strong,.pdd-service-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdd-service-button strong { font-size: 11px; }
.pdd-service-button small { margin-top: 1px; color: var(--pdd-muted); font-size: 8.5px; }
.pdd-service-button em { display: none; }

.pdd-stats { display: grid; min-height: 74px; overflow: hidden; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--pdd-line); border-radius: 14px; background: var(--pdd-paper); box-shadow: var(--brand-shadow); }
.pdd-stats > div { position: relative; display: grid; min-width: 0; place-items: center; align-content: center; gap: 4px; padding: 8px 4px; }
.pdd-stats > div + div::before { position: absolute; top: 16px; bottom: 16px; left: 0; width: 1px; background: #e9d7c4; content: ""; }
.pdd-stats strong { max-width: 100%; overflow: hidden; color: var(--pdd-action); font-size: 21px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.pdd-stats > div:nth-child(2) strong { color: #6b625d; }
.pdd-stats > div:nth-child(3) strong { color: var(--pdd-mint); }
.pdd-stats span { color: var(--pdd-muted); font-size: 10px; font-weight: 750; }

.pdd-instructions,.pdd-submit-panel,.pdd-hall { border: 1px solid var(--pdd-line); border-radius: 14px; background: var(--pdd-paper); box-shadow: var(--brand-shadow); }
.pdd-instructions { padding: 12px; }
.pdd-instructions > header { display: flex; align-items: center; gap: 7px; }
.pdd-instructions > header > span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #dfa78f; border-radius: 8px; color: #a94e3a; background: #fff0e8; }
.pdd-instructions > header svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.pdd-instructions h2 { margin: 0; font-size: 13px; }
.pdd-instructions ol { display: grid; margin: 11px 0 0; padding: 0; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; }
.pdd-instructions li { display: grid; min-width: 0; grid-template-columns: 22px minmax(0,1fr); align-items: start; gap: 6px; padding: 0 9px; }
.pdd-instructions li + li { border-left: 1px solid #eee2d8; }
.pdd-instructions li b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: var(--brand-primary); font-size: 9px; }
.pdd-instructions li > span { min-width: 0; }
.pdd-instructions li strong,.pdd-instructions li small { display: block; }
.pdd-instructions li strong { color: #423832; font-size: 11.5px; line-height: 1.3; }
.pdd-instructions li small { margin-top: 2px; color: var(--pdd-muted); font-size: 9.5px; line-height: 1.35; }

.pdd-submit-panel { padding: 13px; scroll-margin-top: 104px; }
.pdd-section-heading,.pdd-hall-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pdd-section-heading { justify-content: flex-start; }
.pdd-section-heading > span,.pdd-hall-heading > div > span { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 1px solid #dfa78f; border-radius: 10px; color: #a94e3a; background: #fff0e8; }
.pdd-section-heading svg,.pdd-hall-heading svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.pdd-section-heading > div { min-width: 0; }
.pdd-section-heading h2,.pdd-hall-heading h2 { margin: 0; color: #3d332e; font-size: 14px; }
.pdd-section-heading p { margin: 3px 0 0; color: var(--pdd-muted); font-size: 10px; }
.pdd-submit-form { display: grid; min-width: 0; margin-top: 11px; grid-template-columns: minmax(0,1fr) auto auto; gap: 7px; }
.pdd-code-field { min-width: 0; }
.pdd-code-field input { width: 100%; min-width: 0; height: 44px; padding: 0 11px; border: 1px solid var(--brand-control-line); border-radius: 10px; outline: none; color: #493a33; background: var(--brand-surface); font: 800 16px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: 0; text-align: center; transition: border-color 150ms ease,box-shadow 150ms ease,background 150ms ease; }
.pdd-code-field input::placeholder { color: #ac9d95; font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1; }
.pdd-code-field input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(154,91,50,.15); }
.pdd-code-field input.is-valid { border-color: #57a991; background: #f8fffb; }
.pdd-ocr-button,.pdd-submit-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 5px; padding: 0 12px; border-radius: 10px; font-size: 10.5px; font-weight: 900; white-space: nowrap; transition: box-shadow 150ms ease,transform 150ms cubic-bezier(.2,.8,.2,1); }
.pdd-ocr-button { border: 1px solid #d4a85f; color: #77441f; background: #fff0d2; }
.pdd-ocr-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.pdd-submit-button { min-width: 66px; border: 1px solid var(--pdd-action-line); color: #fffaf4; background: var(--pdd-action); box-shadow: inset 0 1px rgba(255,255,255,.2),0 3px 8px rgba(160,67,22,.2); }
.pdd-ocr-button:hover,.pdd-submit-button:hover { box-shadow: 0 5px 10px rgba(145,67,41,.15); transform: translateY(-1px); }
.pdd-ocr-button:active,.pdd-submit-button:active { transform: scale(.97); }
.pdd-ocr-button:disabled,.pdd-submit-button:disabled { cursor: wait; opacity: .62; transform: none; }
.pdd-ocr-button.is-loading svg { animation: spin 900ms linear infinite; }
.pdd-submit-note { margin: 8px 0 0; color: #806a5f; font-size: 9.5px; line-height: 1.45; text-align: center; }

.pdd-hall { padding: 13px; scroll-margin-top: 104px; }
.pdd-hall-heading > div { display: flex; min-width: 0; align-items: center; gap: 8px; }
.pdd-hall-heading > button { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid var(--pdd-line); border-radius: 10px; color: var(--brand-primary); background: var(--pdd-paper); transition: color 150ms ease,background 150ms ease,transform 150ms ease; }
.pdd-hall-heading > button:hover { color: var(--brand-primary-hover); background: var(--brand-primary-soft); transform: rotate(10deg); }
.pdd-filters { display: flex; min-width: 0; gap: 6px; margin-top: 11px; }
.pdd-filters button { display: inline-flex; min-height: 32px; align-items: center; gap: 5px; padding: 0 11px; border: 1px solid #ddcfc5; border-radius: 999px; color: #6f625b; background: #fff; font-size: 10px; font-weight: 800; }
.pdd-filters button b { min-width: 20px; padding: 2px 5px; border-radius: 999px; color: #80736b; background: #f3eee9; font-size: 8px; text-align: center; }
.pdd-filters button.is-active { border-color: #cba77f; color: var(--brand-primary-hover); background: var(--brand-primary-soft); }
.pdd-filters button.is-active b { color: #fff; background: var(--brand-primary); }
.pdd-code-list { display: grid; gap: 7px; margin-top: 10px; }
.pdd-code-item { display: grid; min-width: 0; min-height: 61px; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid var(--brand-line); border-radius: 10px; background: var(--brand-surface); transition: border-color 150ms ease,box-shadow 150ms ease,transform 150ms cubic-bezier(.2,.8,.2,1); animation: pdd-row-in 240ms cubic-bezier(.2,.8,.2,1) both; }
.pdd-code-item.is-available { border-color: #cba77f; box-shadow: var(--brand-shadow); }
.pdd-code-item.is-available:hover { border-color: var(--brand-primary); box-shadow: 0 5px 12px rgba(76,56,38,.11); transform: translateY(-1px); }
.pdd-code-item.is-used { background: #fbf7f2; }
.pdd-code-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: #a94e3a; background: #fff0e8; }
.pdd-code-item.is-used .pdd-code-mark { color: #9d918a; background: #f1eeeb; }
.pdd-code-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.pdd-code-copy { min-width: 0; }
.pdd-code-copy strong { display: block; overflow: hidden; color: #3d332e; font: 900 14px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; text-overflow: ellipsis; white-space: nowrap; }
.pdd-code-item.is-used .pdd-code-copy strong { color: #8f847e; }
.pdd-code-copy small { display: block; margin-top: 4px; overflow: hidden; color: #82736b; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.pdd-code-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.pdd-code-actions button { display: inline-flex; min-width: 52px; min-height: 34px; align-items: center; justify-content: center; gap: 3px; padding: 0 8px; border: 1px solid var(--pdd-line); border-radius: 10px; color: var(--brand-muted); background: var(--brand-canvas-soft); font-size: 10px; font-weight: 900; transition: box-shadow 150ms ease,transform 150ms cubic-bezier(.2,.8,.2,1); }
.pdd-code-actions button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.pdd-code-actions button.is-primary { min-width: 58px; border-color: var(--pdd-action-line); color: #fffaf4; background: var(--pdd-action); box-shadow: inset 0 1px rgba(255,255,255,.18); }
.pdd-code-actions button:hover { box-shadow: 0 4px 8px rgba(116,69,48,.13); transform: translateY(-1px); }
.pdd-code-actions button:active { transform: scale(.96); }
.pdd-code-actions button:disabled { cursor: wait; opacity: .55; transform: none; }
.pdd-used-label { min-width: 58px; padding: 7px 8px; border: 1px solid #e1dbd6; border-radius: 7px; color: #9c918b; background: #f5f2ef; font-size: 9px; font-weight: 800; text-align: center; }
.pdd-source-note { margin: 10px 0 0; color: #8e8078; font-size: 9px; text-align: center; }
.pdd-hall-skeleton { display: grid; gap: 7px; margin-top: 10px; }
.pdd-hall-skeleton i { height: 61px; overflow: hidden; border: 1px solid #eadfd6; border-radius: 8px; background: #f4eee9; }
.pdd-hall-skeleton i::after { display: block; width: 38%; height: 100%; background: linear-gradient(90deg,transparent,rgba(255,255,255,.74),transparent); animation: pdd-skeleton 1.2s ease-in-out infinite; content: ""; }
.pdd-hall-error,.pdd-hall-empty { display: grid; min-height: 150px; justify-items: center; align-content: center; gap: 6px; margin-top: 10px; padding: 16px; border: 1px dashed var(--pdd-line); border-radius: 12px; color: var(--pdd-muted); background: var(--brand-canvas-soft); text-align: center; }
.pdd-hall-error strong,.pdd-hall-empty strong { color: #4c4039; font-size: 12px; }
.pdd-hall-error p,.pdd-hall-empty p { max-width: 280px; margin: 0; font-size: 9px; line-height: 1.45; }
.pdd-hall-empty > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #c75a3f; background: #fff0e9; }
.pdd-hall-empty svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pdd-hall-error button { display: inline-flex; min-height: 34px; align-items: center; gap: 5px; margin-top: 3px; padding: 0 12px; border: 1px solid #e0a790; border-radius: 7px; color: #b13c26; background: #fff0e9; font-size: 10px; font-weight: 850; }
.pdd-hall-error button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

body.is-pdd-dragging::after { position: fixed; inset: 12px; z-index: 9999; display: grid; place-items: center; border: 2px dashed #9a5b32; border-radius: 14px; color: #784321; background: rgba(245,235,221,.96); font-size: 16px; font-weight: 900; content: "松开后识别拼多多互助截图"; pointer-events: none; }

@keyframes pdd-row-in { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pdd-skeleton { from { transform: translateX(-130%); } to { transform: translateX(360%); } }
@keyframes pdd-live-pulse { 0%,45% { opacity: .7; transform: scale(.7); } 80%,100% { opacity: 0; transform: scale(1.45); } }

@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes page-enter { from { opacity: .25; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes copy-success { 0% { opacity: .25; transform: scale(.7) rotate(-8deg); } 65% { transform: scale(1.09) rotate(2deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes tutorial-in { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loading-sheen { to { background-position: -220% 0; } }
@keyframes merchant-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 212, 0, 0.18); transform: scale(0.85); } }
@keyframes merchant-scan { 0% { transform: scaleX(0); } 55% { transform: scaleX(0.78); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes merchant-result-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes merchant-favorite-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes merchant-favorite-spin { to { transform: rotate(360deg); } }
@keyframes featured-border-tone {
  0%,18%,100% { border-color: #f0a05a; }
  36%,52% { border-color: #df7433; }
  70%,86% { border-color: #c69732; }
}
@keyframes featured-hot-pulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(215,106,47,.14); }
  50% { box-shadow: 0 0 0 4px rgba(215,106,47,.05); }
}
@keyframes featured-sheen {
  0%,70% { opacity: 0; transform: translate3d(-180%,0,0) skewX(-18deg); }
  76% { opacity: .18; }
  90%,100% { opacity: 0; transform: translate3d(900%,0,0) skewX(-18deg); }
}
@keyframes spectrum-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

@media (min-width: 561px) and (max-width: 640px) {
  .home-hero { min-height: 146px; grid-template-columns: 1fr; gap: 0; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .hero-moment { min-height: 44px; margin-top: 3px; }
  .hero-suggestions {
    display: flex;
    overflow: visible;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 1px;
  }
  .hero-suggestions span { min-width: 0; flex: 0 0 auto; justify-content: center; padding: 3px 5px; overflow: hidden; }
  .hero-suggestions b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 560px) {
  .pdd-topbar { min-height: 154px; gap: 11px; margin: 10px 10px 0; padding: 48px 14px 14px; }
  .pdd-brand { gap: 10px; padding-inline: 0; }
  .pdd-brand-avatar { width: 50px; height: 50px; flex-basis: 50px; }
  .pdd-brand-copy h1 { font-size: 17px; }
  .pdd-brand-copy p { max-width: 280px; font-size: 9.5px; }
  .pdd-top-actions { top: 12px; right: 12px; }
  .pdd-live-badge { min-height: 28px; padding-inline: 7px; font-size: 8.5px; }
  .pdd-share-button { width: 31px; height: 31px; flex-basis: 31px; }
  .pdd-content { gap: 9px; padding: 9px 10px 13px; }
  .pdd-service-strip { width: min(100%,264px); scroll-margin-top: 92px; }
  .pdd-service-button { min-height: 42px; grid-template-columns: 26px minmax(0,1fr); gap: 6px; padding: 5px 7px; }
  .pdd-service-icon { width: 26px; height: 26px; }
  .pdd-service-icon svg { width: 15px; height: 15px; }
  .pdd-service-button strong { font-size: 11px; }
  .pdd-service-button small { font-size: 8.5px; }
  .pdd-stats { min-height: 66px; }
  .pdd-stats strong { font-size: 18px; }
  .pdd-stats span { font-size: 8.5px; }
  .pdd-instructions { padding: 10px 8px; }
  .pdd-instructions ol { margin-top: 9px; }
  .pdd-instructions li { grid-template-columns: 20px minmax(0,1fr); gap: 5px; padding: 0 5px; }
  .pdd-instructions li b { width: 20px; height: 20px; font-size: 8px; }
  .pdd-instructions li strong { font-size: 10.5px; }
  .pdd-instructions li small { font-size: 8.5px; }
  .pdd-submit-panel,.pdd-hall { padding: 11px 10px; scroll-margin-top: 92px; }
  .pdd-section-heading > span,.pdd-hall-heading > div > span { width: 30px; height: 30px; flex-basis: 30px; }
  .pdd-section-heading h2,.pdd-hall-heading h2 { font-size: 13px; }
  .pdd-submit-form { gap: 5px; margin-top: 9px; }
  .pdd-code-field input { height: 42px; padding-inline: 7px; font-size: 14px; }
  .pdd-code-field input::placeholder { font-size: 10px; }
  .pdd-ocr-button,.pdd-submit-button { min-height: 42px; padding-inline: 9px; font-size: 10px; }
  .pdd-submit-button { min-width: 58px; }
  .pdd-code-item { min-height: 58px; grid-template-columns: 33px minmax(0,1fr) auto; gap: 7px; padding: 7px; }
  .pdd-code-mark { width: 33px; height: 33px; }
  .pdd-code-mark svg { width: 18px; height: 18px; }
  .pdd-code-copy strong { font-size: 12.5px; }
  .pdd-code-copy small { font-size: 8.5px; }
  .pdd-code-actions { gap: 4px; }
  .pdd-code-actions button { min-width: 47px; min-height: 32px; padding-inline: 6px; font-size: 9.5px; }
  .pdd-code-actions button.is-primary { min-width: 52px; }
  .pdd-used-label { min-width: 52px; font-size: 8.5px; }
  .app-header { min-height: 64px; gap: 10px; padding: 7px 10px; }
  .brand { gap: 8px; }
  .brand-logo { width: 36px; height: 36px; flex-basis: 36px; border-radius: 12px; }
  .brand-logo img { border-radius: 9px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 8px; }
  .admin-entry { display: none; }
  .share-button { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; }
  .share-button svg { width: 15px; }
  .channel-switch { padding: 2px; border-radius: 11px; }
  .channel-button { min-height: 28px; padding: 0 7px; border-radius: 8px; font-size: 9px; }
  .page-content { gap: 7px; padding: 8px 10px; }
  .portal-home { gap: 11px; }
  .portal-welcome { min-height: 142px; gap: 7px; padding: 12px 14px; border-radius: 12px; }
  .portal-avatar { width: 54px; height: 54px; }
  .portal-name-row { gap: 7px; }
  .portal-name-row h1 { font-size: 20px; }
  .portal-name-row > span { padding: 3px 6px; font-size: 8.5px; }
  .portal-welcome-copy p { margin-top: 5px; font-size: 11.5px; }
  .portal-welcome-copy > small { margin-top: 3px; font-size: 9.5px; }
  .portal-section-heading { gap: 7px; margin-bottom: 6px; }
  .portal-section-heading > h2 { font-size: 13px; }
  .portal-section-heading > span { font-size: 10px; }
  .portal-offer-grid { gap: 7px; }
  .portal-offer-card { min-height: 124px; grid-template: auto minmax(40px,auto) 31px / 38px minmax(0,1fr); gap: 6px 7px; padding: 9px; border-radius: 10px; }
  .portal-offer-icon { width: 38px; height: 38px; }
  .portal-offer-icon svg { width: 25px; height: 25px; }
  .portal-offer-copy strong { font-size: 13px; }
  .portal-offer-copy small { font-size: 10px; }
  .portal-offer-action { min-height: 31px; border-radius: 8px; font-size: 11px; }
  .portal-offer-grid.is-single .portal-offer-card { min-height: 72px; grid-template: auto 31px / 38px minmax(0,1fr) 86px; }
  .portal-saving-steps { min-height: 90px; padding: 12px 5px 10px; }
  .portal-saving-steps::before { top: 25px; }
  .portal-saving-steps li > span { width: 26px; height: 26px; }
  .portal-saving-steps strong { font-size: 11px; }
  .portal-saving-steps small { font-size: 9px; }
  .portal-trust-note { font-size: 9.5px; }
  .home-hero { min-height: 134px; grid-template-columns: 1fr; gap: 0; padding: 3px 10px; border-radius: 10px; }
  .home-hero::before { inset-block: 11px; width: 3px; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hero-topline { gap: 10px; transform: translateX(6px); }
  .hero-identity { gap: 12px; padding: 0; }
  .hero-identity-copy { transform: translateX(9px); }
  .hero-avatar-frame { width: 46px; height: 46px; flex-basis: 46px; border-radius: 50%; }
  .hero-avatar-frame img { border-radius: 50%; }
  .hero-identity-copy > strong { font-size: 24px; }
  .hero-brand-badge { min-height: 0; padding: 0; font-size: 8.5px; }
  .hero-eyebrow { margin-top: 0; padding: 0; font-size: 9.5px; }
  .hero-share-button { position: relative; inset: auto; min-width: 70px; min-height: 32px; gap: 5px; padding-inline: 7px; border-radius: 9px; font-size: 9px; translate: 8px 0; }
  .hero-share-button svg { width: 14px; height: 14px; flex-basis: 14px; }
  .hero-greeting { gap: 6px; padding: 8px 10px; border-radius: 12px; }
  .hero-moment { min-height: 32px; margin-top: 0; gap: 3px 7px; padding: 0; }
  .hero-moment-mark { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; font-size: 9.5px; }
  .hero-moment strong { align-self: center; font-size: 12px; line-height: 1.15; }
  .hero-moment small { display: none; }
  .hero-suggestions {
    display: flex;
    width: auto;
    max-width: 100%;
    overflow: visible;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
    padding: 1px 0;
  }
  .hero-suggestions span { min-width: 0; min-height: 20px; flex: 0 0 auto; justify-content: center; gap: 2px; padding: 2px 4px; overflow: hidden; }
  .hero-suggestions i { width: 16px; height: 16px; flex: 0 0 16px; }
  .hero-suggestions i svg { width: 12px; height: 12px; }
  .hero-suggestions b { min-width: 0; overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; }
  .merchant-coupon-group { gap: 9px; }
  .merchant-coupon-tool { --merchant-input-height: 132px; padding: 10px; border-radius: 10px; }
  .merchant-tool-heading { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-bottom: 7px; }
  .merchant-heading-actions { gap: 10px; }
  .merchant-titleline { gap: 5px; }
  .merchant-stack-badge { min-height: 22px; padding-inline: 4px 6px; font-size: 8.5px; }
  .merchant-stack-badge svg { width: 13px; height: 13px; flex-basis: 13px; }
  .merchant-eyebrow { gap: 6px; padding: 3px 8px 3px 4px; font-size: 13px; }
  .merchant-eyebrow i { width: 20px; height: 20px; flex-basis: 20px; }
  .merchant-tool-heading h2 { margin: 3px 0 2px; font-size: 14px; }
  .merchant-query-form { gap: 5px; }
  .merchant-field-heading { align-items: center; }
  .merchant-field-heading > label { font-size: 11px; }
  .merchant-tutorial-trigger { min-height: 36px; padding: 0 8px 0 5px; border-radius: 8px; font-size: 9.5px; }
  .merchant-tutorial-trigger > span { width: 20px; height: 20px; border-radius: 6px; font-size: 10px; }
  .merchant-input-shell { border-radius: 10px; }
  .merchant-input-shell textarea { padding: 12px 10px; font-size: 16px; line-height: 1.5; }
  .pdd-code-field input { font-size: 16px; }
  .merchant-detect { min-height: 17px; gap: 6px; font-size: 8.5px; }
  .merchant-query-actions { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 6px; }
  .merchant-utility-button { min-height: 42px; gap: 4px; padding: 0 7px; border-radius: 8px; font-size: 10.5px; }
  .merchant-utility-button svg { width: 14px; height: 14px; flex-basis: 14px; }
  .merchant-submit-button { min-height: 42px; padding-inline: 7px; border-radius: 8px; font-size: 11.5px; }
  .merchant-result-main { grid-template-columns: 44px minmax(0, 1fr); padding: 12px; }
  .merchant-shop-mark { width: 44px; height: 44px; }
  .merchant-amount { grid-column: 2; min-width: 0; text-align: left; }
  .merchant-amount small,
  .merchant-amount strong { display: inline; }
  .merchant-amount strong { margin: 0 0 0 5px; font-size: 16px; }
  .merchant-claim-actions { grid-template-columns: 1fr; }
  .merchant-favorites-panel { padding: 17px 14px; }
  .merchant-favorite-item { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .merchant-favorite-actions { grid-column: 2; }
  .merchant-favorite-actions > .merchant-favorite-claim { flex: 1; }
  .section-heading { min-height: 30px; gap: 9px; padding: 0 2px; }
  .section-heading p { max-width: none; font-size: 10.5px; }
  .platform-button { min-height: 74px; gap: 5px; flex-direction: column; }
  .platform-button > span:last-child { text-align: center; }
  .platform-button small { display: none; }
  .deal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .deal-card { min-height: 62px; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "sequence content"; gap: 5px 7px; padding: 7px 8px; }
  .deal-sequence { width: 24px; height: 24px; font-size: 11px; }
  .deal-card.is-featured-placement { min-height: 86px; grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 8px 10px 8px 13px; }
  .featured-deal-mark { top: 8px; left: 13px; }
  .featured-hot-mark { top: 8px; right: 13px; }
  .deal-card.is-featured-placement .deal-content { padding-top: 6px; }
  .deal-card.is-featured-placement .deal-short-title { font-size: 10.5px; }
  .profile-page { gap: 12px; }
  .profile-identity { min-height: 112px; grid-template-columns: 72px fit-content(240px); gap: 14px; padding: 15px; }
  .profile-avatar-frame { width: 72px; height: 72px; }
  .profile-name-row h1 { font-size: 21px; }
  .profile-identity-copy p { font-size: 10px; }
  .profile-stat { min-height: 68px; }
  .profile-stat b { font-size: 22px; }
  .profile-section-heading h2 { font-size: 19px; }
  .profile-favorites-empty { min-height: 164px; }
  .profile-menu button { min-height: 56px; }
  .bottom-nav { width: calc(100% - 20px); height: var(--nav-mobile-height); min-height: var(--nav-mobile-height); max-height: var(--nav-mobile-height); margin-bottom: max(6px, env(safe-area-inset-bottom)); gap: 4px; padding: 4px; border-radius: 14px; }
  .bottom-nav-button { height: 48px; min-height: 0; border-radius: 10px; font-size: 11px; }
  .bottom-icon { width: 30px; height: 30px; border-radius: 9px; font-size: 9px; }
  .bottom-icon svg { width: 16px; height: 16px; }
  .bottom-nav-button[data-platform="home"],
  .bottom-nav-button[data-platform="meituan"],
  .bottom-nav-button[data-platform="profile"] { gap: 1px; }
  .bottom-nav-button[data-platform="home"] .bottom-icon,
  .bottom-nav-button[data-platform="meituan"] .bottom-icon,
  .bottom-nav-button[data-platform="profile"] .bottom-icon { width: 34px; height: 34px; }
  .tutorial-dialog { padding: 18px 14px 14px; border-radius: 16px; }
  .pdd-tutorial-dialog { max-height: calc(100svh - 24px); }
  .pdd-tutorial-description { margin-left: 11px; font-size: 10.5px; }
  .pdd-tutorial-route { gap: 6px; }
  .pdd-tutorial-route li { grid-template-columns: 24px minmax(0,1fr); gap: 6px; padding: 7px; }
  .pdd-tutorial-route li > b { width: 24px; height: 24px; font-size: 10px; }
  .pdd-tutorial-route strong { font-size: 10.5px; }
  .pdd-tutorial-route small { font-size: 8.5px; }
  .pdd-tutorial-step img { max-height: 170px; }
  .tutorial-close { top: 10px; right: 10px; }
}

@media (max-width: 350px) {
  .pdd-topbar { min-height: 138px; gap: 9px; margin: 8px 8px 0; padding: 43px 10px 10px; }
  .pdd-brand { gap: 8px; padding-inline: 0; }
  .pdd-brand-avatar { width: 46px; height: 46px; flex-basis: 46px; }
  .pdd-brand-copy small { font-size: 8.5px; }
  .pdd-brand-copy h1 { font-size: 15px; }
  .pdd-brand-copy p { max-width: 260px; font-size: 8.5px; }
  .pdd-top-actions { top: 9px; right: 9px; gap: 4px; }
  .pdd-live-badge { min-height: 26px; padding-inline: 5px; font-size: 8px; }
  .pdd-live-badge i { width: 6px; height: 6px; }
  .pdd-share-button { width: 29px; height: 29px; flex-basis: 29px; }
  .pdd-submit-notice { width: calc(100vw - 28px); padding: 13px 14px 13px 45px; font-size: 11px; }
  .pdd-submit-notice::before { left: 13px; width: 22px; height: 22px; }
  .pdd-content { padding-inline: 8px; }
  .pdd-service-strip { width: min(100%,250px); }
  .pdd-service-button { min-height: 40px; grid-template-columns: 25px minmax(0,1fr); gap: 5px; padding: 4px 6px; }
  .pdd-service-icon { width: 25px; height: 25px; }
  .pdd-service-button small { display: none; }
  .pdd-instructions li { grid-template-columns: 18px minmax(0,1fr); gap: 4px; padding-inline: 3px; }
  .pdd-instructions li b { width: 18px; height: 18px; }
  .pdd-instructions li strong { font-size: 9.5px; }
  .pdd-instructions li small { font-size: 8px; }
  .pdd-tutorial-trigger { min-height: 28px; gap: 3px; padding-inline: 4px 6px; font-size: 9px; }
  .pdd-tutorial-trigger > span { width: 18px; height: 18px; font-size: 11px; }
  .pdd-tutorial-dialog { padding: 17px 11px 12px; }
  .pdd-tutorial-description { margin-top: 7px; margin-left: 10px; font-size: 10px; }
  .pdd-tutorial-route { grid-template-columns: 1fr; gap: 5px; margin-top: 10px; }
  .pdd-tutorial-route li { min-height: 46px; grid-template-columns: 23px minmax(0,1fr); padding: 6px 7px; }
  .pdd-tutorial-route li > b { width: 23px; height: 23px; }
  .pdd-tutorial-route small { font-size: 8.5px; }
  .pdd-tutorial-gallery { gap: 8px; margin-top: 10px; }
  .pdd-tutorial-step figcaption { min-height: 28px; padding: 5px 8px; font-size: 9px; }
  .pdd-tutorial-step figcaption b { font-size: 9.5px; }
  .pdd-tutorial-step img { max-height: 150px; }
  .pdd-tutorial-note { font-size: 9px !important; }
  .pdd-tutorial-confirm { min-height: 42px; margin-top: 11px; font-size: 12px; }
  .pdd-ocr-button { width: 40px; padding: 0; }
  .pdd-ocr-button span { display: none; }
  .pdd-code-field input::placeholder { font-size: 9px; }
  .pdd-code-actions button:not(.is-primary) { min-width: 34px; padding: 0; }
  .pdd-code-actions button:not(.is-primary) span { display: none; }
  .pdd-code-actions button.is-primary { min-width: 50px; }
  .brand small { display: none; }
  .app-header { min-height: 60px; padding-inline: 8px; }
  .brand-logo { width: 34px; height: 34px; flex-basis: 34px; }
  .channel-button { min-height: 27px; padding: 0 6px; }
  .page-content { padding: 7px 8px; }
  .portal-welcome { min-height: 132px; gap: 6px; padding: 10px 12px; }
  .portal-avatar { width: 48px; height: 48px; }
  .portal-name-row { gap: 5px; }
  .portal-name-row h1 { font-size: 18px; }
  .portal-name-row > span { padding-inline: 5px; font-size: 8px; }
  .portal-welcome-copy p { font-size: 10.5px; }
  .portal-welcome-copy > small { font-size: 9px; }
  .portal-section-heading > h2 { font-size: 12.5px; }
  .portal-section-heading > span { font-size: 9.5px; }
  .portal-offer-grid { gap: 6px; }
  .portal-offer-card { min-height: 118px; grid-template: auto minmax(37px,auto) 30px / 34px minmax(0,1fr); gap: 5px 6px; padding: 8px; }
  .portal-offer-topline small { padding: 3px 5px; font-size: 8.5px; }
  .portal-offer-topline i { display: none; }
  .portal-offer-icon { width: 34px; height: 34px; }
  .portal-offer-icon svg { width: 23px; height: 23px; }
  .portal-offer-copy strong { font-size: 12.5px; }
  .portal-offer-copy small { font-size: 10px; }
  .portal-offer-action { min-height: 30px; font-size: 11px; }
  .portal-offer-grid.is-single .portal-offer-card { min-height: 68px; grid-template: auto 30px / 34px minmax(0,1fr) 78px; }
  .portal-saving-steps { min-height: 86px; padding-inline: 2px; }
  .portal-saving-steps strong { font-size: 10px; }
  .portal-saving-steps small { font-size: 8.5px; }
  .portal-trust-note { font-size: 9px; }
  .home-hero { min-height: 130px; grid-template-columns: 1fr; padding: 3px 8px; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .hero-topline { gap: 8px; transform: translateX(4px); }
  .hero-identity { gap: 12px; }
  .hero-identity-copy { transform: translateX(8px); }
  .hero-avatar-frame { width: 44px; height: 44px; flex-basis: 44px; }
  .hero-identity-copy > strong { font-size: 22px; }
  .hero-share-button { min-width: 60px; min-height: 30px; gap: 4px; padding-inline: 5px; font-size: 8.5px; translate: 4px 0; }
  .hero-share-button svg { width: 13px; height: 13px; flex-basis: 13px; }
  .hero-moment { column-gap: 5px; row-gap: 3px; }
  .hero-moment-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .hero-moment strong { font-size: 10.5px; line-height: 1.15; }
  .hero-suggestions { gap: 2px; }
  .hero-suggestions span { gap: 1px; padding-inline: 3px; }
  .hero-suggestions i { width: 14px; height: 14px; flex-basis: 14px; }
  .hero-suggestions i svg { width: 10.5px; height: 10.5px; stroke-width: 1.6; }
  .hero-suggestions b { font-size: 9px; }
  .merchant-tool-heading { grid-template-columns: minmax(0, 1fr) auto; }
  .merchant-titleline > .merchant-stack-badge { display: none; }
  .merchant-field-heading { justify-content: space-between; gap: 7px; }
  .merchant-stack-badge.is-mobile { display: inline-flex; min-height: 21px; padding-inline: 4px 5px; font-size: 8px; }
  .merchant-heading-actions { gap: 9px; }
  .merchant-tutorial-trigger { min-height: 34px; padding-inline: 4px 6px; font-size: 9px; }
  .merchant-tutorial-trigger > span { width: 18px; height: 18px; }
  .merchant-coupon-tool { --merchant-input-height: 136px; }
  .merchant-favorites-heading { align-items: flex-start; }
  .merchant-favorite-copy { grid-template-columns: 1fr; }
  .merchant-favorite-copy > strong { grid-column: 1; }
  .merchant-favorite-actions { width: 100%; }
  .section-heading { gap: 7px; }
  .section-heading p { max-width: none; }
  .deal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .deal-card { min-height: 58px; grid-template-columns: 20px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "sequence content"; gap: 4px 6px; padding: 6px 7px; }
  .deal-sequence { width: 22px; height: 22px; font-size: 10px; }
  .deal-summary { font-size: 10px; }
  .deal-entry-hint { gap: 3px; font-size: 10px; }
  .deal-entry-hint::before { width: 4px; height: 4px; flex-basis: 4px; }
  .deal-card.is-featured-placement { min-height: 82px; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 7px 8px 7px 12px; }
  .featured-deal-mark { top: 7px; left: 12px; }
  .featured-hot-mark { top: 7px; right: 12px; min-height: 18px; padding: 2px 6px; font-size: 8.5px; }
  .featured-hot-mark > i { width: 6px; height: 6px; flex-basis: 6px; }
  .deal-card.is-featured-placement .deal-short-title { font-size: 9.5px; }
  .profile-identity { min-height: 100px; grid-template-columns: 64px fit-content(190px); gap: 11px; padding: 12px; }
  .profile-avatar-frame { width: 64px; height: 64px; }
  .profile-name-row { gap: 6px; }
  .profile-name-row h1 { font-size: 18px; }
  .profile-name-row > span { padding: 3px 5px; font-size: 9.5px; }
  .profile-identity-copy p { margin-top: 5px; font-size: 9.5px; }
  .profile-identity-copy > small { margin-top: 3px; font-size: 9.5px; }
  .profile-section-heading h2 { font-size: 18px; }
  .profile-section-heading p { font-size: 9.5px; }
  .profile-menu button { grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; padding-inline: 10px; }
  .profile-menu-icon { width: 34px; height: 34px; }
  .profile-menu-icon svg { width: 19px; height: 19px; }
  .bottom-nav { height: var(--nav-narrow-height); min-height: var(--nav-narrow-height); max-height: var(--nav-narrow-height); }
  .bottom-nav-button { height: 46px; min-height: 0; font-size: 10px; }
  .bottom-icon { width: 28px; height: 28px; }
}

@media (max-width: 760px) {
  body.is-text-entry-active .bottom-nav {
    height: 0;
    min-height: 0;
    max-height: 0;
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
    border-width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
  }
}

@media (min-width: 761px) {
  body { padding: 22px 0; }
  .app-shell { height: calc(100vh - 44px); height: calc(100svh - 44px); height: calc(100dvh - 44px); border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .portal-offer-card,
  .portal-offer-card:hover,
  .portal-offer-card:active { transition: none !important; transform: none !important; }
  .portal-offer-icon,
  .portal-offer-card:hover .portal-offer-icon { transition: none !important; transform: none !important; }
  .deal-card.is-featured-placement { border-color: #f0a05a; animation: none !important; }
  .deal-card.is-featured-placement::after { display: none; animation: none !important; }
}
