/* 这份样式由 styles/00-shell.css 然后 styles/10-rest.css 拼成。改样式改那两份，再跑 node ops/build-app.mjs。 */
:root {
  color-scheme: dark;
  --bg: #000;
  --bar: #000;
  --line: #262626;
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --card: #121212;
  --chip: #2a2a2a;
  --wheel-bg: #3a3a3c; /* 话题滚轮毛玻璃底，用户 2026-10-22 定：与页面背景 8 位数值差约 40，等于 Apple 深色抬升组第三级 */
  --chip-text: #f5f5f5;
  --chip-on: #f5f5f5;
  --chip-on-text: #111;
  --topic-bg: #1e3a5f;
  --topic-text: #9cc7ff;
  --panel: #111;
  --panel-text: #f5f5f5;
  --surface: #1a1a1a;
  --raised: #262626;
  --ink: #f5f5f5;
  --dim: #8e8e8e;
  --ring: conic-gradient(from 180deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34);
  --ring-line: linear-gradient(90deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34, #ee2a7b);
  --ok: #22c55e;
  /* 搜索页输入框与话题/找男生女生按钮的底色和描边（只这几处用）。参考 instagram 深色输入框 #25292e、facebook 深色描边 #3e4042。日间值写在 html[data-theme="day"] 里，等于原来日间实际用的值。 */
  --field-bg: #25292e;
  --field-line: #3e4042;
  --field-ring: #3e4042;
  --max: 470px;
  --font-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji";
  --font-device: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI",
    Roboto, "SamsungOne", "Samsung Sans", "MiSans", "HarmonyOS Sans", "OPPO Sans", "vivo Sans",
    Helvetica, Arial, sans-serif, var(--font-emoji);
  --font: var(--font-device);
  /* 字号（第四批，议题 212 第 2 项）：数字是默认 16 像素字号下的像素数，值用 rem，浏览器调大字号时跟着放大 */
  --fs-10: .625rem;
  --fs-11: .6875rem;
  --fs-12: .75rem;
  --fs-13: .8125rem;
  --fs-14: .875rem;
  --fs-15: .9375rem;
  --fs-16: 1rem;
  --fs-17: 1.0625rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-22: 1.375rem;
  --fs-24: 1.5rem;
  --fs-28: 1.75rem;
  --fs-30: 1.875rem;
  --fs-32: 2rem;
  --fs-36: 2.25rem;
  --fs-42: 2.625rem;
  --lh-11: 13px;
  --lh-12: 16px;
  --lh-13: 16px;
  --lh-15: 20px;
  --lh-16: 21px;
  --lh-17: 24px;
  --lh-20: 24px;
  --lh-22: 26px;
  --fw: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  /* 图标字号（议题 212）：svg.ic 是 1em 见方，给容器设这些字号就定了图标大小；全站图标尺寸都用这些 */
  --ic-12: .75rem;
  --ic-14: .875rem;
  --ic-16: 1rem;
  --ic-18: 1.125rem;
  --ic-20: 1.25rem;
  --ic-22: 1.375rem;
  --ic-24: 1.5rem;
  --ic-26: 1.625rem;
  --ic-28: 1.75rem;
  --ic-32: 2rem;
  --ic-34: 2.125rem;
  --ic-36: 2.25rem;
  --ic-56: 3.5rem;
  --ic-72: 4.5rem;
  /* ── 第一批（议题 212 第 2 项）：普通规则里原来写死的颜色，不随日夜主题变；日夜要变的进上面那组或白天主题段 ── */
  /* 固定黑白与灰阶（不随日夜变；数字是亮度百分比） */
  --c-white: #fff;
  --c-black: #000;
  --c-gray-96: #f5f5f5;
  --c-gray-95: #f2f2f4;
  --c-gray-78: #c8c8c8;
  --c-gray-77: #c4c4c4;
  --c-gray-73: #bbb;
  --c-gray-66: #a8a8a8;
  --c-gray-60: #9a9a9a;
  --c-gray-56: #8e8e8e;
  --c-gray-54: #8a8a8a;
  --c-gray-45: #737373;
  --c-gray-35: #5a5a5a;
  --c-gray-23: #3a3a3a;
  --c-gray-20: #333;
  --c-gray-17: rgb(44,44,46);
  --c-gray-15: #262626;
  --c-gray-13: #222;
  --c-gray-10: #1a1a1a;
  --c-gray-07: #111;
  --c-gray-07-92: rgba(18,18,18,.92);
  --c-gray-05: #0d0d0d;
  --c-gray-50-18: rgba(127,127,127,.18);
  /* 媒体编辑与拍摄页的深色底（偏蓝黑） */
  --c-ink-bg: #000;
  --c-ink-bg-92: rgba(0,0,0,.92);
  --c-ink-field: #1c2228;
  --c-ink-bar-40: rgba(28,32,36,.40);
  /* 红：危险、角标、点赞、错误 */
  --c-danger: #ff3b30;
  --c-badge-red: #ff3040;
  --c-like-rose: #e11d48;
  --c-heart-pink: #ff4d6d;
  --c-error-soft: #ff8b8b;
  --c-bad-bg: #3a1515;
  --c-bad-text: #ffb4b4;
  /* 绿：通过、在线、开关 */
  --c-ok-bg: #16351f;
  --c-ok-text: #b9f6c8;
  --c-online-green: #34c759;
  --c-switch-green: #34c759;
  --c-log-green: #86efac;
  /* 蓝紫：强调、链接、操作按钮 */
  --c-accent: #4f5cf0;
  --c-accent-deep: #1f2ec4;
  --c-link: #0095f6;
  --c-link-25: rgba(0,149,246,.25);
  --c-link-08: rgba(0,149,246,.08);
  --c-action-blue: #4c9aff;
  --c-system-blue: #007aff;
  --c-plane-blue: #3d9cf0;
  /* 顶部加载进度条四段色 */
  --c-progress-1: #27c4f5;
  --c-progress-2: #a307ba;
  --c-progress-3: #fd8d32;
  --c-progress-4: #70c050;
  /* 阅后即焚按钮：渐变三色与金属灰 */
  --c-burn-yellow: #f9ce34;
  --c-burn-pink: #ee2a7b;
  --c-burn-purple: #6228d7;
  --c-burn-metal-hi: #9a9aa3;
  --c-burn-metal-mid: #7a7a82;
  --c-burn-metal-lo: #6a6a72;
  /* 金：会员、收藏星、置顶、甜心 */
  --c-star: #f5c518;
  --c-gold: #c9a227;
  --c-pin-gold: #f5d76e;
  --c-sugar-gold: #e4c36a;
  --c-sugar-bg: #1a1408;
  --c-offline-text: #6b4f00;
  --c-offline-bg: #fff3cd;
  /* 首页头图 */
  --c-front-pink: #e85aa0;
  --c-front-purple: #7b5cff;
  --c-front-bg: #241428;
  --c-front-text: #d8d0de;
  /* 半透明黑各档（数字是不透明度百分比，原样保留每一档） */
  --c-black-04: rgba(0,0,0,.04);
  --c-black-06: rgba(0,0,0,.06);
  --c-black-12: rgba(0,0,0,.12);
  --c-black-18: rgba(0,0,0,.18);
  --c-black-20: rgba(0,0,0,.2);
  --c-black-22: rgba(0,0,0,.22);
  --c-black-25: rgba(0,0,0,.25);
  --c-black-28: rgba(0,0,0,.28);
  --c-black-35: rgba(0,0,0,.35);
  --c-black-40: rgba(0,0,0,.4);
  --c-black-42: rgba(0,0,0,.42);
  --c-black-45: rgba(0,0,0,.45);
  --c-black-50: rgba(0,0,0,.5);
  --c-black-55: rgba(0,0,0,.55);
  --c-black-60: rgba(0,0,0,.6);
  --c-black-62: rgba(0,0,0,.62);
  --c-black-70: rgba(0,0,0,.7);
  --c-black-72: rgba(0,0,0,.72);
  --c-black-78: rgba(0,0,0,.78);
  --c-black-85: rgba(0,0,0,.85);
  --c-black-96: rgba(0,0,0,.96);
  /* 半透明白各档（数字是不透明度百分比，原样保留每一档） */
  --c-white-00: rgba(255,255,255,0);
  --c-white-08: rgba(255,255,255,.08);
  --c-white-10: rgba(255,255,255,.1);
  --c-white-12: rgba(255,255,255,.12);
  --c-white-15: rgba(255,255,255,.15);
  --c-white-16: rgba(255,255,255,.16);
  --c-white-20: rgba(255,255,255,.2);
  --c-white-22: rgba(255,255,255,.22);
  --c-white-28: rgba(255,255,255,.28);
  --c-white-32: rgba(255,255,255,.32);
  --c-white-35: rgba(255,255,255,.35);
  --c-white-38: rgba(255,255,255,.38);
  --c-white-42: rgba(255,255,255,.42);
  --c-white-45: rgba(255,255,255,.45);
  --c-white-50: rgba(255,255,255,.5);
  --c-white-55: rgba(255,255,255,.55);
  --c-white-92: rgba(255,255,255,.92);
  /* 第二批（日夜补丁规则里用到、第一批没有的值） */
  --c-gray-94: #efefef;
  --c-gray-33: #555;
  --c-gray-16: #2a2a2a;
  --c-pill-day: #f1f2f4;
  --c-share-bg: rgba(36,36,38,.92);
  --c-share-text: #f4f4f5;
  --c-required-red: #d21f1f;
  --c-gold-text-day: #7a4e00;
  --c-burn-day-hi: #b4b4ba;
  --c-burn-day-mid: #9a9aa2;
  --c-burn-day-lo: #8a8a92;
  --c-black-08: rgba(0,0,0,.08);
  --c-black-14: rgba(0,0,0,.14);
  --c-black-16: rgba(0,0,0,.16);
  --c-white-14: rgba(255,255,255,.14);
  --c-white-48: rgba(255,255,255,.48);
  --c-white-62: rgba(255,255,255,.62);
  --c-white-70: rgba(255,255,255,.7);
  --c-white-94: rgba(255,255,255,.94);
  /* 外壳日夜色：夜间写在这里，白天在 html[data-theme="day"] 里换值。 */
  --top-bg: var(--c-ink-bg-92);
  --tabs-bg: var(--c-ink-bar-40);
  --tabs-line: var(--c-white-10);
  --tabs-shadow: 0 10px 30px var(--c-black-35);
  --more-bg: var(--c-gray-15);
  --more-shadow: 0 10px 28px var(--c-black-45);
  --more-fg: var(--c-white);
  --more-on: var(--c-gray-23);
  --geo-fg: var(--c-gray-73);
  --geo-field: var(--c-gray-23);
  --geo-ink: var(--c-white);
  --star-on: var(--c-star);
  --star-fill: var(--text);
  /* 议题 212 卡 1：Stitch 主题，引用处见各页任务卡 */
  --accent: #ff9500;
  --accent-deep: #ff7a00;
  --accent-glow: 0 0 10px rgba(255,149,0,.35);
  --tab-off: rgba(255,255,255,.40);
  --c-verify-gold: #ffb800;
  --r-8: 8px;
  --r-12: 12px;
  --r-16: 16px;
  --r-28: 28px;
  --r-full: 9999px;
  --tap-min: 44px;
  --page-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
}

html[lang="zh-Hans"] {
  --font: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei UI", "Microsoft YaHei", "MiSans", "HarmonyOS Sans SC", "HarmonyOS Sans",
    "OPPO Sans", "vivo Sans", "SamsungOne", "Noto Sans SC", "Noto Sans CJK SC",
    "Source Han Sans SC", "Droid Sans Fallback", Roboto, "Segoe UI", Helvetica, Arial,
    sans-serif, var(--font-emoji);
}
html[lang="ko"] {
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "SamsungOne", "Samsung Sans", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",
    Roboto, "Segoe UI", Helvetica, Arial, sans-serif, var(--font-emoji);
}
html[lang="th"] {
  --font: system-ui, -apple-system, BlinkMacSystemFont, Thonburi, "Leelawadee UI", Leelawadee,
    "Noto Sans Thai", Sarabun, Roboto, "Segoe UI", Helvetica, Arial, sans-serif, var(--font-emoji);
}
html[lang="vi"], html[lang="en"] {
  --font: var(--font-device);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  height: var(--app-height, 100dvh);
  background: var(--bg);
  /* 文档不滚动：Safari / 微信里上下工具栏才不会跟着手势收起。真正滚动的是 #app。 */
  overflow: hidden;
  overscroll-behavior: none;
  font-family: var(--font);
  font-size: var(--fs-16);
  font-weight: var(--fw);
  line-height: var(--lh-15);
  letter-spacing: -0.15px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
img, video {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}
video {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.page-progress {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  height: .1875rem;
  z-index: 400;
  pointer-events: none;
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 1;
  background: var(--c-progress-1) linear-gradient(to right, var(--c-progress-1), var(--c-progress-2), var(--c-progress-3), var(--c-progress-4), var(--c-progress-1));
  background-size: 500%;
  animation: barprogress 2s linear infinite;
}
.page-progress[hidden] { display: none; animation: none; }
@keyframes barprogress {
  0% { background-position: 0 0; }
  100% { background-position: 125% 0; }
}
#app {
  height: 100%;
  height: var(--app-height, 100dvh);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.shell {
  width: min(var(--max), 100%);
  margin: 0 auto;
  min-height: 100%;
  background: var(--bg);
  /* 顶栏、底栏固定后，正文要让出它们的高度，否则第一屏内容会被挡住。
     议题 212 卡 3：顶栏 3rem 加安全区；底部统一留 --page-bottom（104px 加安全区，DESIGN.md 第一节第 10 条）。 */
  padding-top: calc(3rem + env(safe-area-inset-top, 0px));
  padding-bottom: var(--page-bottom);
  position: relative;
}
/* 议题 212 卡 3（DESIGN.md 第二节）：顶栏完全透明，没有底色、没有分割线，高 3rem 加安全区；
   三格：左三点、中标志、右视图切换。 */
.top {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--max), 100%);
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-height: calc(3rem + env(safe-area-inset-top, 0px));
  height: calc(3rem + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 4px 0;
  background: transparent;
  border-bottom: 0;
}
/* 三点按钮：素材库的 dotsH 是横排，规范要纵向，转 90 度。 */
#moreBtn .ic-dotsH { transform: rotate(90deg); }
/* 标志「DZCP」加折线，点开下面一张原生风格菜单卡（圆角 14px，DESIGN.md 第二节第 2 条）：上一行图标，下两行文字。 */
.logo-slot { position: relative; display: flex; align-items: center; justify-content: center; }
.logo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: var(--tap-min); padding: 0 8px;
  border: 0; background: none; cursor: pointer;
  color: var(--text); -webkit-text-fill-color: var(--text);
  font: inherit;
}
.logo-btn b { font-size: var(--fs-20); line-height: var(--lh-20); font-weight: var(--fw-bold); letter-spacing: -0.3px; }
.logo-btn svg { font-size: var(--ic-14); }
.logo-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
/* 居中用 left/right 0 加自动外边距，不用 transform、不用 backdrop-filter：里面的定位气泡 #locatePop 由 placeMenu 改成 fixed 定位，
   祖先一带变形或背景模糊，fixed 就改以祖先为参照而错位（独立复核 2026-11-03 发现）。底色本来就是不透明的 --more-bg，模糊没有意义。 */
.logo-pop, .view-pop {
  position: absolute; top: calc(100% + 2px); left: 0; right: 0; margin: 0 auto; z-index: 60;
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  width: max-content; min-width: 11rem; max-width: calc(100vw - 1rem); padding: 6px;
  border-radius: 14px;
  background: var(--more-bg); box-shadow: var(--more-shadow);
}
.logo-pop[hidden], .view-pop[hidden] { display: none; }
/* 视图切换 3-C 菜单卡挂在最右那颗按钮下面，靠右对齐；两行文字在左、图标在右。 */
.view-slot { position: relative; display: flex; align-items: center; }
.view-pop { left: auto; right: 0; margin: 0; }
.view-pop .logo-item { justify-content: space-between; }
.logo-row { display: flex; align-items: center; justify-content: space-around; gap: 2px; padding: 2px 4px; }
.logo-pop .icon-btn { color: var(--more-fg); -webkit-text-fill-color: var(--more-fg); }
.logo-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; white-space: nowrap; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--more-fg); -webkit-text-fill-color: var(--more-fg);
  font-size: var(--fs-16); line-height: var(--lh-20); text-align: left; cursor: pointer; text-decoration: none;
}
.logo-item svg { font-size: var(--ic-22); flex: 0 0 auto; }
.logo-item.on, .logo-item:active { background: var(--more-on); }
.top-title {
  display: block;
  text-align: left;
  color: var(--text);
  font-size: var(--fs-16);
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0;
}
.top-left {
  display: flex;
  align-items: center;
  gap: 0;
  justify-self: start;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.brand-slot {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}
.brand-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; cursor: pointer; color: var(--text); -webkit-text-fill-color: var(--text);
  font: inherit;
}
.brand-btn.caret-only {
  width: 2.5rem; height: 2.5rem; padding: 0;
}
.brand-caret {
  display: block;
  font-size: var(--fs-14);
  line-height: 1;
  font-style: normal;
  font-weight: 400;
}
.brand-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  width: max-content; min-width: 10.5rem; max-width: calc(100vw - 1rem); padding: 6px;
  background: var(--c-gray-15); border-radius: 14px;
  box-shadow: 0 10px 28px var(--c-black-45);
}
.brand-pop a, .brand-pop button {
  display: flex; align-items: center; gap: 12px;
  width: 100%; white-space: nowrap; padding: 12px; border: 0; border-radius: 10px;
  background: none; color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-16); line-height: 20px; text-align: left; cursor: pointer;
}
.brand-pop .on, .brand-pop button:active { background: var(--c-gray-23); }
.brand-geo-open, .fold-toggle { justify-content: space-between; }
.brand-mini-caret, .fold-caret {
  width: 0; height: 0; margin-left: 12px; flex: 0 0 auto;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.brand-mini-caret.up, .fold-caret.up { transform: rotate(180deg); }
.fold-item { display: flex; flex-direction: column; width: 100%; }
.fold-title {
  display: flex; align-items: center; gap: 12px;
  min-width: 0; flex: 1 1 auto;
}
.fold-pane {
  display: flex; flex-direction: column; gap: 8px;
  padding: 2px 8px 10px;
}
.fold-pane .fold-item { padding-left: 2px; }
.fold-pane[hidden],
.brand-geo[hidden],
[data-fold-pane][hidden] { display: none !important; }
.brand-geo {
  display: flex; flex-direction: column; gap: 8px;
}
.brand-geo-row {
  display: flex; flex-direction: column; gap: 4px;
  color: var(--geo-fg); -webkit-text-fill-color: var(--geo-fg);
  font-size: var(--fs-12); line-height: 16px;
}
.brand-geo-row select {
  width: 100%; min-width: 12.25rem;
  appearance: none; -webkit-appearance: none;
  background: var(--geo-field); color: var(--geo-ink); -webkit-text-fill-color: var(--geo-ink);
  border: 0; border-radius: 8px; padding: 8px 10px;
  font-size: var(--fs-15); line-height: 20px;
}
.brand-geo-row select:disabled { opacity: .45; }
.top-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  justify-self: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.top-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  justify-self: end;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.more-slot { position: relative; flex: 0 0 auto; }
/* 议题 212 卡 3：三点胶囊——一条 2.375rem 高的细条（规范 36～38px），磨砂 blur(28px)，只放日夜切换和语言与地区；
   点「语言·地区」再在胶囊下面展开一块小面板（.more-pane）。32-render.js 的 placeMenu 会把 #morePop 改成 fixed 定位，面板跟着它走。 */
.more-pop {
  position: absolute; top: calc(100% + 2px); left: 0; right: auto; z-index: 60;
  width: max-content; min-width: 0; max-width: calc(100vw - 1rem);
  border-radius: var(--r-full);
  background: var(--more-bg);
  box-shadow: var(--more-shadow);
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
}
.more-pop[hidden], .brand-pop[hidden], .locate-pop[hidden] { display: none; }
.more-strip { display: flex; align-items: center; gap: 2px; height: 2.375rem; padding: 0 6px; white-space: nowrap; }
.more-fold { display: contents; }
.more-item {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 100%; padding: 0 10px; border: 0; border-radius: var(--r-full);
  background: none; color: var(--more-fg); -webkit-text-fill-color: var(--more-fg);
  font-size: var(--fs-13); line-height: 1; cursor: pointer;
}
.more-item svg { font-size: var(--ic-20); flex: 0 0 auto; }
.more-item.on, .more-item:active { background: var(--more-on); }
.more-sep { width: .0625rem; height: .875rem; flex: 0 0 auto; background: var(--line); }
.more-pane {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 61;
  width: max-content; min-width: 12rem; max-width: calc(100vw - 1rem);
  max-height: calc(100dvh - 8rem); overflow-x: hidden; overflow-y: auto;
  padding: 6px; border-radius: 14px;
  background: var(--more-bg); box-shadow: var(--more-shadow);
}
.more-langs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; }
.more-langs button {
  border: 0; border-radius: var(--r-full); padding: 8px 12px;
  background: none; color: var(--more-fg); -webkit-text-fill-color: var(--more-fg);
  font-size: var(--fs-14); line-height: 1.3; cursor: pointer;
}
.more-langs button.on, .more-langs button:active { background: var(--more-on); }
.more-pane .fold-toggle {
  display: flex; align-items: center; gap: 12px;
  width: 100%; white-space: nowrap; padding: 12px; border: 0; border-radius: 10px;
  background: none; color: var(--more-fg); -webkit-text-fill-color: var(--more-fg);
  font-size: var(--fs-16); line-height: 20px; text-align: left; cursor: pointer;
}
.more-pane .fold-toggle.on, .more-pane .fold-toggle:active { background: var(--more-on); }
/* 议题 212 卡 3（用户 2026-11-03 拍板）：搜索行＝伴游按钮 ＋ 缩短的搜索框 ＋ 筛选按钮；放大镜仍贴在搜索框右内侧。 */
.searchwrap {
  display: flex; gap: 8px; align-items: center;
  padding: 8px 14px;
  background: var(--bg);
  position: relative;
}
.search-field { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.searchwrap .search-escort { flex: 0 0 auto; min-height: 2.5rem; border-radius: var(--r-full); padding: 0 12px; }
.searchwrap .search-filter { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; color: var(--text); -webkit-text-fill-color: var(--text); }
.searchwrap .search-filter.on { color: var(--c-link); -webkit-text-fill-color: var(--c-link); }
.searchwrap input {
  flex: 1; min-width: 0; width: auto; background: var(--field-bg); border: 0; border-radius: 10px; padding: 10px 40px 10px 12px;
  box-shadow: inset 0 0 0 1px var(--field-ring);
  font-size: var(--fs-16); line-height: var(--lh-16); letter-spacing: 0;
  color: var(--text); -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  ime-mode: active;
  -webkit-user-select: text;
  user-select: text;
}
.searchwrap input::placeholder {
  color: var(--dim); -webkit-text-fill-color: var(--dim); opacity: 1;
}
.searchwrap .search-go {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 2.5rem; height: 2.5rem; padding: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; box-shadow: none; border-radius: 0;
  color: var(--muted); -webkit-text-fill-color: var(--muted); cursor: pointer;
}
.searchwrap .search-go svg { font-size: var(--ic-20); }
.searchwrap .search-go:active { color: var(--text); -webkit-text-fill-color: var(--text); }
.cats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.cats button {
  border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12);
  font-weight: var(--fw); letter-spacing: 0;
  padding: 10px 3px 9px; white-space: normal;
}
.cats button.on {
  color: var(--text); -webkit-text-fill-color: var(--text); font-weight: var(--fw-semibold);
  box-shadow: inset 0 -2px 0 var(--text);
}
.brand {
  display: flex; align-items: center; gap: 6px;
  flex: 0 0 auto; min-width: 0;
  font-weight: var(--fw-bold);
  font-size: var(--fs-18); line-height: 22px; letter-spacing: -0.3px;
  white-space: nowrap;
}
.brand img { width: 1.625rem; height: 1.625rem; border-radius: 8px; object-fit: cover; display: block; }
.brand b { font-weight: var(--fw-bold); }
.lang-slot { position: relative; flex: 0 0 auto; }
.lang-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
  width: max-content; min-width: 0; max-width: calc(100vw - 1rem); padding: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px var(--c-black-35);
}
.lang-pop button {
  display: block; width: auto; white-space: nowrap; border: 0; background: none; cursor: pointer;
  text-align: left; border-radius: 8px; padding: 8px 10px;
  font-size: var(--fs-14); line-height: 18px; color: var(--text);
}
.lang-pop button.on, .lang-pop button:active { background: var(--raised); }
.locate-slot { position: relative; flex: 0 0 auto; }
.icon-btn.locate .locate-dot {
  position: absolute; right: 7px; bottom: 7px; z-index: 2; pointer-events: none;
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--c-gray-54); border: 1.5px solid var(--bg);
}
.icon-btn.locate .locate-dot.on { background: var(--ok); }
.locate-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  width: max-content;
  min-width: 0;
  max-width: calc(100vw - 1rem);
  padding: 10px 12px;
  text-align: left;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--c-black-35);
}
.locate-pop p {
  margin: 0; width: max-content; max-width: calc(100vw - 2.5rem);
  white-space: normal; user-select: text; -webkit-user-select: text;
  font-size: var(--fs-14); line-height: 1.45;
}
.shell.ig-shell { padding-top: calc(52px + env(safe-area-inset-top, 0px)); }
.ig-top {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--max), 100%);
  z-index: 30;
  display: flex; align-items: center; gap: 4px;
  min-height: calc(3rem + env(safe-area-inset-top, 0px));
  padding: calc(2px + env(safe-area-inset-top, 0px)) 8px 2px;
  background: var(--c-ink-bg-92);
  border-bottom: 1px solid var(--line);
}
.ig-side { width: 2.5rem; flex: 0 0 40px; }
.ig-top .icon-btn { width: 2.5rem; height: 2.5rem; flex: 0 0 40px; }
.ig-top .icon-btn svg { font-size: var(--ic-24); }
.ig-title {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: var(--fs-16); line-height: 22px; font-weight: 700;
}
.ig-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-search { padding: 8px 16px 4px; }
.ig-search input {
  width: 100%; box-sizing: border-box;
  background: var(--surface); border: 0; border-radius: 10px;
  padding: 9px 12px; font-size: var(--fs-15); line-height: 20px;
}
.ig-notes {
  display: flex; gap: 14px; overflow-x: auto; padding: 12px 16px 6px;
  scrollbar-width: none;
}
.ig-notes::-webkit-scrollbar { display: none; }
.ig-notes a { flex: 0 0 74px; width: 4.625rem; text-align: center; color: var(--text); }
.ig-notes img, .ig-notes .act-ph {
  width: 3.875rem; height: 3.875rem; border-radius: 50%; object-fit: cover;
  display: block; margin: 0 auto 6px; background: var(--surface);
}
.ig-notes span {
  display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: var(--fs-12); line-height: 16px;
}
.ig-sec {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 4px; font-size: var(--fs-16); line-height: 22px; font-weight: 700;
}
.ig-sec button {
  border: 0; background: none; color: var(--c-link); font-weight: 600; font-size: var(--fs-15); cursor: pointer;
}
.ig-sec button.on { color: var(--text); }
.thread.ig-thread { align-items: center; padding: 10px 16px; border-bottom: 0; position: relative; }
.ig-thread-av { position: relative; flex: 0 0 56px; width: 3.5rem; height: 3.5rem; }
.thread.ig-thread img, .thread.ig-thread .act-ph { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; display: block; }
.ig-thread-mid { flex: 1; min-width: 0; padding-top: 0; }
.ig-thread-mid b { display: block; font-size: var(--fs-14); line-height: 18px; font-weight: 600; }
.thread.unread .ig-thread-mid b { font-weight: 700; }
.ig-thread-mid .preview { color: var(--muted); font-size: var(--fs-13); line-height: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.ig-thread-online { color: var(--muted); font-size: var(--fs-12); line-height: 16px; margin-top: 2px; }
.ig-unread {
  flex: 0 0 8px; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--c-link); margin-left: 8px;
}
.ig-profile { padding: 0 0 24px; }
.ig-head { display: flex; align-items: center; gap: 28px; padding: 16px 16px 8px; }
.ig-avatar { position: relative; width: 5.375rem; height: 5.375rem; flex: 0 0 86px; }
.ig-avatar img { width: 5.375rem; height: 5.375rem; border-radius: 50%; object-fit: cover; background: var(--surface); }
.ig-avatar .presence-dot { width: .875rem; height: .875rem; right: 4px; bottom: 4px; }
.ig-stats { flex: 1; display: flex; justify-content: space-around; text-align: center; }
.ig-stats b { display: block; font-size: var(--fs-16); line-height: 20px; font-weight: 700; }
.ig-stats span { display: block; margin-top: 2px; font-size: var(--fs-13); line-height: 16px; }
.ig-bio { margin: 0; padding: 4px 16px 0; font-size: var(--fs-14); line-height: 18px; white-space: pre-wrap; }
.ig-meta { margin: 4px 16px 0; color: var(--muted); font-size: var(--fs-13); line-height: 18px; }
.ig-meta + .ig-tabs { margin-top: 12px; }
.ig-actions { display: flex; gap: 8px; padding: 12px 16px; }
.ig-pill {
  flex: 1; height: 2rem; border: 0; border-radius: 8px;
  background: var(--surface); color: var(--text); -webkit-text-fill-color: var(--text);
  font-size: var(--fs-14); font-weight: 600; cursor: pointer;
}
.ig-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--line); }
.ig-tabs button {
  height: 2.75rem; border: 0; background: none; color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.ig-tabs button.on { color: var(--text); box-shadow: inset 0 -1px 0 var(--text); }
.ig-tabs svg { font-size: var(--ic-24); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.ig-grid .tile { min-height: 0; }
.ig-cell {
  position: relative; aspect-ratio: 1; overflow: hidden; background: transparent;
  border: 0; padding: 0; display: block; width: 100%;
}
.ig-cell img, .ig-cell video { width: 100%; height: 100%; object-fit: cover; }
.ig-cell-add {
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text);
  cursor: pointer;
}
.ig-cell-add svg { font-size: var(--ic-34); }
.ig-add-pill { margin: 4px 16px 12px; width: auto; min-width: 8.75rem; }
.ig-empty { padding: 28px 16px; text-align: center; }
.ig-empty-share { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 24px; }
.ig-empty-share .ig-pill { width: auto; min-width: 8.75rem; padding: 0 16px; }
.ig-menu {
  position: absolute; top: calc(100% + 4px); right: 8px; z-index: 40;
  width: max-content; min-width: 0; max-width: calc(100vw - 1rem);
  padding: 0; overflow: visible;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px var(--c-black-45);
}
.ig-menu button, .ig-menu a {
  display: block; width: auto; white-space: nowrap; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--line); padding: 14px 16px;
  font-size: var(--fs-15); line-height: 20px; color: var(--text); cursor: pointer;
}
.ig-menu button:last-child, .ig-menu a:last-child { border-bottom: 0; }
.ig-menu button.danger { color: var(--c-danger); }
.ig-menu p { margin: 0; padding: 14px 16px; color: var(--muted); font-size: var(--fs-14); }
.ig-about {
  position: fixed; inset: 0; z-index: 80;
  background: var(--c-black-55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.ig-about[hidden], .ig-menu[hidden] { display: none !important; }
.ig-about-card {
  width: min(21.25rem, 100%); max-height: 80vh; overflow: auto;
  background: var(--card); color: var(--text); border-radius: 16px;
  padding: 18px 16px 8px; text-align: center;
}
.ig-about-card h3 { margin: 0 0 12px; font-size: var(--fs-16); }
.ig-about-card img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; }
.ig-about-card .hint { text-align: left; }
.ig-about-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; background: none; border: 0; border-top: 1px solid var(--line);
  padding: 12px 2px; color: var(--text); font-size: var(--fs-14); cursor: pointer;
}
.ig-about-row svg { font-size: var(--ic-22); flex: 0 0 1em; }
.ig-about-row span { flex: 1; }
.ig-about-row b { font-weight: 600; }
/* 议题 212 第 3 步：行尾「›」换成图标后会被上面 .ig-about-row svg 的 22 像素字号套中，这里按文字大小收回（字号取所在文字的 0.7 倍，图标 1em 见方随之变小），和原符号大小接近 */
.ig-about-row b svg { font-size: .7em; flex: none; }
.ig-former { text-align: left; padding: 0 8px 8px 34px; }
.ig-former p { margin: 0 0 6px; font-size: var(--fs-14); }
.ig-about-card .ghost { width: 100%; margin-top: 4px; }
.care-row {
  display: flex; gap: 12px; overflow-x: auto; padding: 10px 14px 8px;
  border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.care-row::-webkit-scrollbar { display: none; }
.care-person { flex: 0 0 68px; text-align: center; color: var(--text); }
.care-ava {
  position: relative; display: block; width: 3.5rem; height: 3.5rem; margin: 0 auto 4px;
}
.care-person img, .care-person .act-ph {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; display: block; margin: 0;
  background: var(--surface);
}
.care-ava .presence-dot { width: .75rem; height: .75rem; right: 0; bottom: 0; }
.care-person b, .care-person small {
  display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: var(--fs-12); line-height: 16px; font-weight: 600;
}
.care-person small { color: var(--muted); font-weight: 400; }
.care-empty { margin: 8px 14px; }
.country-switch {
  position: relative;
  flex: 0 0 auto;
  width: 4.6em;
  z-index: 32;
}
.country-btn {
  position: relative;
  display: block;
  width: 4.6em;
  max-width: 4.6em;
  box-sizing: border-box;
  appearance: none; -webkit-appearance: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  font-size: var(--fs-12); line-height: 16px; font-weight: var(--fw-semibold);
  padding: 5px 14px 5px 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: left;
}
.country-btn::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 50%;
  width: .3125rem;
  height: .3125rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}
