:root, html[data-theme="light"] {
  --brand: #5B21B6;
  --brand-dark: #4C1D95;
  --brand-light: #7C3AED;
  --secondary: #2563EB;
  --secondary-dark: #1D4ED8;
  --red: #5B21B6;
  --red-dark: #4C1D95;
  --pink: #f3e8ff;
  --text: #1a1228;
  --muted: #7c7390;
  --line: #ece7f5;
  --bg: #f6f3fb;
  --card: #fff;
  --page: #fff;
  --tab-h: 62px;
  --safe: env(safe-area-inset-bottom, 0px);
  --shadow: 0 2px 10px rgba(91,33,182,.08);
}
html[data-theme="dark"] {
  --brand: #8B5CF6;
  --brand-dark: #7C3AED;
  --brand-light: #A78BFA;
  --secondary: #60A5FA;
  --secondary-dark: #3B82F6;
  --red: #8B5CF6;
  --red-dark: #7C3AED;
  --pink: #2e1064;
  --text: #f4f0ff;
  --muted: #b4a8c9;
  --line: #3f3358;
  --bg: #12081f;
  --card: #1c142c;
  --page: #160b24;
  --shadow: 0 2px 12px rgba(0,0,0,.35);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; width: 100%; max-width: 100%; background: var(--page); color: var(--text);
  font-family: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", "Outfit", sans-serif; }
body { position: relative; overflow-x: hidden; }
#app { width: 100%; max-width: 100%; min-width: 0; }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.page { min-height: 100%; padding-bottom: calc(var(--tab-h) + var(--safe) + 12px); background: var(--page); }
.page.red { background: var(--red); color: #fff; }
.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 10px; background: var(--red); color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar .loc { font-weight: 700; font-size: 15px; }
.topbar .pts { background: #fff; color: var(--red); border-radius: 20px; padding: 4px 10px; font-weight: 700; font-size: 13px; }
.subhead { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 9; }
.subhead h1 { font-size: 17px; margin: 0; flex: 1; text-align: center; }
.back { width: 36px; height: 36px; border: 0; background: none; font-size: 20px; }
.banner { margin: 12px 16px; border-radius: 16px; background: linear-gradient(135deg,#5b21b6,#7c3aed); color: #fff; padding: 22px 18px; min-height: 120px; }
.banner h2 { margin: 0 0 6px; font-size: 22px; }
.banner p { margin: 0; opacity: .9; font-size: 13px; }
.duo { display: flex; gap: 10px; padding: 0 16px; }
.duo .chip { flex: 1; background: #f4f4f5; border-radius: 28px; padding: 14px 8px; text-align: center; font-weight: 600; border: 0; }
.sec { padding: 18px 16px 6px; display: flex; justify-content: space-between; align-items: center; }
.sec h3 { margin: 0; font-size: 18px; }
.sec a, .sec span.link { color: var(--muted); font-size: 13px; }
.hscroll { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 8px 16px 16px; }
.hscroll::-webkit-scrollbar { display: none; }
.card { background: var(--card); border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.04); overflow: hidden; min-width: 0; width: 100%; }
.card img, .thumb { width: 100%; height: 110px; object-fit: cover; background: #f3f3f3; display: block; }
.thumb.gray { filter: grayscale(1); opacity: .55; }
.card .meta, .gitem .meta { padding: 10px; }
.card .name, .gitem .name { font-size: 13px; line-height: 1.35; min-height: 36px; }
.pts-red { color: var(--red); font-weight: 700; font-size: 14px; }
.sold { display: inline-block; background: #fff; color: #444; border-radius: 14px; padding: 2px 8px; font-size: 12px; position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%); box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.icons4 { display: grid; grid-template-columns: repeat(4,1fr); text-align: center; padding: 8px 8px 16px; }
.icons4 .ic { padding: 8px 4px; }
.icons4 i { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: #f5f5f5; align-items: center; justify-content: center; font-style: normal; font-size: 18px; margin-bottom: 6px; }
.icons4 span { display: block; font-size: 12px; }
.promo { margin: 0 16px 12px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.promo .hero { height: 120px; background: linear-gradient(120deg,#1e1b4b,#6d28d9); color: #fff; padding: 18px; }
.promo .hero h4 { margin: 0 0 6px; font-size: 20px; }
.promo .cap { padding: 10px 12px; font-size: 13px; color: #444; }
.grid2, .fill-grid, .promo-grid, .price-grid, .shop-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 16px; }
.promo-grid { padding-top: 0; }
.promo-grid .promo { margin: 0; }
.price-card { background: var(--card); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); cursor: pointer; }
.price-card b { display: block; margin-bottom: 4px; }
.shop-card { background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); color: inherit; }
.shop-card .hero { min-height: 88px; background: linear-gradient(120deg,#1e1b4b,#2563EB); color: #fff; padding: 16px; }
.shop-card .hero h4 { margin: 0 0 6px; font-size: 18px; }
.shop-card .hero p { margin: 0; font-size: 13px; opacity: .9; }
.shop-card .cap { padding: 10px 12px; font-size: 13px; color: #555; line-height: 1.45; }
html[data-theme="dark"] .shop-card .cap { color: #c4b5d4; }
.shop-card.mine { outline: 2px solid var(--brand); }
.market-card { cursor: pointer; }
.stamp-card .stamps { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.stamp-card .stamps i { width: 28px; height: 28px; border-radius: 50%; background: #eee; color: #888; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-style: normal; }
.stamp-card .stamps i.on { background: var(--brand); color: #fff; }
.shop-card ul { margin: 0; padding-left: 18px; }
.gitem { position: relative; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.gitem .ph { height: 120px; background: #f3f3f3; position: relative; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.cats { display: flex; overflow-x: auto; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.cats b { white-space: nowrap; padding-bottom: 8px; font-weight: 500; color: #666; }
.cats b.on { color: var(--red); border-bottom: 2px solid var(--red); font-weight: 700; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs b { flex: 1; text-align: center; padding: 12px; color: #888; }
.tabs b.on { color: var(--red); border-bottom: 2px solid var(--red); font-weight: 700; }
.btn { display: block; width: 100%; border: 0; border-radius: 28px; padding: 14px; font-weight: 700; background: var(--red); color: #fff; }
.btn[disabled], .btn.disabled { background: #cfcfcf; color: #777; }
.btn.ghost { background: #fff; color: var(--red); border: 1px solid var(--red); }
.btn.lite { background: #f4f4f4; color: #333; }
.fixed-btn { position: sticky; bottom: calc(var(--tab-h) + var(--safe) + 8px); padding: 12px 16px; background: #fff; }
.field { margin: 12px 16px; }
.field label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #e5e5e5; border-radius: 12px; padding: 12px; background: #fafafa; }
.row { display: flex; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.row .k { color: #666; }
.list { background: #fff; }
.item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.item .grow { flex: 1; }
.item .sub { color: #999; font-size: 12px; margin-top: 4px; }
.plus { color: var(--red); font-weight: 700; }
.minus { color: #333; font-weight: 700; }
.tabbar { position: fixed; left: 0; transform: none; bottom: 0; width: 100%; max-width: none;
  height: calc(var(--tab-h) + var(--safe)); padding-bottom: var(--safe); background: #fff;
  border-top: 1px solid #eee; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; z-index: 20; }
.tabbar .t { text-align: center; padding-top: 8px; color: #999; font-size: 11px; border: 0; background: none; }
.tabbar .t.on { color: var(--red); }
.tabbar .t .ico { display: block; font-size: 20px; line-height: 1.1; }
.tabbar .scan { position: relative; }
.tabbar .scan .ball { width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-top: -18px; box-shadow: 0 4px 12px rgba(227,28,35,.35); }
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 30; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dialog { background: #fff; border-radius: 16px; width: 100%; max-width: 340px; overflow: hidden; }
.dialog .ad { background: linear-gradient(180deg,#fff7ed,#fff); padding: 20px; }
.dialog h3 { margin: 0 0 8px; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; margin: 0 auto;
  background: #fff; border-radius: 16px 16px 0 0; z-index: 31; max-height: 80%; overflow: auto; padding-bottom: var(--safe); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
.chip-row b { border: 1px solid #ddd; border-radius: 20px; padding: 6px 12px; font-weight: 500; font-size: 13px; }
.chip-row b.on { border-color: var(--red); color: var(--red); background: #fff1f2; }
.qty { display: flex; align-items: center; gap: 12px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ddd; background: #fff; }
.card-page { min-height: 100vh; background: var(--red); color: #fff; padding: 16px 16px 90px; }
.ecard { background: #fff; color: #111; border-radius: 16px; padding: 18px; text-align: center; }
.ecard #qrbox { margin: 12px auto; width: 220px; height: 220px; }
.ecard #qrbox img, .ecard #qrbox svg { width: 100%; height: 100%; }
.acct-hero { background: linear-gradient(#ff6b6b, var(--red)); color: #fff; padding: 20px 16px 28px; }
.acct-box { background: #fff; color: #111; border-radius: 14px; padding: 16px; margin-top: 12px; }
.progress { height: 6px; background: #f0f0f0; border-radius: 4px; overflow: hidden; margin: 8px 0; }
.progress i { display: block; height: 100%; background: var(--red); width: 20%; }
.grid9 { display: grid; grid-template-columns: repeat(4,1fr); text-align: center; padding: 12px 8px; }
.grid9 .ic { padding: 12px 4px; font-size: 12px; }
.grid9 i { display: block; font-size: 22px; font-style: normal; margin-bottom: 6px; }
.toggle { display: inline-flex; flex-wrap: wrap; background: #eee; border-radius: 20px; overflow: hidden; }
.toggle b { padding: 6px 14px; }
.toggle b.on { background: var(--red); color: #fff; }
.ok { text-align: center; padding: 36px 16px; }
.ok .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 32px; }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.hidden { display: none !important; }
.tag { display: inline-block; background: #fff7ed; color: #c2410c; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; background: rgba(0,0,0,.78); color: #fff;
  padding: 10px 16px; border-radius: 20px; z-index: 50; display: none; max-width: 80%; }
.login-wrap { min-height: 100vh; background: var(--red); padding: 48px 24px; color: #fff; }
.login-wrap .box { background: #fff; color: #111; border-radius: 16px; padding: 20px; margin-top: 24px; }
.ph-emoji { font-size: 42px; }
body.font-lg { font-size: 18px; }
body.font-lg .topbar .loc, body.font-lg .subhead h1, body.font-lg .sec h3 { font-size: 20px; }
body.font-lg .icons4 span, body.font-lg .grid9 .ic, body.font-lg .tabbar .t { font-size: 14px; }
body.font-lg .btn { padding: 16px; font-size: 17px; }
.topbar .right { display: flex; align-items: center; gap: 8px; }
.bell { position: relative; width: 36px; height: 36px; border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 50%; font-size: 16px; }
.bell .badge { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; border-radius: 8px; background: #fff; color: var(--red); font-size: 10px; font-weight: 700; line-height: 16px; padding: 0 4px; }
.search { margin: 10px 16px 0; display: flex; gap: 8px; }
.search input { flex: 1; border: 0; border-radius: 22px; padding: 10px 14px; background: rgba(255,255,255,.95); color: #111; }
.mall { background: var(--red); padding-bottom: 12px; }
.mall-body { background: #fff; border-radius: 16px 16px 0 0; margin-top: 8px; min-height: 40vh; }
.cat-grid { display: grid; grid-template-columns: repeat(5,1fr); text-align: center; padding: 14px 8px 4px; }
.cat-grid .ic { padding: 8px 2px; }
.cat-grid i { display: inline-flex; width: 46px; height: 46px; border-radius: 50%; background: #fff1f2; align-items: center; justify-content: center; font-style: normal; font-size: 20px; margin-bottom: 4px; }
.cat-grid span { display: block; font-size: 11px; color: #444; }
.q-banner { display: flex; align-items: center; gap: 12px; margin: 8px 16px; background: linear-gradient(135deg,#5B21B6,#2563EB); color: #fff; border-radius: 16px; padding: 10px 14px; cursor: pointer; }
.bill-sheet { margin: 12px 16px 24px; background: var(--card); border-radius: 16px; padding: 18px 16px; box-shadow: var(--shadow); }
.bill-sheet h2 { margin: 0 0 6px; font-size: 20px; }
.bill-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.bill-tot { display: flex; justify-content: space-between; margin-top: 12px; font-size: 22px; font-weight: 700; }
.q-banner.called { background: linear-gradient(135deg,#b45309,#dc2626); }
.q-banner .no { font-family: Outfit, "Noto Sans TC", sans-serif; font-size: 28px; line-height: 1; min-width: 36px; text-align: center; }
.q-banner p { margin: 4px 0 0; opacity: .9; font-size: 13px; }
.ticket { display: flex; margin: 12px 16px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.ticket .face { width: 88px; background: linear-gradient(180deg,#2563eb,#1d4ed8); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; }
.ticket .face b { font-size: 22px; }
.ticket .face small { font-size: 11px; opacity: .85; }
.ticket .body { flex: 1; padding: 12px 14px; }
.ticket .body b { display: block; font-size: 14px; }
.mission { margin: 12px 16px; background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.mission .hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.stamps { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 0; }
.stamps i { width: 28px; height: 28px; border-radius: 50%; background: #f3f3f3; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; color: #bbb; }
.stamps i.on { background: var(--red); color: #fff; }
.pay-opt { display: flex; gap: 8px; padding: 0 0 8px; flex-wrap: wrap; }
.pay-opt b { flex: 1; min-width: 120px; border: 1px solid #ddd; border-radius: 12px; padding: 10px 12px; font-weight: 500; }
.pay-opt b.on { border-color: var(--red); color: var(--red); background: #fff1f2; }
.nitem { padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.nitem.unread { background: #fff7f7; }
.nitem .sub { color: #999; font-size: 12px; margin-top: 4px; }
.lookup { margin: 12px 16px; padding: 12px; background: #fff1f2; border-radius: 12px; }
.copy { border: 0; background: none; color: #ffe4e6; font-size: 14px; }
.share { border: 0; background: none; font-size: 18px; }
.icons6 { display: grid; grid-template-columns: repeat(3,1fr); text-align: center; padding: 8px 8px 16px; }
.icons6 .ic { padding: 8px 4px; }
.icons6 i { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: #f5f5f5; align-items: center; justify-content: center; font-style: normal; font-size: 18px; margin-bottom: 6px; }
.icons6 span { display: block; font-size: 12px; line-height: 1.25; overflow: hidden; }
.cheap { color: #15803d; font-weight: 700; }
.price-row { display:flex; justify-content:space-between; padding:12px 16px; border-bottom:1px solid var(--line); }
.mascot { display: inline-flex; flex-direction: column; align-items: center; }
.mascot .m-head { width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #c4b5fd, #5B21B6 58%, #3b0764);
  position: relative; box-shadow: inset 0 -10px 0 rgba(0,0,0,.06); }
.mascot .m-knot { position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 12px; background: #f4c430; border-radius: 3px 3px 8px 8px; }
.mascot .m-eye { position: absolute; top: 28px; width: 8px; height: 10px; background: #2a1010; border-radius: 50%; }
.mascot .m-eye.l { left: 20px; }
.mascot .m-eye.r { right: 20px; }
.mascot .m-smile { position: absolute; left: 50%; bottom: 16px; width: 22px; height: 10px;
  border: 2px solid #2a1010; border-top: 0; border-radius: 0 0 14px 14px; transform: translateX(-50%); }
.mascot .m-body { margin-top: 6px; width: 36px; height: 36px; border-radius: 50%;
  background: #38bdf8; color: #1e3a8a; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.mascot-sm .m-head { width: 44px; height: 44px; }
.mascot-sm .m-eye { top: 16px; width: 5px; height: 6px; }
.mascot-sm .m-eye.l { left: 11px; }
.mascot-sm .m-eye.r { right: 11px; }
.mascot-sm .m-smile { width: 14px; height: 7px; bottom: 10px; }
.mascot-sm .m-body { width: 24px; height: 24px; font-size: 11px; }
.mascot-lg .m-head { width: 88px; height: 88px; }
.mascot-lg .m-eye { top: 34px; }
.login-wrap .mascot { display: flex; margin: 0 auto 10px; }
.web-only { display: none !important; }
.web-banner { display: none; }

@media (max-width: 419px) {
  .grid2, .fill-grid, .promo-grid, .price-grid, .shop-grid { grid-template-columns: 1fr; }
  .icons4, .grid9 { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .row { flex-wrap: wrap; }
  .toggle { max-width: 100%; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .grid2, .fill-grid, .promo-grid, .price-grid, .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hscroll { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet { max-width: 560px; }
}

@media (min-width: 900px) {
html:not(.is-plus), html:not(.is-plus) body {
  max-width: none;
  width: 100%;
  height: 100%;
  background: var(--page);
}
html:not(.is-plus) body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
}
html:not(.is-plus) body.is-auth {
  display: block;
  background: linear-gradient(160deg, #5B21B6 0%, #1e1b4b 55%, #0f172a 100%);
}
html:not(.is-plus) body.is-auth #app {
  max-width: 440px;
  margin: 6vh auto;
  background: transparent;
  box-shadow: none;
  min-height: 0;
}
html:not(.is-plus) body.is-auth .login-wrap {
  min-height: auto;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
html:not(.is-plus) .web-only { display: block !important; }
html:not(.is-plus) .tabbar .t.web-only { display: flex !important; }
html:not(.is-plus) .side-brand {
  font-weight: 800;
  font-size: 22px;
  color: var(--red);
  padding: 6px 10px 18px;
  line-height: 1.15;
}
html:not(.is-plus) .side-brand span { display: block; font-size: 12px; font-weight: 500; color: #888; margin-top: 4px; }
html:not(.is-plus) .side-note { font-size: 12px; color: #999; padding: 16px 10px; line-height: 1.45; }
html:not(.is-plus) .tabbar:not(.hidden) {
  order: 0;
  position: relative;
  left: 0;
  top: 0;
  transform: none;
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-top: 0;
  border-right: 1px solid var(--line);
  padding: 22px 14px 16px;
  background: var(--card);
}
html:not(.is-plus) .tabbar .t {
  text-align: left;
  padding: 12px 12px;
  font-size: 15px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
}
html:not(.is-plus) .tabbar .t.on { background: var(--pink); color: var(--brand); }
html:not(.is-plus) .tabbar .t .ico { display: inline; font-size: 18px; margin: 0; }
html:not(.is-plus) .tabbar .scan .ball {
  width: 34px; height: 34px; margin: 0; font-size: 15px;
  box-shadow: none;
}
html:not(.is-plus) #app {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  width: auto;
  margin: 0;
  background: var(--page);
  border-radius: 0;
  height: 100vh;
  min-height: 100vh;
  box-shadow: none;
  overflow: auto;
}
html:not(.is-plus) .page { padding-bottom: 28px; min-height: 100%; width: 100%; }
html:not(.is-plus) .fixed-btn { position: static; }
html:not(.is-plus) .grid2,
html:not(.is-plus) .fill-grid,
html:not(.is-plus) .promo-grid,
html:not(.is-plus) .price-grid,
html:not(.is-plus) .shop-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
html:not(.is-plus) .hscroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  overflow: visible;
}
html:not(.is-plus) .hscroll .card, html:not(.is-plus) .hscroll .gitem { min-width: 0; }
html:not(.is-plus) .promo { max-width: none; }
html:not(.is-plus) .sheet { max-width: 520px; left: 50%; right: auto; transform: translateX(-50%); }
html:not(.is-plus) .card-page { min-height: calc(100vh - 36px); border-radius: 18px; }
html:not(.is-plus) .ecard { max-width: 420px; margin: 24px auto; }
html:not(.is-plus) #toast { left: calc(240px + 50%); bottom: 28px; }
html:not(.is-plus) .web-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 16px 0;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #475569;
  font-size: 13px;
}
html:not(.is-plus) .acct-hero, html:not(.is-plus) .mall { border-radius: 18px 18px 0 0; }
}

html[data-theme="dark"] .subhead,
html[data-theme="dark"] .row,
html[data-theme="dark"] .list,
html[data-theme="dark"] .item,
html[data-theme="dark"] .nitem,
html[data-theme="dark"] .promo,
html[data-theme="dark"] .card,
html[data-theme="dark"] .gitem,
html[data-theme="dark"] .mission,
html[data-theme="dark"] .ticket,
html[data-theme="dark"] .mall-body,
html[data-theme="dark"] .fixed-btn,
html[data-theme="dark"] .login-wrap .box,
html[data-theme="dark"] .acct-box,
html[data-theme="dark"] .ecard,
html[data-theme="dark"] .dialog,
html[data-theme="dark"] .sheet {
  background: var(--card);
  color: var(--text);
}
html[data-theme="dark"] .tabbar { background: var(--card); border-color: var(--line); }
html[data-theme="dark"] .duo .chip,
html[data-theme="dark"] .icons4 i,
html[data-theme="dark"] .icons6 i,
html[data-theme="dark"] .btn.lite { background: #2a2040; color: var(--text); }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .search input { background: #24183a; color: var(--text); border-color: var(--line); }
@media (min-width: 900px) {
  html:not(.is-plus)[data-theme="dark"] #app { background: var(--card); }
  html:not(.is-plus)[data-theme="dark"],
  html:not(.is-plus)[data-theme="dark"] body { background: #0b0614; }
  html:not(.is-plus)[data-theme="dark"] .tabbar:not(.hidden) { background: var(--card); border-color: var(--line); }
}
html[data-theme="dark"] .web-banner { background: #24183a; border-color: var(--line); color: var(--muted); }
html[data-theme="dark"] .cat-grid i { background: #2e1064; }
html[data-theme="dark"] .nitem.unread { background: #2e1064; }
html[data-theme="dark"] .lookup { background: #2e1064; }
html[data-theme="dark"] .cap { color: var(--muted); }
.acct-hero { background: linear-gradient(#7C3AED, var(--brand)); }
.mall { background: var(--brand); }
.login-wrap { background: var(--brand); }
.tabbar .scan .ball { box-shadow: 0 4px 12px rgba(91,33,182,.35); }
