/* 知命 App —— 设计系统
   墨蓝（宇宙、命盘）＋ 金（星、卦）＋ 宣纸底；吉绿凶朱，平灰，参半琥珀。
   ⚠️主题只认 <html data-theme>（首屏脚本写入），不靠 prefers-color-scheme 单独起作用——
   主站「底色是深的、输入框却是白的」那一幕就是两套判据各管一半。 */

:root {
  /* 2026-10-04 用户：「整个 UI 去掉神秘严肃的感觉」——墨蓝＋金＋宋体换成暖白＋珊瑚橙＋蜜黄，字体一律无衬线 */
  --bg: #FFF8F0; --bg2: #FFEFE2; --card: #FFFFFF; --card2: #FFF9F3; --line: #F2E4D8;
  --text: #2B2622; --text2: #6E6259; --text3: #A2968C;
  --brand: #F26B3A; --brand2: #FF8A5B; --brand-ink: #FFFFFF;
  --gold: #EFA52E; --gold2: #FFC95C; --gold-soft: #FFF1D6;
  --good: #2E9E6B; --good-bg: #E6F6EC; --bad: #E25A47; --bad-bg: #FDE9E4;
  --flat: #7A7466; --flat-bg: #EEEAE0; --mixed: #A8741A; --mixed-bg: #F8EDD5;
  --great: #0C6E43; --terrible: #962617;
  /* 2026-10-16 审计：语义色当底时的字色（深色主题的 --good/--bad/--gold 都偏亮，压白字只有 2:1 上下，换深字）；
     --gold-ink＝金底／金字要读得清时用的深一号蜜黄（浅色 #A8741A 对白 3.5:1；支持 color-mix 的按当前主题的 --gold 调深，十干主题跟着走） */
  --good-ink: #FFFFFF; --bad-ink: #FFFFFF; --gold-ink: #A8741A;
  --hero1: #2E2578; --hero2: #17123E;     /* 只给有声动画那一幕当夜空底（.scene），应用锁等界面不再用 */
  --shadow: 0 6px 22px rgba(70, 45, 20, .08);
  --radius: 18px; --radius-s: 12px;
  /* 设计令牌（2026-11-17 审计：原先只有颜色成体系，字号 36 种值、圆角 22 种值、间距几乎全写死）——新代码一律用这几档；
     旧代码里与档位**同值**的已换成变量（看起来一点没变），不在档位上的（12.5px、13.5px、10px 圆角……）逐步收，别一次全改 */
  --fs-xs: 11px; --fs-s: 12px; --fs-sm: 13px; --fs-m: 14px; --fs-l: 16px; --fs-xl: 18px; --fs-2xl: 22px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --r-xs: 4px; --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-pill: 999px;
  --hit: 44px;                         /* 触控热区下限 */
  --tab-h: 62px; --head-h: 54px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
          "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", STSong, serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1B1D25; --bg2: #232631; --card: #272A36; --card2: #2E3240; --line: #3A3E4C;
  --text: #F3EEE6; --text2: #B9B1A6; --text3: #847D74;
  --brand: #FF9A6E; --brand2: #FFB48F; --brand-ink: #2B1A12;
  --gold: #F2BD5A; --gold2: #FFD98A; --gold-soft: #3A2E1C;
  --good: #5BD69E; --good-bg: #1C3328; --bad: #FF8A75; --bad-bg: #3A1F1B;
  --flat: #9C978C; --flat-bg: #22242F; --mixed: #E3AE4E; --mixed-bg: #2C2414;
  --great: #5FD9A0; --terrible: #FF8F79;
  --good-ink: #10261A; --bad-ink: #2B1A12; --gold-ink: var(--gold);     /* 深色底上的金字本就清楚，不另调 */
  --hero1: #2A2170; --hero2: #0F0C26;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root:not([data-theme="dark"]) { --gold-ink: #A8741A; --gold-ink: color-mix(in srgb, var(--gold) 62%, var(--text)); }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* iPhone（2026-10-06 iOS 审计）：横屏时 Safari 会自作主张把字放大（text-size-adjust）；双击会缩放页面（manipulation 只关双击、
   双指缩放照旧）——连点按钮、翻关卡时整页突然放大 */
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;     /* iPhone Safari 的 100vh 按收起工具栏算、比看得见的高一截，内容不满一屏也能上下拖；svh 按工具栏展开算 */
}
a { color: var(--brand2); text-decoration: none; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; margin: 0; letter-spacing: 0; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ── 骨架 ── */
.app { max-width: 600px; margin: 0 auto; min-height: 100vh; min-height: 100svh; position: relative;
       padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 18px); }
.app.no-tab { padding-bottom: 32px; }
.head {
  position: sticky; top: 0; z-index: 30; height: var(--head-h);
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: var(--bg);            /* color-mix 要 Safari 16.2／Chrome 111：iOS 15 与旧 WebView 退回这一行（2026-10-06 iOS 审计） */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.head h1 { font-size: 19px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head .back { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
              color: var(--text); margin-left: -6px; }
.head .back:active { background: var(--bg2); }
/* 右上角动作（修改／全部已读／设置／铃铛…）：2026-10-16 审计量到只有文字行高 22px，手机上点空；撑到 40px 高、左右各 6px 热区，字不动 */
.head .act { color: var(--text2); font-size: var(--fs-m); display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; margin-right: -6px; }
.head button.act { background: none; border: 0; font: inherit; font-size: var(--fs-m); color: var(--text2); cursor: pointer; }   /* 右上角位置：可点刷新 */
.head .h-acts { display: inline-flex; align-items: center; gap: 6px; flex: none; }   /* 右上角两样（命盘页：分享＋修改，2026-10-25） */
.head .h-acts .act + .act { margin-right: -6px; } .head .h-acts .act:first-child { margin-right: 0; }
.wrap { padding: 14px 16px 0; }

/* ── 底栏 ── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar-in { max-width: 600px; margin: 0 auto; display: flex; height: var(--tab-h); }
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--text3); font-size: 11.5px; position: relative; font-weight: 500;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--brand2); }
:root:not([data-theme="dark"]) .tabbar a.on { color: var(--brand); }
.tabbar a.on .ti::after { content: ""; position: absolute; top: 6px; left: 50%; margin-left: 9px;
                          width: 5px; height: 5px; border-radius: 50%; background: var(--brand2); }
/* 角标（底栏未读、今日页铃铛未读）共一套尺寸；颜色与动画各自定（2026-10-16 审计，HTML 不动；logo 的「问」10-17 随 logo 撤掉） */
.tabbar .dot, .td-bell .dot { position: absolute; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-s);
                              font-size: 10px; line-height: 16px; text-align: center; font-weight: 700; }
/* 底栏「知聊」的未读（2026-10-17）：不写数字，一个随十干主题变色的小点；盖在选中那颗 5px 小点的位置上，外圈描一道底色好与图标分开 */
.tabbar .dot { top: 5px; left: 50%; margin-left: 8px; min-width: 0; width: 9px; height: 9px; padding: 0; border-radius: 50%;
               background: var(--brand); box-shadow: 0 0 0 2px var(--card); }
:root[data-theme="dark"] .tabbar .dot { background: var(--brand2); }
.tabbar .dot[hidden] { display: none; }

/* ── 卡片 ── */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
        padding: 16px; margin-bottom: 14px; border: 0; }
.card h2 { font-size: 16.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card h2 .sub { font-family: var(--font); font-size: 12.5px; color: var(--text3); font-weight: 400; margin-left: auto; }
.card h2 .ico { width: 26px; height: 26px; border-radius: var(--r-s); display: grid; place-items: center;
                background: var(--gold-soft); color: var(--gold); font-size: var(--fs-m); }
.card.flat { box-shadow: none; }
.muted { color: var(--text2); }
.tiny { font-size: 12.5px; color: var(--text3); }
.sep { height: 1px; background: var(--line); margin: 12px 0; }

/* ── 运势主卡（今日/流月/流年/大运共用）── 2026-10-04：浅色、圆润、品牌色淡染；不再用深色渐变与金圈 */
.hero {
  position: relative; overflow: hidden; color: var(--text); border-radius: 24px; padding: 18px 18px 16px;
  background: var(--gold-soft);
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 18%, #fff), color-mix(in srgb, var(--gold2) 38%, #fff));
  box-shadow: 0 10px 28px rgba(70, 45, 20, .12);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 16%, transparent); margin-bottom: 14px;
}
:root[data-theme="dark"] .hero {
  color: var(--text);
  background: var(--card2);
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 32%, var(--card)), color-mix(in srgb, var(--gold) 22%, var(--card)));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}
.hero::after { content: ""; position: absolute; right: -50px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
               background: var(--gold-soft); background: color-mix(in srgb, var(--gold2) 45%, transparent); filter: blur(6px); opacity: .7; }
.hero::before { content: ""; position: absolute; left: -40px; bottom: -70px; width: 160px; height: 160px; border-radius: 50%;
                background: var(--bg2); background: color-mix(in srgb, var(--brand) 22%, transparent); filter: blur(8px); opacity: .6; }
.hero > * { position: relative; z-index: 1; }
.hero .date { font-size: var(--fs-sm); color: var(--text2); display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.hero .date b { font-size: 15px; letter-spacing: .04em; color: var(--brand); font-weight: 800; }
.hero .verdict { display: flex; align-items: center; gap: 14px; margin: 12px 0 8px; }
.hero .seal {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 28px; font-weight: 800; letter-spacing: .02em;
  background: #fff; color: var(--brand); box-shadow: 0 6px 18px rgba(70, 45, 20, .12);
}
:root[data-theme="dark"] .hero .seal { background: var(--card2); background: color-mix(in srgb, #fff 10%, var(--card)); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.hero .seal.en { font-size: var(--fs-xl); letter-spacing: 0; }
.hero .seal.sm { width: 60px; height: 60px; font-size: 21px; }
.hero .seal.t-good, .hero .seal.t-great { color: var(--good); }
.hero .seal.t-bad, .hero .seal.t-terrible { color: var(--bad); }
.hero .seal.t-mixed { color: var(--gold-ink); }
.hero .stars { color: var(--gold-ink); letter-spacing: 2px; font-size: 15px; }     /* 星级是吉凶的主要量化，浅色 --gold 对白只 2.1:1，用深一号的 --gold-ink */
.hero .head-line { font-size: var(--fs-l); font-weight: 650; line-height: 1.5; }
.hero .cross { font-size: 13.5px; color: var(--text2); margin-top: 4px; }
.hero .ctx { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hero .ctx span { font-size: var(--fs-s); padding: 3px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .65); background: color-mix(in srgb, #fff 65%, transparent);
                  color: var(--text2); }
:root[data-theme="dark"] .hero .ctx span { background: rgba(255, 255, 255, .1); background: color-mix(in srgb, #fff 10%, transparent); }
.hero .ctx span i { font-style: normal; font-weight: 700; margin-left: 4px; color: var(--text); }
.hero .ctx .t-good i, .hero .ctx .t-great i { color: var(--good); }
.hero .ctx .t-bad i, .hero .ctx .t-terrible i { color: var(--bad); }

/* ── 吉凶色 ── */
.t-great { --tc: var(--great); --tb: var(--good-bg); }
.t-good { --tc: var(--good); --tb: var(--good-bg); }
.t-flat { --tc: var(--flat); --tb: var(--flat-bg); }
.t-bad { --tc: var(--bad); --tb: var(--bad-bg); }
.t-terrible { --tc: var(--terrible); --tb: var(--bad-bg); }
.t-mixed { --tc: var(--mixed); --tb: var(--mixed-bg); }
/* 胶囊标签只两档（2026-10-16 审计，此前十四处字号 10–12.5px、内距 0–3px 各写各的）：常规 12px／2px 9px，小号 11px／1px 7px。
   这两条只管字号与内距；颜色、边框、外边距、display 仍由各自的类定（.tier-*、.rv-n、.r-功、.wx-* 那些修饰类照旧挂在原类名上）。 */
.tag, .chip, .off-tag, .vote, .h-note, .wxrow .flag, .erow .flag { font-size: var(--fs-s); padding: 2px 9px; }
.tier-tag, .zl-role, .qb, .theme .th-tags em, .th-you, .mgrid .mlock .tier-tag, .strip a .tier-tag, .strip .locked-cell .tier-tag { font-size: var(--fs-xs); padding: 1px 7px; }
.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: var(--r-pill);
       font-weight: 600; color: var(--tc, var(--text2)); background: var(--tb, var(--bg2)); white-space: nowrap; }
.line { display: flex; gap: 10px; padding: 7px 0; align-items: flex-start; }
.line + .line { border-top: 1px dashed var(--line); }
.line .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: var(--tc, var(--text3)); }
.line .txt { flex: 1; min-width: 0; }

/* ── 宜忌 ── */
.yiji { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yiji > div { border-radius: var(--radius-s); padding: 12px; }
.yiji .yi { background: var(--good-bg); }
.yiji .ji { background: var(--bad-bg); }
/* 栏头此前是「宜」「忌」两个单字（22px）；2026-10-04 起右栏叫「少做或不做」（英文 Do less or skip），
   半屏宽的一栏装不下 22px 的五个字，故缩到 17px 并允许折行 */
.yiji .lab { font-size: 17px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; display: block; }
.yiji .yi .lab { color: var(--good); }
.yiji .ji .lab { color: var(--bad); }
.yiji ul { list-style: none; padding: 0; margin: 0; }
.yiji li { font-size: var(--fs-m); padding: 3px 0; }
.yiji li::before { content: "·"; margin-right: 6px; opacity: .6; }

/* ── 分项（今日页只剩 .dom-lines 一份，五格 .doms 2026-10-14 撤掉）── */
.dom-lines { margin-top: 10px; }
.dom-lines .line { font-size: var(--fs-m); }

/* ── 开运格 ── */
.lucky { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lucky > div { background: var(--card2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 9px 10px; }
.lucky .k { font-size: 11.5px; color: var(--text3); }
.lucky .v { font-size: var(--fs-m); font-weight: 600; line-height: 1.35; }
.lucky .wide { grid-column: span 2; }

/* ── 列表、行 ── */
.list a, .list .row { display: flex; align-items: center; gap: 12px; padding: 13px 4px; color: var(--text); }
.list > * + * { border-top: 1px solid var(--line); }
.list .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
            background: var(--gold-soft); color: var(--gold); font-size: 17px; }
.list .grow { flex: 1; min-width: 0; }
.list .grow .t { font-weight: 600; display: block; }
/* 副标题最多两行再截（2026-10-16 审计：「更多」页身心全景一句 28 字、英文断人一行只剩 176px，单行省略把说明页面内容的后半截掉了） */
.list .grow .s { display: block; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12.5px; color: var(--text3);
                 white-space: normal; overflow: hidden; text-overflow: ellipsis; }
.list .chev { color: var(--text3); }
.sec-title { font-size: 12.5px; color: var(--text3); margin: 18px 6px 8px; letter-spacing: .05em; }

/* ── 按钮与表单 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer;
       height: 46px; padding: 0 20px; border-radius: 14px; font-weight: 650; font-size: 15.5px;
       background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; width: 100%;
       box-shadow: 0 6px 16px rgba(0, 0, 0, .12); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 28%, transparent); transition: transform .08s, opacity .2s; }
/* 深色主题的主按钮换深字；⚠️这条特异度 (0,3,0) 高过 .btn.ghost／.danger／.gold，2026-10-16 审计前把「取消」「删除」「注销账户」
   全刷成了同一块浅色填充（红色警示没了）——排除掉三个变体，各自另写深色一条 */
:root[data-theme="dark"] .btn:not(.ghost):not(.danger):not(.gold) { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: var(--brand-ink); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #2A1E07; }
.btn.ghost { background: transparent; color: var(--brand2); border: 1.5px solid var(--line); }
:root[data-theme="dark"] .btn.ghost { background: transparent; color: var(--brand2); border-color: var(--line); box-shadow: none; }
.btn.sm { height: 34px; font-size: 13.5px; padding: 0 12px; border-radius: 10px; width: auto; }
.btn.danger { background: var(--bad); color: var(--bad-ink); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: var(--fs-sm); color: var(--text2); margin-bottom: 6px; font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; height: 46px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--card2);
  padding: 0 14px; font-size: 15.5px; color: var(--text); outline: none; transition: border-color .15s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { height: auto; min-height: 84px; padding: 10px 14px; resize: vertical; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--text3) 50%), linear-gradient(135deg, var(--text3) 50%, transparent 50%);
               background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
/* 焦点：1.5px 的淡橙边框（brand2 对白 2.3:1）键盘用户看不出在哪个框；换 --brand 并加一圈淡染（2026-10-16 审计） */
.input:focus, .prefixed:focus-within, .cp:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--bg2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
/* 键盘走到的可点元素一律给圈；手机点按不触发 :focus-visible，不会留圈 */
.btn:focus-visible, .theme:focus-visible, .tabbar a:focus-visible, .head .back:focus-visible, .head .act:focus-visible, .cl-tog:focus-visible,
.cp-ic:focus-visible, .cp-send:focus-visible, .ak-x:focus-visible, .sc-btn:focus-visible,
.seg input:focus-visible + span, .cats input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.seg input:focus-visible + span { outline-offset: -2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2[hidden] { display: none; }
.row3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
/* 设置页「协议与隐私」三个按钮（2026-10-26 用户「一排按钮内的文字要保持一行」）：不折行，按字的长短分宽（中文三个一样宽；
   英文 Circle terms 在 320 宽的等分格里放不下），窄到实在放不下才省略号 */
.legal-row { display: flex; gap: 8px; }
.legal-row .btn { flex: 1 1 auto; display: block; min-width: 0; padding: 0 6px; line-height: 34px; text-align: center;
                  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg { display: flex; background: var(--bg2); border-radius: var(--r-m); padding: 4px; gap: 4px; }
.seg label, .seg a, .seg button { flex: 1; text-align: center; padding: 8px 6px; border-radius: 9px; font-size: var(--fs-m);
                       color: var(--text2); cursor: pointer; border: 0; background: transparent; font-weight: 550; }
/* 分段／分类／金额的单选框：display:none 的 input 不进 tab 序列、读屏也不读——改成视觉隐藏，仍紧挨着 span（选中态靠 input:checked + span） */
.seg label, .cats label { position: relative; }
.seg input, .cats input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
                                          clip: rect(0 0 0 0); pointer-events: none; }
.seg input:checked + span, .seg .on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.seg label span { display: block; padding: 0; margin: -8px -6px; padding: 8px 6px; border-radius: 9px; }
.check { display: flex; gap: 10px; align-items: center; font-size: var(--fs-m); color: var(--text2); }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.err { background: var(--bad-bg); color: var(--bad); padding: 10px 12px; border-radius: var(--r-m); font-size: var(--fs-m); margin-bottom: 12px; }
.ok { background: var(--good-bg); color: var(--good); padding: 10px 12px; border-radius: var(--r-m); font-size: var(--fs-m); margin-bottom: 12px; }
.note { background: var(--gold-soft); color: var(--text2); padding: 10px 12px; border-radius: var(--r-m); font-size: var(--fs-sm); }

/* ── 锁 ── */
.lock { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-s);
        background: repeating-linear-gradient(135deg, var(--card2), var(--card2) 10px, var(--bg2) 10px, var(--bg2) 20px);
        color: var(--text2); font-size: var(--fs-m); border: 1px dashed var(--line); }
.lock .lk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.lock a { margin-left: auto; font-weight: 600; white-space: nowrap; }
.closed-card { text-align: center; padding: 34px 18px 28px; }
.closed-ic { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); font-size: 26px; }
.closed-t { font-weight: 700; font-size: 17px; }
.off-tag { margin-left: auto; border-radius: var(--r-pill); white-space: nowrap;
  background: var(--bg2); color: var(--text2); border: 1px solid var(--line); }
.list .off { opacity: .72; }
.off-tag.rv-n { background: var(--bad); color: var(--bad-ink); border-color: transparent; font-weight: 700; }   /* 内容审核：待审核几条（2026-10-07） */

/* ── 折叠（只给 admin 的备注/出处）── */
details.adm { margin-top: 10px; border-radius: 10px; background: var(--card2); border: 1px dashed var(--line); padding: 6px 10px; font-size: var(--fs-sm); color: var(--text2); }
details.adm summary { cursor: pointer; color: var(--text3); font-size: 12.5px; }
details.adm pre { white-space: pre-wrap; font-family: inherit; margin: 6px 0; }
.src { font-size: var(--fs-s); color: var(--text3); }

/* ── 原局四柱 ── */
.pillars { display: grid; grid-template-columns: 54px repeat(4, 1fr); gap: 0; text-align: center; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); }
.pillars > div { padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.pillars .rh { background: var(--card2); color: var(--text3); font-size: var(--fs-s); display: flex; align-items: center; justify-content: center; }
.pillars .ch { background: var(--card2); font-weight: 600; color: var(--text2); font-size: 12.5px; }
.pillars .gz { font-family: var(--serif); font-size: 26px; font-weight: 800; line-height: 1.15; }
.pillars .day { background: var(--gold-soft); background: color-mix(in srgb, var(--gold-soft) 55%, transparent); }
.wx-木 { color: #2E9B57; } .wx-火 { color: #D9483A; } .wx-土 { color: #A9782C; } .wx-金 { color: #B9932E; } .wx-水 { color: #2F78C4; }
:root[data-theme="dark"] .wx-木 { color: #5AD08A; } :root[data-theme="dark"] .wx-火 { color: #FF7E6B; }
:root[data-theme="dark"] .wx-土 { color: #D9A85A; } :root[data-theme="dark"] .wx-金 { color: #E8C770; } :root[data-theme="dark"] .wx-水 { color: #6FB2FF; }
.pillars .hide { font-size: 11.5px; line-height: 1.45; color: var(--text2); }
.wxbar { display: flex; height: 12px; border-radius: var(--r-pill); overflow: hidden; margin: 6px 0 8px; }
.wxbar span { display: block; height: 100%; }
.wxlegend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text2); }
.wxlegend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; }
.bg-木 { background: #3BAA67; } .bg-火 { background: #E45B4B; } .bg-土 { background: #C4934A; } .bg-金 { background: #D6B356; } .bg-水 { background: #3E8AD6; }
.yong-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin-bottom: 10px; }
.yong-box > div { border-radius: var(--radius-s); padding: 10px 4px; background: var(--card2); border: 1px solid var(--line); }
.yong-box .k { font-size: var(--fs-s); color: var(--text3); }
.yong-box .v { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 800; white-space: nowrap; }
/* 双轨用神（_dual.html）：宾主四柱＋两路用神 */
.dual-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin-bottom: 4px; }
.dual-cols > div { border-radius: var(--radius-s); padding: 6px 2px; border: 1px solid var(--line); background: var(--card2); }
.dual-cols > div.zhu { border-color: var(--gold); }
.dual-cols .gz { font-family: var(--serif); font-size: 20px; font-weight: 800; line-height: 1.2; }
.dual-cols .rl { font-size: var(--fs-xs); color: var(--text3); min-height: 14px; }
.dual-cols .ss { font-size: 11.5px; color: var(--text2); }                       /* 天干十神 */
.dual-cols .cg { font-size: 11.5px; color: var(--text2); line-height: 1.45; margin-top: 3px; padding-top: 3px; border-top: 1px dashed var(--line); }   /* 地支藏干＋十神 */
.dual-cols .cg span { font-weight: 700; margin-right: 1px; }
/* 十二长生（星／坐）一格靠底对齐：各柱藏干一到三个不等，柱子等高、这一格压到底（用户 2026-10-16） */
.dual-cols > div { display: flex; flex-direction: column; }
.dual-cols .cg.cs { margin-top: auto; }
/* 字力（mangpai_zili）：每字一行，左字右条 */
.zl { display: grid; gap: 6px; margin-bottom: 6px; }
.zl-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: var(--radius-s); background: var(--card2); border: 1px solid var(--line); }
.zl-ch { font-family: var(--serif); font-size: var(--fs-2xl); font-weight: 800; line-height: 1.15; width: 26px; text-align: center; flex: none; }
.zl-main { flex: 1; min-width: 0; }
.zl-head { font-size: var(--fs-sm); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.zl-co { color: var(--text3); font-size: var(--fs-s); }
.zl-role { border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text2); }
.zl-role.r-功, .zl-role.r-捕 { color: var(--good); border-color: var(--good); }
.zl-role.r-贼, .zl-role.r-病 { color: var(--bad); border-color: var(--bad); }
.zl-g { margin-left: auto; font-size: var(--fs-s); font-weight: 700; color: var(--text2); }
.zl-g.g-强 { color: var(--good); } .zl-g.g-虚 { color: var(--text3); }
.zl-bar { height: 5px; border-radius: 3px; background: var(--line); margin: 4px 0 3px; overflow: hidden; }
.zl-bar span { display: block; height: 100%; background: currentColor; border-radius: 3px; }
.zl-x { font-size: 12.5px; color: var(--text2); line-height: 1.5; }
.dual-ys { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dual-ys > div { border-radius: var(--radius-s); padding: 10px; background: var(--card2); border: 1px solid var(--line); }
.dual-ys .k { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 4px; }
.dual-ys .v { font-family: var(--serif); font-size: var(--fs-l); margin-bottom: 4px; }

/* ── 细断 a–m ── */
.acc { border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 8px; overflow: hidden; background: var(--card); }
.acc > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 600; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .k { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: var(--fs-s); font-weight: 700; text-transform: uppercase; }
:root[data-theme="dark"] .acc > summary .k { color: var(--brand-ink); }
.acc > summary .n { margin-left: auto; font-size: var(--fs-s); color: var(--text3); font-weight: 400; }
.acc[open] > summary { border-bottom: 1px solid var(--line); }
.acc .body { padding: 6px 14px 10px; }
.acc.locked > summary { color: var(--text3); }
.acc.locked > summary .k { background: var(--bg2); color: var(--text3); }

/* ── 日历 ── */
/* 七列用 minmax(0, 1fr)：1fr 的下限是 min-content，320 宽时「戊午」＋日期把最右一列撑出卡片内边距（2026-10-16 审计） */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
@media (max-width: 340px) { .cal { gap: 3px; } }
.cal .wd { text-align: center; font-size: 11.5px; color: var(--text3); padding-bottom: 2px; }
.cal .d { aspect-ratio: 1 / 1.05; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
          background: var(--tb); color: var(--tc); font-weight: 700; font-size: var(--fs-m); position: relative; min-width: 0; }
.cal .d small { font-size: 9.5px; font-weight: 500; opacity: .8; }
.cal .d.today { outline: 2px solid var(--gold); outline-offset: 1px; }
.cal .d.blank { background: transparent; }
.cal-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: var(--fs-s); color: var(--text2); }
.cal-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--tb); border: 1.5px solid var(--tc); margin-right: 4px; vertical-align: -1px; }

/* ── 年 / 大运条 ── */
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip a { flex: none; min-width: 64px; padding: 8px 10px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line);
           text-align: center; color: var(--text); scroll-snap-align: center; }