.country-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: max-content;
  min-width: 0;
  max-width: calc(100vw - 1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  z-index: 40;
  box-shadow: 0 8px 24px var(--c-black-45);
}
.country-opt {
  display: block;
  width: auto;
  white-space: nowrap;
  border: 0; background: none;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: var(--fs-13); line-height: 16px; font-weight: var(--fw-semibold);
}
.country-opt.on, .country-opt:active { background: var(--raised); }
.top-right {
  display: flex; align-items: center; gap: 0;
  flex: 0 0 auto; margin-left: auto;
}
/* 图标素材库（议题 212 第一期第 1 项）：所有图标由 js/src/00a-icons.js 出，大小跟着容器字号走，不写像素。pointer-events: none 让点击落在按钮上（22-photo-peek.js 用 e.target.id 判断按钮）。
   用 :where() 把优先级降到零：各处图标大小由容器或 svg 自己的 font-size 变量决定；:where 让这条优先级为零，任何按位置写的规则都能覆盖；inline-block 加居中对齐，让原来放符号、靠文字居中的按钮里图标也居中。 */
:where(svg.ic) { width: 1em; height: 1em; display: inline-block; vertical-align: middle; flex: none; pointer-events: none; }
.icon-btn, .ghost, .btn {
  border: 0; cursor: pointer; background: none;
}
.icon-btn {
  position: relative; width: 2rem; height: 2rem; color: var(--text); -webkit-text-fill-color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 32px;
}
.icon-btn svg { font-size: var(--ic-24); display: block; }
/* 议题 212 第 4 步（议题 206）：顶栏按钮框和图标随屏宽缩放。320 像素宽时按钮 32 像素、九颗合计 288 像素放得下；400 像素宽以上仍是按钮 40 像素、图标 28 像素。 */
.top .icon-btn { width: clamp(1.75rem, 10vw, 2.5rem); height: clamp(1.75rem, 10vw, 2.5rem); flex-basis: auto; }
.top .icon-btn svg { font-size: clamp(1.25rem, 7vw, 1.75rem); }
.icon-btn .dot {
  position: absolute; top: 5px; right: 5px;
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--c-badge-red); border: 1.5px solid var(--c-black);
  pointer-events: none;
}
.icon-btn.on { color: var(--text); -webkit-text-fill-color: var(--text); }
.icon-btn.star-on { color: var(--star-on); -webkit-text-fill-color: var(--star-fill); }
.star-btn {
  min-width: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text); -webkit-text-fill-color: var(--text);
}
.star-btn svg { font-size: var(--ic-22); display: block; }
.star-btn.on { color: var(--c-star); }
.pill {
  font-size: var(--fs-12); line-height: var(--lh-12); letter-spacing: 0;
  color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px;
}

.presence-dot {
  position: absolute; z-index: 2; pointer-events: none;
  width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--ok); border: 2px solid var(--bg);
}
.tile .badge {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  font-size: var(--fs-11); line-height: var(--lh-11); letter-spacing: 0;
  background: var(--c-black-70); border-radius: 6px; padding: 2px 6px;
}
.tile.blur img { filter: blur(10px); transform: scale(1.08); }
.tile.blur { background: var(--c-gray-10); min-height: 8.75rem; }
.tile .lock-cap {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-12); line-height: var(--lh-12); letter-spacing: 0;
  color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  text-shadow: 0 1px 4px var(--c-black);
}
.link { color: var(--c-link); font-size: var(--fs-16); line-height: var(--lh-15); }

.contacts {
  position: relative; margin: 16px 0 8px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow: hidden;
}
.c-head { font-size: var(--fs-13); line-height: var(--lh-13); letter-spacing: 0; color: var(--muted); margin-bottom: 8px; }
.c-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--fs-16); line-height: var(--lh-15);
}
.c-row span { color: var(--muted); }
.c-row b { font-weight: var(--fw-semibold); word-break: break-all; text-align: right; }
.contacts.locked .c-row b { filter: blur(6px); user-select: none; }
.contacts .lock {
  position: absolute; inset: 0; background: var(--c-black-72);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--c-white); -webkit-text-fill-color: var(--c-white);
}
.contacts .lock p { margin: 0; }

.explore {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  padding-bottom: 24px;
}
.ad-banner {
  grid-column: 1 / -1;
  position: relative;
  display: block;
  min-height: 7rem;
  background: var(--c-gray-10);
  overflow: hidden;
}
.ad-banner img {
  width: 100%;
  height: 8.25rem;
  object-fit: cover;
  display: block;
}
.ad-banner .ad-tag {
  position: absolute; left: 10px; top: 10px;
  background: var(--c-black-62); color: var(--c-white);
  font-size: var(--fs-11); line-height: var(--lh-11);
  border-radius: 4px; padding: 3px 6px;
}
.ad-banner .ad-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 12px 10px;
  background: linear-gradient(transparent, var(--c-black-78));
  font-size: var(--fs-16); line-height: var(--lh-15); font-weight: var(--fw-semibold);
}
.shop-list { padding: 0 0 24px; }
.search-lead {
  margin: 4px 14px 10px;
}
.shop-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  color: inherit;
}
.shop-card img, .shop-ph {
  width: 6rem; height: 4.5rem; object-fit: cover; border-radius: 10px; background: var(--c-gray-10);
}
.shop-card b { display: block; font-size: var(--fs-16); line-height: var(--lh-15); }
.shop-card small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-12); }
.shop-card p { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-13); line-height: var(--lh-13); }
.tile { position: relative; aspect-ratio: 1; background: var(--c-gray-07); }
button.tile {
  display: block; width: 100%; border: 0; padding: 0; margin: 0;
  color: inherit; font: inherit; cursor: pointer;
}
.tile.blur { cursor: pointer; }
.tile .lock-cap { pointer-events: none; }
.report-photo {
  display: block;
  margin: 6px 0 0;
  font-size: var(--fs-12);
  color: var(--dim);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .cap {
  position: absolute; left: 6px; bottom: 6px;
  font-size: var(--fs-12); line-height: var(--lh-12); letter-spacing: 0; font-weight: var(--fw-semibold);
  text-shadow: 0 1px 4px var(--c-black);
}

.tabs {
  /* 底栏同样固定，滚动时不用先滑回去才能换页。 */
  /* 议题 212 卡 3（DESIGN.md 第三节，用户 2026-11-03 拍板第一项）：百分之百全透明——没有底色、不模糊、不描边、没有阴影、没有小圆点；
     高 2.875rem（46px），五个图标 24 格均分；贴着安全区上沿，再加 --dock-lift（34-boot.js 按可视视口算出来，议题 231）。
     苹果 Safari（iOS 26.3 模拟器实测）：布局视口的下沿本来就在药丸工具栏上方约 13px，工具栏收起时视口变长、底栏跟着沉下去，
     所以这里不再额外留 10px，底栏到药丸的距离就是规范要的 8～13px。 */
  /* 议题 231（开发线-页面修复-030）：Stitch 原项目锁定 S-C「智能避障随动呼吸浮岛」，「同频吸附」看板定距 8pt、曲线 cubic-bezier(0.32, 0.72, 0, 1) 0.28s；
     iOS 26.3 模拟器实测布局视口下沿离药丸约 16pt，往下挪 6px，药丸展开时底栏离药丸约 10pt、收缩时约 6pt。
     往下挪的 6px（0.375rem）只对苹果手机（苹果平板不算，开发线-页面修复-033），写在下面 html.dock-ios 那条里；安卓、桌面底栏仍贴着屏幕底（开发线-页面修复-032，独立复核指出）。 */
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--dock-lift, 0px)); transform: translateX(-50%);
  width: min(var(--max), 100%);
  height: 2.875rem;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: transparent; border: 0; box-shadow: none; z-index: 40;
  transition: bottom .28s cubic-bezier(0.32, 0.72, 0, 1), transform .28s cubic-bezier(0.32, 0.72, 0, 1);
}
/* 议题 231（开发线-页面修复-031，用户 2026-11-04 定）：苹果手机上（34-boot.js 给 html 加 dock-ios，苹果平板不加，开发线-页面修复-033）底栏和 iOS 27 Safari 底部胶囊一样大：
   用户 iPhone 截图实测胶囊宽 384pt（屏幕 440pt，左右各留约 28pt）、高 47pt，所以宽为屏幕减 3.5rem（56px）、高 2.9375rem（47px）。
   往下滑 Safari 胶囊整条消失时 34-boot.js 加 dock-compact，底栏跟着滑出屏幕；胶囊回来时去掉，底栏一起回来。伴游子站底栏不跟着变。 */
html.dock-ios .tabs:not(.wb-tabs) {
  width: min(var(--max), calc(100% - 3.5rem)); height: 2.9375rem;
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--dock-lift, 0px) - 0.375rem);
}
html.dock-ios.dock-compact .tabs:not(.wb-tabs) {
  transform: translate(-50%, calc(100% + env(safe-area-inset-bottom, 0px) + 24px));
  pointer-events: none;
}
.tabs a {
  display: flex; align-items: center; justify-content: center;
  /* 用户 2026-11-04 选择框定：未选中图标日夜都用白色加黑色投影，压在照片上也看得清（配色与写法照 Stitch「真机 Safari 像素级原版底栏」看板）；
     原来的 --tab-off（日间 rgba(0,0,0,.45)、夜间 rgba(255,255,255,.40)）不再用于底栏。 */
  color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  filter: drop-shadow(0 2px 7px var(--c-black-85));
}
.tabs a.active {
  color: var(--accent); -webkit-text-fill-color: var(--accent);
  filter: drop-shadow(var(--accent-glow)) drop-shadow(0 2px 7px var(--c-black-85));
}
.tabs svg { font-size: var(--ic-24); }
/* 首页图标素材只有实心一版（DESIGN.md 第十节第 1 条）：未选中时改成线框。 */
.tabs a:not(.active) .ic-tabHome path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

.searchbar {
  display: flex; gap: 8px; padding: 10px 14px; align-items: center;
}
.hint.empty { padding: 24px 16px; text-align: center; }
.searchbar.geo {
  display: grid; grid-template-columns: 1fr 1fr 42px; gap: 6px;
}
.searchbar.geo select { min-width: 0; font-size: var(--fs-16); line-height: var(--lh-15); letter-spacing: 0; }
.searchbar.geo .locate {
  grid-column: 3; grid-row: 1 / -1;
  width: 100%; min-height: 2.75rem; padding: 0;
  background: var(--surface); border: 0; border-radius: 10px;
  color: var(--text); -webkit-text-fill-color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.searchbar.geo .locate svg { font-size: var(--ic-22); }
.searchbar.geo .locate.on { color: var(--c-link); }
.searchbar.geo .locate.busy { opacity: .55; }
.searchbar.geo .locate.busy svg { animation: hfspin .9s linear infinite; }
@keyframes hfspin { to { transform: rotate(360deg); } }
.mapwrap {
  position: relative;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--line);
  background: var(--c-gray-05);
}
#hfMap {
  width: 100%;
  height: 17.5rem;
}
.map-tools {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 3.25rem);
}
.map-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2rem; padding: 0 10px;
  background: var(--c-gray-07-92); color: var(--c-gray-96);
  border: 1px solid var(--line); border-radius: 8px;
  font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-semibold);
  cursor: pointer; text-decoration: none;
}
.map-btn svg { font-size: var(--ic-16); }
.map-hint {
  margin: 0; padding: 6px 14px 10px;
  color: var(--muted); font-size: var(--fs-11); line-height: var(--lh-11);
}
.map-pin {
  width: 2.25rem; height: 2.25rem; padding: 0; border: 2px solid var(--c-white);
  border-radius: 50%; overflow: hidden; background: var(--c-gray-07); cursor: pointer;
  box-shadow: 0 2px 8px var(--c-black-40);
}
.map-pin img { width: 100%; height: 100%; object-fit: cover; }
.map-pin.agent, .map-pin.shop { border-color: var(--c-pin-gold); }
.map-me {
  width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--c-link); border: 2px solid var(--c-white);
  box-shadow: 0 0 0 6px var(--c-link-25);
}
.maplibregl-popup-content {
  background: var(--c-gray-10); color: var(--c-gray-96); border-radius: 12px;
  padding: 10px 12px; box-shadow: 0 8px 24px var(--c-black-45);
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--c-gray-10); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--c-gray-10); }
.maplibregl-ctrl-attrib { font-size: var(--fs-10); }
.map-pop { min-width: 8.25rem; }
.map-pop b { display: block; font-size: var(--fs-16); line-height: var(--lh-15); }
.map-pop span { display: block; color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12); margin: 4px 0 8px; }
.map-pop a { color: var(--c-link); font-size: var(--fs-12); font-weight: var(--fw-semibold); margin-right: 8px; }
.lang {
  appearance: none; -webkit-appearance: none;
  display: block;
  width: auto;
  min-width: 4.6em;
  max-width: none;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  font-size: var(--fs-12); line-height: 16px; font-weight: var(--fw-semibold);
  padding: 6px 8px;
  text-align: center;
  text-align-last: center;
}
.searchbar input, .searchbar select, .composer input {
  flex: 1; background: var(--surface); color: var(--text); -webkit-text-fill-color: var(--text); border: 0; border-radius: 10px; padding: 10px 12px;
  font-size: var(--fs-16); line-height: var(--lh-16); letter-spacing: 0;
}
.tile .cap small { display: block; font-size: var(--fs-11); line-height: var(--lh-11); opacity: .88; font-weight: var(--fw); }
.hint.coming { color: var(--c-burn-yellow); }
.apply-form { text-align: left; }
.apply-form label {
  display: block; font-size: var(--fs-12); line-height: var(--lh-12); letter-spacing: 0; color: var(--muted); margin: 12px 0 4px;
}
.apply-form input, .apply-form select {
  width: 100%; background: var(--surface); color: var(--text); -webkit-text-fill-color: var(--text); border: 0; border-radius: 10px; padding: 10px 12px;
  font-size: var(--fs-16); line-height: var(--lh-16); letter-spacing: 0;
}
.apply-form .btn { width: 100%; margin-top: 16px; }
.apply-list { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: transparent;
  color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer;
  font-size: var(--fs-13); line-height: var(--lh-13); letter-spacing: 0; font-weight: var(--fw-semibold);
}
.chip.on { background: var(--chip-on); color: var(--chip-on-text); -webkit-text-fill-color: var(--chip-on-text); border-color: var(--chip-on); }
.hash-hints {
  display: flex; flex-wrap: nowrap; gap: 16px;
  overflow-x: auto; padding: 2px 14px 12px;
  background: var(--bg); scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hash-hints::-webkit-scrollbar { display: none; }
.hash-hint {
  flex: 0 0 auto; background: none; border: 0; padding: 0; margin: 0;
  color: var(--dim); -webkit-text-fill-color: var(--dim); cursor: pointer;
  font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw);
  white-space: nowrap;
}
.hash-hint.in, .hash-hint:active { color: var(--text); -webkit-text-fill-color: var(--text); }
.s-range { margin: 0 0 10px; }
.s-range-h {
  display: flex; justify-content: space-between; align-items: baseline;
  color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12);
}
.s-range-h b { color: var(--text); font-weight: var(--fw-semibold); }
.range-wrap { position: relative; height: 1.75rem; margin-top: 2px; }
.range-track, .range-fill {
  position: absolute; left: 0; right: 0; top: 13px; height: .1875rem;
  border-radius: 99px; background: var(--line); pointer-events: none;
}
.range-fill { right: auto; background: var(--text); }
.range-wrap input[type="range"] {
  position: absolute; left: 0; top: 0; width: 100%; height: 1.75rem; margin: 0;
  background: none; appearance: none; -webkit-appearance: none;
}
.range-wrap.dual input[type="range"] { pointer-events: none; }
.range-wrap:not(.dual) input[type="range"] { pointer-events: auto; }
.range-wrap input[type="range"]::-webkit-slider-runnable-track { height: .1875rem; background: transparent; }
.range-wrap input[type="range"]::-moz-range-track { height: .1875rem; background: transparent; }
.range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 1.125rem; height: 1.125rem; border-radius: 50%;
  background: var(--text); border: 0;
  box-shadow: 0 1px 4px var(--c-black-50);
  margin-top: -7px; cursor: pointer;
}
.range-wrap input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 1.125rem; height: 1.125rem; border-radius: 50%;
  background: var(--text); border: 0; cursor: pointer;
}
.sec-h {
  grid-column: 1 / -1;
  margin: 0; padding: 14px 14px 10px; background: var(--bg); color: var(--text);
  font-size: var(--fs-16); line-height: var(--lh-15); font-weight: var(--fw-semibold);
}

.profile { padding: 16px 16px 24px; }
.page-center,
.profile-me,
.apply-head { text-align: center; }
.page-center h1,
.profile-me h1,
.apply-head h1 { margin: 8px 0 0; }
.page-center .hint,
.page-center .auth-switch,
.page-center .legal-box,
.page-center .kicker,
.profile-me .hint,
.profile-me .auth-switch,
.profile-me .legal-box,
.apply-head .hint,
.apply-head .kicker { text-align: center; margin-left: auto; margin-right: auto; }
.page-center .legal-box,
.profile-me .legal-box { max-width: 36ch; text-align: center; }
.profile-me .who {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.profile-me .who-photo { margin: 0 auto; }
.profile-me .tags { justify-content: center; }
.profile-me .facts { margin-left: auto; margin-right: auto; max-width: 22.5rem; text-align: left; }
.page-center .actions,
.profile-me .actions { max-width: 20rem; margin-left: auto; margin-right: auto; }
.actions:has(> :only-child),
.actions-one { grid-template-columns: 1fr; max-width: 15rem; margin-left: auto; margin-right: auto; }
.who { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; }
.who img { width: 5.75rem; height: 5.75rem; border-radius: 50%; object-fit: cover; }
.who h1 { margin: 0; font-size: var(--fs-20); line-height: var(--lh-20); letter-spacing: 0; font-weight: var(--fw-bold); }
.at-id {
  margin-left: 6px;
  font-size: var(--fs-13);
  line-height: 1.2;
  font-weight: 500;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  letter-spacing: 0;
}
.who p { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-13); line-height: var(--lh-13); letter-spacing: 0; }
.bio { margin: 14px 0; font-size: var(--fs-16); line-height: var(--lh-15); color: var(--text); }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; width: auto; min-height: 2rem;
  border: 0; text-decoration: none; cursor: pointer;
  background: var(--c-link); color: var(--c-white); border-radius: 8px; padding: 7px 12px;
  font-size: var(--fs-14); line-height: 18px; letter-spacing: 0; font-weight: var(--fw-semibold);
}
.actions > .btn, .actions > a.btn,
.admin-acts > .btn, .fav-actions > .btn,
.pay-row > .btn, .map-pick > .btn, .map-pick > a.btn, .map-pick-links .btn { width: 100%; }
.map-pick-links { display: flex; flex-direction: column; gap: 8px; }
.btn.gray { background: var(--surface); color: var(--text); -webkit-text-fill-color: var(--text); }
.btn:disabled {
  background: var(--c-gray-77);
  color: var(--c-gray-35);
  -webkit-text-fill-color: var(--c-gray-35);
  pointer-events: none;
  cursor: not-allowed;
}
.hint { color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12); letter-spacing: 0; margin: 10px 0 0; }

.inbox { display: flex; flex-direction: column; min-height: calc(100svh - 8.375rem); }
.inbox-list { min-height: calc(100svh - 8.375rem); }
.thread {
  display: flex; gap: 12px; padding: 12px 14px; align-items: center;
  width: 100%; margin: 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: inherit; font: inherit; text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.thread:active, .thread.on { background: var(--surface); }
.thread img, .thread .admin-av, .thread .act-ph {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover;
  background: var(--surface); flex-shrink: 0; color: var(--text); -webkit-text-fill-color: var(--text);
}
.thread b { font-size: var(--fs-16); line-height: var(--lh-15); font-weight: var(--fw-semibold); letter-spacing: 0; }
.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.msgs { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bubble {
  width: fit-content;
  max-width: min(75%, 17.5rem);
  padding: 8px 12px;
  border-radius: 18px 18px 18px 4px;
  background: var(--raised);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  font-size: var(--fs-16);
  line-height: var(--lh-15);
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.bubble.me {
  margin-left: auto;
  border-radius: 18px 18px 4px 18px;
  background: var(--c-accent);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
}
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }

.plans { display: flex; flex-direction: column; gap: 10px; padding: 8px 14px 24px; }
.partner-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 12px 24px;
}
.partner-offer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
}
.partner-offer.featured { border-color: var(--text); }
.partner-offer h3 {
  margin: 0;
  font-size: var(--fs-15);
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.partner-offer .offer-note {
  margin: 0;
  font-size: var(--fs-12);
  line-height: 1.35;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.partner-offer .price {
  margin: 0;
  font-size: var(--fs-16);
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.partner-offer .btn {
  margin-top: auto;
  width: 100%;
  min-width: 0;
  padding: 8px 4px;
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
}
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.plan.featured { border-color: var(--text); }
.price { font-size: var(--fs-22); line-height: var(--lh-22); letter-spacing: 0; font-weight: var(--fw-bold); margin: 6px 0 10px; }
.price small { font-size: var(--fs-13); line-height: var(--lh-13); letter-spacing: 0; color: var(--muted); font-weight: var(--fw); }
.kicker { color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12); text-transform: uppercase; letter-spacing: .08em; }
.page { padding: 16px 14px 8px; text-align: center; }
.page h1 { margin: 0 0 8px; font-size: var(--fs-22); line-height: var(--lh-22); letter-spacing: 0; font-weight: var(--fw-bold); }
.page .hint,
.page .auth-switch,
.page .kicker { margin-left: auto; margin-right: auto; }
.page .legal-box { max-width: 36ch; margin-left: auto; margin-right: auto; text-align: center; }
.page .actions { max-width: 20rem; margin: 12px auto 0; }
.page > .btn,
.page > a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 10rem; margin: 12px auto 0;
}

.modal {
  position: fixed; inset: 0; background: var(--c-black-60); display: none;
  align-items: flex-end; justify-content: center; z-index: 80;
}
.modal.show { display: flex; }
.dialog {
  width: min(var(--max), 100%); background: var(--surface); color: var(--text); border-radius: 16px 16px 0 0;
  padding: 18px 16px 28px;
}
.modal.ig-confirm {
  align-items: center;
  padding: 24px;
  background: var(--c-black-55);
}
.modal.ig-confirm .ig-confirm-dialog {
  width: min(20rem, 100%);
  margin: 0;
  padding: 22px 0 0;
  border-radius: 14px;
  background: var(--panel);
  color: var(--panel-text);
  -webkit-text-fill-color: var(--panel-text);
  text-align: center;
  box-shadow: 0 8px 28px var(--c-black-28);
}
.modal.ig-confirm .ig-confirm-dialog h3 {
  margin: 0 20px 10px;
  font-size: var(--fs-18);
  line-height: 1.3;
  font-weight: 700;
  color: var(--panel-text);
  -webkit-text-fill-color: var(--panel-text);
}
.modal.ig-confirm .ig-confirm-dialog > p {
  margin: 0 22px 18px;
  font-size: var(--fs-13);
  line-height: 1.45;
  color: var(--c-gray-56);
  -webkit-text-fill-color: var(--c-gray-56);
}
.ig-confirm-actions {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.ig-confirm-actions button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 14px 16px;
  font-size: var(--fs-15);
  line-height: 1.3;
  cursor: pointer;
}
.ig-confirm-actions .ig-confirm-danger {
  color: var(--c-danger);
  -webkit-text-fill-color: var(--c-danger);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.ig-confirm-actions .ig-confirm-cancel {
  color: var(--panel-text);
  -webkit-text-fill-color: var(--panel-text);
  font-weight: 400;
}
html[data-theme="day"] .modal.ig-confirm .ig-confirm-dialog {
  background: var(--c-white);
  color: var(--c-gray-15);
  -webkit-text-fill-color: var(--c-gray-15);
}
html[data-theme="day"] .modal.ig-confirm .ig-confirm-dialog h3,
html[data-theme="day"] .ig-confirm-actions .ig-confirm-cancel {
  color: var(--c-gray-15);
  -webkit-text-fill-color: var(--c-gray-15);
}
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.pay-row > .btn[hidden] { display: none !important; }
.pay-row.one { grid-template-columns: 1fr; justify-items: center; }
.pay-row.one > .btn { width: min(15rem, 100%); }
.wechat-qr { display: block; width: min(17.5rem, 100%); margin: 12px auto; background: var(--c-white); }
.wechat-actions, .wechat-choices { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 8px 0; }
.wechat-actions .btn, .wechat-choices .btn { width: auto; min-width: 0; padding: 7px 16px; }
.wechat-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.modal#wechatGuideModal { z-index: 90; align-items: flex-end; }
.wechat-guide-dialog { max-height: min(88vh, 45rem); overflow: auto; }
.wechat-guide-shots { display: grid; gap: 12px; margin: 12px 0; }
.wechat-guide-shots figure { margin: 0; background: var(--c-gray-07); border-radius: 14px; overflow: hidden; }
.wechat-guide-shots img { width: 100%; display: block; background: var(--c-gray-07); }
.wechat-guide-shots figcaption { padding: 10px 12px 12px; font-size: var(--fs-13); line-height: 1.55; color: var(--text); background: var(--surface); }
.wx-voucher-card { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line, var(--c-gray-20)); border-radius: 14px; margin: 10px 0; }
.wx-voucher-card img { width: 100%; max-height: 15rem; object-fit: contain; background: var(--c-gray-07); border-radius: 10px; cursor: zoom-in; }
.wx-voucher-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wx-voucher-acts .btn.ok { background: var(--c-ok-bg); color: var(--c-ok-text); }
.wx-voucher-acts .btn.bad { background: var(--c-bad-bg); color: var(--c-bad-text); }
.wx-dm-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.map-pick .btn, .map-pick .ghost { display: flex; width: 100%; justify-content: center; margin-top: 8px; }

.gate {
  position: fixed; inset: 0; background: var(--bg); color: var(--text); z-index: 100;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.toast {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%);
  background: var(--c-gray-10); color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  border: 1px solid var(--c-gray-20); padding: 10px 14px; border-radius: 8px;
  display: none; z-index: 500; font-size: var(--fs-13); line-height: var(--lh-13); letter-spacing: 0;
  max-width: min(26.25rem, calc(100vw - 1.75rem)); text-align: left; white-space: normal;
}
.otp-note {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin: 8px 0 10px;
  color: var(--panel-text); -webkit-text-fill-color: var(--panel-text); font-size: var(--fs-13); line-height: 1.55;
  text-align: left;
}
.ghost { color: var(--muted); padding: 8px; }
footer.tiny { display: none; }

.apply-head h1 {
  font-size: var(--fs-22); line-height: var(--lh-22); font-weight: var(--fw-bold);
}
.page-center > .btn,
.page-center > a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 10rem; margin: 12px auto 0;
}
.login-dialog h3,
.login-dialog > .hint { text-align: center; }
.plan { text-align: left; }
.fav-tabs { justify-content: center; padding: 4px 14px 10px; }
.fav-list { padding: 0 0 24px; }
.fav-row {
  padding: 12px 14px 14px;
  border-bottom: 1px solid var(--line);
}
.fav-who {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px;
  align-items: center; color: inherit; text-decoration: none;
}
.fav-who img { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; }
.fav-who b { display: block; font-size: var(--fs-16); line-height: var(--lh-15); }
.fav-who small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12); }
.fav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.fav-lock { position: relative; min-height: 15rem; overflow: hidden; cursor: pointer; }
.fav-lock-rows { filter: blur(10px); pointer-events: none; user-select: none; -webkit-user-select: none; }
.fav-bar { display: block; width: 55%; height: .75rem; border-radius: 6px; background: var(--muted); opacity: .45; }
.fav-bar.short { width: 35%; margin-top: 8px; }
.fav-lock-tip { position: absolute; inset: 0; pointer-events: none; }
.fav-lock-tip span {
  position: sticky; top: 45vh; display: block; margin: 96px auto 0; width: max-content; max-width: calc(100% - 3rem);
  text-align: center; color: var(--text); font-size: var(--fs-16); line-height: var(--lh-15); font-weight: 700;
  text-shadow: 0 1px 10px var(--bg);
}
.daddy-who {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px;
  align-items: center; margin-bottom: 8px;
}
.daddy-who img, .daddy-who .admin-av {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; background: var(--c-gray-10);
}
.daddy-who h2 { margin: 4px 0 0; }
.daddy-note {
  display: block; width: calc(100% - 1.75rem); margin: 0 14px 8px;
  text-align: left; background: var(--panel); color: var(--panel-text); -webkit-text-fill-color: var(--panel-text);
  border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; cursor: pointer;
}

.lab { padding: 16px 14px 32px; }
.lab h1 { margin: 6px 0 8px; font-size: var(--fs-22); line-height: var(--lh-22); letter-spacing: 0; font-weight: var(--fw-bold); }
.lab .card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; margin: 12px 0;
}
.lab input, .dialog input, .dialog select, .dialog textarea, .profile input, .profile select, .profile textarea, .admin-shell input, .admin-shell select, .admin-shell textarea, .login-page input, .login-page select, .login-page textarea {
  width: 100%; background: var(--field); color: var(--text); -webkit-text-fill-color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; margin: 8px 0;
  font-size: var(--fs-16); line-height: var(--lh-16); letter-spacing: 0;
}
.dialog textarea, .profile textarea, .admin-shell textarea { min-height: 4.5rem; resize: vertical; }
.login-dialog {
  max-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.gate-check { min-height: 4.0625rem; margin: 8px 0 4px; }
#profileModal { align-items: stretch; }
#profileModal .dialog {
  border-radius: 0;
  min-height: 100dvh;
  max-height: 100dvh;
}
/* 左侧固定必填步骤，正文给圆钮留出空位，不挡字。 */
.profile-edit { padding: calc(52px + env(safe-area-inset-top, 0px) + 12px) 16px 36px calc(clamp(22px, 4vmin, 40px) + 24px); }
.profile-geo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.profile-geo #meCountry { grid-column: 1 / -1; }
.live-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 8px;
}
.live-head .field-label { margin: 0; }
.locate-mini {
  width: 2.25rem; height: 2.25rem; border: 0; border-radius: 10px;
  background: var(--surface); color: var(--text); -webkit-text-fill-color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.locate-mini svg { font-size: var(--ic-20); display: block; }
.locate-mini.busy { opacity: .55; }
.locate-mini.busy svg { animation: hfspin .9s linear infinite; }
.birthday-row {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 6px;
}
.lang-row {
  display: grid; grid-template-columns: 1fr minmax(108px, 34%);
  gap: 6px; align-items: start;
}
.lang-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.lang-chips label {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--chip); color: var(--chip-text); -webkit-text-fill-color: var(--chip-text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 10px; font-size: var(--fs-12); line-height: var(--lh-12); cursor: pointer;
}
.lang-chips label.on { background: var(--chip-on); color: var(--chip-on-text); -webkit-text-fill-color: var(--chip-on-text); border-color: var(--chip-on); }
.lang-chips input { width: .875rem; height: .875rem; margin: 0; }
.lang-row select { min-width: 0; }
.purpose-group { margin: 10px 0; }
.purpose-group h4 {
  margin: 0 0 6px; color: var(--muted);
  font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-semibold);
}
.purpose-list { display: flex; flex-wrap: wrap; gap: 6px; }
.purpose-list label {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--chip); color: var(--chip-text); -webkit-text-fill-color: var(--chip-text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 10px; font-size: var(--fs-12); line-height: var(--lh-12); cursor: pointer;
}
.purpose-list label.on { background: var(--chip-on); color: var(--chip-on-text); -webkit-text-fill-color: var(--chip-on-text); border-color: var(--chip-on); }
.purpose-list input { width: .875rem; height: .875rem; margin: 0; }
.purpose-daddy {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 8px 0 4px;
}
.purpose-daddy label {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--chip); color: var(--chip-text); -webkit-text-fill-color: var(--chip-text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 10px; font-size: var(--fs-12); line-height: var(--lh-12); cursor: pointer;
}
.purpose-daddy label.on { background: var(--chip-on); color: var(--chip-on-text); -webkit-text-fill-color: var(--chip-on-text); border-color: var(--chip-on); }
.purpose-daddy input { width: .875rem; height: .875rem; margin: 0; }
.purpose-daddy small { color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12); }
/* 话题下拉（2026-10-22 定稿「分段条＋浮动竖向滚轮」，js/src/19-account.js purposeFields）：6 个板块连成一条圆角长条，永远同色；点一个，话题以竖向滚轮浮在板块旁边（无外框、无背景）。
   只用已有颜色变量；类名不叫 .purpose-list，「寻找」和夜间资料页覆盖都碰不到。#mePurposes 是滚轮的定位容器。
   板块箭头与滚轮勾从素材库来（议题 212 第五批）：箭头是 chevronDown，展开时同一支转 180 度；勾是 check，只在选中时显示。 */
#mePurposes { position: relative; }
.topic-bar {
  display: flex; overflow-x: auto; margin: 6px 0 8px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--chip); scrollbar-width: none;
}
.topic-bar::-webkit-scrollbar { display: none; }
.topic-board {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-height: 1.75rem;
  padding: 2px 4px; border: 0; border-radius: 999px; background: transparent;
  color: var(--chip-text); -webkit-text-fill-color: var(--chip-text);
  font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-semibold);
  white-space: nowrap; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.topic-board .ic-chevronDown { font-size: var(--fs-10); opacity: .6; }