.strip a .y { font-size: var(--fs-s); color: var(--text3); }
.strip a .g { font-family: var(--serif); font-size: 17px; font-weight: 800; }
.strip a .tg { font-size: 11.5px; font-weight: 700; color: var(--tc); }
.strip a.sel { border-color: var(--brand2); box-shadow: 0 0 0 3px var(--bg2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand2) 18%, transparent); }
.strip a.cur .y::after { content: " ●"; color: var(--gold); }
.strip .lockcell { flex: none; min-width: 110px; display: grid; place-items: center; border-radius: 14px; border: 1.5px dashed var(--line); color: var(--text3); font-size: var(--fs-s); padding: 8px; text-align: center; }
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mgrid a, .mgrid div { border-radius: 10px; padding: 7px 4px; text-align: center; background: var(--tb); color: var(--tc); font-weight: 700; font-size: var(--fs-sm); }
.mgrid small { display: block; font-weight: 500; font-size: var(--fs-xs); opacity: .85; }

/* ── 断事 ── */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cats label { display: block; }
/* 格子撑满 label、文字上下居中：英文「People & partners」折两行时同一行的格子一样高（2026-10-16 审计）；英文三列 */
.cats span { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; column-gap: 2px; height: 100%; text-align: center; font-size: var(--fs-sm); line-height: 1.25; padding: 9px 2px; border-radius: 11px; background: var(--card2); border: 1.5px solid var(--line); cursor: pointer; }
html[lang="en"] .cats:not(.chips) { grid-template-columns: repeat(3, 1fr); }
.cats input:checked + span { border-color: var(--brand2); background: var(--bg2); background: color-mix(in srgb, var(--brand2) 12%, var(--card)); color: var(--brand2); font-weight: 650; }
.coins { display: flex; justify-content: center; gap: 14px; margin: 16px 0 8px; }
.coin { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 800; font-size: var(--fs-xl);
        background: radial-gradient(circle at 35% 30%, #F8E2A6, #C9A04F 60%, #9C7428); color: #4A3510; box-shadow: inset 0 0 0 4px rgba(90, 60, 10, .25), 0 3px 8px rgba(0, 0, 0, .2); position: relative; }
.coin::after { content: ""; width: 14px; height: 14px; border: 2px solid rgba(74, 53, 16, .6); position: absolute; }
.coin span { position: relative; z-index: 1; font-size: var(--fs-sm); }
.coin.spin { animation: spin .7s ease-in-out; }
@keyframes spin { 0% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(540deg) translateY(-18px); } 100% { transform: rotateY(1080deg) translateY(0); } }
.hexa { display: flex; flex-direction: column-reverse; gap: 9px; align-items: center; margin: 14px 0; }
.yao { width: 170px; height: 14px; display: flex; gap: 22px; position: relative; }
.yao i { flex: 1; border-radius: var(--r-xs); background: var(--brand); }
:root[data-theme="dark"] .yao i { background: var(--gold); }
.yao.yang i:nth-child(2) { display: none; }
.yao.unset i { background: var(--line); }
.yao.moving::after { content: "○"; position: absolute; right: -26px; top: -6px; color: var(--bad); font-size: 15px; font-weight: 700; }
.yao.moving.yin::after { content: "×"; }
.gua-names { text-align: center; font-family: var(--serif); font-size: 20px; font-weight: 800; }
.gua-names .arr { color: var(--gold); margin: 0 8px; font-family: var(--font); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two > div { background: var(--card2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; }
.two .h { display: flex; justify-content: space-between; align-items: center; font-weight: 650; margin-bottom: 4px; }

/* ── 商城 ── */
.prods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prod { background: var(--card); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; position: relative;
        border: 1px solid var(--line); border: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.prod .pic { height: 78px; border-radius: var(--r-m); display: grid; place-items: center; font-size: 38px; margin-bottom: 8px;
             background: linear-gradient(160deg, var(--card2), var(--bg2)); }
.prod .nm { font-weight: 650; font-size: 14.5px; line-height: 1.35; }
.prod .br { font-size: var(--fs-s); color: var(--text3); margin: 3px 0 8px; flex: 1; }
/* 价格与「立即购买」（2026-10-17 用户截图：系统字号调大后按钮字折成两行）：按钮不折字；一行放不下时按钮整颗换到下一行（靠右） */
.prod .pr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
.prod .pr b { color: var(--bad); font-size: var(--fs-l); white-space: nowrap; }
.prod .pr .btn { white-space: nowrap; flex: none; margin-left: auto; }
.prod .fit { position: absolute; top: 8px; left: 8px; font-size: var(--fs-xs); padding: 1px 8px; border-radius: var(--r-pill); background: var(--gold); color: #2A1E07; font-weight: 700; }   /* 金底配深字，与 .btn.gold 同（白字只 2.1:1） */

/* ── 消息 ── */
.msg { display: flex; gap: 12px; padding: 13px 2px; border-top: 1px solid var(--line); color: var(--text); }
.msg:first-child { border-top: 0; }
.msg .ic { width: 38px; height: 38px; border-radius: var(--r-m); flex: none; display: grid; place-items: center; font-size: var(--fs-xl); background: var(--gold-soft); }
.msg .b { flex: 1; min-width: 0; }
.msg .t { font-weight: 650; display: flex; gap: 6px; align-items: center; }
.msg .t .u { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); flex: none; }
.msg .x { font-size: 13.5px; color: var(--text2); }
.msg .tm { font-size: 11.5px; color: var(--text3); }

/* ── 登录 ── */
.auth { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 0 22px 28px; max-width: 460px; margin: 0 auto; }
.auth .brand { text-align: center; padding: 56px 0 26px; }
.auth .brand img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 30px rgba(70, 45, 20, .25); box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 30%, transparent); }   /* 2026-10-04 改版前墨蓝 logo 的投影残值，换暖色 */
.auth .brand h1 { font-size: 30px; margin-top: 14px; letter-spacing: .25em; padding-left: .25em; }
.auth .brand p { color: var(--text3); margin: 6px 0 0; font-size: 13.5px; letter-spacing: .08em; }
.auth .disc { margin-top: auto; padding-top: 22px; font-size: var(--fs-s); line-height: 1.7; color: var(--text3); text-align: justify; }
.auth .alt { text-align: center; margin-top: 16px; font-size: var(--fs-m); color: var(--text2); }
.acct { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; }
.acct .av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; }   /* 深色的 --brand 偏淡，白字看不清；--brand-ink 浅色本就是白 */
.acct .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .q, .sw .q { display: inline-flex; gap: 4px; }
.qb { border-radius: var(--r-pill); background: var(--gold-soft); color: var(--gold-ink); font-weight: 600; }
.sw { cursor: pointer; }
.pp { cursor: pointer; }
/* 管理：资料变更记录（列表只出简要，点开就地展开详情）、登录记录（2026-10-06） */
.chg { padding: 11px 14px; cursor: pointer; }
.chg-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chg .chev { color: var(--text3); transition: transform .15s; }
.chg.open .chev { transform: rotate(90deg); }
.chg-d { margin-top: 6px; }
.chg-t { width: 100%; font-size: var(--fs-sm); margin-top: 4px; border-collapse: collapse; }
.chg-t td { padding: 2px 6px 2px 0; vertical-align: top; word-break: break-all; }
.chg-t td.k { white-space: nowrap; color: var(--text3); word-break: normal; }
/* admin 的几张表（登录记录按用户、AI 用量、舒缓使用、断事六爻）列多且 nowrap：320 宽或时长到三位数小时时撑出卡片、整页横向拖。
   表自己横滑、卡片不动：table 当块、tbody 当表（这几张表没有 thead，列宽不会错位）；不必给模板套容器（2026-10-16 审计） */
.lg-t, .adm-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lg-t > tbody, .adm-table > tbody { display: table; width: 100%; }
.lg-t { width: 100%; font-size: var(--fs-sm); border-collapse: collapse; }
.lg-t td { padding: 6px 4px; border-top: 1px solid var(--line); white-space: nowrap; }
.lg-t td:first-child { white-space: normal; word-break: break-all; }
.lg-t .n { text-align: right; }
.lg-t .lg-th td { border-top: 0; color: var(--text3); font-size: var(--fs-s); }
.lg-t tr.on td { background: var(--bg2); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.lg-r { padding: 9px 2px !important; }
.lg-loc { cursor: pointer; }
/* 明细的副行要折行，不截成「…」：设备标识、IP、经纬度都在行尾，截掉就等于没给（.list .grow .s 默认单行省略） */
.list .lg-r .grow .s { display: block; white-space: normal; overflow: visible; }
.list .lg-loc .lg-d { color: var(--text2); }
.list .lg-loc .lg-d[hidden] { display: none; }     /* .list .grow .s 的 display:block 会盖掉 hidden */
.devtag { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; }
.lg-t td .tiny { font-size: var(--fs-xs); }
.pp [data-del] { color: var(--bad); border-color: var(--line); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.sw .av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.qrow { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.qrow .grow { flex: 1; }
.qrow[hidden] { display: none; }

/* ── 手势密码板（BZ.gesturePad）── */
/* 横屏（可视高约 360–412px）整块约 445px 高：flex 居中会上下各裁一截、底下「取消／用密码」够不着又滚不动——
   容器可滚、面板用 margin:auto 居中（空间不够时贴顶、整块可滚），九宫格按视口高缩（2026-10-16 审计） */
.gp-bg { position: fixed; inset: 0; z-index: 260; /* 要压在应用锁（200）上面 */ background: rgba(12, 10, 30, .62); display: flex; align-items: flex-start; justify-content: center;
         overflow: auto; -webkit-overflow-scrolling: touch; opacity: 0; transition: opacity .18s; padding: 16px; }
.gp-bg.open { opacity: 1; }
.gp { width: 100%; max-width: 340px; margin: auto 0; background: var(--card); border-radius: 22px; padding: 22px 18px 16px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.gp-h { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.gp-s { color: var(--text3); font-size: var(--fs-sm); margin-top: 4px; min-height: 1em; }
.gp-pad { width: 100%; max-width: 270px; max-width: min(270px, 48vh); aspect-ratio: 1; margin: 14px auto 4px; display: block; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.gp-dot { fill: var(--card2); stroke: var(--line); stroke-width: 2; transition: r .12s; }
.gp-dot.on { fill: var(--brand); stroke: var(--gold); stroke-width: 3; r: 16; }
.gp-line, .gp-tail { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.gp.bad .gp-dot.on { fill: var(--bad); stroke: var(--bad); }
.gp.bad .gp-line { stroke: var(--bad); }
.gp-msg { min-height: 20px; font-size: 13.5px; color: var(--text2); }
.gp.bad .gp-msg { color: var(--bad); animation: gp-shake .3s; }
.gp-foot { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.gp-foot .btn { width: auto; flex: 1; }
@keyframes gp-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ── 杂项 ── */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 30px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
         background: rgba(20, 18, 40, .92); color: #fff; padding: 10px 16px; border-radius: var(--r-m); font-size: var(--fs-m); opacity: 0;
         transition: all .25s; z-index: 100; pointer-events: none; max-width: 86vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* 深色主题：写死的深底 rgba(20,18,40) 与 --bg #1B1D25 几乎同色，盒子边界看不出；反色成浅底深字（2026-10-16 审计） */
:root[data-theme="dark"] .toast { background: var(--text); color: var(--bg); box-shadow: var(--shadow); }
/* 带按钮的提示（AI 点数不够 → 去加购，2026-11-17 审计）：这时才接点击 */
.toast.act { pointer-events: auto; display: flex; align-items: center; gap: 12px; text-align: left; }
/* 钱出门的验证抽屉（BZ.withVerify，2026-11-17）：要盖过红包层 .rp-bg（94），与游戏卡 gx（97）不会同时出现 */
#mv-sheet { z-index: 97; }
/* 确认框（BZ.sure，2026-11-17）：替原生 confirm；层级 98（盖过红包层 94、游戏卡 97；与分享层 98 不会同时出现） */
.bz-dlg { position: fixed; inset: 0; z-index: 98; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center;
          padding: 16px calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); }
.bz-dlg-c { width: min(360px, 100%); background: var(--card); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px 14px; }
.bz-dlg-c p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; white-space: pre-line; }
.bz-dlg-r { display: flex; gap: 10px; }
.bz-dlg-r .btn { flex: 1; }
/* 还没有恢复码的提醒（设置页顶、第一次排好盘的今日页，2026-11-17） */
/* 意见反馈（2026-11-17） */
.fb-row { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.fb-row:last-child { border-bottom: 0; }
.fb-reply { background: var(--good-bg, var(--bg)); border-radius: 10px; padding: 8px 10px; font-size: var(--fs-m); }
.rc-nudge { display: block; color: var(--text); text-decoration: none; font-size: var(--fs-m); border-left: 3px solid var(--gold, var(--brand)); }
.toast-act { flex: none; color: inherit; font-weight: 600; text-decoration: underline; min-height: 32px; display: inline-flex; align-items: center; padding: 0 4px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 90; display: none; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; background: var(--card); border-radius: 22px 22px 0 0;
         padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
         max-width: 600px; margin: 0 auto; max-height: 86vh; overflow: auto; visibility: hidden; }
.sheet.open { transform: translateY(0); visibility: visible; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
/* 照片来源抽屉（拍一张 / 从相册选取，2026-10-07，_m.html 的 photo_sheet）：两项都是 label 包着文件框 */
.ph-title { margin: 0 0 10px; text-align: center; font-size: var(--fs-sm); color: var(--text3); }
.ph-opt { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; margin-bottom: 8px; border-radius: 14px;
          background: var(--bg2); color: var(--text); font-size: var(--fs-l); font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ph-opt:active { transform: scale(.98); }
.ph-opt .ph-ic { width: 28px; text-align: center; font-size: var(--fs-2xl); }
/* 取消：素色文字（不借 .btn.ghost——深色主题里全站的 .btn 规则会把它填成亮色，比两个选项还抢眼） */
.ph-opt.ph-cancel { width: 100%; justify-content: center; margin: 2px 0 0; border: 0; background: transparent; color: var(--text2); font: inherit; font-size: var(--fs-l); font-weight: 600; }
.btn.busy { opacity: .6; pointer-events: none; }   /* 上传中的「上传照片」（label 没有 disabled） */
.skel { background: linear-gradient(90deg, var(--bg2), var(--card2), var(--bg2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; height: 14px; margin: 8px 0; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
/* 页级空状态只这一套（潮讯、预测走势图此前各写一份）；卡片内小节的空位用 .empty.sm */
.empty { text-align: center; color: var(--text3); padding: 34px 0; font-size: var(--fs-m); }
.empty.sm { padding: 12px 0; font-size: 12.5px; }
.card.empty { padding: 34px 16px; }     /* .empty 写在 .card 之后、同优先级，会把卡片左右 16px 盖成 0；空状态卡片（潮讯、预测走势图、今日、原局）留住左右内边距 */
.chip { display: inline-block; border-radius: var(--r-pill); background: var(--bg2); color: var(--text2); margin: 2px 4px 2px 0; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; font-size: var(--fs-m); }
.kv .k { color: var(--text3); }
.env-w { display: flex; align-items: center; gap: 14px; }
.env-w .temp { font-size: 30px; font-weight: 300; }
.env-w .temp small { font-size: var(--fs-sm); color: var(--text3); margin-left: 4px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.adm-table td, .adm-table th { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; vertical-align: top; }
.adm-table th { color: var(--text3); font-weight: 500; }
.inline-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0; }
.inline-form .input { height: 34px; font-size: var(--fs-sm); width: auto; padding: 0 8px; }
@media (min-width: 640px) {
  .app { box-shadow: 0 0 0 1px var(--line); background: var(--bg); }
}
.cal .d.t-great { background: var(--good); color: var(--good-ink); }
.cal .d.t-terrible { background: var(--bad); color: var(--bad-ink); }
.cal-legend .t-great::before { background: var(--good); }
.cal-legend .t-terrible::before { background: var(--bad); }
.strip a.lockcell { min-width: 150px; max-width: 170px; white-space: normal; line-height: 1.45; display: grid; place-items: center; color: var(--text3); border-style: dashed; }

/* 细断 a–m：每栏标所需会员等级；够不着的是一行、点不开 */
.acc .acc-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 600; color: var(--text3); cursor: not-allowed; }
.acc.locked .acc-row .k { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--bg2); color: var(--text3); font-size: var(--fs-s); font-weight: 700; text-transform: uppercase; }
.acc .acc-row .n { margin-left: auto; font-size: var(--fs-s); font-weight: 400; display: flex; align-items: center; gap: 4px; }
.tier-tag { display: inline-block; border-radius: var(--r-pill); font-weight: 600; }
.tier-basic { background: var(--flat-bg); color: var(--flat); }
.tier-mid { background: var(--gold-soft); color: var(--gold-ink); }
.tier-adv { background: var(--bg2); background: color-mix(in srgb, var(--brand2) 15%, var(--card)); color: var(--brand2); }

/* 会员才看得到的格子：注明所需等级，不带吉凶、点不进 */
.strip .locked-cell { flex: none; min-width: 64px; padding: 8px 10px; border-radius: 14px; border: 1.5px dashed var(--line);
                      text-align: center; color: var(--text3); background: var(--card2); cursor: not-allowed; }
.strip .locked-cell .y { font-size: var(--fs-s); }
.strip .locked-cell .g { font-size: 15px; line-height: 1.6; }
.strip a .tier-tag, .strip .locked-cell .tier-tag { margin-top: 3px; }
.strip .lockcell { flex: none; min-width: 110px; max-width: 150px; display: grid; place-items: center; border-radius: 14px;
                   border: 1.5px dashed var(--line); color: var(--text3); font-size: var(--fs-s); padding: 8px; text-align: center; line-height: 1.45; }
.mgrid .mlock { background: var(--card2); color: var(--text3); border: 1px dashed var(--line); cursor: not-allowed; font-weight: 600; }
.mgrid .mlock .tier-tag { display: block; margin: 3px auto 0; width: fit-content; }
/* 标题后的小注（断事「每日一卦」） */
.head h1 .h-note { font-weight: 500; color: var(--text3); margin-left: 8px; border: 1px solid var(--line); border-radius: var(--r-pill); vertical-align: 2px; }

/* —— 归纳总结的两段（用户 2026-10-03）—— */
.sum .line { padding: 9px 0; }
.sum .line .txt { font-size: 14.5px; line-height: 1.75; }
.sum .line .dot { margin-top: 9px; }
/* —— 原局 · 正统：帮身/耗身与五行各行 —— */
.tongyi .bar { height: 12px; border-radius: var(--r-pill); overflow: hidden; background: var(--bad-bg); }
.tongyi .bar .t { display: block; height: 100%; background: var(--good); border-radius: 99px 0 0 99px; }
.tongyi .lab { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text2); margin-top: 4px; }
.wxrows { margin-top: 10px; display: grid; gap: 4px; }
.wxrow { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 6px 8px; border-radius: 10px; background: var(--card2); }
.wxrow i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
/* 定宽改最小宽：英文 Wood／missing 超过 2em 时此前字叠字（2026-10-16 审计） */
.wxrow b { min-width: 2em; }
.wxrow .pct { min-width: 3.6em; color: var(--text2); }
.wxrow .st { min-width: 2em; color: var(--text3); }
html[lang="en"] .wxrow b { min-width: 3.4em; }
html[lang="en"] .wxrow .st { min-width: 4.2em; }
.wxrow .cat { color: var(--text2); }
.wxrow .flag { margin-left: auto; border-radius: var(--r-pill); background: var(--tb, var(--flat-bg)); color: var(--tc, var(--text3)); }
/* —— 相法：特征点选（复用 .cats 的样子，列数按文字长度放宽） —— */
.cats.chips { grid-template-columns: repeat(2, 1fr); }
.cats.chips span { font-size: 13.5px; padding: 9px 6px; line-height: 1.3; }

/* —— 十干主题（用户 2026-10-03）：<html data-wx="甲…癸">，阳干饱满、阴干柔和；浅色与深色各一套。
   只换品牌色、金色、hero 与底色，吉绿凶朱不动（那是语义色，不随主题走）。默认跟随用神首位五行（见 web._globals）。 */
:root[data-wx="甲"] { --brand: #1F6B3A; --brand2: #2E8B57; --gold: #8C7A2B; --gold2: #B8A24A; --gold-soft: #ECE8CC; --hero1: #1E5A33; --hero2: #0D2E1B; --bg: #EEF3EA; --bg2: #E2EADC; --card2: #F4F8F1; --line: #D6E0CF; }
:root[data-theme="dark"][data-wx="甲"] { --brand: #6FCB8E; --brand2: #9BE0B3; --gold: #C9B55A; --gold2: #E3D37F; --gold-soft: #2B2E1C; --hero1: #1F5A36; --hero2: #0A1F12; }
:root[data-wx="乙"] { --brand: #3E8A5A; --brand2: #63B07D; --gold: #A4904A; --gold2: #C9B66E; --gold-soft: #EFEBD3; --hero1: #3C7A52; --hero2: #1F4530; --bg: #F1F6EE; --bg2: #E6EFE1; --card2: #F7FAF4; --line: #DBE6D2; }
:root[data-theme="dark"][data-wx="乙"] { --brand: #86D5A0; --brand2: #AEE6C0; --gold: #D3C27A; --gold2: #E8DB9F; --gold-soft: #2C2F1E; --hero1: #2F6A4A; --hero2: #102A1C; }
:root[data-wx="丙"] { --brand: #B8322A; --brand2: #D9473A; --gold: #C98A2B; --gold2: #E7B35A; --gold-soft: #F7E9CF; --hero1: #8E2620; --hero2: #46110E; --bg: #F8EFE8; --bg2: #F1E2D8; --card2: #FBF4EF; --line: #E8D3C7; }
:root[data-theme="dark"][data-wx="丙"] { --brand: #F2776B; --brand2: #FF9A8E; --gold: #E9B35C; --gold2: #F6CF86; --gold-soft: #332418; --hero1: #7E241E; --hero2: #2E0D0B; }
:root[data-wx="丁"] { --brand: #C25A4A; --brand2: #E07A66; --gold: #D4A054; --gold2: #EDC27E; --gold-soft: #F8EBD6; --hero1: #9A4638; --hero2: #4D221B; --bg: #FAF1EC; --bg2: #F3E4DC; --card2: #FCF6F2; --line: #EAD6CC; }
:root[data-theme="dark"][data-wx="丁"] { --brand: #F39483; --brand2: #FFB4A6; --gold: #EFC27A; --gold2: #F8D9A3; --gold-soft: #33261B; --hero1: #8A4236; --hero2: #331712; }
:root[data-wx="戊"] { --brand: #7A5230; --brand2: #9A6B40; --gold: #B8862E; --gold2: #DCAC5A; --gold-soft: #F3E6CC; --hero1: #6B4728; --hero2: #342213; --bg: #F5EFE4; --bg2: #ECE2D0; --card2: #F9F5EC; --line: #E2D6C1; }
:root[data-theme="dark"][data-wx="戊"] { --brand: #D5A06E; --brand2: #E8BF93; --gold: #E0AE58; --gold2: #F2CB85; --gold-soft: #33271A; --hero1: #5E3F24; --hero2: #2A1B0F; }
:root[data-wx="己"] { --brand: #8E7A52; --brand2: #AF9A6B; --gold: #C2A05A; --gold2: #E0C486; --gold-soft: #F4EBD6; --hero1: #7A6A48; --hero2: #3C3423; --bg: #F6F2E8; --bg2: #EDE6D6; --card2: #FAF7EF; --line: #E4DCC8; }
:root[data-theme="dark"][data-wx="己"] { --brand: #D7C292; --brand2: #E9D8B2; --gold: #E3C77E; --gold2: #F3DEA6; --gold-soft: #33291B; --hero1: #6A5B3D; --hero2: #2C2518; }
:root[data-wx="庚"] { --brand: #3F4A5C; --brand2: #5B6B82; --gold: #8F98A6; --gold2: #B9C1CC; --gold-soft: #E6E9EE; --hero1: #3A4454; --hero2: #1B2029; --bg: #F0F1F3; --bg2: #E4E6EA; --card2: #F6F7F9; --line: #D7DAE0; }
:root[data-theme="dark"][data-wx="庚"] { --brand: #B9C3D1; --brand2: #D4DCE6; --gold: #C7CED8; --gold2: #E0E5EC; --gold-soft: #262A31; --hero1: #3E4A5C; --hero2: #161B23; }
:root[data-wx="辛"] { --brand: #6B6F7A; --brand2: #8A8F9C; --gold: #B9A36A; --gold2: #D9C68E; --gold-soft: #F0ECDF; --hero1: #5E626E; --hero2: #2E3139; --bg: #F4F4F2; --bg2: #E9E9E5; --card2: #F9F9F7; --line: #DEDEDA; }
:root[data-theme="dark"][data-wx="辛"] { --brand: #CFD2D9; --brand2: #E6E8EC; --gold: #D9C98C; --gold2: #EADDA9; --gold-soft: #2B2A22; --hero1: #555A66; --hero2: #20232A; }
:root[data-wx="壬"] { --brand: #1F4E8C; --brand2: #2F6DB5; --gold: #4C8BA8; --gold2: #7FB0C9; --gold-soft: #DCE9F0; --hero1: #1B437A; --hero2: #0B1F3C; --bg: #ECF1F6; --bg2: #DFE7EF; --card2: #F3F7FA; --line: #D1DBE6; }
:root[data-theme="dark"][data-wx="壬"] { --brand: #7FB3F0; --brand2: #A9CBF6; --gold: #8CC4DD; --gold2: #B4DAEA; --gold-soft: #1D2A33; --hero1: #1F4A86; --hero2: #0A1A33; }
:root[data-wx="癸"] { --brand: #2E7C8C; --brand2: #4BA0B0; --gold: #6FB4C2; --gold2: #9BCFD9; --gold-soft: #DFEFF2; --hero1: #286C7A; --hero2: #12353D; --bg: #EDF4F5; --bg2: #E0ECEE; --card2: #F4F9FA; --line: #D3E2E4; }
:root[data-theme="dark"][data-wx="癸"] { --brand: #7FD0DF; --brand2: #A9E1EB; --gold: #9BD2DD; --gold2: #C0E4EB; --gold-soft: #1C2D31; --hero1: #2A6A79; --hero2: #0C2A31; }
html[data-wx] { background: var(--bg); }
.wx-swatch { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.wx-swatch button { border: 2px solid var(--line); border-radius: var(--r-m); padding: 8px 4px; background: var(--card2); color: var(--text); font-size: 12.5px; display: grid; justify-items: center; gap: 4px; }
.wx-swatch button i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.wx-swatch button.on { border-color: var(--brand2); background: var(--bg2); background: color-mix(in srgb, var(--brand2) 12%, var(--card)); font-weight: 650; }
/* —— 全息图（2026-10-03）—— */
.roads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.road { border-radius: var(--radius-s); padding: 10px 12px; background: var(--tb, var(--card2)); border: 1px solid var(--line); }
.road .n { font-size: 12.5px; color: var(--text2); }
.road .v { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 800; color: var(--tc, var(--text)); }
.energy { display: grid; gap: 6px; }
.erow { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.erow i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.erow b { min-width: 1.6em; }
html[lang="en"] .erow b { min-width: 3.4em; }
.erow .bar { flex: 1; height: 10px; border-radius: var(--r-pill); background: var(--bg2); overflow: hidden; }
.erow .bar span { display: block; height: 100%; }
.erow .pct { width: 3.6em; color: var(--text2); }
.erow .flag { border-radius: var(--r-pill); background: var(--tb, var(--flat-bg)); color: var(--tc, var(--text3)); }
.erow .marks { width: 4.2em; text-align: right; color: var(--gold-ink); letter-spacing: .05em; }
.vote { border-radius: var(--r-pill); background: var(--tb); color: var(--tc); margin-left: 6px; }
.organ { padding: 9px 0; border-top: 1px dashed var(--line); }
.organ:first-child { border-top: 0; }
.organ .h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.organ .h .n { font-size: 12.5px; color: var(--text3); white-space: nowrap; }
.organ.lv-strong .h b { color: var(--bad); }
.organ.lv-warn .h b { color: var(--mixed); }

/* —— 五行有声动画（用户 2026-10-04）：今日页顶部一幕、舒缓页的播放器共用 —— */
.scene { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 16 / 9; margin-bottom: 14px;
         background: linear-gradient(160deg, var(--hero1), var(--hero2)); box-shadow: 0 10px 30px rgba(30, 20, 90, .22); color: #F6F1E4;
         -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.scene.player { aspect-ratio: 4 / 3; }
/* aspect-ratio 要 Chrome 88／Safari 15：没有它的旧 WebView 里这一块高度为 0（画布 1px、控件叠在一起），退回固定高（2026-10-16 审计） */
@supports not (aspect-ratio: 1) {
  .scene { min-height: 200px; }
  .scene.player { min-height: 240px; }
}
.scene .sc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene .sc-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; justify-content: space-between;
                 padding: 12px 12px 0 14px; pointer-events: none; }
.scene .sc-top > * { pointer-events: auto; }
.scene .sc-name b { font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: .06em; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); display: block; }
.scene .sc-name small { font-size: var(--fs-s); opacity: .85; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.sc-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .28);
          color: #fff; font-size: 15px; display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; }
.sc-btn:active { transform: scale(.94); }
.scene .sc-btns { display: flex; gap: 8px; }
.sc-btn[data-sc-sound]::before, .sc-btn[data-g-sound]::before { content: "🔇"; font-size: var(--fs-m); }
.sc-btn[data-sc-sound].on::before, .sc-btn[data-g-sound].on::before { content: "🔊"; }
.scene .sc-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
                    padding: 22px 12px 10px 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .38)); }
/* 十一颗色点（随＋十干）一行要 346px，390 宽的卡只有 300 来px：此前横滑且无提示，壬癸看不见（壬正是用神）——改成折行，全部露出来（2026-10-16 审计） */
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px; min-width: 0; }
.sc-chips button { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); font-size: var(--fs-s); font-weight: 700;
                   color: #fff; background: linear-gradient(135deg, var(--c1, #666), var(--c2, #999)); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); opacity: .72;
                   position: relative; }
.sc-chips button::before { content: ""; position: absolute; inset: -7px -3px; }     /* 热区外扩，视觉不变 */
.sc-chips button.auto { background: rgba(255, 255, 255, .18); }
.sc-chips button.on { opacity: 1; border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); transform: scale(1.1); }
.scene .sc-go { flex: none; color: #fff; font-size: 12.5px; opacity: .9; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); white-space: nowrap; }
/* 「这一幕最补你」的小注挪到左上角名字下面：色点折成两行后底部那块更高，再压在 bottom:50px 会盖住上一行色点 */
.sc-nourish { position: absolute; left: 14px; top: 62px; font-size: var(--fs-s); padding: 3px 10px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .32);
              border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: none; transition: opacity .4s; }
.sc-nourish.off { opacity: 0; }
/* 全屏（沉浸）：同一个 section 钉满屏，控件 3 秒后淡出、点一下再出 */
.scene.full { position: fixed; inset: 0; z-index: 89; /* sheet-bg 90 之下，不与它同值（2026-10-16 审计） */ border-radius: 0; margin: 0; aspect-ratio: auto; box-shadow: none; }
.scene.full .sc-top { padding-top: calc(12px + env(safe-area-inset-top)); padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
.scene.full .sc-nourish { top: calc(62px + env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); }
.scene.full .sc-bottom { padding-bottom: calc(14px + env(safe-area-inset-bottom)); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
.scene.full.idle .sc-top, .scene.full.idle .sc-bottom, .scene.full.idle .pl-bar, .scene.full.idle .sc-nourish { opacity: 0; transition: opacity .6s; }
.scene.full .sc-go { display: none; }
html.sc-full-open, html.sc-full-open body { overflow: hidden; }
/* 舒缓页播放器 */
.scene.player .pl-mid { position: absolute; inset: 0; pointer-events: none; }
.scene.player .pl-mid > * { pointer-events: auto; }
.pl-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%;
           border: 2px solid rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .28); color: #fff;
           display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; transition: transform .15s, opacity .3s; }
.pl-play:active { transform: translate(-50%, -50%) scale(.94); }
.pl-play .ic-play { width: 0; height: 0; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.pl-play.on .ic-play { width: 20px; height: 24px; border: 0; margin: 0; background: linear-gradient(90deg, #fff 0 36%, transparent 36% 64%, #fff 64%); }
.scene.full .pl-play, .scene.player.playing.idle .pl-play { opacity: .0; }
.scene.player.playing .pl-play { opacity: .55; }
.pl-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 26px 12px 10px;
          background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .45)); font-size: 12.5px; }
.pl-vol { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.pl-vol input { flex: 1; min-width: 0; accent-color: #F2D592; height: 22px; }
.pl-tog, .pl-timer { height: 30px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .3); color: #fff;
                     padding: 0 10px; font-size: 12.5px; max-width: 46%; }
.pl-tog.on { background: rgba(242, 213, 146, .32); border-color: #F2D592; }
/* 定时是个下拉：去掉系统箭头后与「呼吸」开关长得一样，补一枚 ▾（2026-10-16 审计） */
.pl-timer { -webkit-appearance: none; appearance: none; text-overflow: ellipsis; padding-right: 24px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat; background-position: right 9px center; background-size: 10px 6px; }
.sc-countdown { position: absolute; right: 14px; top: 56px; font-size: var(--fs-s); padding: 2px 9px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .2); }
/* 呼吸引导：圈套在播放键外面随吸停呼伸缩，提示字在圈下方。⚠️hidden 必须显式写 display:none——author 的 display 会盖掉 UA 的 */
.breath { position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px; pointer-events: none; }
.breath[hidden] { display: none; }
.breath .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7);
                background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02) 70%); transform: scale(.55); transition: transform 4s cubic-bezier(.4, 0, .6, 1); }
.breath .cue { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 8px; white-space: nowrap;
               font-family: var(--serif); font-size: 17px; letter-spacing: .1em; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.sc-countdown[hidden], .upd-prog[hidden] { display: none; }
/* 主题列表 */
.themes { display: grid; gap: 8px; }
.theme { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--card);
         color: var(--text); text-align: left; cursor: pointer; }
.theme.on { border-color: var(--brand2); background: var(--bg2); background: color-mix(in srgb, var(--brand2) 10%, var(--card)); }
.theme .th-dot { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-family: var(--serif); font-weight: 800; font-size: 17px;
                 background: linear-gradient(135deg, var(--c1), var(--c2)); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.theme .th-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.theme .th-t { font-weight: 650; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.theme .th-s { font-size: 12.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme .th-tags { display: flex; gap: 4px; margin-top: 2px; }
.theme .th-tags em { font-style: normal; border-radius: var(--r-pill); background: var(--bg2); color: var(--text2); }
.th-you { font-style: normal; border-radius: var(--r-pill); background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; }
.theme .th-eq { display: none; gap: 2px; align-items: flex-end; height: 16px; }
.theme.on.playing .th-eq { display: flex; }
.theme .th-eq i { width: 3px; background: var(--brand2); border-radius: 2px; animation: eq .9s ease-in-out infinite; height: 40%; }
.theme .th-eq i:nth-child(2) { animation-delay: .3s; } .theme .th-eq i:nth-child(3) { animation-delay: .6s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
/* 应用锁（用户 2026-10-04）：离开前台超过 30 秒，回来先验手势／指纹；<head> 里那段同步脚本先把 html.locked 打上，内容不闪 */
/* 2026-10-16 审计：此前整屏墨蓝渐变（--hero1/--hero2）是改版前「神秘」配色的漏网，每次回前台都来一屏；改成页面底色加品牌淡染，字色随主题 */
.applock { display: none; position: fixed; inset: 0; z-index: 200; color: var(--text);
           background: var(--bg);
           background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 16%, var(--bg)), var(--bg) 55%, color-mix(in srgb, var(--gold2) 22%, var(--bg)));
           flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
html.locked .applock { display: flex; }
html.locked .app, html.locked .tabbar { visibility: hidden; }
.applock img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 14px 40px rgba(70, 45, 20, .22); box-shadow: 0 14px 40px color-mix(in srgb, var(--brand) 28%, transparent); margin-bottom: 8px; }
.applock .al-name { font-family: var(--font); font-size: 20px; font-weight: 700; }
.applock .al-msg { font-size: var(--fs-m); color: var(--text2); min-height: 1.5em; }
.applock .al-btns { display: grid; gap: 10px; width: min(300px, 100%); margin-top: 14px; }
/* App 内更新的进度条（update-sheet） */
.upd-prog { margin-top: 12px; }
.upd-prog .bar { height: 8px; border-radius: var(--r-pill); background: var(--bg2); overflow: hidden; }
.upd-prog .bar i { display: block; height: 100%; width: 0; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--brand), var(--gold)); transition: width .25s; }
.upd-prog .tiny { margin-top: 6px; }
/* 印章按字数排版（2026-10-04）：一两个字一行；三个字缩小；「吉凶参半」四个字排成两行两字，不许挤出圆 */
.hero .seal { white-space: nowrap; }
.hero .seal.n2 { font-size: 27px; letter-spacing: .02em; }
.hero .seal.n3 { font-size: 21px; letter-spacing: 0; }
.hero .seal.n4, .hero .seal.n5 { font-size: 20px; line-height: 1.08; letter-spacing: .02em; padding: 0 10px; text-align: center;
                                 white-space: normal; word-break: break-all; }
.hero .seal.sm.n2 { font-size: 21px; }
.hero .seal.sm.n3 { font-size: var(--fs-l); }
.hero .seal.sm.n4, .hero .seal.sm.n5 { font-size: 15px; padding: 0 7px; }

/* 2026-10-04 去掉神秘严肃感：十干主题的暗色底不再近黑，统一用暖灰深蓝（主题只换品牌色与金色）。
   2026-10-16 审计：上面十块深色规则里的 --bg/--bg2/--card2/--line 本就被这一条整体覆盖、从不生效，已删；wx_palette.json 的 dark 节同样不含底色（base.html 首屏深色底直接写 #1B1D25） */
:root[data-theme="dark"][data-wx] { --bg: #1B1D25; --bg2: #232631; --card2: #2E3240; --line: #3A3E4C; }
/* 今日页：标题大写 TODAY、今日推荐游戏（2026-10-05） */
.head h1.h1-caps { font-family: var(--sans, inherit); letter-spacing: 3px; font-weight: 800; }
.sc-nourish { transition: opacity .8s; }
.sc-nourish.gone { opacity: 0; pointer-events: none; }
/* ====== iPhone（2026-10-06 iOS 审计）====== */
/* 输入框、下拉框字号小于 16px 时，iPhone 一点进去 Safari 就把整页放大、之后不缩回（出生年月日、时区、断事问题……）。
   只在 iOS 上抬到 16px：-webkit-touch-callout 只有 iOS 的 WebKit 认，安卓 App 与电脑上不受影响。 */
@supports (-webkit-touch-callout: none) {
  input, select, textarea { font-size: 16px !important; }
}
/* iPhone 登录注册页（2026-10-06）：用户名前面写死的 ios 前缀 */
.prefixed { display: flex; align-items: center; height: 46px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--card2); }
.prefixed .pre { padding: 0 0 0 14px; color: var(--text3); font-weight: 650; letter-spacing: .02em; flex: none; }
.prefixed .input { border: 0; background: transparent; height: 100%; padding-left: 3px; flex: 1; min-width: 0; }
.prefixed .input:focus { box-shadow: none; }     /* 聚焦那一圈由外框 .prefixed:focus-within 画；里面的 input 再画一圈就成了双环、还压住前缀 */
[data-pane][hidden] { display: none; }

/* ====== 我的命盘加锁（用户 2026-10-07，bzapp/chartlock.py）====== */
/* 「更多」页「我的命盘」那一行右边的开关；锁着的四个入口带一把小锁 */
.sec-title.cl-row { display: flex; align-items: center; gap: 8px; }
.cl-tog { margin-left: auto; font-size: var(--fs-s); line-height: 1.4; padding: 3px 11px; border-radius: var(--r-pill); cursor: pointer; position: relative;
          border: 1px solid var(--line); background: var(--card); color: var(--text2); letter-spacing: 0; font-weight: 550; }
.cl-tog::before { content: ""; position: absolute; inset: -9px -4px; }     /* 热区外扩到 40px 高，视觉不变（嵌在 .sec-title 一行里，放大本体会笨重） */
.cl-tog.on { background: var(--gold-soft); color: var(--gold-ink); border-color: transparent; font-weight: 650; }
.cl-tog[disabled] { opacity: .55; }
.list .cl-mk { font-size: var(--fs-sm); opacity: .75; flex: none; }
/* 二次验证块（验证页与「更多」页解除加锁的抽屉共用，_m.html 的 chart_verify） */
.cl-box { display: grid; gap: 10px; width: min(320px, 100%); margin: 0 auto; text-align: left; }
.cl-quick { display: grid; gap: 10px; }
.cl-quick [hidden] { display: none; }          /* .btn 的 display 会盖掉 hidden */
.cl-pw { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0; }
.cl-pw .btn { width: auto; padding: 0 18px; }
.cl-msg { min-height: 1.4em; font-size: var(--fs-sm); color: var(--bad); text-align: center; }
.cl-sheet-t { font-size: 17px; margin: 0 0 14px; text-align: center; }



/* 今日页左上角 logo（2026-10-14）2026-10-17 撤掉，样式与动画一并删 */
@media (prefers-reduced-motion: reduce) {
  /* 2026-10-16 审计：系统开了「减弱动态效果」的人，摇卦翻转、手势板抖动、骨架流光、均衡器一并停；抽屉与 toast 瞬现。
     ⚠️不用 `* { animation-duration: .01ms !important }` 总开关——呼吸圈那 4s 的伸缩正是呼吸引导本身，砍了功能就没了，有意保留 */
  .coin.spin, .gp.bad .gp-msg, .skel, .theme .th-eq i { animation: none; }
  .skel { background: var(--bg2); }
  .theme .th-eq i { height: 60%; }
  .sheet, .toast, .chg .chev { transition-duration: .01s; }
}

/* ── 问一问：对话式布局（用户 2026-10-14「优化问一问 UI 交互方案，排版布局更加合理」）── */
.ak-q { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin: 4px 0 12px; }
.ak-bubble { max-width: 86%; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 18px 18px 4px 18px;
  font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ak-bubble img { display: block; max-width: 100%; max-height: 200px; border-radius: var(--r-m); margin-top: 8px; }
.ak-mk { margin-right: 4px; }
.ak-verdict { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--tb, var(--bg2)); }
.ak-verdict.t-flat { --tb: var(--bg2); }
.ak-pick { font-size: 23px; font-weight: 800; color: var(--tc, var(--text)); }
.ak-verdict.t-flat .ak-pick { color: var(--brand); }
.ak-how { font-size: 14.5px; line-height: 1.6; color: var(--text2); }
.ak-why { margin: 8px 0 2px; }
.ak-why .chip { white-space: normal; line-height: 1.45; }
.ak-lab { font-size: var(--fs-sm); font-weight: 700; color: var(--text2); margin: 14px 0 6px; display: flex; align-items: baseline; gap: 8px; }
.ak-best { margin-left: auto; font-weight: 600; color: var(--brand); font-size: 12.5px; }
.ak-ai #ai-text { white-space: pre-wrap; line-height: 1.8; font-size: 15px; }
.ak-ai { border-left: 3px solid var(--brand2); padding-left: 12px; margin-top: 12px; }
.ak-ai .ak-lab { margin-top: 0; }
.ak-opts { display: flex; flex-direction: column; gap: 6px; }
.ak-opt { display: flex; flex-direction: column; gap: 6px; padding: 9px 12px; border-radius: var(--r-m); background: var(--card2); border: 1px solid var(--line); }
.ak-opt.best { border-color: var(--brand2); }
.ak-ot { font-size: 15px; font-weight: 600; }
.ak-ot .tiny { font-weight: 400; }
.ak-ob { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.ak-ob b { margin-left: auto; color: var(--brand); }
.ak-chips .chip { margin: 0 6px 6px 0; }
.ak-chips .chip.t-good { background: var(--good-bg); color: var(--good); }
.ak-tips { margin: 0; padding-left: 18px; font-size: var(--fs-m); line-height: 1.7; color: var(--text2); }
.ak-roads { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 8px; }
.ak-roads summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text2); padding: 4px 0; }
.ak-rate { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.ak-rate .tiny { margin-right: auto; }
.ak-hello { padding: 18px 4px 10px; }
.ak-hi { font-size: var(--fs-2xl); font-weight: 800; margin-bottom: 4px; }
.ak-recent { padding: 4px 16px; }
.ak-recent a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; color: var(--text); font-size: 14.5px; }
.ak-recent a + a { border-top: 1px dashed var(--line); }
.ak-bar { position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px); z-index: 5; margin-top: 14px;
  background: var(--card); border-radius: 20px; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); padding: 8px 8px 8px; }
/* 场景按钮一行横滑：右缘渐隐提示还有（此前硬截在卡片边、不知道后面还有七个）；行尾留 22px 空当，滑到底时最后一枚不在渐隐区里 */
.ak-scenes { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 2px 8px; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
.ak-scenes::-webkit-scrollbar { display: none; }
.ak-scenes::after { content: ""; flex: none; width: 22px; }
.ak-scenes .btn { box-shadow: none; flex: none; height: 32px; font-size: var(--fs-sm); padding: 0 11px; border-radius: var(--r-pill); position: relative; }
.ak-scenes .btn::before { content: ""; position: absolute; inset: -4px 0; }     /* 热区 40px 高 */
.ak-prev { display: block; height: 56px; width: 56px; object-fit: cover; border-radius: var(--r-m); margin: 0 0 6px 4px; cursor: pointer; }
.ak-prev[hidden] { display: none; }
/* 输入栏（2026-10-14，样子照 Claude App）：上面输入框、下面工具行；听写时整条换成听写条 */
.cp { border: 1px solid var(--line); border-radius: 22px; background: var(--card); padding: 6px 6px 6px 6px; }
.cp.rec { border-color: var(--brand2); }
.cp-main[hidden], .cp-rec[hidden], .cp-mic[hidden] { display: none; }
.cp-ta { display: block; width: 100%; border: 0; outline: 0; resize: none; background: transparent; color: var(--text);
  font: inherit; font-size: var(--fs-l); line-height: 1.5; padding: 6px 8px 2px; min-height: 34px; max-height: 132px; }
.cp-ta::placeholder { color: var(--text3); }
.cp-bar { display: flex; align-items: center; gap: 4px; }
.cp-grow { flex: 1; }
.cp-ic { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: none;
  color: var(--text2); cursor: pointer; margin: 0; padding: 0; }
.cp-ic svg { width: 21px; height: 21px; }
.cp-ic:active { background: var(--bg2); }
.cp-plus { border: 1px solid var(--line); }
.cp-send { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; padding: 0;
  background: var(--line); color: var(--card); cursor: pointer; transition: background .15s, transform .1s; }
.cp-send svg { width: 19px; height: 19px; }
.cp-send.on { background: var(--brand); color: var(--brand-ink); }
.cp-send.on:active { transform: scale(.92); }
.cp-rec { display: flex; align-items: center; gap: 6px; min-height: 48px; }
.cp-mid { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.cp-wave { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 26px; }
.cp-wave i { width: 3px; height: 6px; border-radius: 2px; background: var(--brand); animation: cp-w 1.1s ease-in-out infinite; }
.cp-wave i:nth-child(2) { animation-delay: .1s; } .cp-wave i:nth-child(3) { animation-delay: .25s; } .cp-wave i:nth-child(4) { animation-delay: .4s; }
.cp-wave i:nth-child(5) { animation-delay: .15s; } .cp-wave i:nth-child(6) { animation-delay: .35s; } .cp-wave i:nth-child(7) { animation-delay: .05s; }
.cp-wave i:nth-child(8) { animation-delay: .3s; } .cp-wave i:nth-child(9) { animation-delay: .2s; }
.cp.beat .cp-wave i { animation-duration: .55s; }
@keyframes cp-w { 0%, 100% { height: 5px; } 50% { height: 22px; } }
.cp-live { flex: 1; min-width: 0; font-size: var(--fs-m); color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-time { flex: none; font-size: var(--fs-sm); color: var(--text3); font-variant-numeric: tabular-nums; }
.cp-ok { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; padding: 0;
  background: var(--brand); color: var(--brand-ink); cursor: pointer; }
.cp-ok svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .cp-wave i { animation: none; height: 12px; } }
.ak-h { display: flex; gap: 8px; align-items: center; padding: 8px 0; }
.ak-h + .ak-h { border-top: 1px dashed var(--line); }
.ak-h a { flex: 1; min-width: 0; color: var(--text); display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.ak-recent .ak-h a { flex-direction: row; justify-content: space-between; gap: 10px; }
.ak-recent .ak-h + .ak-h { border-top: 1px dashed var(--line); }
.ak-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--text3); font-size: 20px; line-height: 1; cursor: pointer; }   /* 删除叉 40px（行高本就 46px，行不变） */
.ak-x:active { background: var(--line); }
/* 断事 · AI 解卦分块（2026-10-14，bzapp/duanshi_ai.py） */
.dv-secs { display: flex; flex-direction: column; gap: 10px; }
.dv-sec { padding: 10px 12px; border-radius: var(--r-m); background: var(--card2); border: 1px solid var(--line); }
.dv-sec.lead { background: var(--bg2); border-color: transparent; }
.dv-sec.lead .dv-b { font-size: 15.5px; font-weight: 600; color: var(--text); }
.dv-h { font-size: var(--fs-sm); font-weight: 700; color: var(--brand); margin-bottom: 4px; letter-spacing: .5px; }
.dv-b { font-size: 14.5px; line-height: 1.75; color: var(--text2); white-space: pre-wrap; word-break: break-word; }
/* USDT 收款地址（订单页；原智能商机一节，2026-10-25 智能商机撤了只剩这一条） */
.op-addr { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; word-break: break-all; white-space: pre-wrap;
           background: var(--bg2); border-radius: 10px; padding: 10px 12px; user-select: all; -webkit-user-select: all; }

/* ── 营销审计（2026-10-15）：今日页的问一问输入条、七天条、分享、铃铛；会员页对比表；恢复码；分享卡；增长漏斗 ── */
.td-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.td-foot .tiny { opacity: .9; }
.td-ask { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 14px; padding: 13px 16px; border: 0;
          border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); color: var(--text3);
          font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.td-ask .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-ask .chev { color: var(--brand); }
.td-week { display: block; color: var(--text); }
.td-week-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.td-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.td-d { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; border-radius: 10px;
        background: var(--tb, var(--bg2)); }
.td-d small { font-size: var(--fs-xs); color: var(--text3); }
.td-d b { font-size: var(--fs-l); }
.td-d i { font-style: normal; font-size: var(--fs-xs); color: var(--tc, var(--text2)); white-space: nowrap; max-width: 100%; overflow: hidden; }   /* 英文整词放不下时裁在格内，不压到邻格（today.html 该换 seal() 的缩写） */
.td-d.today { box-shadow: inset 0 0 0 2px var(--brand); }
.td-bell { position: relative; text-decoration: none; }
.td-bell .dot { top: 3px; right: -4px; background: var(--bad); color: var(--bad-ink); }     /* 尺寸同角标基类；坐标按 .head .act 的 40px 热区换算 */
.dom-st { color: var(--gold-ink); font-size: var(--fs-s); letter-spacing: 1px; }
.td-ref summary { cursor: pointer; margin-top: 8px; }
.rc-code { margin: 4px 0 10px; padding: 12px; border-radius: var(--radius-s); background: var(--gold-soft); color: var(--text);
           font: 700 20px/1.3 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 2px; text-align: center; user-select: all; }
.rc-code[hidden] { display: none; }
.mb-tbl table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.mb-tbl th, .mb-tbl td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.mb-tbl td:first-child { text-align: left; color: var(--text2); }
.mb-tbl th.cur, .mb-tbl td.cur { background: var(--gold-soft); font-weight: 600; }
.mb-tbl tr.mb-grp th { text-align: left; padding: 14px 4px 6px; font-size: var(--fs-s); font-weight: 700; color: var(--brand); letter-spacing: .04em; }   /* 分组行（2026-10-18） */
.mb-card.cur { box-shadow: inset 0 0 0 2px var(--gold), var(--shadow); }
#invite .iv-pick { display: block; margin-bottom: 10px; }
#invite .iv-pick .tiny { display: block; margin-bottom: 4px; }
#invite .iv-new { grid-template-columns: 1fr auto; }
#iv-more[hidden] { display: none; }        /* .btn 的 display 会盖掉 hidden */
.share-bg { position: fixed; inset: 0; z-index: 98; background: rgba(0, 0, 0, .7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-box { width: 100%; max-width: 420px; background: var(--card); border-radius: var(--radius); padding: 14px; text-align: center; }
.share-box img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: var(--r-m); display: block; margin-bottom: 8px; }
.share-box > .btn { margin-bottom: 10px; }
.share-box .btn { white-space: nowrap; font-size: 15px; padding: 0 8px; }
.fn-row { display: grid; grid-template-columns: 76px 1fr 40px 38px; gap: 8px; align-items: center; margin: 6px 0; font-size: 13.5px; }
.fn-bar { height: 10px; border-radius: 5px; background: var(--bg2); overflow: hidden; }
.fn-bar i { display: block; height: 100%; background: var(--brand); }

/* 问事 · AI 互动（2026-10-16，chat.html）：用户右侧气泡、回答左侧卡片，输入栏与问一问同一条 */
.ck-top { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13.5px; }
.ck-nav { color: var(--brand); white-space: nowrap; flex: none; }
.ck-title { flex: 1; min-width: 0; text-align: center; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-msgs { display: flex; flex-direction: column; gap: 10px; }
.ck-u { display: flex; justify-content: flex-end; }
.ck-bubble { max-width: 86%; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 18px 18px 4px 18px;
  white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.55; }
.ck-a { display: flex; }
.ck-ai { max-width: 100%; background: var(--card); padding: 12px 14px; border-radius: 18px 18px 18px 4px; box-shadow: var(--shadow, 0 1px 3px rgba(0,0,0,.06));
  word-break: break-word; font-size: 15px; line-height: 1.65; }
.ck-ai code { background: var(--card2); padding: 1px 4px; border-radius: var(--r-xs); font-size: 13.5px; }
.ck-ai.ck-wait { color: var(--text3); }
.ck-ai.ck-fail { color: var(--text3); font-size: 13.5px; }
.ck-left { text-align: center; margin-top: 10px; }
/* AI 点数（2026-11-09 晚，ai_meter）：回答下面「用了 X 点」、各处一次操作后的那一行、复杂业务停止按钮旁的「已用 X 点」 */
.ck-cost, .ai-cost { color: var(--text3); font-size: var(--fs-s); }
.ai-live { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.ai-live[hidden] { display: none; }
.ck-mem { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: -4px 0 8px; }
.ck-rule { text-align: center; margin: -2px 0 8px; }
.ck-o { display: flex; flex-direction: column; align-items: flex-start; }
.ck-who { font-size: 11.5px; color: var(--text3); margin: 0 0 2px 6px; }
.ck-obub { max-width: 86%; background: var(--card2); border: 1px solid var(--line); padding: 9px 13px; border-radius: 18px 18px 18px 4px;
  white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.55; }
/* 好友（friends.html）与选好友的抽屉 */
.fr-code { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; }
.fr-code b { font-size: 26px; letter-spacing: .18em; font-family: var(--mono, monospace); }
.fr-row { display: flex; gap: 8px; margin: 4px 0 6px; }
.fr-row input { flex: 1; min-width: 0; }
.fr-list { padding: 2px 14px; }
.fr-it { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.fr-it + .fr-it { border-top: 1px dashed var(--line); }
.fr-av { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; flex: none; }
.fr-pick { max-height: 46vh; overflow-y: auto; display: grid; gap: 2px; }
.fr-pk { display: flex; align-items: center; gap: 8px; padding: 8px 2px; font-size: 15px; }
.sh-from { text-align: center; margin: 4px 0 8px; }
.sh-ai { white-space: pre-wrap; }
/* AI 互动的附件与联网（2026-10-16） */
.ck-img { display: block; max-width: 100%; max-height: 240px; border-radius: var(--r-m); margin-bottom: 6px; }
.ck-file { display: inline-block; margin-bottom: 4px; padding: 4px 10px; border-radius: 10px; background: rgba(255,255,255,.18); color: inherit; font-size: 13.5px; text-decoration: underline; }
.ck-obub .ck-file { background: var(--card); }
.ck-web { font-size: var(--fs-s); color: var(--text3); margin: 0 0 4px 4px; }
.ck-a { flex-direction: column; align-items: flex-start; }
.ck-att { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-bottom: 6px; border-radius: var(--r-m); background: var(--card2); border: 1px solid var(--line); }
.ck-att[hidden] { display: none; }
.ck-att img { width: 46px; height: 46px; object-fit: cover; border-radius: var(--r-s); }
.ck-att img[hidden] { display: none; }
.ck-attn { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* admin：登录记录的排序与活跃时长、AI 用量（2026-10-16） */
.seg.lg-sort { flex-wrap: wrap; }
.seg.lg-sort a { flex: 1 0 auto; font-size: 12.5px; padding: 6px 8px; }
.lg-t td.lg-dur { font-size: var(--fs-s); line-height: 1.55; color: var(--text2); }
.lg-t td.lg-dur .on { color: var(--brand); font-weight: 600; }
.ai-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ai-kpi div { background: var(--bg2); border-radius: var(--r-m); padding: 8px 10px; min-width: 0; }
.ai-kpi b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.ai-kpi span { font-size: 11.5px; color: var(--text3); }
.ai-bar { height: 6px; border-radius: 3px; background: var(--brand); min-width: 2px; }
.ai-r { cursor: pointer; }
.list .ai-r .grow .s { display: block; white-space: normal; overflow: visible; }
.list .ai-r .ai-d[hidden] { display: none; }     /* .list .grow .s 的 display:block 会盖掉 hidden */
.ai-d h4 { margin: 10px 0 4px; font-size: 12.5px; color: var(--text3); font-weight: 600; }
.ai-pre { white-space: pre-wrap; word-break: break-word; font-size: 12.5px; line-height: 1.55; max-height: 360px; overflow: auto;
  background: var(--bg2); padding: 8px 10px; border-radius: 10px; margin: 0; }
.ai-meta { margin: 6px 0 0; font-size: var(--fs-s); color: var(--text3); line-height: 1.6; }
.ai-chip { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: var(--r-pill); background: var(--bg2);
  color: var(--text3); font-size: var(--fs-xs); }
.ai-chip-ok { color: var(--good, var(--brand)); }
.ai-tag { color: var(--brand); white-space: nowrap; }
.ai-st-fail { color: var(--bad); }
.ai-st-partial { color: var(--gold, var(--text2)); }
.ai-q + .ai-q { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ai-q-h { font-weight: 600; margin-bottom: 4px; }
.ai-q-r { display: flex; align-items: center; gap: 8px; }
.ai-q-l { width: 7.5em; flex: none; font-size: 12.5px; color: var(--text2); }
.ai-q-bar { flex: 1; height: 8px; border-radius: var(--r-xs); background: var(--bg2); overflow: hidden; }
.ai-q-bar i { display: block; height: 100%; background: var(--good); border-radius: var(--r-xs); }
.ai-q-bar i.low { background: var(--bad); }
.ai-q-s { margin: 2px 0 6px; }
/* ── 2026-10-16 审计 · appjs ── */
/* 更新抽屉的按钮行：.row2 的 display:grid 会盖掉 hidden，下载中要真藏起来（app.js startUpdate） */
[data-upd-btns][hidden] { display: none; }
/* ── 2026-10-16 审计 · mediajs ── */
/* 全屏 3 秒后控件只是透明、仍可点：点右上角想唤出控件，pointerdown 先唤醒、紧接着的 click 就落在刚显形的 ⤡ 上退了全屏（#107）。
   淡出期间整条控件不接指针，点哪儿都只是唤醒；.scene .sc-top > * 本有 pointer-events:auto，要连子元素一起关 */
.scene.full.idle .sc-top, .scene.full.idle .sc-top > *, .scene.full.idle .sc-bottom, .scene.full.idle .sc-bottom *,
.scene.full.idle .pl-bar, .scene.full.idle .pl-bar * { pointer-events: none; }
/* ── 2026-10-16 审计 · social ── */
/* #136 发送中：↑ 换成转圈，整条输入栏（输入框、🎙、＋、场景条）不接操作；AI 互动离线时也挂 .sending（输入框另有 disabled） */
.cp-send.busy { pointer-events: none; opacity: .85; }
.cp-send.busy svg { display: none; }
.cp-send.busy::after { content: ""; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: cp-spin .8s linear infinite; }
@keyframes cp-spin { to { transform: rotate(360deg); } }
.ak-bar.sending .cp-ta, .ak-bar.sending .cp-ic, .ak-bar.sending .ak-scenes { pointer-events: none; opacity: .6; }
/* #135 读屏用的状态行：只给读屏，不占位 */
.ai-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* #140 列表的 × 点下去：这一行先淡出，删不掉再恢复 */
.ak-h.ak-going { opacity: .4; pointer-events: none; }
/* #145 AI 互动往上翻着看时，底下亮一颗「↓」回到最新；贴着输入栏上方，不进全屏层那张表（只在页面流里 sticky，低于 .ak-bar 的 5） */
.ck-down { position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 96px); z-index: 4; display: grid; place-items: center;
  width: 36px; height: 36px; margin: -36px 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--brand);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12); font-size: var(--fs-xl); line-height: 1; cursor: pointer; }
.ck-down[hidden] { display: none; }
/* ── 2026-10-16 审计 · core ── */
/* 只给读屏的文字（#121 断语前的 ✓／✗）：视觉上不占地方，读屏照念 */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 不好的一面圆点转成菱形：颜色之外的第二通道（#121），好的仍是圆点 */
.line.t-bad .dot, .line.t-terrible .dot { border-radius: 2px; transform: rotate(45deg) scale(.92); }
/* 问卦：每日一卦用掉后铜钱与六爻收起（.coins/.hexa 是 flex，hidden 要显式写）、摇卦键变灰（#146）；起卦中的按钮 disabled 走 .btn[disabled] */
.coins[hidden], .hexa[hidden] { display: none; }
.btn.gold.done { background: var(--bg2); color: var(--text3); box-shadow: none; cursor: default; }
/* 本月日历：谨慎／防守／大吉的格子右上角一枚小记号，色弱也分得开（#166，底色与图例不动） */
.cal .d { position: relative; }
.cal .d.t-bad::after, .cal .d.t-terrible::after, .cal .d.t-great::after { content: "△"; position: absolute; top: 1px; right: 3px; font-size: 8px; line-height: 1; opacity: .75; }
.cal .d.t-terrible::after { content: "✕"; }
.cal .d.t-great::after { content: "◎"; }
/* 今日页「本月」缩略条的卡头改用与其他卡同一式的 h2 + .ico（#196）：› 放在 .sub 里，整张卡仍是链接 */
.td-week h2 { margin-bottom: 8px; }
.td-week h2 .sub { font-size: var(--fs-xl); line-height: 1; }

/* ── 2026-10-16 审计 · account ── */
/* 登录类页面的语言切换（_lang.html 宏，#179）：此前写在行内样式里，三页共用后收成规则；当前语言加粗、其余淡字 */
.auth .lang-sw a { margin: 0 6px; color: var(--text3); }
.auth .lang-sw a.on { font-weight: 700; color: var(--text2); }
/* 切换账户页只剩自己时的提示（#191）：.tiny 没有 display，但 hidden 要显式写才稳 */
.sw-empty[hidden] { display: none; }
/* 下载页试算结果包进 .hero（#150）：卡里套卡，去掉外边距、内距收一点 */
.dl-try .hero { margin: 0; padding: 14px 16px; }
/* ── 2026-10-16 审计 · admin ── */
/* 商品摘要的 24px 图标框：图片链接给缩略图（此前整串网址塞进框里把摘要行撑烂）；填了长字也不溢出 */
.acc > summary .k { overflow: hidden; }
.acc > summary .k > img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 变更详情展开后可划选复制（点详情区不收起，只点标题行收起，见 admin_changes.html） */
.chg-d { cursor: auto; user-select: text; -webkit-user-select: text; }
.chg-d[hidden] { display: none; }

/* ── 2026-10-16 审计 · wording ── */
/* 英文今日页头改成句首大写「Today」（#20）：h1-caps 的 3px 字距是给全大写 TODAY 配的，句首大写拉开字距反倒散；中文「今日」照旧 */
html[lang="en"] .head h1.h1-caps { letter-spacing: normal; }

/* 好友私聊（2026-10-17，dm.html）：会话列表、对话气泡、时间分隔、已读、撤回、聊天增强面板；气泡沿用 AI 互动的 .ck-bubble／.ck-obub */
.dm-threads { padding: 2px 14px; }
.dm-th { display: flex; align-items: center; gap: 10px; padding: 11px 0; color: var(--text); text-decoration: none; }
.dm-th + .dm-th { border-top: 1px dashed var(--line); }
.dm-th .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dm-nm { font-weight: 700; }
.dm-last { font-size: var(--fs-sm); color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dm-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: var(--bad-ink); font-size: var(--fs-xs); line-height: 18px; text-align: center; }
.dm-others { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 20px; background: var(--card2); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.dm-chip .fr-av { width: 26px; height: 26px; font-size: var(--fs-sm); }
.dm-tip { text-align: center; margin: 14px 8px 0; }
.dm-msgs { display: flex; flex-direction: column; gap: 8px; }
.dm-m { display: flex; flex-direction: column; align-items: flex-start; -webkit-touch-callout: none; }
.dm-m.mine { align-items: flex-end; }
.dm-b { white-space: pre-wrap; word-break: break-word; -webkit-user-select: text; user-select: text; }
.dm-m .ck-obub, .dm-m .ck-bubble { max-width: 80%; }
.dm-m.sys { align-items: center; }
.dm-sys, .dm-time { font-size: var(--fs-s); color: var(--text3); text-align: center; }
.dm-time { margin: 6px 0 0; }
.dm-pl { font-size: var(--fs-xs); margin: 2px 6px 0; opacity: .7; }
.dm-rd { font-size: var(--fs-xs); color: var(--text3); margin: 2px 6px 0; }
.dm-hello { text-align: center; margin: 30px 0; }
.dm-older { display: block; margin: 0 auto 10px; }
.dm-pol { position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 84px); z-index: 5; margin-top: 12px; padding: 10px 12px;
  border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow, 0 2px 10px rgba(0,0,0,.08)); }
.dm-pol[hidden] { display: none; }
.dm-tones { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }   /* 圈子审计 10-21：窄屏放不下五个语气，右边渐隐示意还能滑 */
.dm-tones::-webkit-scrollbar { display: none; }
.dm-tones { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 28px; }
.dm-tone { flex: none; border: 1px solid var(--line); background: var(--card2); color: var(--text2, var(--text)); border-radius: 14px; padding: 4px 10px; font-size: var(--fs-sm); cursor: pointer; }
.dm-tone.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.dm-sug { padding: 8px 2px; white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
.dm-sug.ck-wait { color: var(--text3); }
.dm-pbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dm-pbtns .ak-x { margin-left: auto; width: 32px; height: 32px; }
.dm-pnote { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }   /* 左：剩余次数　右：买次数（10-18） */
.dm-pnote .btn { margin: 0; }
.cp-polish { font-size: var(--fs-xl); line-height: 1; }
.fr-hrow { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.fr-hrow .grow { display: flex; flex-direction: column; gap: 3px; }
.fr-hrow input { width: 22px; height: 22px; flex: none; }
.fr-it a.btn { text-decoration: none; }
.fr-nm { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fr-n, .fr-login { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-mems .fr-n { white-space: normal; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }   /* 圈子审计 10-21：名字后面的标签（管理员／★／已授权／禁言中）放不下就折到下一行，不再把「已授权」截成「已授…」 */
.fr-ni { width: 100%; min-width: 0; font-size: var(--fs-l); }
/* AI 互动 · 回答下面的「复制」（2026-10-17） */
.ck-cp { margin: 4px 0 0 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: var(--r-m); background: transparent; color: var(--text3); font-size: var(--fs-s); cursor: pointer; }
.ck-cp:active { background: var(--line); }
/* 知聊分页（2026-10-17）：小知／知信有新的就在字后面亮一个小点，颜色随十干主题（深色用亮一档的 brand2） */
.talk-tabs a { position: relative; }
.tt-dot { display: inline-block; width: 8px; height: 8px; margin-left: 5px; border-radius: 50%; background: var(--brand); vertical-align: 2px; }
:root[data-theme="dark"] .tt-dot { background: var(--brand2); }
.tt-dot[hidden] { display: none; }
/* 圈子页还没有会话时置顶的图卡（2026-10-17；10-18 改成一句话配图）：一圈人围着中间一点暖光，圈外一个人正走进来。
   颜色全走主题变量与五行色，深色主题跟着变；图在上、一句话居中、两颗键并排（太窄就上下叠） */
.zx-hero { padding: 6px 16px 16px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, var(--gold-soft), transparent 70%), var(--card); }
.zx-art { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; }
.zx-g0 { stop-color: var(--gold); stop-opacity: .55; } .zx-g1 { stop-color: var(--gold); stop-opacity: .14; } .zx-g2 { stop-color: var(--gold); stop-opacity: 0; }
.zx-stars circle { fill: var(--text3); opacity: .5; }
.zx-ring { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: .55; }
.zx-links path { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; opacity: .45; }
.zx-core { fill: var(--gold); }
.zx-core2 { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: .45; }
.zx-p { fill: currentColor; }
.zx-p.p1 { color: #2E9B57; } .zx-p.p2 { color: #D9483A; } .zx-p.p3 { color: #A9782C; }
.zx-p.p4 { color: #2F78C4; } .zx-p.p5 { color: #B9932E; } .zx-p.p6 { color: var(--brand); }
.zx-new { color: var(--text3); }
.zx-walk { fill: none; stroke: var(--text3); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.zx-say { font-family: var(--serif); font-size: 20px; line-height: 1.35; font-weight: 700; letter-spacing: .06em; color: var(--text); margin: 2px 0 14px; }
html[lang="en"] .zx-say { letter-spacing: normal; }
.zx-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }   /* 太窄放不下两颗就上下叠 */
.zx-acts .btn { margin: 0; white-space: nowrap; padding-left: 10px; padding-right: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .zx-core2 { transform-origin: 160px 84px; animation: zx-pulse 3.2s ease-in-out infinite; }
}
@keyframes zx-pulse { 0%, 100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.35); opacity: .1; } }
#cc-make, #cc-code { scroll-margin-top: calc(var(--head-h) + 12px); }
/* 转发（2026-10-17，forward.js）：多选时可勾的消息左边一个圈，勾上的实心；底部一条操作栏（低于抽屉 90/91）；合并转发的「聊天记录」卡片 */
.fw-on [data-fw] { position: relative; padding-left: 30px; cursor: pointer; }
.fw-on [data-fw]::before { content: ""; position: absolute; left: 2px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--card); box-sizing: border-box; }
.fw-on [data-fw].fw-sel::before { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px var(--card); }
.fw-on .dm-m.mine[data-fw], .fw-on .ck-u[data-fw] { align-items: flex-end; }
body.fw-mode .ak-bar, body.fw-mode .dm-pol, body.fw-mode .ck-cp { display: none; }
.fw-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 10px); z-index: 60; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow, 0 4px 16px rgba(0,0,0,.12)); }
.fw-bar[hidden] { display: none; }
.fw-n { flex: 1; font-size: 13.5px; color: var(--text2, var(--text)); }
.fw-bar .btn { white-space: nowrap; }
.fw-hd { font-weight: 700; margin-bottom: 8px; }
.fw-wrap { padding: 0; overflow: hidden; }
.fw-card { min-width: 200px; max-width: 260px; padding: 10px 12px; cursor: pointer; }
.fw-ct { font-weight: 650; margin-bottom: 4px; }
.fw-pv .fw-li { font-size: 12.5px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-cf { margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text3); }
.fw-all[hidden] { display: none; }
.fw-vl { max-height: 60vh; overflow-y: auto; }
.fw-vl .fw-li { padding: 8px 0; border-bottom: 1px dashed var(--line); white-space: pre-wrap; word-break: break-word; font-size: var(--fs-m); }

/* 聊天里的翻译（2026-10-17，app.js 的 BZ.chatTr）：外语气泡下面一个「译」，点开译文在下面 */
.tr-btn { margin: 3px 0 0 6px; padding: 2px 10px; border: 1px solid var(--line); border-radius: var(--r-m); background: transparent;
          color: var(--brand); font-size: var(--fs-s); cursor: pointer; }
.tr-btn:active { background: var(--line); }
.tr-out { max-width: 80%; margin: 4px 0 0 6px; padding: 8px 12px; border-left: 3px solid var(--brand2, var(--brand)); border-radius: 4px 12px 12px 4px;
          background: var(--bg2); color: var(--text2, var(--text)); font-size: var(--fs-m); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.tr-out[hidden] { display: none; }

/* 小知的手机按钮与提醒（2026-10-17，chat.html 的 acts/card） */
.ast { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 0; width: 100%; max-width: 420px; }
.ast-b { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px;
         background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ast-b:active { background: var(--bg2); }
.ast-b.done { border-color: var(--good); }
.ast-i { flex: none; font-size: var(--fs-xl); }
.ast-t { display: flex; flex-direction: column; min-width: 0; }
.ast-t b { font-size: 14.5px; }
.ast-pre { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text2); white-space: pre-wrap; max-height: 10em; overflow: auto; }
.ast-b input[type=checkbox] { flex: none; width: 18px; height: 18px; }
.ast-t small { color: var(--text3); font-size: var(--fs-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 小知回答的排版（2026-10-17，js/md.js）：段落、标题、列表、表格、代码、引用、图片、曲线图 */
.ck-ai p { margin: 0 0 8px; } .ck-ai p:last-child { margin-bottom: 0; }
.ck-ai .md-h { font-weight: 700; margin: 10px 0 6px; } .ck-ai .md-h1 { font-size: 17px; } .ck-ai .md-h2 { font-size: var(--fs-l); } .ck-ai .md-h3 { font-size: 15px; }
.ck-ai .md-l { margin: 4px 0 8px; padding-left: 1.4em; } .ck-ai .md-l li { margin: 2px 0; } .ck-ai .md-l li.md-sub { margin-left: 1.2em; list-style: circle; }
.ck-ai .md-q { margin: 6px 0; padding: 4px 10px; border-left: 3px solid var(--line); color: var(--text2, var(--text)); }
.ck-ai .md-hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.ck-ai .md-tw { overflow-x: auto; margin: 6px 0 10px; -webkit-overflow-scrolling: touch; }
.ck-ai .md-t { border-collapse: collapse; font-size: 13.5px; min-width: 60%; }
.ck-ai .md-t th, .ck-ai .md-t td { border: 1px solid var(--line); padding: 5px 8px; text-align: left; vertical-align: top; }
.ck-ai .md-t th { background: var(--bg2); font-weight: 700; white-space: nowrap; }
.ck-ai .md-pre { margin: 6px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); overflow-x: auto; font-size: 12.5px; line-height: 1.5; }
.ck-ai .md-pre code { background: none; padding: 0; white-space: pre; }
.ck-ai a { color: var(--brand); word-break: break-all; }
.ck-ai .md-img { display: block; max-width: 100%; border-radius: 10px; margin: 6px 0; }
.ck-ai .md-fig { margin: 8px 0 10px; padding: 10px 8px 6px; border-radius: var(--r-m); background: var(--bg2); }
.ck-ai .md-fig figcaption { font-weight: 700; font-size: var(--fs-m); margin: 0 4px 4px; } .ck-ai .md-fig figcaption small { font-weight: 400; color: var(--text3); }
.ck-ai .md-chart { display: block; width: 100%; height: auto; }
.ck-ai .md-chart .md-grid { stroke: var(--line); stroke-width: 1; }
.ck-ai .md-chart .md-ct { fill: var(--text3); font-size: 10px; }
.ck-ai .md-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 4px 0; font-size: var(--fs-s); color: var(--text3); }
.ck-ai .md-leg i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }

/* 小知：语音指挥开关、生成的图（2026-10-17） */
.ck-vcmd { display: inline-flex; align-items: center; gap: 4px; margin: 0 2px 0 0; padding: 5px 11px; border: 1px solid var(--brand); border-radius: var(--r-l); white-space: nowrap;
           background: transparent; color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ck-vcmd.on { background: var(--brand); color: var(--card); }
.ck-gen { display: block; max-width: min(100%, 360px); margin: 6px 0 0; border-radius: var(--r-m); cursor: zoom-in; }
.ck-vcmd[hidden] { display: none; }
/* 按住说话（2026-10-17）：长按不弹系统菜单、不选字、不滚动 */
.ck-vcmd { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.cp-ic.ck-vcmd { width: 36px; height: 36px; padding: 0; margin: 0; border: 0; border-radius: 50%; display: inline-grid; place-items: center; color: var(--brand); }
.cp-ic.ck-vcmd.on { background: var(--brand); color: var(--card); transform: scale(1.12); }
/* 输入栏工具行的图标键一律带圈（用户 2026-10-18「相机、录音、说话按钮外面也加个圈，和旁边的发送按钮一样」；小知与圈子／私聊同一个 composer）：
   与 ＋ 同一道 1px 细圈、与发送键同为 36px 圆；写在 .cp-ic.ck-vcmd 之后，同优先级后写的赢，盖掉它的 border:0 */
.cp-bar .cp-ic { border: 1px solid var(--line); }
.cp-bar .cp-ic.on { border-color: var(--brand); }

/* 好友私聊的语音（2026-10-17）：按住键、录音提示条、语音气泡 */
.cp-hold { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.cp-hold.on { background: var(--brand); color: var(--card); transform: scale(1.12); }
.cp-hold[hidden] { display: none; }
.dm-recbar { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 8px 12px; border-radius: 14px; background: var(--bg2); font-size: var(--fs-sm); color: var(--text2, var(--text)); }
.dm-recbar[hidden] { display: none; }
.dm-recbar.cancel { background: var(--bad); color: #fff; }
.dm-recdot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: dmrec 1s infinite; }
.dm-recbar.cancel .dm-recdot { background: #fff; }
@keyframes dmrec { 50% { opacity: .25; } }
.dm-vb { padding: 0 !important; }
.dm-voice { display: block; padding: 9px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; max-width: 240px; }

/* 按住说话时（2026-10-17）：输入栏整行留着，听写条浮在上方，不盖住手指下的按钮；没有 ✕／✓ */
.cp.hold { position: relative; }
.cp.hold .cp-rec { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 5; min-height: 44px; padding: 0 14px;
                   border-radius: 22px; background: var(--card); border: 1.5px solid var(--brand2, var(--brand)); box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,.15)); }
.cp.hold .cp-x, .cp.hold .cp-ok { display: none; }

/* 输入栏始终固定在底栏上方（2026-10-17 用户「将输入框始终放在页面的底部不动」；此前 sticky，内容短时停在页面中间）。
   页面底部按输入栏实时高度留白（app.js 写 --bar-h），最后一条不被挡住；「↓ 回到最新」跟着抬高 */
.ak-bar { position: fixed; left: 12px; right: 12px; max-width: 576px; margin: 0 auto; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px); z-index: 30; }
.app.no-tab .ak-bar { bottom: calc(env(safe-area-inset-bottom) + 8px); }
body.has-akbar .app { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 26px + var(--bar-h, 120px)); }
body.has-akbar .app.no-tab { padding-bottom: calc(env(safe-area-inset-bottom) + 26px + var(--bar-h, 120px)); }
body.has-akbar .ck-down { position: fixed; right: 20px; margin: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 20px + var(--bar-h, 120px)); }
body.has-akbar .dm-pol { position: fixed; left: 12px; right: 12px; max-width: 576px; margin: 0 auto; z-index: 31;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 16px + var(--bar-h, 120px)); }

/* 小知第一次的欢迎（2026-10-17）：示例两列、点了填进输入框 */
.ck-intro p { margin: 6px 0; color: var(--text2, var(--text)); }
.ck-ex { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.ck-ex button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.ck-ex button:active { background: var(--bg2); }
.ck-ex button span { font-size: var(--fs-xl); flex: none; }
@media (max-width: 340px) { .ck-ex { grid-template-columns: 1fr; } }
/* 2026-10-18 审计：有会话后示例收成一排横滑；单人会话的「邀请」收成小字；列表页「待提醒」 */
.ck-ex.ck-exr { display: flex; overflow-x: auto; gap: 8px; margin: 10px -16px 0; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ck-ex.ck-exr::-webkit-scrollbar { display: none; }
.ck-ex.ck-exr button { flex: none; white-space: nowrap; padding: 7px 12px; border-radius: 18px; font-size: var(--fs-sm); }
.ck-ex.ck-exr button span { font-size: 15px; }
.ck-invl { margin-left: auto; min-height: 32px; padding: 4px 6px; border: 0; background: none; color: var(--brand); font: inherit; font-size: 12.5px; cursor: pointer; }
.ck-rem { padding: 4px 16px; margin-bottom: 12px; }
.ck-rem[hidden] { display: none; }
.ck-remh { font-weight: 700; font-size: var(--fs-m); padding: 10px 0 2px; }
.ck-remt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-m); }
.ck-remt b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 小知长按进转发（2026-10-17）：长按不弹系统的选字菜单 */
.ck-msgs [data-fw] { -webkit-touch-callout: none; }
/* 小知回答下面的「复制」「朗读开关」并排（2026-10-17） */
.ck-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.ck-tools .tr-btn { margin: 4px 0 0; }
.ck-tools .tr-out { flex-basis: 100%; }
.ck-tools .ck-cp { margin: 0 0 0 6px; }
.ck-tools .ck-cp + .ck-cp { margin-left: 0; }

/* ── 圈子（2026-10-17，bzapp/circles.py）：群聊里说话人的头像昵称、圈子列表、资料页 ── */
img.fr-av { object-fit: cover; padding: 0; background: var(--card2); }
.dm-who { display: flex; align-items: center; gap: 6px; margin: 0 0 3px 2px; }
.dm-who .fr-av { width: 24px; height: 24px; font-size: var(--fs-s); }
.dm-who .tiny { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-ev .dm-sys { padding: 2px 10px; border-radius: 10px; background: var(--card2); }
/* 圈主通知、圈助理（2026-10-25，bzapp/circle_mods）：系统行做成一张小卡，可多行、可带图 */
.dm-m.dm-card .dm-sys { display: inline-block; max-width: 88%; text-align: left; white-space: pre-wrap; word-break: break-word; padding: 8px 12px; line-height: 1.5; }
.dm-m.dm-card .dm-imgs { margin: 6px auto 0; max-width: 88%; }
.cc-av { border-radius: 10px; }
.cc-n { font-size: var(--fs-s); color: var(--text3); font-weight: 400; }
.cc-tag { font-size: var(--fs-xs); padding: 0 6px; border-radius: var(--r-s); border: 1px solid var(--line); color: var(--text2); margin-left: 4px; white-space: nowrap; }
.cc-inv { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.cc-inv + .cc-inv { border-top: 1px dashed var(--line); }
.cc-inv .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.cc-row + .cc-row { border-top: 1px dashed var(--line); }
.cc-row .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-row input[type=checkbox] { width: 22px; height: 22px; flex: none; }
.cc-avs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.cc-avs label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 18px; font-size: var(--fs-m); }
.cc-avs label .fr-av { width: 26px; height: 26px; font-size: var(--fs-s); }
.cc-form { display: grid; gap: 8px; }
.cc-form input[type=text] { width: 100%; font-size: var(--fs-l); }
.cc-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-me-av { width: 48px; height: 48px; font-size: 20px; }
.cc-star { color: var(--brand); margin-left: 4px; }
.fw-tabs { display: flex; gap: 6px; margin: 6px 0 8px; }
.fw-tabs button { flex: 1; }
.fw-grp { font-size: var(--fs-s); color: var(--text3); margin: 8px 2px 2px; }
.cc-av-up[hidden], .fw-pane[hidden], .cc-sheet [hidden] { display: none; }
.cc .fr-code { flex-wrap: wrap; gap: 8px; }
.cc .fr-code b { font-size: var(--fs-2xl); letter-spacing: .12em; margin-right: auto; }
.cc .fr-code .btn { white-space: nowrap; }

/* ===================== 圈子功能商城（2026-10-18，bzapp/circle_biz.py、circle_console.py） ===================== */
.cb-off { text-align: center; padding: 28px 18px; }
.cb-off-ico { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.cb-off p { margin: 8px 0; }
.cb-hero .cross { font-size: var(--fs-sm); color: var(--text2); margin-top: 4px; }
.cb-pend { display: grid; gap: 6px; }
.cb-pend-it { font-size: var(--fs-m); }
.cb-feats { display: grid; gap: 10px; }
@media (min-width: 560px) { .cb-feats { grid-template-columns: 1fr 1fr; } }
.cb-feat { display: flex; flex-direction: column; gap: 12px; margin: 0; border: 1.5px solid transparent; transition: border-color .2s; }
.cb-feat.on { border-color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.cb-feat-hd { display: flex; align-items: flex-start; gap: 10px; }
.cb-feat-hd .grow { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cb-ico { width: 38px; height: 38px; border-radius: var(--r-m); display: grid; place-items: center; font-size: 20px; flex: none; background: var(--bg2); }
.cb-feat-ft { display: flex; align-items: center; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.cb-feat-ft .btn, .cb-feat-ft .cb-switch { margin-left: auto; }
.cb-price { font-size: var(--fs-sm); color: var(--text2); }
.cb-price b { font-size: var(--fs-xl); color: var(--brand); }
:root[data-theme="dark"] .cb-price b { color: var(--brand2); }
.cb-exp { width: 100%; order: 3; }
.cb-badge { font-size: 11.5px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--bg2); color: var(--text2); white-space: nowrap; flex: none; }
.cb-badge.on { background: var(--good-bg); color: var(--good); }
/* 圈子订阅的分成条（2026-10-26）：通道费 → 平台 → 圈主，三段按比例 */
.cs-split { background: var(--bg2); border-radius: var(--r-m); padding: 10px 12px; }
.cs-split-bar { display: flex; height: 10px; border-radius: var(--r-pill); overflow: hidden; gap: 2px; }
.cs-split .ch { background: var(--text2); opacity: .55; } .cs-split .pl { background: var(--gold); } .cs-split .ow { background: var(--good); }
.cs-split-k { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.cs-split-k i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }
.ci-cap { border: 1px solid var(--bad); }
.cc-shed { opacity: .72; }
.cb-num { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: var(--fs-xs);
          font-weight: 700; background: var(--bad); color: var(--bad-ink); margin-left: 4px; }
/* 开关：一颗圆点在胶囊里滑（checkbox 照旧能读、能用键盘） */
.cb-switch { position: relative; display: inline-flex; width: 48px; height: 28px; flex: none; cursor: pointer; }
.cb-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cb-switch > span:not(.sr-only) { position: absolute; inset: 0; border-radius: 14px; background: var(--line); transition: background .2s; }
.cb-switch > span:not(.sr-only)::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
                                         background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.cb-switch input:checked + span { background: var(--good); }
.cb-switch input:checked + span::after { transform: translateX(20px); }
.cb-switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.cb-stepper { display: flex; align-items: center; gap: 14px; }
.cb-stepper b { min-width: 64px; text-align: center; font-size: var(--fs-xl); }
.cb-total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 2px 14px; }
.cb-total b { font-size: var(--fs-2xl); color: var(--brand); }
:root[data-theme="dark"] .cb-total b { color: var(--brand2); }
.cb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; padding: 12px; }
.cb-tiles.sm { padding: 0; box-shadow: none; background: none; }
/* 圈内游戏（2026-10-26 G5）：资料页上那一块与对战赛表单；.card／.cc-form 的 display 会盖掉 hidden */
#ci-games[hidden], #ci-games [hidden] { display: none; }
#ci-cup-new { margin-top: 10px; }
.cb-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: var(--radius-s);
           color: var(--text); font-size: var(--fs-sm); background: none; border: 0; font: inherit; font-size: var(--fs-sm); cursor: pointer; text-decoration: none; }
.cb-tile:active { background: var(--bg2); }
.cb-tile.dim { opacity: .55; }
.cb-tile .tt-dot, .cb-tile .cb-num { position: absolute; top: 6px; right: calc(50% - 26px); margin: 0; }
.cb-warn { background: var(--gold-soft); color: var(--text); border-radius: var(--radius-s); padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; }
.cb-nbar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin-bottom: 10px; border-radius: var(--radius-s); background: var(--card);
           box-shadow: var(--shadow); color: var(--text); font-size: var(--fs-m); position: sticky; top: calc(var(--head-h, 56px) + 4px); z-index: 2; }
.cb-nbar .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-nbar.new { background: var(--gold-soft); font-weight: 600; }
.cb-nbar.bc-pair { font-size: var(--fs-sm); color: var(--text2); }
.cb-nbar.bc-pair .grow { white-space: normal; }       /* 沟通无国界的私聊（2026-10-26）：说明一句要看全 */
.cb-cc { text-align: center; padding: 14px 8px 4px; display: grid; gap: 4px; }
.cb-cc[hidden] { display: none; }
.cb-cc-url { font-size: 15px; word-break: break-all; }
.cb-cc-code { font-size: 30px; letter-spacing: .14em; font-family: var(--mono, ui-monospace, monospace); color: var(--brand); }
.cb-cc-code.gone { color: var(--text3); text-decoration: line-through; }
.cb-st { font-size: 11.5px; padding: 2px 8px; border-radius: var(--r-pill); white-space: nowrap; background: var(--bg2); color: var(--text2); }
.cb-st.st-new { background: var(--gold-soft); color: var(--gold-ink); }
.cb-st.st-confirmed, .cb-st.st-shipped { background: var(--bg2); color: var(--brand); }
:root[data-theme="dark"] .cb-st.st-confirmed, :root[data-theme="dark"] .cb-st.st-shipped { color: var(--brand2); }
.cb-st.st-done { background: var(--good-bg); color: var(--good); }
.cb-st.st-cancelled { color: var(--text3); text-decoration: line-through; }

/* —— 公告 —— */
.cn-it.pin { border-left: 4px solid var(--gold); }
.cn-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cn-hd b { font-size: var(--fs-l); }
.cn-body { white-space: pre-wrap; line-height: 1.7; font-size: 15px; }
.cn-ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cn-acts { display: flex; gap: 6px; }

/* —— 朋友圈 —— */
.cm-new-hd { display: flex; gap: 10px; align-items: flex-start; }
.cm-new-hd textarea { flex: 1; min-height: 64px; resize: vertical; font-size: var(--fs-l); }
.cm-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 42px; }
.cm-add, .cm-th { width: 72px; height: 72px; border-radius: 10px; flex: none; position: relative; overflow: hidden; }
.cm-add { border: 1.5px dashed var(--line); background: var(--card2); color: var(--text3); font-size: var(--fs-2xl); display: inline-flex;
          flex-direction: column; align-items: center; justify-content: center; cursor: pointer; line-height: 1; gap: 4px; }
.cm-add[hidden] { display: none; }
@media (max-width: 359px) { .cm-add, .cm-th { width: 60px; height: 60px; } }
.cm-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-th-x { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55);
           color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.cm-new-ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.cm-new-ft > span { min-width: 0; }
.cm-new-ft .btn { flex: none; white-space: nowrap; }   /* 320 宽「分享」曾被挤成竖排（UI 审计 2026-10-21） */
.cpo { padding-bottom: 10px; }
.cpo-hd { display: flex; align-items: center; gap: 10px; }
.cpo-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.cpo-x { border: 0; background: none; color: var(--text3); font-size: 20px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.cpo-x:active { background: var(--bg2); }
.cpo-txt { white-space: pre-wrap; line-height: 1.7; margin: 8px 0 0 42px; font-size: 15px; word-break: break-word; }
.cpo-imgs { display: grid; gap: 4px; margin: 8px 0 0 42px; max-width: 360px; }
.cpo-imgs.n1 { grid-template-columns: minmax(0, 240px); }
.cpo-imgs.n2, .cpo-imgs.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 260px; }
.cpo-imgs.n3, .cpo-imgs.n9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cpo-img { padding: 0; border: 0; background: var(--bg2); border-radius: 6px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.cpo-imgs.n1 .cpo-img { aspect-ratio: auto; max-height: 300px; }
.cpo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpo-bar { display: flex; justify-content: flex-end; gap: 4px; margin-top: 6px; }
.cpo-act { border: 0; background: none; color: var(--text2); font: inherit; font-size: 13.5px; padding: 6px 10px; border-radius: var(--r-l); cursor: pointer; min-height: 34px; }
.cpo-act:active { background: var(--bg2); }
.cpo-act.on { color: var(--bad); }
.cpo-social { margin: 4px 0 0 42px; background: var(--card2); border-radius: var(--r-s); padding: 6px 10px; font-size: var(--fs-m); display: grid; gap: 4px; }
.cpo-likes { color: var(--brand); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.cpo-likes:last-child { border-bottom: 0; padding-bottom: 0; }
:root[data-theme="dark"] .cpo-likes { color: var(--brand2); }
.cpo-c { line-height: 1.55; cursor: pointer; border-radius: var(--r-xs); word-break: break-word; }
.cpo-c b { color: var(--brand); font-weight: 600; }
:root[data-theme="dark"] .cpo-c b { color: var(--brand2); }
.cpo-c:active { background: var(--bg2); }
/* 看大图：在 av-bg（92）之上、gshell（95）之下 */
.cb-lb { position: fixed; inset: 0; z-index: 93; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.cb-lb[hidden] { display: none; }
.cb-lb img { max-width: 100vw; max-height: 100vh; max-height: 100svh; object-fit: contain; }
.cb-lb-x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%;
           border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; cursor: pointer; }
.cb-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; background: rgba(255, 255, 255, .12);
             color: #fff; font-size: 30px; cursor: pointer; border-radius: 10px; }
.cb-lb-nav[hidden] { display: none; }
.cb-lb-nav.prev { left: 8px; } .cb-lb-nav.next { right: 8px; }
.cb-lb-n { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #ddd; }

/* —— 橱窗 —— */
.cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .cs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cs-it { display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; border-radius: var(--radius-s); overflow: hidden;
         background: var(--card); box-shadow: var(--shadow); font: inherit; color: var(--text); cursor: pointer; }
.cs-it:disabled { opacity: .55; cursor: default; }
.cs-pic { aspect-ratio: 1; background: var(--bg2); display: grid; place-items: center; font-size: 40px; }
.cs-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-nm { padding: 8px 10px 0; font-size: var(--fs-m); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-pr { padding: 4px 10px 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.cs-pr b { color: var(--brand); font-size: var(--fs-l); }
:root[data-theme="dark"] .cs-pr b, :root[data-theme="dark"] .cs-buy-pr b { color: var(--brand2); }
.cs-orders { padding: 2px 14px; }
.cs-o, .cs-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.cs-o + .cs-o, .cs-row + .cs-row { border-top: 1px dashed var(--line); }
.cs-o .grow, .cs-row .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-row { padding-left: 2px; }
.cs-th { width: 52px; height: 52px; border-radius: 10px; background: var(--bg2); display: grid; place-items: center; font-size: 24px; overflow: hidden; flex: none; }
.cs-th.sm { width: 40px; height: 40px; font-size: var(--fs-xl); }
.cs-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-ord-hd { display: flex; align-items: center; gap: 8px; }
.cs-kv { display: flex; gap: 10px; font-size: var(--fs-m); margin-top: 4px; }
.cs-kv > span:first-child { color: var(--text3); min-width: 64px; flex: none; }
.cs-big { margin: -4px -4px 10px; border-radius: var(--r-m); overflow: hidden; background: var(--bg2); max-height: 42vh; display: flex; justify-content: center; }
.cs-big[hidden] { display: none; }
.cs-big img { max-width: 100%; max-height: 42vh; object-fit: contain; }
.cs-buy-pr { margin: -2px 0 6px; }
.cs-buy-pr b { color: var(--brand); font-size: 20px; }
.cs-brief { white-space: pre-wrap; color: var(--text2); font-size: var(--fs-m); margin: 0 0 12px; }
.cs-ed-img { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
/* 橱窗分享（2026-10-25）：卡片＝点开看详情的一块＋跳去那家 App 的按钮；没传图的按平台品牌色出色块 */
.cs-it { position: relative; cursor: default; }
.cs-hit { display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.cs-pic { position: relative; width: 100%; }
.cs-brand { width: 100%; height: 100%; display: grid; place-items: center; font-size: 20px; font-weight: 700; letter-spacing: 1px; padding: 8px; text-align: center; }
.cs-chip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
           font-size: 11.5px; line-height: 1; font-weight: 600; padding: 4px 7px; border-radius: var(--r-pill); background: var(--bg2); color: var(--text2); }
.cs-pic .cs-chip { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.cs-br { font-size: 12.5px; color: var(--text3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-pr .cs-br:only-child { flex: 1; }
.cs-go { margin: auto 10px 10px; padding: 8px 10px; border: 0; border-radius: var(--r-pill); background: var(--brand); color: #fff; font: inherit;
         font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-go:active { filter: brightness(.92); }

/* —— 圈主管理后台（电脑上宽屏两栏、手机上一栏，导航变成横滑的一排） —— */
.app:has(.cw), .app:has(.cw-login) { max-width: 1240px; }
.cw-login { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; }
.cw-login-card { width: 100%; max-width: 440px; padding: 24px; }
.cw-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cw-brand img { border-radius: 10px; }
.cw-brand > span { display: flex; flex-direction: column; min-width: 0; }
.cw-brand b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-steps { margin: 0 0 16px 18px; padding: 0; color: var(--text2); font-size: var(--fs-m); line-height: 1.8; }
#cw-login { display: grid; gap: 10px; }
.cw-code { font-size: 24px; letter-spacing: .2em; text-align: center; font-family: var(--mono, ui-monospace, monospace); text-transform: uppercase; }
.cw-pick { display: grid; gap: 8px; }
.cw-pick-it { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--text); }
.cw-pick-it b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-pick-it.dim { opacity: .65; }
.cw { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }
.cw-side { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; gap: 10px; padding: 18px 12px;
           border-right: 1px solid var(--line); background: var(--card2); }
.cw-nav { display: flex; flex-direction: column; gap: 2px; }
.cw-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text2); font-size: 14.5px; }
.cw-nav a:hover { background: var(--bg2); }
.cw-nav a.on { background: var(--card); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.cw-nav a.dim { opacity: .6; }
.cw-nav a .cb-num { margin-left: auto; }
.cw-side-ft { margin-top: auto; }
.cw-main { padding: 20px 24px 40px; min-width: 0; }
.cw-h { font-size: var(--fs-2xl); margin: 2px 0 16px; display: flex; align-items: baseline; gap: 10px; }
.cw-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cw-kpi { background: var(--card); border-radius: var(--radius-s); box-shadow: var(--shadow); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.cw-kpi span { font-size: 12.5px; color: var(--text3); }
.cw-kpi b { font-size: 24px; font-variant-numeric: tabular-nums; }
.cw-kpi b small { font-size: var(--fs-sm); color: var(--text3); font-weight: 400; }
.cw-meter { display: block; height: 5px; border-radius: 3px; background: var(--bg2); overflow: hidden; }
.cw-meter > i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.cw-bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 18px; }
.cw-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; min-width: 0; }
.cw-bar i { display: block; width: 100%; max-width: 28px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--brand);
            background: linear-gradient(180deg, var(--brand2), var(--brand)); }
.cw-bar span { font-size: var(--fs-xs); color: var(--text3); margin-top: 4px; }
.cw-bar em { position: absolute; top: 0; font-style: normal; font-size: var(--fs-xs); color: var(--text2); }
.cw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-chip { font-size: var(--fs-sm); padding: 4px 10px; border-radius: var(--r-pill); background: var(--bg2); color: var(--text3); }
.cw-chip.on { background: var(--good-bg); color: var(--good); }
.cw-code-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cw-code-card b { font-size: var(--fs-2xl); letter-spacing: .16em; font-family: var(--mono, ui-monospace, monospace); }
.cw-tools { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.cw-tools .input { width: auto; flex: 1; min-width: 160px; max-width: 320px; }
.cw-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cw-t { width: 100%; border-collapse: collapse; font-size: var(--fs-m); }
.cw-t th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--text3); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cw-t td { padding: 8px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.cw-t tr:last-child td { border-bottom: 0; }
.cw-t tbody tr:hover td { background: var(--card2); }
.cw-ops { white-space: nowrap; text-align: right; }
.cw-ops .btn + .btn { margin-left: 4px; }
.cw-who { display: inline-flex; align-items: center; gap: 8px; }
.cw-who .fr-av { width: 28px; height: 28px; font-size: var(--fs-sm); }
.btn.danger-t { color: var(--bad); }
.linkish { border: 0; background: none; color: var(--bad); font: inherit; font-size: var(--fs-s); cursor: pointer; padding: 0 2px; }
.cw-split { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 14px; align-items: start; }
.cw-split > .card { margin: 0; }
.cw-form { position: sticky; top: 16px; }
.cw-form-ft { display: flex; justify-content: flex-end; gap: 8px; }
.cw-li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.cw-li + .cw-li { border-top: 1px dashed var(--line); }
.cw-li .grow { min-width: 0; }
.cw-clip { color: var(--text2); font-size: var(--fs-m); white-space: pre-wrap; max-height: 4.8em; overflow: hidden; margin: 2px 0; word-break: break-word; }
.cw-thumbs { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0; }
.cw-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.cw-cmt { margin-top: 2px; }
/* 圈主后台的群发、圈助理、玄学运营（2026-10-25，cc_mods.html） */
.cm-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.cm-img { position: relative; }
.cm-img img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-s); display: block; }
.cm-img-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--text2); color: var(--card); font-size: var(--fs-m); line-height: 22px; padding: 0; }
.cm-qa { display: grid; gap: 4px; padding: 8px 0; border-top: 1px dashed var(--line); }
.cm-qa .btn { justify-self: end; }
.cm-tone { font-size: var(--fs-s); padding: 1px 8px; border-radius: 10px; background: var(--good-bg); color: var(--good); }
.cm-day .tiny { margin-top: 2px; }
.cw-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cw-feat { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cw-feat.on { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--good); }
@media (max-width: 860px) {
  .cw { grid-template-columns: minmax(0, 1fr); }     /* 1fr 的下限是内容宽：一排横滑的导航把整页撑到 900 多宽（手机上整页横向滚，10-18 圈子 UI 审计） */
  .cw-side { min-width: 0; }
  .cw-brand { padding-right: 104px; }                /* 右上角「回到 App／退出后台」是绝对定位，长圈名别钻到它底下 */
  .cw-side { position: sticky; top: 0; height: auto; z-index: 5; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px 6px;
             padding-top: max(10px, env(safe-area-inset-top)); gap: 6px; }
  .cw-brand { margin-bottom: 0; }
  .cw-nav { flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 4px; }
  .cw-nav::-webkit-scrollbar { display: none; }
  .cw-nav a { white-space: nowrap; padding: 7px 10px; font-size: 13.5px; flex: none; }
  .cw-side-ft { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 12px; margin: 0; }
  .cw-main { padding: 14px 16px 40px; }
  .cw-split { grid-template-columns: minmax(0, 1fr); }
  .cw-form { position: static; }
}

/* ===================== 圈子 UI 审计（2026-10-18）：只加圈子自己的类，公共类不改含义 ===================== */
/* 深色下 `.btn.ghost` 的规则（:root[data-theme=dark] .btn.ghost，0,4,0）盖掉了 .btn.danger-t 的红字——解散、移出、删除、取消订单在深色里和普通按钮一个颜色 */
:root[data-theme="dark"] .btn.ghost.danger-t { color: var(--bad); }
.btn.ghost.danger-t { border-color: var(--bad-bg); }
/* 列表里的圈名：一行省略，人数与角色跟在后面不被挤走（此前长圈名折成两行、人数掉到下一行） */
.dm-nm.cc-line { display: flex; align-items: center; gap: 4px; min-width: 0; }
.cc-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-line .cc-n, .cc-line .cc-tag { flex: none; }
.cc-inv b.cc-nm { display: block; }
.cc-apply { color: var(--gold-ink); }
.cc-invs { padding: 2px 14px; }
/* 「群聊与私聊 ＋ 建圈 · 入圈」右边那句字小，点的范围放大到 44 高 */
.cc-sec-act { float: right; display: inline-flex; align-items: center; min-height: 44px; margin: -14px -6px -14px 0; padding: 0 6px; color: var(--brand2); }
:root[data-theme="dark"] .cc-sec-act { color: var(--brand2); }
/* 填码入圈：输入框与按钮同高 */
.cc-code-row .input { height: 46px; letter-spacing: .08em; text-transform: uppercase; }
.cc-code-row .btn { flex: none; width: auto; height: 46px; padding: 0 18px; }
/* 抽屉里的表单：标签在上、框在下 */
.cc-sheet .cc-form > label:not(.cc-row) { display: grid; gap: 6px; }
.cc-sheet #cc-info:empty { display: none; }
.cc-sheet #cc-info { margin: -4px 0 10px; }
/* 头像单选：选中的那颗描主题色边（不只靠圆点） */
.cc-avs label { min-height: 40px; cursor: pointer; }
.cc-avs label:has(input:checked) { border-color: var(--brand); background: var(--bg2); }
.cc-avs input { accent-color: var(--brand); }
/* 圈里的开关用同一副拨动开关（与功能商城一致）；整行都能点 */
.cc-row { cursor: pointer; min-height: 48px; }
.cc-row .cb-switch input { width: 100%; height: 100%; }
.cc-row .cb-switch input:disabled + span { opacity: .6; }
/* 成员行右侧的两颗：浅底图标键，看上去 36、点的范围 44（此前 15 颗实心主题色 💬 一列排下来很吵） */
.cc-ib { position: relative; flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
         color: var(--text2); display: inline-grid; place-items: center; font-size: var(--fs-l); line-height: 1; cursor: pointer; text-decoration: none; padding: 0; }
.cc-ib::after { content: ""; position: absolute; inset: -4px; }
.cc-ib:active { background: var(--bg2); }
.cc-ib:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cc-mems .fr-it { gap: 8px; }
.cc-mems .fr-it .grow { flex: 1; }
.cc-mems.folded .cc-more-it { display: none; }
.cc-unfold { width: 100%; margin: 8px 0 10px; }
/* 邀请码那块：「重置邀请码」降成一句里的链接（此前孤零零一颗 ↻ 掉在第二行） */
.cc-link { border: 0; background: none; padding: 6px 2px; margin: -6px 0; font: inherit; color: var(--brand2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cc-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-radius: var(--r-xs); }
/* 退出／解散：单独一张卡、红字，说明在下面 */
.cc-danger { display: grid; gap: 8px; text-align: center; }
.cc-danger .btn { width: 100%; }
.cc-danger .tiny { margin: 0; }
/* 成员「⋯」抽屉：选项一列、取消在最后（素色字，不借 .btn.ghost） */
.cc-act-list { display: grid; gap: 8px; }
.cc-act-list .btn { width: 100%; }
.cc-cancel { display: block; width: 100%; min-height: 48px; margin-top: 6px; border: 0; background: transparent; color: var(--text2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
/* 朋友圈：赞、评论、⋯ 的点按范围到 40 */
.cpo-act { min-height: 40px; }
.cpo-x { width: 40px; height: 40px; }
.cpo-act:focus-visible, .cpo-x:focus-visible, .cpo-img:focus-visible, .cpo-c:focus-visible, .cm-add:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cm-only { text-align: center; }
/* 圈友朋友圈（2026-10-21）：分享框的工具条、「分享到」、链接卡、小视频 */
.cs-tools { display: flex; align-items: center; gap: 6px; margin: 10px 0 0 42px; flex-wrap: wrap; }
.cs-tool { border: 1px solid var(--line); background: var(--card2); color: var(--text2); font: inherit; font-size: 13.5px; padding: 6px 12px;
  border-radius: var(--r-l); min-height: 36px; cursor: pointer; }
.cs-tool:active { background: var(--bg2); }
.cs-count { margin-left: auto; text-align: right; }
.cs-tool .cs-count { margin-left: 3px; color: inherit; font-size: inherit; }   /* 「图片 2/9」：计数挂在图片键里（UI 审计 2026-10-21） */
.cs-link { position: relative; display: grid; gap: 6px; margin: 10px 0 0 42px; padding: 10px 48px 10px 10px; border-radius: 10px; background: var(--card2); }
.cs-link[hidden], .cs-vid[hidden], .cm-thumbs[hidden] { display: none; }
.cs-link .input { font-size: var(--fs-l); }
.cs-link-x { top: 4px; right: 4px; width: 40px; height: 40px; font-size: 20px; }   /* 同 .ak-x 的 40px 热区 */
.cs-vid { position: relative; margin: 10px 0 0 42px; width: 180px; max-width: calc(100% - 42px); border-radius: 10px; overflow: hidden; background: #000; }
.cs-vid video { display: block; width: 100%; max-height: 240px; object-fit: contain; }
.cs-to { margin: 12px 0 0 42px; }
.cs-to-hd { color: var(--text3); margin-bottom: 6px; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-chip { border: 1px solid var(--line); background: var(--card); color: var(--text2); font: inherit; font-size: 13.5px; padding: 6px 12px;
  border-radius: var(--r-pill); min-height: 36px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; white-space: nowrap; }
.cs-chip-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; }   /* 省略的是圈名，不是灰态原因（UI 审计 2026-10-21） */
.cs-chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.cs-chip.on::before { content: "\2713"; }
.cs-chip:disabled { cursor: not-allowed; color: var(--text3); background: var(--card2); }
.cs-why { flex: none; margin-left: 2px; }
.cs-tool:focus-visible, .cs-chip:focus-visible, .cpo-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cpo-circ { color: var(--text2); text-decoration: underline; text-underline-offset: 2px; }
.cpo-link { display: flex; align-items: center; gap: 10px; margin: 8px 0 0 42px; padding: 10px 12px; border-radius: 10px; background: var(--card2);
  color: var(--text); text-decoration: none; max-width: 420px; }
.cpo-link:active { background: var(--bg2); }
.cpo-link-ico { font-size: 20px; flex: none; }
.cpo-link-tx { display: flex; flex-direction: column; min-width: 0; }
.cpo-link-tx b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpo-link-tx .tiny { color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpo-vid { position: relative; margin: 8px 0 0 42px; max-width: 260px; border-radius: var(--r-s); overflow: hidden; background: #000; }
.cpo-vid video { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.cpo-vid-t { position: absolute; right: 6px; top: 6px; font-size: 11.5px; color: #fff; background: rgba(0, 0, 0, .55); padding: 1px 6px; border-radius: var(--r-s); pointer-events: none; }
.cpo-also { margin: 6px 0 0 42px; color: var(--text3); }
.cm-all { display: block; text-align: center; margin: 14px 0 4px; color: var(--text3); text-decoration: none; }
/* 橱窗：售罄的盖一条「已售罄」，排在最后 */
.cs-pic { position: relative; }
.cs-sold { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 0; text-align: center; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .1em;
           background: rgba(0, 0, 0, .5); color: #fff; }
.cs-it:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cb-stepper .btn.sm { width: 40px; height: 40px; padding: 0; font-size: var(--fs-xl); }
.cs-sum { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 2px 12px; }
.cs-sum b { font-size: 20px; color: var(--brand); }
:root[data-theme="dark"] .cs-sum b { color: var(--brand2); }
/* 群聊「⋯」抽屉顶上写一下是哪个圈 */
.cc-menu-hd { margin: -2px 0 10px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 圈子列表里「N 份申请 · 去审批」那一行（管理员）：挂在那个圈下面，点了直达资料页的申请段 */
.cc-apply-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; margin: -6px 0 4px 46px;
                padding: 0 10px; border-radius: 10px; background: var(--gold-soft); color: var(--text); text-decoration: none; font-size: var(--fs-sm); }
.dm-th + .cc-apply-row { border-top: 0; }
.cc-apply { color: var(--gold-ink); font-weight: 600; }
/* 后台成员表在手机上横滑：名字、日期不逐字折行 */
.cw-who, .cw-t td.tiny { white-space: nowrap; }
.cw-who { max-width: 14em; overflow: hidden; text-overflow: ellipsis; }
/* 圈名、昵称那两行：「保存」与输入框底边对齐 */
.cc-row.cc-inrow { align-items: flex-end; }
.cc-apply-row:last-child { margin-bottom: 10px; }

/* 单人禁言的标记（2026-10-18）：比普通标签多一点警示色 */
.cc-tag-warn { color: var(--bad); border-color: currentColor; }
#dm-act [hidden] { display: none; }            /* .btn 的 display 会盖掉 hidden（撤回此前一直露着，2026-10-18） */
/* 举报处理（admin，2026-10-18）：举报那一刻的内容摘录 */
.rp-snap { margin: 6px 0; padding: 8px 10px; border-left: 3px solid var(--bad); background: var(--card2); border-radius: 6px; white-space: pre-wrap; word-break: break-word; }
/* 小知在手机浏览器里做的步骤（build 24） */
.ck-steps { margin: 6px 0 2px; font-size: var(--fs-sm); color: var(--text2); }
.ck-steps summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.ck-steps ol { margin: 4px 0 6px; padding-left: 22px; }
.ck-steps li.u { color: var(--bad); }
#vault-card[hidden], #vault-none[hidden], #bg-card[hidden] { display: none; }   /* 小知的密码本（build 24）、允许后台运行（build 34）：没有插件不出 */
/* 错误日志（admin，2026-10-18） */
.dg-it summary { cursor: pointer; list-style: none; }
.dg-it summary::-webkit-details-marker { display: none; }
.dg-new { color: var(--bad); border-color: currentColor; }
.dg-msg { word-break: break-word; margin: 4px 0; }
.dg-stack { margin: 8px 0 0; padding: 8px; background: var(--card2); border-radius: var(--r-s); font-size: var(--fs-xs); line-height: 1.45; white-space: pre-wrap; word-break: break-all; max-height: 320px; overflow: auto; }
/* admin 小知使用统计、圈子统计（2026-10-18）：数字格 */
.xs-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 4px 0 10px; }
.xs-kpis > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--r-m); background: var(--bg2); }
.xs-kpis b { font-size: 17px; }
.xs-kpis span { font-size: var(--fs-s); color: var(--text3); }
/* 私聊送达小标（2026-10-18 用户「被接收时显示已发送图标，已读显示已读图标，七天没接收被删显示发送失败图标」）与一次几张图 */
.dm-m.mine .dm-st { align-self: flex-end; margin: 2px 4px 0 0; font-size: var(--fs-xs); line-height: 1; color: var(--text3); letter-spacing: -1px; }
.dm-m.mine .dm-st[data-st="read"] { color: var(--brand); }
.dm-m.mine .dm-st[data-st="fail"] { color: var(--bad); letter-spacing: 0; }
.dm-imgs.multi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
.dm-imgs.multi .ck-img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; max-height: none; }
/* 点对点附件（2026-10-26，D59）：还没收到的图放小缩图（模糊一点）＋状态；语音、文件下面一行状态 */
.dm-pph { position: relative; display: block; cursor: pointer; }
.dm-pph .dm-pth { filter: blur(2px); opacity: .85; min-width: 96px; min-height: 72px; background: var(--line, rgba(127,127,127,.2)); object-fit: cover; }
.dm-imgs.multi .dm-pph .dm-pth { width: 100%; aspect-ratio: 1; margin: 0; }
.dm-pph .dm-ps { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; text-align: center; }
.dm-ps { display: block; margin-top: 2px; opacity: .85; }
.dm-ps[hidden] { display: none; }

.app.no-tab .dm-pol { bottom: calc(env(safe-area-inset-bottom) + 84px); }
body.has-akbar .app.no-tab .dm-pol { bottom: calc(env(safe-area-inset-bottom) + 16px + var(--bar-h, 120px)); }

/* ── 聊天第三批（2026-10-21）：@人、引用、表情回应、文件、查找、圈子头像、到期只能看 ── */
.dm-at { color: var(--brand); font-weight: 600; }
.ck-bubble .dm-at { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }   /* 自己的气泡是主题色底 */
.dm-m.at-me .ck-obub { box-shadow: inset 3px 0 0 var(--brand); }
.dm-q { display: block; max-width: 80%; margin: 4px 2px 0; padding: 5px 9px; border: 0; border-radius: var(--r-s); background: var(--bg2); color: var(--text2);
  font: inherit; font-size: 12.5px; line-height: 1.45; text-align: left; cursor: pointer; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.dm-m.mine .dm-q { align-self: flex-end; }
.dm-q b, .dm-rep b { color: var(--text); }   /* 引用里的人名（UI 审计 2026-10-21） */
.dm-rx { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 2px 0; padding: 4px 0; max-width: 80%; }
.dm-m.mine .dm-rx { justify-content: flex-end; }
.dm-rx button { min-height: 32px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); color: var(--text2, var(--text)); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.dm-rx button.on { border-color: var(--brand); color: var(--brand); }
.dm-rxpick { display: flex; justify-content: space-between; gap: 4px; margin: 0 0 10px; }
.dm-rxpick button { flex: 1; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card2); font-size: var(--fs-2xl); cursor: pointer; }
.dm-rxpick button.on { border-color: var(--brand); background: var(--bg2); }
.dm-fb { padding: 0 !important; }
.dm-file { display: flex; align-items: center; gap: 10px; min-width: 180px; max-width: 260px; padding: 10px 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dm-fic { font-size: 26px; flex: none; }
.dm-fn { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dm-fn b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-fn .tiny { color: inherit; opacity: .75; }
.dm-rep { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 6px 6px 6px 12px; border-radius: var(--r-m); background: var(--bg2); font-size: var(--fs-sm); color: var(--text2, var(--text)); }
.dm-rep[hidden] { display: none; }
.dm-rep .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-rep .ak-x { flex: none; width: 30px; height: 30px; }
@keyframes dm-flash { 0%, 60% { background: var(--bg2); } 100% { background: transparent; } }
.dm-m.dm-flash { animation: dm-flash 1.6s ease-out; border-radius: var(--r-m); }
.dm-latest { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 38px + var(--bar-h, 120px)); z-index: 32; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.dm-gap .dm-msgs { padding-bottom: 44px; }   /* 看着搜到的那一段时，最后一条别被「回到最新」浮钮盖住 */
.dm-find .input { width: 100%; }
.dm-fr { margin-top: 8px; max-height: 60vh; overflow-y: auto; }
.dm-fr .empty { padding: 18px 0; text-align: center; }
.dm-fh { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 9px 2px; border: 0; border-bottom: 1px dashed var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.dm-fht { font-size: var(--fs-m); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.dm-fh mark, .ms-hit mark { background: none; color: var(--brand); font-weight: 700; }
.dm-atl { max-height: 60vh; overflow-y: auto; }
.dm-ath { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 2px; border: 0; border-bottom: 1px dashed var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ms-search { margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.ms-search[hidden] { display: none; }
.ms-search .input { flex: 1; min-width: 0; font-size: var(--fs-l); }
.ms-s-x { border: 0; background: none; color: var(--brand); font: inherit; font-size: var(--fs-m); padding: 0 4px; min-height: 44px; cursor: pointer; }
:root[data-theme="dark"] .ms-s-x { color: var(--brand2); }
/* 群聊与私聊那一行右边的三颗图标键（2026-10-21）：搜索、圈友朋友圈、建圈入圈 */
.sec-title.ms-bar { display: flex; align-items: center; margin-top: 12px; margin-bottom: 6px; }
.ms-bar .grow { flex: 1; }
.ms-acts { display: inline-flex; gap: 4px; margin-right: -6px; }
.ms-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: none; color: var(--text2); cursor: pointer; padding: 0; }
.ms-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ms-ic:active, .ms-ic.on { background: var(--bg2); color: var(--brand); }
:root[data-theme="dark"] .ms-ic:active, :root[data-theme="dark"] .ms-ic.on { color: var(--brand2); }
.ms-ic.on { background: var(--bg2); background: color-mix(in srgb, var(--brand) 14%, transparent); }
.ms-ic:focus-visible, .ms-s-x:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ms-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--bg); }
:root[data-theme="dark"] .ms-dot { background: var(--brand2); }
.ms-res[hidden], .dm-threads[hidden] { display: none; }
.ms-res .empty { padding: 16px 0; text-align: center; }
.ms-at { color: var(--bad); margin-right: 4px; }
/* 到期会员那句（对话页、圈子页同一套）：贴底、字色 --text2、「续费」是 .btn.sm（UI 审计 2026-10-21） */
.dm-lapsed { position: sticky; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 8px 12px; line-height: 1.6; color: var(--text2); text-align: center; }
.card.dm-lapsed { padding: 12px 16px; }
img.cc-logo { border-radius: 10px; }
.cc-hd-logo { width: 26px; height: 26px; font-size: var(--fs-sm); margin-right: 8px; vertical-align: middle; display: inline-grid; }
/* 输入栏 ⊕ 的格子、位置气泡、地图全屏层（2026-10-21，js/locmap.js）。.lm-bg 的 z-index 94：在 cb-lb 93 之上、gshell 95 之下 */
.dm-plus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 6px 4px 14px; }
@media (max-width: 340px) { .dm-plus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dm-pt { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: var(--text2); font: inherit; font-size: var(--fs-s); line-height: 1.25;
  padding: 8px 0; border-radius: var(--radius-s); cursor: pointer; }
.dm-pt-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); display: flex; align-items: center;
  justify-content: center; font-size: 24px; }
.dm-pt:active .dm-pt-ic { background: var(--bg2); }
.dm-pt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dm-loc { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; padding: 2px 0;
  cursor: pointer; min-width: 180px; max-width: 240px; }
.dm-loc-ic { font-size: 26px; flex: none; }
.dm-loc .dm-fn { display: flex; flex-direction: column; min-width: 0; }
.dm-loc .dm-fn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-loc .tiny { opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-bg { position: fixed; inset: 0; z-index: 94; background: var(--bg); display: flex; flex-direction: column; }
.lm-hd { display: flex; align-items: center; gap: 8px; padding: max(8px, env(safe-area-inset-top)) 12px 8px; border-bottom: 1px solid var(--line); background: var(--card); }
.lm-x { width: 40px; height: 40px; border: 0; background: none; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; border-radius: 50%; }
.lm-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-l); }
.lm-map { position: relative; flex: 1; min-height: 200px; background: var(--bg2); }
.lm-ft { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); display: grid; gap: 8px;
  max-height: 46vh; overflow: auto; }
.lm-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.lm-acts .btn { flex: 1; min-width: 120px; white-space: nowrap; }
@media (max-width: 340px) { .lm-acts { flex-direction: column; } }
.lm-name { font-size: var(--fs-l); }
.lm-place { font-size: 15px; }
.lm-center { position: absolute; left: 50%; top: 50%; z-index: 500; width: 28px; height: 40px; margin: -40px 0 0 -14px; pointer-events: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 40'%3E%3Cpath d='M14 1C7 1 1.5 6.5 1.5 13.3 1.5 23 14 39 14 39s12.5-16 12.5-25.7C26.5 6.5 21 1 14 1z' fill='%23E25A47' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='14' cy='13.5' r='4.5' fill='%23fff'/%3E%3C/svg%3E"); }
.lm-me { position: absolute; right: 12px; bottom: 128px; z-index: 500; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--brand); font-size: 20px; box-shadow: var(--shadow); cursor: pointer; }
.lm-ic { background: none; border: 0; }
.lm-pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.lm-pin-dot { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--bad); border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3); order: 2; }
.lm-pin.me .lm-pin-dot { background: #2f80ed; }
.lm-pin-lb { order: 1; margin-bottom: 4px; padding: 2px 8px; border-radius: 10px; background: var(--card); color: var(--text); font-size: var(--fs-s); white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25); max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.lm-livebar { display: flex; align-items: center; gap: 10px; }
.lm-livebar .grow { flex: 1; }
.lm-people { display: flex; flex-wrap: wrap; gap: 6px; }
.lm-person { border: 1px solid var(--line); background: var(--card2); color: var(--text2); font: inherit; font-size: 12.5px; padding: 4px 10px; border-radius: var(--r-pill); cursor: pointer; min-height: 32px; }
.lm-mins { display: grid; gap: 6px; }
.lm-note { line-height: 1.5; }
.leaflet-container { font: inherit; background: var(--bg2); }
:root[data-theme="dark"] .leaflet-tile-pane { filter: brightness(.78) contrast(1.08) saturate(.85); }
/* 红包、零钱、通话、来电条（2026-10-21）。.rp-bg 94（与位置地图同一层，不会同时开）；.call-ring 99（toast 100 之下）；通话页自己铺满 */
.dm-rpb, .rp-bg { --rp-red: #E8582B; --rp-red2: #C9402A; --rp-orange: #F7A23B; --rp-gold: #F4C46A; --rp-gold-ink: #8A3A12; --rp-cream: #FFE2C4; }   /* 红包色不随主题 */
.dm-rpb { padding: 0 !important; background: none !important; border: 0 !important; }
.dm-rp { display: flex; align-items: center; gap: 10px; width: 220px; padding: 12px 14px; border: 0; border-radius: 12px 12px 0 0; cursor: pointer; text-align: left;
  background: #F08A2C; background: linear-gradient(135deg, var(--rp-orange), var(--rp-red)); color: #FFF6E5; font: inherit; }
.dm-rp-ic { font-size: 30px; flex: none; }
.dm-rp .dm-fn b { color: #FFF; }
.dm-rp .dm-fn .tiny { opacity: 1; color: var(--rp-cream); }   /* 「点开领取」别再半透明（UI 审计 2026-10-21） */
.dm-rp.done { background: #C9B8A8; background: linear-gradient(135deg, #D4C2B0, #B89E86); color: #FFF8EE; }   /* 已领／领完／过期：灰卡（审计 2026-10-21） */
.dm-rp-ft { width: 220px; box-sizing: border-box; padding: 4px 14px; border-radius: 0 0 12px 12px; background: var(--card); color: var(--text3); border: 1px solid var(--line); border-top: 0; }
.dm-cb { font-size: var(--fs-m); }
/* 约时间的邀约卡与结果卡（2026-10-25 P2，js/meet.js） */
.dm-mt { width: 240px; max-width: 78vw; box-sizing: border-box; padding: 12px 14px !important; background: var(--card) !important; color: var(--text) !important;
         border: 1px solid var(--line); border-radius: var(--r-m); }
.dm-mt-h { display: flex; align-items: center; gap: 8px; }
.dm-mt-h b { overflow-wrap: anywhere; }
.dm-mt-ic { font-size: 20px; flex: none; }
.dm-mt-sub { color: var(--text3); margin-top: 2px; }
.dm-mt-st { margin-top: 8px; font-size: 13.5px; color: var(--text2); }
.dm-mt-slots { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.dm-mt-slot { display: block; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); font-size: var(--fs-m); text-align: left; background: transparent; color: var(--text); }
button.dm-mt-slot { cursor: pointer; border-color: var(--brand2); color: var(--brand2); }
.dm-mt-slot.on { border-color: var(--brand2); color: var(--brand2); font-weight: 600; }
.dm-mt-row { margin-top: 8px; }
.dm-mt-nb { display: flex; gap: 6px; }
.dm-mt-nb[hidden] { display: none; }
.dm-mt-in { flex: 1; min-width: 0; height: 34px; font-size: var(--fs-l); }
.dm-mt-note { margin-top: 6px; padding: 6px 8px; border-radius: var(--r-s); background: var(--bg2, rgba(0, 0, 0, .04)); font-size: var(--fs-m); overflow-wrap: anywhere; }
.dm-mt-cal, .dm-mt-x { margin-top: 10px; }
.rp-bg { position: fixed; inset: 0; z-index: 94; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rp-card { position: relative; width: 100%; max-width: 340px; max-height: 90vh; overflow: auto; border-radius: 18px; padding: 20px 18px 18px; background: var(--card);
  box-shadow: var(--shadow); display: grid; gap: 10px; }
.rp-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: none; color: var(--text3); font-size: var(--fs-2xl); cursor: pointer; border-radius: 50%; }
.rp-h { margin: 0; font-size: 17px; text-align: center; }
.rp-tabs { display: flex; gap: 6px; justify-content: center; }
.rp-tab { border: 1px solid var(--line); background: var(--card2); color: var(--text2); font: inherit; font-size: 13.5px; padding: 6px 14px; border-radius: var(--r-pill); cursor: pointer; min-height: 36px; }
.rp-tab.on { background: var(--rp-red); border-color: var(--rp-red); color: #fff; }
.rp-lab { display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--text2); }
.rp-in { font-size: var(--fs-l); }
.rp-sum { text-align: center; font-size: 30px; font-weight: 700; letter-spacing: .02em; }
.rp-bal { text-align: center; }
.rp-go { background: var(--rp-red); border-color: var(--rp-red); color: #fff; }
/* 深色主题也是红包红：与 .btn 的深色主按钮规则同特异度、写在后面盖过它（那条规则的排除表有测试钉着，别往里加） */
:root[data-theme="dark"] .btn.rp-go:not(.ghost):not(.danger):not(.gold) { background: var(--rp-red); color: #fff; }
.rp-open { background: linear-gradient(180deg, var(--rp-red), var(--rp-red2)); color: #FFF3E0; text-align: center; padding-top: 28px; min-height: 360px; align-content: start; }
.rp-open .rp-x { color: var(--rp-cream); }
.rp-from { font-size: 15px; opacity: .9; }
.rp-greet { font-size: 20px; font-weight: 600; margin: 8px 0 18px; word-break: break-word; }
.rp-kai { justify-self: center; width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--rp-gold); color: var(--rp-gold-ink); font-size: 38px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25); cursor: pointer; font-family: var(--serif); }
.rp-kai.spin { animation: rp-spin .45s linear infinite; }
@keyframes rp-spin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .rp-kai.spin { animation: none; opacity: .7; } }
.rp-got { font-size: 34px; font-weight: 700; color: #FFE7A3; }
.rp-state { font-size: var(--fs-l); margin: 8px 0; }
.rp-open .muted, .rp-open .tiny { color: var(--rp-cream); }
.rp-list { display: grid; gap: 2px; text-align: left; background: rgba(255, 255, 255, .1); border-radius: 10px; padding: 6px 10px; }
.rp-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-m); }
.rp-row:last-child { border-bottom: 0; }
.rp-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-best { font-size: 11.5px; background: var(--rp-gold); color: var(--rp-gold-ink); border-radius: var(--r-s); padding: 1px 6px; }
.rp-wl { color: #FFE7A3; }
.wl-bal { text-align: center; }
.wl-num { font-size: 36px; font-weight: 700; margin: 6px 0 12px; }
.wl-acts { display: flex; gap: 10px; justify-content: center; margin-bottom: 8px; }
.wl-acts .btn { min-width: 110px; }
.wl-acts .btn.on { box-shadow: 0 0 0 3px var(--bg2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }   /* 展开着哪一块（UI 审计 2026-10-21） */
.wl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.wl-form { display: grid; gap: 8px; }
.wl-form .input { font-size: var(--fs-l); }
.wl-form [hidden], #wl-top[hidden], #wl-wd[hidden] { display: none; }
.wl-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wl-row:last-child { border-bottom: 0; }
.wl-row .grow { flex: 1; min-width: 0; }
.wl-in { color: var(--good); }
.wl-out { color: var(--text); }
/* 来电（2026-10-25 起整屏，同微信）：深底、头像大字、底下一红一绿两颗圆键；仍是 99（toast 100 之下） */
.call-ring { --good: #2E9E6B; --bad: #E25A47; --good-ink: #fff; --bad-ink: #fff;
  position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; justify-content: space-between;
  background: #14161d; color: #fff; padding: max(72px, calc(env(safe-area-inset-top) + 48px)) 16px max(40px, calc(env(safe-area-inset-bottom) + 24px)); }
.call-ring[hidden] { display: none; }
.call-ring-top { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.call-ring-ic { font-size: 56px; width: 104px; height: 104px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center;
  animation: call-pulse 1.6s ease-in-out infinite; }
@keyframes call-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(46, 158, 107, .5); } 50% { box-shadow: 0 0 0 18px rgba(46, 158, 107, 0); } }
@media (prefers-reduced-motion: reduce) { .call-ring-ic { animation: none; } }
#call-ring-n { font-size: 24px; font-weight: 600; }
#call-ring-k { font-size: 15px; opacity: .85; }
#call-ring-g { opacity: .7; }
.call-ring-bar { display: flex; justify-content: space-around; gap: 24px; }
.call-ring .call-b { width: 84px; }
.call-ring .call-b > span:first-child { width: 68px; height: 68px; font-size: 28px; }
.call { --good: #2E9E6B; --bad: #E25A47; --good-ink: #fff; --bad-ink: #fff;   /* 通话页恒深底，不随主题：钉住浅色主题的 --good/--bad */
  position: fixed; inset: 0; background: #14161d; color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; z-index: 1; }
.call-rv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.call-lv { position: absolute; right: 12px; top: max(12px, env(safe-area-inset-top)); width: 28vw; max-width: 140px; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r-m); background: #222; z-index: 2; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); transform: scaleX(-1); }
.call-top { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: max(60px, calc(env(safe-area-inset-top) + 40px)) 16px 0; text-align: center; }
.call.video.live-on .call-top { padding-top: 16px; padding-bottom: 24px; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent); }
.call-av { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #2e3240; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.call.video .call-av { width: 64px; height: 64px; font-size: 28px; }
.call-name { font-size: var(--fs-2xl); font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.call-st, .call-tm { font-size: var(--fs-m); opacity: .85; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.call-sas { background: rgba(255, 255, 255, .14); border-radius: 10px; padding: 4px 10px; max-width: 300px; }
.call-sas[hidden] { display: none; }
.call-bar { position: relative; z-index: 1; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 16px 16px max(28px, env(safe-area-inset-bottom)); }
.call-b { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 68px; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; }
.call-b > span:first-child { width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.call-b.off > span:first-child { background: #fff; color: #111; }
.call-ok > span:first-child { background: var(--good); color: var(--good-ink); }
.call-no > span:first-child { background: var(--bad); color: var(--bad-ink); }
@media (max-width: 359px) { .call-bar { gap: 10px; } .call-b { width: 62px; } .call-b > span:first-child { width: 54px; height: 54px; } }
.call-b:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: var(--r-m); }
.call:not(.ringing) #call-accept { display: none; }
.call.ringing #call-mic, .call.ringing #call-cam, .call.ringing #call-flip { display: none; }
.call.ended .call-bar { opacity: .4; pointer-events: none; }
.call.peer-cam-off .call-rv { opacity: 0; }
/* 关闭视频（2026-11-08）：自己关了不留黑框；对方关了像语音通话那样露大头像 */
.call.cam-off .call-lv { display: none; }
.call.video.peer-cam-off .call-av { width: 96px; height: 96px; font-size: 40px; }
.call.video.live-on.peer-cam-off .call-top { padding-top: max(60px, calc(env(safe-area-inset-top) + 40px)); background: none; }

/* 圈子二维码与扫一扫（2026-10-25，js/circleqr.js、js/scan.js）。二维码图恒白底（深色主题下也要扫得出）；扫一扫是整页、不叠层 */
.ci-qr-pic { position: relative; display: flex; justify-content: center; margin: 4px 0 12px; }
.ci-qr-pic img { width: min(300px, 78vw); height: auto; border-radius: 14px; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .12); }
.ci-qr-skel { display: none; width: min(300px, 78vw); height: min(408px, 106vw); border-radius: 14px; margin: 0; }
.ci-qr.loading .ci-qr-pic img { display: none; }
.ci-qr.loading .ci-qr-skel { display: block; }
.ci-qr-btns { display: flex; gap: 8px; margin-bottom: 8px; }
.ci-qr-btns .btn { flex: 1; min-width: 0; padding-left: 6px; padding-right: 6px; }
.scan [hidden] { display: none; }
.scan-view { position: relative; width: 100%; max-width: 420px; margin: 8px auto 0; aspect-ratio: 3 / 4; border-radius: var(--r-l); overflow: hidden; background: #000; }
.scan-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan.nocam .scan-view { aspect-ratio: 4 / 3; opacity: .5; }
.scan-frame { position: absolute; inset: 18% 14%; border: 2px solid rgba(255, 255, 255, .85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); overflow: hidden; }
.scan-frame i { position: absolute; left: 6%; right: 6%; top: 0; height: 2px; background: var(--brand, #F26B3A); box-shadow: 0 0 8px var(--brand, #F26B3A); animation: scanline 2.2s ease-in-out infinite; }
@keyframes scanline { 0% { top: 4%; } 50% { top: 94%; } 100% { top: 4%; } }
@media (prefers-reduced-motion: reduce) { .scan-frame i { animation: none; top: 50%; } }
.scan-st { text-align: center; min-height: 1.5em; margin: 12px 0 8px; }
.scan-pick { display: flex; width: 100%; max-width: 420px; margin: 0 auto 10px; justify-content: center; cursor: pointer; }

/* 群里的多人通话（2026-10-25，gcall.html／js/gcall.js）：沿用 .call 的深底与圆键；格子按人数排（1–4 人两列，更多三列）。
   .hide-all＝本机不显示别人的画面（只剩头像，声音照常）；.hide-self＝藏起自己那一格；.cam-off 的格子露头像；邀请层 .gc-pick-bg 94（与红包、位置地图同层，不同时开）
   ⚠️格子那几样（.gc-t／.gc-av／.gc-v／.gc-nm／.gc-ts）一律挂在 .gcall 下（2026-11-04）：游戏卡片（11-02）也用 gc- 前缀、.gc-av／.gc-nm 同名，
   此前它排在后面把通话页的头像压成 30px 金色小圆、名字截到 72px，通话页的 .gc-t 也漏进游戏卡片的标题——两边各自挂在自己的根下 */
.gcall .gc-top { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: max(24px, calc(env(safe-area-inset-top) + 12px)) 16px 8px; text-align: center; }
.gc-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px; align-content: center; overflow-y: auto; }
.gc-grid[data-n="1"] { grid-template-columns: 1fr; }
.gc-grid[data-n="many"] { grid-template-columns: 1fr 1fr 1fr; }
.gcall .gc-t { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; background: #232734; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gcall.voice .gc-t { aspect-ratio: 1 / 1; }
.gcall.video .gc-grid { grid-auto-rows: minmax(0, 1fr); align-content: stretch; }   /* 视频格子按行均分剩下的高度，别溢出、别互相压 */
.gcall.video .gc-t { aspect-ratio: auto; min-height: 110px; }
.gcall .gc-av { width: 56%; max-width: 96px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #2e3240; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.gcall .gc-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.gcall audio.gc-v { opacity: 0; pointer-events: none; }
.gcall .gc-t.me .gc-v { transform: scaleX(-1); }
.gcall .gc-t.cam-off .gc-v, .gcall.hide-all .gc-t:not(.me) .gc-v { opacity: 0; }
.gcall.hide-self .gc-t.me { display: none; }
.gcall .gc-nm { position: absolute; left: 8px; bottom: 8px; right: 8px; font-size: var(--fs-sm); text-shadow: 0 1px 3px rgba(0, 0, 0, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.gcall .gc-t.mic-off .gc-nm::before { content: "\1F507 "; }
.gcall .gc-ts { position: absolute; top: 8px; left: 8px; right: 8px; text-align: left; opacity: .85; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.gcall .gc-t.pend { opacity: .55; }
.gcall .gc-in-bar, .gcall.pre .gc-pre-bar { display: flex; }
.gcall.pre .gc-in-bar, .gcall:not(.pre) .gc-pre-bar { display: none; }
.gcall .call-bar { gap: 10px; }
.gcall .call-b { width: 62px; }
.gcall .call-b > span:first-child { width: 52px; height: 52px; font-size: var(--fs-2xl); }
/* 视频通话那排有 7 颗键，一排放不下：宽一点的屏是 5＋2、窄的是 4＋3，看着错位（2026-11-04）——一排至多 4 颗，恒为 4＋3、居中 */
.gcall.video .gc-in-bar { max-width: calc(4 * 62px + 3 * 10px + 32px); margin-left: auto; margin-right: auto; }
.gcall .call-b > span:first-child { line-height: 1; }
.gc-pick-bg { position: fixed; inset: 0; z-index: 94; background: rgba(0, 0, 0, .5); display: flex; align-items: flex-end; }
.gc-pick-bg[hidden] { display: none; }
.gc-pick { width: 100%; max-height: 75vh; max-height: 75svh; overflow-y: auto; background: var(--card); color: var(--text); border-radius: 18px 18px 0 0;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom)); }
.gc-pl { display: flex; flex-direction: column; margin: 8px 0 12px; }
.gc-pi { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); min-height: 44px; }
.gc-pi.busy { opacity: .5; }
.gc-pi input { width: 20px; height: 20px; }
.gc-pbtns { display: flex; gap: 10px; }
.gc-pbtns .btn { flex: 1; }
/* 群聊里正在进行的通话（dm.html 顶上，与公告横幅同样式一条） */
.gc-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 10px 12px; border-radius: var(--r-m); background: var(--good-soft, rgba(46, 158, 107, .12));
  color: var(--good); text-decoration: none; font-size: var(--fs-m); }
.gc-bar[hidden] { display: none; }
.gc-bar .grow { flex: 1; min-width: 0; }

/* 「圈子」页头右边那几颗图标键（2026-10-25 由「群聊与私聊」那一行挪上来） */
.head .ms-acts { flex: none; margin-left: 4px; }
@media (max-width: 359px) { .head .ms-ic { width: 36px; } }

/* 我的推广（2026-10-25，referral.html） */
.rf-big { font-size: 30px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.rf-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rf-sum .card { margin: 0; }
.rf-n { display: block; font-size: 24px; margin: 4px 0; font-variant-numeric: tabular-nums; }
.rf-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rf-row:last-child { border-bottom: 0; }
.rf-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rf-row .grow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-num { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }

/* 语音消息的本人音色译音（2026-10-25，dm.html）：播放键下面一颗「原声／译音」切换、原文字幕、译文、标注 */
.dm-vtr { display: flex; flex-direction: column; align-items: stretch; max-width: 260px; }
.dm-vsw { align-self: flex-start; margin: 0 14px 4px; padding: 2px 10px; border-radius: var(--r-pill); border: 1px solid currentColor; background: none; color: inherit; font: inherit; font-size: var(--fs-s); opacity: .8; cursor: pointer; min-height: 28px; }
.dm-vcap { padding: 0 14px 9px; font-size: var(--fs-m); line-height: 1.5; }
.dm-vdst { opacity: .8; margin-top: 2px; }
.dm-vmark { opacity: .55; margin-top: 4px; font-size: var(--fs-xs); }

/* 通话实时字幕（2026-10-25，call.html）：底栏上方一块半透明，最近两句 */
.call-orig { position: relative; z-index: 1; align-self: flex-end; margin: 0 16px 6px auto; padding: 6px 12px; border: 0; border-radius: var(--r-pill);
             background: rgba(255, 255, 255, .18); color: #fff; font: inherit; font-size: var(--fs-sm); cursor: pointer; display: block; }
.call-orig[aria-pressed="false"] { background: #fff; color: #111; }      /* 原声关了：亮起来提醒 */
.call-orig[hidden] { display: none; }
.call-myv[aria-pressed="false"] { background: rgba(255, 255, 255, .18); color: #fff; }   /* 译音：标准声音是默认，不亮；换成对方音色才亮（2026-10-26 第二批） */
.call-myv[aria-pressed="true"] { background: #fff; color: #111; }
.call-cap { position: relative; z-index: 1; margin: 0 16px 8px; padding: 10px 12px; border-radius: var(--r-m); background: rgba(0, 0, 0, .45); max-height: 30vh; overflow: hidden; }
.call-cap[hidden] { display: none; }
.call-cap-l + .call-cap-l { margin-top: 8px; }
.call-cap-src { opacity: .7; }
.call-cap-dst { font-size: 17px; line-height: 1.45; }

/* 无国界翻译包下载进度（设置页，2026-10-25） */
.tr-bar { height: 6px; border-radius: 3px; background: var(--bg2); overflow: hidden; margin-top: 8px; }
.tr-bar[hidden] { display: none; }
.tr-bar > span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s; }

/* 无国界沟通（2026-10-25，bc*.html）：入口三格、链接列表；访客与会员的链接聊天（.bcg-*）；面对面（.bcf，上半屏倒过来给对方）；相机翻译（.bcm，译文盖在原文上） */
.bc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }   /* 10-27 加了视频音译，四格两行 */
.bc-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font: inherit; cursor: pointer; text-align: center; min-height: 96px; }
.bc-tile b { font-size: 15px; }
.bc-ic { font-size: 26px; }
.bc-feat { margin: 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bc-link { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bc-link:last-child { border-bottom: 0; }
.bc-link a { display: flex; flex-direction: column; color: var(--text); text-decoration: none; min-width: 0; }
.bc-link .grow { flex: 1; }
.bcg-top { display: flex; align-items: center; gap: 10px; padding: max(16px, env(safe-area-inset-top)) 0 10px; }
.bcg-logo { width: 40px; height: 40px; border-radius: 10px; }
.bcg-title { font-size: 17px; }
.bcg-msgs { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 90px; }
.bcg-m { display: flex; }
.bcg-m.mine { justify-content: flex-end; }
.bcg-m > div { max-width: 82%; white-space: pre-wrap; word-break: break-word; }
.bcg-orig { opacity: .7; margin-top: 4px; }
.bcg-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); z-index: 5; }
.bcg-bar[hidden] { display: none; }
.bcg-bar textarea { flex: 1 1 auto; min-width: 0; width: auto; resize: none; font-size: var(--fs-l); min-height: 42px; max-height: 120px; }
.bcg-bar .btn { flex: 0 0 auto; width: auto; padding: 0 18px; align-self: flex-end; }
.bcg-dl { margin-bottom: 90px; }
.bcg-who[hidden] { display: none; }
.bcg-callbtn { width: 100%; margin-bottom: 10px; }
/* 链接通话与同声传译（2026-11-07，_bc_call.html／js/bc-call.js）：全屏层 z-index 94 */
.bcv { position: fixed; inset: 0; z-index: 94; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  padding: max(18px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom)); }
.bcv[hidden] { display: none; }
.bcv-top { text-align: center; padding: 8px 0 6px; }
.bcv-av { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.bcv-who { font-size: 19px; font-weight: 600; word-break: break-word; }
.bcv-st { margin-top: 4px; color: var(--text2); min-height: 1.4em; }
.bcv-tm { min-height: 1.2em; color: var(--text2); }
.bcv-trst { margin: 6px auto 8px; padding: 6px 12px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); color: var(--text2); text-align: center; max-width: 100%; }
.bcv-trst:empty { display: none; }
.bcv-trst.on { border-color: var(--brand); color: var(--brand); }
.bcv-cc { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 2px; }
.bcv-l { max-width: 88%; align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.bcv-l.mine { align-self: flex-end; background: var(--card2); }
.bcv-lm { font-size: var(--fs-xl); line-height: 1.45; word-break: break-word; }
.bcv-l.mine .bcv-lm { font-size: 15px; }
.bcv-ls { margin-top: 3px; color: var(--text2); word-break: break-word; }
.bcv-bot { flex: 0 0 auto; padding-top: 8px; }
.bcv-voice { display: flex; justify-content: center; margin: 0 auto 10px; width: max-content; max-width: 100%; }
.bcv-voice[hidden] { display: none; }
.bcv-keys { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.bcv-k { min-width: 96px; height: 48px; padding: 0 16px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.bcv-k[hidden] { display: none; }
.bcv-k.off { border-color: var(--brand); color: var(--brand); }
.bcv-ok { background: var(--good); border-color: var(--good); color: var(--good-ink); }
.bcv-no { background: var(--bad); border-color: var(--bad); color: var(--bad-ink); }
.bcv-tip { text-align: center; color: var(--text2); margin-top: 10px; }
.bcf { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); z-index: 1; }
.bcf-half { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 18px 16px; min-height: 0; }
.bcf-top { transform: rotate(180deg); border-bottom: 1px dashed var(--line); background: var(--bg2); }
.bcf-lang { font-size: var(--fs-sm); color: var(--text2); }
.bcf-text { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; overflow-y: auto; width: 100%; }
.bcf-main { font-size: var(--fs-2xl); line-height: 1.45; word-break: break-word; }
.bcf-sub { margin-top: 8px; opacity: .65; }
.bcf-mic { display: flex; align-items: center; gap: 8px; padding: 0 26px; height: 56px; border-radius: 28px; border: 0; background: var(--brand); color: #fff; font: inherit; font-size: var(--fs-l); touch-action: none; user-select: none; -webkit-user-select: none; }
.bcf-half.on .bcf-mic { background: var(--bad, #E25A47); }
.bcf-x { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); text-decoration: none; }
.bcf-swap { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: var(--fs-xl); }
.bcf-myv { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 32px; padding: 0 14px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: var(--fs-sm); white-space: nowrap; }   /* 念译文用标准声音／本人音色（2026-10-26 第二批，默认标准） */
.bcf-myv[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); }
.bcm { position: fixed; inset: 0; background: #000; z-index: 1; overflow: hidden; }
.bcm video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; transition: opacity .25s; }
.bcm video.on { opacity: 1; }      /* 摄像头出画面之前一片黑（不露 WebView 的默认灰图，2026-10-26） */
.bcm-stage { position: absolute; transform-origin: 0 0; touch-action: none; background: #000; }   /* 认过的那张图＋译文块：整块缩放拖动（2026-10-26） */
.bcm-stage canvas { display: block; width: 100%; height: 100%; }
.bcm-layer { position: absolute; inset: 0; pointer-events: none; }
.bcm-t { position: absolute; box-sizing: border-box; background: rgba(255, 255, 255, .96); color: #111; border-radius: 2px; padding: 1px 3px; line-height: 1.15;
         box-shadow: 0 1px 3px rgba(0, 0, 0, .35); overflow: hidden; word-break: break-word; transform-origin: 50% 50%; }   /* 译文盖在原文那一段的位置、随字的方向转 */
.bcm-st { position: absolute; left: 16px; right: 16px; top: max(16px, env(safe-area-inset-top)); text-align: center; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.bcm-st[hidden] { display: none; }
.bcm-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center; padding: 16px 16px max(24px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent); }
.bcm-b { min-width: 48px; height: 48px; border-radius: 24px; border: 0; background: rgba(255, 255, 255, .2); color: #fff; font: inherit; display: grid; place-items: center; text-decoration: none; padding: 0 14px; }
.bcm-b.on { background: #fff; color: #111; }
.bcm-main { min-width: 96px; background: #fff; color: #111; font-weight: 600; cursor: pointer; }
.bcm-bar { gap: 6px; }
/* 认出来的字的面板（2026-10-26 用户「先识别文字，再翻译……允许选中文字并进行拷贝」）：原文一行、译文一行，可选中；底部留出按钮栏 */
.bcm-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 54%; display: flex; flex-direction: column; box-sizing: border-box;
             background: var(--card); color: var(--text); border-radius: 16px 16px 0 0; padding: 8px 12px calc(90px + env(safe-area-inset-bottom));
             -webkit-user-select: text; user-select: text; box-shadow: 0 -4px 18px rgba(0, 0, 0, .25); }
.bcm-panel[hidden] { display: none; }
.bcm-ph { display: flex; align-items: center; gap: 6px; flex: none; -webkit-user-select: none; user-select: none; }
.bcm-panel.open .bcm-ph { padding-bottom: 6px; }
.bcm-ph .tiny { flex: 1; color: var(--text3); }
.bcm-cp { border: 0; border-radius: 14px; padding: 6px 10px; background: var(--bg2); color: var(--text); font: inherit; font-size: var(--fs-sm); white-space: nowrap; }
.bcm-list { list-style: none; margin: 0; padding: 0; overflow: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
.bcm-list[hidden] { display: none; }
.bcm-list li { padding: 7px 0; border-top: 1px solid var(--line); line-height: 1.4; word-break: break-word; }
.bcm-src { display: block; }
.bcm-tr { display: block; color: var(--brand); }
.bcm-tr:empty { display: none; }
.bcm.shot .bcm-bar { background: none; }

/* 无国界的下载层（2026-10-25，_m.html trans_gate＋js/zm-trans.js BZT.gate）：整屏挡住，下完之前页面上什么都点不了；z-index 96（在 gx 97 与 gshell 95 之间） */
.tg-bg { position: fixed; inset: 0; z-index: 96; background: rgba(0, 0, 0, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tg-bg[hidden] { display: none; }
.tg-box { width: 100%; max-width: 360px; background: var(--card); color: var(--text); border-radius: var(--radius); padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.tg-box h3 { margin: 0; }
.tg-box p { margin: 0; }
.tg-ic { font-size: 34px; line-height: 1; }
.tg-bar { height: 8px; border-radius: var(--r-xs); background: var(--line); overflow: hidden; }
.tg-bar[hidden], .tg-keep[hidden], .tg-box .btn[hidden] { display: none; }
.tg-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s; }
.tg-box .btn { width: 100%; }

/* 小知 · 聊天总结（2026-10-26，templates/bzapp/_digest.html、js/digest.js） */
.dg-hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.dg-hd b { font-size: 17px; }
.dg-ic { color: var(--gold); font-size: var(--fs-xl); }
.dg-quota { margin-left: auto; text-align: right; }
.dg-lab { font-size: var(--fs-sm); color: var(--text2); margin: 10px 0 6px; }
.dg-seg { flex-wrap: wrap; }
.dg-per label { flex: 1 0 28%; }
.dg-list { margin-top: 8px; }
.dg-list[hidden], .dg-range[hidden], #dg-pick[hidden], #dg-out[hidden], .dg-acts [hidden] { display: none; }
.dg-find { width: 100%; margin-bottom: 6px; }
.dg-list .fr-pick { max-height: 32vh; }
.dg-k { width: 18px; text-align: center; color: var(--text2); }
.dg-range { margin-top: 8px; gap: 8px; }
.dg-est { margin: 12px 0 10px; padding: 10px 12px; border-radius: var(--r-m); background: var(--bg2); font-size: 13.5px; line-height: 1.6; min-height: 22px; }
.dg-est .dg-many { color: var(--gold); font-weight: 600; }
.dg-est .dg-warn { color: var(--bad); }
.dg-go { width: 100%; }
.dg-note { margin: 8px 0 0; }
.dg-prog { margin: 2px 0 8px; min-height: 18px; }
.dg-res { max-height: 52vh; overflow: auto; font-size: 15px; line-height: 1.65; }
.dg-res:empty { display: none; }
.dg-bh { font-size: 12.5px; color: var(--text2); margin: 4px 0; }
.dg-hr { border: 0; border-top: 1px dashed var(--line); margin: 12px 0; }
.dg-acts { display: grid; gap: 8px; margin-top: 12px; }
.ck-ex .ck-dg { grid-column: 1 / -1; border-color: var(--gold); background: var(--gold-soft); font-weight: 600; }
.ck-ex .ck-dg span { color: var(--gold); }
.ck-exr .ck-dg { grid-column: auto; }
/* 聊天总结的结果与小知回答同一套排版（2026-10-26；不复用 .ck-ai 类名，免得与小知页的选择器撞上） */
.dg-res code { background: var(--card2); padding: 1px 4px; border-radius: var(--r-xs); font-size: 13.5px; }
.dg-res p { margin: 0 0 8px; } .dg-res p:last-child { margin-bottom: 0; }
.dg-res .md-h { font-weight: 700; margin: 10px 0 6px; } .dg-res .md-h1 { font-size: 17px; } .dg-res .md-h2 { font-size: var(--fs-l); } .dg-res .md-h3 { font-size: 15px; }
.dg-res .md-l { margin: 4px 0 8px; padding-left: 1.4em; } .dg-res .md-l li { margin: 2px 0; } .dg-res .md-l li.md-sub { margin-left: 1.2em; list-style: circle; }
.dg-res .md-q { margin: 6px 0; padding: 4px 10px; border-left: 3px solid var(--line); color: var(--text2, var(--text)); }
.dg-res .md-hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.dg-res .md-tw { overflow-x: auto; margin: 6px 0 10px; -webkit-overflow-scrolling: touch; }
.dg-res .md-t { border-collapse: collapse; font-size: 13.5px; min-width: 60%; }
.dg-res .md-t th, .dg-res .md-t td { border: 1px solid var(--line); padding: 5px 8px; text-align: left; vertical-align: top; }
.dg-res .md-t th { background: var(--bg2); font-weight: 700; white-space: nowrap; }
.dg-res .md-pre { margin: 6px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); overflow-x: auto; font-size: 12.5px; line-height: 1.5; }
.dg-res .md-pre code { background: none; padding: 0; white-space: pre; }
.dg-res a { color: var(--brand); word-break: break-all; }
.dg-res .md-img { display: block; max-width: 100%; border-radius: 10px; margin: 6px 0; }
.dg-res .md-fig { margin: 8px 0 10px; padding: 10px 8px 6px; border-radius: var(--r-m); background: var(--bg2); }
.dg-res .md-fig figcaption { font-weight: 700; font-size: var(--fs-m); margin: 0 4px 4px; } .dg-res .md-fig figcaption small { font-weight: 400; color: var(--text3); }
.dg-res .md-chart { display: block; width: 100%; height: auto; }

/* 视频音译（2026-10-27，vt.html／js/vidtr.js）：选视频、认出的链接（封面＋三个选项）、播放（画面吸顶、双语字幕盖在画面下沿、控制条、逐句对照）；
   全屏 .vp.full 盖满整屏（z-index 96，与 tg-bg 下载层不会同时出现），浮动按键 3 秒后淡出 */
.vt [hidden], .vp [hidden] { display: none !important; }
body.vt-playing .head { display: none; }
.vt-hero { display: flex; gap: 12px; align-items: center; padding: 16px; margin: 4px 0 12px; border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: var(--brand-ink); }
.vt-hero .tiny { color: inherit; opacity: .85; }
.vt-hero-ic { font-size: 34px; line-height: 1; }
.vt-hero-t { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.vt-warn { color: var(--bad); word-break: break-all; }
.vt-raw { color: var(--text2); }
.vt-lb { display: block; font-weight: 700; margin-bottom: 8px; }
.vt-row { display: flex; gap: 8px; align-items: center; }
.vt-row input { flex: 1 1 auto; min-width: 0; font-size: var(--fs-l); }
.vt-row .btn { flex: 0 0 auto; width: auto; }
.vt-file { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.vt-file .grow, .vt-act .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.vt-file-ic { font-size: 26px; }
.vt-tips { margin: 10px 4px 0; padding-left: 18px; color: var(--text2); display: flex; flex-direction: column; gap: 6px; }
.vt-card { border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); margin: 4px 0 12px; }
.vt-thumb { position: relative; aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; overflow: hidden; }
.vt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-thumb-x { font-size: 48px; }
.vt-thumb-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 26px; padding-left: 5px; cursor: pointer; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.vt-thumb-fr { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vt-thumb-st { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; font-size: var(--fs-m); }
.vt-meta { padding: 12px 14px 14px; }
.vt-title { font-size: var(--fs-l); font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.vt-sub { margin-top: 6px; color: var(--text2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vt-acts { display: flex; flex-direction: column; gap: 10px; }
.vt-act { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--card);
  color: var(--text); font: inherit; cursor: pointer; }
.vt-act .tiny { color: var(--text2); }
.vt-act.main { border: 0; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: var(--brand-ink); box-shadow: var(--shadow); }
.vt-act.main .tiny { color: inherit; opacity: .85; }
.vt-act:disabled { opacity: .5; cursor: default; }
.vt-act-ic { font-size: 26px; width: 34px; text-align: center; }
.vt-pro { background: rgba(255, 255, 255, .25); color: inherit; }
.vt-other { display: block; text-align: center; margin: 16px 0 8px; color: var(--text2); text-decoration: none; }
.vt-sumbox { margin-top: 12px; }
.vt-sum-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.vt-sum-hd .tiny { color: var(--text2); text-align: right; }
.vt-sum-ft { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.vt-md { line-height: 1.6; word-break: break-word; }
.vt-md p { margin: 0 0 8px; }
.vt-md .md-h { font-weight: 700; margin: 10px 0 6px; } .vt-md .md-h1 { font-size: 17px; } .vt-md .md-h2, .vt-md .md-h3 { font-size: 15px; }
.vt-md .md-l { margin: 4px 0 8px; padding-left: 1.4em; } .vt-md .md-l li { margin: 3px 0; }
.vt-md .md-tw { overflow-x: auto; } .vt-md .md-t { border-collapse: collapse; font-size: 13.5px; }
.vt-md .md-t th, .vt-md .md-t td { border: 1px solid var(--line); padding: 5px 8px; text-align: left; }
.vt-md a { color: var(--brand); word-break: break-all; }
.vt-ts { display: inline-block; padding: 0 6px; margin: 0 2px; border-radius: 6px; border: 0; background: var(--bg2); color: var(--brand);
  font: inherit; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; cursor: pointer; }

/* —— 播放 —— */
.vp { margin: 0 -16px; }
.vp-top { display: flex; align-items: center; gap: 8px; padding: max(8px, env(safe-area-inset-top)) 12px 8px; }
.vp-tt { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-ib { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 17px; flex: 0 0 auto; cursor: pointer; }
.vp-ib.sm { width: 34px; height: 34px; font-size: var(--fs-sm); font-weight: 700; }
.vp-stage { position: sticky; top: 0; z-index: 3; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vp-media, .vp-media iframe, .vp-media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vp-media video { object-fit: contain; }
.vp-sub { position: absolute; left: 4%; right: 4%; bottom: 15%; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; text-align: center; z-index: 2; }
.vp-dst, .vp-src { max-width: 100%; padding: 1px 8px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff; line-height: 1.35; word-break: break-word;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.vp-dst { font-weight: 700; }
.vp-src { color: rgba(255, 255, 255, .86); font-weight: 400; }
.vp-dst:empty, .vp-src:empty { display: none; }
.vp-chip { position: absolute; left: 10px; top: 10px; max-width: 75%; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .6); color: #fff;
  font-size: var(--fs-s); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 2; }
.vp-chip.on { opacity: 1; }
.vp-fbar, .vp-fmore { display: none; }
.vp-ctl { padding: 12px 16px 4px; display: flex; flex-direction: column; gap: 10px; }
.vp-line { display: flex; align-items: center; gap: 10px; }
.vp-lbl { flex: 0 0 auto; width: 34px; font-size: var(--fs-sm); color: var(--text2); }
.vp-seg { flex: 1; padding: 3px; }
.vp-seg button { border: 0; background: transparent; color: var(--text2); font: inherit; font-size: var(--fs-m); padding: 7px 4px; cursor: pointer; }
.vp-seg .on { color: var(--text); font-weight: 700; }
.vp-wait { flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--card); color: var(--text2); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.vp-wait.on { border-color: var(--brand); color: var(--brand); }
.vp-fs { display: flex; gap: 6px; flex: 0 0 auto; }
.vp-srcline .grow { flex: 1; min-width: 0; color: var(--text2); }
.vp-srcline .btn { flex: 0 0 auto; width: auto; }
.vp-upsell { font-size: var(--fs-sm); padding: 8px 12px; border-radius: 10px; background: var(--bg2); color: var(--text2); }
.vp-upsell a { color: var(--brand); }
.vp-list-hd { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 6px; }
.vp-list-hd .tiny { color: var(--text3); }
.vp-list { list-style: none; margin: 0; padding: 0 8px; }
.vp-li { display: flex; gap: 10px; padding: 9px 8px; border-radius: var(--r-m); cursor: pointer; scroll-margin-top: 40vw; }
.vp-li.on { background: var(--bg2); box-shadow: inset 3px 0 0 var(--brand); }
.vp-lt { flex: 0 0 auto; width: 42px; font-size: var(--fs-s); color: var(--text3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.vp-lx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; word-break: break-word; }
.vp-ls { color: var(--text2); font-size: var(--fs-m); }
.vp-ld { color: var(--text); font-size: 15px; }
.vp-li.on .vp-ld { font-weight: 700; }
.vp-empty { padding: 18px 16px; text-align: center; color: var(--text3); }
.vp-acts { display: flex; gap: 10px; padding: 14px 16px max(16px, env(safe-area-inset-bottom)); }
.vp-acts .btn { flex: 1; }

/* 全屏：画面盖满，别的都收起；右上角一排浮动按键 */
.vp.full { position: fixed; inset: 0; z-index: 96; margin: 0; background: #000; overflow: hidden; }
.vp.full > :not(.vp-stage) { display: none !important; }
.vp.full .vp-stage { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.vp.full .vp-sub { bottom: 11%; left: 8%; right: 8%; }
.vp.full .vp-fbar { display: flex; position: absolute; right: max(12px, env(safe-area-inset-right)); top: 12px; gap: 8px; z-index: 3; opacity: 0; transition: opacity .3s; pointer-events: none; }
.vp.full.fb-on .vp-fbar { opacity: 1; pointer-events: auto; }
.vp-fb { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 20px; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: var(--fs-l); font-weight: 700; cursor: pointer; }
.vp.full .vp-fmore { display: block; position: absolute; right: max(12px, env(safe-area-inset-right)); top: 12px; width: 40px; height: 40px; border-radius: 20px; border: 0;
  background: rgba(0, 0, 0, .3); color: rgba(255, 255, 255, .8); font-size: var(--fs-xl); z-index: 2; cursor: pointer; }
.vp.full.fb-on .vp-fmore { visibility: hidden; }
@media (min-width: 700px) { .vp { margin: 0; } .vp-stage { border-radius: 14px; } }
/* 悬浮字幕（10-27，build 36）：视频在别的 App 里放——画面那块换成说明卡（字幕照样盖在下沿），声音一行、全屏键收起；
   这里放不出来时控制区顶上一条「去 App 里看」 */
.vp-fl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 18px 22%;
  text-align: center; color: #fff; background: linear-gradient(135deg, #1d2333, #0d0f16); }
.vp-fl .tiny { color: rgba(255, 255, 255, .7); }
.vp-fl-ic { font-size: 30px; line-height: 1; }
.vp-fl-t { font-weight: 700; font-size: 15px; }
.vp-fl .btn { width: auto; margin-top: 4px; }
.vp.float:not(.fvoice) #vp-vline, .vp.float #vp-full, .vp.float #vp-wait { display: none !important; }   /* 悬浮字幕：build 37 起留「原声／译音」（与悬浮条上的「译音」同一个开关） */
.vp-blk { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-radius: var(--r-m); background: var(--bg2); color: var(--text2); font-size: var(--fs-sm); }
.vp-blk.bad { background: var(--bg2); background: color-mix(in srgb, var(--bad) 12%, var(--card)); color: var(--text); }
.vp-blk .grow { flex: 1; min-width: 0; word-break: break-word; }
.vp-blk .btn { flex: 0 0 auto; width: auto; }
button.vt-float-any { width: 100%; font: inherit; color: var(--text); text-align: left; border: 0; }

/* 游戏卡片（2026-11-02，js/zm-gamecard.js）：私聊、群聊、朋友圈里的房间卡与「来玩」卡；座位按方位摆（掼蛋上下左右、双人左右） */
.gc-wrap { padding: 0; background: none; border: 0; box-shadow: none; }
.gc-card { width: 250px; max-width: 76vw; border-radius: var(--r-l); overflow: hidden; background: linear-gradient(150deg, #1E5B50, #0D2925); color: #FFF3D6;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); font-size: var(--fs-sm); }
.gc-card.gone { filter: grayscale(.85); opacity: .7; }
.gc-hd { display: flex; align-items: center; gap: 6px; padding: 10px 12px 6px; }
.gc-hd .gc-t { flex: 1; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-st { font-size: var(--fs-xs); padding: 2px 8px; border-radius: var(--r-pill); background: rgba(255,255,255,.12); white-space: nowrap; }
.gc-st.on { background: #2FA866; color: #fff; } .gc-st.full { background: #C9822B; color: #fff; }
.gc-body { padding: 4px 10px 6px; } .gc-sub { opacity: .8; padding: 4px 2px 8px; }
.gc-seats.four { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-areas: ". top ." "left . right" ". bottom ."; gap: 2px 4px; }
.gc-seats.two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gc-seat { display: grid; justify-items: center; gap: 1px; padding: 4px 2px; border: 0; border-radius: var(--r-m); background: rgba(255,255,255,.06); color: inherit; font: inherit; cursor: pointer; }
.gc-seat.p-top { grid-area: top; } .gc-seat.p-left { grid-area: left; } .gc-seat.p-right { grid-area: right; } .gc-seat.p-bottom { grid-area: bottom; }
.gc-seats.two .gc-seat { grid-area: auto; }
.gc-seat.empty { background: rgba(232,199,122,.08); outline: 1px dashed rgba(232,199,122,.55); }
.gc-seat.me { outline: 1.5px solid #E8C77A; }
.gc-card .gc-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#F3D68C, #B07A25); color: #fff; font-weight: 800; overflow: hidden; }
.gc-seat.empty .gc-av { background: none; color: #E8C77A; border: 1px dashed rgba(232,199,122,.7); }
.gc-card .gc-av img { width: 100%; height: 100%; object-fit: cover; }
.gc-pos { font-size: var(--fs-xs); opacity: .7; } .gc-card .gc-nm { font-size: 11.5px; max-width: 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-act { font-size: var(--fs-xs); color: #E8C77A; min-height: 1em; }
.gc-ft { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 12px 10px; font-size: var(--fs-xs); opacity: .85; }
.gc-go { display: inline-block; padding: 6px 18px; border-radius: var(--r-pill); background: linear-gradient(#F6DA8F, #D6A13F); color: #3B2808; font-weight: 800; text-decoration: none; }
.gc-sheet .gc-ci { width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; }
.gc-sheet .gc-new { display: flex; gap: 8px; margin: 10px 0 6px; } .gc-sheet .gc-new input { flex: 1; min-width: 0; }
/* 论断的 AI 改写（2026-11-03，bzapp/natal_ai.py、templates/bzapp/_nai.html）：改写就地换进各栏；页顶一行生成中／繁忙的提示 */
.nai-st { margin: 0 6px 10px; } .ai-report [hidden] { display: none; }
div.nai-txt { margin: 0 0 8px; } div.nai-txt:last-child { margin-bottom: 0; }
.nai-txt p { margin: 0 0 6px; } .nai-txt p:last-child { margin-bottom: 0; }
.nai-txt ul { margin: 0 0 6px; padding-left: 1.3em; } .nai-txt ul:last-child { margin-bottom: 0; } .nai-txt li { margin: 2px 0; }
/* 聊天里长按「AI 分析」（2026-11-03，dm.html、bzapp/msgai.py）：抽屉里先引一下那句，下面是分析 */
.dm-aiq { margin: 0 2px 8px; color: var(--text3); }
#dm-ai .ck-ai { max-height: 55vh; overflow-y: auto; }
.dm-aimode { display: flex; gap: 8px; margin: 0 0 6px; } .dm-aimode .btn { flex: 1; }
.dm-aicost { font-size: 11.5px; font-weight: 400; opacity: .8; margin-left: 6px; }
.dm-aihelp { margin: 0 2px 8px; color: var(--text3); } #dm-ai [hidden] { display: none; }
.dm-aikb { margin-top: 8px; } .dm-aikb summary { cursor: pointer; margin: 2px; } .dm-aikb .ck-ai { margin: 6px 0; }
/* 小知的连接器（2026-11-03，connectors.html，D70） */
.cn-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cn-row:last-child { border-bottom: 0; } .cn-row .ic { font-size: 20px; width: 28px; text-align: center; }
.cn-row .grow { display: flex; flex-direction: column; min-width: 0; } .cn-row .t { font-weight: 600; }
.cn-row .s { font-size: var(--fs-s); color: var(--text3); } .cn-row .s.cn-ok { color: var(--good); } .cn-row .s.cn-warn { color: var(--bad); }
.cn-row [hidden], #cn [hidden] { display: none; }
.cn-keep { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-weight: 600; }
.cn-x { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-m); background: var(--card2); font-size: var(--fs-m); }

/* 圈子广场（2026-11-08，plaza.html） */
.pz-search { display: flex; gap: 8px; margin-bottom: 12px; }
.pz-search .input { flex: 1; min-width: 0; }
.pz-intro { font-size: var(--fs-sm); color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pz-row .btn, .pz-row > .tiny { flex: none; }

/* 建圈邀友的注册链接（2026-11-09，invite.html） */
.iv-link { margin-top: 4px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--bg2); font-size: var(--fs-sm); word-break: break-all; user-select: all; }
.dm-lapsed[hidden] { display: none; }   /* 私有服务器「去解锁」那一条也用这个样式（2026-11-09），hidden 要压过上面的 display:flex */
.dm-th.cc-left { opacity: .55; filter: grayscale(1); }   /* 退出了的圈：只在本机还有记录，置灰、只能看（2026-11-09） */
.ms-hidden-tog { display: block; margin: 8px auto 0; }

/* 行业翻译的行业选择（2026-11-14，_m.html 的 mt_domain）：设置页一整行；聊天、视频页一条小下拉；相机页浮在右上角 */
.mt-dom select { width: 100%; margin-top: 4px; }
.mt-dom-inline { margin: 6px 0; }
.mt-dom-inline select { margin-top: 0; }
.bcm-dom { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 10px; z-index: 3; max-width: 60vw; }
.bcm-dom select { margin: 0; background: rgba(0, 0, 0, .55); color: #fff; border-color: rgba(255, 255, 255, .35); }

/* ====================== 2026-11-17 审计：触控热区、减弱动态效果、横屏安全区 ====================== */
/* 热区补到 44px（伪元素外扩，看起来不变）：顶栏返回、小按钮、翻译小键 */
.head .back, .btn.sm, .tr-btn { position: relative; }
.head .back::after { content: ""; position: absolute; inset: -5px; }
.btn.sm::after { content: ""; position: absolute; left: 0; right: 0; top: -5px; bottom: -5px; }
.tr-btn::after { content: ""; position: absolute; left: -4px; right: -4px; top: -10px; bottom: -10px; }
/* 减弱动态效果：录音红点不闪、发送转圈换成静止的圈、消息高亮不闪、平滑滚动改瞬时；毛玻璃也关（低端机滚动吃 GPU） */
@media (prefers-reduced-motion: reduce) {
  .dm-recdot, .cp-send.busy::after, .dm-m.dm-flash { animation: none !important; }
  html { scroll-behavior: auto !important; }
  .head, .tabbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .tabbar { background: var(--card); }
}
/* 横屏：刘海在左右——顶栏、底栏、正文左右让出安全区 */
@media (orientation: landscape) {
  .head { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .tabbar { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .app { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