.topic-board[aria-expanded="true"] .ic-chevronDown { transform: rotate(180deg); }
.topic-board:focus-visible { outline: 2px solid var(--topic-text); outline-offset: -2px; }
.topic-board:focus:not(:focus-visible) { outline: none; }
.topic-wheel {
  position: absolute; z-index: 5; isolation: isolate; width: max-content; height: 10.625rem; overflow: hidden;
  border: 0; box-shadow: none; border-radius: 12px; padding: 4px 10px;
  background: transparent; /* 用户 2026-10-23 定：去掉外层底框，每张话题卡自带底色；--wheel-bg 变量保留未用 */
}
/* 每行一张卡（span），卡只比字大一圈；离中心越远横向越窄越淡（JS scaleTopicWheel）；左右内距对称 6px（用户 2026-10-23 定） */
.topic-wheel { padding-left: 0; padding-right: 0; }
.topic-wheel[hidden] { display: none !important; }
/* 滚动容器（内层列表）：上下渐隐遮罩已去掉，远端卡的淡化只靠 JS scaleTopicWheel 给每张卡的 opacity（用户 2026-10-23 定）；左右 6px 写在这条简写里，别再单独写 padding-left/right，会被这条简写盖掉（2026-10-23） */
.topic-wheel-list {
  position: relative; height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; padding: 68px 6px;
}
.topic-wheel-list::-webkit-scrollbar { display: none; }
.topic-wheel label {
  position: relative; display: block; height: 2.125rem; line-height: 34px; text-align: center; white-space: nowrap;
  scroll-snap-align: center; cursor: pointer; user-select: none; font-size: var(--fs-14);
  color: var(--chip-text); -webkit-text-fill-color: var(--chip-text); transition: transform .08s, opacity .08s;
  transform-origin: center center;
}
.topic-wheel label > span { display: inline-block; height: 1.625rem; line-height: 26px; padding: 0 8px; border-radius: 8px; background: var(--chip); box-shadow: none; }
.topic-wheel label.mid > span { box-shadow: 0 0 0 1.5px var(--text); }
.topic-wheel label.on > span { background: var(--topic-bg); color: var(--topic-text); -webkit-text-fill-color: var(--topic-text); font-weight: var(--fw-semibold); }
.topic-wheel label > span .ic-check { display: none; }
.topic-wheel label.on > span .ic-check { display: inline-block; margin-left: .2em; }
.topic-wheel input { position: absolute; left: 0; top: 0; width: .0625rem; height: .0625rem; margin: 0; opacity: 0; }
/* 自填话题（话题改版第 1 期）：标题下的蓝色标签行 + 「# 输入框 | 确认」一行。颜色变量在 :root 与白天主题段。 */
.topic-chips { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 6px 0 8px; }
.topic-chips:empty { display: none; }
/* 【开发-08】资料编辑页（#profileStep-purpose）里的蓝色已选行空着也占一行高（= .topic-chip 的 24px），勾选前后下面的滚轮不跳。折成两行时仍会再下推一行。 */
#profileStep-purpose #meTopicChips { min-height: 1.5rem; }
#profileStep-purpose #meTopicChips:empty { display: flex; }
.topic-chip {
  display: inline-flex; align-items: center; max-width: 100%; min-height: 1.5rem;
  padding: 0; border-radius: 0; background: none;
  color: var(--topic-text); -webkit-text-fill-color: var(--topic-text);
  font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-semibold);
}
.topic-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 只读标签（自填话题关闭时，js/src/20-login.js topicReadonlyChipsHtml）没有「×」，右边补回 12px，文字不被裁。 */
.topic-chip-ro { padding-right: 0; }
/* 「×」按钮本身 40×40，用负外边距收进 32px 高的标签里，点击区域不缩小。 */
.topic-chip-x {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 1.5rem; height: 1.5rem; margin: 0 0 0 2px; padding: 0;
  border: 0; border-radius: 999px; background: transparent;
  color: inherit; -webkit-text-fill-color: currentColor; font-size: var(--fs-18); line-height: 1; cursor: pointer;
}
.topic-chips-view { display: inline-flex; vertical-align: middle; margin: 0 0 0 4px; gap: 6px; }
.topic-chip-view { min-height: 0; padding: 2px 10px; font-weight: 400; }
.topic-add { display: flex; align-items: stretch; gap: 8px; margin: 8px 0; }
.topic-input {
  flex: 0 0 75%; min-width: 0; display: flex; align-items: center;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--field, transparent); cursor: text;
}
.topic-input:focus-within { border-color: var(--topic-text); }
.topic-hash {
  flex: 0 0 auto; margin-right: 4px; color: var(--topic-text); -webkit-text-fill-color: var(--topic-text);
  font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-semibold); user-select: none; -webkit-user-select: none;
}
/* 用 id 压过 .profile input 与夜间 .profile-edit input 的通用外框，外框由 .topic-input 画。 */
.topic-input input#meTopicCustom {
  flex: 1 1 auto; width: auto; min-width: 0; margin: 0; padding: 10px 0;
  border: 0; border-radius: 0; background: transparent; outline: none; box-shadow: none;
}
.topic-add-btn {
  flex: 1 1 auto; min-width: 0; min-height: 2.75rem; padding: 0 8px;
  border: 1px solid var(--topic-text); border-radius: 10px;
  background: var(--topic-bg); color: var(--topic-text); -webkit-text-fill-color: var(--topic-text);
  font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-semibold); cursor: pointer;
}
html:not([data-theme="day"]) .profile-edit .topic-input { background: var(--c-gray-16); border-color: var(--c-gray-54); }
html:not([data-theme="day"]) .profile-edit .topic-input:focus-within { border-color: var(--topic-text); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; align-items: center; }
.tag-label {
  color: var(--muted);
  font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-semibold);
  margin-right: 2px;
}
.tag {
  background: var(--raised); border-radius: 999px; padding: 3px 8px;
  font-size: var(--fs-11); line-height: var(--lh-11); color: var(--ink); -webkit-text-fill-color: var(--ink);
}
.tile-tags {
  position: absolute; left: 6px; top: 6px; right: 6px;
  font-size: var(--fs-11); line-height: 13px; font-weight: 600;
  text-shadow: 0 1px 4px var(--c-black); color: var(--c-white);
}
.ascii-pass {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  ime-mode: disabled;
}
.login-page {
  width: min(30rem, 100%);
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.welcome-join,
.set-pass-page {
  width: 100%;
  max-width: none;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-top: 67px;
}
.welcome-join-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 8px 32px;
  text-align: center;
}
.welcome-join-copy {
  margin: 0;
  max-width: 22em;
  font-size: var(--fs-18);
  line-height: 1.7;
  font-weight: 600;
}
.welcome-join-count {
  margin: 0;
  font-size: var(--fs-28);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.welcome-join-btn {
  width: auto;
  min-width: 13.75rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 10px 24px;
}
.set-pass-page .pass-line {
  width: min(20rem, 100%);
}
.welcome-home { padding-top: 28px; text-align: center; }
.welcome-home h1 {
  font-size: var(--fs-28); line-height: 1.3; margin: 18px 0 8px;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Noto Sans SC", sans-serif;
}
.welcome-stage { position: relative; height: 17.5rem; margin: 8px auto 0; max-width: 21.25rem; }
.welcome-card {
  position: absolute; border-radius: 28px; background-size: cover; background-position: center;
  box-shadow: 0 16px 40px var(--c-black-18);
}
.welcome-card.back-l {
  width: 9.375rem; height: 13.125rem; left: 8px; top: 36px; transform: rotate(-10deg);
  background-image: url("https://images.unsplash.com/photo-1511632765486-a01980e01a18?auto=format&fit=crop&w=600&q=70");
}
.welcome-card.back-r {
  width: 9.375rem; height: 13.125rem; right: 8px; top: 28px; transform: rotate(9deg);
  background-image: url("https://images.unsplash.com/photo-1521017432531-fbd92d768814?auto=format&fit=crop&w=600&q=70");
}
.welcome-card.front {
  width: 11rem; height: 14.75rem; left: 82px; top: 8px;
  background-image: url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=700&q=70");
}
.welcome-dot { position: absolute; font-size: var(--fs-22); }
.welcome-dot.heart { left: 18px; top: 18px; color: var(--c-heart-pink); }
.welcome-dot.plane { right: 22px; bottom: 18px; color: var(--c-plane-blue); }
.welcome-line { margin: 0 0 18px; color: var(--muted); font-size: var(--fs-16); }
.welcome-start, .welcome-have { display: block; width: 100%; max-width: 26.25rem; margin: 0 auto 10px; border-radius: 12px; min-height: 3rem; }
.welcome-home .minor-notice { text-align: left; margin-top: 22px; }
.login-page h1, .ig-mark {
  margin: 8px 0 12px;
  text-align: center;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: var(--fs-24);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
}
.welcome-home h1 {
  font-size: var(--fs-28); line-height: 1.3; margin: 18px 0 8px;
}
.ig-entry { margin: 0 0 16px; text-align: center; font-size: var(--fs-16); line-height: 1.6; }
.ig-entry .link { font-size: var(--fs-16); font-weight: 600; padding: 0 2px; }
.avatar-pick {
  width: 6rem; height: 6rem; margin: 8px auto 16px; border-radius: 50%;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); cursor: pointer; position: relative;
}
.avatar-pick img { width: 100%; height: 100%; object-fit: cover; }
.avatar-pick span { font-size: var(--fs-32); color: var(--muted); }
.avatar-pick input { position: absolute; width: .0625rem; height: .0625rem; opacity: 0; }
.shot-composer.is-avatar .cropper-view-box,
.shot-composer.is-avatar .cropper-face {
  border-radius: 50%;
}
html:not([data-theme="day"]) .profile-edit input:not([type=checkbox]):not([type=file]):not([type=hidden]),
html:not([data-theme="day"]) .profile-edit select,
html:not([data-theme="day"]) .profile-edit textarea,
html:not([data-theme="day"]) .profile-edit .gender-card,
html:not([data-theme="day"]) .profile-edit .lang-chips label,
html:not([data-theme="day"]) .profile-edit .purpose-list label {
  background: var(--c-gray-16);
  border: 1px solid var(--c-gray-54);
  color: var(--c-gray-96);
  -webkit-text-fill-color: var(--c-gray-96);
}
.login-page h2 { margin: 0 0 8px; text-align: center; font-size: var(--fs-20); }
.minor-notice {
  margin: 8px 0 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.auth-fields { margin-top: 4px; }
.login-page .auth-go,
.login-dialog .auth-go,
.admin-shell .auth-go {
  display: flex;
  width: 100%;
  min-height: 2.75rem;
  margin: 14px 0 6px;
  padding: 12px 16px;
  font-size: var(--fs-16);
  line-height: 20px;
}
.minor-notice p {
  margin: 0;
  font-size: var(--fs-17);
  line-height: 1.65;
}
.minor-notice p + p { margin-top: 18px; }
.minor-notice .drop {
  font-size: 1.85em;
  font-weight: 700;
  line-height: 1;
  margin-right: 2px;
}
.login-dialog input[type="email"],
.login-page input[type="email"],
.login-dialog input[type="text"],
.login-page input[type="text"],
.admin-shell input[type="text"],
.pass-line {
  height: 2.75rem;
  box-sizing: border-box;
}
.pass-line {
  position: relative;
  margin: 8px 0;
}
.pass-line .ascii-pass {
  width: 100%;
  height: 2.75rem;
  margin: 0;
  padding: 0 44px 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: var(--fs-16);
  line-height: 44px;
  letter-spacing: 0.22em;
  -webkit-text-security: disc;
}
.pass-line .ascii-pass.shown {
  -webkit-text-security: none;
  letter-spacing: 0;
}
.pass-line .ascii-pass::placeholder {
  -webkit-text-security: none;
  letter-spacing: 0;
  font-size: var(--fs-16);
}
.pass-eye {
  position: absolute;
  top: 0;
  right: 4px;
  width: 2.5rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-gray-56);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}
html[data-theme="night"] .pass-eye,
html:not([data-theme="day"]) .pass-eye { color: var(--c-gray-66); }
.pass-eye svg { font-size: var(--ic-24); display: block; }
.home-share-tip[hidden] { display: none !important; }
.home-share-tip {
  position: fixed;
  left: 50%;
  /* 落在底部导航上面再空 12px，不挡导航五个按钮（用户 2026-10-29 定）。
     议题 212 卡 3：底栏改成贴安全区、高 46px，所以是 3.625rem（58px）加安全区，再跟着 --dock-lift 一起抬。 */
  bottom: calc(3.625rem + env(safe-area-inset-bottom, 0px) + var(--dock-lift, 0px));
  z-index: 120;
  width: min(24.5rem, calc(100vw - .75rem));
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(22px) scale(.86);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 10px 24px var(--c-black-28));
}
.home-share-tip.show {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  transition: transform .58s cubic-bezier(.22, 1.18, .36, 1), opacity .28s ease-out;
}
.home-share-bubble {
  width: 100%;
  background: var(--c-white-92);
  color: var(--c-gray-07);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  padding: 14px 14px 12px;
  text-align: center;
  /* 小屏放不下（苹果那版四步说明）时气泡内部滚动，不顶出屏幕上沿、不盖顶栏：减去离底 84px、箭头 10px、顶栏约 64px。 */
  max-height: calc(100vh - 9.875rem - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px));
  max-height: calc(100dvh - 9.875rem - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
html:not([data-theme="day"]) .home-share-bubble {
  background: var(--c-share-bg);
  color: var(--c-share-text);
}
.home-share-lead {
  margin: 0 0 8px;
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.35;
}
.home-guide-steps {
  margin: 0 0 10px;
  padding-left: 0;
  list-style: none;
  text-align: left;
  line-height: 1.45;
  font-size: var(--fs-13);
  opacity: .92;
}
.home-guide-steps li {
  margin: 7px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-guide-steps li span:first-child { flex: 1; min-width: 0; }
.home-guide-ico { font-size: var(--ic-26); flex: 0 0 1em; color: var(--c-system-blue); }
.home-guide-switch {
  flex: 0 0 46px;
  width: 2.875rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--c-switch-green);
  position: relative;
  display: inline-block;
}
.home-guide-switch i {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: 0 1px 3px var(--c-black-25);
}
.home-guide-addword {
  flex: 0 0 auto;
  color: var(--c-system-blue);
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1;
}
/* 议题 204：提示窗里「添加到主屏幕」按钮带 hidden 属性，但 .btn 的 display: inline-flex 压过了浏览器默认的隐藏，所以看得见；这里让 hidden 真的隐藏。 */
.home-share-tip .btn[hidden] { display: none; }
.home-share-skip {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: none;
  color: inherit;
  opacity: .55;
  font-size: var(--fs-13);
  cursor: pointer;
}
.home-share-arrow {
  width: 1rem;
  height: .625rem;
  margin-top: -1px;
  background: var(--c-white-92);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
html:not([data-theme="day"]) .home-share-arrow { background: var(--c-share-bg); }
@media (prefers-reduced-motion: reduce) {
  .home-share-tip.show { transition: none; }
}
.pass-eye .eye-shut { display: none; }
.pass-eye.shown .eye-open { display: none; }
.pass-eye.shown .eye-shut { display: block; }
.lab pre, #labLog {
  background: var(--c-gray-07); border-radius: 8px; padding: 10px;
  overflow: auto; font-size: var(--fs-12); color: var(--c-log-green); white-space: pre-wrap;
}

@media (min-width: 900px) {
  body { background: var(--bg); }
  .shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

.ig-verified {
  display: inline-flex; width: .9375rem; height: .9375rem; margin: 0 2px -2px;
  vertical-align: middle;
}
.ig-verified svg { width: 100%; height: 100%; display: block; }
.ig-verified.on-story {
  position: absolute; right: 6px; bottom: 18px; width: 1rem; height: 1rem;
  margin: 0; background: var(--c-black); border-radius: 50%;
}
.ig-verified.on-avatar {
  position: absolute; right: 2px; bottom: 2px; width: 1.25rem; height: 1.25rem;
  margin: 0; background: var(--c-black); border-radius: 50%;
}
.who-photo { position: relative; }
.who-photo img { width: 5.75rem; height: 5.75rem; border-radius: 50%; object-fit: cover; }
.cap .ig-verified { width: .8125rem; height: .8125rem; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.seg .chip { text-align: center; }
.agree {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 10px 0 8px; color: var(--muted);
  font-size: var(--fs-12); line-height: var(--lh-12);
}
.agree input { width: 1.125rem; height: 1.125rem; margin: 1px 0 0; flex: 0 0 auto; }
.legal-box {
  max-height: 12.5rem; overflow: auto;
  white-space: pre-wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin: 8px 0;
  color: var(--panel-text); -webkit-text-fill-color: var(--panel-text);
  font-size: var(--fs-12); line-height: 1.55;
  text-align: left;
}
.legal-box.short { max-height: none; }
.gate .legal-box { margin: 0 auto 18px; max-width: 40ch; }
.auth-switch {
  margin: 12px 0 0; color: var(--muted);
  font-size: var(--fs-13); line-height: var(--lh-13); text-align: center;
}
button.link, a.link {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--text); -webkit-text-fill-color: var(--text); font: inherit; font-weight: var(--fw-semibold);
  cursor: pointer; text-decoration: none;
}
.photo-pick {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; margin: 8px 0 12px; min-height: 7.5rem;
  background: var(--panel); border: 1px dashed var(--line); border-radius: 12px;
  padding: 12px; cursor: pointer; color: var(--panel-text); -webkit-text-fill-color: var(--panel-text);
  font-size: var(--fs-13); line-height: var(--lh-13);
}
.photo-pick img {
  width: 6rem; height: 6rem; object-fit: cover; border-radius: 12px;
  background: var(--c-black);
}
.album-row {
  display: grid;
  grid-template-columns: 1fr 32%;
  gap: 6px;
  align-items: start;
  margin: 8px 0 12px;
}
.album-row .photo-edit { margin: 0; }
.intro-slot-wrap { position: relative; }
.intro-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; width: 100%; aspect-ratio: 3 / 4;
  padding: 8px; border: 1px dashed var(--line); border-radius: 10px;
  background: var(--panel); color: var(--panel-text); -webkit-text-fill-color: var(--panel-text);
  text-align: center; cursor: pointer;
}
.intro-slot svg { font-size: var(--ic-28); flex: 0 0 auto; }
.intro-slot span { font-size: var(--fs-11); line-height: 14px; }
.intro-slot.has { padding: 0; overflow: hidden; }
.intro-slot img { width: 100%; height: 100%; object-fit: cover; }
.intro-slot-x {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  width: 1.5rem; height: 1.5rem; border: 0; border-radius: 50%;
  background: var(--c-black-70); color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  cursor: pointer; font-size: var(--fs-16); line-height: 24px;
  padding: 0; text-align: center; /* 议题 212 第 4 步：换成图标后按钮默认内边距把图标挤偏，清零居中 */
}
.photo-edit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0 12px;
}
.photo-edit-cell {
  position: relative;
  aspect-ratio: 3 / 4;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
}
.photo-edit-cell img,
.photo-edit-cell video,
.photo-edit-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0; padding: 0; background: transparent; color: inherit;
}
.photo-edit-img { display: block; cursor: pointer; }
.photo-edit-cell.add {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line);
  background: var(--panel); color: var(--panel-text); -webkit-text-fill-color: var(--panel-text);
  font-size: var(--fs-28); cursor: pointer;
}
.photo-edit-cell.add input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.photo-edit-cell.on { outline: 2px solid var(--text); outline-offset: -2px; }
.photo-edit-del {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  width: 1.5rem; height: 1.5rem; border: 0; border-radius: 50%;
  background: var(--c-black-70); color: var(--c-white); cursor: pointer;
  font-size: var(--fs-16); line-height: 24px;
  padding: 0; text-align: center; /* 议题 212 第 4 步：换成图标后按钮默认内边距把图标挤偏，清零居中 */
}
.form-h {
  margin: 16px 0 8px; padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-semibold);
}
.field-label {
  margin: 10px 0 0; color: var(--muted);
  font-size: var(--fs-12); line-height: var(--lh-12);
}
.field-optional {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 400;
}
.ig-looking,
.ig-topics {
  margin: 6px 16px 0;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  font-size: var(--fs-13);
  line-height: var(--lh-13);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.income-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.income-head .field-label { margin: 10px 0 0; }
.income-head b { color: var(--text); -webkit-text-fill-color: var(--text); font-size: var(--fs-16); line-height: 21px; font-weight: 600; }
.profile .income-split, .admin-shell .income-split {
  display: flex; gap: 8px; align-items: center;
}
.profile .income-split select, .admin-shell .income-split select {
  width: 7.375rem; flex: 0 0 118px;
}
.profile .income-split input, .admin-shell .income-split input {
  width: auto; flex: 1 1 auto; min-width: 0;
}
.gender-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.gender-card {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.25rem; border-radius: 10px; border: 1px solid var(--c-gray-54);
  background: var(--chip); color: var(--chip-text); -webkit-text-fill-color: var(--chip-text);
  font-size: var(--fs-13); text-align: center;
  width: auto; padding: 6px 14px; font: inherit; cursor: pointer;
}
.gender-card.on { background: var(--chip-on); color: var(--chip-on-text); -webkit-text-fill-color: var(--chip-on-text); border-color: var(--chip-on); }
button.gender-card:disabled { cursor: default; opacity: 1; }
.facts {
  margin: 10px 0 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.facts div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  font-size: var(--fs-13); line-height: var(--lh-13);
}
.facts div:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }
.facts b { font-weight: var(--fw-semibold); text-align: right; }
.code-wrap { margin-top: 8px; }
.admin-shell {
  padding-top: calc(52px + env(safe-area-inset-top, 0px));
  padding-bottom: 32px;
}
body.admin-on {
  padding-top: 0;
  padding-bottom: 0;
}
.admin-shell .top {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: calc(3.25rem + env(safe-area-inset-top, 0px));
  height: calc(3.25rem + env(safe-area-inset-top, 0px));
  padding: calc(6px + env(safe-area-inset-top, 0px)) 10px 6px;
  /* 议题 212 卡 3 把前台 .top 改成透明；后台顶栏不在改版范围，这里保住原来的底色和分割线。 */
  background: var(--top-bg);
  border-bottom: 1px solid var(--line);
}
button.by-entry.on { font-weight: 700; text-decoration: underline; }
button.feed-head {
  width: 100%; border: 0; background: transparent; color: inherit;
  display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; padding: 8px 12px;
}
.by-head { align-items: center; gap: 12px; padding: 12px; }
.by-head .ig-pill { margin-left: auto; }
.admin-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  margin-left: auto;
}
.admin-tools a.ghost { text-decoration: none; }
.site-push { padding: 16px 12px; }
.site-push h2 { margin: 0 0 12px; font-size: var(--fs-18); }
.site-push-body { line-height: 1.55; }
.site-push-btn { width: 100%; min-height: 2.75rem; margin-top: 16px; }
.admin-shell .chips.fav-tabs {
  justify-content: flex-start;
  padding-top: 10px;
}
.admin-list { padding: 0 0 28px; }
.admin-card {
  margin: 0 0 16px;
  background: var(--card);
  overflow: hidden;
  border-bottom: 10px solid var(--bg);
}
.admin-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--c-black);
}
.admin-photos img,
.admin-ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--c-gray-10);
}
.admin-photos .admin-hero {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 4;
  max-height: 78vh;
}
.admin-body { padding: 14px 14px 18px; }
.admin-st {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--ink); -webkit-text-fill-color: var(--ink);
  font-size: var(--fs-12);
  line-height: var(--lh-12);
}
.admin-body h2 {
  margin: 8px 0 4px;
  font-size: var(--fs-22);
  line-height: var(--lh-22);
  font-weight: var(--fw-bold);
}
.admin-body > p { margin: 4px 0; color: var(--muted); }
.admin-body .bio { margin: 10px 0; color: var(--text); }
.admin-contact {
  margin: 8px 0 0;
  color: var(--text);
  font-size: var(--fs-13);
  line-height: var(--lh-13);
  word-break: break-all;
}
.admin-mail {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: var(--fs-12);
  line-height: var(--lh-12);
  word-break: break-all;
}
.admin-acts {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.admin-acts .btn { flex: 1 1 calc(50% - 8px); }
.admin-back { display: block; margin: 4px 14px 8px; color: var(--muted); }
.admin-photos img.on { outline: 2px solid var(--c-link); outline-offset: -2px; }
.admin-person {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center;
  width: 100%; padding: 10px 14px; border: 0; background: none;
  color: inherit; text-align: left; border-bottom: 1px solid var(--line);
}
.admin-person img, .admin-av {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; background: var(--c-gray-10);
}
.admin-person b { display: block; font-size: var(--fs-16); line-height: var(--lh-15); font-weight: var(--fw-semibold); }
.admin-person small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-12); }
.admin-user-meta { margin: 0 14px 8px; }
#adminUserQ, #adminOrderQ { width: calc(100% - 1.75rem); margin: 8px 14px; }
.admin-order-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-order-table {
  width: max-content; min-width: 100%; border-collapse: collapse;
  font-size: var(--fs-12); line-height: var(--lh-12);
}
.admin-order-table th, .admin-order-table td {
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  text-align: left; white-space: nowrap; vertical-align: middle;
}
.admin-order-table th {
  color: var(--muted); font-weight: var(--fw-semibold); background: var(--card);
}
.admin-order-table tbody tr[data-admin-order] { cursor: pointer; }
.admin-order-table tbody tr[data-admin-order]:active { background: var(--raised); }
.admin-order-back { margin: 8px 14px; }
.admin-order-detail { padding: 0 14px 24px; }
.admin-order-detail > div {
  display: flex; gap: 12px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.admin-order-detail span { flex: 0 0 72px; color: var(--muted); }
.admin-order-detail b { font-weight: var(--fw-semibold); word-break: break-all; }
.admin-order-detail p { margin: 10px 0; color: var(--muted); }
.admin-edit-card .admin-body { padding-bottom: 36px; }
.admin-edit-card .field-label { margin-top: 12px; }
.admin-confirm-list {
  margin: 10px 0 16px;
  padding: 0 0 0 18px;
  max-height: 40vh;
  overflow: auto;
  color: var(--text);
  font-size: var(--fs-13);
  line-height: 1.55;
}
.admin-confirm-list li { margin: 6px 0; }
#adminConfirmModal { z-index: 96; align-items: center; }
#adminConfirmModal .dialog { border-radius: 16px; margin: 16px; }
.admin-chat-title {
  margin: 0 14px 8px; font-size: var(--fs-16); line-height: var(--lh-15); font-weight: var(--fw-semibold);
}
.admin-chat { min-height: 40vh; padding-bottom: 16px; }
.admin-dm {
  display: grid;
  grid-template-columns: 44px auto 44px 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.admin-dm-face, .admin-msg-who {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; margin: 0; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; cursor: pointer; min-width: 2.75rem;
}
.admin-dm-face img, .admin-dm-face .admin-av,
.admin-msg-who img, .admin-msg-who .admin-av {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; background: var(--c-gray-10);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-14); color: var(--c-gray-96);
}
.admin-av {
  display: flex; align-items: center; justify-content: center;
  background: var(--c-gray-10); color: var(--c-gray-96); font-size: var(--fs-14); font-weight: 600;
}
.admin-dm-face small, .admin-msg-who small {
  max-width: 3.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--muted); font-size: var(--fs-11); line-height: var(--lh-11);
}
.admin-dm-arrow { color: var(--muted); font-size: var(--fs-16); padding: 0 2px; }
.admin-dm-body {
  display: block; width: 100%; margin: 0; padding: 4px 0 4px 6px;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.admin-dm-body b { display: block; font-size: var(--fs-16); line-height: var(--lh-15); font-weight: var(--fw-semibold); }
.admin-dm-body .preview {
  display: block; margin-top: 2px; color: var(--muted);
  font-size: var(--fs-12); line-height: var(--lh-12);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.admin-dm-body .admin-dm-meta {
  display: block; margin-top: 2px; color: var(--c-gray-45);
  font-size: var(--fs-11); line-height: var(--lh-11);
}
.admin-support .admin-chat-head {
  display: flex; align-items: center; gap: 10px; margin: 0 14px 8px;
}
.admin-support .admin-chat-head img, .admin-support .admin-chat-head .admin-av {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; background: var(--c-gray-10);
}
.admin-support .msgs { min-height: 11.25rem; }
.admin-support .composer { padding: 8px 14px 16px; }
.verify-preview, .admin-verify-player {
  width: 100%; max-height: 46vh; background: var(--c-black); border-radius: 12px; margin-top: 8px;
}
.admin-chat-head {
  display: flex; align-items: center; gap: 8px;
  margin: 0 14px 10px; min-width: 0;
}
.admin-chat-head .admin-dm-face { flex-direction: row; gap: 8px; min-width: 0; }
.admin-chat-head .admin-dm-face small {
  max-width: 7.5rem; color: var(--text); font-size: var(--fs-16); line-height: var(--lh-15); font-weight: 600;
}
.admin-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 8px 0; }
.admin-msg .bubble {
  background: var(--raised); color: var(--ink); -webkit-text-fill-color: var(--ink); max-width: 88%;
}
.admin-msg .admin-msg-who { flex-direction: row; gap: 8px; }
.admin-msg .admin-msg-who img, .admin-msg .admin-msg-who .admin-av {
  width: 1.75rem; height: 1.75rem; font-size: var(--fs-12);
}
.admin-st { margin-right: 6px; }
.admin-log {
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: start;
}
.admin-log-body b { display: block; margin-top: 4px; font-size: var(--fs-16); line-height: var(--lh-15); }
.admin-log-body small { color: var(--muted); font-size: var(--fs-12); }
.admin-log-body p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-13); }
.admin-log-thumbs { display: flex; gap: 4px; }
.admin-log-thumbs img {
  width: 4.5rem; height: 4.5rem; object-fit: cover; background: var(--c-gray-10); border-radius: 8px;
}
.photo-grid { padding-bottom: 8px; background: transparent; gap: 8px; }
.photo-cell { background: transparent; display: flex; flex-direction: column; min-width: 0; }
.photo-cell .tile { aspect-ratio: 1; }
.tile[data-open-photo], .who-photo img[data-open-photo] { cursor: pointer; }
.photo-peek {
  position: fixed; inset: 0; z-index: 95;
  display: none;
  touch-action: none;
  overscroll-behavior: none;
}
.photo-peek.show { display: block; }
.photo-peek-bg {
  position: absolute; inset: 0;
  background: var(--c-black);
  opacity: 0;
}
.photo-peek-clip {
  position: absolute; inset: 0;
  overflow: hidden;
}
.photo-peek-clip img {
  position: absolute;
  display: block;
  transform-origin: 50% 50%;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  background: var(--c-black);
}
.photo-peek-clip img[hidden] { display: none !important; }
.photo-peek-x,
.photo-peek-more {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  width: 2.25rem; height: 2.25rem;
  border: 0; padding: 0;
  border-radius: 50%;
  background: var(--c-black-45);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-22); line-height: 36px;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}
.photo-peek-x { right: 12px; font-size: var(--fs-28); }
.photo-peek-save {
  position: absolute;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 2;
  border: 0;
  border-radius: 18px;
  padding: 8px 14px;
  background: var(--c-black-55);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-14);
  line-height: 18px;
  cursor: pointer;
}
.photo-peek-save[hidden] { display: none !important; }
.photo-peek-more { right: 56px; letter-spacing: 1px; }
.photo-peek-more[hidden], .photo-peek-menu[hidden] { display: none !important; }
.photo-peek-menu {
  position: absolute;
  top: calc(54px + env(safe-area-inset-top));
  right: 12px;
  z-index: 3;
  min-width: 11.25rem;
  background: var(--c-gray-10);
  border-radius: 12px;
  overflow: hidden;
}
.photo-peek-menu button {
  display: block; width: 100%;
  border: 0; background: none; color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  text-align: left; padding: 12px 14px; cursor: pointer;
  font-size: var(--fs-15); line-height: 20px;
}
.photo-peek-menu button + button { border-top: 1px solid var(--c-gray-20); }
.photo-peek-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; gap: 6px;
  z-index: 2; pointer-events: none;
}
.photo-peek-dots[hidden] { display: none; }
.photo-peek-dots span {
  width: .375rem; height: .375rem; border-radius: 50%;
  background: var(--c-white-35);
}
.photo-peek-dots span.on { background: var(--c-white); }
.photo-peek-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.5rem; height: 3.5rem; border: 0; padding: 0;
  background: none; color: var(--c-white); font-size: var(--fs-42); line-height: 56px;
  filter: drop-shadow(0 0 8px var(--c-black-70)); /* 议题 212 第 4 步：原来的 text-shadow 对图标无效，换成同值的投影滤镜 */
  cursor: pointer; z-index: 2;
}
.photo-peek-nav.prev { left: 4px; }
.photo-peek-nav.next { right: 4px; }
.photo-peek-nav[hidden] { display: none; }
/* 议题 212 第 3 步：看图层上一张、下一张、更多的符号换成图标，字号定图标大小，和原符号实际大小接近（关闭键原 28 像素已接近，不加） */
.photo-peek-nav { font-size: var(--ic-32); }
.photo-peek-more { font-size: var(--ic-26); }
/* 议题 212 第 4 步：图标按行内居中会比原符号低 3 像素，改成块并在按钮里居中 */
.photo-peek-more svg { display: block; margin: 0 auto; }
/* 复核补丁（议题 212 第一期）：下面这几颗按钮里的图标按行内基线对齐，比几何中心低 1 到 3 像素，同上改成块并居中。只加不改原规则。
   .msg-fail 是绝对定位的 <i>（计算后是块，不是行内），块里的 svg 只会贴顶，所以多给它一条 flex 居中；
   .textpost-x 原来 text-align 靠左，左边距不设自动，保持图标靠左。 */
.photo-peek-x svg, .photo-peek-nav svg, .feed-nav svg, .photo-edit-del svg, .intro-slot-x svg, .shot-x svg { display: block; margin: auto; }
.textpost-x svg { display: block; margin: auto auto auto 0; }
.msg-fail { display: flex; align-items: center; justify-content: center; }
.msg-fail svg { display: block; margin: auto; }
body.photo-peeking { overflow: hidden; }
body.photo-peeking #app { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .photo-peek-bg, .photo-peek-clip, .photo-peek-clip img, .photo-peek-x {
    transition: none !important;
  }
}
.like-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 8px 10px; background: var(--bg);
  font-size: var(--fs-12); line-height: var(--lh-12); color: var(--muted);
}
.like-btn, .like-heart {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--text); -webkit-text-fill-color: var(--text); font-size: var(--fs-18); line-height: 1; cursor: pointer;
}
.like-heart { cursor: default; opacity: .85; }
.like-btn.on, .like-heart.on { color: var(--c-danger); }
/* 议题 212 第 4 步：图标块显示，按钮框回到 18 像素高，墨迹和原符号一样大 */
.like-btn svg, .like-heart svg { font-size: var(--ic-18); display: block; }
.like-count { color: var(--text); -webkit-text-fill-color: var(--text); font-weight: var(--fw-semibold); }
.like-unit { color: var(--muted); }
.like-who-list { max-height: 40vh; overflow: auto; margin: 12px 0; }
.like-who-list div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: var(--fs-16); line-height: var(--lh-15);
}
.like-who-list span { color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12); }
.act-head h1, .act-page h1 { margin: 0 0 4px; }
.act-list { padding: 4px 0 24px; }
.act-row {
  display: grid; grid-template-columns: 44px 1fr 22px;
  gap: 12px; align-items: center;
  width: 100%; padding: 10px 16px;
  color: inherit; text-align: left;
}
.act-row.new { background: var(--c-link-08); }
.act-row img, .act-ph {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover;
  background: var(--surface); color: var(--text); -webkit-text-fill-color: var(--text);
}
.act-ph { display: flex; align-items: center; justify-content: center; color: var(--text); -webkit-text-fill-color: var(--text); }
.act-ph svg { font-size: var(--ic-22); color: var(--text); -webkit-text-fill-color: var(--text); }
.act-row p { margin: 0; font-size: var(--fs-16); line-height: var(--lh-15); }
.act-row p b { font-weight: var(--fw-semibold); }
.act-row span { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12); }
.act-row svg { font-size: var(--ic-18); color: var(--muted); }
.ig-notes .act-ph,
.thread .act-ph,
.thread.ig-thread .act-ph,
.chat-who .act-ph,
.chat-who-av .act-ph,
.dm-intro .act-ph,
.act-row .act-ph,
.act-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  overflow: hidden;
}
.ig-notes .act-ph > svg,
.thread .act-ph > svg,
.thread.ig-thread .act-ph > svg,
.chat-who .act-ph > svg,
.chat-who-av .act-ph > svg,
.dm-intro .act-ph > svg,
.act-row .act-ph > svg,
.act-ph > svg {
  display: block;
  width: 46%;
  height: 46%;
  margin: 0;
  flex: 0 0 auto;
  position: static;
}
.act-empty {
  padding: 72px 28px; text-align: center; color: var(--muted);
}
.act-empty svg { font-size: var(--ic-72); margin: 0 auto 16px; }
.act-empty p {
  margin: 0 0 8px; color: var(--text);
  font-size: var(--fs-20); line-height: var(--lh-20); font-weight: var(--fw-semibold);
}
.act-empty small { font-size: var(--fs-13); line-height: var(--lh-13); }
.thread-list { border-bottom: 1px solid var(--line); }
.thread .preview {
  color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.thread.unread b { font-weight: var(--fw-bold); }
html.chat-open,
body.chat-open {
  overflow: hidden;
}
html.chat-open #app,
body.chat-open #app {
  overflow: hidden;
}
.dm-shell {
  position: fixed;
  inset: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  z-index: 20;
}
.dm-top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: calc(3rem + env(safe-area-inset-top, 0px));
  padding: calc(4px + env(safe-area-inset-top, 0px)) 8px 4px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.dm-info {
  flex: none;
  width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); -webkit-text-fill-color: var(--text);
}
.dm-info svg { font-size: var(--ic-22); }
.chat-who-text {
  min-width: 0; display: flex; flex-direction: column; gap: 1px;
}
.chat-who-text small {
  color: var(--muted); font-size: var(--fs-12); line-height: 15px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dm-intro {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 28px 24px 20px; gap: 6px;
}
.dm-intro-av {
  width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover;
  background: var(--surface); margin-bottom: 6px;
}
.dm-intro-name { font-size: var(--fs-20); line-height: 24px; font-weight: 700; }
.dm-intro-meta, .dm-intro-bio, .dm-intro-follow {
  margin: 0; color: var(--muted); font-size: var(--fs-13); line-height: 18px;
}
.dm-intro-bio { max-width: 17.5rem; white-space: pre-wrap; }
.dm-intro-go {
  margin-top: 10px; padding: 8px 16px; border-radius: 10px;
  background: var(--surface); color: var(--text); font-size: var(--fs-14); font-weight: 600;
}
.dm-back {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: none;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.dm-back svg { font-size: var(--ic-28); }
.dm-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: transparent;
  align-items: stretch;
}
.dm-log .dm-intro { width: 100%; align-self: stretch; }
.dm-log [data-dm-msgs] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}
.dm-stamp {
  align-self: center;
  width: 100%;
  text-align: center;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  font-size: var(--fs-12);
  line-height: 16px;
  padding: 6px 8px 2px;
  user-select: none;
}
.dm-log [data-dm-msgs] > .bubble,
.dm-log [data-dm-msgs] > .dm-msg-row,
.dm-log [data-dm-msgs] > .dm-voice-wrap,
.dm-log [data-dm-msgs] > .dm-own-wrap {
  width: fit-content;
  max-width: min(75%, 17.5rem);
  align-self: flex-start;
}
.dm-log [data-dm-msgs] > .bubble.me,
.dm-log [data-dm-msgs] > .dm-msg-row.me,
.dm-log [data-dm-msgs] > .dm-voice-wrap.me,
.dm-log [data-dm-msgs] > .dm-own-wrap {
  align-self: flex-end;
  margin-left: auto;
}
.dm-log [data-dm-msgs] > .dm-voice-wrap,
.dm-log [data-dm-msgs] > .dm-own-wrap {
  width: auto;
  max-width: min(92%, 20rem);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dm-log [data-dm-msgs] > .dm-voice-wrap.me,
.dm-log [data-dm-msgs] > .dm-own-wrap {
  flex-direction: row;
}
.dm-own-wrap .bubble,
.dm-own-wrap .dm-msg-row {
  width: fit-content;
  max-width: min(75%, 17.5rem);
}
.dm-bar {
  flex: none;
  background: var(--bg);
  border-top: 0;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  position: relative;
}
.dm-bar.composer {
  border-top: 0; flex-direction: column; gap: 8px;
  width: 27.5rem; max-width: 27.5rem; margin-left: auto; margin-right: auto;
  padding-left: 0; padding-right: 0; box-sizing: border-box;
}
.dm-idle[hidden] { display: none !important; }
.dm-idle {
  position: relative;
  display: flex; align-items: flex-end; gap: 0;
  align-self: center;
  width: 27.5rem; max-width: 27.5rem; min-height: 2.75rem;
  box-sizing: border-box;
}
.dm-cam {
  position: absolute; left: 16px; bottom: 4px;
  width: 2.25rem; height: 2.25rem; margin: 0;
  border: 0; border-radius: 50%;
  background: var(--c-accent); color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.dm-cam[hidden] { display: none !important; }
.dm-cam svg { font-size: var(--ic-20); }
.dm-pick { z-index: 90; }
.dm-pill {
  flex: 0 0 auto;
  display: flex; align-items: flex-end; gap: 2px;
  box-sizing: border-box;
  width: 20.25rem; max-width: 20.25rem; min-height: 2.75rem;
  margin-left: 60px; margin-right: 0;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--bg);
  position: relative;
}
.dm-idle.has-text .dm-pill {
  margin-left: 16px;
  width: 23rem;
  max-width: 23rem;
}
.dm-too-long {
  position: absolute;
  z-index: 5;
  left: 12px;
  bottom: calc(100% + 6px);
  width: 5.5rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--c-gray-17);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-13);
  line-height: 32px;
  white-space: nowrap;
  pointer-events: none;
  box-sizing: border-box;
}
.dm-too-long[hidden] { display: none !important; }
.dm-burn-btn {
  flex: 0 0 28px;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 2px 8px 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-black-28);
  border-radius: 50%;
  background-image:
    linear-gradient(180deg, var(--c-white-42) 0%, var(--c-white-08) 42%, var(--c-white-00) 52%),
    linear-gradient(180deg, var(--c-burn-metal-hi) 0%, var(--c-burn-metal-lo) 100%);
  background-color: var(--c-burn-metal-mid);
  color: var(--c-gray-95);
  -webkit-text-fill-color: var(--c-gray-95);
  box-shadow:
    inset 0 1px 0 var(--c-white-50),
    inset 0 -1px 1px var(--c-black-22),
    0 1px 1px var(--c-black-22);
  font-size: var(--fs-12);
  line-height: 1;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 0 var(--c-black-28);
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  user-select: none;
  -webkit-user-select: none;
}
.dm-burn-btn[hidden] { display: none !important; }
.dm-burn-btn.on {
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  border-color: transparent;
  background-image:
    linear-gradient(180deg, var(--c-white-32) 0%, var(--c-white-00) 46%),
    linear-gradient(90deg, var(--c-burn-yellow), var(--c-burn-pink), var(--c-burn-purple), var(--c-burn-yellow), var(--c-burn-pink));
  background-size: 100% 100%, 300% 100%;
  animation: dm-burn-rainbow 1.6s linear infinite;
  box-shadow:
    inset 0 1px 0 var(--c-white-38),
    0 1px 1px var(--c-black-20);
  text-shadow: none;
}
@keyframes dm-burn-rainbow {
  0% { background-position: 0 0, 0% 50%; }
  100% { background-position: 0 0, 100% 50%; }
}
.dm-pill input,
.dm-pill textarea {
  flex: 1; min-width: 0; border: 0; background: transparent;
  color: var(--text); -webkit-text-fill-color: var(--text);
  /* iOS：小于 16px 的输入框会强制放大整页 */
  font-size: var(--fs-16); line-height: 20px; padding: 8px 0;
  resize: none; overflow: hidden; max-height: 7.5rem;
}
.dm-pill input.is-burn,
.dm-pill textarea.is-burn,
.dm-pill.is-burn input,
.dm-pill.is-burn textarea {
  color: var(--c-danger);
  -webkit-text-fill-color: var(--c-danger);
}
.dm-pill input::placeholder,
.dm-pill textarea::placeholder { color: var(--muted); }
.dm-pill input.is-burn::placeholder,
.dm-pill textarea.is-burn::placeholder,
.dm-pill.is-burn textarea::placeholder {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.dm-pill .dm-tool { margin-bottom: 4px; }
.dm-pill .dm-burn-btn { margin-bottom: 8px; }
.dm-tool {
  flex: 0 0 36px; width: 2.25rem; height: 2.25rem; border: 0; background: transparent;
  color: var(--text); display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.dm-tool svg { font-size: var(--ic-22); }
.dm-send-text {
  position: absolute; right: 12px; bottom: 4px;
  width: 2.25rem; height: 2.25rem; margin: 0;
  border: 0; border-radius: 50%;
  background: var(--c-accent); color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  display: inline-flex; align-items: center; justify-content: center;
}
.dm-send-text[hidden] { display: none !important; }
.dm-send-text svg { font-size: var(--ic-20); }
.dm-voice-bar {
  display: flex; align-items: center; gap: 8px;
  width: calc(100% - (var(--dm-send-right) * 2));
  margin-left: var(--dm-send-right); margin-right: var(--dm-send-right);
  min-height: 3.25rem; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 26px;
  background: var(--c-white); box-sizing: border-box;
}
.dm-voice-bar[hidden] { display: none !important; }
.dm-voice-x, .dm-voice-send {
  flex: 0 0 40px; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%;
  background: var(--c-accent); color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  display: inline-flex; align-items: center; justify-content: center;
}
.dm-voice-x svg, .dm-voice-send svg { font-size: var(--ic-18); }
.dm-voice-pill {
  position: relative;
  flex: 1; min-width: 0; height: 2.75rem; border-radius: 22px;
  background: var(--c-accent); color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 6px; font-size: var(--fs-14); font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.dm-voice-progress {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--c-white-32); pointer-events: none;
}
.dm-voice-ctl {
  position: relative; z-index: 1;
  width: 2.125rem; height: 2.125rem; border: 2px solid var(--c-white); border-radius: 50%;
  background: transparent; color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  box-sizing: border-box;
}
.dm-voice-ctl.is-play {
  background: var(--c-white); border-color: var(--c-white); color: var(--c-accent); -webkit-text-fill-color: var(--c-accent);
}
.dm-voice-ctl svg { font-size: var(--ic-14); }
.dm-voice-time {
  position: relative; z-index: 1;
  min-width: 2.75rem; text-align: center;
  background: var(--c-white); color: var(--c-accent); -webkit-text-fill-color: var(--c-accent);
  border-radius: 12px; padding: 3px 8px;
  font-size: var(--fs-13); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2;
}
.dm-voice-stop {
  width: 2rem; height: 2rem; border: 0; border-radius: 50%;
  background: var(--c-white-20); color: var(--c-white);
  display: inline-flex; align-items: center; justify-content: center;
}
.dm-voice-stop svg { font-size: var(--ic-14); }
.dm-unsend {
  flex: 0 0 28px; width: 1.75rem; height: 1.75rem; border: 0; border-radius: 50%;
  background: transparent; color: var(--c-gray-56); -webkit-text-fill-color: var(--c-gray-56);
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
[data-unsend-hold] {
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}
.dm-unsend svg { font-size: var(--ic-20); }
.dm-unsend:active { color: var(--c-danger); -webkit-text-fill-color: var(--c-danger); }
.dm-emoji {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
  padding: 8px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--raised); max-height: 10rem; overflow: auto;
}
.dm-emoji[hidden] { display: none !important; }
.dm-emoji button {
  border: 0; background: none; font-size: var(--fs-22); line-height: 1.2; padding: 6px 0; cursor: pointer;
}
.dm-log [data-dm-msgs] > .bubble.media,
.dm-own-wrap .bubble.media {
  width: auto;
  max-width: var(--dm-vid-w);
  padding: 0;
  overflow: hidden;
  background: transparent;
  border-radius: var(--dm-vid-r);
}
.dm-log [data-dm-msgs] > .bubble.media.dm-pic,
.dm-own-wrap .bubble.media.dm-pic {
  max-width: var(--dm-img-w);
  border-radius: var(--dm-img-r);
}
.bubble.media.dm-pic { position: relative; cursor: zoom-in; }
.bubble.media.dm-pic img {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--dm-img-w);
  max-height: var(--dm-img-h);
  object-fit: contain;
  border-radius: var(--dm-img-r);
}
.dm-media-dl {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  border: 0;
  border-radius: 14px;
  padding: 6px 10px;
  background: var(--c-black-55);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-12);
  line-height: 16px;
  cursor: pointer;
}
.dm-media-frame {
  position: relative;
  display: inline-block;
  max-width: var(--dm-vid-w);
  max-height: var(--dm-vid-h);
  border-radius: var(--dm-vid-r);
  overflow: hidden;
  line-height: 0;
  background: var(--c-gray-07);
}
.dm-media-frame.is-wait,
.dm-media-blank {
  width: var(--dm-vid-w);
  height: var(--dm-vid-h);
  max-width: 100%;
}
.dm-media-cover {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--dm-vid-w);
  max-height: var(--dm-vid-h);
  object-fit: contain;
}
.dm-media-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: var(--dm-vid-w);
  max-height: var(--dm-vid-h);
  object-fit: contain;
  background: var(--c-black);
  border-radius: var(--dm-vid-r);
}
.dm-media-frame.is-on .dm-media-cover { visibility: hidden; }
.dm-media-tri {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--c-black-45);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.dm-media-tri svg { font-size: var(--ic-18); margin-left: 2px; }
.dm-media-frame.is-on .dm-media-tri { display: none; }
.dm-media-wait {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-14);
  line-height: 20px;
}
.bubble.voice,
.bubble.voice.me {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 15.5rem !important;
  min-width: 15.5rem !important;
  max-width: 15.5rem !important;
  min-height: 4rem;
  padding: 14px 12px;
  box-sizing: border-box;
  border-radius: 22px;
}
.dm-voice-wrap .bubble.voice {
  width: 15.5rem !important;
  min-width: 15.5rem !important;
  max-width: 15.5rem !important;
}
.bubble.voice .voice-play {
  display: inline-flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 0;
}
.bubble.voice .voice-play-ico {
  flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--c-white); color: var(--c-accent); -webkit-text-fill-color: var(--c-accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.bubble.voice:not(.me) .voice-play-ico {
  background: var(--c-accent); color: var(--c-white); -webkit-text-fill-color: var(--c-white);
}
.bubble.voice .voice-play-ico svg { font-size: var(--ic-14); }
.bubble.voice .voice-play svg { font-size: var(--ic-14); flex: none; }
.voice-wave {
  flex: 1; min-width: 0; height: 1.375rem;
  display: flex; align-items: center; gap: 2px;
  color: var(--c-white-92); -webkit-text-fill-color: var(--c-white-92);
}
.bubble.voice:not(.me) .voice-wave {
  color: var(--c-white-45); -webkit-text-fill-color: var(--c-white-45);
}
.voice-wave i {
  flex: 1 1 0; max-width: .1875rem; min-width: .125rem;
  height: var(--h, .1875rem); border-radius: 2px;
  background: currentColor;
}
.bubble.voice.me .voice-wave i { background: var(--c-accent-deep); }
.bubble.voice.me .voice-wave i.is-heard { background: var(--c-white); }
.bubble.voice:not(.me) .voice-wave i.is-heard { background: var(--ink); }
.voice-sec {
  flex: none;
  min-width: 2.625rem; text-align: center;
  background: var(--c-white); color: var(--c-accent); -webkit-text-fill-color: var(--c-accent);
  border-radius: 12px; padding: 3px 8px;
  font-size: var(--fs-13); font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums;
}
.bubble.voice:not(.me) .voice-sec {
  background: var(--c-white); color: var(--c-gray-15); -webkit-text-fill-color: var(--c-gray-15);
}
.msg-fail {
  position: absolute; right: -4px; bottom: -4px;
  width: 1.125rem; height: 1.125rem; border-radius: 50%;
  background: var(--c-danger); color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  font-style: normal; font-size: var(--fs-12); font-weight: 700;
  line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--c-white);
}
.shell.chat-shell {
  height: 100svh;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-top {
  position: relative;
  top: auto; left: auto; transform: none;
  width: auto;
  flex-shrink: 0;
  min-height: calc(3rem + env(safe-area-inset-top, 0px));
}
.float-back {
  position: fixed;
  z-index: 110;
  top: calc(52px + env(safe-area-inset-top, 0px) + 4px);
  left: max(4px, calc(50% - var(--max) / 2 + 4px));
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
body.chat-open .float-back {
  top: calc(56px + env(safe-area-inset-top, 0px));
}
.float-back svg, #igBack svg { font-size: var(--ic-28); }
.float-back svg path, #igBack svg path { stroke-width: 2.25; }
.chat-who {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; flex: 1; color: inherit;
}
.chat-who-av {
  position: relative;
  flex: none;
  width: 2rem; height: 2rem;
}
.chat-who img, .chat-who .act-ph {
  width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; background: var(--surface);
  color: var(--text); -webkit-text-fill-color: var(--text); flex-shrink: 0; display: block;
}
.chat-who-av .presence-dot {
  position: absolute; right: -1px; bottom: -1px;
  width: .625rem; height: .625rem; border-radius: 50%;
  border: 2px solid var(--bg); box-sizing: border-box;
}
.chat-who b {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--fs-14); line-height: 18px; font-weight: 700;
}
.inbox-chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.inbox.inbox-chat { min-height: 0; }
.inbox-chat .chat { flex: 1; min-height: 0; }
.inbox-chat .msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* 68：返回钮在顶栏下 16px、高 40px，再留 12px。第一条消息从这一行下面开始。 */
  padding-top: 68px;
}
.inbox-chat .composer {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  background: var(--bg);
  z-index: 21;
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
}
.chat-head {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-size: var(--fs-16); line-height: var(--lh-15); font-weight: var(--fw-semibold);
}
.composer { flex-direction: column; align-items: stretch; gap: 6px; }
.composer-row { display: flex; gap: 8px; width: 100%; align-items: center; }
.composer-row input {
  flex: 1; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 10px 14px; color: var(--text);
}
.composer-row input::placeholder { color: var(--muted); }
.composer-send {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%;
  background: none; color: var(--text); display: inline-flex; align-items: center; justify-content: center;
}
.composer-send svg { font-size: var(--ic-26); }
.dm-bar .composer-send.dm-send-text {
  position: absolute; right: 12px; bottom: 4px;
  width: 2.25rem; height: 2.25rem; margin: 0; flex: none;
  border: 0; border-radius: 50%;
  background: var(--c-accent); color: var(--c-white); -webkit-text-fill-color: var(--c-white);
}
.dm-bar .composer-send.dm-send-text svg { font-size: var(--ic-20); }
.composer-send.is-loading { opacity: .35; }
.composer-row .btn {
  flex-shrink: 0; border-radius: 22px; padding: 10px 14px; min-width: 4rem;
}
.composer-row .btn.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.composer-row .btn.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1rem;
  margin: -8px 0 0 -8px;
  border: 2px solid var(--c-white-35);
  border-top-color: var(--c-white);
  border-radius: 50%;
  animation: hfspin .7s linear infinite;
}
.msg-modes {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 0 2px 2px;
}
.msg-modes.compact { padding: 0; flex-wrap: wrap; }
.msg-mode {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); background: transparent;
  border-radius: 999px; padding: 5px 10px;
  font-size: var(--fs-12); line-height: var(--lh-12); color: var(--muted);
}
.msg-modes.compact .msg-mode { padding: 4px 8px; }
.msg-mode svg { font-size: var(--ic-12); }
.msg-mode.on { background: var(--chip-on); color: var(--chip-on-text); -webkit-text-fill-color: var(--chip-on-text); border-color: var(--chip-on); }
.msg-mode.locked { opacity: .42; }
.msg-mode-hint {
  margin: 2px 0 0; flex: 1 0 100%;
  color: var(--muted);
  font-size: var(--fs-12); line-height: var(--lh-12);
}
.bubble { position: relative; }
.bubble .msg-lock { display: inline-flex; margin-right: 6px; vertical-align: -2px; }
.bubble .msg-lock svg { font-size: var(--ic-12); }
.dm-msg-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 85%;
  position: relative;
  padding-left: 36px;
}
.dm-msg-row.me {
  align-self: flex-end;
  align-items: flex-end;
  padding-left: 0;
  padding-right: 36px;
}
.dm-msg-row.is-burned {
  min-height: 1.75rem;
}
.dm-msg-av {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}
.dm-msg-row.me .dm-msg-av {
  left: auto;
  right: 0;
}
.dm-msg-time {
  color: var(--muted);
  font-size: var(--fs-11);
  line-height: 14px;
  padding: 0 4px;
}
.bubble.burn-seal {
  min-width: 6rem;
  max-width: 10rem;
  min-height: 2.5rem;
  padding: 10px 16px;
  border: 0;
  border-radius: 18px;
  background: var(--c-danger);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-15);
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
}
.bubble.burn-seal.me {
  margin-left: auto;
  cursor: default;
  -webkit-touch-callout: none;
  user-select: none;
}
.burn-view {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: calc(56px + env(safe-area-inset-top, 0px)) 10px calc(72px + env(safe-area-inset-bottom, 0px));
  background: var(--c-black-45);
}
.burn-view.show { display: flex; }
.burn-sheet {
  flex: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  border-radius: 18px;
  padding: 20px 18px 16px;
  box-shadow: 0 12px 40px var(--c-black-28);
  overflow: hidden;
}
.burn-sheet h2 {
  margin: 0;
  text-align: center;
  font-size: var(--fs-18);
  line-height: 24px;
  font-weight: 700;
}
.burn-tip {
  margin: 8px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-13);
  line-height: 18px;
}
.burn-body {
  flex: 1;
  min-height: 0;
  margin: 20px 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: var(--fs-18);
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
}
.burn-close {
  width: 100%;
  flex: none;
}

button.tile {
  appearance: none; -webkit-appearance: none;
  background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; font: inherit; color: inherit;
}
button.tile { display: block; width: 100%; text-align: left; overflow: hidden; }
.guest-tease {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  position: relative;
  overflow: hidden;
}
.guest-lock {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px 88px;
  background: linear-gradient(to bottom, var(--c-black-12) 0%, var(--c-black-72) 38%, var(--c-black-96) 100%);
}
.guest-lock-solo {
  grid-column: 1 / -1;
  position: relative;
  min-height: 15rem;
  background: var(--bg);
}
.guest-lock-card {
  margin-top: 28px;
  max-width: 17.5rem;
  text-align: center;
}
.guest-lock-card h2 {
  margin: 0 0 8px;
  font-size: var(--fs-17);
  line-height: var(--lh-17);
  font-weight: var(--fw-semibold);
}
.guest-lock-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--fs-13);
  line-height: 1.45;
}

.feed { padding-bottom: 20px; background: var(--bg); color: var(--text); }
.feed-post { border-bottom: 1px solid var(--line); }
.feed-head {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 12px;
  background: none; border: 0; color: inherit;
}
.feed-who-link {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; flex: 1;
  background: none; border: 0; padding: 0; margin: 0;
  color: inherit; text-align: left; cursor: pointer; font: inherit;
}
a.feed-who-link { color: inherit; }
.feed-ava {
  width: 2rem; height: 2rem; border-radius: 50%; overflow: visible;
  background: var(--c-gray-10); flex-shrink: 0; position: relative;
}
.feed-ava .presence-dot { width: .625rem; height: .625rem; right: -1px; bottom: -1px; }
.who-photo .presence-dot { width: .875rem; height: .875rem; right: 2px; bottom: 2px; }
.feed-ava img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.feed-who { min-width: 0; flex: 1; }
.feed-who b {
  display: block; font-size: var(--fs-14); line-height: 18px;
  font-weight: var(--fw-semibold);
}
.feed-who .feed-age {
  font-style: normal; font-weight: 500; margin-left: 6px;
}
.feed-who small {
  display: block; margin-top: 1px; color: var(--muted);
  font-size: var(--fs-12); line-height: var(--lh-12);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.feed-tools { display: flex; align-items: center; gap: 10px; margin-left: 12px; flex: 0 0 auto; }
.feed-more {
  width: 2.25rem; height: 2.25rem; padding: 0; border: 0; background: none;
  color: var(--text); -webkit-text-fill-color: var(--text); cursor: pointer;
}
.feed-more svg { font-size: var(--ic-22); display: block; margin: 0 auto; }
.feed-sheet {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: var(--c-black-55);
}
.feed-sheet[hidden] { display: none !important; }
.feed-sheet.is-bottom { align-items: flex-end; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.feed-sheet-card {
  width: min(26.25rem, 100%);
  background: var(--c-gray-15); border-radius: 16px; overflow: hidden;
}
.feed-sheet-card button, .feed-sheet-card a {
  display: block; width: 100%;
  padding: 16px 12px;
  border: 0; border-bottom: 1px solid var(--c-white-10);
  background: none; color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-16); line-height: 22px; text-align: center; cursor: pointer;
}
.feed-sheet-card .danger { color: var(--c-danger); -webkit-text-fill-color: var(--c-danger); }
.feed-sheet-card .is-off { color: var(--c-gray-45); -webkit-text-fill-color: var(--c-gray-45); cursor: default; }
.feed-sheet-card button:last-child, .feed-sheet-card a:last-child { border-bottom: 0; }
.feed-follow {
  flex-shrink: 0;
  border: 0; border-radius: 8px;
  padding: 6px 12px;
  background: var(--ink); color: var(--bg); -webkit-text-fill-color: var(--bg);
  font-size: var(--fs-13); line-height: 16px; font-weight: var(--fw-semibold);
  cursor: pointer;
}
.feed-follow.on {
  background: var(--raised); color: var(--ink); -webkit-text-fill-color: var(--ink);
}
.feed-album {
  position: relative; width: 100%; aspect-ratio: 3 / 4;
  overflow: hidden; background: var(--c-gray-07); touch-action: pan-y;
  cursor: default; user-select: none;
  overscroll-behavior-x: contain;
}
a.feed-album { display: block; color: inherit; cursor: pointer; }
.feed-track { display: flex; width: 100%; height: 100%; will-change: transform; }
.feed-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; }
.feed-slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.feed-idx {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--c-black-55); color: var(--c-white);
  font-size: var(--fs-12); line-height: var(--lh-12);
  border-radius: 999px; padding: 3px 8px;
}
.feed-dots {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2;
  display: flex; justify-content: center; gap: 4px; pointer-events: none;
}
.feed-dots span {
  width: .375rem; height: .375rem; border-radius: 50%; background: var(--c-white-38);
}
.feed-dots span.on { background: var(--c-white); }
.feed-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 1.75rem; height: 1.75rem; border: 0; border-radius: 50%;
  background: var(--c-black-42); color: var(--c-white); z-index: 3;
  font-size: var(--fs-20); line-height: 28px; padding: 0; cursor: pointer;
}
.feed-nav.prev { left: 8px; }
.feed-nav.next { right: 8px; }
/* 议题 212 第 3 步：动态多图左右键的符号换成图标，字号定图标大小，和原符号实际大小接近 */
.feed-nav { font-size: var(--ic-16); }
.like-bar.feed-engage {
  display: block; padding: 0; background: transparent;
}
.feed-bar {
  display: flex; align-items: center; gap: 2px;
  padding: 4px 6px 0;
}
.feed-ico {
  width: 2.5rem; height: 2.5rem; border: 0; background: none; color: var(--text); -webkit-text-fill-color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer;
}
.feed-ico svg { font-size: var(--ic-24); display: block; }
.feed-ico.on { color: var(--c-danger); }
.feed-ico.star-btn.on { color: var(--c-star); }
.feed-grow { flex: 1; }
.feed-meta {
  margin: 0; padding: 2px 14px 10px;
  font-size: var(--fs-13); line-height: var(--lh-13); color: var(--muted);
}
.feed-ad-tag {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: var(--c-black-62); color: var(--c-white);
  font-size: var(--fs-11); line-height: var(--lh-11);
  border-radius: 4px; padding: 3px 6px;
}
.feed-ad-cap {
  display: block;
  margin: 0; padding: 10px 14px 12px;
  font-size: var(--fs-14); line-height: var(--lh-15);
}
.feed-post.is-lock .feed-slide img { filter: blur(10px); transform: scale(1.06); }
.feed .guest-tease {
  display: block;
  grid-template-columns: none;
  position: relative;
}
.suggest {
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.suggest-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 14px 10px;
}
.suggest-h b { font-size: var(--fs-16); line-height: var(--lh-15); }
.suggest-h a {
  color: var(--c-link); font-size: var(--fs-13); line-height: var(--lh-13);
  font-weight: var(--fw-semibold);
}
.suggest-row {
  display: flex; flex-wrap: nowrap; gap: 10px;
  overflow-x: auto; overflow-y: hidden;
  padding: 0 14px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.suggest-row::-webkit-scrollbar { display: none; }
.suggest-card {
  flex: 0 0 140px; width: 8.75rem; min-width: 8.75rem;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 12px 12px; text-align: center;
}
.suggest-face {
  position: relative;
  display: block; width: 5.5rem; height: 5.5rem; margin: 0 auto;
  padding: 0; border: 0; background: var(--c-gray-10); border-radius: 50%; overflow: visible;
  cursor: pointer;
}
.suggest-face .presence-dot { width: .875rem; height: .875rem; right: 2px; bottom: 2px; }
.suggest-face img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 50%; }
.suggest-name {
  display: block; width: 100%; margin-top: 10px;
  border: 0; background: none; color: inherit; padding: 0; cursor: pointer; font: inherit;
}
.suggest-card b {
  display: block; margin-top: 10px;
  font-size: var(--fs-13); line-height: var(--lh-13);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.suggest-name b { margin-top: 0; }
.suggest-card small {
  display: block; margin: 4px 0 10px; min-height: 1rem;
  color: var(--muted); font-size: var(--fs-12); line-height: var(--lh-12);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.suggest-go {
  width: 100%; padding: 7px 8px;
  font-size: var(--fs-13); line-height: var(--lh-13);
}
.ig-file {
  position: fixed; left: -9999px; top: 0;
  width: .0625rem; height: .0625rem; opacity: 0;
}
.ig-pop-mask {
  position: fixed; inset: 0; z-index: 70;
  border: 0; padding: 0; margin: 0; background: transparent; cursor: default;
}
.ig-pop {
  position: fixed; z-index: 80;
  width: max-content;
  min-width: 0;
  max-width: calc(100vw - 1rem);
  background: var(--raised);
  color: var(--ink);
  border-radius: 12px;
  box-shadow: 0 8px 28px var(--c-black-50);
  overflow: visible;
  padding: 4px 0;
}
.ig-pop[hidden], .ig-pop-mask[hidden] { display: none !important; }
.ig-pop button {
  display: flex; align-items: center; gap: 12px;
  width: auto; white-space: nowrap; border: 0; background: none;
  color: var(--ink); -webkit-text-fill-color: var(--ink); padding: 12px 16px;
  font-size: var(--fs-15); line-height: 20px; text-align: left; cursor: pointer;
}
.ig-pop button + button { border-top: 1px solid var(--line); }
.ig-pop button svg { font-size: var(--ic-22); flex-shrink: 0; }

.chips.gender-want {
  padding: 8px 14px 0;
  border: 0;
}
.gender-want .chip:not(.on) {
  border-color: var(--field-line);
}
/* 搜索页话题滚轮（2026-10-25 平移资料页那套，样式沿用 .topic-bar/.topic-wheel）：#findTopics 是滚轮定位容器。 */
#findTopics { position: relative; padding: 2px 14px 0; }
#findTopics .topic-bar { margin: 6px 0 4px; }
/* 搜索页「合作商家」链接下的商家横排（2026-10-25 用户定）：同 #/shops 按地区过滤，左右滑。 */
.shop-strip {
  display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 10px;
  scrollbar-width: none; touch-action: pan-x pan-y;
}
.shop-strip::-webkit-scrollbar { display: none; }
.shop-chip { flex: 0 0 auto; width: 6.75rem; color: inherit; }
.shop-chip img, .shop-chip .shop-ph {
  display: block; width: 6.75rem; height: 4.5rem; object-fit: cover; border-radius: 10px; background: var(--c-gray-10);
}
.shop-chip b {
  display: block; margin-top: 4px; font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-semibold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shop-strip-empty { margin: 0 14px 10px; }
.pin-tag, .tier-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: var(--fs-10);
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: middle;
  background: var(--raised);
  color: var(--ink); -webkit-text-fill-color: var(--ink);
}
.tier-tag.gold, .pin-tag {
  background: var(--c-gold);
  color: var(--c-gray-07);
}
.daddy-gate { padding: 24px 16px 40px; }
.sponsor-card .admin-acts { flex-wrap: wrap; }
.feed-cap {
  margin: 0;
  padding: 0 14px 14px;
  font-size: var(--fs-13);
  line-height: 18px;
  color: var(--text); -webkit-text-fill-color: var(--text);
}
.feed-cap b { margin-right: 6px; font-weight: var(--fw-semibold); }

.partner-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 0 14px 10px;
  text-align: left;
}
#verifyPreview, video[data-admin-video-box] {
  width: 100%;
  max-height: 26.25rem;
  margin: 0;
  background: var(--c-black);
  border-radius: 12px;
}
.sugar-banner {
  margin: 0;
  padding: 18px 16px;
  text-align: center;
  background: var(--c-sugar-bg);
  color: var(--c-sugar-gold);
  -webkit-text-fill-color: var(--c-sugar-gold);
  font-size: var(--fs-28);
  line-height: 1.35;
  font-weight: 700;
}
.sugar-banner em {
  margin-left: 8px;
  font-style: italic;
  font-weight: 500;
  font-family: "Savoye LET", "Snell Roundhand", "Segoe Script", "Apple Chancery", cursive;
  font-size: 1.25em;
  letter-spacing: 0.02em;
}
.sugar-fee {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  color: var(--c-gold);
  -webkit-text-fill-color: var(--c-gold);
  font-size: var(--fs-14);
}
.sugar-support {
  color: var(--c-sugar-gold);
  -webkit-text-fill-color: var(--c-sugar-gold);
  width: 1.75rem;
  height: 1.75rem;
}
.sugar-support svg { font-size: var(--ic-22); }
.verify-stage {
  position: relative;
  margin: 8px 0;
  aspect-ratio: 3 / 4;
  max-height: 28.75rem;
  overflow: hidden;
  border-radius: 16px;
  background: var(--c-black);
}
.verify-stage #verifyPreview {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  transform: scaleX(-1);
}
.verify-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.verify-mask[hidden] { display: none; }
.verify-mask svg { width: 100%; height: 100%; display: block; }
.verify-prompt {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 88px;
  margin: 0;
  text-align: center;
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-16);
  font-weight: 650;
  text-shadow: 0 1px 2px var(--c-black-60);
}
.verify-rec {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 4px solid var(--c-white);
  background: var(--c-like-rose);
  padding: 0;
  cursor: pointer;
}
.verify-rec[hidden] { display: none; }
.verify-time {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 2.25rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--c-black-55);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-14);
  line-height: 20px;
  text-align: center;
}
.verify-time[hidden] { display: none; }
.partner-guide .partner-name {
  margin: 8px 0 22px;
  text-align: center;
  font-size: var(--fs-30);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.partner-ad { margin: 0 0 18px; text-align: left; }
.partner-ad h2 {
  margin: 0 0 8px;
  font-size: var(--fs-17);
  line-height: 1.45;
  font-weight: 700;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.partner-ad p {
  margin: 0;
  font-size: var(--fs-15);
  line-height: 1.7;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.partner-card p { margin: 0; color: var(--muted); font-size: var(--fs-13); line-height: 18px; }
.partner-card .hint { margin-top: 8px; }
.partner-preview { margin-top: 10px; }
.partner-row {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-14);
}
.partner-row.featured b { color: var(--c-burn-yellow); }
.partner-cta { padding: 8px 14px 24px; display: flex; flex-direction: column; gap: 8px; }
.street-note { margin: 4px 0 12px; }
.apply-preview, [data-apply-preview] { margin-top: 18px; }
.shop-face { margin: 0 0 28px; }
.shop-face h1 { margin: 0 0 6px; font-size: var(--fs-22); line-height: 1.3; }
.shop-where, .shop-street {
  margin: 0 0 6px;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  font-size: var(--fs-14);
  line-height: 1.5;
}
.shop-banners { margin: 12px 0 4px; }
.shop-banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 10px;
  background: var(--panel);
}
.shop-banner-home { aspect-ratio: 1080 / 1440; }
.shop-banner-search { aspect-ratio: 1080 / 304; }
.moments { margin: 18px 0 8px; }
.moments h2 { margin: 0 0 10px; font-size: var(--fs-18); }
.moment-compose {
  margin: 0 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.moment-compose textarea {
  width: 100%; min-height: 5.5rem; border: 0; resize: vertical; background: transparent; color: var(--text);
}
.fb-previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.fb-previews img, .fb-previews video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--c-gray-07); }
.fb-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.fb-pick { position: relative; display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 12px; border-radius: 8px; background: var(--surface); color: var(--text); font-size: var(--fs-14); }
.fb-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.moment { margin: 0 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.moment header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.moment header b { font-size: var(--fs-15); }
.moment-menu { flex: none; width: 2rem; height: 2rem; padding: 0; border: 0; background: transparent; color: var(--text); -webkit-text-fill-color: var(--text); cursor: pointer; }
.moment-menu svg { font-size: var(--ic-22); display: block; margin: 0 auto; }
.moment time { display: block; color: var(--muted); font-size: var(--fs-12); }
.moment > p { margin: 8px 0; font-size: var(--fs-15); line-height: 1.5; white-space: pre-wrap; }
.moment-grid { display: grid; gap: 3px; margin-top: 8px; }
.moment-grid.n1 { grid-template-columns: 1fr; }
.moment-grid.n2, .moment-grid.n4 { grid-template-columns: 1fr 1fr; }
.moment-grid.n3 { grid-template-columns: 1.4fr 1fr; }
.moment-grid.n3 .moment-cell:first-child { grid-row: span 2; }
.moment-cell { position: relative; background: var(--c-gray-07); min-height: 7.5rem; overflow: hidden; }
.moment-cell img, .moment-cell video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; display: block; }
.moment-grid.n1 .moment-cell img, .moment-grid.n1 .moment-cell video { aspect-ratio: 4 / 5; }
.moment-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--c-black-45); color: var(--c-white); font-size: var(--fs-28); font-weight: 700; }
.moment-lock { margin-top: 8px; padding: 28px 12px; text-align: center; background: var(--panel); color: var(--muted); border-radius: 8px; }
.moment-like { margin-top: 8px; border: 0; background: transparent; color: var(--text); font-size: var(--fs-14); }
.moment-like.on { color: var(--c-like-rose); }
.moment-place { margin: 0 0 8px; color: var(--muted); -webkit-text-fill-color: var(--muted); font-size: var(--fs-13); line-height: 18px; }
.shot-board { margin: 12px 0 8px; }
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.shot-cell, .shot-empty {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--c-gray-07);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.shot-cell img, .shot-cell video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.shot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: transparent;
  border: 1px dashed var(--line);
  text-align: center;
  cursor: pointer;
}
.shot-empty svg { font-size: var(--ic-36); }
.shot-empty-text { font-size: var(--fs-13); line-height: 18px; }
.shot-empty-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--c-link);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-14);
  font-weight: 600;
  line-height: 18px;
}
.shot-composer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  height: 100dvh;
  background: var(--c-black-72);
}
.shot-composer[hidden] { display: none !important; }
.clip-box {
  position: fixed; inset: 0; z-index: 130;
  display: flex; justify-content: center; align-items: stretch;
  height: 100%; height: 100dvh;
  background: var(--c-black-78);
}
.clip-box[hidden] { display: none !important; }
.clip-phone {
  width: 100%; max-width: 27.5rem; height: 100%; max-height: 100dvh;
  background: var(--c-ink-bg); color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  display: flex; flex-direction: column; overflow: auto;
  padding-top: 67px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.clip-stage {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  background: var(--c-black); flex: 0 0 auto;
}
.clip-stage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.clip-stage canvas[data-clip-canvas] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .02; pointer-events: none;
}
.clip-progress {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  height: 1.75rem; border-radius: 14px; overflow: hidden;
  background: var(--c-white-16);
  display: flex; align-items: center;
}
.clip-progress i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--c-action-blue);
}
.clip-progress span {
  position: relative; z-index: 1; width: 100%; text-align: center;
  font-size: var(--fs-12); color: var(--c-white); -webkit-text-fill-color: var(--c-white);
}
.clip-time {
  display: flex; justify-content: space-between; align-items: center;
  margin: 10px 16px 0; font-size: var(--fs-13); color: var(--c-gray-66);
}
.clip-time b { color: var(--c-white); -webkit-text-fill-color: var(--c-white); font-weight: 600; }
.clip-row {
  display: grid; grid-template-columns: 48px 1fr; gap: 10px;
  align-items: center; margin: 8px 16px 0; font-size: var(--fs-13);
}
.clip-row input { width: 100%; }
.clip-chips {
  display: flex; gap: 8px; padding: 10px 16px 0;
}
.clip-chips button {
  flex: 1; height: 2rem; border: 1px solid var(--line); border-radius: 16px;
  background: transparent; color: var(--c-gray-96); -webkit-text-fill-color: var(--c-gray-96);
}
.clip-chips button.on { background: var(--c-gray-96); color: var(--c-gray-07); -webkit-text-fill-color: var(--c-gray-07); border-color: var(--c-gray-96); }
.clip-hint { padding: 8px 16px 20px; }
.shot-phone {
  width: 100%;
  max-width: 27.5rem;
  height: 100%;
  max-height: 100dvh;
  background: var(--c-ink-bg);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  display: flex;
  flex-direction: column;
  overflow: auto;
  /* #174：顶部空白按手机安全区算，不再写死 67px（仿 Instagram，不贴顶）。 */
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.shot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3rem;
  padding: 0 4px;
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--c-ink-bg);
}
.shot-top b { font-size: var(--fs-16); font-weight: 600; }
.shot-x, .shot-go {
  min-width: 4rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-16);
}
.shot-x { font-size: var(--fs-28); line-height: 1; }
.shot-go { color: var(--c-action-blue); -webkit-text-fill-color: var(--c-action-blue); font-weight: 600; text-align: right; }
.shot-go:disabled { opacity: .45; }
.shot-err {
  margin: 8px 16px 0;
  color: var(--c-error-soft);
  -webkit-text-fill-color: var(--c-error-soft);
  font-size: var(--fs-13);
  line-height: 1.4;
}
.shot-action {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 12px 16px 16px;
}
.shot-action-btn {
  width: 100%;
  height: 3rem;
  border: 0;
  border-radius: 24px;
  background: var(--c-action-blue);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-16);
  font-weight: 600;
}
.shot-action-btn:disabled { opacity: .45; }
.shot-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  flex: 0 0 auto;
  background: var(--c-black);
  overflow: hidden;
  touch-action: none;
}
.shot-composer.is-busy .shot-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin: -20px 0 0 -20px;
  border: 3px solid var(--c-white-22);
  border-top-color: var(--c-white);
  border-radius: 50%;
  animation: shot-spin .7s linear infinite;
  z-index: 8;
  pointer-events: none;
}
@keyframes shot-spin {
  to { transform: rotate(360deg); }
}
.shot-crop-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}
.shot-stage .cropper-container {
  width: 100% !important;
  height: 100% !important;
}
.shot-fit {
  display: flex;
  gap: 8px;
  padding: 8px 16px 0;
}
.shot-fit button {
  flex: 1;
  height: 2.25rem;
  border: 1px solid var(--c-white-28);
  border-radius: 18px;
  background: transparent;
  color: var(--c-gray-96);
  -webkit-text-fill-color: var(--c-gray-96);
  font-size: var(--fs-13);
}
.shot-fit button.on {
  background: var(--c-gray-96);
  color: var(--c-gray-07);
  -webkit-text-fill-color: var(--c-gray-07);
  border-color: var(--c-gray-96);
}
.shot-stage[hidden], .shot-tabs[hidden], .shot-filters[hidden], .shot-share[hidden], .shot-crop-sliders[hidden] { display: none !important; }
.shot-stage canvas { width: 100%; height: 100%; display: block; }
.shot-crop {
  position: absolute;
  box-sizing: border-box;
  border: 1.5px solid var(--c-white);
  box-shadow: 0 0 0 9999px var(--c-black-55);
  touch-action: none;
  z-index: 2;
}
.shot-crop-grid {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, transparent 33.33%, var(--c-white-55) 33.33%, var(--c-white-55) calc(33.33% + 1px), transparent calc(33.33% + 1px)),
    linear-gradient(to right, transparent 66.66%, var(--c-white-55) 66.66%, var(--c-white-55) calc(66.66% + 1px), transparent calc(66.66% + 1px)),
    linear-gradient(to bottom, transparent 33.33%, var(--c-white-55) 33.33%, var(--c-white-55) calc(33.33% + 1px), transparent calc(33.33% + 1px)),
    linear-gradient(to bottom, transparent 66.66%, var(--c-white-55) 66.66%, var(--c-white-55) calc(66.66% + 1px), transparent calc(66.66% + 1px));
}
.shot-crop i {
  position: absolute;
  width: 1.125rem; height: 1.125rem;
  background: var(--c-white);
  border-radius: 1px;
  z-index: 3;
}
.shot-crop [data-crop-h="nw"] { left: -4px; top: -4px; cursor: nwse-resize; }
.shot-crop [data-crop-h="ne"] { right: -4px; top: -4px; cursor: nesw-resize; }
.shot-crop [data-crop-h="sw"] { left: -4px; bottom: -4px; cursor: nesw-resize; }
.shot-crop [data-crop-h="se"] { right: -4px; bottom: -4px; cursor: nwse-resize; }
.shot-crop [data-crop-h="n"] { top: -4px; left: 50%; width: 1.375rem; height: .5rem; margin-left: -11px; cursor: ns-resize; }
.shot-crop [data-crop-h="s"] { bottom: -4px; left: 50%; width: 1.375rem; height: .5rem; margin-left: -11px; cursor: ns-resize; }
.shot-crop [data-crop-h="w"] { left: -4px; top: 50%; width: .5rem; height: 1.375rem; margin-top: -11px; cursor: ew-resize; }
.shot-crop [data-crop-h="e"] { right: -4px; top: 50%; width: .5rem; height: 1.375rem; margin-top: -11px; cursor: ew-resize; }
.shot-crop-sliders { flex: 0 0 auto; padding-bottom: 6px; }
.shot-tool {
  position: absolute;
  bottom: 12px;
  z-index: 4;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-black-55);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
}
.shot-tool.turn { right: 12px; }
.shot-tool svg { font-size: var(--ic-22); display: block; margin: 0 auto; }
.shot-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 12px 4px;
  flex: 0 0 auto;
}
.shot-filter {
  flex: 0 0 auto;
  width: 4.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-11);
  line-height: 16px;
}
.shot-filter i {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 4px;
  border-radius: 4px;
  background: var(--c-gray-13) center / cover no-repeat;
  border: 2px solid transparent;
}
.shot-filter.on i { border-color: var(--c-white); }
.shot-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 0 0 auto;
  border-top: 1px solid var(--c-white-15);
}
.shot-tabs button {
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--c-white-50);
  -webkit-text-fill-color: var(--c-white-50);
  font-size: var(--fs-15);
}
.shot-tabs button.on {
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  box-shadow: inset 0 -2px 0 var(--c-white);
}
/* #174：发布这一步 = 头像＋输入框 → 居中大预览（占满中间） → 添加地点，底部蓝色「发布」由 .shot-action 贴底。 */
.shot-share { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.shot-share-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; }
.shot-ava { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; background: var(--c-gray-13); flex: 0 0 auto; }
.shot-share-row textarea {
  flex: 1;
  min-width: 0;
  min-height: 7.5rem;
  border: 0;
  resize: none;
  background: transparent;
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-16);
  line-height: 22px;
}
.shot-composer input, .shot-composer textarea { font-size: var(--fs-16); }
.shot-preview { flex: 1 1 auto; min-height: 13.75rem; display: flex; align-items: center; justify-content: center; padding: 0 16px 12px; }
.shot-preview:empty { display: none; }
.shot-album { width: auto; height: 100%; max-width: 100%; aspect-ratio: 4 / 5; border-radius: 8px; background: var(--c-black); touch-action: pan-y; }
.shot-album .feed-slide img,
.shot-album .feed-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: var(--c-black); }
.shot-album .feed-slide video { -webkit-user-drag: none; }
.shot-place {
  display: block;
  margin: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--c-white-12);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-15);
}
.shot-place span { display: block; margin-bottom: 8px; }
.shot-place input {
  width: 100%;
  height: 2.5rem;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--c-ink-field);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-15);
}
.moment-file { display: none; }
.shop-contacts { margin: 12px 0 8px; }
.shop-phone { display: flex; justify-content: center; margin: 0 0 12px; }
.shop-phone a, .shop-phone span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18ch; max-width: 100%;
  padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card);
  color: var(--text); -webkit-text-fill-color: var(--text);
  font-size: var(--fs-16); line-height: 22px; letter-spacing: 0;
}
.shop-chan { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.shop-ico { width: 2rem; height: 2rem; flex: 0 0 32px; }
.shop-ico svg { font-size: var(--ic-32); display: block; }
.shop-id {
  flex: 1; min-width: 0; height: 2rem;
  padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--card);
  color: var(--text); -webkit-text-fill-color: var(--text);
  line-height: 32px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-qr, .shop-qr-empty {
  width: 2rem; height: 2rem; flex: 0 0 32px; margin-left: 4px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--card);
  color: var(--muted); -webkit-text-fill-color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  padding: 0; overflow: hidden;
}
.shop-qr { cursor: pointer; }
.shop-qr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apply-chan { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.apply-chan input:not([type="file"]) { width: auto; flex: 1; min-width: 0; margin: 0; }
.apply-form label.shop-qr-pick,
.shop-qr-pick {
  position: relative; width: 2rem; height: 2rem; flex: 0 0 32px; margin: 0 0 0 4px;
  border: 1px dashed var(--line); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); -webkit-text-fill-color: var(--muted);
  font-size: var(--fs-18); line-height: 1;
  cursor: pointer; overflow: hidden;
}
.shop-qr-pick input { position: absolute; width: .0625rem; height: .0625rem; opacity: 0; }
.shop-qr-pick img { display: none; width: 100%; height: 100%; object-fit: cover; }
.shop-qr-pick.has-file span { display: none; }
.shop-qr-pick.has-file img { display: block; }
.apply-form label.ad-drop,
.ad-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  text-align: center;
  font-size: var(--fs-12);
  line-height: 1.45;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.ad-drop-home { aspect-ratio: 1080 / 1440; }
.ad-drop-search { aspect-ratio: 1080 / 304; }
.ad-drop input {
  position: absolute;
  width: .0625rem;
  height: .0625rem;
  opacity: 0;
  overflow: hidden;
}
.ad-plus {
  display: block;
  font-size: var(--fs-36);
  line-height: 1;
  font-weight: 400;
  text-align: center;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.ad-drop-note {
  display: block;
  width: 100%;
  max-width: 34ch;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  font-size: var(--fs-12);
  line-height: 1.45;
}
.ad-drop-search .ad-drop-note { font-size: var(--fs-11); line-height: 1.35; }
.ad-drop.has-file { padding: 0; }
.ad-drop.has-file .ad-plus,
.ad-drop.has-file .ad-drop-note { display: none; }
.ad-drop img { display: none; }
.ad-drop.has-file img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.filter-sheet { padding: 4px 14px 12px; }
.range-dual { display: grid; gap: 6px; }
.profile-meter {
  position: fixed; z-index: 111;
  left: max(6px, env(safe-area-inset-left, 0px));
  top: 50%;
  transform: translateY(-50%);
  height: min(60vh, calc(100vh - 8.75rem));
  height: min(60dvh, calc(100dvh - 8.75rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  max-height: none;
  --meter-dot: clamp(22px, 4vmin, 40px);
  min-height: calc(var(--meter-dot) * 5 + 3rem);
  width: calc(var(--meter-dot) + .375rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  background: transparent;
  color: var(--text);
  border: 0;
  padding: 2px 0;
  box-shadow: none;
  pointer-events: none;
}
.profile-meter::before {
  content: "";
  position: absolute;
  top: calc(var(--meter-dot) / 2); bottom: calc(var(--meter-dot) / 2); left: 50%;
  width: .09375rem;
  margin-left: -0.75px;
  background: var(--c-gray-78);
  z-index: 0;
}
.profile-step {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  flex: 0 0 var(--meter-dot);
  width: var(--meter-dot); height: var(--meter-dot);
  border: 1.5px solid var(--c-gray-60);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  font-size: calc(var(--meter-dot) * 0.4545); line-height: calc(var(--meter-dot) - 3px);
  padding: 0;
  cursor: pointer;
}
html:not([data-theme="day"]) .profile-step { border-color: var(--c-gray-54); }
.profile-step.done,
html:not([data-theme="day"]) .profile-step.done {
  background: var(--panel); border-color: var(--text);
  color: var(--text); -webkit-text-fill-color: var(--text);
}
.profile-step.now,
.profile-step.done.now,
html:not([data-theme="day"]) .profile-step.now {
  background: var(--text); border-color: var(--text);
  color: var(--bg); -webkit-text-fill-color: var(--bg);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--text) 22%, transparent);
}
.req-mark, .req-under {
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-10);
  line-height: 1.3;
  font-weight: 400;
}
.req-under { margin: 6px 0 0; }
.profile-public-hint {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 18px 8px 12px;
  text-align: left;
  color: var(--muted);
  font-size: var(--fs-12);
  line-height: 1.55;
}
.profile-public-hint input {
  width: 1.125rem; height: 1.125rem; padding: 0;
  margin: 3px 0 0;
  flex: 0 0 auto;
}
.profile-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
#profileModal .dialog { padding-top: 12px; }
.msg-bubble {
  position: fixed; z-index: 70; left: 12px; right: 12px; bottom: 78px;
  border: 0; border-radius: 14px; background: var(--raised); color: var(--ink); -webkit-text-fill-color: var(--ink);
  text-align: left; padding: 12px 14px;
}
.msg-read, .msg-auto { display: block; color: var(--dim); font-size: var(--fs-11); }
.help-btn { margin-left: 4px; }
.faq { text-align: left; margin: 14px 0; }
.faq p { color: var(--muted); margin: 4px 0 0; }
.renew-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 14px; border: 0; background: none; color: inherit; text-align: left; }
.country-coming { text-align: center; padding: 8px 14px 0; }
.intro-wrap { position: relative; margin: 12px 0; background: var(--c-black); border-radius: 12px; overflow: hidden; }
.intro-video { width: 100%; max-height: 70vh; background: var(--c-black); display: block; }
.intro-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 0; border-radius: 999px; background: var(--c-black-55); color: var(--c-white);
  -webkit-text-fill-color: var(--c-white); padding: 10px 16px; cursor: pointer;
}
.intro-preview { width: 100%; max-height: 15rem; background: var(--c-black); border-radius: 12px; margin: 8px 0; }
.intro-edit { margin-top: 12px; }

/* 白天：只改页面底色和字。大图、故事仍用黑底。未手动选择时跟手机系统。 */
html[data-theme="day"] .req-mark,
html[data-theme="day"] .req-under {
  color: var(--c-required-red);
  -webkit-text-fill-color: var(--c-required-red);
}
html[data-theme="day"] .profile-meter::before {
  background: var(--c-gray-33);
}
html[data-theme="day"] {
  color-scheme: light;
  --bg: #fff;
  --bar: #fff;
  --line: #dbdbdb;
  --text: #111;
  --muted: #737373;
  --card: #fafafa;
  --field: #efefef;
  --chip: #efefef;
  --wheel-bg: #d0d0d0;
  --chip-text: #111;
  --chip-on: #111;
  --chip-on-text: #fff;
  --topic-bg: #e8f1ff;
  --topic-text: #1d5fd1;
  --panel: #fff;
  --panel-text: #111;
  --surface: #efefef;
  --raised: #e8e8e8;
  --ink: #111;
  --dim: #737373;
  --field-bg: #efefef;
  --field-line: #dbdbdb;
  --field-ring: transparent;
  --top-bg: var(--c-white-94);
  --tabs-bg: var(--c-white-48);
  --tabs-line: var(--c-black-08);
  --tabs-shadow: 0 10px 30px var(--c-black-14);
  --more-bg: var(--panel);
  --more-shadow: 0 0 0 1px var(--line), 0 10px 28px var(--c-black-18);
  --more-fg: var(--text);
  --more-on: var(--chip);
  --geo-fg: var(--muted);
  --geo-field: var(--chip);
  --geo-ink: var(--text);
  --star-on: var(--c-gold);
  --star-fill: var(--star-on);
  --tab-off: rgba(0,0,0,.45); /* 议题 212 卡 1：日间底栏未选中色 */
}
html[data-theme="day"] .ig-top {
  background: var(--c-white-94);
}
html[data-theme="day"] .searchwrap,
html[data-theme="day"] .cats,
html[data-theme="day"] .feed,
html[data-theme="day"] .hash-hints,
html[data-theme="day"] .photo-cell,
html[data-theme="day"] .like-bar,
html[data-theme="day"] .page,
html[data-theme="day"] main.profile,
html[data-theme="day"] .inbox,
html[data-theme="day"] .inbox-chat .composer,
html[data-theme="day"] .thread-list {
  background: var(--bg);
  color: var(--text);
}
html[data-theme="day"] .country-btn,
html[data-theme="day"] .country-menu,
html[data-theme="day"] .dialog,
html[data-theme="day"] .bubble {
  background: var(--c-gray-94);
  color: var(--c-gray-07);
  -webkit-text-fill-color: var(--c-gray-07);
}
html[data-theme="day"] .bubble.voice:not(.me) .voice-wave {
  color: var(--c-black-45); -webkit-text-fill-color: var(--c-black-45);
}
html[data-theme="day"] .bubble.voice:not(.me) .voice-wave i.is-heard { background: var(--c-gray-15); }
html[data-theme="day"] .bubble.me {
  background: var(--c-accent);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
}
html[data-theme="day"] .bubble.burn-seal,
html[data-theme="day"] .bubble.burn-seal.me {
  background: var(--c-danger);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
}
html[data-theme="day"] .dm-pill {
  background: var(--c-pill-day);
  border-color: transparent;
}
html[data-theme="day"] .dm-burn-btn {
  border-color: var(--c-black-16);
  background-image:
    linear-gradient(180deg, var(--c-white-62) 0%, var(--c-white-14) 42%, var(--c-white-00) 52%),
    linear-gradient(180deg, var(--c-burn-day-hi) 0%, var(--c-burn-day-lo) 100%);
  background-color: var(--c-burn-day-mid);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  box-shadow:
    inset 0 1px 0 var(--c-white-70),
    inset 0 -1px 1px var(--c-black-12),
    0 1px 1px var(--c-black-12);
}
html[data-theme="day"] .dm-burn-btn.on {
  border-color: transparent;
  background-image:
    linear-gradient(180deg, var(--c-white-32) 0%, var(--c-white-00) 46%),
    linear-gradient(90deg, var(--c-burn-yellow), var(--c-burn-pink), var(--c-burn-purple), var(--c-burn-yellow), var(--c-burn-pink));
  background-size: 100% 100%, 300% 100%;
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
}
html[data-theme="day"] .dm-intro-go {
  background: var(--c-gray-94);
}
html[data-theme="day"] input,
html[data-theme="day"] select,
html[data-theme="day"] textarea,
html[data-theme="day"] .searchwrap input,
html[data-theme="day"] .apply-form input,
html[data-theme="day"] .apply-form select,
html[data-theme="day"] .searchbar input,
html[data-theme="day"] .searchbar select,
html[data-theme="day"] .composer input,
html[data-theme="day"] .composer-row input {
  background: var(--field);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
html[data-theme="day"] .searchwrap input::placeholder,
html[data-theme="day"] .composer-row input::placeholder {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
html[data-theme="day"] .bio,
html[data-theme="day"] .shop-card p,
html[data-theme="day"] .income-head b,
html[data-theme="day"] .feed-cap,
html[data-theme="day"] .admin-confirm-list,
html[data-theme="day"] .admin-body .bio,
html[data-theme="day"] button.link,
html[data-theme="day"] a.link {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
/* 深色按钮不能继承弹窗的黑字，否则高德、Kakao 这类按钮会黑字叠深灰。 */
html[data-theme="day"] .btn:not(.gray),
html[data-theme="day"] a.btn:not(.gray) {
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
}
html[data-theme="day"] .ghost {
  background: transparent;
  color: var(--c-gray-07);
  -webkit-text-fill-color: var(--c-gray-07);
}
html[data-theme="day"] .tier-tag.gold,
html[data-theme="day"] .pin-tag {
  color: var(--c-gray-07);
  -webkit-text-fill-color: var(--c-gray-07);
}
html[data-theme="day"] .chip.on {
  background: var(--chip-on);
  color: var(--chip-on-text);
  -webkit-text-fill-color: var(--chip-on-text);
  border-color: var(--chip-on);
}
/* 这些字原来写死成浅色，白天底改白之后会贴在一起。 */
html[data-theme="day"] .like-btn,
html[data-theme="day"] .like-heart,
html[data-theme="day"] .like-count,
html[data-theme="day"] .feed-ico,
html[data-theme="day"] .report-photo {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
html[data-theme="day"] .like-btn.on,
html[data-theme="day"] .like-heart.on,
html[data-theme="day"] .feed-ico.on {
  color: var(--c-danger);
  -webkit-text-fill-color: var(--c-danger);
}
html[data-theme="day"] .feed-ico.star-btn.on {
  color: var(--c-gold);
  -webkit-text-fill-color: var(--c-gold);
}
html[data-theme="day"] .partner-row.featured b,
html[data-theme="day"] .hint.coming {
  color: var(--c-gold-text-day);
  -webkit-text-fill-color: var(--c-gold-text-day);
}
html[data-theme="day"] .toast {
  background: var(--c-gray-07);
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
  border-color: var(--c-gray-07);
}
/* 这些块的底色写死成黑夜的黑，字却跟着白天变成深灰或黑。注册须知就是灰字叠黑底。 */
html[data-theme="day"] .daddy-note,
html[data-theme="day"] .suggest,
html[data-theme="day"] .suggest-card,
html[data-theme="day"] .bubble.burn-wait {
  background: var(--panel);
  color: var(--panel-text);
  -webkit-text-fill-color: var(--panel-text);
}
html[data-theme="day"] .daddy-note,
html[data-theme="day"] .suggest-card {
  border-color: var(--line);
}
html[data-theme="day"] .suggest-card small {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
/* 压在照片、黑遮罩、全屏查看上的字。白天页面变成黑字后，这些字仍要白字配黑底，底和字写在一起。 */
html[data-theme="day"] .tile .cap,
html[data-theme="day"] .tile-tags,
html[data-theme="day"] .tile .lock-cap,
html[data-theme="day"] .ad-banner .ad-cap,
html[data-theme="day"] .ad-banner .ad-tag,
html[data-theme="day"] .feed-idx,
html[data-theme="day"] .feed-nav,
html[data-theme="day"] .feed-ad-tag,
html[data-theme="day"] .guest-lock,
html[data-theme="day"] .guest-lock-card,
html[data-theme="day"] .guest-lock-card h2,
html[data-theme="day"] .guest-lock-card p,
html[data-theme="day"] .contacts .lock,
html[data-theme="day"] .photo-peek-x,
html[data-theme="day"] .photo-peek-more,
html[data-theme="day"] .photo-peek-menu,
html[data-theme="day"] .photo-peek-menu button,
html[data-theme="day"] .photo-peek-nav,
html[data-theme="day"] .intro-slot-x,
html[data-theme="day"] .toast,
html[data-theme="day"] .msg-bubble {
  color: var(--c-white);
  -webkit-text-fill-color: var(--c-white);
}
/* ===== 议题 181 第 6 步（2026-10-28）：新私信页 .dm2。窄屏整页切换（有对话号只见对话，没有只见名单）；宽屏见下面九百六十像素那一档。 ===== */
.dm2 { width: min(var(--max), 100%); margin: 0 auto; background: var(--bg); }
.dm2-list { display: flex; flex-direction: column; min-height: calc(100svh - 3.625rem); padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
.dm2-head {
  display: flex; align-items: center; min-height: calc(3rem + env(safe-area-inset-top, 0px));
  padding: calc(4px + env(safe-area-inset-top, 0px)) 16px 4px; border-bottom: 1px solid var(--line);
}
.dm2-head b { font-size: var(--fs-18); line-height: 24px; font-weight: 700; }
.dm2-row.on { background: var(--surface); }
.dm2-row .ig-unread { background: var(--c-danger); }
.dm2.has-thread .dm2-list { display: none; }
.dm2:not(.has-thread) .dm2-thread { display: none; }
.dm2-thread.dm-shell { z-index: 45; }
.dm2-blank {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--muted); -webkit-text-fill-color: var(--muted); font-size: var(--fs-14); gap: 10px;
}
.dm2-blank svg { font-size: var(--ic-56); }
.dm2-blank p { margin: 0; }
.dm2-offline {
  flex: none; padding: 6px 12px; text-align: center; font-size: var(--fs-12); line-height: 16px;
  background: var(--c-offline-bg); color: var(--c-offline-text); -webkit-text-fill-color: var(--c-offline-text);
}
.dm2-offline[hidden] { display: none !important; }
.dm2-more {
  align-self: center; border: 0; border-radius: 999px; padding: 6px 14px; margin: 0 auto 4px;
  background: var(--surface); color: var(--muted); -webkit-text-fill-color: var(--muted); font-size: var(--fs-13);
}
.dm2-more[hidden] { display: none !important; }
.dm2-log [data-dm2-msgs] {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%;
}
.dm2-log [data-dm2-msgs] > .bubble { width: fit-content; max-width: min(75%, 17.5rem); align-self: flex-start; }
.dm2-log [data-dm2-msgs] > .bubble.me { align-self: flex-end; margin-left: auto; }
.dm2-log .bubble.is-pending { opacity: .7; }
.dm2-wait { display: block; font-size: var(--fs-11); line-height: 14px; opacity: .8; margin-top: 2px; }
.dm2-file { position: relative; cursor: pointer; }
.dm2-file.is-expired { cursor: default; opacity: .75; }
.dm2-gone {
  display: inline-block; padding: 6px 10px; font-size: var(--fs-13); line-height: 16px;
  color: var(--muted); -webkit-text-fill-color: var(--muted);
}
.bubble.me .dm2-gone { color: var(--c-white); -webkit-text-fill-color: var(--c-white); opacity: .85; }
.dm2-file .dm-media-blank { display: block; width: 10rem; height: 7.5rem; border-radius: var(--dm-img-r, 18px); background: var(--c-gray-50-18); }
.dm2-file.is-expired .dm-media-blank { height: 3.75rem; }
.dm2-file.media { padding: 0; overflow: hidden; }
.dm2-file.media .dm2-gone { display: block; text-align: center; }
.dm2-file .dm-media-dl { right: 8px; bottom: 8px; }
.dm2-pv { display: block; max-width: var(--dm-img-w, 16.25rem); max-height: var(--dm-img-h, 20rem); border-radius: var(--dm-img-r, 18px); object-fit: cover; }
.dm2-frame { position: relative; display: block; }
/* 播放时封面已拿掉：视频要自己撑开框，不能沿用 .dm-media-frame video 的绝对定位加百分之百宽高，否则框缩成 0×0 */
.dm2-frame.is-on video { position: static; inset: auto; width: auto; height: auto; max-width: var(--dm-vid-w, 16.25rem); max-height: var(--dm-vid-h, 20rem); border-radius: var(--dm-vid-r, 18px); display: block; }
.dm2-voice-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: inherit; -webkit-text-fill-color: inherit; font: inherit; padding: 2px 4px; }
.dm2-voice-btn.is-playing .voice-play-ico { animation: dm2pulse 1s infinite alternate; }
@keyframes dm2pulse { from { opacity: 1; } to { opacity: .4; } }
.dm2-bar { display: flex; align-items: flex-end; gap: 6px; }
.dm2-bar.dm2-locked { justify-content: center; }
.dm2-lock-btn { border-radius: 999px; padding: 10px 18px; }
.dm2-pill {
  flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 6px;
  min-height: 2.5rem; padding: 0 12px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); position: relative;
}
.dm2-pill textarea {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); -webkit-text-fill-color: var(--text);
  font-size: var(--fs-16); line-height: 20px; padding: 10px 0; resize: none; outline: none; height: 2.5rem; overflow-y: hidden;
}
.dm2-pill textarea::placeholder { color: var(--muted); }
.dm2-rec-time { align-self: center; color: var(--c-danger); -webkit-text-fill-color: var(--c-danger); font-size: var(--fs-13); }
.dm2-rec-time[hidden] { display: none !important; }
.dm2-bar .dm-tool { flex: 0 0 36px; margin-bottom: 2px; }
.dm2-voice.on { color: var(--c-danger); -webkit-text-fill-color: var(--c-danger); }
.dm2-send { position: static; flex: 0 0 36px; margin-bottom: 2px; opacity: .45; }
.dm2-send.is-on { opacity: 1; }
/* 手机仍是一列。宽窗口只加列，不让原图把格子撑开。 */
@media (min-width: 960px) {
  :root { --max: 960px; }
  .feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .feed > * { min-width: 0; max-width: 100%; }
  .feed > .suggest,
  .feed > .feed-ad,
  .feed > .guest-tease,
  .feed > .guest-lock {
    grid-column: 1 / -1;
  }
  .feed-post { border-right: 1px solid var(--line); overflow: hidden; }
  .feed-album { max-height: 32.5rem; }
  .feed-slide,
  .feed-slide img { min-width: 0; max-width: 100%; }
  .explore { grid-template-columns: repeat(6, 1fr); }
  .explore > * { min-width: 0; }
  /* 议题 181 第 6 步：新私信页宽屏左名单右对话，两边同时在；没点人时右边留空。不另起宽度。 */
  .dm2 { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - 3.625rem - env(safe-area-inset-bottom, 0px)); overflow: hidden; }
  .dm2.has-thread .dm2-list { display: flex; }
  .dm2:not(.has-thread) .dm2-thread { display: flex; }
  .dm2-list { min-height: 0; height: 100%; overflow-y: auto; padding-bottom: 0; border-right: 1px solid var(--line); }
  .dm2-thread.dm-shell { position: static; inset: auto; height: 100%; z-index: auto; }
  .dm2-back { display: none; }
  .dm2-top { min-height: 3.5rem; padding: 4px 8px; }
}
@media (min-width: 1280px) {
  :root { --max: 1200px; }
  .feed { grid-template-columns: 1fr 1fr 1fr; }
  .explore { grid-template-columns: repeat(6, 1fr); }
}

.front-page { padding: 28px 18px 64px; text-align: center; }
.front-logo img {
  width: 4.75rem; height: 4.75rem; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--c-white), 0 0 0 6px var(--c-front-pink), 0 0 0 9px var(--c-front-purple);
}
.front-page h1 { margin: 14px 0 4px; font-size: var(--fs-28); line-height: 1.25; }
.front-en { margin: 0; letter-spacing: .14em; font-size: var(--fs-11); color: var(--muted); }
.front-search { margin: 18px auto 0; max-width: 26.25rem; }
.front-search input {
  width: 100%; box-sizing: border-box; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 12px 16px; font-size: var(--fs-16);
}
.front-auth { display: flex; gap: 10px; justify-content: center; margin: 14px 0; }
.front-auth .btn { min-width: 6.75rem; border-radius: 999px; }
.front-link { color: var(--text); font-size: var(--fs-14); }
.front-cats {
  display: flex; gap: 16px; justify-content: flex-start; overflow-x: auto;
  padding: 8px 2px 16px; margin: 0 auto; max-width: 32.5rem;
}
.front-cat {
  flex: 0 0 72px; width: 4.5rem; height: 4.5rem; border-radius: 50%; border: 0;
  background: var(--chip); color: var(--chip-text); font-size: var(--fs-12); line-height: 1.2;
}
.front-cat.on { background: var(--c-front-pink); color: var(--c-white); }
.front-hero {
  text-align: left; margin: 8px auto 22px; max-width: 32.5rem;
  padding: 22px 18px; border-radius: 22px;
  background: var(--c-front-bg); color: var(--c-white);
}
.front-hero h2 { margin: 0 0 8px; font-size: var(--fs-20); }
.front-hero p { margin: 0 0 16px; color: var(--c-front-text); font-size: var(--fs-14); line-height: 1.5; }
.front-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.front-actions .btn { border-radius: 999px; }
.front-shops { text-align: left; max-width: 32.5rem; margin: 0 auto; }
.front-shops h2 { margin: 0 0 10px; font-size: var(--fs-18); }

.tabs a { position: relative; }
.dm-count { position: absolute; top: 4px; right: 22%; min-width: 1rem; height: 1rem; padding: 0 4px; border-radius: 8px; background: var(--c-danger); color: var(--c-white); font-size: var(--fs-10); line-height: 16px; font-weight: 700; text-align: center; }
.dm-count[hidden] { display: none; }

.composer-voice { flex: 0 0 auto; border: 0; background: transparent; color: var(--text); font-size: var(--fs-13); padding: 0 8px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.composer-voice.on { color: var(--c-danger); }

html.find-open, body.find-open { overflow: hidden; }
.find-shell {
  position: fixed; inset: 0; height: 100dvh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); z-index: 20;
}
.find-shell .top {
  position: static; left: auto; top: auto; transform: none;
  width: 100%; flex: none;
}
.find-shell .searchwrap { flex: none; }
.find-cols {
  display: flex; align-items: center; justify-content: center; gap: 0; min-width: 0;
}
.top .find-cols .icon-btn { color: var(--muted); -webkit-text-fill-color: var(--muted); }
.top .find-cols .icon-btn.on { color: var(--text); -webkit-text-fill-color: var(--text); }
.find-filter { width: 2.5rem; height: 2.5rem; }
.find-filter svg { font-size: var(--ic-28); }
.find-scroll {
  flex: 1; min-height: 0; overflow-y: auto;
  overscroll-behavior: contain; touch-action: pan-y;
  /* 议题 212 卡 3：底部统一留 --page-bottom。 */
  padding-bottom: var(--page-bottom);
}
/* 首页的底栏也是悬浮的：位置、宽度都沿用 .tabs，不排在滚动区下面。 */
.find-shell .tabs { flex: none; }
.find-grid { display: grid; gap: 2px; }
.find-grid.cols-1 { grid-template-columns: 1fr; }
.find-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.find-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.find-card { position: relative; display: block; color: inherit; overflow: hidden; background: var(--surface); }
.find-shot { position: relative; display: block; color: inherit; }
.find-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; pointer-events: none; }
.find-grid.cols-1 { gap: 0; }
.find-grid.cols-1 .find-card { background: var(--bg); margin: 0; }
.find-grid.cols-1 .feed-head { padding: 8px 12px; }
.find-grid.cols-1 .find-meta { display: none; }
/* 3D 立体切换相册（#117 首页一格模式、#174 发布页多张预览共用）：album 给透视，track 保留三维，每张绕立方体中心转，背面藏起。 */
.feed-album[data-album-3d] { perspective: 1000px; -webkit-perspective: 1000px; background: var(--c-black); }
.feed-album[data-album-3d] .feed-track { position: relative; display: block; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; will-change: auto; }
.feed-album[data-album-3d] .feed-slide {
  position: absolute; inset: 0; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform-origin: 50% 50%;
}
.feed-album[data-album-3d] .feed-dots { transform: translateZ(1px); }
.album-shade { position: absolute; inset: 0; background: var(--c-black); opacity: 0; pointer-events: none; }
.album-lock { cursor: pointer; }
.album-lock img { filter: blur(18px); transform: scale(1.12); }
.album-lock-tip {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 0 24px; text-align: center;
  color: var(--c-white); -webkit-text-fill-color: var(--c-white); text-shadow: 0 1px 10px var(--c-black-55);
  font-size: var(--fs-16); line-height: var(--lh-15); font-weight: 700;
}
/* 没月费看别人资料页：纯色磨砂底，不垫照片；日夜跟主题走，字用正文色。 */
.album-lock-wall { background: var(--surface); }
.album-lock-wall .album-lock-tip { color: var(--text); -webkit-text-fill-color: var(--text); text-shadow: none; }
.find-n {
  position: absolute; top: 8px; right: 8px; min-width: 1.375rem; padding: 2px 6px;
  border-radius: 999px; background: var(--c-black-55); color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-12); line-height: 16px; text-align: center;
}
.find-meta {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 4px 6px;
  padding: 16px 8px 8px; color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  background: linear-gradient(transparent, var(--c-black-72));
  font-size: var(--fs-13); line-height: 18px;
}
.find-meta b { font-weight: 700; }
.find-meta i { font-style: normal; }
.find-meta i.on { color: var(--c-online-green); -webkit-text-fill-color: var(--c-online-green); }
/* 议题 212 卡 3：顶栏改成 3rem 高，筛选面板和遮罩的上沿跟着顶栏下沿走，不然露 4 像素缝（独立复核 2026-11-03 发现）。 */
.find-mask {
  position: fixed;
  left: 0; right: 0; bottom: 0; z-index: 54;
  top: calc(3rem + env(safe-area-inset-top, 0px));
  background: transparent;
}
.find-mask[hidden], .find-sheet[hidden] { display: none !important; }
.find-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  top: calc(3rem + env(safe-area-inset-top, 0px));
  max-height: none;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  border-radius: 0;
  box-shadow: none;
}
.find-close-row {
  flex: none; display: flex; justify-content: center; align-items: center;
  padding: 12px 16px 0;
}
.find-close {
  flex: 0 0 auto; user-select: none; -webkit-user-select: none;
}
.find-close.on,
.find-close:focus {
  background: transparent; color: var(--text); -webkit-text-fill-color: var(--text);
  border-color: var(--line);
}
.find-sheet-body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
}
.find-h { margin: 14px 0 8px; font-size: var(--fs-14); font-weight: 700; }
.find-h b { font-weight: 600; margin-left: 6px; }
.find-check, .find-lock {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px;
  border: 0; background: none; color: var(--text); -webkit-text-fill-color: var(--text);
  text-align: left; font-size: var(--fs-15); line-height: 22px; padding: 12px 0;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.find-check.on { font-weight: 700; }
.find-lock small { color: var(--muted); -webkit-text-fill-color: var(--muted); font-size: var(--fs-12); }
.find-range { padding: 10px 2px 16px; }
.find-track {
  position: relative; height: 2.75rem;
  touch-action: none;
}
.find-track::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 19px; height: .375rem;
  border-radius: 99px; background: var(--line);
}
.find-fill {
  position: absolute; top: 19px; height: .375rem; left: 14px; width: 0;
  background: var(--text); border-radius: 99px; pointer-events: none;
}
.find-thumb {
  position: absolute; top: 8px; left: 14px; width: 1.75rem; height: 1.75rem; padding: 0;
  border: 0; border-radius: 50%; background: var(--text); color: var(--text);
  cursor: grab; touch-action: none; z-index: 1;
  transform: translateX(-50%);
  box-shadow: 0 1px 3px var(--c-black-22), 0 0 0 6px var(--c-black-04);
  will-change: left;
}
.find-thumb.is-on {
  cursor: grabbing;
  transform: translateX(-50%) scale(1.12);
  box-shadow: 0 2px 8px var(--c-black-28), 0 0 0 8px var(--c-black-06);
}
.find-city { display: flex; align-items: center; gap: 8px; }
.find-city input {
  flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  color: var(--text); -webkit-text-fill-color: var(--text); font-size: var(--fs-16); padding: 10px 0;
}
.find-city button { border: 0; background: none; color: var(--muted); font-size: var(--fs-20); padding: 4px; cursor: pointer; }
/* 议题 212 第 4 步：图标 1em 比原「×」宽，左右内边距 8→4；图标块显示免得行内对齐把按钮撑高，按钮回到 28 像素见方 */
.find-city button svg { display: block; }
.find-hits button {
  display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--text);
  -webkit-text-fill-color: var(--text); padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.settings-dialog { text-align: left; }
.settings-label { margin: 14px 0 4px; color: var(--muted); font-size: var(--fs-13); }
.settings-line {
  display: block; width: 100%; border: 0; background: none; color: var(--text); -webkit-text-fill-color: var(--text);
  text-align: left; font-size: var(--fs-16); line-height: 22px; padding: 12px 0; cursor: pointer;
  border-bottom: 1px solid var(--line); text-decoration: none;
}
.settings-line.on { font-weight: 700; }
.stream-wait {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 6rem;
  background: var(--surface); color: var(--text); -webkit-text-fill-color: var(--text);
  font-size: var(--fs-13);
}
.ig-cell.stream-wait { aspect-ratio: 1; border: 0; }
.stream-poster { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--surface); cursor: pointer; }
.stream-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stream-poster video[data-first-frame] { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; background: var(--surface); }
.stream-dur {
  position: absolute; right: 6px; bottom: 6px; padding: 1px 5px; border-radius: 6px;
  background: var(--c-black-55); color: var(--c-white); -webkit-text-fill-color: var(--c-white);
  font-size: var(--fs-11); line-height: 16px; font-weight: 600;
}
.stream-player {
  position: fixed; inset: 0; z-index: 90; background: var(--c-black-72);
  display: flex; flex-direction: column;
}
.stream-player[hidden] { display: none !important; }
.stream-player button {
  flex: none; align-self: flex-start; border: 0; background: none; color: var(--c-white);
  -webkit-text-fill-color: var(--c-white); font-size: var(--fs-15); padding: 12px 16px; cursor: pointer;
}
.stream-player iframe,
.stream-player .stream-video {
  flex: 1; width: 100%; min-height: 0; border: 0; background: var(--c-black);
}
.stream-player iframe[hidden],
.stream-player .stream-video[hidden] { display: none !important; }
.voice-play, .voice-dl { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
/* 无头像占位：图标锁在圆正中，避免行高或 display:block 把它顶偏 */
.act-ph {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
  overflow: hidden;
}
.act-ph > svg {
  display: block !important;
  width: 46% !important;
  height: 46% !important;
  margin: 0 !important;
  flex: 0 0 auto;
  position: static !important;
}
.textpost { position: fixed; inset: 0; z-index: 125; display: flex; align-items: flex-end; justify-content: center; background: var(--c-black-55); }
.textpost-card { width: 100%; max-width: 32.5rem; box-sizing: border-box; padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: var(--card); color: var(--text); }
.textpost-top { display: flex; align-items: center; justify-content: space-between; height: 2.75rem; }
.textpost-top b { font-size: var(--fs-16); font-weight: 600; }
.textpost-x, .textpost-go { min-width: 3.5rem; height: 2.75rem; border: 0; background: transparent; color: var(--text); font-size: var(--fs-16); }
.textpost-x { font-size: var(--fs-28); line-height: 1; text-align: left; }
.textpost-go { color: var(--c-action-blue); -webkit-text-fill-color: var(--c-action-blue); font-weight: 600; text-align: right; }
.textpost-go:disabled { opacity: .45; }
.textpost textarea { display: block; width: 100%; box-sizing: border-box; min-height: 7.5rem; max-height: 40dvh; padding: 8px 0; border: 0; resize: none; background: transparent; color: var(--text); font-size: var(--fs-16); line-height: 1.5; outline: 0; }
.textpost-bar { display: flex; justify-content: flex-start; margin-top: 4px; }
.textpost-media { min-height: 2.25rem; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); font-size: var(--fs-14); }
.moment > p { overflow-wrap: anywhere; word-break: break-word; }

/* wanban 子站 */
/* 伴游子站页面（js/src/40-wanban-*.js）。颜色全用主站变量，日间、夜间跟着主站走。 */
.wb-shell { padding-top: calc(48px + env(safe-area-inset-top, 0px)); }
.wb-top {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 40;
  width: min(var(--max), 100%); box-sizing: border-box;
  height: calc(3rem + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 14px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bar); border-bottom: 1px solid var(--line);
}
.wb-brand { font-size: var(--fs-20); line-height: var(--lh-20); font-weight: var(--fw-bold); }
/* 议题 212 卡 3 把主站 .tabs 改成全透明纯图标；伴游子站底栏带文字，不在改版范围，这里兜住原来的样子（底色、分割线、文字色），要不要跟着改等用户定。 */
.wb-tabs {
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: min(calc(var(--max) - 2rem), calc(100% - 2rem));
  height: 3.875rem;
  border-radius: 999px;
  background: var(--tabs-bg); border: 1px solid var(--tabs-line);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--tabs-shadow);
}
.wb-tabs a, .wb-tabs a.active { font-size: var(--fs-16); font-weight: var(--fw-semibold); color: var(--text); -webkit-text-fill-color: var(--text); filter: none; }
.wb-tabs a:not(.active) { opacity: .55; }
.wb-toast.on { display: block; }
.wb-login { padding-top: 24px; }
.wb-gender { display: flex; gap: 24px; justify-content: center; margin: 10px 0; }
.wb-me, .wb-girl, .wb-pay { text-align: left; }
.wb-me input, .wb-me select, .wb-me textarea {
  width: 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 8px;
  background: var(--field-bg); border: 1px solid var(--field-line); color: var(--text);
}
.wb-status { margin: 6px 0; font-size: var(--fs-16); line-height: var(--lh-15); }
.wb-warn { color: var(--c-burn-yellow); }
.wb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.wb-chip {
  border: 1px solid var(--line); background: var(--chip); color: var(--chip-text);
  border-radius: 999px; padding: 4px 10px; font-size: var(--fs-13); line-height: var(--lh-13); cursor: pointer;
}
.wb-chip.on { background: var(--chip-on); color: var(--chip-on-text); -webkit-text-fill-color: var(--chip-on-text); }
.wb-income { margin: 10px 0; }
.wb-income-head, .wb-income-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: center; }
.wb-income-head { font-size: var(--fs-13); color: var(--muted); margin-bottom: 4px; }
.wb-income-head span:nth-child(2) { text-align: center; color: var(--text); }
.wb-contact { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: center; margin: 6px 0; }
.wb-tag { font-size: var(--fs-11); color: var(--c-burn-yellow); white-space: nowrap; }
.wb-tag.ok { color: var(--ok); }
.wb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 6px 0; }
.wb-cell { margin: 0; position: relative; aspect-ratio: 3 / 4; background: var(--surface); overflow: hidden; border-radius: 4px; }
.wb-cell img, .wb-cell video { width: 100%; height: 100%; object-fit: cover; }
.wb-cell figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 4px;
  font-size: var(--fs-11); background: var(--c-black-55); color: var(--c-white); display: flex; justify-content: space-between;
}
.wb-file { margin: 4px 0 10px; }
.wb-cam { width: 100%; max-height: 20rem; background: var(--c-black); border-radius: 8px; transform: scaleX(-1); }
.wb-cam[hidden] { display: none; }
.wb-cam-tip { font-size: var(--fs-17); font-weight: var(--fw-semibold); text-align: center; min-height: 1.5rem; }
.wb-save { margin: 18px 0 8px; }
.wb-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; }
.wb-tile { position: relative; aspect-ratio: 3 / 4; background: var(--surface); overflow: hidden; border-radius: 6px; }
.wb-tile img { width: 100%; height: 100%; object-fit: cover; }
.wb-tile .cap {
  position: absolute; left: 6px; bottom: 6px; right: 6px;
  font-size: var(--fs-12); font-weight: var(--fw-semibold); text-shadow: 0 1px 4px var(--c-black); color: var(--c-white);
}
.wb-noimg { display: block; width: 100%; height: 100%; }
.wb-topic { margin: 6px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wb-contacts { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 6px 0; }
.wb-contact-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.wb-locked { cursor: pointer; min-height: 6rem; }
.wb-blur { filter: blur(6px); -webkit-filter: blur(6px); user-select: none; pointer-events: none; }
.wb-vip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%); min-width: 10rem; }
.wb-vip-note { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; }
.wb-tiers { display: grid; gap: 6px; margin: 8px 0; }
.wb-tier {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.wb-tier.on { border-color: var(--c-link); box-shadow: 0 0 0 1px var(--c-link) inset; }
.wb-tier small { color: var(--muted); }
.wb-due { font-size: var(--fs-17); margin: 12px 0; }
.wb-order { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.wb-qr { width: 13.75rem; max-width: 80%; margin: 10px auto; border-radius: 8px; }
.wb-order-row { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wb-order-row small { color: var(--muted); }

/* 上下栏一直悬浮，底栏跟着 Safari 药丸工具栏沉浮（议题 231，Stitch 原项目 DESIGN.md 锁定的「智能避障随动呼吸浮岛」；
   kr346 把顶栏、底栏写成 position: static，底栏落到内容末尾，用户 2026-11-04 说不对，开发线-页面修复-030 改回悬浮；
   合并请求 236 的「下滑整条藏起」（kr347，没上线）用户也说不符合，没有采用。要改回 kr346 就 git revert 本提交） */
/* 整页仍用文档滚动，Safari 自己的工具栏才能随手势放大、缩小；顶栏、底栏按 00-shell.css 悬浮（position: fixed），
   内容少的页面底栏也贴在屏幕底；工具栏缩小时布局视口变长，底栏跟着沉下去，放大时 --dock-lift 把它抬回药丸上方。
   不动：私信（.dm-shell、chat-open）、照片全屏（photo-peeking）、后台（admin-on、.admin-shell）、伴游子站（.wb-shell、.wb-tabs）。 */
html, body:not(.admin-on) {
  height: auto; min-height: 100%; overflow: visible; overscroll-behavior: auto;
}
html:has(body.admin-on) { height: 100%; height: var(--app-height, 100dvh); overflow: hidden; overscroll-behavior: none; }
body:not(.admin-on) #app { height: auto; min-height: 100%; overflow: visible; overscroll-behavior: auto; }
html.find-open, body.find-open { overflow: visible; }
/* 首页、搜索页的外框不再自己滚动，跟着整页滚；框里的顶栏照样悬浮，滚动区上下让出两栏的高度。 */
/* 开发线-页面修复-031：让出顶栏高度的上边距放在外框上，搜索页的搜索框（排在滚动区前面）才不会被顶栏压住。 */
.find-shell {
  position: static; inset: auto; height: auto; overflow: visible; z-index: auto;
  padding-top: calc(3rem + env(safe-area-inset-top, 0px));
}
.find-shell > .top {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--max), 100%);
}
.find-scroll {
  flex: none; overflow: visible; overscroll-behavior: auto; touch-action: auto;
  padding-bottom: var(--page-bottom);
}
/* 私信打开时仍按原样锁住整页（上面把 html/body 放开后，这里补回，优先级盖过）。 */
html.chat-open, body.chat-open { overflow: hidden; }
