/* IronM：手机优先；桌面上整页是居中的一列。白底圆角卡片风（spec [2026-10-23] §175，照项目负责人给的参照图，取代 §131 的像素农场风）：
   浅灰紫底、白色大圆角卡片、珊瑚红主色、浅绿小标签、图标放在浅紫圆底里、系统字体。最后一节统一覆盖上面的组件 */
:root {
  --bg: #f6f4fa; --surface: #ffffff; --sunken: #f6f5fa; --ink: #1d1d26; --ink-2: #474757; --muted: #757588;
  --line: #ebebf2; --line-hi: rgb(242 96 63 / 40%);
  --accent: #f2603f; --accent-ink: #ffffff; --accent-text: #cc4125; --accent-soft: #fdece7; --accent-glow: rgb(242 96 63 / 25%);
  --fire: #d2452a; --fire-2: #c13a20; --amber: #ffb547; --rose: #c2410c;
  --heat: #d63b40; --heat-soft: #fdecec;
  --load-hot: #f2603f; --load-mid: #ffa37f; --load-low: #ffd9c9; --load-ready: #34c46b; --load-none: #e6e6ef;  /* 人体图（§94） */
  --good: #1e8a47; --good-soft: #dff5e6; --warn: #b45309; --warn-soft: #fff3dc; --neutral-soft: #f4f2f8;
  --gold: #b45309; --gold-2: #7c3a00; --gold-soft: #fff6e5; --gold-line: #f5d49a; --violet: #6e56cf;  /* IronM 的话、脂肪 */
  --wood: #ebebf2; --wood-dark: #e2e2ec; --wood-light: #f1f1f6; --plank: #f6f5fa;  /* §131 木框的变量，现在是细线和浅底 */
  --hero: #ffffff; --hero-ink: #1d1d26; --hero-muted: #757588; --hero-line: #ebebf2; --hero-accent: #f2603f;
  --icon-bg: #eeebfa;  /* 图标的浅紫圆底 */
  --metal: #1e2324; --metal-ink: #eef1f3; --metal-muted: #9ba3a8;  /* 页头的深色和上面的字（§209）；记录页的周报上半截也用（§272） */
  --shadow: 0 1px 2px rgb(40 30 60 / 4%), 0 6px 20px rgb(40 30 60 / 5%);
  --shadow-lg: 0 10px 40px rgb(40 30 60 / 12%);
  --radius: 22px; --radius-sm: 14px; --max: 720px; --tabs-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --pixel: var(--font);  /* §131 的像素字不再用（§175） */
  --mono: ui-monospace, Menlo, monospace;
  --digits: var(--font);
  --figs: var(--font);
  --slant: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
a { color: inherit; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 16px; height: 16px; } svg.i.xs { width: 14px; height: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* ---- 外框：一列居中 ---- */
.app {
  max-width: var(--max); margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: flex-end; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 0 12px;
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px);
}
.bar-text { flex: 1; min-width: 0; }
.bar-kicker { font-size: 13px; color: var(--muted); line-height: 1.3; min-height: 1px; }
.bar-title { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 750; letter-spacing: -.01em; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; flex: none;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; margin-bottom: 2px;
}
.view { display: flex; flex-direction: column; gap: 16px; }

/* ---- 底部导航：和内容同宽对齐 ---- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(12px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabs-inner {
  max-width: var(--max); margin: 0 auto; height: var(--tabs-h); display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 0 max(8px, env(safe-area-inset-right, 0px)) 0 max(8px, env(safe-area-inset-left, 0px));
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; color: var(--muted); text-decoration: none; font-weight: 500;
}
.tabs a.on { color: var(--ink); font-weight: 650; }
.tabs a.on .ti { color: var(--accent); }
.tabs .ti { display: grid; place-items: center; height: 24px; }

/* ---- 通用 ---- */
.section { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px; }
.section-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.005em; }
.section-head a, .link {
  color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 2px;
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
}
.card {
  background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px; min-width: 0; border: 1px solid transparent;
}
@media all { .card { border-color: var(--line); } }
.muted { color: var(--muted); font-size: 13px; }
.caption { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.lede { color: var(--ink-2); margin: 0; }
p { margin: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; line-height: 1;
  padding: 5px 9px; border-radius: 999px; background: var(--neutral-soft); color: var(--ink-2); white-space: nowrap;
}
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.attention { background: var(--warn-soft); color: var(--warn); }

.btn {
  font: inherit; font-weight: 650; border: 0; border-radius: 14px; padding: 12px 18px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: var(--accent-ink);
}
.btn.block { width: 100%; }
.btn.ghost { background: var(--sunken); color: var(--ink); font-weight: 600; }
.btn.quiet { background: transparent; color: var(--ink-2); font-weight: 500; }
.btn.danger { background: transparent; color: var(--warn); border: 1px solid var(--line); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 12px; }

.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.asks { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chip {
  font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; text-align: left;
}

.rows { display: flex; flex-direction: column; }
.row-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit; background: none; border-left: 0; border-right: 0; border-bottom: 0;
  font: inherit; text-align: left; cursor: pointer; width: 100%;
}
.rows > .row-item:first-child { border-top: 0; padding-top: 2px; }
.rows > .row-item:last-child { padding-bottom: 2px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-weight: 600; overflow-wrap: anywhere; }
.row-sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-end { color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: 14px; flex: none; white-space: nowrap; }

.empty { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; }
.empty .i { color: var(--muted); }
.note { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; }
.error-card { display: flex; gap: 10px; align-items: flex-start; color: var(--warn); }
.fresh { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }

/* ---- 首页：今天的状态 ---- */
.hero {
  background: var(--hero); color: var(--hero-ink); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -70px; top: -90px; width: 190px; height: 190px; border-radius: 50%;
  border: 22px solid color-mix(in srgb, var(--hero-accent) 9%, transparent); pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hero-muted); }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hero-muted); }
.hero-dot.good { background: var(--good); } .hero-dot.attention { background: var(--warn); }
.hero h2 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; text-wrap: balance; }
.hero p { color: var(--hero-muted); font-size: 14px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hero-line); padding-top: 14px; gap: 8px; }
.hero-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-stat .k { font-size: 12px; color: var(--hero-muted); display: flex; align-items: center; gap: 5px; }
.hero-stat .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.hero-stat .v small { font-size: 12px; font-weight: 500; color: var(--hero-muted); margin-left: 2px; }
.hero-stat .s { font-size: 12px; color: var(--hero-accent); }
.hero-stat .s.attention { color: var(--warn); } .hero-stat .s.none { color: var(--hero-muted); }

.plan-card { gap: 14px; }
.plan-top { display: flex; gap: 14px; align-items: flex-start; }
.plan-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.plan-top h3 { margin: 0 0 2px; font-size: 17px; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat .k { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 26px; font-weight: 750; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .v small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.divider-v { border-left: 1px solid var(--line); padding-left: 14px; }

/* ---- 指标卡 ---- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  font: inherit; color: inherit; text-align: left; cursor: pointer; border: 1px solid transparent;
  background: var(--surface); border-radius: var(--radius); padding: 14px 14px 12px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
@media all { .tile { border-color: var(--line); } }
.tile.wide { grid-column: 1 / -1; }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.tile-name { font-size: 13.5px; color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-value { font-size: 28px; font-weight: 750; letter-spacing: -.015em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile-value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.tile-foot { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.tile.wide .tile-value { font-size: 32px; }
.tile-value.long { font-size: 24px; }
.tile:hover { border-color: var(--line); }
.missing-list .row-item { cursor: default; }

/* 趋势图 */
.spark { position: relative; height: 54px; }
.tile.wide .spark { height: 72px; }
.spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.spark .line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark .area { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: none; }
.spark .bar { fill: color-mix(in srgb, var(--accent) 55%, transparent); }
.spark .bar.last { fill: var(--accent); }
.spark .end { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); transform: translate(-50%, -50%); }
.chart { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 4px 8px; }
.chart .y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.chart .x { grid-column: 2; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.chart .spark { height: 140px; border-bottom: 1px dashed var(--line); border-top: 1px dashed var(--line); }

/* ---- 详情：底部弹出 ---- */
.sheet-overlay { position: fixed; inset: 0; z-index: 20; background: rgb(255 255 255 / 45%); animation: fade .18s ease-out; }
.sheet {
  position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 24px 24px 0 0; animation: rise .22s cubic-bezier(.2, .8, .2, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px); max-width: var(--max); margin: 0 auto;
}
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 10px auto 0; flex: none; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 12px 20px 8px; }
.sheet-head h2 { flex: 1; margin: 0; font-size: 20px; line-height: 1.3; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--sunken); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.sheet-body { overflow-y: auto; padding: 4px 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.sheet-body h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.sheet-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sheet-big .v { font-size: 38px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sheet-big .v small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.facts { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.facts dt { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.facts dd { margin: 0; }
.steps-ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps-ol li { counter-increment: s; display: flex; gap: 10px; }
.steps-ol li::before {
  content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700; display: grid; place-items: center; margin-top: 1px;
}
.marks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.marks li { display: flex; gap: 8px; }
.marks .i { margin-top: 3px; }
.marks.ok .i { color: var(--good); } .marks.bad .i { color: var(--warn); }
.swap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.swap div { background: var(--sunken); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.swap b { font-size: 12px; color: var(--muted); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- 动作 ---- */
.search {
  display: flex; flex-direction: row; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 0 12px; font-size: 15px; color: var(--ink);
}
.search input { border: 0; background: transparent; padding: 11px 0; flex: 1; min-width: 0; font: inherit; color: var(--ink); outline: none; }
.search .i { color: var(--muted); }
.mark {
  width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; font-weight: 750; font-size: 16px;
  background: var(--sunken); color: var(--ink-2);
}
.mark.p-腿臀 { background: rgb(18 183 106 / 13%); color: #2c4236; } .mark.p-胸 { background: rgb(255 77 58 / 13%); color: #b5361f; }
.mark.p-背 { background: rgb(255 154 31 / 13%); color: #9a5a00; } .mark.p-肩 { background: rgb(180 140 255 / 13%); color: #6b46c1; }
.mark.p-手臂 { background: rgb(226 184 102 / 13%); color: #8a6a1f; } .mark.p-核心 { background: rgb(200 220 90 / 13%); color: #5f7a12; }
.mark.p-全身 { background: rgb(255 120 90 / 13%); color: #b2452c; } .mark.p-有氧 { background: rgb(220 210 230 / 13%); color: #6b5f78; }
}
.level { font-size: 12px; color: var(--muted); }
.callout { display: flex; gap: 10px; background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-sm); padding: 12px; font-size: 14px; }
.callout .i { margin-top: 2px; }

/* ---- 饮食 ---- */
.meals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.meal { background: var(--sunken); border-radius: var(--radius-sm); padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.meal b { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meal b small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 1px; }
.meal span { font-size: 12px; color: var(--muted); }
.target-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.target-big .v { font-size: 40px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.target-big .u { color: var(--muted); font-size: 15px; }
.meter { height: 8px; border-radius: 8px; background: var(--sunken); overflow: hidden; display: flex; }
.meter span { display: block; height: 100%; }

/* ---- 我的 ---- */
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head .avatar { width: 52px; height: 52px; font-size: 20px; margin: 0; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; padding-top: 0; }
.kv:last-child { padding-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { text-align: right; font-weight: 550; }
.kv .hint { color: var(--muted); font-weight: 400; font-size: 12px; }
form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; min-width: 0; width: 100%;
}
.form-actions { display: flex; gap: 10px; }
.form-actions .btn { flex: 1; }
.error { color: var(--warn); font-size: 13px; }

/* ---- 登录 ---- */
.login { max-width: 400px; margin: 12dvh auto 0; display: flex; flex-direction: column; gap: 22px; }
.wordmark { font-size: 40px; font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.wordmark b { color: var(--accent); }
.row { display: flex; gap: 10px; align-items: center; }
.row > input { flex: 1; }

/* ---- 对话：整屏 ---- */
body.chatting .app { padding-bottom: 0; }
.chat { height: 100dvh; display: flex; flex-direction: column; }
.chat-bar {
  display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px;
  border-bottom: 1px solid var(--line);
}
.chat-bar .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-bar .who b { font-size: 17px; }
.chat-bar .who span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 16px 0 12px; overscroll-behavior: contain; }
.msg-user {
  align-self: flex-end; max-width: 82%; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 18px 18px 4px 18px;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg-coach { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border-radius: 18px 18px 18px 4px; padding: 14px 16px; box-shadow: var(--shadow); max-width: 100%; }
@media all { .msg-coach { border: 1px solid var(--line); } }
.answer { display: flex; flex-direction: column; gap: 10px; overflow-wrap: anywhere; }
.answer p { line-height: 1.75; }
.prog { display: flex; flex-direction: column; gap: 8px; }
.prog-head {
  display: flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.prog-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; border-left: 2px solid var(--line); padding-left: 12px; }
.prog-list li { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.prog-list .who { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.prog-list .what { color: var(--muted); }
.prog-list .res { color: var(--ink-2); white-space: pre-wrap; background: var(--sunken); border-radius: 10px; padding: 8px 10px; margin-top: 4px; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
.ok-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--good); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.ok-dot svg { width: 10px; height: 10px; stroke-width: 3; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.msg-note { font-size: 13px; color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 8px 10px; }
.sources { border-top: 1px solid var(--line); padding-top: 8px; }
.sources summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.sources summary::-webkit-details-marker { display: none; }
.sources[open] summary .i { transform: rotate(90deg); }
.sources .src { white-space: pre-wrap; font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.65; }
.rate { display: flex; gap: 6px; }
.rate button {
  font: inherit; font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); border-radius: 999px; padding: 5px 10px; cursor: pointer;
}
.rate button.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }
.welcome { margin: auto 0; display: flex; flex-direction: column; gap: 16px; padding: 12px 0; }
.welcome .mark-big { width: 56px; height: 56px; border-radius: 18px; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.welcome h2 { margin: 0; font-size: 24px; }
.starters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.starter {
  font: inherit; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer;
  color: var(--ink); display: flex; flex-direction: column; gap: 4px;
}
.starter span { font-size: 12px; color: var(--muted); }
.composer {
  display: flex; flex-direction: row; align-items: flex-end; gap: 8px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--bg);
}
.composer textarea {
  resize: none; max-height: 140px; line-height: 1.5; border-radius: 20px; padding: 10px 14px; background: var(--surface);
}
.send {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; flex: none;
}
.send:disabled { background: var(--sunken); color: var(--muted); cursor: default; }
.send.stop { background: var(--ink); color: var(--bg); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: .4; } }
.skeleton { background: linear-gradient(90deg, var(--sunken), var(--surface), var(--sunken)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } .hero .scan { display: none; } }

/* 桌面：内容更宽松一些，详情改成居中的对话框 */
@media (min-width: 760px) {
  .sheet { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 24px; max-height: 80dvh; animation: fade .18s ease-out; width: min(560px, calc(100% - 48px)); left: 0; right: 0; }
  .sheet-grip { display: none; }
  .hero { padding: 24px; }
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input:focus { box-shadow: none; }

/* ---- 添加数据：上传报告、随手记、导入苹果健康、基因数据、连接设备 ---- */
.adds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.add {
  background: var(--surface); border: 1px solid transparent; border-radius: var(--radius-sm); padding: 12px; box-shadow: var(--shadow);
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer; min-width: 0;
}
.add:last-child:nth-child(odd) { grid-column: 1 / -1; }
.add:hover, .add-mini:hover { border-color: var(--line); }
.add-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.add-icon .i { width: 20px; height: 20px; }
.add-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.add-text b { font-size: 14.5px; }
.add-text span { font-size: 12px; color: var(--muted); line-height: 1.45; }
.add-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.add-mini {
  font: inherit; font-size: 12.5px; color: var(--ink-2); background: var(--surface); border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; box-shadow: var(--shadow); white-space: nowrap;
}
@media all { .add, .add-mini { border-color: var(--line); } }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  padding: 22px 16px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); cursor: pointer; font-size: 14px;
}
.drop .i { color: var(--accent); width: 28px; height: 28px; }
.drop b { font-weight: 650; }
.drop span { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.drop.over, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.progress { height: 6px; border-radius: 6px; background: var(--sunken); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.row-item .mark { width: 36px; height: 36px; border-radius: 11px; }

/* ---- 今日简报、今天的训练、每周复盘 ---- */
.hero-alert { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgb(242 193 78 / 14%); color: var(--hero-ink, inherit); font-size: 13.5px; line-height: 1.5; }
.hero-alert .i { color: var(--warn); flex: none; margin-top: 2px; }
.notice-line { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--warn); background: var(--warn-soft); border-radius: 12px; padding: 10px 12px; }
.notice-line .i { flex: none; margin-top: 2px; }
.plan-items { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.5; }
.plan-items li::marker { color: var(--muted); }
.btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tips { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.55; }
.rpe { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.rpe button { padding: 10px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.rpe button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sheet-body input[type="text"] { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }

/* ---- 对话里的预览卡片 ---- */
.preview { margin-top: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.preview.confirmed { border-color: var(--good); }
.preview.cancelled, .preview.undone { opacity: .7; }
.pv-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pv-title .muted { flex-basis: 100%; }
.pv-session { border-top: 1px solid var(--line); padding-top: 10px; }
.pv-session.changed .pv-head b { color: var(--accent); }
.pv-head { display: flex; justify-content: space-between; gap: 8px; }
.preview ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; }
.card-changes { margin: 0; font-size: 14px; color: var(--ink-2); }
.pv-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---- 对话附件 ---- */
.clip { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--sunken); cursor: pointer; flex: none; align-self: flex-end; }
.clip:focus-within { outline: 2px solid var(--accent); }
/* 说话输入（§199）：录着时话筒变红、上面一条写正在听和秒数 */
.clip.mic { border: 0; padding: 0; }
.clip.mic[hidden] { display: none; }
.clip.mic:disabled { opacity: .5; cursor: default; }
.clip.mic.rec { background: var(--heat); color: #fff; animation: mic-pulse 1.4s ease-in-out infinite; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 6px var(--heat-soft); } }
.voice-bar { display: flex; align-items: center; gap: 8px; padding: 6px 4px 0; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.voice-bar[hidden] { display: none; }
.voice-bar .voice-time { font-variant-numeric: tabular-nums; color: var(--muted); }
.voice-bar .btn { margin-left: auto; }
.voice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--heat); flex: none; }
@media (prefers-reduced-motion: reduce) { .clip.mic.rec { animation: none; } }
.attach-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 8px; }
.attach { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 8px 6px 10px; border-radius: 999px; background: var(--sunken); font-size: 13px; }
.attach.bad { color: var(--warn); }
.attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.attach small { color: var(--muted); }
.attach button { border: 0; background: transparent; color: inherit; padding: 2px; cursor: pointer; display: grid; place-items: center; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 12.5px; opacity: .85; }
.msg-files span { display: inline-flex; align-items: center; gap: 4px; }

/* ---- 前端改版（spec [2026-10-23] §13）---- */
/* 状态卡里的天气 */
.wx, .wx-row { border-top: 1px solid var(--hero-line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.wx-row { flex-direction: row; align-items: center; gap: 8px; color: var(--hero-muted); font-size: 14px; text-decoration: none; }
.wx-row span { flex: 1; }
.wx-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wx-main b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wx-text { color: var(--hero-muted); font-size: 13.5px; }
.aqi { font-size: 12px; font-weight: 650; padding: 3px 8px; border-radius: 999px; background: var(--good-soft); color: var(--good); }
.aqi.mid { background: var(--warn-soft); color: var(--warn); } .aqi.bad { background: var(--heat-soft); color: var(--heat); }
.hero .wx-advice { color: var(--hero-ink); font-size: 13.5px; }
.hero .wx-advice.indoor, .hero .wx-advice.avoid { color: var(--warn); }
/* 计划表 */
.pt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pt-head h3 { margin: 0 0 2px; font-size: 17px; }
.pt { display: flex; flex-direction: column; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.pt-row { display: grid; grid-template-columns: 44px 1fr auto 16px; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 14.5px; }
.pt-row:first-child { border-top: 0; }
.pt-row[role="button"] { cursor: pointer; }
.pt-row.rest { color: var(--muted); }
.pt-row.today { background: var(--accent-soft); font-weight: 650; }
.pt-row.today .pt-day { color: var(--accent); }
.pt-day { color: var(--muted); font-size: 13px; }
.pt-min { color: var(--muted); font-size: 12.5px; }
/* 训练日历 */
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head b { font-size: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.cal-week span { font-size: 12px; color: var(--muted); }
.cal-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cal-cell.blank { visibility: hidden; }
.cal-cell.lit { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.cal-cell.has:not(.lit) { background: var(--sunken); }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-cell[role="button"] { cursor: pointer; }
.dot-state { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.dot-state.on { background: var(--accent); }
/* 动作卡片 */
.move-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .move-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.move-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; border: 1px solid transparent; }
@media all { .move-card { border-color: var(--line); } }
.move-cover { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--sunken); }
.move-cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-mark { font-size: 34px; font-weight: 800; opacity: .85; }
.move-cover .play { position: absolute; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgb(15 42 29 / 45%); color: #fff; }
.cover-level { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 650; padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink-2); }
.move-info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.move-info b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.move-info span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.move-cover.p-腿臀, .empty-video.p-腿臀 { background: rgb(18 183 106 / 10%); color: #2c4236; } .move-cover.p-胸, .empty-video.p-胸 { background: rgb(255 77 58 / 10%); color: #b5361f; }
.move-cover.p-背, .empty-video.p-背 { background: rgb(255 154 31 / 10%); color: #9a5a00; } .move-cover.p-肩, .empty-video.p-肩 { background: rgb(180 140 255 / 10%); color: #6b46c1; }
.move-cover.p-手臂, .empty-video.p-手臂 { background: rgb(226 184 102 / 10%); color: #8a6a1f; } .move-cover.p-核心, .empty-video.p-核心 { background: rgb(200 220 90 / 10%); color: #5f7a12; }
.move-cover.p-全身, .empty-video.p-全身 { background: rgb(255 120 90 / 10%); color: #b2452c; } .move-cover.p-有氧, .empty-video.p-有氧 { background: rgb(220 210 230 / 10%); color: #6b5f78; }
.move-video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: #000; }
.empty-video { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--sunken); text-align: center; padding: 12px; }
.admin-box { border-top: 1px dashed var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
/* 饮食 */
.fmeter { display: flex; flex-direction: column; gap: 6px; }
.fmeter-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.fmeter-top b { color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.meter span { background: var(--accent); border-radius: 8px; }
.meter span.over { background: var(--warn); }
.photo-row { display: flex; gap: 10px; align-items: stretch; }
.photo-pick { flex: 1; flex-direction: row; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 14px; color: var(--ink-2); cursor: pointer; font-size: 14px; }
.photo-pick .i { color: var(--accent); }
.photo-preview { position: relative; width: 84px; flex: none; }
.photo-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.photo-preview .icon-btn { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; }
.meal-thumb { width: 44px; height: 44px; border-radius: 12px; background: var(--sunken); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--muted); }
.meal-thumb img, .meal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meal-photo { border-radius: var(--radius-sm); overflow: hidden; max-height: 260px; }
.macro-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.macro-grid div { background: var(--sunken); border-radius: var(--radius-sm); padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.macro-grid b { font-size: 17px; font-variant-numeric: tabular-nums; }
.macro-grid b small { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 1px; }
.macro-grid span { font-size: 12px; color: var(--muted); }
.rec { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.rec h3 { margin: 0; font-size: 17px; }
.preset .row-title { display: flex; align-items: center; gap: 6px; }
.scene { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--sunken); padding: 2px 6px; border-radius: 6px; }
.preset .row-sub { white-space: normal; }
/* 肌肉人体图 */
/* 平面人体图（§57 修改：openGym 那种，MuscleMap 原图）：没练的深灰、练了的从深绿、亮绿到黄绿（§58） */
.flat-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-height: 260px; align-items: start; }
.flat-body > .muted, .flat-body > .part-list { grid-column: 1 / -1; }
.flat-body figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.flat-body figcaption { font-size: 12px; color: var(--muted); }
.flat-svg { width: 100%; max-width: 230px; height: auto; display: block; }
.flat-svg .mm-base path { fill: var(--muted); fill-opacity: .24; stroke: var(--surface); stroke-width: 2; paint-order: stroke; }
.flat-svg .mm-hair path { fill: var(--muted); fill-opacity: .45; }
.flat-svg .heat-glow.t-mid path { fill: var(--load-mid); }
.flat-svg .heat-glow.t-low path { fill: var(--load-low); }
.flat-svg .heat-glow.t-ready path { fill: var(--load-ready); opacity: .3; }
.flat-svg .heat-glow.sore path { fill: var(--heat); }
.flat-body.picking .heat-glows { opacity: .3; }
.flat-svg .mm { cursor: pointer; outline: none; }
.flat-svg .mm path { transition: opacity .15s; }
.flat-svg .mm:hover path, .flat-svg .mm:focus-visible path { opacity: .72; }
/* 人体图改粗（spec [2026-10-23] §70）：练过亮、没练灰、说还酸红；选中描轮廓 */
/* 恢复度（§70 修改、§94 配色）：刚练过亮橙发光，恢复中琥珀由深到浅，可以练淡绿，最近没练灰 */
.flat-svg .mm.t-high path { fill: var(--heat-fill, var(--load-hot)); }
i.t-high { background: var(--load-hot); }
.flat-svg .mm.t-mid path, i.t-mid { fill: var(--load-mid); background: var(--load-mid); }
.flat-svg .mm.t-low path, i.t-low { fill: var(--load-low); background: var(--load-low); }
.flat-svg .mm.t-ready path, i.t-ready { fill: var(--load-ready); background: var(--load-ready); }
.flat-svg .mm.t-none path, i.t-none { fill: var(--load-none); background: var(--load-none); }
.mr-sets.t-high { color: var(--load-hot); } .mr-sets.t-mid, .mr-sets.t-low { color: var(--load-mid); }
.mr-sets.t-ready { color: var(--accent); } .mr-sets.t-none { color: var(--muted); } .mr-sets.sore { color: var(--heat); }
.sheet-big .v.t-high { color: var(--load-hot); } .sheet-big .v.t-mid, .sheet-big .v.t-low { color: var(--load-mid); }
.sheet-big .v.t-ready { color: var(--accent); } .sheet-big .v.sore { color: var(--heat); }
.mm-hint { grid-column: 1 / -1; margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.flat-body { position: relative; }
.mm-pick.bubble {
  position: absolute; z-index: 5; width: max-content; max-width: 220px; transform: translate(-50%, calc(-100% - 12px));
  box-shadow: 0 10px 24px rgb(15 42 29 / 45%); animation: fade .15s ease;
}
.mm-pick.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg);
  background: var(--sunken); border-right: 1px solid var(--line-hi); border-bottom: 1px solid var(--line-hi);
}
.flat-svg .mm.sore path { fill: var(--heat); }
.flat-svg .mm.sel path { stroke: var(--ink); stroke-width: 3; vector-effect: non-scaling-stroke; paint-order: stroke; }
.flat-body.picking .mm:not(.sel) path, .flat-body.picking .mm-base path { opacity: .38; }  /* 选中后其余变暗，轮廓范围一眼看出 */
.flat-svg .mm.t-none.sel path { fill: #7c8f85; }
.mm-pick { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--sunken); border: 1px solid var(--line-hi); }
.mm-pick > span { display: flex; flex-direction: column; min-width: 0; }
.mm-pick small { color: var(--muted); font-size: 12.5px; }
.legend i.mm-sore { background: var(--heat); }
.recover-box.sore { background: var(--heat-soft); }
.recover-box.sore b { color: var(--heat); }
.part-list { display: flex; flex-direction: column; gap: 10px; }
.part-group h3 { margin: 6px 0 2px; font-size: 13px; color: var(--muted); font-weight: 600; }
.all-muscles summary { cursor: pointer; font-size: 14px; color: var(--ink-2); padding: 6px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); justify-content: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
/* 更多指标折叠 */
.pt-head .link { white-space: nowrap; flex: none; }
.cal-cell { width: 100%; max-width: 44px; justify-self: center; }
.sheet-stack { display: flex; flex-direction: column; gap: 12px; }

/* 今天的版本（spec [2026-10-23] §18 需求 3） */
.tv { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.tv-head { display: flex; flex-direction: column; gap: 8px; }
.tv-why { margin: 0; padding-left: 18px; font-size: 14px; }
.tv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; }
.tv-grid .plan-items { padding-left: 16px; margin: 4px 0 0; }

/* 每组的重量和次数、下次目标（spec [2026-10-23] §18 需求 4） */
.sets-form { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.sets-form summary { cursor: pointer; font-size: 14px; color: var(--ink-2); }
.sets-ex { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.sets-name { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.sets-grid { display: flex; flex-direction: column; gap: 6px; }
.sets-grid label { display: grid; grid-template-columns: 44px 1fr 14px 1fr; align-items: center; gap: 6px; font-size: 13px; }
.sets-grid input { min-width: 0; padding: 8px; }
.next-target { font-size: 13px; margin-top: 2px; color: var(--ink); }
.next-target.up { color: var(--good, var(--ink)); font-weight: 600; }
.next-target.down { color: var(--warn); }

/* 触发型调整的提醒（spec [2026-10-23] §18 需求 5） */
.triggers { display: flex; flex-direction: column; gap: 12px; }
.triggers:empty { display: none; }
.trigger { display: flex; flex-direction: column; gap: 10px; }
.trigger p { margin: 2px 0 0; }

/* 目标进度（spec [2026-10-23] §18 需求 6） */
.goal-box:empty { display: none; }
.goal { display: flex; flex-direction: column; gap: 10px; }
.goal p { margin: 0; }
.goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.goal-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.goal-nums div { display: flex; flex-direction: column; gap: 2px; background: var(--neutral-soft); border-radius: 12px; padding: 8px 4px; }
.goal-nums b { font-size: 20px; }
.tone-good { color: var(--good); }
.tone-warn { color: var(--warn); }

/* ==== 白色基调的赛博风、运动橙红主色（spec [2026-10-23] §28，取代 §27 的颜色；版式沿用 §27）：放在最后，统一覆盖上面的组件 ==== */
svg.i { stroke-width: 1.7; }
body {
  background:
    radial-gradient(55% 35% at 100% -6%, rgb(18 183 106 / 9%), transparent 65%),
    radial-gradient(50% 35% at -12% 106%, rgb(226 184 102 / 5%), transparent 65%),
    linear-gradient(rgb(15 42 29 / 3.2%) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgb(15 42 29 / 3.2%) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg);
  background-attachment: fixed;
}
.bar { background: color-mix(in srgb, var(--bg) 84%, transparent); }
.bar-kicker { font-family: var(--mono); letter-spacing: .1em; font-size: 11.5px; color: var(--muted); }
.bar-title { font-weight: 750; letter-spacing: .02em; color: var(--ink); }
.avatar { background: var(--surface); color: var(--accent); font-weight: 700; font-family: var(--mono); box-shadow: inset 0 0 0 1px var(--line-hi), var(--shadow); }

/* 标题前的小标记：琥珀到橙的渐变菱形 */
.section-head h2 { font-weight: 750; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); flex: none; background: linear-gradient(135deg, var(--amber), var(--fire)); border-radius: 1px; }

/* 白色面板 */
.card, .tile, .move-card, .add, .add-mini, .msg-coach {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.tile:hover, .add:hover, .add-mini:hover, .move-card:hover { border-color: var(--line-hi); }
/* 关键面板四角的仪表角标 */
.hero, .plan-card, .goal, .msg-coach.inbox { position: relative; }
.hero::before, .hero::after, .plan-card::before, .plan-card::after,
.goal::before, .goal::after, .msg-coach.inbox::before, .msg-coach.inbox::after {
  content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid rgb(18 183 106 / 55%); pointer-events: none; z-index: 2; display: block;
}
.hero::before, .plan-card::before, .goal::before, .msg-coach.inbox::before { top: -1px; left: -1px; right: auto; bottom: auto; border-width: 1.5px 0 0 1.5px; border-radius: var(--radius) 0 0 0; }
.hero::after, .plan-card::after, .goal::after, .msg-coach.inbox::after { bottom: -1px; right: -1px; top: auto; left: auto; border-width: 0 1.5px 1.5px 0; border-radius: 0 0 var(--radius) 0; }

/* 按钮：切角，橙到红的渐变 */
.btn {
  font-weight: 700; letter-spacing: .05em; border-radius: 0; padding: 13px 22px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: linear-gradient(120deg, var(--fire), var(--fire-2)); color: var(--accent-ink);
  transition: transform .08s ease, filter .15s ease;
}
.btn:not(:disabled):hover { filter: brightness(1.06) saturate(1.05); }
.btn:not(:disabled):active { transform: scale(.97); }
.btn.ghost { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: inset 0 0 0 1px rgb(15 42 29 / 14%); }
.btn.small { padding: 9px 16px; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.btn.danger { clip-path: none; border-radius: var(--radius-sm); background: transparent; color: var(--heat); }
.btn.quiet { clip-path: none; background: transparent; }
.link, .section-head a { color: var(--accent); font-weight: 650; }

/* 选中态：淡描边加浅底 */
.pill { background: var(--surface); border-color: var(--line); font-weight: 550; border-radius: 6px; color: var(--ink-2); }
.pill.on { background: var(--accent-soft); color: var(--accent); border-color: var(--line-hi); font-weight: 700; }
.ask-chip { background: var(--surface); border-color: var(--line); border-radius: 6px; }
.chip { background: var(--sunken); font-family: var(--mono); letter-spacing: .02em; border-radius: 4px; color: var(--ink-2); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.attention { background: var(--heat-soft); color: var(--heat); }
.notice-line, .callout, .note { background: var(--warn-soft); color: var(--ink-2); border-left: 2px solid var(--warn); border-radius: 2px var(--radius-sm) var(--radius-sm) 2px; }
.notice-line .i, .callout .i { color: var(--warn); }

/* 今日战报：顶部一条琥珀、橙、玫红的渐变细线 */
.hero {
  border: 1px solid var(--line); border-radius: var(--radius); gap: 18px; overflow: hidden; box-shadow: var(--shadow-lg);
  background:
    linear-gradient(90deg, var(--amber), var(--fire) 45%, var(--rose)) top / 100% 2px no-repeat,
    linear-gradient(rgb(15 42 29 / 3%) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgb(15 42 29 / 3%) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(80% 90% at 100% 0%, rgb(18 183 106 / 7%), transparent 62%),
    var(--hero);
}
.hero .scan { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, transparent, rgb(18 183 106 / 4%) 50%, transparent); height: 40%; animation: scan 8s linear infinite; }
@keyframes scan { from { transform: translateY(-110%); } to { transform: translateY(260%); } }
.hero-kicker { gap: 10px; }
.hero-tag {
  display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 11.5px; letter-spacing: .16em;
  padding: 3px 9px; border: 1px solid var(--line-hi); border-radius: 3px; font-family: var(--mono);
}
.hero-main { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.hero-text { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hero .hero-title { margin: 0; font-size: 31px; line-height: 1.18; font-weight: 750; letter-spacing: .02em; overflow-wrap: anywhere; color: var(--ink); }
.hero .hero-push { color: var(--ink-2); font-size: 15px; font-weight: 500; line-height: 1.55; }
.hero .hero-why { color: var(--muted); font-size: 13px; margin-top: -6px; }
.hero p { color: var(--ink-2); }
.hero-stats { padding-top: 16px; border-top: 1px solid var(--hero-line); }
.hero-stat .k { font-size: 11.5px; letter-spacing: .06em; color: var(--muted); }
.hero-stat .v { font-size: 23px; font-weight: 600; font-family: var(--mono); white-space: nowrap; color: var(--ink); }
.hero-stat .v small { color: var(--muted); }
.hero-stat .v.state-good { color: var(--good); } .hero-stat .v.state-attention { color: var(--heat); }
.hero .wx, .hero .wx-row { border-top-color: var(--hero-line); color: var(--ink-2); }
.hero-alert { background: var(--warn-soft); color: var(--ink-2); }

/* 本周进度环：带刻度的仪表盘 */
.ring { --p: 0; width: 108px; height: 108px; border-radius: 50%; flex: none; display: grid; place-items: center; position: relative; background: none; }
.ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--amber), var(--fire) calc(var(--p) * 360deg), rgb(15 42 29 / 9%) 0);
  -webkit-mask: repeating-conic-gradient(#000 0 5deg, transparent 5deg 7.5deg), radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask: repeating-conic-gradient(#000 0 5deg, transparent 5deg 7.5deg), radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
}
.ring-in {
  width: 78px; height: 78px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1; position: relative; box-shadow: inset 0 0 0 4px var(--sunken);
}
.ring-in b { font-size: 30px; font-weight: 600; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.ring-in span { font-size: 11.5px; color: var(--muted); margin-top: 2px; font-family: var(--mono); }
.ring-in small { font-size: 10.5px; color: var(--accent); font-weight: 600; letter-spacing: .14em; margin-top: 4px; }

/* 数字：等宽 */
.tile-value, .stat .v, .sheet-big .v, .target-big .v, .fmeter-top b, .goal-nums b, .macro-grid b, .wx-main b, .meal b {
  font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--ink);
}
.tile-value small, .sheet-big .v small, .target-big .u { font-family: var(--font); color: var(--muted); }
.tile-name { letter-spacing: .03em; }
.goal-nums div { background: var(--sunken); border: 1px solid transparent; }
.goal-nums b { font-size: 24px; }
.goal-nums div:nth-child(2) { border-color: var(--line-hi); background: var(--accent-soft); }
.goal-nums div:nth-child(2) b { color: var(--accent); }
.tone-good { color: var(--good); } .tone-warn { color: var(--warn); }
.spark .line { stroke: var(--accent); stroke-width: 1.6; }
.spark .area { fill: rgb(18 183 106 / 8%); }
.spark .bar { fill: rgb(18 183 106 / 28%); } .spark .bar.last { fill: var(--accent); }
.spark .end { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--surface); }

/* 计划表与今天的版本 */
.pt { border-color: var(--line); border-radius: var(--radius-sm); }
.pt-row { font-variant-numeric: tabular-nums; }
.pt-day, .pt-min { font-family: var(--mono); }
.pt-row.today { background: linear-gradient(90deg, var(--accent-soft), transparent 80%); box-shadow: inset 2px 0 0 var(--accent); font-weight: 650; }
.pt-row.today .pt-day { color: var(--accent); font-weight: 700; }
.plan-items li::marker { color: var(--accent); font-family: var(--mono); }
.next-target.up { color: var(--good); }
.tv-grid > div:last-child .plan-items { color: var(--ink); }
.tv-grid > div:last-child > .muted { color: var(--accent); font-weight: 700; }

/* 日历 */
.cal-cell { font-family: var(--mono); border-radius: 8px; }
.cal-cell.lit { background: var(--accent-soft); color: var(--accent); font-weight: 700; box-shadow: inset 0 0 0 1px rgb(18 183 106 / 40%); }
.cal-cell.today { box-shadow: inset 0 0 0 1px rgb(15 42 29 / 25%); color: var(--ink); }
.cal-cell.lit.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-cell.has:not(.lit) { background: var(--sunken); }
.dot-state.on { background: var(--accent); }

/* 底部导航 */
.tabs { background: rgb(255 255 255 / 90%); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tabs a { color: var(--muted); }
.tabs a.on { color: var(--accent); font-weight: 650; }
.tabs a.on .ti { color: var(--accent); }

/* 表单、弹层、对话 */
input, select, textarea { background: var(--surface); border-color: rgb(15 42 29 / 13%); border-radius: var(--radius-sm); color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search { background: var(--surface); border-color: rgb(15 42 29 / 13%); }
.sheet { border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -12px 40px rgb(15 42 29 / 50%); }
.sheet-overlay { background: rgb(15 42 29 / 55%); }
.sheet-head h2 { font-weight: 750; letter-spacing: .02em; }
.icon-btn { background: var(--sunken); color: var(--ink); }
.rpe button { background: var(--surface); border-color: var(--line); font-weight: 600; font-family: var(--mono); border-radius: 6px; }
.rpe button.on { background: var(--accent-soft); color: var(--accent); border-color: var(--line-hi); }
.msg-user { background: linear-gradient(120deg, var(--fire), var(--fire-2)); color: var(--accent-ink); border: 0; font-weight: 500; }
.send { background: linear-gradient(120deg, var(--fire), var(--fire-2)); color: var(--accent-ink); }
.send:disabled { background: var(--sunken); color: var(--muted); }
.welcome .mark-big { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line-hi); }
.starter { background: var(--surface); box-shadow: var(--shadow); }
.move-cover { background: linear-gradient(rgb(15 42 29 / 3.5%) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, rgb(15 42 29 / 3.5%) 1px, transparent 1px) 0 0 / 16px 16px, var(--sunken); }
.cover-mark { font-weight: 600; font-family: var(--mono); color: rgb(18 183 106 / 70%); }
.cover-level { background: rgb(255 255 255 / 85%); }
.wordmark { font-weight: 800; letter-spacing: .02em; }
.wordmark b { color: var(--accent); }
.meter { background: var(--sunken); }
.meter span, .progress span { background: linear-gradient(90deg, var(--amber), var(--fire)); }
.meter span.over { background: var(--heat); }
.add-icon, .plan-icon { background: var(--accent-soft); color: var(--accent); }

/* 打卡成功的庆祝画面 */
.cheer {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(circle at 50% 45%, rgb(18 183 106 / 12%), rgb(255 255 255 / 94%) 60%); text-align: center; padding: 24px;
  animation: cheer-out 2.4s ease forwards; cursor: pointer;
}
.cheer-burst {
  width: 128px; height: 128px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), var(--fire) 50%, var(--fire-2)); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgb(18 183 106 / 8%), 0 18px 50px rgb(18 183 106 / 30%); animation: cheer-pop .5s cubic-bezier(.2, 1.6, .4, 1);
}
.cheer-burst .i { width: 64px; height: 64px; stroke-width: 2.2; }
.cheer-title { font-size: 32px; font-weight: 750; color: var(--ink); letter-spacing: .08em; }
.cheer p { font-size: 15px; color: var(--accent); font-weight: 600; font-family: var(--mono); }
@keyframes cheer-pop { from { transform: scale(.3); opacity: 0; } }
@keyframes cheer-out { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* 完成反馈（spec [2026-10-23] §92）：减少动态效果时上面的全局规则会关掉这些动画 */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.ring { transition: --p .9s cubic-bezier(.2, .8, .2, 1); }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }
.flash {
  position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top, 0px)); z-index: 55; transform: translateX(-50%);
  width: min(92vw, 380px); padding: 10px 14px; border-radius: 14px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--accent); box-shadow: 0 10px 30px var(--accent-glow); font-size: 14px;
  animation: flash-in .35s cubic-bezier(.2, 1.4, .4, 1), cheer-out 2.4s ease forwards;
}
.flash span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flash b { color: var(--accent); }
@keyframes flash-in { from { transform: translate(-50%, -24px); opacity: 0; } }
.set-row { position: relative; }
.set-row.pop { animation: row-pop .6s ease; }
.set-row.pop .live-done { animation: check-pop .45s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes row-pop { 0% { background: var(--accent-glow); } 100% { background: var(--accent-soft); } }
@keyframes check-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.pr-tag {
  position: absolute; top: -7px; right: 30px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; font-weight: 700; line-height: 16px;
  background: var(--warn); color: var(--accent-ink); letter-spacing: .04em;
}
.live-card.all-done { opacity: .78; }
.live-card.all-done .live-head b { color: var(--accent); }
.done-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); vertical-align: -2px; }
.done-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-top: 4px; }
.done-hero .cheer-burst { width: 88px; height: 88px; }
.done-hero .cheer-burst .i { width: 44px; height: 44px; }
.done-title { font-size: 26px; font-weight: 750; letter-spacing: .06em; color: var(--ink); }
.live-sum.done-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.done-sum b { font-size: 22px; }
.pr-list { display: flex; flex-direction: column; gap: 8px; }
.pr-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); }
.pr-item b { color: var(--ink); display: block; }
.done-week { display: flex; align-items: center; gap: 14px; }
.done-week p { margin: 0; color: var(--ink-2); }
/* 个人中心目标进度（§93） */
.goal-progress { display: flex; flex-direction: column; gap: 8px; }
.goal-progress p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.goal-progress b { color: var(--accent); }
.goal-bar { position: relative; height: 10px; border-radius: 6px; background: var(--sunken); margin: 6px 4px 2px; }
.goal-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--amber), var(--fire)); transition: width 1s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 12px var(--accent-glow); }
.goal-dot { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--surface); border: 2px solid var(--line-hi); }
.goal-dot.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.goal-won .done-hero p { color: var(--ink-2); margin: 0; }

/* 对话里的管家消息、今日战报里的入口（spec [2026-10-23] §26） */
.hero .hero-inbox { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 750; text-decoration: none; font-size: 14px; }
.hero .hero-inbox span { flex: 1; }
.msg-coach.inbox { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); gap: 12px; }
.inbox-head { display: flex; align-items: center; gap: 8px; }
.inbox-head .i { color: var(--accent); }
.inbox-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.inbox-list li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.cc-tag { font-size: 11px; font-weight: 850; text-align: center; padding: 3px 0; border-radius: 4px; transform: var(--slant); background: var(--accent-soft); color: var(--accent); }
.cc-tag.changed { background: var(--heat-soft); color: var(--heat); }
.cc-tag.removed { background: var(--sunken); color: var(--muted); }
.cc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inbox-pending { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.inbox-item { display: flex; flex-direction: column; gap: 6px; }
.inbox-item p { margin: 0; }
.inbox-result { display: flex; flex-direction: column; gap: 8px; }

/* 数据页：重要指标没数据时、自己记一条、计算类怎么改（spec [2026-10-23] §26） */
.tile.empty { cursor: default; gap: 8px; justify-content: space-between; align-items: stretch; text-align: left; }
.tile.empty .btn { align-self: flex-start; }
.record-box { display: flex; flex-direction: column; gap: 12px; }
.record-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; align-items: end; }
.record-form .btn { grid-column: 1 / -1; }
.row-item.reading { cursor: default; }
.row-item.reading input { padding: 8px 10px; }
.danger-link { color: var(--heat); }
.calc-from { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.calc-from p { margin: 0; }
.tile.empty .btn .i { color: currentColor; }
.move-cover[class*="p-"], .empty-video[class*="p-"] { background: linear-gradient(rgb(15 42 29 / 3.5%) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, rgb(15 42 29 / 3.5%) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(160deg, #eff6f2, #f8fbf9); color: var(--ink-2); }

/* ==== 精简（spec [2026-10-23] §29）：本周一条、今天的训练一张卡、还缺的指标合成一行 ==== */
.tv { display: flex; flex-direction: column; gap: 14px; border-top: 0; padding-top: 0; }
.tv .tv-head { display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tv .tv-head h3 { margin: 0; font-size: 19px; }
.tv .tv-head p { margin: 2px 0 0; }
.tv-adjusted { border-radius: 10px; background: var(--warn-soft); padding: 9px 12px; font-size: 13.5px; }
.tv-adjusted summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; color: var(--warn); font-weight: 650; }
.tv-adjusted summary::-webkit-details-marker { display: none; }
.tv-adjusted summary span { flex: 1; }
.tv-adjusted summary em { font-style: normal; font-weight: 500; font-size: 12.5px; }
.tv-adjusted[open] summary .i:last-child { transform: rotate(90deg); }
.tv-adjusted p { margin: 8px 0 0; line-height: 1.6; }
.tv-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.tv-list li small { display: block; font-size: 12px; margin-top: 1px; }
.lack-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin-top: 10px; cursor: pointer; }
.lack-row .row-end { color: var(--accent); font-weight: 650; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.inbox-why summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; }
.inbox-why summary::-webkit-details-marker { display: none; }
.inbox-why summary b { flex: 1; }
.inbox-why[open] summary .i { transform: rotate(90deg); }
.inbox-why p { margin: 6px 0 0; }
.lack-row { flex-wrap: nowrap; } .lack-row .row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

/* ==== 人体图按近 7 天组数分四档深浅（§30） ==== */
i.lv-none { background: #c9d8cf; }
i.lv-low { background: #1f7a47; }
i.lv-mid { background: var(--fire); }
i.lv-high { background: var(--fire-2); }
.muscle-rows { display: flex; flex-direction: column; gap: 2px; }
.muscle-row { display: grid; grid-template-columns: 136px 1fr 52px; align-items: center; gap: 10px; padding: 7px 2px; cursor: pointer; font-size: 14px; }
.muscle-row .mr-name { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.muscle-row .mr-name em { font-style: normal; font-size: 11px; color: var(--heat); background: var(--heat-soft); padding: 1px 6px; border-radius: 6px; }
.muscle-row .mr-bar { height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.muscle-row .mr-bar i { display: block; height: 100%; border-radius: 4px; }
.muscle-row .mr-sets { text-align: right; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.legend i.glow { background: var(--fire); box-shadow: 0 0 6px var(--fire); animation: glow 1.3s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .legend i.glow { animation: none; } }
.recover-box { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--good-soft); }
.recover-box b { font-size: 15.5px; color: var(--good); }
.recover-box.recovering, .recover-box.today { background: var(--warn-soft); }
.recover-box.recovering b, .recover-box.today b { color: var(--warn); }
.recover-box.sore { background: var(--heat-soft); }
.recover-box.sore b { color: var(--heat); }
.recover-box p { margin: 0; line-height: 1.6; }
.rest-list { display: flex; flex-wrap: wrap; gap: 8px; }
.rest-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--warn-soft); cursor: pointer; font-size: 13.5px; }
.rest-chip small { color: var(--warn); font-size: 12px; }
.rest-chip.sore { background: var(--heat-soft); } .rest-chip.sore small { color: var(--heat); }

/* ==== 动作页按部位收纳、配图（spec [2026-10-23] §32） ==== */
.move-groups { display: flex; flex-direction: column; gap: 22px; }
.move-group { display: flex; flex-direction: column; gap: 10px; }
.move-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px; }
.move-group-head h2 { margin: 0; font-size: 17px; display: flex; align-items: baseline; gap: 8px; }
.move-group-head h2 small { font-size: 12.5px; font-weight: 500; color: var(--muted); font-family: var(--mono); }
.move-group-head .link.open .i { transform: rotate(-90deg); }
.move-cover .move-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 8px; }
.move-figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.move-frames { display: grid; gap: 8px; grid-template-columns: 1fr; }
.move-frames.n2 { grid-template-columns: 1fr 1fr; }
.move-frames img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.move-figure figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.move-cover.p-拉伸放松, .empty-video.p-拉伸放松 { color: var(--ink-2); }


/* ==== 首页：鼓励的话、今日任务、战报、本周计划、日历（spec [2026-10-23] §33、§34） ==== */
.home-cheer { margin: -4px 2px 2px; font-size: 17px; font-weight: 650; line-height: 1.5; background: linear-gradient(100deg, var(--fire), var(--fire-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-card { display: flex; flex-direction: column; gap: 12px; }
.home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.home-head h3 { margin: 0; font-size: 17px; }
.mono { font-family: var(--mono); }
.task { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); }
.home-head + .task { border-top: 0; padding-top: 2px; }
.task[role="button"] { cursor: pointer; }
.task-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-hi); display: grid; place-items: center; color: var(--accent-ink); }
.task.done .task-check { background: linear-gradient(135deg, var(--amber), var(--fire)); border-color: transparent; }
.task-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.task-main b { font-size: 15.5px; }
.task.done .task-main b { color: var(--muted); }
.task-main span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-detail { padding: 4px 0 6px 36px; }
.report { display: flex; align-items: center; gap: 18px; }
.report .ring { flex: none; width: 104px; height: 104px; }
.rep-stats { display: grid; grid-template-columns: 1fr; gap: 8px; flex: 1; min-width: 0; }
.rep-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.rep-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.rep-stat span { font-size: 13px; color: var(--muted); }
.rep-stat b { font-family: var(--mono); font-size: 20px; font-weight: 650; }
.rep-stat b small { font-family: var(--font); font-size: 12px; color: var(--muted); font-weight: 500; }
.wc-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.wc-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 8px; border-radius: 10px; background: var(--sunken); color: var(--muted); cursor: pointer; min-width: 0; }
.wc-day i { font-style: normal; font-size: 11px; }
.wc-day b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.wc-wx { display: flex; flex-direction: column; align-items: center; gap: 1px; height: 30px; justify-content: center; color: var(--ink-2); }
.wc-wx small { font-size: 11px; font-family: var(--mono); }
.wc-wx.none { color: transparent; }
.wc-day.plan { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-hi); color: var(--ink-2); }
.wc-day.past { opacity: .75; }
.wc-day.done { background: linear-gradient(135deg, var(--amber), var(--fire)); color: var(--accent-ink); box-shadow: none; opacity: 1; }
.wc-day.done .wc-wx { color: var(--accent-ink); }
.wc-day.today { box-shadow: inset 0 0 0 2px var(--fire); color: var(--accent); }
.wc-day.today.done { color: var(--accent-ink); }
.wc-warn { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.wc-warn.bad { background: var(--heat); }
.wc-notes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.wc-notes li { padding: 8px 10px; border-radius: 9px; background: var(--warn-soft); line-height: 1.55; }
.wc-notes b { color: var(--ink); }
.wc-note { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 10px; border-radius: 9px; font-size: 13px; text-decoration: none; }
.wc-note.link { background: var(--sunken); color: var(--muted); }
.small { font-size: 13px; }
.cal-cell { position: relative; }
.day-wx { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 10px; background: var(--good-soft); }
.day-wx.caution { background: var(--warn-soft); } .day-wx.indoor, .day-wx.avoid { background: var(--heat-soft); }
.day-wx-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.day-wx p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* ==== 对话历史（spec [2026-10-23] §36） ==== */
.chat-tools { display: flex; gap: 6px; }
.row-item.on .row-title { color: var(--accent); }
.row-item.on .row-end { color: var(--accent); font-size: 12.5px; }

/* 战报最上面的安全提醒（spec [2026-10-23] §42） */
.rep-alert { margin: 0 0 10px; border-radius: 10px; background: var(--warn-soft); box-shadow: inset 0 0 0 1px rgb(242 193 78 / 28%); padding: 8px 12px; }
.rep-alert summary .i { color: var(--warn); }
.rep-alert summary { cursor: pointer; font-weight: 650; display: flex; align-items: center; gap: 6px; list-style: none; }
.rep-alert summary::-webkit-details-marker { display: none; }
.rep-alert p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; }

/* 饮食页：拍 / 填两个入口，吃了什么（含两周复盘），spec [2026-10-23] §43 */
.meal-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block: 16px; }
.meal-entry [role="status"] { grid-column: 1 / -1; }
.entry-btn { display: grid; justify-items: center; gap: 4px; padding: 18px 8px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer; }
.entry-btn b { font-size: 20px; }
.entry-btn span { font-size: 12px; color: var(--muted); }
.entry-btn.primary { background: linear-gradient(120deg, var(--fire), var(--fire-2)); color: var(--accent-ink); border: 0; }
.entry-btn.primary span { color: var(--accent-ink); opacity: .85; }
.kind-pick { display: grid; gap: 6px; margin-block: 12px; }
.sheet textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: inherit; resize: none; }
.meal-record { display: grid; gap: 4px; }
.diet-review { display: grid; gap: 4px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px dashed var(--line); }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.review-act { display: flex; gap: 12px; align-items: center; }
.meal-group { padding-block: 8px; }
.meal-group + .meal-group { border-top: 1px solid var(--line); }
.meal-group-head { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 4px; }
.meal-group.empty .meal-group-head { font-weight: 400; color: var(--muted); margin: 0; }
.meal-record > *, .meal-group > * { min-width: 0; }
.meal-group .row-item { min-width: 0; }
.kind-pick .pills { flex-wrap: wrap; overflow: visible; }
.meal-entry { margin-block: 16px 4px; }
.replace-hint { color: var(--accent); margin: 0; }

/* 按操作改计划的预览：只列变化的行（spec [2026-10-23] §45） */
.pv-rows { margin: 6px 0; padding-left: 1.1em; display: grid; gap: 4px; }

/* 生病追问（spec [2026-10-23] §46） */
.checkin { display: grid; gap: 8px; padding: 12px; margin: 0 0 10px; border-radius: 10px; background: color-mix(in srgb, var(--fire) 8%, transparent); }
.checkin .btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.checkin p { margin: 0; }

/* 提问和回答的时间（spec [2026-10-23] §50） */
.msg-time { display: block; font-size: 11px; line-height: 1.4; opacity: .7; font-variant-numeric: tabular-nums; }
.msg-user .msg-time { margin-top: 4px; text-align: right; }
.msg-coach .msg-time { color: var(--muted); opacity: 1; }

/* ==== 底部四个标签；首页问教练、其他页悬浮教练按钮、"我的"分三段（spec [2026-10-23] §59） ==== */
.ask-wrap { display: flex; flex-direction: column; gap: 6px; }
.ask-box {
  display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-hi); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow);
}
.ask-box .ask-icon { color: var(--accent); display: grid; place-items: center; }
.ask-box input { flex: 1; width: auto; min-width: 0; border: 0; box-shadow: none; background: transparent; color: var(--ink); font: inherit; font-size: 15.5px; padding: 10px 0; outline: none; }
.ask-box input::placeholder { color: var(--muted); }
.ask-box input:focus { box-shadow: none; }
.ask-box:focus-within { border-color: var(--accent); }
.ask-box .send { width: 40px; height: 40px; border-radius: 12px; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.ask-past { align-self: flex-end; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; background: none; border: 0; cursor: pointer; padding: 2px 4px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--line); }
.seg a { text-align: center; padding: 8px 0; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.seg a.on { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line-hi); }
.fab {
  position: fixed; z-index: 15; right: max(16px, calc((100vw - var(--max)) / 2 + 16px), env(safe-area-inset-right, 0px));
  bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 14px);
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px 10px 12px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(120deg, var(--fire), var(--fire-2)); color: var(--accent-ink); font-weight: 700; font-size: 14.5px;
  box-shadow: 0 8px 24px rgb(15 42 29 / 45%), 0 0 0 1px rgb(18 183 106 / 30%);
}
.fab[hidden] { display: none; }
.fab .ti { display: grid; place-items: center; }
.fab .ti svg.i { width: 20px; height: 20px; }
body.locked .fab { display: none; }
body:has(.fab:not([hidden])) .app { padding-bottom: calc(var(--tabs-h) + 84px + env(safe-area-inset-bottom, 0px)); }

/* ==== 夯：个人的从夯到拉榜单（spec [2026-10-23] §60） ==== */
a.pill { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.tier-board { display: flex; flex-direction: column; gap: 6px; }
.tier-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px; min-height: 56px; }
.tier-label { display: grid; place-items: center; border-radius: 10px; font-weight: 800; font-size: 16px; letter-spacing: .04em; text-align: center; padding: 4px; }
.t-hang { background: var(--fire-2); color: var(--accent-ink); }
.t-top { background: var(--accent); color: var(--accent-ink); }
.t-elite { background: #12b76a; color: var(--accent-ink); }
.t-npc { background: #c9d8cf; color: var(--ink); }
.t-la { background: #e1ebe5; color: var(--muted); }
.t-rest { background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.tier-items { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; padding: 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.tier-item { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 8px; background: var(--sunken); border: 1px solid var(--line); font-size: 13.5px; cursor: pointer; max-width: 100%; }
.tier-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tier-item:not(:has(img)) { padding-left: 10px; }
.tier-item img { width: 30px; height: 30px; border-radius: 6px; object-fit: contain; background: #fff; flex: none; }
.tier-empty { color: var(--muted); font-size: 12.5px; align-self: center; padding: 0 4px; }
.tier-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.tier-btn { border: 0; border-radius: 10px; padding: 12px 0; font: inherit; font-weight: 800; cursor: pointer; }
.tier-btn.on { outline: 2px solid var(--ink); outline-offset: 2px; }
.tier-add { flex-direction: row; gap: 8px; }
.tier-add input { flex: 1; min-width: 0; }
.tier-add-card { display: flex; flex-direction: column; gap: 8px; }
.tier-link { margin-left: 10px; font-size: 12.5px; font-weight: 650; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.tier-entry { display: flex; gap: 8px; flex-wrap: wrap; }

/* 战报和月历合成一张卡（spec [2026-10-23] §64） */
.rep-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 124px; padding: 3px; border-radius: 10px; }
.rep-seg button { border: 0; background: none; padding: 5px 0; border-radius: 8px; color: var(--muted); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.rep-seg button.on { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line-hi); }
.rep-body { display: grid; gap: 16px; }
.cal-cell.wk:not(.lit) { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.home-alerts { display: grid; gap: 8px; }
.home-alerts .rep-alert { margin: 0; }

/* 夯拉榜（spec [2026-10-23] §66）和个人中心（§65） */
.seg.seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tier-item small { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.tier-item.voted { box-shadow: inset 0 0 0 1px var(--accent); }
.tier-dist { display: grid; gap: 6px; margin: 4px 0 12px; }
.td-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 28px; align-items: center; gap: 8px; font-size: 13px; }
.td-bar { height: 10px; border-radius: 5px; background: var(--sunken); overflow: hidden; }
.td-bar i { display: block; height: 100%; border-radius: 5px; }
.td-n { font-family: var(--mono); text-align: right; color: var(--muted); }
.tier-similar:empty { display: none; }
.tier-similar { display: grid; gap: 8px; justify-items: start; }
.me-head { display: grid; gap: 10px; }
.me-head .profile-head .link { margin-left: auto; align-self: center; }
.me-line { margin: 0; font-weight: 600; }
.me-sum .caption { margin: 2px 0 0; }
.me-more { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.me-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; font-weight: 650; }
.me-more > summary::-webkit-details-marker { display: none; }
.me-more > summary .i { transition: transform .2s; transform: rotate(90deg); }
.me-more[open] > summary .i { transform: rotate(-90deg); }
.me-more-body { display: flex; flex-direction: column; gap: 16px; padding: 0 12px 14px; }

/* 训练记录器（spec [2026-10-23] §71） */
.live { display: flex; flex-direction: column; gap: 12px; padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
.live-bar .who span { font-size: 12.5px; }
.live-total { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 22px; letter-spacing: .02em; color: var(--accent); }
.live-status:empty { display: none; }
.live-status { color: var(--heat); font-size: 13px; }
.live-list { display: flex; flex-direction: column; gap: 12px; }
.live-coach { display: flex; flex-direction: column; gap: 6px; border-left: 3px solid var(--accent); }
.live-coach-head { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.live-coach p { margin: 0; }
.live-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.live-quick { flex-wrap: wrap; }
.live-say { display: flex; gap: 8px; }
.live-say input { flex: 1; min-width: 0; }
.live-card { display: flex; flex-direction: column; gap: 10px; }
.live-head { display: flex; align-items: center; gap: 4px; }
.live-head .row-main { flex: 1; min-width: 0; }
.live-head b { font-size: 16px; }
.set-list { display: flex; flex-direction: column; gap: 6px; }
.set-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 14px minmax(0, 0.8fr) 66px 40px 26px; align-items: center; gap: 6px; padding: 4px 6px; border-radius: var(--radius-sm); }
.live-card:has(.live-timed) .set-row { grid-template-columns: 22px minmax(0, 1fr) 22px 40px 26px; }
.set-row.done { background: var(--accent-soft); }
.set-n { font-family: var(--mono); color: var(--muted); text-align: center; }
.unit { color: var(--muted); font-size: 13px; text-align: center; }
.live-in { width: 100%; min-width: 0; padding: 8px 6px; text-align: center; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 16px; }
.set-row.done .live-in { color: var(--accent); }
.live-time { display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 100%; border: 1px solid var(--line); background: var(--sunken); color: var(--muted); border-radius: 8px; padding: 7px 7px; font: inherit; font-size: 12px; font-family: var(--mono); cursor: pointer; white-space: nowrap; }
.live-time.running { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.live-time.has { color: var(--ink-2); }
.live-time:disabled { opacity: .55; cursor: default; }
.live-done { width: 40px; height: 36px; border-radius: 10px; border: 1px solid var(--line-hi); background: var(--sunken); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.live-done[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.live-x { width: 26px; height: 26px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.live-timed { display: flex; }
.live-rest { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--surface); border-top: 1px solid var(--line-hi); box-shadow: var(--shadow-lg); }
.live-rest > div:first-child { display: flex; flex-direction: column; }
.live-rest b { font-family: var(--mono); font-size: 26px; color: var(--accent); font-variant-numeric: tabular-nums; }
.live-rest-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.live-entry { display: flex; align-items: center; gap: 12px; }
.live-entry.on { box-shadow: inset 0 0 0 1px var(--line-hi); }
.live-entry .row-main { flex: 1; min-width: 0; }
.live-none { display: flex; flex-direction: column; gap: 12px; }
.live-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.live-sum > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--sunken); }
.live-sum b { font-family: var(--mono); font-size: 20px; }
.rpe-pick { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.rpe-pick button { border: 1px solid var(--line); background: var(--sunken); color: var(--ink-2); border-radius: 8px; padding: 8px 0; font: inherit; font-family: var(--mono); cursor: pointer; }
.rpe-pick button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---- 夯榜（spec [2026-10-23] §72）：搜索热点、转盘、榜单页、条目详情 ---- */
.rk-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.rk-search:focus-within { border-color: var(--line-hi); }
.rk-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; padding: 12px 0; outline: none; }
.rk-hot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rk-hot-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; margin-right: 2px; }
.rk-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.rk-chip b { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.rk-chip b.hi { color: var(--fire-2); }
.rk-flag { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 0 4px; border-radius: 4px; }
.rk-flag.f-hot { background: var(--heat-soft); color: var(--heat); }
.rk-flag.f-new { background: var(--accent-soft); color: var(--accent); }
.rk-flag.f-up { background: var(--warn-soft); color: var(--warn); }
.rk-results { display: grid; gap: 6px; }
.rk-hit { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.rk-hit-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rk-hit small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.rk-none { color: var(--muted); font-size: 13px; padding: 12px 2px; }

.rk-ring-wrap { display: grid; gap: 10px; }
.rk-ring { position: relative; height: 470px; perspective: 1100px; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; overflow: hidden; margin: 0 -16px; }
.rk-ring:focus-visible { box-shadow: inset 0 0 0 2px var(--line-hi); border-radius: var(--radius); }
.rk-card { position: absolute; top: 4px; left: 50%; width: min(78%, 360px); margin-left: calc(min(78%, 360px) / -2); height: 456px; box-sizing: border-box; padding: 14px 14px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; will-change: transform; transform-style: preserve-3d; backface-visibility: hidden; cursor: grab; }
.rk-card.on { border-color: var(--line-hi); box-shadow: var(--shadow-lg); }
.rk-card-head { display: flex; align-items: center; gap: 10px; }
.rk-card-head > div { flex: 1; min-width: 0; }
.rk-card-head h2 { margin: 0; font-size: 17px; text-wrap: balance; }
.rk-card-head small { color: var(--muted); font-size: 12px; }
.rk-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--sunken); display: grid; place-items: center; font-size: 18px; flex: none; }
.rk-all { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 13px; font-weight: 650; text-decoration: none; }
.rk-rows { display: flex; flex-direction: column; min-height: 0; overflow: hidden; flex: 1; justify-content: space-evenly; }
.rk-row { display: grid; grid-template-columns: 22px 56px minmax(0, 1fr) auto auto 30px; align-items: center; gap: 8px; padding: 7px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
.rk-row.wait { color: var(--ink-2); }
.rk-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* 配图和说明（§80） */
.rk-pic { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--sunken); display: block; }
img.rk-pic, .rk-hero-pic { background-color: #fff; } /* 透明底的图在深色页面上也看得见 */
.rk-pic.none { display: grid; place-items: center; font-size: 20px; }
.rk-pic.sm { width: 32px; height: 32px; border-radius: 8px; font-size: 15px; flex: none; }
.rk-label { display: grid; gap: 1px; min-width: 0; }
.rk-row .rk-pic { width: 56px; height: 56px; border-radius: 12px; }
.rk-row .rk-name, .rk-line .rk-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.rk-desc { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-kind { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: 1px; }
.rk-no { font-family: var(--mono); font-weight: 800; font-size: 13px; color: var(--muted); text-align: center; }
.rk-no.r1 { color: var(--fire-2); }
.rk-no.r2 { color: var(--accent); }
.rk-no.r3 { color: var(--rose); }
.rk-sc { font-family: var(--mono); font-weight: 700; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.rk-tr { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.rk-tr.up { color: var(--accent); }
.rk-tr.down { color: var(--heat); }
.rk-tr.new { color: var(--warn); }
.rk-tag { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.rk-tag.big { font-size: 14px; padding: 3px 10px; border-radius: 7px; }
.rk-tag.t-wait { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.rk-quote { font-size: 12.5px; color: var(--ink-2); background: var(--sunken); border-radius: 8px; padding: 6px 10px; margin: 4px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-quote b { color: var(--muted); font-weight: 600; }
.rk-ctl { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.rk-dots { display: flex; gap: 6px; }
.rk-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--line-hi); opacity: .5; cursor: pointer; transition: width .2s; }
.rk-dots button.on { width: 22px; background: var(--accent); opacity: 1; }

.rk-bar { display: flex; align-items: center; gap: 10px; }
.rk-bar h2 { flex: 1; margin: 0; font-size: 18px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-list { display: grid; gap: 6px; }
.rk-line { display: grid; grid-template-columns: 26px 44px minmax(0, 1fr) auto auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rk-line .rk-name { font-weight: 600; }
.rk-right { display: grid; justify-items: end; }
.rk-meta { grid-column: 3 / -1; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-pending { display: grid; gap: 6px; }
.rk-pending h3 { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.rk-pending a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px dashed var(--line); color: var(--ink-2); text-decoration: none; font-size: 14px; }
.rk-pending a .rk-label { flex: 1; }
.rk-pending small { color: var(--muted); white-space: nowrap; }

.rk-item { display: flex; flex-direction: column; gap: 14px; }
.rk-hero h1 { margin: 0 0 8px; font-size: 24px; text-wrap: balance; }
.rk-hero-pic { width: 100%; max-height: 220px; object-fit: contain; border-radius: var(--radius); margin-bottom: 12px; display: block; background: var(--sunken); }
.rk-hero-desc { margin: -2px 0 10px; color: var(--ink-2); font-size: 14.5px; }
.rk-credit { margin: -6px 0 10px; }
.rk-plan { display: grid; gap: 8px; }
.rk-plan h3 { margin: 6px 0 0; font-size: 15px; }
.rk-plan p { margin: 0; font-size: 14px; line-height: 1.6; }
.rk-plan ul { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }
.rk-plan-day { padding: 8px 10px; border-radius: var(--radius-sm); background: var(--sunken); }
.rk-plan .btn { justify-self: start; margin-top: 6px; }
.rk-score { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rk-big { font-family: var(--mono); font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rk-score small { color: var(--muted); font-size: 13px; }
.td-name { font-weight: 700; }
.rk-vote-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rk-act { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.rk-act:hover { color: var(--ink-2); background: var(--sunken); }
.rk-act.on { color: var(--accent); }
.rk-act:disabled { cursor: default; opacity: .7; }
.rk-comments { display: grid; gap: 10px; }
.rk-cm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rk-cm-head h3 { margin: 0; font-size: 16px; }
.rk-cm-head .pills { margin: 0; padding: 0; }
.rk-compose { display: flex; gap: 8px; align-items: flex-end; }
.rk-compose textarea { flex: 1; min-width: 0; resize: vertical; }
.rk-cm-sub { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rk-count { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.rk-cm { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.rk-cm p { margin: 0; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.rk-who { display: flex; align-items: baseline; gap: 8px; }
.rk-who b { font-size: 13px; color: var(--ink-2); }
.rk-who small { color: var(--muted); font-size: 12px; }
.rk-who em { font-style: normal; font-size: 11px; color: var(--accent); background: var(--accent-soft); padding: 0 5px; border-radius: 4px; }
.rk-acts { display: flex; gap: 4px; margin-left: -6px; }
.rk-foot { display: flex; justify-content: center; }
@media (max-width: 420px) { .rk-ring { height: 450px; } .rk-card { height: 436px; width: 82%; margin-left: -41%; } }
@media (prefers-reduced-motion: reduce) { .rk-dots button { transition: none; } }
/* 指标解读的自动调整（§84）：原因和"不用这样调" */
.cc-extra { display: grid; gap: 6px; margin-top: 4px; }
.cc-extra p { margin: 0; font-size: 12.5px; line-height: 1.5; }
.cc-extra .btn { justify-self: start; }

/* ==== 界面改版（spec [2026-10-23] §104）：放在最后统一覆盖。正文区不要网格背景；卡片靠明暗和柔和阴影分层、不描边；
   大数字细字重；小标题小字号加字距；绿色只留给主按钮和关键数字 ==== */
body {
  background:
    radial-gradient(55% 35% at 100% -6%, rgb(18 183 106 / 6%), transparent 65%),
    var(--bg);
  background-attachment: fixed;
}
.card { border-color: transparent; border-radius: 18px; box-shadow: inset 0 1px 0 rgb(15 42 29 / 4.5%), 0 10px 30px rgb(15 42 29 / 35%); }
.label { font-size: 11px; letter-spacing: .14em; color: var(--muted); font-weight: 500; }
.num { font-variant-numeric: tabular-nums; font-family: var(--mono); }
.accent, .accent-text { color: var(--accent); }
.thin-bar { height: 3px; border-radius: 2px; background: rgb(15 42 29 / 6%); overflow: hidden; }
.thin-bar span { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .4s cubic-bezier(.2, .8, .2, 1); }

/* 顶栏：夯榜入口在头像左边 */
.bar-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgb(15 42 29 / 5%); color: var(--ink-2); flex: none; }
.bar-icon .ti { display: grid; place-items: center; }
.bar-icon svg.i { width: 18px; height: 18px; }

/* 首页三块 */
.hc { gap: 12px; padding: 18px; }
.hc-head { display: flex; justify-content: space-between; align-items: center; }
.hc-tag { font-size: 11px; color: var(--warn); letter-spacing: .04em; }
.hc-title { font-size: 21px; font-weight: 650; }
.hc-meta { font-size: 13px; color: var(--ink-2); margin-top: -6px; }
.hc-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hc-move { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12px; color: var(--ink-2); }
.hc-move span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { width: 100%; aspect-ratio: 1; border-radius: 14px; object-fit: cover; background: var(--sunken); }
.thumb.none, .lf-img.none { display: grid; place-items: center; color: var(--muted); }
.hc-toggle { align-self: center; font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.hc-detail { display: flex; flex-direction: column; gap: 10px; }
.hc-more { align-self: flex-end; font-size: 13px; }
.hc-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hc-nums div { display: flex; flex-direction: column; gap: 2px; }
.hc-nums b { font-size: 32px; font-weight: 300; line-height: 1.1; }
.hc-nums span { font-size: 12px; color: var(--muted); }
.hc-coach { display: flex; flex-direction: column; gap: 10px; }
.hc-label { padding: 2px 4px 0; }
.hc-msg { gap: 10px; padding: 14px 16px; }
.hc-msg p { font-size: 15px; line-height: 1.6; }

/* "＋"快捷记录 */
.fab { width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; justify-content: center; background: var(--accent); cursor: pointer;
  box-shadow: 0 10px 24px rgb(18 183 106 / 25%); }
.fab .ti svg.i { width: 22px; height: 22px; stroke-width: 2; }
.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qa-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 100px; padding: 14px;
  border: 0; border-radius: 16px; background: var(--sunken); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.qa-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.qa-text { display: flex; flex-direction: column; gap: 2px; }
.qa-text small { font-size: 11.5px; color: var(--muted); }
.qa-weight { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding: 14px; border-radius: 16px; background: var(--sunken); }
.qa-row { display: flex; align-items: center; gap: 10px; }
.qa-row .icon-btn { font-size: 20px; }
.qa-val { flex: 1; text-align: center; }
.qa-w { font-size: 32px; font-weight: 300; }
.qa-val small { font-size: 12px; color: var(--muted); margin-left: 4px; }

/* 训练页：计划 / 轨迹 / 动作库 */
.page-seg { margin-bottom: 4px; }
.day-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ds-day { height: 56px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; cursor: pointer; }
.ds-day i { font-style: normal; font-size: 11px; opacity: .75; }
.ds-day b { font-size: 12px; font-weight: 500; }
.ds-day.plan { background: var(--surface); color: var(--ink); }
.ds-day.done b::after { content: " ✓"; color: var(--accent); }
.ds-day.on { background: var(--accent); color: var(--accent-ink); }
.ds-day.on.done b::after { color: var(--accent-ink); }
.pd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 10px 2px 2px; }
.pd-head h2 { margin: 0; font-size: 21px; font-weight: 650; }
.pd-list { padding: 4px 16px; gap: 0; }
.pd-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.pd-item + .pd-item { border-top: 1px solid rgb(15 42 29 / 5%); }
.pd-item .thumb { width: 48px; height: 48px; flex: none; border-radius: 12px; }
.pd-item .row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pd-go { margin-top: 4px; }
.log-list { padding: 4px 16px; gap: 0; }
.log-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.log-row + .log-row { border-top: 1px solid rgb(15 42 29 / 5%); }
.log-day { width: 52px; flex: none; color: var(--ink-2); font-size: 13px; }
.log-row .row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }

/* 训练中：总进度、当前这一组 */
.live-prog { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); margin: 2px 2px 4px; }
.live-card.cur { box-shadow: inset 0 0 0 1px rgb(18 183 106 / 28%), 0 10px 30px rgb(15 42 29 / 35%); }
.set-row.cur { background: rgb(18 183 106 / 6%); border-radius: 10px; }
.live-focus { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 6px; }
.lf-top { display: flex; gap: 12px; align-items: center; }
.lf-top .row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lf-img { width: 72px; height: 72px; flex: none; border-radius: 14px; object-fit: cover; background: var(--sunken); }
.lf-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 6px; border-radius: 16px; background: var(--sunken); }
.step-btn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgb(15 42 29 / 5%); color: var(--ink); font-size: 20px; font-weight: 300; cursor: pointer; }
.step-val { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.step-val b { font-size: 24px; font-weight: 300; }
.step-val b.hot { color: var(--warn); }
.step-val small { font-size: 10.5px; color: var(--muted); letter-spacing: .1em; }
.lf-warn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13px; line-height: 1.5; }
.lf-warn > span { flex: 1 1 180px; }
.warn-ok { background: var(--warn); color: #ffffff; }
.warn-back { color: var(--warn); }
.lf-done { height: 54px; font-size: 17px; }

/* "还缺 N 项"卡片：.card 默认竖排，这一行要横排，名字太长时换行（§104 需求 1：原来两头被裁） */
.card.lack-row { flex-direction: row; }
.lack-row .row-sub { overflow-wrap: anywhere; }
/* 首页右下角的"＋"不能挡住最下面的内容 */
body:has(#fab:not([hidden])) .app { padding-bottom: calc(var(--tabs-h) + 96px + env(safe-area-inset-bottom, 0px)); }

/* §105 打卡记状态、没练也能打卡、轨迹 */
.state-pick > summary { cursor: pointer; color: var(--ink-2); font-size: 13px; padding: 4px 0; }
.st-body { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; }
.st-row { display: flex; flex-direction: column; gap: 6px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chips .pill { min-height: 36px; padding: 0 14px; border-radius: 18px; }
.log-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 16px; }
.log-stats > div { display: flex; flex-direction: column; gap: 4px; }
.log-stats b { font-size: 22px; font-weight: 300; }
.log-stats small { font-size: 12px; color: var(--muted); }
.log-row.rest .row-title { color: var(--muted); }
.cal-cell.lit.lv1 { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.cal-cell.lit.lv2 { background: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--ink); }
.cal-cell.lit.lv3 { background: var(--accent); color: var(--accent-ink); }
.log-row .log-day { white-space: nowrap; width: 64px; }
.cal-cell.rest:not(.lit) { background: rgb(15 42 29 / 6%); color: var(--muted); box-shadow: inset 0 0 0 1px rgb(15 42 29 / 12%); }
.pd-go .link, .pd-go .pd-rest { grid-column: 1 / -1; justify-self: center; color: var(--muted); padding: 6px 12px; font-size: 13px; }

/* §106 计划页直接改 */
.pd-tools { display: flex; gap: 6px; flex: none; }
.pd-item[role="button"] { cursor: pointer; }
.pd-edit { color: var(--muted); flex: none; display: grid; place-items: center; width: 28px; }
.pd-swap { flex: none; color: var(--accent); }
.pd-list > .swipe + .swipe .pd-item, .pd-list > .swipe + .pd-item, .pd-list > .pd-item + .swipe .pd-item { border-top: 1px solid rgb(15 42 29 / 5%); }
.pd-edited { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink-2); font-size: 13px; }
.pd-edited .link { flex: none; }
.pd-burn { font: inherit; font-size: 13px; color: var(--muted); padding: 0; text-decoration: underline dotted; text-underline-offset: 3px; }
.pd-head p { margin: 2px 0 0; }
.pd-burn-how { margin: 0 2px; }
.pd-warmup { border-radius: 12px; background: var(--surface); padding: 11px 14px; font-size: 14px; }
.pd-warmup summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font-weight: 600; }
.pd-warmup summary::-webkit-details-marker { display: none; }
.pd-warmup summary span { flex: 1; }
.pd-warmup summary em { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--ink-2); }
.pd-warmup[open] summary .i:last-child { transform: rotate(90deg); }
.pd-warmup ol { margin: 10px 0 6px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.55; }
.pd-warmup .caption { margin: 0; }
.scope-seg { width: 100%; }
.ie-head { display: flex; gap: 12px; align-items: center; }
.ie-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ie-steps .caption { align-self: center; }
.alt-list { display: flex; flex-direction: column; }
.alt-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; }
.alt-row + .alt-row { border-top: 1px solid rgb(15 42 29 / 5%); }
.alt-row .row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.danger-text { color: var(--heat); }
.flash-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.ie-head .thumb, .alt-row .thumb { width: 56px; height: 56px; flex: none; border-radius: 14px; }
.ie-head p { margin: 0; min-width: 0; }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* §107 场所与器材 */
.gear-form { display: flex; flex-direction: column; gap: 14px; }
.gear-later { align-self: center; color: var(--muted); }
.gear-row { display: flex; flex-direction: column; gap: 12px; }
.gear-row .row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gear-lack { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); }
.gear-lack p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.gear-row .row-sub { white-space: normal; }
.gear-tag { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 6px 0 14px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); font-size: 14px; box-shadow: inset 0 0 0 1px var(--line-hi); }
.gear-tag button { border: 0; background: none; color: inherit; width: 28px; height: 28px; display: grid; place-items: center; cursor: pointer; }
.gear-add { display: flex; gap: 8px; }
.gear-add input { flex: 1; min-width: 0; }

/* 打卡照片（§117） */
.photo-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; text-align: center; min-width: 0; }
.photo-slot b { font-size: 13px; font-weight: 600; }
.ps-msg { font-size: 11.5px; color: var(--muted); }
.ps-msg.error { color: var(--heat); }
.ps-view { position: relative; display: grid; place-items: center; width: 72px; aspect-ratio: 1; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); background: var(--sunken); color: var(--accent); overflow: hidden; }
.ps-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.log-photo { flex: none; padding: 0; border: 0; background: none; cursor: pointer; }
.log-thumb { display: block; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--sunken); }
.log-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 饮食（§118、§119 重排）：图、横向滑动、按顿一行 */
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; margin-inline: -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { flex: none; scroll-snap-align: start; }
.food-tile { --hue: 150; position: relative; display: grid; place-items: center; flex: none; overflow: hidden; border-radius: 12px;
  background: linear-gradient(145deg, hsl(var(--hue) 38% 22%), hsl(var(--hue) 30% 13%)); color: hsl(var(--hue) 70% 78%); }
.food-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.food-tile b { font-size: 1.05em; font-weight: 600; }
.food-tile.sm { width: 40px; height: 40px; border-radius: 10px; font-size: 15px; }
.food-tile.md { width: 52px; height: 52px; font-size: 19px; }
.food-tile.cover { width: 100%; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 14px 14px 0 0; font-size: 34px; }
.food-tile.hero { width: 100%; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; font-size: 48px; }
.food-tile.add { background: var(--sunken); color: var(--muted); border: 1.5px dashed var(--line); }
.img-credit { margin: -6px 0 0; font-size: 11.5px; }
.img-credit a { color: inherit; }

.meal-entry-wrap { display: flex; flex-direction: column; gap: 10px; }
.entry-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.entry-chip { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.entry-chip.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.entry-chip .i { flex: none; }
.usual-wrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.usual-label { margin: 0; }
.usual-card { display: flex; align-items: center; gap: 10px; max-width: 220px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.uc-text, .rc-text, .fh-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.uc-text b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-text small, .rc-text small { font-size: 12px; color: var(--muted); }

.meal-record { display: flex; flex-direction: column; gap: 0; padding-block: 6px; }
.diet-review { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 6px 0 8px; border: 0; border-radius: 12px; background: var(--accent-soft); }
.dr-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.dr-text b { font-size: 14px; color: var(--accent); }
.dr-text small { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.day-meals { display: flex; flex-direction: column; }
.dm-slot { display: flex; flex-direction: column; }
.dm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; width: 100%; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; }
.day-meals > * + * { border-top: 1px solid var(--line); }
.dm-row .row-main { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.dm-row .row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-kind { font-size: 11.5px; letter-spacing: .08em; color: var(--muted); }
.dm-row.planned .food-tile { opacity: .55; }
.dm-row.planned .row-title { color: var(--ink-2); }
.dm-row.empty { cursor: pointer; }
.dm-row .btn { flex: none; }

.recipes { display: flex; flex-direction: column; gap: 10px; }
.tag-row .pill { padding-inline: 14px; }
.recipe-card { display: flex; flex-direction: column; width: 152px; padding: 0; border: 0; border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow); color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.recipe-card .rc-text { padding: 9px 11px 11px; }
.rc-text b { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.recipe-card.new .food-tile { border-radius: 14px 14px 0 0; border: 0; }
.more-row { margin-top: 4px; }
.more-row .pill, .more-row .ask-chip { white-space: nowrap; }

.food-lines { display: flex; flex-direction: column; gap: 10px; }
.fl-list { display: flex; flex-direction: column; gap: 8px; }
.fl-row { display: flex; align-items: center; gap: 8px; }
.fl-name { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 14px; }
.fl-name b { font-weight: 600; overflow-wrap: anywhere; }
.fl-name small { font-size: 11.5px; }
.fl-row select { width: 76px; flex: none; }
.fl-g { display: flex; flex-direction: row; align-items: center; gap: 4px; flex: none; color: var(--muted); }
.fl-g input { width: 72px; }
.fl-total { margin: 0; font-size: 13px; }
.fl-hits { display: flex; flex-direction: column; gap: 4px; }
.fl-hit { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--sunken); color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.fl-hit small { font-size: 12px; }
.edit-foods { display: flex; flex-direction: column; gap: 8px; }
.edit-foods h3 { margin: 0; }
.pm-title { margin: 6px 0 0; font-size: 15px; }
.pm-row { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 14px; }
.pm-row > span { display: flex; flex-direction: column; min-width: 0; }
.pm-row small { font-size: 12px; }
.pm-row input { width: 108px; flex: none; }
.pm-row select { max-width: 62%; flex: none; }
.sheet-body > .pills, .sheet-body > textarea, .sheet-body > .qa-row { flex-shrink: 0; }

/* ==== 机甲 HUD（spec [2026-10-23] §121，取代 §104 的风格）：放在最后统一覆盖。黑绿底加 5% 六边形底纹；面板切角、左上绿色角标；
   一个颜色只管一件事：荧光绿主色、白完成、红强度、钛金搭子、紫脂肪（11-03 项目负责人看过橙、紫红后选了"夜视绿"）；数字用系统窄体；动效只有面罩呼吸、在线灯闪、破 PR 金边 ==== */
body {
  background:
    radial-gradient(70% 40% at 50% -8%, rgb(15 42 29 / 70%), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='31.2'%3E%3Cpath d='M9 0L18 5.2V15.6L9 20.8L0 15.6V5.2ZM9 20.8V31.2' fill='none' stroke='%23D4FF3A' stroke-width='.5' opacity='.05'/%3E%3C/svg%3E"),
    var(--bg);
  background-attachment: fixed;
}
.bar { background: color-mix(in srgb, var(--bg) 86%, transparent); }
.bar-kicker { font-family: var(--digits); font-weight: 700; letter-spacing: .18em; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.bar-title {
  font-weight: 900; letter-spacing: .08em; background: linear-gradient(180deg, var(--ink), var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.num, .hero-stat .v, .goal-nums b, .hc-nums b { font-family: var(--digits); font-variant-numeric: tabular-nums; }

/* 面板：小圆角、细边、渐变底，左上橙色角标（用背景画，不占伪元素） */
.card {
  border: 1px solid #e1ebe5; border-radius: 4px; box-shadow: 0 10px 30px rgb(15 42 29 / 35%);
  background:
    linear-gradient(var(--accent), var(--accent)) 5px 5px / 12px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 5px 5px / 2px 12px no-repeat,
    linear-gradient(165deg, rgb(236 236 236 / 95%), rgb(250 250 250 / 95%));
}
.cut { clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.section-head h2::before { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.btn { background: linear-gradient(180deg, var(--fire-2), var(--fire)); color: var(--accent-ink); letter-spacing: .12em; box-shadow: 0 0 16px rgb(18 183 106 / 30%); }
.btn:focus-visible { outline-offset: -4px; outline-color: var(--accent-ink); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px #b5c6bc; }
.pill, .ask-chip { border-radius: 2px; }
.thin-bar { border-radius: 0; background: #e1ebe5; }
.thin-bar span { border-radius: 0; background: repeating-linear-gradient(90deg, var(--accent) 0 9px, transparent 9px 11px); }

/* 底部导航：选中的标签上方一条发光橙线 */
.tabs { background: linear-gradient(180deg, #f8fbf9, #ffffff); border-top: 1px solid #e1ebe5; }
.tabs a { position: relative; color: #5b6b62; font-size: 12px; }
.tabs a.on { color: var(--accent); font-weight: 700; }
.tabs a.on::before { content: ""; position: absolute; top: 0; left: 50%; width: 40px; height: 2px; margin-left: -20px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* 分段：切角，选中的橙底 */
.seg { border-radius: 0; background: transparent; border: 0; padding: 0; gap: 6px; }
.seg a {
  border-radius: 0; border: 1px solid #d6e3db; background: #eff6f2; color: #4f5f56;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.seg a.on { background: linear-gradient(180deg, rgb(18 183 106 / 30%), rgb(18 183 106 / 8%)); border-color: var(--accent); color: var(--ink); box-shadow: inset 0 0 10px rgb(18 183 106 / 40%); }

/* "＋"快捷记录：六边形 */
.fab { border-radius: 0; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); box-shadow: none; color: var(--accent-ink);
  background: linear-gradient(180deg, var(--fire-2), var(--fire)); }

/* 搭子说：钛金条（§121 需求 4） */
.buddy-say { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--gold-line); background: var(--gold-soft); border-radius: 2px; }
.buddy-say-head { display: flex; align-items: center; gap: 8px; font-family: var(--digits); font-size: 11px; font-weight: 700; letter-spacing: .15em; color: var(--gold); }
.buddy-say p { margin: 0; color: var(--gold-2); font-size: 14.5px; line-height: 1.6; }
.buddy-say .hc-msg { background: transparent; border: 0; box-shadow: none; padding: 0; }
.buddy-say .hc-msg + .hc-msg { padding-top: 10px; border-top: 1px solid var(--gold-line); }

/* 搭子头盔（§121 需求 5） */
.mech { flex: none; display: block; }
.mech .visor { animation: visor 2.6s ease-in-out infinite; }
@keyframes visor { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 1.6s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.pr-new { animation: pr-sweep 1.2s ease-out 1; }
@keyframes pr-sweep { from { box-shadow: inset 0 0 0 1px var(--gold), 0 0 22px rgb(226 184 102 / 55%); } to { box-shadow: inset 2px 0 0 var(--gold); } }

/* 首页·练（§121 需求 4） */
.hc-kicker { font-family: var(--digits); font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--accent); }
.hc-top { display: flex; align-items: center; gap: 12px; }
.hc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hc .hc-title { font-size: 24px; font-weight: 900; letter-spacing: .02em; line-height: 1.25; }
.hc-parts { display: flex; flex-wrap: wrap; gap: 5px; }
.hc-parts span { font-size: 11.5px; padding: 1px 7px; border: 1px solid #4a5a51; color: var(--fire-2); background: rgb(18 183 106 / 8%); }
.hc-stats { display: flex; gap: 8px; }
.hc-stat { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 7px 9px; border: 1px solid #e1ebe5; background: rgb(255 255 255 / 60%); }
.hc-stat span { font-size: 10.5px; color: var(--muted); }
.hc-stat b { font-size: 19px; font-weight: 700; white-space: nowrap; }
.hc-stat small { font-size: 10.5px; color: var(--muted); font-weight: 400; }
.wk { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); }
.wk-ring { width: 76px; height: 76px; }
.wk-num { font-family: var(--digits); font-size: 15px; font-weight: 700; fill: var(--ink); }
.vitals { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.vt { display: flex; flex-direction: column; gap: 1px; padding: 9px 10px; border: 1px solid #e1ebe5; background: rgb(245 245 245 / 90%); border-top: 2px solid var(--gold); min-width: 0; }
.vt.hr { border-top-color: var(--heat); } .vt.wx { border-top-color: var(--muted); }
.vt-k { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt b { font-size: 19px; font-weight: 700; } .vt small { font-size: 10.5px; color: var(--muted); font-weight: 400; }
.vt.sleep b { color: var(--gold-2); } .vt.hr b { color: #b5361f; }
.vt-sub { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-list { gap: 12px; }
.mv-group { display: flex; flex-direction: column; gap: 6px; }
.mv-head { font-size: 13px; font-weight: 800; letter-spacing: .08em; padding-left: 8px; border-left: 3px solid var(--gold); color: var(--gold-2); }
.mv-head.main { border-left-color: var(--heat); color: #b5361f; }
.mv-warm { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.mv-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e1ebe5; background: rgb(255 255 255 / 55%); }
.mv-thumb { width: 38px; height: 38px; object-fit: cover; flex: none; background: var(--sunken); display: grid; place-items: center; color: var(--muted); }
.mv-cut { flex: none; font-family: var(--digits); font-size: 12px; font-weight: 700; color: var(--heat); padding: 2px 6px; border: 1px dashed var(--heat); }
.btn.go { letter-spacing: .3em; font-size: 16px; }

/* 对话页（§121 需求 5）：顶上三段，页头和搭子每条消息旁是头盔 */
.chat > .page-seg { margin-top: calc(10px + env(safe-area-inset-top, 0px)); }
.chat-bar { gap: 10px; align-items: center; }
.chat-bar .who span { display: inline-flex; align-items: center; gap: 4px; }
.msg-row { display: flex; gap: 8px; align-items: flex-start; }
.msg-row > .mech { margin-top: 2px; border: 1px solid #b5c6bc; background: #eff6f2; padding: 2px; box-sizing: content-box; }
.msg-row > .msg-coach { flex: 1; min-width: 0; border-radius: 2px; border-left: 2px solid var(--accent); }
.welcome > .mech { align-self: flex-start; }

/* 图鉴·食物（§121 需求 7） */
.fa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fa-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  border: 1px solid #e1ebe5; background: linear-gradient(165deg, rgb(236 236 236 / 95%), rgb(250 250 250 / 95%));
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); min-width: 0; }
.fa-card .food-tile { width: 100%; height: auto; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 2px; }
.fa-card b { font-size: 14.5px; }
.fa-card .num { font-size: 13px; color: var(--fire-2); } .fa-card .num small { color: var(--muted); }
.fa-head { display: flex; gap: 14px; align-items: center; }
.fa-head > div { min-width: 0; }
.fa-kcal { font-size: 30px; font-weight: 700; color: var(--fire-2); } .fa-kcal small { font-size: 12px; color: var(--muted); font-weight: 400; }
.fa-macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fa-macro { display: flex; flex-direction: column; padding: 8px 10px; border: 1px solid #e1ebe5; background: var(--sunken); }
.fa-macro span { font-size: 11px; color: var(--muted); }
.fa-macro b { font-size: 17px; } .fa-macro .p { color: var(--accent); } .fa-macro .c { color: var(--gold-2); } .fa-macro .f { color: var(--violet); }

/* 战绩·本周小结（§121 需求 6） */
.ws { gap: 12px; }
.ws-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; }
.ws-cell { display: flex; flex-direction: column; padding: 7px 9px; border: 1px solid #e1ebe5; background: rgb(255 255 255 / 60%); min-width: 0; }
.ws-cell b { font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-cell.done b { color: var(--good); }
.ws-cell span { font-size: 10.5px; color: var(--muted); }
.ws-cell small { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-bars { display: flex; align-items: flex-end; gap: 4px; height: 58px; }
.ws-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; }
.ws-bar span { display: block; width: 100%; background: #d6e3db; }
.ws-bar span.on { background: var(--good); }
.ws-bar.today span.on { background: var(--accent); box-shadow: 0 0 8px rgb(18 183 106 / 60%); }
.ws-bar i { font-style: normal; font-size: 10px; color: var(--muted); }
.ws-bar.today i { color: var(--accent); }
.pr-list { display: flex; flex-direction: column; gap: 5px; }
.pr-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #e1ebe5; background: rgb(245 245 245 / 90%); }
.pr-row.broke { border-color: var(--gold); background: linear-gradient(90deg, rgb(226 184 102 / 16%), rgb(245 245 245 / 90%)); box-shadow: inset 2px 0 0 var(--gold); }
.pr-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-row b { font-size: 15px; } .pr-row.broke b { color: var(--gold-2); }
.pr-badge { flex: none; font-size: 11px; font-weight: 800; padding: 1px 6px; background: var(--gold); color: #ffffff; }
.pr-day { font-size: 11px; color: var(--muted); }
.ws-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ws-photos .log-photo, .ws-photos .log-thumb { width: 100%; height: auto; aspect-ratio: 1; max-width: 100%; border-radius: 2px; }

/* 我（§121 需求 1、8） */
.me-rows { padding: 0; gap: 0; }
.me-row { display: flex; align-items: center; gap: 10px; padding: 13px 14px; text-decoration: none; color: var(--ink); font: inherit; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.me-row + .me-row { border-top: 1px solid #e1ebe5; }
.me-row span { font-size: 15px; } .me-row small { margin-left: auto; font-size: 12px; color: var(--muted); }
.me-row .i { color: var(--muted); }
.me-dot { width: 3px; height: 15px; flex: none; background: var(--accent); }
.me-dot.violet { background: var(--violet); } .me-dot.gold { background: var(--gold); }
.mem-list { display: flex; flex-direction: column; gap: 14px; }
.mem-group { display: flex; flex-direction: column; gap: 6px; }
.mem-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; border: 1px solid #e1ebe5; background: var(--sunken); }
.mem-row p { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.55; }
.mem-del { flex: none; color: var(--heat); font-size: 13px; }
.chat > .page-seg + .chat-bar { padding-top: 8px; }
/* 其余组件跟上机甲风：搜索框、弹出页小圆角；旧的四角标记让给面板背景里的角标 */
.search { border-radius: 2px; border-color: #d6e3db; }
.sheet { border-radius: 6px 6px 0 0; border-top: 1px solid rgb(18 183 106 / 45%); }
.hero::before, .hero::after, .plan-card::before, .plan-card::after, .goal::before, .goal::after { display: none; }
.food-tile.lg { width: 72px; height: 72px; border-radius: 2px; }
.food-tile.lg b { font-size: 26px; }

/* ==== 运动海报（spec [2026-10-23] §124，取代 §121 的机甲风格）：放在最后统一覆盖。黑底白字、大粗字、少卡片，
   内容区不铺面板、不画角标、不切角、不发光、不要底纹，靠大字、留白和细线分层；荧光黄绿只点关键处 ==== */
body { background: var(--bg); }
.bar { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.bar-kicker { font-family: var(--font); font-weight: 600; letter-spacing: .2em; font-size: 11px; color: var(--muted); }
.bar-title { font-size: 34px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }
.num, .hero-stat .v, .goal-nums b, .hc-nums b { font-family: var(--font); font-weight: 800; letter-spacing: -.02em; }
.section-head h2 { font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.section-head h2::before { display: none; }

/* 面板：不铺底色、不画角标，上面一根细线分开 */
.card { background: transparent; border: 0; border-top: 1px solid #e1ebe5; border-radius: 0; box-shadow: none; padding: 16px 0; }
.cut, .seg a, .fa-card, .fab, .btn, .btn.small { clip-path: none; }
.hero::before, .hero::after, .plan-card::before, .plan-card::after, .goal::before, .goal::after { display: none; }

/* 按钮：直角色块 */
.btn { border-radius: 0; background: var(--accent); color: var(--accent-ink); font-weight: 800; letter-spacing: .12em; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #b5c6bc; }
.btn.quiet { background: transparent; color: var(--ink-2); }
.btn.go { font-size: 17px; letter-spacing: .4em; padding: 16px 0; }
.pill, .ask-chip, .chip { border-radius: 0; }
.pill.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.thin-bar span { background: var(--accent); }
.search { border-radius: 0; border: 0; border-bottom: 1px solid #b5c6bc; background: transparent; }
.sheet { border-radius: 0; border-top: 2px solid var(--accent); }

/* 分段：下划线 */
.seg { gap: 18px; display: flex; border-bottom: 1px solid #e1ebe5; }
.seg a { flex: none; border: 0; background: transparent; color: var(--muted); padding: 8px 0 10px; font-size: 16px; font-weight: 800; box-shadow: none; margin-bottom: -1px; border-bottom: 3px solid transparent; }
.seg a.on { background: transparent; color: var(--ink); border-bottom-color: var(--accent); box-shadow: none; }

/* 底部导航 */
.tabs { background: #ffffff; border-top: 1px solid #e1ebe5; }
.tabs a.on { color: var(--accent); }
.tabs a.on::before { box-shadow: none; height: 3px; }

/* "＋"快捷记录：方块 */
.fab { border-radius: 0; background: var(--accent); color: var(--accent-ink); }

/* 首页·练：大标题、大数字，不画框 */
.hc-kicker { font-family: var(--font); font-weight: 700; letter-spacing: .2em; color: var(--accent); }
.hc .hc-title { font-size: 34px; font-weight: 900; letter-spacing: -.03em; line-height: 1.08; }
.hc-parts span { border: 0; background: transparent; color: var(--ink-2); padding: 0; font-size: 13px; }
.hc-parts span + span::before { content: "/ "; color: #8fa298; }
.hc-stats { gap: 22px; }
.hc-stat { flex: none; padding: 0; border: 0; background: transparent; }
.hc-stat b { font-size: 26px; }
.hc-stat:first-child b { color: var(--accent); }
.wk-num { font-family: var(--font); font-weight: 800; }
.vitals { gap: 0; border-top: 1px solid #e1ebe5; }
.vt { border: 0; border-top: 0; background: transparent; padding: 12px 10px 12px 0; }
.vt + .vt { border-left: 1px solid #e1ebe5; padding-left: 12px; }
.vt b { font-size: 22px; } .vt.sleep b { color: var(--ink); } .vt.hr b { color: var(--heat); }
.vitals .vt { cursor: pointer; } .vitals .vt-sub { font-size: 11.5px; margin: 0; }  /* §225；§224 的 .vt-sub 同名，压回小字 */
.vital-body { display: grid; gap: 14px; }
.vital-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vital-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vital-stats span { font-size: 12px; color: var(--muted); }
.vital-stats b { font-size: 18px; font-weight: 750; white-space: nowrap; } .vital-stats small { font-size: 11px; color: var(--muted); font-weight: 400; }
.vital-days { list-style: none; margin: 0; padding: 0; display: grid; }
.vital-days li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.vital-days li { align-items: center; } .vital-days li span { color: var(--ink-2); }
.vital-days b { font-size: 15px; font-weight: 700; } .vital-days small { font-size: 12px; color: var(--muted); font-weight: 400; }
.mv-head { border-left: 0; padding-left: 0; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.mv-head.main { color: var(--heat); }
.mv-row { border: 0; border-top: 1px solid #e4eee8; background: transparent; padding: 12px 0; }
.mv-row .row-title { font-size: 17px; font-weight: 800; }
.mv-thumb { background: #ebf3ee; }

/* IronM 的话：白字、左边一根黄绿线 */
.buddy-say { border: 0; border-left: 3px solid var(--accent); background: transparent; padding: 4px 0 4px 14px; border-radius: 0; }
.buddy-say-head { color: var(--accent); font-family: var(--font); }
.buddy-say p { color: var(--ink); }
.buddy-say .hc-msg + .hc-msg { border-top-color: #e1ebe5; }

/* 对话 */
.msg-row > .mech { border: 0; background: #f2f8f5; }
.msg-row > .msg-coach { border: 0; border-left: 2px solid var(--accent); border-radius: 0; background: #f4f9f6; box-shadow: none; }
.msg-user { background: var(--ink); color: #ffffff; border-radius: 0; }
.online-dot { box-shadow: none; }

/* 图鉴·食物、战绩、我 */
.fa-card { background: transparent; border: 0; border-top: 1px solid #e1ebe5; padding: 10px 0; }
.fa-card .num { color: var(--accent); }
.fa-macro { border: 0; background: transparent; padding: 0; }
.ws-cell { border: 0; background: transparent; padding: 0; }
.ws-cell b { font-size: 28px; } .ws-cell.done b { color: var(--accent); }
.ws-bar span.on { background: var(--ink); } .ws-bar.today span.on { background: var(--accent); box-shadow: none; }
.pr-row { border: 0; border-top: 1px solid #e4eee8; background: transparent; padding: 12px 0; }
.pr-row.broke { border-color: #e4eee8; background: transparent; box-shadow: none; }
.pr-row b { font-size: 18px; } .pr-row.broke b { color: var(--accent); }
.pr-badge { background: var(--accent); color: #ffffff; }
.pr-new { animation: none; }
.me-rows { border-top: 1px solid #e1ebe5; }
.me-row + .me-row { border-top-color: #e4eee8; }
.me-dot { display: none; }
.mem-row { border: 0; border-top: 1px solid #e4eee8; background: transparent; padding: 10px 0; }
.live-entry, .live-entry.on { border: 0; border-left: 3px solid var(--accent); background: transparent; box-shadow: none; }
/* §124 把圆角统一收成直角的那条已去掉（§175 回到圆角） */

/* 首页·干饭（§125）：今日余额大字、今天的饮食计划逐样列数量；图鉴·食谱两列卡片 */
.budget { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.bg-big { font-size: 64px; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.bg-big small { font-size: 16px; font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
.budget .thin-bar { height: 4px; margin-top: 4px; }
.bg-macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.bg-macro { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bg-macro span { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.bg-macro b { font-size: 24px; } .bg-macro small { font-size: 12px; color: var(--muted); font-weight: 600; }
.bg-macro.p b { color: var(--ink); } .bg-macro.f b { color: var(--violet); }
.bg-how { align-self: flex-start; font-size: 13px; margin-top: 4px; }
.tp-meta { margin: -4px 0 0; }
.today-plan { display: flex; flex-direction: column; }
.today-plan .diet-review { margin-bottom: 8px; }
.tp-list { display: flex; flex-direction: column; }
.tp-meal { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-top: 1px solid #e1ebe5; }
.tp-head { display: flex; align-items: center; gap: 10px; }
.tp-head b { font-size: 20px; font-weight: 900; }
.tp-kcal { font-size: 15px; font-weight: 800; color: var(--ink-2); }
.tp-head > :last-child { margin-left: auto; }
.tp-tag { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--accent); }
.tp-name { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.tp-eaten { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.tp-foods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tp-foods li { display: grid; grid-template-columns: minmax(0, 1fr) 64px 72px; gap: 8px; padding: 5px 0; font-size: 15px; }
.tp-foods li + li { border-top: 1px dashed #e4eee8; }
.tp-food { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-foods .num { text-align: right; font-weight: 700; color: var(--ink-2); }
.tp-meal.planned .tp-head b, .tp-meal.planned .tp-foods { color: var(--muted); }
.tp-meal.planned .tp-foods .num { color: var(--muted); }
.tp-none { font-size: 13px; color: var(--muted); }
.recipe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.recipe-grid .recipe-card { width: auto; min-width: 0; }
.recipe-grid .food-tile.cover { width: 100%; max-width: 100%; }

/* ==== 照 Nike Training Club 的感觉（spec [2026-10-23] §126，取代 §124 的黑底荧光）：放在最后统一覆盖。
   白底黑字、浅灰分隔线、黑色胶囊主按钮、浅灰胶囊标签；颜色留给照片；照片没下好之前是浅灰底，不用彩色色块加字 ==== */
body { background: var(--bg); color: var(--ink); }
.bar { background: rgb(255 255 255 / 94%); }
.bar-kicker { color: var(--muted); letter-spacing: .04em; font-weight: 600; }
.hc-kicker { color: var(--muted); letter-spacing: .02em; font-weight: 600; }
.card { border-top-color: #e1ebe5; }
.btn { border-radius: 999px; padding: 14px 24px; letter-spacing: .02em; font-weight: 700; background: var(--ink); color: var(--bg); }
.btn.small { border-radius: 999px; padding: 9px 16px; }
.btn.go { letter-spacing: .08em; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.quiet { background: transparent; color: var(--ink); }
.btn.danger { background: transparent; color: var(--heat); }
.pill, .ask-chip, .chip, .entry-chip { border-radius: 999px; background: #eef6f1; border-color: transparent; color: var(--ink); }
.pill.on, .entry-chip.primary { background: var(--ink); color: var(--bg); }
.fab { border-radius: 50%; background: var(--ink); color: var(--bg); box-shadow: 0 6px 20px rgb(15 42 29 / 18%); }
.tabs { background: rgb(255 255 255 / 96%); border-top: 1px solid #e1ebe5; }
.tabs a { color: #8fa298; } .tabs a.on { color: var(--ink); }
.tabs a.on::before { display: none; }
.seg a { color: #8fa298; } .seg a.on { color: var(--ink); border-bottom-color: var(--ink); }
.search { border-bottom: 1.5px solid #dbe7e0; }
.sheet { border-top: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 40px rgb(15 42 29 / 12%); }
.sheet-overlay { background: rgb(15 42 29 / 35%); }
.food-tile { background: #ebf3ee !important; color: transparent; }
.food-tile b { visibility: hidden; }
.food-tile.add { color: var(--ink); }
.msg-user { background: #eef6f1; color: var(--ink); border-radius: 18px 18px 4px 18px; }
.msg-row > .msg-coach { background: transparent; border-left: 0; padding: 2px 0; }
.msg-row > .mech { background: #eef6f1; border-radius: 50%; }
.starter { background: #f2f8f5; border: 0; }
.composer textarea { background: #eef6f1; border: 0; border-radius: 22px; }
.buddy-say { border-left-color: var(--ink); }
.buddy-say-head { color: var(--ink); }
.live-entry, .live-entry.on { border-left-color: var(--ink); }
.thin-bar { background: #e4eee8; }
.pr-badge { background: var(--ink); color: var(--bg); }
.wk-ring circle:first-child { stroke: #e4eee8; }

/* ==== 白底运动绿（spec [2026-10-23] §128，取代 §126 的黑白灰）：放在最后统一覆盖。主色翠绿做按钮、进度、选中的底，
   按钮上的字用深墨绿（白字在翠绿上看不清）；文字链接和选中的字用深一点的绿 ==== */
.link, .section-head a, .hc-more, .tp-tag, .bg-how { color: var(--accent-text); }
.tabs a.on, .seg a.on { color: var(--accent-text); }
.seg a.on { border-bottom-color: var(--accent); }
.btn { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-text); background: transparent; }
.btn.quiet { color: var(--accent-text); }
.pill.on, .entry-chip.primary { background: var(--accent); color: var(--accent-ink); }
.pill, .ask-chip, .chip, .entry-chip { background: var(--surface); }
.fab { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px rgb(18 183 106 / 35%); }
.thin-bar { background: var(--accent-soft); } .thin-bar span { background: var(--accent); }
.food-tile { background: var(--accent-soft) !important; }
.msg-user { background: var(--accent-soft); }
.msg-row > .mech { background: var(--accent-soft); }
.starter { background: var(--surface); }
.composer textarea { background: var(--surface); }
.buddy-say { border-left-color: var(--accent); background: var(--accent-soft); padding: 12px 14px; border-radius: 12px; border-left-width: 0; }
.buddy-say-head { color: var(--accent-text); }
.pr-badge { background: var(--accent); color: var(--accent-ink); }
.live-entry, .live-entry.on { border-left-color: var(--accent); }
.bg-big { color: var(--ink); }
.hc-stat:first-child b { color: var(--ink); }
.ws-cell.done b { color: var(--accent-text); }
.ws-bar span.on { background: var(--accent-soft); } .ws-bar.today span.on, .ws-bar span.on { background: var(--accent); }

/* 首页·练、干饭的新排法（§127、§128）：左对齐、靠留白分块；数字用系统窄体特粗，是整页唯一的记忆点 */
.fig-n { font-family: var(--figs); font-weight: 800; font-stretch: condensed; letter-spacing: 0; line-height: .95; font-variant-numeric: tabular-nums; }
section.today { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 4px; }
.today-title { margin: 0; font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.today-sub { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.figs { display: flex; gap: 28px; margin-top: 6px; flex-wrap: wrap; }
.fig { display: flex; flex-direction: column; gap: 2px; }
.fig .fig-n { font-size: 44px; color: var(--ink); }
.fig span { font-size: 13px; color: var(--muted); }
.week-line { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.week-dots { display: flex; gap: 6px; }
.week-dots i { width: 22px; height: 6px; border-radius: 3px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px #c6ecd8; }
.week-dots i.on { background: var(--accent); box-shadow: none; }
.moves { display: flex; flex-direction: column; padding-top: 18px; }
.moves-head { margin: 18px 0 4px; font-size: 18px; font-weight: 800; color: var(--ink); }
.warm { background: var(--surface); border-radius: 14px; padding: 12px 14px; }
.warm summary { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.warm summary::-webkit-details-marker { display: none; }
.warm[open] summary .i { transform: rotate(90deg); }
.warm ol { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.move { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.move:first-of-type { border-top: 0; }
.move-pic { width: 56px; height: 56px; flex: none; border-radius: 12px; object-fit: contain; background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.move-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.move-text b { font-size: 17px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.move-text span { font-size: 13px; color: var(--muted); }
.move-text .move-cut { color: var(--heat); }
.move-sets { flex: none; font-family: var(--figs); font-weight: 800; font-stretch: condensed; font-size: 26px; color: var(--ink); }
.moves .btn.go { margin-top: 18px; padding: 16px 0; font-size: 17px; letter-spacing: .1em; }
.bg-big.fig-n { font-size: 84px; color: var(--ink); }
.bg-big small { font-family: var(--font); font-size: 16px; margin-left: 6px; }
.bg-macro b.fig-n { font-size: 30px; }
.tp-kcal { display: inline-flex; align-items: baseline; gap: 3px; font-size: 13px; color: var(--muted); }
.tp-kcal .fig-n { font-size: 22px; color: var(--ink-2); }
/* 切页淡入（§130）：系统设了减少动态效果时由上面的全局规则停掉 */
.view.enter { animation: view-in .2s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
.set-row .unit { white-space: nowrap; }


/* ==== 像素农场风（spec [2026-10-23] §131，参照星露谷的感觉；素材都是自己画的）：放在最后统一覆盖。
   草地格子底；木框面板（深木边、浅木内衬）配羊皮纸底；木板按钮有厚度；像素字（缝合像素字体，OFL） ==== */
html { -webkit-font-smoothing: none; font-smooth: never; }
body {
  font-family: var(--font); color: var(--ink); background-color: var(--bg);
  background-image: linear-gradient(45deg, rgb(0 0 0 / 5%) 25%, transparent 25%, transparent 75%, rgb(0 0 0 / 5%) 75%),
    linear-gradient(45deg, rgb(0 0 0 / 5%) 25%, transparent 25%, transparent 75%, rgb(0 0 0 / 5%) 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px; background-attachment: scroll;
}
.bar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.bar-kicker { font-family: var(--font); color: var(--wood-dark); letter-spacing: .02em; font-size: 12px; }
.bar-title { font-size: 32px; font-weight: 400; color: #fff6d8; text-shadow: 3px 3px 0 var(--wood-dark), -2px -2px 0 var(--wood-dark), 2px -2px 0 var(--wood-dark), -2px 2px 0 var(--wood-dark); letter-spacing: .02em; }
h1, h2, h3, b, strong, .num, .fig-n { font-weight: 400; }
.fig-n, .num { font-family: var(--figs); font-stretch: normal; letter-spacing: 0; }
.section-head h2 { display: inline-block; font-size: 16px; padding: 4px 10px; color: #fff2cc; background: var(--plank); border: 3px solid var(--wood-dark);
  box-shadow: inset 0 -4px 0 #7a3e12, inset 0 3px 0 #d88a44; text-shadow: 2px 2px 0 var(--wood-dark); }
.section-head h2::before { display: none; }
.section-head a, .link { color: var(--accent-text); }

/* 木框面板 */
.card, section.today, .moves, .budget, .today-plan, .buddy-say, .ws, .me-rows, .pr-list, .vitals {
  background: var(--surface); border: 4px solid var(--wood); border-radius: 0;
  box-shadow: 0 0 0 2px var(--wood-dark), inset 0 0 0 3px var(--wood-light), 4px 4px 0 2px rgb(60 30 8 / 35%);
  padding: 14px; margin: 2px;
}
.card .card { box-shadow: inset 0 0 0 2px var(--wood-light); border-width: 2px; }
section.today { gap: 10px; }
.moves { padding-top: 14px; }
.move { border-top: 2px dashed var(--wood-light); }
.move-pic, .thumb, .mv-thumb { border-radius: 0; border: 3px solid var(--wood); background: #e9c784; }
.move-sets, .tp-kcal .fig-n { color: var(--ink); }

/* 按钮：木板，有厚度 */
.btn { border-radius: 0; background: var(--fire); color: var(--accent-ink); border: 3px solid #2e5410; font-weight: 400; letter-spacing: .06em;
  box-shadow: inset 0 -5px 0 #2e5a12, inset 0 4px 0 #6fb83c, 3px 3px 0 #2e5410; text-shadow: 2px 2px 0 #2e5410; clip-path: none; }
.btn.ghost { background: var(--plank); color: #fff2cc; border-color: var(--wood-dark); box-shadow: inset 0 -5px 0 var(--wood), inset 0 4px 0 #e8a55e, 3px 3px 0 var(--wood-dark); text-shadow: 2px 2px 0 var(--wood-dark); }
.btn.quiet { background: transparent; color: var(--accent-text); border-color: transparent; box-shadow: none; text-shadow: none; }
.btn.danger { background: transparent; color: var(--heat); border-color: transparent; box-shadow: none; text-shadow: none; }
.btn.small { border-radius: 0; }
.btn:not(:disabled):active { transform: translate(2px, 2px); box-shadow: inset 0 -3px 0 #2e5a12, 1px 1px 0 #2e5410; }

/* 小牌子：胶囊换成方框标签 */
.pill, .ask-chip, .chip, .entry-chip, .tp-tag, .pr-badge, .starter {
  border-radius: 0; background: var(--sunken); border: 2px solid var(--wood); color: var(--wood-dark); box-shadow: none; }
.pill.on, .entry-chip.primary, .pr-badge { background: var(--amber); border-color: #8a5a10; color: var(--wood-dark); }
.seg { border: 0; gap: 6px; display: flex; flex-wrap: wrap; }
.seg a { border: 2px solid var(--wood); background: var(--sunken); color: var(--wood-dark); padding: 4px 12px; margin: 0; font-size: 15px; border-radius: 0; }
.seg a.on { background: var(--amber); border-color: #8a5a10; color: var(--wood-dark); }
.search { border: 3px solid var(--wood); background: var(--sunken); border-radius: 0; }
input, select, textarea { border-radius: 0; border: 2px solid var(--wood); background: var(--sunken); color: var(--ink); font-family: var(--font); }

/* 底部导航：木头底、木板标签 */
.tabs { background: var(--wood); border-top: 4px solid var(--wood-dark); box-shadow: inset 0 3px 0 var(--plank); }
.tabs-inner { gap: 6px; padding-top: 6px; padding-bottom: 6px; }
.tabs a { background: #a65a22; border: 2px solid var(--wood-dark); color: #f7e2a8; font-size: 13px; }
.tabs a.on { background: var(--amber); color: var(--wood-dark); }
.tabs a .ti svg.i { stroke: currentColor; }

/* 体力条、委托板、游戏日历（§131 需求 2） */
.quest-head { display: flex; justify-content: space-between; align-items: center; }
.plank-label { display: inline-block; padding: 4px 10px; font-size: 15px; color: #fff2cc; background: var(--plank); border: 3px solid var(--wood-dark);
  box-shadow: inset 0 -4px 0 #7a3e12, inset 0 3px 0 #d88a44; text-shadow: 2px 2px 0 var(--wood-dark); }
.quest-pic { position: relative; height: 150px; border: 3px solid var(--wood-dark); background: #9bd45e; overflow: hidden; }
.quest-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.credit { position: absolute; right: 4px; bottom: 4px; font-size: 10px; padding: 1px 5px; background: rgb(255 246 216 / 85%); color: var(--wood-dark); text-decoration: none; }
.today-title { font-size: 28px; color: var(--ink); font-weight: 400; }
.today-sub { color: var(--ink-2); font-size: 15px; }
.fig .fig-n { font-size: 32px; color: var(--ink); }
.reward { font-size: 13px; color: var(--ink-2); }
.week-dots { gap: 4px; }
.week-dots i { width: 26px; height: 26px; border-radius: 0; background: var(--sunken); border: 2px solid #c99a52; box-shadow: none; }
.week-dots i.on { background: #9bd45e; border-color: #3e7a1c; }
.energy { width: 30px; flex: none; align-self: stretch; min-height: 140px; background: #3a1e08; border: 3px solid var(--wood); box-shadow: 0 0 0 2px var(--wood-dark);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 3px; box-sizing: border-box; }
.energy i { display: block; background: linear-gradient(180deg, #b7e86a, #5da130); border: 1px solid #2e5410; }
.budget.with-energy { flex-direction: row; gap: 14px; }
.budget-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bg-big.fig-n { font-size: 48px; color: var(--ink); }
.thin-bar { background: #3a1e08; border: 2px solid var(--wood); height: 10px; }
.thin-bar span { background: var(--accent); }
.tp-meal { border-top: 2px dashed var(--wood-light); }
.tp-thumb { width: 48px; height: 48px; flex: none; border: 3px solid var(--wood); background: #e9c784; object-fit: cover; }
.food-tile { border-radius: 0 !important; border: 3px solid var(--wood); background: #e9c784 !important; }
.food-tile b { visibility: visible; color: var(--wood-dark); }
.food-tile img { image-rendering: auto; }

/* IronM 对话框：村民对话框，像素头盔头像；用户的话是羊皮纸便签 */
.buddy-say { flex-direction: column; }
.buddy-say-head { color: var(--wood-dark); font-family: var(--font); }
.buddy-say p { color: var(--ink); }
.msg-row > .mech { width: 44px; height: 44px; padding: 4px; background: #e9c784; border: 3px solid var(--wood); border-radius: 0; box-sizing: border-box; }
.msg-row > .msg-coach { background: var(--sunken); border: 4px solid var(--wood); border-radius: 0; box-shadow: 0 0 0 2px var(--wood-dark), inset 0 0 0 3px var(--wood-light); padding: 10px 12px; }
.msg-user { background: #fff6d8; color: var(--ink); border: 3px solid var(--wood); border-radius: 0; box-shadow: 3px 3px 0 var(--wood-dark); }
.chat-bar { border-bottom: 3px solid var(--wood); }
.composer textarea { border-radius: 0; background: var(--sunken); border: 3px solid var(--wood); }
.welcome h2 { color: var(--ink); }
.sheet { background: var(--surface); border-radius: 0; border-top: 4px solid var(--wood); box-shadow: 0 -4px 0 var(--wood-dark); }

.fab { border-radius: 0; background: var(--plank); color: #fff2cc; border: 3px solid var(--wood-dark); box-shadow: 3px 3px 0 var(--wood-dark);
  }
.view.enter { animation: none; }
/* 顶栏铺草地，滚动时盖住下面的内容；草地上的链接、按钮做成小木牌，看得清（§131） */
.bar { background-color: var(--bg);
  background-image: linear-gradient(45deg, rgb(0 0 0 / 5%) 25%, transparent 25%, transparent 75%, rgb(0 0 0 / 5%) 75%),
    linear-gradient(45deg, rgb(0 0 0 / 5%) 25%, transparent 25%, transparent 75%, rgb(0 0 0 / 5%) 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.section-head a, .section-head .link { background: var(--sunken); border: 2px solid var(--wood); padding: 2px 8px; color: var(--wood-dark); }
.icon-btn { border-radius: 0; background: var(--sunken); border: 2px solid var(--wood); color: var(--wood-dark); }
.chat-bar .mech { width: 44px; height: 44px; padding: 4px; background: #e9c784; border: 3px solid var(--wood); box-sizing: border-box; }
.chat-bar .who b { color: #fff6d8; text-shadow: 2px 2px 0 var(--wood-dark), -1px -1px 0 var(--wood-dark); font-size: 20px; }
.welcome h2, .welcome p { background: var(--sunken); border: 3px solid var(--wood); padding: 4px 10px; display: inline-block; }
.tp-meta { margin: 0 0 6px; color: var(--muted); }
/* 页头跟着内容滚走，不粘在顶上（§134） */
.bar { position: static; }

/* 小字看不清（§135）：正文换回系统字体、正常平滑；像素字只给大字，字号只用 12 的整数倍 */
html { -webkit-font-smoothing: antialiased; font-smooth: auto; }
.bar-title, .today-title, .plank-label, .section-head h2, .fig-n, .num, .bg-big, .move-sets, .tp-head b, .tp-kcal .fig-n,
.ws-cell b, .pr-row b, .live-bar .who b, .step-val b, .welcome h2 {
  font-family: var(--pixel); -webkit-font-smoothing: none; font-smooth: never; font-weight: 400; letter-spacing: 0; }
.bar-title { font-size: 36px; }
.today-title { font-size: 36px; line-height: 1.15; }
.plank-label, .section-head h2 { font-size: 24px; line-height: 1; padding: 6px 10px; }
.fig .fig-n, .ws-cell b { font-size: 36px; }
.bg-big.fig-n { font-size: 48px; }
.move-sets, .tp-head b, .tp-kcal .fig-n, .pr-row b, .bg-macro b.fig-n { font-size: 24px; }
.num { font-size: 24px; }
.row-sub.num, .log-day.num, .pr-day.num { font-family: var(--font); font-size: 13px; -webkit-font-smoothing: antialiased; }
.btn, .tabs a, .seg a, .pill, .chip, .entry-chip, .tp-tag { font-family: var(--font); font-weight: 600; }
.btn { text-shadow: 1px 1px 0 #2e5410; }
.btn.ghost { text-shadow: 1px 1px 0 var(--wood-dark); }
.today-sub, .reward, .muted, .caption, .tp-foods, .move-text span { font-size: 14px; }
/* 榜单放进图鉴后（§136）：列表、待评也用木框面板；直接写在草地上的说明配羊皮纸底，看得清 */
.rk-list, .rk-pending { background: var(--surface); border: 4px solid var(--wood); box-shadow: 0 0 0 2px var(--wood-dark), inset 0 0 0 3px var(--wood-light);
  padding: 10px 12px; margin: 2px; border-radius: 0; }
.rk-pending h3 { margin: 0 0 6px; font-size: 15px; color: var(--ink); }
.rk-pending a, .rk-list a { color: var(--ink); }
.view > .caption, .view > p.muted, .view > .rk-none { align-self: flex-start; background: var(--sunken); border: 2px solid var(--wood); padding: 4px 10px; color: var(--ink-2); }
.rk-embedded { justify-content: flex-end; }
/* 训练时间线（§139）：一条竖线串起每次训练，每次一张配图卡片 */
.tl-entry { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.tl-entry-text { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-back { align-self: flex-start; background: var(--sunken); border: 2px solid var(--wood); padding: 3px 10px; color: var(--wood-dark); }
.tl-head { display: flex; justify-content: space-between; align-items: center; }
.tl-head .muted { background: var(--sunken); border: 2px solid var(--wood); padding: 2px 8px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; display: flex; flex-direction: column; gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 4px; background: var(--wood); box-shadow: 0 0 0 2px var(--wood-dark); }
.tl-item { position: relative; display: flex; flex-direction: column; gap: 6px; }
.tl-item::before { content: ""; position: absolute; left: -18px; top: 4px; width: 16px; height: 16px; background: var(--amber); border: 3px solid var(--wood-dark); box-sizing: border-box; }
.tl-item.rest::before { background: var(--sunken); }
.tl-date { align-self: flex-start; font-size: 13px; background: var(--sunken); border: 2px solid var(--wood); padding: 1px 8px; color: var(--wood-dark); }
.tl-card { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.tl-pic { position: relative; height: 160px; border: 3px solid var(--wood-dark); background: #e9c784; overflow: hidden; }
.tl-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-title { font-family: var(--pixel); font-size: 24px; -webkit-font-smoothing: none; font-weight: 400; }
.tl-moves { margin: 0; font-size: 13px; color: var(--muted); }
.tl-rest { align-self: flex-start; font-size: 13px; color: var(--muted); background: var(--sunken); border: 2px dashed var(--wood-light); padding: 4px 10px; }
.card.tl-entry { flex-direction: row; align-items: center; }

/* §146 身体数据只看三项：体重一整行（带每周变化和趋势），BMI、体脂率并排 */
.tile-sub { font-size: 13px; color: var(--muted); }
.body-three .tile.wide .spark { height: 96px; }
.body-fold > summary .row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.body-fold > summary .row-sub { font-weight: 400; }
.raw-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); padding: 4px 2px; }
.raw-fold > summary::-webkit-details-marker { display: none; }
.raw-fold[open] > summary { margin-bottom: 8px; }
.raw-fold .section-head { display: none; }

/* §147 分享卡和周报 */
.share-box { display: flex; flex-direction: column; gap: 12px; }
.share-img { width: 100%; max-width: 420px; align-self: center; height: auto; border: 3px solid var(--wood-dark); background: var(--bg); }
.tl-share { align-self: flex-start; font-size: 13px; }
.week-report .btn { margin-top: 4px; }
.week-msg .inbox-head .icon-btn { margin-left: auto; }
.week-msg > p { margin: 6px 0 10px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* §149 认器械 */
.machine-shot { display: flex; flex-direction: row; align-items: center; gap: 14px; cursor: pointer; }
.machine-shot .row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.machine-msg:empty { display: none; }
.machine-msg { font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.machine-groups { display: flex; flex-direction: column; gap: 18px; }
.machine-shot b { font-size: 16px; color: var(--ink); }
.sheet .row-item .thumb { width: 48px; height: 48px; flex: none; object-fit: contain; background: #fff; }

/* §153 模型和 API */
.good-text { color: var(--good); font-weight: 600; }
.model-form .field[hidden] { display: none; }
.model-form .kv .error { font-size: 13px; text-align: right; }

/* §155 注册和登录 */
.login-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.login-seg button { text-align: center; padding: 8px 0; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; font-family: var(--font); }
.login-seg button.on { background: var(--surface); color: var(--accent-text); box-shadow: inset 0 0 0 2px var(--wood); }
.login-form { display: flex; flex-direction: column; gap: 10px; }
.login-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.login .login-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; background: none; border: 0; }
.login .login-seg button { padding: 10px 0; background: var(--surface); border: 2px solid var(--wood); color: var(--muted); }
.login .login-seg button.on { background: var(--plank); border-color: var(--wood-dark); color: var(--accent-ink); }

/* §161 首页最上面的今日热搜、方案库 */
.hot-strip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; background: var(--surface); border: 2px solid var(--wood); color: var(--ink); text-decoration: none; min-width: 0; }
.hot-label { flex: none; font-family: var(--pixel); font-size: 12px; color: var(--accent-ink); background: var(--heat); padding: 3px 6px; }
.hot-rows { display: flex; gap: 12px; min-width: 0; overflow: hidden; white-space: nowrap; flex: 1; font-size: 14px; }
.hot-row { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.hot-row b { color: var(--heat); font-family: var(--digits); }
.hot-strip > .i { flex: none; color: var(--muted); }
.plan-lib { display: flex; flex-direction: column; gap: 10px; }
.plan-lib-card { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.plan-lib-card .chip { align-self: flex-start; }
/* §184 饮食方案库：卡片上的每天热量、详情里一天吃什么 */
.diet-lib-kcal { font-size: 13px; color: var(--ink-2); }
.plan-lib-card .tags .chip { align-self: auto; }
.diet-day { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.diet-day .row-sub { white-space: normal; }
.diet-day-total { margin: 0; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.diet-refs summary { cursor: pointer; color: var(--muted); font-size: 13px; }

/* §163 管家看今天：正在看、出错了（能重试）、定了休息；临时调整的预览 */
.today-coach { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; font-size: 14px; line-height: 1.5;
  background: var(--sunken); border: 2px solid var(--wood); color: var(--ink); }
.today-coach[hidden] { display: none; }
.today-coach > span:not(.typing) { flex: 1; min-width: 0; }
.today-coach .typing { flex: none; }
.today-coach.err { background: var(--heat-soft); border-color: var(--heat); }
.today-coach.err .i { color: var(--heat); flex: none; }
.today-coach.adj, .today-coach.rest { background: var(--gold-soft); border-color: var(--gold-line); }
.tv-coach { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--sunken); border: 2px solid var(--wood); }
.tv-coach > div:not(.typing) { flex: 1; min-width: 0; }
.tv-coach b { display: block; font-size: 15px; }
.tv-coach p { margin: 2px 0 0; font-size: 13.5px; }
.tv-coach .i { flex: none; margin-top: 2px; color: var(--wood-dark); }
.tv-coach.err { background: var(--heat-soft); border-color: var(--heat); }
.tv-coach.err .i { color: var(--heat); }
.tv-orig { display: flex; flex-direction: column; gap: 4px; }
.tv-orig .label { color: var(--muted); font-size: 13px; }
.tv-orig .plan-items { color: var(--ink-2); }
.temp-box, .hc-draft { display: flex; flex-direction: column; gap: 6px; }
.hc-draft:empty { display: none; }
.temp-span { margin: 0; font-size: 14.5px; }
.temp-lines { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; }
.buddy-say .hc-draft p { font-size: 13.5px; }

/* ==== 白底圆角卡片风（spec [2026-10-23] §175，取代 §131 的像素农场风）：放在最后统一覆盖。
   去掉草地底、木框、木板按钮、像素字；白色大圆角卡片、淡阴影；珊瑚红主色；浅绿小标签；图标放浅紫圆底 ==== */
html, body { -webkit-font-smoothing: antialiased; font-smooth: auto; }
body { background: var(--bg); background-image: none; color: var(--ink); font-family: var(--font); }
h1, h2, h3, b, strong { font-weight: 650; }
.bar-title, .today-title, .plank-label, .section-head h2, .fig-n, .num, .bg-big, .move-sets, .tp-head b, .tp-kcal .fig-n,
.ws-cell b, .pr-row b, .live-bar .who b, .step-val b, .welcome h2, .tl-title {
  font-family: var(--font); -webkit-font-smoothing: antialiased; font-smooth: auto; letter-spacing: -.01em; text-shadow: none; }
.fig-n, .num, .bg-big, .move-sets, .ws-cell b, .pr-row b, .step-val b { font-weight: 750; font-variant-numeric: tabular-nums; }

/* 顶栏：左边企鹅标志和 IronM，中间页名，右边"我" */
.bar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); background-image: none;
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.bar-brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); justify-self: start; }
/* §209 顶栏和负责人给的标志图一模一样：图的深色底（#1e2324）做成圆角条，左边整套 IR + iRonm 标志，页名和"我"用浅色 */
.bar-lockup { display: block; height: 44px; width: auto;  /* 原图底色有一点暗角：四边淡出，免得露出一块方框 */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect; }
.bar.bar { background: #1e2324; border-radius: 18px; margin-top: calc(8px + env(safe-area-inset-top, 0px)); padding: 6px 10px 6px 8px;
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 6px 18px rgb(20 24 26 / 18%); }
.bar.bar .bar-title { color: #eef1f3; }
.bar.bar .bar-kicker { color: #9ba3a8; }
.bar.bar .bar-me { background: rgb(255 255 255 / 9%); color: #eef1f3; box-shadow: none; }
.bar-text { text-align: center; min-width: 0; }
.bar-title { font-size: 16px; font-weight: 600; color: var(--ink-2); margin: 0; line-height: 1.2; }
.bar-kicker { font-size: 11px; color: var(--muted); letter-spacing: 0; }
.bar-kicker:empty { display: none; }
.bar-me { justify-self: end; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface);
  color: var(--ink-2); box-shadow: var(--shadow); text-decoration: none; }

/* 卡片 */
.card, section.today, .moves, .budget, .today-plan, .buddy-say, .ws, .me-rows, .pr-list, .vitals, .rk-list, .rk-pending {
  background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 0; }
.card .card { box-shadow: none; border: 0; background: var(--sunken); border-radius: var(--radius-sm); }
@media all { .card { border-color: transparent; } }
.move { border-top: 1px solid var(--line); }
.tp-meal { border-top: 1px solid var(--line); }
.move-pic, .thumb, .mv-thumb, .tp-thumb { border: 0; border-radius: 12px; background: var(--sunken); }
.quest-pic, .tl-pic { border: 0; border-radius: 16px; background: var(--sunken); }
.share-img { border: 0; border-radius: 16px; }
.food-tile { border: 0; border-radius: 16px !important; background: var(--sunken) !important; }
.food-tile b { color: var(--ink); }

/* 小节标题：普通粗体，不再是木牌 */
.section-head h2, .plank-label { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 700; color: var(--ink);
  background: none; border: 0; box-shadow: none; padding: 0; line-height: 1.3; }
.section-head a, .section-head .link, .link { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 600; }

/* 按钮：珊瑚红大圆角；次要按钮浅紫底 */
.btn { border: 0; border-radius: 16px; background: var(--fire); color: var(--accent-ink); font-weight: 650; letter-spacing: .02em;
  box-shadow: 0 6px 16px rgb(242 96 63 / 28%); text-shadow: none; clip-path: none; }
.btn.ghost { background: var(--icon-bg); color: #2d2d4a; box-shadow: none; text-shadow: none; border: 0; }
.btn.quiet { background: transparent; color: var(--accent-text); box-shadow: none; text-shadow: none; }
.btn.danger { background: transparent; color: var(--heat); box-shadow: none; text-shadow: none; border: 1px solid var(--line); }
.btn.small { border-radius: 12px; }
.btn:disabled { box-shadow: none; }
.btn:not(:disabled):active { transform: scale(.98); box-shadow: none; }

/* 小标签、胶囊 */
.pill, .ask-chip, .chip, .entry-chip, .tp-tag, .starter { border-radius: 999px; border: 0; background: var(--neutral-soft); color: var(--ink-2); box-shadow: none; }
.pr-badge { border-radius: 999px; border: 0; background: var(--accent-soft); color: var(--accent-text); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.attention { background: var(--warn-soft); color: var(--warn); }
.pill.on, .entry-chip.primary { background: var(--fire); color: #fff; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--icon-bg); border-radius: 999px; border: 0; flex-wrap: nowrap; }
.seg a, .seg button { flex: 1; text-align: center; border: 0; background: transparent; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.seg a.on, .seg button.on { background: var(--fire); color: #fff; box-shadow: 0 4px 12px rgb(242 96 63 / 25%); border: 0; }
.search { border: 0; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); }
input, select, textarea { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font); }
.icon-btn { border-radius: 50%; border: 0; background: var(--icon-bg); color: #3b3b5c; }

/* 底栏五格：白底，选中珊瑚红 */
.tabs { background: color-mix(in srgb, var(--surface) 96%, transparent); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgb(40 30 60 / 4%); }
.tabs-inner { grid-template-columns: repeat(5, 1fr); gap: 0; padding-top: 4px; padding-bottom: 4px; }
.tabs a { background: none; border: 0; color: #4a4a5c; font-size: 11px; font-weight: 600; }
.tabs a.on { background: none; color: var(--accent-text); }
.tabs a.on .ti { color: var(--accent); }

/* 快捷记录：圆形珊瑚红 */
.fab { border-radius: 50%; border: 0; background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgb(242 96 63 / 35%); }

/* 进度条、体力条 */
.thin-bar { background: #ececf3; border: 0; border-radius: 999px; height: 8px; overflow: hidden; }
.thin-bar span { background: var(--accent); border-radius: 999px; }
.energy { background: #ececf3; border: 0; box-shadow: none; border-radius: 999px; padding: 3px; }
.energy i { background: var(--accent); border: 0; border-radius: 999px; }
.week-dots i { width: 22px; height: 8px; border-radius: 999px; background: #ececf3; border: 0; }
.week-dots i.on { background: var(--accent); }

/* 今日热搜 */
.hot-strip { border: 0; border-radius: 999px; box-shadow: var(--shadow); background: var(--surface); padding: 8px 14px 8px 8px; }
.hot-label { font-family: var(--font); font-size: 12px; font-weight: 650; color: var(--accent-text); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.hot-row b { color: var(--accent-text); }

/* IronM 说的话：企鹅头像 + 浅紫气泡；用户的话：珊瑚红气泡 */
.buddy-say { background: var(--surface); }
.buddy-say-head { color: var(--ink); font-weight: 650; }
.mech { flex: none; display: block; }
.msg-row > .mech, .chat-bar .mech { width: 40px; height: 40px; padding: 3px; border: 0; border-radius: 50%; background: #fff3c4; box-sizing: border-box; }
/* §209 铁甲人头像：整图放进圆里、深色底，各处原来给小黄鸡加的黄底和内边距都去掉（三个类名压过前面各处的规则） */
img.mech.mech.mech { padding: 0; border: 0; border-radius: 50%; background: #1e2324; object-fit: cover; box-sizing: border-box; }
.msg-row > .msg-coach { background: var(--surface); border: 0; border-radius: 6px 20px 20px 20px; box-shadow: var(--shadow); padding: 12px 14px; }
.msg-user { background: var(--fire); color: #fff; border: 0; border-radius: 20px 6px 20px 20px; box-shadow: none; }
.chat-bar { border-bottom: 1px solid var(--line); }
.chat-bar .who b { color: var(--ink); text-shadow: none; font-size: 18px; }
.composer textarea { border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.welcome h2, .welcome p { background: none; border: 0; padding: 0; display: block; }
body.chatting.with-tabs .chat { height: calc(100dvh - var(--tabs-h) - env(safe-area-inset-bottom, 0px)); }
.send { background: var(--accent); color: #fff; border-radius: 50%; }

/* 底部弹出 */
.sheet { background: var(--surface); border: 0; border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); }

/* §131 之后各节里用木框、羊皮纸的地方：换成浅底圆角 */
.view > .caption, .view > p.muted, .view > .rk-none { background: none; border: 0; padding: 0 2px; }
.tl-back, .tl-head .muted, .tl-date, .tl-rest { background: var(--surface); border: 0; border-radius: 999px; box-shadow: var(--shadow); padding: 3px 10px; color: var(--ink-2); }
.timeline::before { width: 2px; background: #e3e3ec; box-shadow: none; left: 7px; }
.tl-item::before { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #fde3db; }
.tl-item.rest::before { background: #d6d6e2; border-color: #eeeef4; }
.today-coach, .tv-coach { background: var(--sunken); border: 0; border-radius: var(--radius-sm); }
.today-coach.err, .tv-coach.err { background: var(--heat-soft); }
.today-coach.adj, .today-coach.rest { background: var(--gold-soft); }
.login .login-seg button { border: 0; border-radius: 999px; background: var(--surface); color: var(--muted); }
.login .login-seg button.on { background: var(--fire); color: #fff; }
.login-seg button.on { box-shadow: none; }
.credit { border-radius: 6px; background: rgb(255 255 255 / 85%); color: var(--ink-2); }
.view.enter { animation: view-in .2s ease-out; }
/* 前几轮风格留下的角标折线、描边：去掉 */
.hero::before, .hero::after, .plan-card::before, .plan-card::after, .goal::before, .goal::after,
.msg-coach.inbox::before, .msg-coach.inbox::after { display: none; }
.msg-coach, .msg-coach.inbox { border: 0; border-radius: 20px; box-shadow: var(--shadow); background: var(--surface); }
.inbox-head .i { color: var(--accent); }
.st-chips .pill { border-radius: 999px; }
.st-chips .pill.on { background: var(--fire); color: #fff; }
/* 字号：标题粗一点、数字收小一点，跟参照图一样以卡片为主角 */
.today-title { font-size: 28px; font-weight: 750; line-height: 1.2; }
.fig .fig-n, .ws-cell b { font-size: 30px; }
.move-sets, .tp-head b, .tp-kcal .fig-n, .pr-row b, .bg-macro b.fig-n { font-size: 18px; font-weight: 700; white-space: nowrap; }
.move-text b { font-size: 16px; font-weight: 650; }
.bg-big.fig-n { font-size: 44px; }
.buddy-say-head .mech { width: 22px; height: 22px; }
/* 训练中（§175 需求 4）：重量、次数各占一行，大号数字配左右圆按钮；"完成这一组"珊瑚红长按钮 */
.live-card, .live-card.cur { border: 0; box-shadow: var(--shadow); border-radius: 24px; background: var(--surface); }
.live-card.cur { box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); }
.lf-steps { display: flex; flex-direction: column; gap: 10px; }
.lf-steps .stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  background: var(--sunken); border: 0; border-radius: 20px; padding: 12px 14px; }
.lf-steps .step-btn { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 0; font-size: 26px; line-height: 1;
  background: var(--icon-bg); color: #3b3b5c; cursor: pointer; }
.lf-steps .step-btn:last-child { background: var(--accent); color: #fff; box-shadow: 0 6px 14px rgb(242 96 63 / 30%); }
.lf-steps .step-val { display: flex; align-items: baseline; gap: 4px; }
.lf-steps .step-val b { font-size: 40px; font-weight: 800; color: var(--ink); }
.lf-steps .step-val small { font-size: 14px; color: var(--muted); }
.live-bar { border-bottom: 0; }
.live-bar .live-total { display: inline-block; font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
.live-bar .btn.quiet { background: var(--accent-soft); color: var(--accent-text); border-radius: 999px; padding: 8px 16px; }
.set-row.cur { background: var(--good-soft); border-radius: 14px; }
.lf-steps .step-val { flex-direction: row; }
/* 页头照 §134 跟着内容滚走，不粘在顶上 */
.bar { position: static; }

/* ==== 首页照参照图（§175）：日期一行和 IronM 入口、热搜标签、提醒横条、今日委托、今天吃 ==== */
.page-h { margin: 0; font-size: 22px; font-weight: 750; }
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.day-line { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; color: var(--ink); }
.day-line .dot { width: 8px; height: 8px; border-radius: 50%; background: #1e8a47; }
.buddy-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.buddy-pill .mech { width: 36px; height: 36px; border-radius: 50%; background: #fff3c4; padding: 2px; box-sizing: border-box; }
.bp-text { display: flex; flex-direction: column; line-height: 1.25; }
.bp-text b { font-size: 14px; }
.bp-text small { display: inline-flex; align-items: center; font-size: 12px; color: var(--accent-text); font-weight: 600; }
.hot-strip { border-radius: 18px; padding: 8px; gap: 8px; }
.hot-rows { gap: 8px; }
.hot-row { background: var(--sunken); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.hot-row b { display: none; }
.hot-row::before { content: "#"; color: var(--ink-2); }
.home-alerts { display: flex; flex-direction: column; gap: 8px; }
.rep-alert { background: var(--heat-soft); border-radius: 16px; padding: 12px 14px; color: #8f1d22; }
.rep-alert summary { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; list-style: none; }
.rep-alert summary::-webkit-details-marker { display: none; }
.rep-alert .i { color: var(--heat); }
.rep-alert p { margin: 6px 0 0 30px; font-size: 14px; line-height: 1.6; color: #6b1d20; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--neutral-soft); color: var(--ink-2); white-space: nowrap; }
.tag.coral { background: var(--accent-soft); color: var(--accent-text); }
.tag.green { background: var(--good-soft); color: var(--good); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.card.quest, .card.eat { padding: 20px 18px; gap: 14px; border-radius: 26px; }
.quest-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.quest-title { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.quest-sub { margin: 0; color: var(--ink-2); font-size: 15px; }
.quest-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.week-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; color: var(--ink); }
.week-bar i { width: 100px; height: 6px; border-radius: 999px; background: #ececf3; overflow: hidden; display: block; }
.week-bar i b { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.quest-list { list-style: none; margin: 0; padding: 6px 16px; background: var(--sunken); border-radius: 18px; }
.quest-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.quest-list li + li { border-top: 1px solid #ecebf3; }
.q-no { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink); }
.q-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 16px; font-weight: 600; color: var(--ink); }
.q-name small { font-size: 12px; font-weight: 400; color: var(--muted); }
.q-name small.move-cut { color: var(--heat); }
.q-sets { flex: none; font-size: 15px; font-weight: 750; color: var(--ink-2); white-space: nowrap; }
.q-sets.hot { color: var(--accent-text); }
.card.quest .btn.go { padding: 16px 0; font-size: 17px; border-radius: 999px; }
.card.quest .btn.ghost.block { padding: 14px 0; border-radius: 999px; font-size: 15px; }
.quest-foot { display: flex; justify-content: space-between; align-items: center; }
.eat-head { display: flex; align-items: center; gap: 10px; }
.eat-head h2 { margin: 0; font-size: 24px; font-weight: 800; }
.eat-more { margin-left: auto; font-size: 13px; }
.eat-main { display: flex; align-items: center; gap: 16px; background: var(--sunken); border-radius: 18px; padding: 16px; }
.eat-main.empty { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); }
.eat-ring-box { position: relative; width: 96px; height: 96px; flex: none; }
.eat-ring { width: 96px; height: 96px; }
.er-track { fill: none; stroke: #e6e3ef; stroke-width: 9; }
.er-fill { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; }
.er-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.er-text b { font-size: 22px; font-weight: 800; }
.er-text small { font-size: 11px; color: var(--muted); }
.eat-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.eat-text > b { font-size: 19px; font-weight: 800; color: var(--ink); }
.eat-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--good); font-weight: 650; }
.eat-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.eat-macro { background: var(--sunken); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.em-head { display: flex; justify-content: space-between; gap: 4px; font-size: 13px; }
.em-head span { color: var(--muted); font-size: 12px; }
.eat-macro > i { display: block; height: 5px; border-radius: 999px; background: #e6e3ef; overflow: hidden; }
.eat-macro > i b { display: block; height: 100%; border-radius: 999px; }
.eat-macro.c > i b { background: #2f9e68; } .eat-macro.p > i b { background: var(--accent); } .eat-macro.f > i b { background: #8a6fd6; }
.em-num { font-size: 13px; color: var(--ink-2); }
.eat-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eat-act { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 999px; background: var(--icon-bg); border: 0; cursor: pointer;
  font: inherit; color: var(--ink); text-align: left; }
.eat-act b { display: block; font-size: 15px; }
.eat-act small { display: block; font-size: 11px; color: var(--muted); }
.ea-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--accent-text); flex: none; }
.card.eat > .error:empty { display: none; }
/* 首页细节（§175）：大按钮用参照图那样的亮珊瑚红，字放大加粗（大字 3:1 够看清）；小按钮仍用深一点的珊瑚红 */
.btn.block, .btn.go { background: var(--accent); font-size: 19px; font-weight: 750; }
.eat-ring-box, .eat-ring { width: 100px; height: 100px; }
.er-text b { font-size: 19px; }
.em-head { flex-direction: column; gap: 0; }
.em-head b { white-space: nowrap; }
.em-head span { font-size: 11px; }
.eat-act { flex-direction: row; border-radius: 22px; padding: 12px; min-width: 0; }
.eat-act > span:last-child { min-width: 0; }
.eat-act b, .eat-act small { white-space: nowrap; }
.live-entry, .live-entry.on { display: flex; flex-direction: row; align-items: center; gap: 12px; border: 0; border-radius: 20px;
  background: var(--accent-soft); box-shadow: none; padding: 14px 16px; text-align: left; }
.live-entry .row-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.live-entry .row-title { font-weight: 750; color: var(--accent-text); }
.live-entry .row-end { display: inline-flex; align-items: center; color: var(--accent-text); font-weight: 650; }
.live-entry > .i { color: var(--accent); }
.btn.ghost.block, .card.quest .btn.ghost.block { background: var(--icon-bg); color: #2d2d4a; font-size: 16px; font-weight: 700; box-shadow: none; }

/* ==== IronM、图鉴、记录、我 照参照图（§175） ==== */
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title h2 { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--ink); }
.card-title h2 .i { color: var(--accent); }
.dot.coral { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
button.tag { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }

/* IronM：顶上的企鹅卡 */
.chat-bar.buddy-card { margin-top: calc(8px + env(safe-area-inset-top, 0px)); padding: 14px; gap: 12px; border: 0; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); align-items: flex-start; }
.chat-bar.buddy-card > .mech { width: 64px; height: 64px; padding: 4px; }
.buddy-card .who { gap: 2px; }
.buddy-card .who b { font-size: 22px; font-weight: 800; }
.buddy-card .who > span { font-size: 12px; color: var(--muted); }
.who-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.who-facts .tag { font-size: 11px; padding: 3px 8px; }
.chat .thread { padding-top: 14px; }
/* §209 需求 5：顶上卡片不钉住——卡片和消息放在同一个滚动区里一起滚，消息区自己不再滚 */
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.chat-scroll > .thread { flex: none; overflow: visible; }

/* 图鉴：四个大标签、自由训练横幅、动作卡 */
.free-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 24px;
  background: var(--icon-bg); cursor: pointer; }
.free-banner b { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 800; color: var(--ink); }
.free-banner b .i { color: var(--accent); }
.free-banner span { font-size: 13px; color: var(--ink-2); }
.fb-go { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 8px 14px; border-radius: 999px; background: var(--fire); color: #fff !important; font-weight: 700; }
.lib-head { display: flex; align-items: baseline; gap: 8px; }
.lib-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.lib-head .muted { background: var(--neutral-soft); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pills .pill { background: var(--surface); box-shadow: var(--shadow); font-weight: 650; }
.pills .pill.on { background: #1d1d26; color: #fff; }
.move-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; border: 0; padding: 0; }
.move-cover { border-radius: 18px; margin: 8px 8px 0; overflow: hidden; background: var(--sunken); }
.cover-level { border-radius: 999px; font-weight: 700; background: var(--good-soft); color: var(--good); }
.cover-level.lv-进阶 { background: var(--accent-soft); color: var(--accent-text); }
.cover-level.lv-中级 { background: var(--good-soft); color: var(--good); }
.move-info { padding: 10px 12px 4px; }
.move-info b { font-size: 16px; font-weight: 750; }
.move-best { display: flex; align-items: center; justify-content: space-between; margin: 6px 8px 8px; padding: 8px 10px; border-radius: 14px; background: var(--sunken); }
.move-best span { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.move-best b { font-size: 20px; font-weight: 800; color: var(--accent-text); }

/* 记录：这周表现、身体数据 */
.week-perf { gap: 14px; }
.wp-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--sunken); border-radius: 18px; padding: 14px 10px; text-align: center; }
.wp-cell span { display: block; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.wp-cell b { font-size: 26px; font-weight: 800; color: var(--ink); }
.wp-cell b small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.wp-cell.hot b { color: var(--accent-text); }
.wp-goal-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 650; }
.wp-goal-head b { color: var(--accent-text); }
.wp-goal > i { display: block; height: 8px; margin-top: 6px; border-radius: 999px; background: #ececf3; overflow: hidden; }
.wp-goal > i b { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.body-card .tiles { gap: 10px; }
.body-card .tile { background: var(--sunken); box-shadow: none; border-radius: 18px; }

/* 我：资料卡、分组设置带图标 */
.me-head .avatar { width: 64px; height: 64px; font-size: 24px; background: var(--accent-soft); color: var(--accent-text); border: 3px solid #fff; box-shadow: var(--shadow); }
.me-head .row-main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.me-head .row-title { font-size: 18px; font-weight: 800; }
.me-head .tag .mech { width: 16px; height: 16px; }
.me-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; background: var(--icon-bg); border-radius: 16px; padding: 12px; text-align: center; }
.me-stats span { display: block; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.me-stats b { font-size: 24px; font-weight: 800; }
.me-stats b small { font-size: 12px; margin-left: 2px; color: var(--muted); }
.me-group { display: flex; flex-direction: column; gap: 8px; }
.me-group-h { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--ink); padding: 0 2px; }
.me-group-h .i { color: var(--accent); }
.me-rows { padding: 6px 14px; gap: 0; }
.me-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; width: 100%; background: none; border: 0; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.me-row + .me-row { border-top: 1px solid var(--line); }
.me-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--icon-bg); display: grid; place-items: center; color: #3b3b5c; }
.me-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; }
.me-row small { color: var(--muted); font-size: 12px; }
.btn.danger.block { background: var(--surface); color: var(--heat); font-size: 16px; box-shadow: var(--shadow); border: 0; }
.tile .num, .tile b, .cal-card, .cal-card * { font-family: var(--font); }

/* ==== 训练中照参照图（§175 需求 4） ==== */
.live-bar { gap: 8px; }
.live-bar .who { flex-direction: column; align-items: flex-start; gap: 2px; }
.live-clock { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--icon-bg); color: var(--ink); }
.live-clock .i { color: var(--accent); }
.live-bar .who > span:last-child { font-size: 12px; color: var(--muted); padding-left: 4px; }
.live-bar .btn.live-end { background: var(--accent-soft); color: var(--accent-text); border-radius: 999px; padding: 10px 16px; font-weight: 700; }
.live-prog { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.lp-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.lp-head b { color: var(--accent-text); }
.live-rest { position: static; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 16px; border-radius: 22px;
  background: var(--icon-bg); box-shadow: none; border: 0; }
.live-rest .lr-head { display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
.lr-head > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.dot.green { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1e8a47; }
.live-rest .lr-head b { font-family: var(--font); font-size: 28px; font-weight: 800; color: #1e8a47; }
.live-rest .lr-head b small { font-size: 14px; color: var(--muted); font-weight: 600; }
.lr-bar { display: block; height: 6px; border-radius: 999px; background: #dcdbe9; overflow: hidden; }
.lr-bar b { display: block; height: 100%; background: #1e8a47; border-radius: 999px; }
.live-rest-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.live-rest-btns .btn { background: var(--surface); color: var(--ink); box-shadow: none; border-radius: 14px; font-size: 14px; }
.live-head .row-main b { font-size: 24px; font-weight: 800; }
.lf-now { align-self: flex-start; }
.live-focus { display: flex; flex-direction: column; gap: 12px; }
.lf-cue { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--icon-bg); font-size: 13px; font-weight: 600; color: var(--ink); }
.lf-cue .i { color: var(--accent); flex: none; }
.lf-steps .stepper { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "label label label" "down val up"; row-gap: 8px; padding: 14px 16px; border-radius: 22px; }
.step-label { grid-area: label; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.lf-steps .step-btn:first-of-type { grid-area: down; }
.lf-steps .step-val { grid-area: val; justify-content: center; }
.lf-steps .step-btn:last-child { grid-area: up; }
.lf-steps .step-val b { font-size: 48px; }
.btn.lf-done { border-radius: 999px; padding: 16px 0; }
.live-rest > div.lr-head { flex-direction: row; justify-content: space-between; align-items: center; }

/* §178 训练中大数字点一下自己填：看着和原来的大数字一样，底下一条虚线提示能点 */
.step-in { width: 3.6em; min-width: 0; padding: 0 2px; border: 0; border-bottom: 2px dashed var(--line-hi); border-radius: 0;
  background: transparent; color: var(--ink); text-align: center; font-family: inherit; font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.step-in:focus { outline: none; border-bottom-color: var(--accent); }
.step-in.hot { color: var(--warn); }
.lf-steps .step-in { width: 3.2em; font-size: 40px; font-weight: 800; }
.lf-steps .step-val small { white-space: nowrap; }

/* §174 完善资料：必填项的星号 */
.req { color: var(--accent-text); font-weight: 700; }

/* §180 隐私政策、用户协议 */
.legal { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; color: var(--ink); line-height: 1.7; }
.legal h1 { font-size: 26px; margin: 12px 0 4px; }
.legal h2 { font-size: 16px; margin: 20px 0 4px; }
.legal p { margin: 0 0 6px; }
.legal-draft { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--ink); font-size: 13px; }
.legal-line { text-align: center; margin-top: 4px; }
.legal-list { margin: 0; padding-left: 1.2em; line-height: 1.7; }

/* 饮食账单"今天还能吃"的数字小一点（项目负责人 11-06："卡路里字太大了"）：44 → 32 */
.bg-big.fig-n { font-size: 32px; }

/* 今天吃什么每顿一行（11-06："字体太大了，不要移到下一行"）：顿名和热量小一点、整行不换行；"记实际吃的"小链接 */
.tp-head { flex-wrap: nowrap; min-width: 0; }
.tp-head b { font-size: 16px; white-space: nowrap; }
.tp-kcal { white-space: nowrap; flex-shrink: 0; }
.tp-kcal .fig-n { font-size: 16px; }
.tp-head .btn, .tp-head .link, .tp-tag { white-space: nowrap; flex-shrink: 0; }
.tp-other { align-self: flex-start; font-size: 13px; margin-top: 2px; }
/* 每顿吃什么的克数、千卡：14 号、不折行（前面的样式把 .num 放大到 24 号，"152 千卡"被挤成两行） */
.tp-foods .num { font-size: 14px; line-height: 1.4; white-space: nowrap; }
.tp-foods li { font-size: 14px; }

/* ---- 成就勋章（§196） ---- */
.medal-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 14px 6px; }
.medal-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink); font: inherit; }
.medal-cell .medal svg { display: block; overflow: visible; }
.medal-cell.locked .medal svg { opacity: .85; }
.medal-title { font-size: 12px; line-height: 1.3; color: var(--muted); text-align: center; }
.medal-value { font-size: 13px; line-height: 1.3; text-align: center; }
.medal-cell.locked .medal-value { color: var(--muted); font-weight: 500; }
.medal-new { position: absolute; top: 0; left: calc(50% - 52px); background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 6px; }
.medal-bar { display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.medal-bar b { display: block; height: 100%; background: var(--accent); }
.medal-big { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin-bottom: 8px; }
.medal-big .medal svg { overflow: visible; }
/* 贴纸勋章的流光和小黄鸡晃动；设置了减少动态效果就不动 */
@keyframes medal-sweep { 0% { transform: translateX(-140px) rotate(20deg); } 60%, 100% { transform: translateX(170px) rotate(20deg); } }
@keyframes medal-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.medal-sweep { transform-box: view-box; transform-origin: 100px 100px; animation: medal-sweep 3.2s ease-in-out infinite; }
.medal-bob { animation: medal-bob 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .medal-sweep, .medal-bob { animation: none; } }
.medal-big-value { font-size: 26px; font-weight: 800; color: var(--accent-text); }
.medal-chart { margin: 4px 0 10px; }
.medal-facts .row-end { white-space: normal; text-align: right; max-width: 70%; }
.ach-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 12px; }
.ach-head h1 { margin: 0; }
button.ach-fresh { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; width: 100%; min-height: 0; padding: 12px 14px; text-align: left; border: 1px solid var(--gold-line); background: var(--gold-soft); cursor: pointer; font: inherit; color: var(--ink); }
.ach-fresh b { display: block; color: var(--gold-2); }
.ach-fresh small { color: var(--gold); }
.ach-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ach-empty { display: block; text-decoration: none; }

/* §197 首页：今日委托里的天气一行、最下面的这周计划 */
.quest-wx { display: flex; align-items: center; gap: 6px; margin: -2px 0 0; font-size: 13px; color: var(--ink-2); }
.quest-wx .i { color: var(--gold-2); flex: none; }
.quest-wx.warn, .quest-wx.warn .i { color: var(--warn); }
.quest-wx span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-strip .day-strip { margin-top: 2px; }
.week-strip .ds-day.plan:not(.on) { background: var(--sunken); }

/* §198 自定义：食物、动作、方案页最下面的"自定义 · 我的…"一块 */
.mine-block { display: grid; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.mine-block .section-head h2 { font-size: 17px; margin: 0; }
.mine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mine-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.mine-card b { font-size: 14.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-card small { font-size: 12px; color: var(--muted); }
.mine-card.add { border-style: dashed; background: transparent; justify-content: center; }
.mine-card.add .mc-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); color: var(--accent); }
.mc-cover { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--sunken); color: var(--ink-2); }
.mine-grid .plan-lib-card { margin: 0; min-width: 0; }
/* 连锁店（§203） */
.chain-brand { display: grid; gap: 10px; }
.chain-brand .caption { margin: 0; }
.chain-sizes { margin-bottom: 4px; }
.chain-list { display: grid; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.chain-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.chain-row:first-child { border-top: 0; }
.cr-name { display: grid; gap: 2px; min-width: 0; }
.cr-name b { font-size: 15px; font-weight: 650; }
.cr-num { display: grid; justify-items: end; gap: 2px; flex: none; }
.cr-num b { font-size: 16px; }
/* 从视频生成方案（§200）：上传按钮、进度、转好的文字；11-09 做成方案页最上面的特色卡 */
.vt-feature { display: grid; gap: 12px; margin: 4px 0 16px; padding: 16px; border-radius: 20px; border: 1.5px solid var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), var(--gold-soft)); box-shadow: 0 8px 24px var(--accent-glow); }
.vt-head { display: flex; align-items: center; gap: 12px; }
.vt-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.vt-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--accent); color: var(--accent-ink); }
.vt-ic .i { width: 24px; height: 24px; }
.vt-lede { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.vt-feature .mine-card { background: var(--surface); }
.vt-block .caption { margin: 0; }
.vt-sub { font-size: 14px; margin: 4px 0 0; color: var(--ink-2); }
.vt-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vt-upload label.btn { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.vt-upload .vt-pick { background: var(--accent); color: var(--accent-ink); }
.vt-upload small { width: 100%; text-align: center; }
.vt-upload .btn.disabled { opacity: .5; pointer-events: none; }
.vt-status { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.vt-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vt-lines li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; line-height: 1.6; }
.vt-lines time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.vt-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 12px; }
/* 生成的两份方案（§201） */
.vt-card.ready { border-color: var(--accent); }
.vt-ready { color: var(--accent) !important; font-weight: 600; }
.vp-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 12px; background: var(--surface); }
.vp-card.mine { border-color: var(--accent); }
.vp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vp-head h3 { margin: 0; font-size: 15.5px; min-width: 0; }
.vp-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; white-space: nowrap; flex: none; }
.vp-body { display: grid; gap: 8px; margin-top: 6px; }
.vp-body p { margin: 0; }
.vp-day b { font-size: 14px; }
.vp-items { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.vp-items li { display: grid; gap: 2px; line-height: 1.5; }
.vp-move { font-weight: 600; }
.vp-quote { color: var(--muted); font-size: 12.5px; display: flex; gap: 6px; }
.vp-quote time { font-variant-numeric: tabular-nums; flex: none; }
.vp-changes ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.vp-look { border-radius: 12px; padding: 10px 12px; background: var(--sunken); font-size: 13.5px; }
.vp-look ul { margin: 4px 0 0; padding-left: 18px; }
.mine-tag { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--sunken); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
input.short { width: 72px; }
.mp-day { display: grid; gap: 8px; padding: 12px; }
.mp-day-head { display: flex; align-items: center; gap: 10px; }
.mp-day-head b { flex: none; }
.mp-day-head input { flex: 1; min-width: 0; }

/* §202 首页今天吃：打勾清单 + 记录框；先出克数的清单 */
.eat2 { display: grid; gap: 4px; }
.eat2 .eat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.eat-title { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; }
.eat-title h2 { margin: 0; }
.eat-left { font-size: 13px; color: var(--muted); white-space: nowrap; }
.eat-left b { font-size: 22px; font-weight: 700; color: var(--ink); }
.er-list { display: grid; }
.er { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--line); }
.er-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: transparent; border: 1.5px solid var(--line-hi); cursor: pointer; }
.er-dot.on { background: rgb(18 183 106 / 14%); border-color: transparent; color: #1a7a4c; cursor: default; }
.er-dot.ghost { border-style: dashed; opacity: .5; cursor: default; }
.er-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font: inherit; font-size: 15px; color: var(--ink); background: none; border: 0; padding: 10px 0; cursor: pointer; }
.er.planned .er-name, .er.none .er-name, .er.planned .er-kcal { color: var(--muted); }
.er-kcal { font-size: 14px; white-space: nowrap; }
.ec-wrap { display: grid; gap: 6px; margin-top: 6px; }
.ec { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-hi); border-radius: 26px; padding: 5px 5px 5px 8px; background: var(--surface); }
.ec input[type="text"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 4px; font: inherit; font-size: 15px; box-shadow: none; }
.ec input[type="text"]:focus { outline: none; }
.ec-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 0; padding: 0; background: var(--sunken); color: var(--accent); cursor: pointer; align-self: center; }
.ec-btn[hidden] { display: none; }
.ec-btn.go { background: var(--accent); color: var(--accent-ink); }
.ec-btn:focus-within { outline: 2px solid var(--accent); }
.ec-thumb { position: relative; width: 34px; height: 34px; flex: none; }
.ec-thumb[hidden] { display: none; }
.ec-thumb img { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; display: block; }
.ec-thumb button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: var(--ink); color: #fff; cursor: pointer; }
.ec-msg:empty { display: none; }
.ec-msg { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.mr-top { display: flex; align-items: center; gap: 10px; }
.mr-photo { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.mr-said { flex: 1; min-width: 0; background: var(--sunken); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.mr-list { display: grid; }
.mr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px 28px; align-items: center; gap: 8px; min-height: 50px; border-top: 1px solid var(--line); }
.mr-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.mr-step { display: flex; align-items: center; gap: 6px; }
.mr-b { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-hi); background: transparent; color: var(--ink); font: inherit; font-size: 16px; line-height: 1; padding: 0; cursor: pointer; }
.mr-gbox { display: flex; flex-direction: row; align-items: center; gap: 3px; margin: 0; }
.mr-gbox small { color: var(--muted); font-size: 12px; }
input.mr-g { width: 52px; padding: 4px 2px; text-align: center; font-size: 15px; }
.mr-kcal { text-align: right; font-size: 14px; white-space: nowrap; }
.mr-del { width: 28px; height: 28px; }
.mr-add { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--accent); }
.mr-add input { flex: 1; min-width: 0; }
.mr-total { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
.mr-total b { font-size: 18px; }

/* 摄像头看动作（§218）：盖在训练页上的全屏面板，深色底，画面居中不裁 */
body.fc-on { overflow: hidden; }
.fc-open { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.fc-open small { color: var(--muted); font-weight: 400; font-size: 12px; }
.fc { position: fixed; inset: 0; z-index: 60; background: #14171a; color: #fff; display: flex; flex-direction: column; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.fc-top { display: flex; align-items: center; gap: 10px; }
.fc-top b { flex: 1; font-size: 17px; }
.fc-top .icon-btn { color: #fff; background: rgb(255 255 255 / 12%); }
.fc-fps { font-size: 12px; color: rgb(255 255 255 / 60%); }
.fc-stage { position: relative; flex: 1; min-height: 46vh; background: #000; border-radius: 18px; overflow: hidden; }
.fc-stage video, .fc-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fc-big { position: absolute; top: 12px; left: 14px; display: flex; align-items: baseline; gap: 4px; text-shadow: 0 2px 10px rgb(0 0 0 / 60%); }
.fc-big b { font-size: 64px; line-height: 1; }
.fc-big small { font-size: 18px; }
.fc-cue { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 16px; border-radius: 14px; font-size: 26px; font-weight: 800; text-align: center; }
.fc-cue.bad { background: rgb(214 59 64 / 92%); }
.fc-cue.ok { background: rgb(30 138 71 / 88%); }
.fc-status { font-size: 16px; font-weight: 600; min-height: 1.6em; }
.fc-status.error { color: #ffb4a8; }
.fc-rest { font-size: 15px; color: #8fe0b0; min-height: 0; }
.fc-rest:empty { display: none; }
.fc-seg { display: flex; border-radius: 999px; background: rgb(255 255 255 / 10%); padding: 3px; }
.fc-seg button { flex: 1; border: 0; background: none; color: rgb(255 255 255 / 75%); font: inherit; font-size: 14px; padding: 8px 4px; border-radius: 999px; }
.fc-seg button.on { background: #fff; color: var(--ink); font-weight: 700; }
.fc-done { margin-top: 2px; }
.fc-note { margin: 0; text-align: center; font-size: 12px; color: rgb(255 255 255 / 50%); }

/* 训练视频分析（§224） */
.chat-tools .icon-btn[hidden] { display: none; }
.fc-prog { height: 6px; border-radius: 999px; background: rgb(255 255 255 / 14%); overflow: hidden; }
.fc-prog i { display: block; height: 100%; width: 0; background: #8fe0b0; transition: width .3s; }
.fc-result { display: flex; flex-direction: column; gap: 10px; }
.fc-result:empty { display: none; }
.fc-marks { display: flex; flex-direction: column; gap: 6px; }
.fc-marks button { display: flex; align-items: center; gap: 8px; text-align: left; border: 0; border-radius: 12px; padding: 10px 12px; background: rgb(214 59 64 / 22%); color: #fff; font: inherit; font-size: 14px; }
.fc-ask { border: 0; border-radius: 12px; padding: 12px; font: inherit; font-size: 15px; background: rgb(255 255 255 / 10%); color: #fff; }
.fc-ask::placeholder { color: rgb(255 255 255 / 50%); }
.vpick { display: flex; flex-direction: column; gap: 6px; }
.vpick select { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgb(15 42 29 / 18%); background: var(--surface, #fff); color: var(--ink); }
.btn.off { opacity: .45; pointer-events: none; }
.vcard { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / 16%); }
.vcard-head { display: flex; align-items: center; gap: 6px; }
.vcard small { opacity: .8; font-size: 12px; }
.vcard p { margin: 0; }
.vcard ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }

/* 计划里的重量（§229）：动作旁写多重，没记过的标"试重量" */
.kg-tag { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.kg-tag.trial, .kg-tag.again, .kg-tag.suggest, .kg-tag.light { color: var(--accent); }
.lf-tip { margin: 0; font-size: 13px; color: var(--ink-2); }

/* ---- 填写表单重做（§232）：预览、大数字格、带单位的小格。颜色圆角都用上面已有的变量 ---- */
.fm-preview { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--sunken); }
.fm-cover { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--accent-soft); color: var(--accent-text); }
.fm-pv-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.fm-pv-main b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-pv-main small { font-size: 12.5px; color: var(--muted); }
.fm-macro { display: flex; gap: 2px; height: 6px; margin-top: 6px; border-radius: 3px; overflow: hidden; }
.fm-macro i { min-width: 4px; } .fm-macro .fm-p { background: var(--accent); } .fm-macro .fm-c { background: var(--amber); } .fm-macro .fm-f { background: var(--violet); }
.fm-group { display: flex; flex-direction: column; }
.fm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fm-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: text; }
.fm-tile:focus-within, .fm-unit:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fm-k { font-size: 12.5px; color: var(--muted); }
.fm-v { display: flex; align-items: baseline; gap: 4px; }
.fm-v small, .fm-unit small { font-size: 12px; color: var(--muted); flex: none; }
.sheet-body .fm-tile input, .sheet-body .fm-unit input { width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0; color: var(--ink); font: inherit; -moz-appearance: textfield; appearance: textfield; }
.sheet-body .fm-tile input { font-size: 26px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.fm-tile input::-webkit-outer-spin-button, .fm-tile input::-webkit-inner-spin-button, .fm-unit input::-webkit-outer-spin-button, .fm-unit input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fm-unit { display: inline-flex; align-items: baseline; gap: 4px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fm-serving { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.fm-serving .fm-unit { width: 88px; } .fm-serving .fm-unit.word { width: 72px; }
.fm-serving .fm-unit input { text-align: center; }
.fm-cover.mark { font-size: 18px; }
.fm-dot.mark { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.pill.on .fm-dot.mark { color: inherit; }
.fm-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fm-modes button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.fm-modes button b { font-size: 15px; } .fm-modes button small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.fm-modes button.on { border-color: var(--accent); background: var(--accent-soft); }
.fm-modes button.on small { color: var(--accent-text); }
/* 改我的方案：一个动作一行 */
.mp-day-head small { flex: none; font-size: 12.5px; }
.fm-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 28px; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.fm-thumb { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--sunken); }
.fm-thumb.none { display: grid; place-items: center; color: var(--muted); }
.sheet-body .fm-row > input[type="text"] { min-width: 0; padding: 8px 2px; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; font-size: 15px; }
.sheet-body .fm-row > input[type="text"]:focus { outline: 0; border-bottom-color: var(--accent); }
.fm-sr { display: flex; align-items: center; gap: 4px; } .fm-sr > small { color: var(--muted); }
.fm-unit.mini { padding: 6px 8px; border-radius: 10px; width: 52px; background: var(--sunken); border-color: transparent; }
.fm-unit.mini.wide { width: 64px; }
.fm-unit.mini input { text-align: center; font-size: 15px; }
.fm-x { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.fm-x:hover { background: var(--sunken); color: var(--ink); }
/* 打卡每组：圆点、重量格、×、次数格 */
.fm-set { display: grid; grid-template-columns: 24px minmax(0, 1fr) 12px minmax(0, 1fr); align-items: center; gap: 8px; }
.fm-set > small { color: var(--muted); text-align: center; }
.fm-n { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--sunken); color: var(--ink-2); font-size: 12.5px; }
.sets-form .fm-unit { display: flex; padding: 7px 12px; }
.sets-form .fm-unit input { font-size: 16px; }
/* 配一张图（§233）：预览里的方块就是入口；卡片上的小图、详情里的大图 */
.fm-pick { position: relative; flex: none; display: block; width: 56px; height: 56px; border-radius: 14px; cursor: pointer; }
.fm-pick .fm-cover { width: 56px; height: 56px; border-radius: 14px; font-size: 20px; }
.fm-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.fm-shot { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: var(--sunken); }
.fm-shot img, .mc-cover.shot img, .fm-big img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fm-cam { position: absolute; right: -5px; bottom: -5px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--accent-text); box-shadow: var(--shadow); }
.fm-pic-off { align-self: flex-start; padding: 0; font-size: 12.5px; }
.fm-pv-main .fm-pic-msg { color: var(--warn); } .fm-pic-msg:empty { display: none; }
.mc-cover.shot { overflow: hidden; padding: 0; }
.fm-big { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--sunken); flex: none; }
.mine-plan.pictured { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.mine-plan.pictured .mc-cover { grid-row: 1 / span 2; }

/* 三处明显的毛病（§234） */
/* 对话输入框：吃满四个图标之间的宽度（占位字另外改短了，375 宽一行放得下） */
.composer textarea { flex: 1 1 0; min-width: 0; }
/* 计划页标题下：标题、时长、估算的千卡各一行，千卡那句不折行；右边两个按钮和这一块上下居中 */
.pd-head { align-items: center; }
.pd-head > div:first-child { flex: 1; min-width: 0; }
.pd-burn { display: block; margin-top: 2px; text-align: left; white-space: nowrap; }
/* 重量标记单独占一行时和上面的字左边对齐（§229 加的标记原来一律左边留 6 像素） */
.row-main > .kg-tag, .q-name > .kg-tag { margin-left: 0; }

/* 建档一屏一问（§244）：进度条、问题、图标大卡片（按下缩一下，选中描边、底色、右上角一个勾）、刻度尺 */
.ob-wrap { width: 100%; margin-top: 5dvh; gap: 16px; align-items: stretch; text-align: left; }
.ob-wrap .wordmark { align-self: center; }
.ob { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.ob-top { display: flex; align-items: center; gap: 10px; }
.ob-gap { width: 36px; flex: none; }
.ob-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ob-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }
.ob-step { flex: none; min-width: 36px; text-align: right; font-size: 13px; color: var(--muted); }
.ob-q { margin: 14px 0 0; font-size: 24px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.ob-q .req { color: var(--accent-text); }
.ob-why { margin: -6px 0 2px; }
.ob-stack { display: flex; flex-direction: column; gap: 10px; }
.ob-stack > .label { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ob-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ob-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ob-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ob-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ob-grid.one { grid-template-columns: 1fr; }
.ob-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-width: 0; min-height: 96px; padding: 14px 6px 12px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit; text-align: center; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .15s, background-color .15s; -webkit-tap-highlight-color: transparent;
}
.ob-card:active { transform: scale(.95); }
.ob-card:focus-visible { outline: 3px solid var(--accent-glow); outline-offset: 2px; }
.ob-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.ob-card b { font-size: 15px; line-height: 1.3; font-weight: 700; }
.ob-card small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.ob-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--icon-bg); color: var(--ink-2); transition: background-color .15s, color .15s; }
.ob-ic svg.i { width: 26px; height: 26px; }
.ob-ic .dot { fill: var(--accent); stroke: none; }
.ob-card[aria-pressed="true"] .ob-ic { background: var(--accent); color: var(--accent-ink); }
.ob-card[aria-pressed="true"] .ob-ic .dot { fill: var(--accent-ink); }
.ob-tick { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); opacity: 0; transform: scale(.4); transition: opacity .15s, transform .15s; }
.ob-tick svg.i { width: 12px; height: 12px; stroke-width: 3; }
.ob-card[aria-pressed="true"] .ob-tick { opacity: 1; transform: none; }
.ob-grid.one .ob-card { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 64px; padding: 10px 14px; text-align: left; }
.ob-grid.one .ob-card b { flex: none; }
.ob-grid.one .ob-card .ob-ic { width: 40px; height: 40px; }
.ob-grid.four .ob-card, .ob-grid.five .ob-card { min-height: 78px; padding: 10px 2px; }
.ob-grid.four .ob-ic { width: 40px; height: 40px; }
.ob-big { font-size: 28px; line-height: 1; font-weight: 800; }
.ob-grid.five .ob-card b { font-size: 13px; color: var(--muted); }
.ob-measure { display: flex; flex-direction: column; gap: 8px; padding: 18px 4px 4px; }
.ob-num-wrap { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.ob-num { width: 4.2ch; padding: 0; border: 0; border-bottom: 2px solid var(--line); background: transparent; color: var(--ink); font: inherit;
  font-size: 52px; line-height: 1.1; font-weight: 800; text-align: center; -moz-appearance: textfield; }
.ob-num::-webkit-inner-spin-button, .ob-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ob-num:focus { outline: 0; border-bottom-color: var(--accent); }
.ob-unit { font-size: 16px; font-weight: 700; color: var(--muted); }
.ob-ruler { width: 100%; height: 48px; margin: 6px 0 0; -webkit-appearance: none; appearance: none; background: transparent; cursor: grab; }
.ob-ruler::-webkit-slider-runnable-track { height: 34px; border-radius: 10px;
  background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 10px) bottom / 100% 14px no-repeat,
              repeating-linear-gradient(90deg, var(--muted) 0 2px, transparent 2px 50px) bottom / 100% 26px no-repeat, var(--sunken); }
.ob-ruler::-moz-range-track { height: 34px; border-radius: 10px;
  background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 10px) bottom / 100% 14px no-repeat,
              repeating-linear-gradient(90deg, var(--muted) 0 2px, transparent 2px 50px) bottom / 100% 26px no-repeat, var(--sunken); }
.ob-ruler::-webkit-slider-thumb { -webkit-appearance: none; width: 6px; height: 46px; margin-top: -6px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.ob-ruler::-moz-range-thumb { width: 6px; height: 46px; border: 0; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.ob-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.ob-wheels { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding-top: 10px; }
.ob-wheel { display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: center; }
.ob-wheels .ob-wheel select { flex: 1; min-width: 0; height: 56px; padding: 0 8px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 20px; font-weight: 700; text-align: center; }
.ob-wheels .ob-wheel select:focus { outline: 0; border-color: var(--accent); }
.ob-wheel span { flex: none; font-size: 14px; color: var(--muted); }
.ob-note { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
.ob-doctor { display: flex; align-items: center; gap: 4px; margin: 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); }  /* §324 选了病或症状时的提醒 */
.ob-msg:empty { display: none; }
.ob-foot { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-top: 8px; }
.ob-skip { align-self: center; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .ob-card, .ob-tick, .ob-bar i { transition: none; } .ob-card:active { transform: none; } }

/* 饮食记录（§245）：配图圆形；记过的右边替换图标；往左滑露出删除；替换前的确认框 */
.tp-thumb { border-radius: 50%; }
.tp-end { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.tp-swap { width: 36px; height: 36px; min-width: 36px; color: var(--accent-text); }
.swipe { position: relative; overflow: hidden; }
.swipe-face { position: relative; z-index: 1; background: var(--surface); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.swipe-del { position: absolute; top: 0; right: 0; bottom: 0; width: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; background: var(--heat); color: var(--accent-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.swipe-del svg.i { stroke: currentColor; }
.swipe:not(.show) .swipe-del { visibility: hidden; }
.swipe + .swipe .tp-meal, .tp-list > .swipe:not(:first-child) .tp-meal { border-top: 1px solid var(--line); }
.sure-root { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.sure-overlay { position: absolute; inset: 0; background: rgb(20 16 30 / 45%); }
.sure-box { position: relative; width: min(340px, 100%); padding: 20px 18px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); }
.sure-box p { margin: 0 0 16px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.sure-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sure-btns .btn { width: 100%; }

/* 带单位的数能左右拖（§246）：格子底下一排细刻度，一格 12 像素对应拖一格；拖的时候刻度跟着走、变主色 */
input.scrub {
  cursor: ew-resize; touch-action: pan-y;
  background-image: repeating-linear-gradient(90deg, rgb(117 117 136 / 32%) 0 1px, transparent 1px 12px) !important;
  background-repeat: repeat-x !important; background-size: 100% 5px !important; background-position-y: calc(100% - 2px) !important;
}
input.scrub:focus { cursor: text; }
.qa-val { display: flex; align-items: baseline; justify-content: center; gap: 2px; min-width: 0; }
input.qa-w { width: 4.4ch; min-width: 0; height: auto; padding: 0 2px 8px; border: 0; border-radius: 10px; box-shadow: none; background-color: transparent;
  color: var(--ink); font: inherit; font-size: 32px; font-weight: 300; line-height: 1.2; text-align: center; -moz-appearance: textfield; }
input.qa-w::-webkit-inner-spin-button, input.qa-w::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input.qa-w:focus { outline: 0; box-shadow: inset 0 -2px 0 var(--accent); }
input.scrub.dragging { cursor: grabbing; box-shadow: 0 0 0 2px var(--accent) !important;
  background-image: repeating-linear-gradient(90deg, var(--accent) 0 1px, transparent 1px 12px) !important; background-size: 100% 7px !important; }

/* 选几点、同一餐多条、今天删掉的（§247） */
.time-row, .sheet label.time-row, .kind-pick label.time-row { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; margin-top: 8px; text-align: left; }
.time-row .time-pick { width: auto; min-width: 118px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.tp-at { margin-left: 6px; font-size: 12px; color: var(--muted); }
.tp-more { width: 36px; height: 36px; min-width: 36px; color: var(--accent-text); }
.tp-meal .swipe + .swipe { border-top: 1px dashed var(--line); }
.tp-gone { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.tp-gone summary { cursor: pointer; padding: 6px 0; }
.tp-gone ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tp-gone li { display: flex; flex-direction: column; gap: 1px; color: var(--ink-2); }
.tl-at { display: block; font-size: 11px; color: var(--muted); }

/* 记一顿（§248）：照片方块在左，哪一餐和几点在右；下面备注、认一下、逐样克数、加一样、合计、记下 */
.meal-form { display: flex; flex-direction: column; gap: 10px; }
.meal-form .section-head { margin: 0; }
.mf-top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.mf-pick { position: relative; display: block; cursor: pointer; }
.mf-shot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 96px; height: 96px;
  border: 2px dashed var(--line); border-radius: 50%; background: var(--sunken); color: var(--muted); overflow: hidden; text-align: center; }
.mf-shot small { font-size: 12px; line-height: 1.3; padding: 0 8px; }
.mf-shot.on { border-style: solid; border-color: var(--accent); }
.mf-shot img { width: 100%; height: 100%; object-fit: cover; }
.mf-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mf-kinds .pills { flex-wrap: wrap; }
.mf-time .time-row { margin-top: 0; }
.mf-shot-off { align-self: flex-start; font-size: 13px; }
.mf-note { width: 100%; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.mf-look { display: flex; justify-content: flex-end; }
.mf-look .btn { width: auto; }
.mf-lines:empty { display: none; }
.mf-msg:empty { display: none; }
.mf-replacing { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 600; }
.mf-usual { margin-top: 4px; }
/* 下面的记录（§248）：每条一张小圆图、名字、几点、替换图标；有计划的那顿一个"按计划吃" */
.tp-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tp-row .tp-name { flex: 1; min-width: 0; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.tp-row .tp-thumb { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; overflow: hidden; display: grid; place-items: center; }
.tp-own img { width: 100%; height: 100%; object-fit: cover; }
.tp-blank { background: var(--sunken); color: var(--muted); }
.tp-byplan { white-space: nowrap; }
.tp-meal.todo .tp-head b { color: var(--muted); }
.tp-empty { margin: 8px 0; }

/* ---- 消息（§235）：顶栏铃铛、消息页 ---- */
.bar-right { justify-self: end; display: flex; align-items: center; gap: 6px; }  /* 顶栏还是三列：铃铛和头像一起放在右边那一列 */
.bar-bell { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); text-decoration: none; }
.bar.bar .bar-bell { background: rgb(255 255 255 / 9%); color: inherit; }
.bar.bar .bar-bell svg { color: var(--surface); }
.bell-n { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; line-height: 1; }
.msg-list { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.msg-day h3 { margin: 0 4px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.msg-card { padding: 4px 14px; }
.nt-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 12px 0; }
.nt-row + .nt-row { border-top: 1px solid var(--line); }
.msg-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); }
.nt-row.warn .msg-dot { background: var(--warn); }
.nt-row.decided .msg-dot { background: var(--good); }
.msg-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.msg-main b { font-size: 15px; overflow-wrap: anywhere; }
.msg-main small { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-row time { font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 2px; font-variant-numeric: tabular-nums; }
.msg-pending .hc-msg + .hc-msg { border-top: 1px solid var(--line); }
.msg-pending .hc-msg { padding: 10px 0; }
.msg-n { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.msg-empty { text-align: center; padding: 28px 0; }
.buddy-all { align-self: flex-start; font-size: 13px; }
/* 消息上能直接操作（§236）：标题那块点开看详情，下面一排小按钮 */
.msg-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: pointer; }
.msg-head small:empty { display: none; }
.msg-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg-acts:empty { display: none; }
.msg-acts .btn { text-decoration: none; }
.msg-acts small.error { flex-basis: 100%; -webkit-line-clamp: unset; display: block; }
.msg-acts .btn.small { height: 30px; min-height: 0; padding: 0 9px; font-size: 13px; line-height: 30px; border-radius: 999px; background: var(--sunken); box-shadow: none; }  /* 三个按钮 375 宽一行放得下 */
/* 消息里的建议（§237）：理由、修改详情 */
.hc-why { margin: 2px 0 0; font-size: 13.5px; }
.hc-changes { margin: 6px 0 0; }
.hc-plan { margin-top: 6px; font-size: 13.5px; }
.hc-plan summary { cursor: pointer; color: var(--accent-text); }
.hc-plan .plan-items { margin: 6px 0 0; }
.msg-head .msg-result { color: var(--good); }
.msg-head .msg-result:empty { display: none; }
/* 看过的、操作过的变绿；只列今天和昨天，其余按日期查（§238） */
.nt-row.read .msg-dot { background: var(--good); }
.hc-msg.done > p { color: var(--good); }
.msg-on-day { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 4px; font-size: 14px; }
.msg-pending .btn-row { display: flex; flex-wrap: wrap; gap: 6px; }
.msg-pending .btn-row > * { flex: none; width: auto; }
/* 消息页的搜索框和日期（§239）：页签下面一行 */
.msg-search { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.msg-search .msg-q { flex: 1; min-width: 0; display: flex; flex-direction: row; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); }
.msg-search .msg-q:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.msg-search .msg-q input { flex: 1; min-width: 0; height: 40px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; outline: 0; }
.msg-search input[type="date"] { flex: none; width: 128px; height: 42px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
/* 消息里直接写改了什么（§240） */
.nt-diff { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.nt-diff s { color: var(--muted); }
.nt-lines { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.nt-lines li + li { margin-top: 2px; }

/* ---- 饮食账单改版（§251）：余额、一条时间线、底部常吃的和记一顿、饮食计划一页 ------------------------- */
:root { --dz-pro: var(--good); --dz-carb: var(--amber); --dz-fat: var(--violet); --dz-del: var(--heat); }
.dz-bal { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.dz-bal-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dz-bal .label { font-size: 13px; letter-spacing: 0; }
.dz-big { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); margin-top: 2px; }
.dz-big small { font-size: 16px; font-weight: 600; letter-spacing: 0; margin-left: 4px; color: var(--ink-2); }
.dz-of { margin: 0; text-align: right; font-size: 13px; color: var(--muted); line-height: 1.55; }
.dz-of b { color: var(--ink); font-size: 15px; }
.dz-seg { display: flex; gap: 3px; height: 12px; margin-top: 14px; }
.dz-seg span { border-radius: 3px; min-width: 4px; background: var(--accent); }
.dz-seg .s1 { background: var(--load-mid); } .dz-seg .s2 { background: var(--load-low); }
.dz-seg .plan { background: repeating-linear-gradient(90deg, rgb(242 96 63 / 25%) 0 4px, transparent 4px 7px); box-shadow: inset 0 0 0 1px rgb(242 96 63 / 50%); }
.dz-seg .rest { background: var(--load-none); }
.dz-seg-l { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.dz-macs { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.dz-mac { min-width: 0; font-size: 12px; color: var(--muted); }
.dz-mac b { display: block; margin-top: 2px; font-size: 18px; color: var(--ink); }
.dz-mac b small { font-size: 12px; color: var(--muted); font-weight: 500; }
.dz-mbar { height: 5px; margin-top: 6px; border-radius: 3px; background: var(--load-none); overflow: hidden; }
.dz-mbar i { display: block; height: 100%; border-radius: 3px; }
.dz-tip { margin: 5px 0 0; font-size: 12px; font-weight: 600; color: var(--dz-pro); }
.dz-bal .bg-how { margin-top: 12px; }
.dz-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 10px; }
.dz-head h2 { margin: 0; font-size: 18px; }
/* 时间线：左边几点，中间一条竖线挂圆照片，右边卡片 */
.dz-line { display: flex; flex-direction: column; }
.dz-row, .dz-gap, .dz-now { display: grid; grid-template-columns: 40px 56px minmax(0, 1fr); align-items: start; position: relative; }
.dz-row::before, .dz-gap::before { content: ""; position: absolute; left: 66px; top: 0; bottom: 0; width: 3px; background: var(--load-low); }
.dz-row.todo::before { background: var(--load-none); }
.dz-row { padding-bottom: 14px; }
.dz-time { padding-top: 20px; font-size: 12px; color: var(--muted); text-align: right; padding-right: 6px; }
.dz-plate { position: relative; z-index: 1; width: 48px; height: 48px; margin: 6px 0 0 4px; border-radius: 50%; overflow: hidden; background: var(--neutral-soft);
  box-shadow: 0 0 0 4px var(--bg), 0 4px 12px rgb(30 20 50 / 16%); display: grid; place-items: center; }
.dz-plate img { width: 100%; height: 100%; object-fit: cover; }
.dz-plate .food-tile { width: 100%; height: 100%; border-radius: 50%; }
.dz-row.todo .dz-plate { outline: 2px dashed var(--accent); outline-offset: 3px; }
.dz-row.todo .dz-plate img { filter: saturate(.3) opacity(.65); }
.dz-row .swipe { min-width: 0; border-radius: 16px; }
.dz-card { background: var(--surface); border-radius: 16px; padding: 11px 12px 10px; min-width: 0; cursor: pointer; }
.dz-card.todo { cursor: default; background: var(--surface); border: 1.5px dashed var(--line-hi); }
.dz-row1 { display: flex; align-items: flex-start; gap: 7px; }
.dz-row1 b { flex: 1; min-width: 0; font-size: 15px; line-height: 1.3; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dz-kind { flex: none; margin-top: 1px; padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; }
.dz-kc { flex: none; font-size: 16px; font-weight: 700; color: var(--ink); }
.dz-kc small { font-size: 11px; font-weight: 500; color: var(--muted); }
.dz-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.dz-chips span { padding: 2px 7px; border-radius: 7px; background: var(--neutral-soft); color: var(--ink-2); font-size: 12px; }
.dz-card.todo .dz-chips span { background: var(--surface); border: 1px dashed var(--line-hi); }
.dz-meta { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 12.5px; color: var(--muted); }
.dz-pro { color: var(--dz-pro); font-weight: 600; }
.dz-acts { margin-left: auto; display: flex; gap: 6px; }
.dz-btn { height: 30px; padding: 0 11px; border: 0; border-radius: 9px; background: var(--neutral-soft); color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.dz-btn.del { background: var(--heat-soft); color: var(--dz-del); }
.dz-btn.go { background: var(--accent); color: var(--accent-ink); }
.dz-btn:disabled { opacity: .5; }
.dz-plan-acts { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.dz-gap { height: 26px; }
.dz-gap small { grid-column: 3; padding-left: 10px; font-size: 11.5px; color: var(--muted); align-self: center; }
.dz-now { align-items: center; margin: 2px 0 14px; }
.dz-now span { justify-self: start; z-index: 1; padding: 2px 5px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; }
.dz-now i { grid-column: 2 / 4; height: 2px; background: var(--accent); }
.dz-now small { position: absolute; right: 0; top: 8px; font-size: 12px; color: var(--muted); }
.dz-empty { margin: 4px 0 14px; }
/* "今天吃的"右边：拍照、记一顿、改计划三个按钮；下面常吃的一排 */
.dz-acts-top { display: flex; align-items: center; gap: 6px; }
.dz-acts-top .btn.small { height: 36px; padding: 0 12px; border-radius: 12px; font-size: 14px; gap: 4px; }
.dz-rec { box-shadow: 0 6px 16px rgb(242 96 63 / 28%); }
.dz-edit.btn { background: var(--surface); color: var(--accent-text); box-shadow: inset 0 0 0 1.5px var(--line-hi); text-decoration: none; }
.dz-cam { flex: none; width: 36px; height: 36px; border: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; cursor: pointer; }
.dz-usual { display: flex; align-items: center; gap: 7px; margin: -2px 0 12px; overflow-x: auto; scrollbar-width: none; }
.dz-usual-lab { flex: none; font-size: 12.5px; color: var(--muted); }
.dz-usual-chip { flex: none; display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 0; border-radius: 999px; background: var(--surface);
  box-shadow: 0 2px 8px rgb(30 20 50 / 8%); font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.dz-usual-chip .food-tile.sm { width: 26px; height: 26px; border-radius: 50%; font-size: 12px; }
.dz-usual-chip small, .dz-usual-chip small.num { font-size: 12px; font-weight: 500; color: var(--muted); }
.sheet-body .meal-form { display: flex; flex-direction: column; gap: 12px; }
/* 饮食计划一页 */
.dz-plan { display: flex; flex-direction: column; gap: 10px; }
.dz-sets.seg { display: flex; gap: 0; padding: 3px; border: 0; border-radius: 12px; background: var(--load-none); }
.dz-sets.seg a { flex: 1; margin: 0; padding: 8px 0; border: 0; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; color: var(--muted); }
.dz-sets.seg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / 8%); border: 0; }
.dz-sum { background: var(--surface); border-radius: 20px; padding: 14px 16px; }
.dz-sum-r { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); }
.dz-sum-r > b { font-size: 26px; color: var(--ink); letter-spacing: -.02em; }
.dz-sum-r > b small { margin-left: 3px; font-size: 13px; color: var(--ink-2); letter-spacing: 0; }
.dz-tbar { position: relative; height: 10px; margin: 10px 0 6px; border-radius: 5px; background: var(--load-none); }
.dz-tbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--accent); }
.dz-tbar u { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--ink-2); }
.dz-warn { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13px; line-height: 1.45; }
.dz-slot { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--surface); }
.dz-slot.empty { background: transparent; border: 1.5px dashed var(--load-none); }
.dz-th { flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--neutral-soft); color: var(--muted); }
.dz-th .food-tile.md { width: 64px; height: 64px; border-radius: 14px; }
.dz-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dz-tx small { font-size: 12px; font-weight: 700; color: var(--accent-text); }
.dz-tx b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-tx span { font-size: 12.5px; color: var(--muted); }
.dz-tx em { font-style: normal; color: var(--dz-pro); font-weight: 600; }
.dz-sacts { display: flex; flex-direction: column; gap: 6px; }
.dz-sacts .dz-btn { width: 58px; }
.dz-lib { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 13px 14px; border-radius: 16px; background: var(--surface); color: var(--muted); text-decoration: none; }
.dz-lib b { display: block; font-size: 15px; color: var(--ink); }
.dz-lib small { font-size: 12.5px; }
/* 换一样 */
.dz-cats { flex-wrap: wrap; }
.dz-opts { display: flex; flex-direction: column; }
.dz-opt { display: flex; align-items: center; gap: 12px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.dz-opt.cur { margin: 0 -10px; padding: 9px 10px; border-radius: 12px; border-bottom: 0; background: var(--accent-soft); }
.dz-opt .food-tile.md { border-radius: 12px; }
.dz-d { flex: none; width: 52px; text-align: right; font-size: 13px; font-weight: 700; color: var(--muted); }
.dz-d.up { color: var(--accent-text); } .dz-d.dn { color: var(--good); }
.dz-opt.cur .dz-d { color: var(--accent-text); font-size: 12px; }

/* ---- 首页改版（§252）：顶栏热搜、人体图当主角、动作横滑、吃和身体两格、这周日卡 ------------------------------ */
/* 顶栏：首页时"首页"旁边一条热搜，标志和右边按钮让一点位置 */
.bar:has(.bar-hot:not([hidden])) { display: flex; gap: 6px; }
.bar:has(.bar-hot:not([hidden])) .bar-lockup { height: 24px; }
.bar:has(.bar-hot:not([hidden])) .bar-right { gap: 6px; }
.bar:has(.bar-hot:not([hidden])) .bar-me, .bar:has(.bar-hot:not([hidden])) .bar-bell { width: 32px; height: 32px; }
.bar:has(.bar-hot:not([hidden])) .bar-text { flex: none; }
.bar-hot { flex: 1; min-width: 0; height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 6px; border-radius: 999px;
  background: rgb(255 255 255 / 9%); color: var(--load-none); font-size: 13px; text-decoration: none; white-space: nowrap; }
.bar-hot[hidden] { display: none; }
.bh-fl { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgb(242 96 63 / 22%); color: var(--accent); }
.bar-hot b, .bar-hot b.num { flex: none; font-size: 13px; font-weight: 800; color: var(--load-mid); }
.bh-w { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 人体图 */
.hb-figs, .hw-figs { display: flex; justify-content: center; }
.hb-figs svg, .hw-figs svg { height: 100%; width: auto; }
/* 热力晕染（§324）：身体一整块浅灰，块与块之间一道细白缝；练到的肌肉上亮下深，底下垫一层模糊的同色往外晕 */
.bf-base path { fill: var(--muted); fill-opacity: .24; stroke: var(--surface); stroke-width: 2; paint-order: stroke; }
.bf-hair path { fill: var(--muted); fill-opacity: .45; }
.bf-main path { fill: var(--heat-fill, var(--accent)); }
.heat-glow { pointer-events: none; }
.heat-glow path { fill: var(--load-hot); opacity: .55; }
/* 今天练 */
.hb { display: flex; flex-direction: column; }
.hb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 4px 4px 0; }
.hb-head small { font-size: 13px; color: var(--muted); }
.hb-title { margin: 2px 0 0; font-size: 30px; font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.hb-title em { font-style: normal; color: var(--accent); }
.hb .today-coach { margin-top: 10px; }
.hb-stage { margin-top: 10px; padding: 14px 10px 12px; border-radius: 26px; background: radial-gradient(120% 80% at 50% 30%, var(--surface) 0, var(--neutral-soft) 72%); }
.hb-figs { height: 210px; gap: 6px; }  /* 两边留出放标签的地方，标签不压到胳膊（§252 补） */
.hb-stage { position: relative; }
.hb-lab { position: absolute; transform: translateY(-50%); padding: 2px 6px; border-radius: 8px; background: var(--surface); color: var(--accent-text);
  font-size: 12px; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; }
.hb-lab { z-index: 2; }
.hb-lab.l { left: 4px; } .hb-lab.r { right: 4px; }
.hb-lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: visible; }
.hb-lines line, .hb-lines path { fill: none; stroke: var(--accent-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hb-lines circle { fill: var(--accent-text); stroke: var(--surface); stroke-width: 2; }
.hb-wx { margin: 0; text-align: right; font-size: 12px; color: var(--muted); line-height: 1.4; }
.hb-wx b, .hb-wx b.num { display: block; font-size: 20px; color: var(--ink); }
.hb-wx.warn small { color: var(--warn); }
.hb-meta b, .hb-meta b.num { font-size: 13px; font-weight: 700; color: var(--ink); }
.hb-meta { display: flex; justify-content: center; gap: 16px; margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.hb-go { margin-top: 12px; }
.hb-sub { display: flex; justify-content: space-between; align-items: center; margin: 8px 4px 0; font-size: 13px; color: var(--muted); }
.hb-sub .link { font-size: 13px; font-weight: 700; padding: 0; }
.hb-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 4px 10px; }
.hb-sec h2 { margin: 0; font-size: 17px; }
.hb-rail { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.hb-move { flex: none; width: 128px; position: relative; display: flex; flex-direction: column; gap: 1px; padding: 8px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); scroll-snap-align: start; }
.hb-im { height: 84px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--surface); color: var(--muted); margin-bottom: 5px; }
.hb-im img { width: 100%; height: 100%; object-fit: contain; }
.hb-no { position: absolute; left: 10px; top: 10px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; }
.hb-move b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-move small { font-size: 12px; color: var(--muted); }
.hb-move .kg-tag { margin: 0; padding: 0; background: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.hb-move .kg-tag.suggest, .hb-move .kg-tag.known, .hb-move .kg-tag.again { color: var(--accent-text); }
/* 今天吃、身体两格 */
.home-duo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.home-duo > :only-child { grid-column: 1 / 3; }
.he { display: flex; flex-direction: column; padding: 14px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.he-k { display: flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
.he-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.he-ring { width: 60px; height: 60px; flex: none; }
.he-track { fill: none; stroke: var(--load-none); stroke-width: 8; }
.he-done { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; }
.he-num b { display: block; font-size: 22px; line-height: 1; }
.he-num small { font-size: 12px; color: var(--muted); }
.he-fill { margin: 8px 0 0; font-size: 13px; color: var(--accent-text); font-weight: 600; }
.he-plates { display: flex; margin-top: 12px; }
.he-plates i { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; margin-right: -7px; border: 2.5px solid var(--surface); background: var(--neutral-soft); box-shadow: var(--shadow); }
.he-plates i img, .he-plates i .food-tile { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.he-plates i.todo { border-style: dashed; border-color: var(--accent); }
.he-plates i.todo img { filter: saturate(.2) opacity(.6); }
.he-plates i.none { box-shadow: none; border-color: var(--surface); background: var(--load-none); }
.home-duo .vitals { display: flex; flex-direction: column; gap: 0; padding: 14px; }
.home-duo .vitals .vt { padding: 0; border: 0; }
.home-duo .vitals .vt + .vt { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.home-duo .vt-sub { display: none; }
.vt-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 4px; }
.vt-bars i { flex: 1; border-radius: 2px; background: var(--icon-bg); }
.vt-bars i.now { background: var(--violet); }
.vt-bars i.none { background: var(--load-none); }
.vt.hr .vt-bars i { background: var(--load-low); } .vt.hr .vt-bars i.now { background: var(--accent); }
/* 这周 */
.hw { padding: 14px 0; }
.hw-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 16px; }
.hw-head h2 { margin: 0; font-size: 16px; }
.hw-days { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 2px; scrollbar-width: none; }
.hw-day { flex: none; width: 118px; display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 2px; padding: 10px; border: 0; border-radius: 16px;
  background: var(--neutral-soft); color: var(--ink); font: inherit; cursor: pointer; }
.hw-dl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.hw-dl b { color: var(--ink-2); }
.hw-ok { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: var(--accent-ink); }
.hw-figs { height: 62px; gap: 2px; margin: 6px 0; }
.hw-nm { font-size: 14px; }
.hw-mv { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-2); line-height: 1.55; }
.hw-mv span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-day small { font-size: 12px; color: var(--muted); }
.hw-day.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--line-hi); }
.hw-day.on .hw-dl b { color: var(--accent-text); }
.hw-day.rest { width: 58px; align-items: center; justify-content: space-between; text-align: center; color: var(--muted); }
.hw-day.rest b { font-size: 12px; color: var(--ink-2); }
.home-duo .vt b, .home-duo .vt b.num { color: var(--ink); font-size: 20px; }
.home-duo .vt-k { font-size: 13px; color: var(--muted); letter-spacing: 0; }
/* IronM 说：一行（§252） */
.hm-say { margin: 0; }
.hm-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.hm-row .mech { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.hm-text { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.hm-text b { font-size: 14px; font-weight: 600; line-height: 1.4; }
.hm-text small { font-size: 12px; color: var(--muted); }
.hm-yes { flex: none; }

/* ---- 消息页"IronM 说话"（§253）：头像加气泡、附件、等确认的快捷回复、点开的竖线故事 ------------------------------ */
.msg-list { gap: 4px; }
.msg-day h3 { margin: 8px 0 8px; text-align: center; }
.msg-day h3 span { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--load-none); font-size: 12px; font-weight: 600; color: var(--muted); }
.mc-list { display: flex; flex-direction: column; gap: 10px; }
.mc-list .nt-row { display: flex; align-items: flex-start; gap: 8px; padding: 0; border: 0; }
.mc-list .nt-row > .mech { width: 34px; height: 34px; flex: none; border-radius: 50%; }
.mc-sys { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--neutral-soft); color: var(--ink-2); }
.mc-sys.warn { background: var(--warn-soft); color: var(--warn); }
.mc-bub { position: relative; min-width: 0; max-width: calc(100% - 42px); display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 8px;
  border-radius: 4px 18px 18px 18px; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; }
.nt-row.warn .mc-bub { background: var(--warn-soft); }
.mc-bub .msg-dot { position: absolute; top: 8px; right: 8px; margin: 0; width: 8px; height: 8px; }
.nt-row.read .mc-bub .msg-dot, .nt-row.decided .mc-bub .msg-dot { display: none; }
.mc-said { margin: 0; display: flex; flex-direction: column; gap: 2px; padding-right: 10px; }
.mc-said b { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.mc-said span { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.mc-bub time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mc-bub .msg-result { font-size: 12px; color: var(--good); }
.mc-bub .msg-result:empty { display: none; }
.mc-bub .msg-acts { margin: 0; align-items: center; }
.mc-live { font-size: 12.5px; color: var(--muted); }
.mc-undo { font-size: 13px; font-weight: 700; padding: 0; }
.mc-att { margin: 0; padding: 10px; border-radius: 14px; background: var(--neutral-soft); }
.mc-chg { display: flex; flex-direction: column; gap: 5px; }
.mc-bar { display: grid; grid-template-columns: 32px 1fr 48px; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mc-bar i { display: block; height: 8px; border-radius: 4px; background: var(--load-none); }
.mc-bar i.now { background: var(--accent); }
.mc-bar b { text-align: right; font-size: 13px; color: var(--ink); }
.mc-diff { font-size: 13px; color: var(--ink-2); }
.mc-diff s { color: var(--muted); }
.mc-lines { padding-left: 26px; font-size: 13.5px; color: var(--ink-2); }
.mc-cards { display: flex; gap: 6px; }
.mc-card { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border-radius: 12px; background: var(--surface); text-align: center; }
.mc-pic { height: 40px; width: 100%; display: grid; place-items: center; color: var(--muted); }
.mc-pic img { display: block; width: auto; height: 40px; max-width: 100%; object-fit: contain; }
.mc-card b { font-size: 13px; white-space: nowrap; }
.mc-card small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* 等你回：气泡里是建议和改了哪几处，下面"好""先不改"像快捷回复 */
.msg-pending .mc-bub { cursor: default; }
.mc-ask .hc-msg { padding: 0; }
.mc-ask .hc-msg > p:first-child { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.45; }
.mc-ask .btn-row { margin-top: 4px; }
.mc-ask .btn-row .btn.small { height: 34px; min-height: 0; padding: 0 16px; border-radius: 999px; font-size: 14px; line-height: 34px; }
.mc-ask .btn-row .btn.quiet { background: var(--surface); color: var(--accent-text); box-shadow: inset 0 0 0 1.5px var(--line-hi); }
/* 页签右边"搜"，点了才出搜索框和日期 */
.msg-find { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px 0 10px; }
.msg-search[hidden] { display: none; }
/* 点开：头像、几点、状态；一条竖线串起看到了什么、改了什么、预期、效果、你的选择 */
.mc-who { display: flex; align-items: center; gap: 10px; }
.mc-who .mech { width: 36px; height: 36px; border-radius: 50%; }
.mc-who span { display: flex; flex-direction: column; }
.mc-who b { font-size: 14px; } .mc-who small { font-size: 12px; color: var(--muted); }
.mc-story { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.mc-story::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--load-none); }
.mc-story li { position: relative; }
.mc-story li::before { content: ""; position: absolute; left: -21px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--accent); }
.mc-story li:last-child::before { border-color: var(--violet); }
.mc-story small { font-size: 12px; font-weight: 600; color: var(--muted); }
.mc-story p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; }
.mc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mc-btns > :only-child { grid-column: 1 / 3; }
.mc-btns .btn { margin: 0; text-decoration: none; }
/* 页签照设计图：居中两个字、下面一道短线，"搜"跟在后面 */
.seg.msg-seg { display: flex; justify-content: center; gap: 22px; margin-top: 10px; padding: 0; border: 0; background: none; box-shadow: none; }
.seg.msg-seg a { flex: none; padding: 6px 0 8px; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--muted); font-size: 15px; font-weight: 700; position: relative; }
.seg.msg-seg a.on { background: none; color: var(--ink); box-shadow: none; }
.seg.msg-seg a.on::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 3px; border-radius: 2px; background: var(--accent); }
.seg.msg-seg .msg-find { flex: none; margin-left: 0; padding: 6px 0 8px; }
/* 说到训练和日子的消息：小人 + 一周七格（§253 补） */
.mc-plan { display: flex; align-items: center; gap: 10px; }
.mc-figs { display: flex; gap: 2px; height: 64px; flex: none; }
.mc-figs svg { height: 100%; width: auto; }
.mc-plan-r { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mc-plan-r b { font-size: 15px; } .mc-plan-r b small { font-size: 12px; font-weight: 500; color: var(--muted); }
.mc-week { display: flex; gap: 3px; }
.mc-week i { flex: 1; min-width: 0; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--surface); color: var(--muted); font-size: 11px; font-style: normal; }
.mc-week i.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.mc-week i.was { color: var(--muted); text-decoration: line-through; box-shadow: inset 0 0 0 1.5px var(--line-hi); }
.mc-ask .mc-plan { margin: 6px 0 2px; }
.mc-bub:has(.mc-plan) { flex: 1; }  /* 带七格的气泡撑满，七格不挤 */

/* 推荐下面的按钮（§261）：一行一个选项，右边"记这顿""换这个"，记过的显示已记 */
.opt-list { display: grid; gap: 6px; margin-top: 4px; }
.opt-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.opt-no { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--accent-text); background: var(--icon-bg); }
.opt-what { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); }
.opt-done { flex: none; font-size: 13px; color: var(--good); font-weight: 600; }
.opt-kinds { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- 记录页重排（spec [2026-10-23] §272）：这段时间练了多少、一个部位一行、肌肉图按周按天、月历、身体数据、最近练的、周报 ---- */
.rec-n { font-variant-numeric: tabular-nums; }
.rec-top { display: flex; align-items: center; gap: 10px; }
.rec-seg { display: flex; flex: 1; min-width: 0; background: var(--icon-bg); border-radius: 999px; padding: 3px; }
.rec-seg button { flex: 1; height: 36px; border: 0; background: none; border-radius: 999px; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.rec-seg button.on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgb(20 10 40 / 12%); }
.rec-add { height: 42px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: var(--fire); color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; flex: none; cursor: pointer; }
.rec-hint { font-size: 13px; color: var(--muted); }
.rec-hero h2 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -.3px; }
.rec-hero .sub { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.rec-hero[aria-busy="true"] { opacity: .6; }
.rec-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.rec-nums div { background: var(--sunken); border-radius: 14px; padding: 8px 12px; min-width: 0; }
.rec-nums span { display: block; font-size: 12px; color: var(--muted); }
.rec-nums b { font-size: 20px; font-weight: 800; }
.rec-nums b small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.rec-parts { display: grid; gap: 2px; margin: 12px -8px 0; padding-top: 8px; border-top: 1px solid var(--line); }
.rec-part { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 18px; align-items: center; gap: 10px; padding: 8px; border: 0; background: none; border-radius: 16px; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.rec-part:disabled { cursor: default; opacity: 1; }
.rec-part.on { background: var(--sunken); }
.rec-ph { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; display: block; background: var(--load-none); overflow: hidden; }
.rec-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-ph.none { background: none; border: 1.5px dashed color-mix(in srgb, var(--muted) 40%, transparent); }
.rec-ph.mid { width: 52px; height: 52px; border-radius: 14px; }
.rec-ph.big { width: 72px; height: 72px; border-radius: 14px; }
.rec-part.later .rec-ph { opacity: .4; }
.rec-pm { min-width: 0; display: block; }
.rec-pm .l1 { display: flex; align-items: center; gap: 8px; }
.rec-pm b { font-size: 15px; width: 32px; flex: none; }
.rec-pm .trk { flex: 1; height: 10px; border-radius: 5px; background: var(--neutral-soft); overflow: hidden; }
.rec-pm .trk i { display: block; height: 100%; border-radius: 5px; }
.trk i.h0, .rec-legend i.h0, .rf-h0 path { background: var(--load-low); fill: var(--load-low); }
.trk i.h1, .rec-legend i.h1, .rf-h1 path { background: var(--load-mid); fill: var(--load-mid); }
.trk i.h2, .rec-legend i.h2, .rf-h2 path { background: var(--load-hot); fill: var(--load-hot); }
.trk i.h3, .rec-legend i.h3, .rf-h3 path { background: var(--fire-2); fill: var(--fire-2); }
.rf-base path { fill: var(--load-none); }
.rf-hair path { fill: color-mix(in srgb, var(--muted) 50%, transparent); }
.rf-hot path { stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; paint-order: stroke fill; }
.rec-pm small { display: flex; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.rec-pm small span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rec-pm small em { font-style: normal; font-weight: 700; color: var(--accent-text); flex: none; }
.rec-part .n { font-size: 15px; font-weight: 700; min-width: 44px; text-align: right; }
.rec-part .n small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 2px; }
.rec-part.zero .trk, .rec-part.later .trk { background: none; border: 1.5px dashed color-mix(in srgb, var(--muted) 40%, transparent); }
.rec-part.zero .n, .rec-part.later .n { color: var(--muted); font-weight: 500; font-size: 14px; }
.rec-part.zero .rec-pm b, .rec-part.later .rec-pm b { color: var(--ink-2); }
.rec-part > svg { color: var(--muted); transition: transform .2s; }
.rec-part.on > svg { transform: rotate(90deg); }
.rec-moves { background: var(--sunken); border-radius: 16px; margin: 0 0 6px; padding: 2px 10px 6px; }
.rec-moves > p { margin: 0; padding: 10px 0 6px; font-size: 14px; }
.rec-mv { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--wood-dark); }
.rec-mv:first-child { border-top: 0; }
.rec-ex { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); object-fit: contain; flex: none; display: grid; place-items: center; color: var(--muted); }
.rec-mv .mm { flex: 1; min-width: 0; }
.rec-mv .mm b { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-mv .mm span { font-size: 13px; color: var(--muted); }
.rec-mv .rt { text-align: right; flex: none; }
.rec-mv .rt b { font-size: 14px; color: var(--accent-text); display: block; }
.rec-mv .rt b.flat { color: var(--muted); font-weight: 500; }
.rec-mv .rt svg { display: block; margin: 2px 0 0 auto; }
.rec-figrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 8px; padding: 8px 10px 8px 12px; border: 0; border-radius: 16px; background: var(--sunken); font: inherit; color: var(--ink); cursor: pointer; }
.rec-figrow .tx { flex: 1; min-width: 0; }
.rec-figrow b { font-size: 15px; display: block; }
.rec-figrow small { font-size: 13px; color: var(--muted); }
.rec-figrow > svg { color: var(--muted); flex: none; }
.rec-mini { display: flex; gap: 3px; flex: none; min-width: 51px; min-height: 48px; }
.rec-mini svg { width: 24px; height: auto; display: block; }
.rec-mini .rf-base path { fill: color-mix(in srgb, var(--muted) 30%, transparent); }
/* 肌肉图弹层 */
.rec-wk { display: flex; align-items: center; justify-content: space-between; }
.rec-wk b { font-size: 16px; }
.rec-wk b small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.rec-wk > span { display: flex; gap: 6px; }
.rec-wk .icon-btn:disabled { opacity: .35; cursor: default; }
.rec-days { display: grid; grid-template-columns: 1.5fr repeat(7, 1fr); gap: 5px; margin-top: 10px; }
.rec-days button { height: 48px; padding: 0; border: 0; background: none; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font: inherit; font-size: 13px; color: var(--muted); line-height: 1.25; }
.rec-days button small { font-size: 12px; font-weight: 700; }
.rec-days button small.plan { font-weight: 500; }
.rec-days button.all { background: var(--sunken); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.rec-days button.tr { background: var(--accent-soft); color: var(--fire-2); cursor: pointer; }
.rec-days button.on { background: var(--ink); color: var(--surface); }
.rec-ms-sum { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.rec-figs { display: flex; justify-content: center; gap: 4px; margin-top: 10px; min-height: 250px; }
.rec-figs > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rec-figs svg { width: 132px; height: auto; display: block; }
.rec-figs small { font-size: 12px; color: var(--muted); }
.rec-legend { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; color: var(--muted); margin: 8px 0 14px; }
.rec-legend i { width: 18px; height: 8px; border-radius: 3px; }
.rec-legend span { margin-left: 6px; }
.rec-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rec-chip { background: var(--sunken); border: 2px solid transparent; border-radius: 14px; padding: 8px 12px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.rec-chip.on { border-color: var(--ink); background: var(--surface); }
.rec-chip b { display: block; font-size: 15px; }
.rec-chip span { font-size: 13px; color: var(--muted); }
.rec-chip.zero { background: none; border: 1.5px dashed color-mix(in srgb, var(--muted) 40%, transparent); cursor: default; opacity: 1; }
/* 月历：练的那天多写一个字 */
.rec-cal .cal-grid { gap: 5px; }
.rec-cal .cal-cell { aspect-ratio: auto; height: 46px; max-width: none; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; font-family: var(--font); box-shadow: none; }
.rec-cal .cal-cell small { font-size: 12px; font-weight: 700; }
.rec-cal .cal-cell.lit.lv1 { background: var(--load-low); color: var(--ink); }
.rec-cal .cal-cell.lit.lv2 { background: var(--load-mid); color: var(--ink); }
.rec-cal .cal-cell.lit.lv3 { background: var(--fire); color: var(--accent-ink); }
.rec-cal .cal-cell.wk { font-size: 14px; gap: 0; }  /* 全局另有一条 .wk（首页七格）会把这一周的格子缩小，这里改回来 */
.rec-cal .cal-cell.wk:not(.lit) { background: none; color: var(--ink-2); }
.rec-cal .cal-cell.today { box-shadow: inset 0 0 0 2px var(--ink); }
.rec-cal .today-sub { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
/* 吃的：七根柱子（每天吃的千卡）和一条目标虚线；点一天，下面是那天的每一顿 */
.rec-eat[aria-busy="true"] { opacity: .6; }
.rec-eat-s { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }
.rec-eat-bars { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 118px; margin-top: 14px; align-items: end; }
.rec-eat-bars .goal { position: absolute; left: 0; right: 0; border-top: 1.5px dashed color-mix(in srgb, var(--muted) 70%, transparent); pointer-events: none; }
.rec-eat-bars .goal span { position: absolute; right: 0; top: -17px; font-size: 12px; line-height: 1.2; color: var(--muted); background: var(--surface); padding-left: 6px; }
.rec-eat-bars button { height: 100%; padding: 0 0 2px; border: 0; background: none; border-radius: 10px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; font: inherit; font-size: 12px; color: var(--muted); }
.rec-eat-bars button i { display: block; width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--muted) 40%, transparent); }
.rec-eat-bars button.in i, .rec-eat-key i.in { background: var(--good); }
.rec-eat-bars button.now i, .rec-eat-key i.now { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rec-eat-bars button.none i { height: 6px; background: none; border: 1.5px dashed color-mix(in srgb, var(--muted) 40%, transparent); border-radius: 4px; }
.rec-eat-bars button.has { cursor: pointer; }
.rec-eat-bars button.on { color: var(--ink); font-weight: 700; background: var(--sunken); }
.rec-eat-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.rec-eat-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; background: color-mix(in srgb, var(--muted) 40%, transparent); }
.rec-eat-day { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.rec-eat-day > b { font-size: 15px; }
.rec-eat-day > b small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.rec-meal { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.rec-meal .pic { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; background: var(--sunken); display: grid; place-items: center; color: var(--muted); }
.rec-meal .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-meal .mm { flex: 1; min-width: 0; }
.rec-meal .mm b { font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-meal .mm span { font-size: 13px; color: var(--muted); }
.rec-meal .k { font-size: 15px; font-weight: 700; text-align: right; flex: none; }
.rec-meal .k small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
/* 身体数据：体重到目标 */
.rec-goal-h { display: flex; justify-content: space-between; align-items: flex-end; }
.rec-goal-h div span { display: block; font-size: 13px; color: var(--muted); }
.rec-goal-h div b { font-size: 30px; font-weight: 800; line-height: 1.1; }
.rec-goal-h div b small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.rec-goal-h div b.none, .rec-body .t b.none { font-size: 14px; font-weight: 500; color: var(--muted); }
.rec-goal-h .d { font-size: 13px; font-weight: 700; color: var(--good); background: var(--good-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 4px; }
.rec-goal-h .d.off { color: var(--ink-2); background: var(--sunken); }
.rec-goal-bar { position: relative; height: 12px; border-radius: 6px; background: var(--good-soft); margin: 14px 10px 6px; }
.rec-goal-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--good); }
.rec-goal-bar b { position: absolute; top: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 4px solid var(--good); margin-left: -10px; }
.rec-goal-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.rec-goal-s { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }
.rec-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.rec-body .t { background: var(--sunken); border-radius: 16px; padding: 10px 10px 6px; min-width: 0; }
.rec-body .t[role="button"] { cursor: pointer; }
.rec-body .t small { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 4px; }
.rec-body .t small span { font-size: 12px; font-weight: 700; color: var(--good); }
.rec-body .t b { font-size: 21px; font-weight: 800; display: block; margin-top: 2px; }
.rec-body .t b span { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.rec-body .t .v { height: 26px; display: flex; align-items: flex-end; font-size: 12px; color: var(--muted); }
/* 最近练的、训练详情 */
.rec-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.rec-row:first-child { border-top: 0; padding-top: 0; }
.rec-row:last-child { padding-bottom: 0; }
.rec-row .mm { flex: 1; min-width: 0; }
.rec-row .mm .l1 { display: flex; align-items: center; gap: 8px; }
.rec-row .mm b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 2em; }
.rec-row .mm em i { font-style: normal; }
.rec-row .mm em { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; flex: none; }
.rec-row .mm .rec-tag { margin-left: auto; }
.rec-row .mm > .rec-n { font-size: 13px; color: var(--muted); display: block; margin-top: 2px; }
.rec-row > svg { color: var(--muted); flex: none; }
.rec-tag { font-size: 12px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); padding: 3px 8px; border-radius: 8px; white-space: nowrap; flex: none; }
.rec-recent > p { margin: 0; }
.rec-wo-head { display: flex; gap: 12px; align-items: center; }
.rec-wo-head b { font-size: 19px; display: block; }
.rec-wo-head span { font-size: 14px; color: var(--muted); }
.rec-wo-nums { display: grid; gap: 8px; margin: 14px 0 6px; }
.rec-wo-nums div { background: var(--sunken); border-radius: 14px; padding: 8px 0; text-align: center; }
.rec-wo-nums b { font-size: 20px; display: block; }
.rec-wo-nums span { font-size: 12px; color: var(--muted); }
.rec-wo-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rec-wo-item > div { flex: 1; min-width: 0; }
.rec-wo-item .hd { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.rec-sets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rec-sets i { font-style: normal; font-size: 13px; padding: 3px 8px; border-radius: 8px; background: var(--sunken); color: var(--ink-2); }
.rec-sets i.pr { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.rec-note { font-size: 14px; color: var(--ink-2); background: var(--sunken); border-radius: 12px; padding: 10px 12px; margin: 4px 0 10px; }
.rec-wo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.rec-wo-btns .btn.block { font-size: 16px; }
/* 周报：上半截页头那个深色 */
.card.rec-rep { padding: 0; overflow: hidden; }
.rec-rep-top { background: var(--metal); color: var(--metal-ink); padding: 16px 16px 14px; }
.rec-rep-top > small { font-size: 13px; color: var(--metal-muted); }
.rec-rep-top h3 { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.2px; color: var(--metal-ink); }
.rec-rep-days { display: grid; grid-template-columns: repeat(7, 1fr); margin: 16px -4px 14px; text-align: center; }
.rec-rep-days div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--metal-muted); }
.rec-rep-days i, .rec-rep-days .pic { width: 38px; height: 38px; border-radius: 50%; display: block; }
.rec-rep-days i { border: 1.5px dashed rgb(255 255 255 / 28%); }
.rec-rep-days .pic { overflow: hidden; background: rgb(255 255 255 / 12%); box-shadow: 0 0 0 2px var(--metal), 0 0 0 4px var(--accent); }
.rec-rep-days .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-rep-days .on { color: var(--metal-ink); font-weight: 700; }
.rec-rep-n { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgb(255 255 255 / 12%); padding-top: 12px; }
.rec-rep-n b { font-size: 24px; font-weight: 800; }
.rec-rep-n b small { font-size: 12px; font-weight: 500; color: var(--metal-muted); margin-left: 2px; }
.rec-rep-n span { display: block; font-size: 12px; color: var(--metal-muted); }
.rec-rep-b { padding: 14px 16px 16px; }
.rec-rep-k { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.rec-rep-pr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.rec-rep-pr div { background: var(--accent-soft); border-radius: 16px; padding: 10px 4px 9px; text-align: center; min-width: 0; }
.rec-rep-pr .rec-ex { width: 48px; height: 48px; margin: 0 auto; border: 0; }
.rec-rep-pr b { display: block; font-size: 17px; color: var(--accent-text); margin-top: 6px; line-height: 1.2; }
.rec-rep-pr span { font-size: 12px; color: var(--ink-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-rep-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.rec-rep-2.one { grid-template-columns: 1fr; }
.rec-rep-2 .t { background: var(--sunken); border-radius: 16px; padding: 10px 12px; min-width: 0; }
.rec-rep-2 small { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 4px; }
.rec-rep-2 small em { font-style: normal; font-weight: 700; color: var(--ink-2); }
.rec-rep-2 b { font-size: 22px; font-weight: 800; display: block; margin-top: 2px; }
.rec-rep-2 b span { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.rec-rep-2 .v { height: 26px; display: flex; align-items: center; }
.rec-segs { display: flex; gap: 4px; flex: 1; }
.rec-segs i { flex: 1; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--muted) 40%, transparent); }
.rec-segs i.on { background: var(--good); }
.rec-segs i.no { background: none; border: 1.5px dashed color-mix(in srgb, var(--muted) 40%, transparent); }
.rec-rep-s { display: flex; gap: 10px; align-items: flex-start; background: var(--sunken); border-radius: 16px; padding: 10px 12px; font-size: 14px; color: var(--ink-2); margin: 0 0 12px; }
.rec-rep-s .mech { flex: none; border-radius: 50%; }
.rec-rep .btn.ghost.block { margin: 0; }
@media (max-width: 370px) {
  .rec-add { padding: 0 12px 0 10px; }
  .rec-row { gap: 10px; }
  .rec-row .rec-ph.mid { width: 46px; height: 46px; }
  .rec-row .mm em i { display: none; }  /* 窄屏不写周几，训练名要看得全 */
  .rec-figs svg { width: 118px; }
  .rec-body { gap: 6px; }
  .rec-body .t b { font-size: 19px; }
}

/* ---- 排行榜首页：评论瀑布流（spec [2026-10-23] §275）：两列不等高的卡片，评论当标题；档位颜色用现有的 .t-hang … .t-la ---- */
.rkf { display: flex; flex-direction: column; gap: 10px; }
.rkf[hidden] { display: none; }
.rkf-mine { flex: none; font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 999px; padding: 7px 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
.rkf-mine b { color: var(--accent-text); }
.rkf-mine.on { background: var(--ink); color: var(--surface); }
.rkf-mine.on b { color: inherit; }
.rk-hot.rkf-hot { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.rk-hot.rkf-hot::-webkit-scrollbar { display: none; }
.rk-hot.rkf-hot > * { flex: none; }
.rkf-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.rkf-chips::-webkit-scrollbar { display: none; }
.rkf-chips button { flex: none; font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--surface); color: var(--ink-2); cursor: pointer; }
.rkf-chips button.on { background: var(--ink); color: var(--surface); }
.rkf-head { display: flex; align-items: baseline; gap: 8px; padding: 2px 2px 0; }
.rkf-head b { font-size: 16px; flex: none; }
.rkf-head small { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rkf-head a { flex: none; font-size: 14px; font-weight: 600; color: var(--accent-text); text-decoration: none; display: inline-flex; align-items: center; }
.rkf-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.rkf-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rkf-card { display: block; background: var(--surface); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.rkf-pic { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--sunken); color: var(--muted); }
.rkf-pic img { display: block; width: 100%; }
.rkf-pic.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rkf-pic.line { height: 112px; background: var(--surface); border-bottom: 1px solid var(--line); }
.rkf-pic.line img { width: auto; max-width: calc(100% - 20px); height: 76px; margin-top: 22px; object-fit: contain; }
.rkf-pic.none { height: 84px; }
.rkf-pic.none svg { width: 32px; height: 32px; margin-top: 16px; }
.rkf-badge { position: absolute; left: 0; top: 0; max-width: 100%; display: flex; align-items: center; gap: 6px; padding-right: 9px; background: var(--surface); border-radius: 0 0 12px 0; font-size: 12px; font-weight: 700; line-height: 24px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.rkf-badge i { font-style: normal; font-weight: 800; padding: 0 7px; }
.rkf-badge i:only-child { margin-right: -9px; border-radius: 0 0 12px 0; }
.rkf-badge i.t-wait { background: var(--sunken); color: var(--muted); }
.rkf-body { padding: 10px 12px; }
.rkf-quote { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rkf-quote i { font-style: normal; color: var(--accent-text); }
.rkf-quote.none { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.rkf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.rkf-dist { flex: 1 1 40px; min-width: 40px; height: 6px; border-radius: 3px; overflow: hidden; display: flex; gap: 1px; }
.rkf-dist i { min-width: 3px; }
.rkf-name { display: block; margin-top: 4px; font-size: 14px; }
.rkf-my { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 3px 2px 8px; border-radius: 999px; background: var(--sunken); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.rkf-my i { font-style: normal; font-weight: 800; padding: 0 7px; border-radius: 999px; line-height: 18px; }
.rkf-by { display: flex; align-items: center; gap: 6px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.rkf-by svg { flex: none; color: var(--muted); }
.rkf-nick { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rkf-count, .rkf-nocm { flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
.rkf-more { font: inherit; font-size: 15px; font-weight: 700; height: 46px; border: 0; border-radius: 14px; background: var(--icon-bg); color: var(--ink); cursor: pointer; }

/* ---- 消息里的"下次目标"小卡（spec [2026-10-23] §276）：每行最多两张、多了往下排；重量次数能换行；理由单独一行小字 ---- */
.mc-cards { flex-wrap: wrap; }
.mc-cards .mc-card { flex: 1 1 calc(50% - 3px); }
.mc-cards .mc-card b { white-space: normal; overflow-wrap: anywhere; }
.mc-cards .mc-card p { align-self: stretch; margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-2); text-align: left; }
.mc-cards .mc-card.gone b { text-decoration: line-through; color: var(--muted); }

/* ---- 训练计划页：一周的照片（spec [2026-10-23] §278） ---- */
.view:has(> .pv-week) { gap: 8px; }
.pv-detail { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pv-detail button, .pv-week button, .pv-alt button, .pv-quick button, .pv-warm button { font: inherit; border: 0; cursor: pointer; background: none; color: inherit; text-align: left; padding: 0; }
/* 顶上：计划名和第几周，右边今天的天气 */
.pv-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 6px 2px 2px; }
.pv-ttl { min-width: 0; }
.pv-ttl h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.pv-ttl p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pv-wx { flex: none; display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-2); background: var(--surface); border-radius: 12px; padding: 6px 10px; white-space: nowrap; }
.pv-wx b { font-weight: 700; color: var(--ink); }
.pv-wx.warn { color: var(--warn); background: var(--warn-soft); }
/* 一周：照片卡横排，能横滑；今天最大，选中描边；休息日窄卡 */
.pv-week { display: flex; align-items: flex-end; gap: 8px; margin: 0 -16px; padding: 8px 16px 10px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.pv-week::-webkit-scrollbar { display: none; }
.pv-week .pv-day { position: relative; flex: none; width: 100px; height: 160px; border-radius: 20px; overflow: hidden; background: var(--metal); color: var(--accent-ink); }
.pv-week .pv-day.today { width: 148px; height: 208px; border-radius: 24px; }
.pv-week .pv-day.past { opacity: .7; }
.pv-week .sel { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }
.pv-day img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 32%; display: block; }
.pv-shade { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--metal) 70%, transparent) 0%, transparent 30%, transparent 42%, color-mix(in srgb, var(--metal) 72%, transparent) 66%, color-mix(in srgb, var(--metal) 95%, transparent) 100%); }
.pv-top { position: absolute; left: 10px; right: 8px; top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; text-shadow: 0 1px 3px rgb(0 0 0 / 60%); }
.pv-now, .pv-done { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-shadow: none; color: var(--accent-ink); }
.pv-now { background: var(--accent); }
.pv-done { background: var(--good); }
.pv-bot { position: absolute; left: 11px; right: 9px; bottom: 11px; display: block; text-shadow: 0 1px 4px rgb(0 0 0 / 55%); }
.pv-bot b { display: block; font-size: 19px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-day.today .pv-bot b { font-size: 27px; }
.pv-bot span { display: block; font-size: 12px; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-day.today .pv-bot span { font-size: 13px; }
.pv-week .pv-rest { flex: none; width: 40px; height: 160px; border-radius: 18px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--muted) 40%, transparent); color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 11px 0 13px; font-size: 13px; }
.pv-rest b { font-size: 17px; font-weight: 700; color: var(--ink-2); }
.pv-rest i { font-style: normal; font-size: 12px; }
.pv-week .pv-rest.past { opacity: .6; }
.pv-week .pv-rest.today { border-style: solid; border-color: var(--accent); }
.pv-credit { font-size: 11px; color: var(--muted); margin: -4px 2px 0; line-height: 1.4; }
.pv-credit a { color: inherit; }
/* 选中那天 */
.pv-sess { margin: 4px 2px 0; }
.pv-sess h3 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.pv-sess h3 em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 3px; white-space: nowrap; }
.pv-sess h3 em.later { color: var(--ink-2); background: var(--neutral-soft); }
.pv-meta { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.pv-meta b { font-weight: 700; color: var(--ink); }
.pv-detail .pv-burn { margin-left: 8px; font-size: 13px; color: var(--accent-text); white-space: nowrap; text-decoration: underline dotted; text-underline-offset: 3px; }
.pv-how { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.pv-mus { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.pv-mus i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.pv-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-detail .pv-tool { height: 44px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pv-detail .pv-tool:disabled { opacity: .45; cursor: default; }
.pv-tool .mech, .pv-ask-h .mech { border-radius: 50%; object-fit: cover; }
/* 热身 */
.pv-warm { background: var(--surface); border-radius: 20px; padding: 12px 14px; }
.pv-warm .pv-warm-h { width: 100%; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.pv-warm-how { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
svg.pv-turn { transform: rotate(90deg); }
.pv-warm ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pv-warm li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.pv-warm li i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.pv-warm-b .pv-how { margin-top: 8px; font-size: 12px; }
/* 动作行 */
.pv-list { background: var(--surface); border-radius: 22px; padding: 4px 12px; }
.pv-list > * + * { border-top: 1px solid var(--line); }
.pv-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 48px; gap: 12px; align-items: center; padding: 12px 0; cursor: pointer; }
.pv-list .swipe-face.pv-row { background: var(--surface); }
.pv-pic, .pv-big, .pv-alt-pic { width: 72px; height: 72px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); object-fit: contain; display: grid; place-items: center; color: var(--muted); box-sizing: border-box; }
.pv-pic.none, .pv-big.none, .pv-alt-pic.none { background: var(--sunken); }
.pv-main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.pv-name { max-width: 100%; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-name small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.pv-w { margin-top: 4px; max-width: 100%; font-size: 14px; font-weight: 700; padding: 3px 9px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-w.light { background: var(--icon-bg); color: var(--violet); }
.pv-w.try { background: var(--neutral-soft); color: var(--ink-2); }
.pv-last { max-width: 100%; font-size: 13px; color: var(--muted); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-last b { font-weight: 600; color: var(--ink-2); }
.pv-first { margin-top: 5px; font-size: 12px; font-weight: 700; color: var(--good); background: var(--good-soft); padding: 2px 8px; border-radius: 999px; }
.pv-detail .pv-swap { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pv-swap > span { width: 38px; height: 38px; border-radius: 50%; background: var(--sunken); color: var(--ink-2); display: grid; place-items: center; }
/* 底部按钮 */
.pv-cta { margin-top: 4px; }
.pv-cta .btn { width: 100%; height: 54px; border-radius: 18px; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0; }
.pv-cta .btn.pv-wait { background: var(--neutral-soft); color: var(--muted); box-shadow: none; opacity: 1; }
.pv-cta2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-detail .pv-sub { min-height: 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 4px 8px; }
.pv-cta2 > .pv-sub:only-child { grid-column: 1 / -1; }
.pv-sub.off { color: var(--muted); font-weight: 500; font-size: 13px; }
.pv-tip { font-size: 13px; color: var(--muted); text-align: center; }
.pv-tip:empty { display: none; }
/* 弹层：一个动作 */
.pv-exh { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; }
.pv-exh .pv-big { width: 112px; height: 112px; border-radius: 18px; }
.pv-sub-t { font-size: 13px; color: var(--muted); }
.pv-exh .pv-mus i { background: var(--bg); border-color: transparent; }
.pv-box { background: var(--accent-soft); border-radius: 16px; padding: 12px 14px; }
.pv-k { font-size: 13px; color: var(--accent-text); font-weight: 600; }
.pv-v { font-size: 24px; font-weight: 800; color: var(--ink); margin-top: 1px; line-height: 1.25; overflow-wrap: anywhere; }
.pv-v small { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-left: 6px; white-space: nowrap; }
.pv-why { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.pv-subh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 2px 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.pv-subh span { font-size: 13px; font-weight: 500; color: var(--muted); }
.pv-setg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pv-setg div { background: var(--bg); border-radius: 12px; padding: 7px 4px; text-align: center; min-width: 0; }
.pv-setg i { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.pv-setg b { font-size: 15px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.pv-alt { display: grid; gap: 6px; margin-top: 8px; }
.pv-alt-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px 6px 6px; border-radius: 14px; background: var(--bg); }
.pv-alt-row .pv-alt-pic { width: 56px; height: 56px; border-radius: 12px; }
.pv-alt-row b { max-width: 100%; font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-alt-row small { max-width: 100%; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-alt .pv-alt-go { font-size: 13px; font-weight: 700; color: var(--accent-text); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 10px; }
.pv-alt .pv-alt-go:disabled { opacity: .5; }
/* 弹层：让 IronM 改 */
.pv-ask-h { display: flex; align-items: center; gap: 10px; }
.pv-ask-h p { font-size: 13px; color: var(--muted); min-width: 0; }
.sheet-body .pv-input { width: 100%; box-sizing: border-box; border: 1.5px solid var(--accent); border-radius: 16px; padding: 12px 14px; min-height: 92px; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); line-height: 1.5; resize: vertical; }
.pv-quick-t { font-size: 13px; color: var(--muted); margin: 0 2px 8px; }
.pv-quick { display: grid; gap: 8px; }
.pv-quick button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; border-radius: 14px; background: var(--bg); padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.pv-quick button > svg:last-child { margin-left: auto; color: var(--muted); }
.pv-qi { width: 30px; height: 30px; border-radius: 10px; background: var(--surface); color: var(--accent-text); display: grid; place-items: center; flex: none; }
/* §278 end */

/* ---- 榜单页和条目详情：大家怎么说（spec [2026-10-23] §279） ---- */
/* 档位色块照用 .t-hang … .t-la；浅底由同一组颜色变量调淡 */
.rb-s-hang { background: color-mix(in srgb, var(--fire-2) 11%, var(--surface)); color: var(--fire-2); }
.rb-s-top { background: color-mix(in srgb, var(--accent) 13%, var(--surface)); color: var(--accent-text); }
.rb-s-elite { background: var(--good-soft); color: var(--good); }
.rb-s-npc { background: color-mix(in srgb, var(--muted) 14%, var(--surface)); color: var(--ink-2); }
.rb-s-la, .rb-s-none { background: var(--sunken); color: var(--ink-2); }
.rb-page { display: flex; flex-direction: column; min-width: 0; }
.rb-page a { text-decoration: none; color: inherit; }
.rb-page button { font: inherit; border: 0; cursor: pointer; }
.rb-tier { display: inline-flex; align-items: center; justify-content: center; flex: none; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 13px; font-weight: 800; line-height: 1; white-space: nowrap; }
/* 顶上：返回、榜名、加一个 */
.rb-top { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.rb-back { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--ink-2); }
.rb-title { flex: 1; min-width: 0; }
.rb-title > b { display: flex; align-items: center; gap: 6px; font-size: 20px; line-height: 1.2; font-weight: 700; color: var(--ink); }
.rb-title > b svg { flex: none; color: var(--accent-text); }
.rb-title > b span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-title > span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-page .rb-add { flex: none; height: 40px; padding: 0 14px 0 10px; border-radius: 20px; background: var(--metal); color: var(--metal-ink); display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.rb-page > .tier-add-card { margin-top: 12px; }
.rb-parts { margin: 12px -16px 0; padding: 0 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.rb-parts::-webkit-scrollbar { display: none; }
.rb-parts a { flex: none; height: 36px; padding: 0 15px; border-radius: 18px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; display: flex; align-items: center; }
.rb-parts a.on { background: var(--accent); color: var(--accent-ink); }
.rb-note { margin-top: 8px; font-size: 13px; color: var(--muted); }
.rb-sortbar { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.rb-seg { flex: none; display: flex; padding: 3px; border-radius: 14px; background: var(--surface); }
.rb-page .rb-seg button { height: 32px; padding: 0 13px; border-radius: 11px; background: none; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.rb-page .rb-seg button.on { background: var(--metal); color: var(--metal-ink); }
.rb-sortbar > span { flex: 1; min-width: 0; text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-body { display: flex; flex-direction: column; }
/* 图：线稿白底留边，照片铺满，没图是名字首字 */
.rb-page img { display: block; }
.rb-glyph { display: grid; place-items: center; font-weight: 800; line-height: 1; }
.rb-line { object-fit: contain; background: var(--surface); }
.rb-photo { object-fit: cover; }
/* 前三名 */
.rb-top1 { margin-top: 14px; border-radius: 24px; background: var(--surface); overflow: hidden; display: block; }
.rb-media { position: relative; background: var(--surface); }
.rb-media img { width: 100%; }
.rb-top1 .rb-media img.rb-line { height: 190px; padding: 14px 20px 6px; }
.rb-top1 .rb-media img.rb-photo { height: 220px; }
.rb-flag { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 6px; }
.rb-sayblock .rb-flag { left: 18px; top: 16px; }
.rb-rank { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; background: var(--metal); color: var(--metal-ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.rb-sayblock { position: relative; padding: 50px 18px 18px; }
.rb-saybody { padding: 14px 18px 16px; }
.rb-say { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.rb-say i { font-style: normal; color: var(--accent-text); }
.rb-say.none { font-weight: 500; color: var(--ink-2); }
.rb-top1 .rb-say { font-size: 24px; line-height: 1.32; -webkit-line-clamp: 4; }
.rb-top1 .rb-sayblock .rb-say { font-size: 26px; }
.rb-top1 .rb-say.none { font-size: 17px; }
.rb-by { margin-top: 10px; display: flex; align-items: center; gap: 7px; min-width: 0; }
.rb-nick { min-width: 0; flex: 0 1 auto; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-cnt { flex: none; margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.rb-face { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; line-height: 1; }
.rb-face.f0 { background: var(--accent-soft); color: var(--accent-text); }
.rb-face.f1 { background: var(--good-soft); color: var(--good); }
.rb-face.f2 { background: color-mix(in srgb, var(--violet) 13%, var(--surface)); color: var(--violet); }
.rb-face.f3 { background: var(--sunken); color: var(--ink-2); }
.rb-who { display: flex; align-items: center; gap: 12px; padding: 12px 18px 14px; border-top: 1px solid var(--line); }
.rb-who > .rb-glyph { flex: none; width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }
.rb-wtxt { flex: 1; min-width: 0; }
.rb-name { display: flex; align-items: center; min-width: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.rb-name span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-name .rk-kind { flex: none; }
.rb-meta { margin-top: 4px; display: flex; align-items: center; gap: 4px 7px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.rb-meta strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.rb-tr { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.rb-tr.up { color: var(--good); } .rb-tr.down { color: var(--accent-text); } .rb-tr.new { color: var(--violet); }
.rb-mine { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.rb-mine .rb-tier { height: 20px; padding: 0 6px; font-size: 12px; }
.rb-dist { height: 6px; border-radius: 3px; overflow: hidden; display: flex; gap: 2px; margin: 0 18px 16px; }
.rb-dist i { min-width: 3px; }
.rb-duo { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.rb-top2 { min-width: 0; border-radius: 20px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.rb-top2 .rb-media img, .rb-top2 .rb-media .rb-glyph { height: 118px; }
.rb-top2 .rb-media img.rb-line { padding: 34px 12px 4px; }
.rb-top2 .rb-media .rb-glyph { font-size: 40px; padding-top: 18px; }
.rb-top2 .rb-flag { left: 10px; top: 10px; gap: 5px; }
.rb-top2 .rb-saybody { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.rb-top2 .rb-say { font-size: 17px; line-height: 1.36; -webkit-line-clamp: 4; }
.rb-top2 .rb-say.none { font-size: 14px; }
.rb-top2 .rb-by { margin-top: 8px; }
.rb-top2 .rb-face { width: 22px; height: 22px; font-size: 11px; }
.rb-top2 .rb-nick { font-size: 13px; }
.rb-foot { margin-top: auto; padding-top: 10px; }
.rb-foot .rb-name { padding-top: 9px; border-top: 1px solid var(--line); font-size: 15px; }
.rb-myline { margin-top: 4px; min-height: 20px; }
/* 第 4 名起 */
.rb-sec { margin-top: 22px; display: flex; align-items: baseline; gap: 8px; }
.rb-sec b { font-size: 18px; font-weight: 700; color: var(--ink); }
.rb-sec span { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.rb-rows { margin-top: 10px; border-radius: 22px; background: var(--surface); padding: 2px 14px; }
.rb-row { display: flex; gap: 12px; padding: 13px 0; }
.rb-row + .rb-row { border-top: 1px solid var(--line); }
.rb-thumb { position: relative; flex: none; width: 68px; height: 68px; }
.rb-thumb img, .rb-thumb .rb-glyph { width: 68px; height: 68px; border-radius: 14px; }
.rb-thumb img { border: 1px solid var(--line); }
.rb-thumb img.rb-line { padding: 4px; }
.rb-thumb .rb-glyph { font-size: 28px; }
.rb-thumb em { position: absolute; left: -5px; top: -5px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--metal); color: var(--metal-ink); font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.rb-rtxt { flex: 1; min-width: 0; display: block; }
.rb-rhead { display: flex; align-items: center; gap: 7px; }
.rb-rhead .rb-name { flex: 0 1 auto; font-size: 16px; }
.rb-rhead strong { flex: none; margin-left: auto; font-size: 16px; font-weight: 700; color: var(--ink); }
.rb-rhead .rb-tr { flex: none; }
.rb-row .rb-say { margin-top: 5px; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--ink-2); -webkit-line-clamp: 2; }
.rb-rmeta { margin-top: 5px; display: flex; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.rb-rmeta span:first-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rb-rmine { flex: none; margin-left: auto; color: var(--ink-2); font-weight: 600; }
/* 待评 */
.rb-wait { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rb-wcard { min-width: 0; border-radius: 20px; background: var(--surface); padding: 12px; display: flex; flex-direction: column; }
.rb-wpic img, .rb-wpic .rb-glyph { width: 100%; height: 84px; border-radius: 12px; }
.rb-wpic .rb-glyph { font-size: 34px; }
.rb-wcard > .rb-name { margin-top: 8px; font-size: 15px; }
.rb-need { margin-top: 6px; display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); }
.rb-need i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px dashed var(--muted); }
.rb-need i.full { border: 0; background: var(--accent); }
.rb-need span { margin-left: 4px; white-space: nowrap; }
.rb-wbtn { margin-top: 10px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.rb-page .rb-more { margin-top: 12px; width: 100%; height: 48px; border-radius: 16px; background: var(--surface); display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.rb-more svg { color: var(--muted); }
.rb-body > .rk-none { padding-top: 14px; }
/* 条目详情 */
.rb-hero { margin: 12px -4px 0; border-radius: 26px; overflow: hidden; background: var(--surface); }
.rb-hero img { width: 100%; height: 268px; }
.rb-hero img.rb-line { padding: 14px 20px 50px; }
.rb-hero img.rb-photo { height: 280px; }
.rb-hname { min-height: 190px; padding: 24px 20px 54px; display: grid; place-items: center; text-align: center; font-size: 44px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.rb-plate { position: relative; z-index: 1; margin: -42px 10px 0; padding: 12px 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; }
.rb-plate .rb-big { flex: none; font-size: 42px; line-height: 1; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.rb-plate .rb-tier { height: 32px; padding: 0 12px; border-radius: 10px; font-size: 16px; }
.rb-place { flex: 1; min-width: 0; text-align: right; }
.rb-place b { display: block; font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.rb-place span { display: block; font-size: 13px; color: var(--muted); }
.rb-item .rb-dname { margin: 16px 0 0; font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.rb-dtag { margin-top: 14px; }
.rb-dtag .rk-kind { margin-left: 0; }
.rb-ddesc { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.rb-plate + .rb-ddesc, .rb-plate + .rb-dtag { margin-top: 16px; }
.rb-credit { margin-top: 4px; font-size: 12px; color: var(--muted); }
.rb-page .rb-credit a { text-decoration: underline; }
.rb-vote { margin-top: 14px; padding: 14px 14px 16px; border-radius: 22px; background: var(--surface); }
.rb-vhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rb-vhead b { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; color: var(--ink); }
.rb-vhead > span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rb-vcols { margin-top: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rb-vcol { min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.rb-vn { text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rb-vtrack { margin: 4px auto 8px; width: 30px; height: 64px; border-radius: 9px; background: var(--sunken); display: flex; align-items: flex-end; overflow: hidden; }
.rb-vtrack i { display: block; width: 100%; border-radius: 9px 9px 0 0; }
.rb-page .rb-vbtn { height: 46px; padding: 0 2px; border-radius: 13px; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.rb-page .rb-vbtn.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.rb-vmark { margin-top: 8px; height: 18px; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink); }
.rb-vfoot { margin-top: 6px; text-align: center; }
/* 评论：像一段对话 */
.rb-talk { margin-top: 22px; }
.rb-chead { display: flex; align-items: center; gap: 8px; }
.rb-chead h3 { flex: 1; min-width: 0; margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.rb-chead h3 small { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.rb-page .rb-csort { flex: none; height: 32px; padding: 0 13px; border-radius: 16px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.rb-page .rb-csort.on { background: var(--metal); color: var(--metal-ink); }
.rb-write { margin-top: 12px; display: flex; flex-direction: row; align-items: flex-end; gap: 8px; }
.rb-write .rb-face { width: 36px; height: 36px; font-size: 16px; margin-bottom: 5px; }
.rb-write textarea { flex: 1; min-width: 0; min-height: 46px; padding: 11px 16px; border-radius: 23px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 15px; line-height: 1.4; resize: none; }
.rb-page .rb-send { flex: none; height: 46px; padding: 0 18px; border-radius: 23px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700; }
.rb-whint { margin-top: 4px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.rb-whint.has-face { margin-left: 38px; }
.rb-whint .rk-act { flex: 1; min-width: 0; text-align: left; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-count { flex: none; }
.rb-msgs { margin-top: 16px; display: grid; gap: 16px; }
.rb-msg { display: flex; align-items: flex-start; gap: 10px; }
.rb-msg > .rb-face { width: 36px; height: 36px; font-size: 16px; }
.rb-mbody { flex: 1; min-width: 0; }
.rb-mnick { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.rb-mnick span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-mnick em { flex: none; font-style: normal; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); }
.rb-bubble { margin-top: 4px; display: inline-block; max-width: 100%; padding: 10px 14px; border-radius: 4px 18px 18px 18px; background: var(--surface); font-size: 15px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.rb-macts { margin-top: 6px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.rb-macts time { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-page .rb-like, .rb-page .rb-act { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 4px; background: none; font-size: 13px; color: var(--muted); white-space: nowrap; }
.rb-page .rb-like.on { color: var(--accent-text); font-weight: 700; }
.rb-page .rb-act:disabled { cursor: default; opacity: .7; }
.rb-invite { margin-top: 16px; padding: 14px 16px; border-radius: 18px; border: 1.5px dashed var(--line); font-size: 14px; color: var(--ink-2); text-align: center; }
.rb-foot-act { margin-top: 12px; text-align: center; }
.rb-disc { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); text-align: center; }
.rb-disc svg { flex: none; }
.rb-item .rk-plan { margin-top: 14px; }
/* §279 end */

/* ---- 登录页：先认出是谁（spec [2026-10-23] §280） ---- */
/* 整页铺满：去掉外层的左右留白和给底栏留的空 */
.app:has(> .view > .lg) { max-width: none; padding: 0; }
.view:has(> .lg) { gap: 0; }
.lg { min-height: 100dvh; max-width: 480px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; background: var(--metal); overflow-x: hidden; }
/* 上半屏：深色底，只用同色明暗和几圈细线 */
.lg-hero { flex: none; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(44px + env(safe-area-inset-top, 0px)) 24px 46px; color: var(--metal-ink);
  background: radial-gradient(240px 190px at 50% 86px, color-mix(in srgb, var(--metal-ink) 6%, var(--metal)), var(--metal) 100%); }
.lg-rings { position: absolute; left: 50%; top: calc(86px + env(safe-area-inset-top, 0px)); width: 390px; height: 390px; margin: -195px 0 0 -195px; pointer-events: none; color: var(--metal-ink);
  -webkit-mask-image: radial-gradient(closest-side, black 55%, transparent 100%); mask-image: radial-gradient(closest-side, black 55%, transparent 100%); }
.lg-mark { position: relative; width: 84px; height: 84px; display: block; border-radius: 22px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 14%), 0 12px 28px rgb(0 0 0 / 45%); }
.lg-name { position: relative; margin: 16px 0 0; font-size: 30px; font-weight: 800; letter-spacing: .5px; line-height: 1.1; color: var(--metal-ink); }
.lg-name em { font-style: normal; color: var(--accent); }
.lg-say { position: relative; margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--metal-muted); }
/* 下半屏：白色表单面，抬上来盖住深色区一点 */
.lg-sheet { flex: 1; position: relative; z-index: 1; margin-top: -26px; background: var(--surface); border-radius: 30px 30px 0 0;
  padding: 22px 22px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; }
.lg-seg { flex: none; display: flex; height: 48px; padding: 4px; border-radius: 15px; background: var(--sunken); }
.lg-seg button { flex: 1; border: 0; border-radius: 12px; background: transparent; font: inherit; font-size: 16px; font-weight: 600; color: var(--muted); cursor: pointer; }
.lg-seg button.on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 4px rgb(22 22 28 / 12%); }
.lg-head { flex: none; height: 48px; display: flex; align-items: center; gap: 8px; }
.lg-head b { font-size: 19px; font-weight: 700; color: var(--ink); }
.lg-back { width: 36px; height: 36px; border: 0; border-radius: 12px; background: var(--sunken); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.lg-form { gap: 0; }
.lg-fields { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.lg .lg-in { flex-direction: row; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 16px; min-width: 0;
  background: var(--bg); border: 1.5px solid var(--line); color: var(--muted); font-size: 16px; font-weight: 400; cursor: text; }
.lg .lg-in:focus-within { border-color: var(--accent); background: var(--surface); }
.lg .lg-in input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 16px; color: var(--ink); }
.lg .lg-in input:focus { box-shadow: none; outline: none; }
.lg .lg-in input::placeholder { color: var(--muted); }
.lg-row { display: flex; gap: 10px; min-width: 0; }
.lg-row .lg-in { flex: 1; }
.lg-send { flex: none; width: 112px; height: 52px; border: 0; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text);
  font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; padding: 0 6px; }
.lg-send:disabled { background: var(--sunken); color: var(--muted); font-weight: 600; cursor: default; font-variant-numeric: tabular-nums; }
.lg-msg { margin-top: 10px; font-size: 13px; line-height: 1.5; }
.lg-msg:empty { display: none; }
.lg-msg.lg-ok { display: flex; gap: 6px; align-items: flex-start; color: var(--good); }
.lg-msg.lg-ok svg { margin-top: 2px; }
.lg-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.lg-forgot { align-self: flex-end; margin-top: 8px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.lg .lg-go { flex: none; margin-top: 14px; height: 52px; padding: 0 18px; border: 0; border-radius: 16px; clip-path: none; box-shadow: none; text-shadow: none;
  background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.lg-alt { flex: none; margin-top: 10px; height: 48px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.lg-legal { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.lg-legal a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
/* 底部：深色招呼条压在最下面 */
.lg-foot { margin-top: auto; padding-top: 18px; }
.lg-hello { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--metal); color: var(--metal-muted); }
.lg-hello img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; flex: none; display: block; }
.lg-hello div { min-width: 0; font-size: 14px; line-height: 1.45; }
.lg-hello b { display: block; font-size: 15px; font-weight: 600; color: var(--metal-ink); }
.lg-fine { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }
.lg-fine button { border: 0; background: none; padding: 0 2px; font: inherit; font-weight: 600; color: var(--accent-text); cursor: pointer; }
/* 矮屏：上半屏收紧，登录按钮留在一屏里 */
@media (max-height: 720px) {
  .lg-hero { padding-top: calc(24px + env(safe-area-inset-top, 0px)); padding-bottom: 40px; }
  .lg-rings { top: calc(56px + env(safe-area-inset-top, 0px)); }
  .lg-mark { width: 64px; height: 64px; border-radius: 17px; }
  .lg-name { margin-top: 10px; font-size: 26px; }
  .lg-say { margin-top: 4px; font-size: 13px; }
  .lg-fields { margin-top: 12px; }
}
@media (min-width: 520px) {
  .lg { min-height: calc(100dvh - 48px); margin: 24px auto; border-radius: 30px; overflow: hidden; }
}
/* §280 end */

/* ---- 图鉴动作栏：先选部位（spec [2026-10-23] §281） ---- */
/* 部位色调：首字块、线稿封面、搜索分组的小方块都用它 */
.av-h-accent { --avh: var(--accent-text); --avhs: var(--accent-soft); }
.av-h-violet { --avh: var(--violet); --avhs: color-mix(in srgb, var(--violet) 12%, var(--surface)); }
.av-h-good { --avh: var(--good); --avhs: var(--good-soft); }
.av-h-gold { --avh: color-mix(in srgb, var(--gold) 80%, var(--ink)); --avhs: var(--gold-soft); }
/* 搜索 + 取消 */
.av-sbar { display: flex; align-items: center; gap: 10px; margin-top: -8px; }
.av-sbar .av-search { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: none; display: flex; align-items: center; gap: 8px; }
.av-sbar .av-search:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.av-cancel { flex: none; border: 0; background: none; padding: 8px 2px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.av-cancel[hidden] { display: none; }
.av-body { display: flex; flex-direction: column; min-width: 0; margin-top: -16px; }  /* 页面一列有 16px 间距，这里各块自己定上边距 */
/* 自由训练：一条窄入口 */
.av-free { margin-top: 10px; min-height: 60px; border-radius: 16px; background: var(--metal); color: var(--metal-ink); display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; cursor: pointer; }
.av-free > .i { flex: none; width: 20px; height: 20px; }
.av-free-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.av-free-tx b { font-size: 16px; font-weight: 700; }
.av-free-tx small { font-size: 13px; color: rgb(255 255 255 / 72%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-free-go { flex: none; height: 36px; padding: 0 16px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.av-body > .live-entry { margin-top: 10px; }
/* 小节标题 */
.av-hd { display: flex; align-items: baseline; gap: 8px; margin: 18px 2px 0; min-width: 0; scroll-margin-top: 80px; }
.av-hd h2 { margin: 0; font-size: 20px; font-weight: 700; flex: none; }
.av-hd.av-hd-sm { margin-top: 16px; }
.av-hd.av-hd-sm h2 { font-size: 17px; }
.av-sub { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-all { flex: none; border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent-text); cursor: pointer; }
/* 部位卡：一排横滑，出血到屏幕边 */
.av-strip { display: flex; align-items: flex-end; gap: 10px; margin: 4px -16px 0; padding: 8px 16px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.av-strip::-webkit-scrollbar { display: none; }
.av-part { flex: none; width: 112px; height: 144px; border: 0; padding: 0; border-radius: 18px; position: relative; overflow: hidden; background: var(--metal); font: inherit; text-align: left; cursor: pointer; }
.av-part > img, .av-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.av-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(22 22 28 / 88%) 0, rgb(22 22 28 / 45%) 32%, rgb(22 22 28 / 0%) 58%); }
.av-cap { position: absolute; left: 12px; right: 10px; bottom: 10px; color: var(--metal-ink); display: flex; flex-direction: column; }
.av-cap b { font-size: 17px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.av-cap small { font-size: 12px; color: rgb(255 255 255 / 86%); margin-top: 1px; }
.av-part.on { width: 126px; height: 160px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px var(--accent); }
.av-part.on .av-cap b { font-size: 19px; }
.av-now { position: absolute; left: 10px; top: 10px; z-index: 1; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
/* 没有部位照片：部位色浅底 + 白框里放大的动作线稿；连动作图都没有就写首字 */
.av-part.draw, .av-part.bare { background: var(--avhs); }
.av-frame { position: absolute; left: 6px; right: 6px; top: 6px; bottom: 54px; border-radius: 13px; background: var(--surface); overflow: hidden; }
.av-part.on .av-frame { bottom: 58px; }
.av-part.draw .av-cap, .av-part.bare .av-cap { color: var(--ink); }
.av-part.draw .av-cap small, .av-part.bare .av-cap small { color: var(--avh); }
.av-mark { position: absolute; left: 0; right: 0; top: 18px; text-align: center; font-size: 44px; font-weight: 800; color: var(--avh); opacity: .8; }
/* 器械胶囊 */
.av-chips { display: flex; gap: 8px; margin: 10px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.av-chips::-webkit-scrollbar { display: none; }
.av-chip { flex: none; height: 34px; padding: 0 13px; border: 0; border-radius: 17px; background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 5px; white-space: nowrap; cursor: pointer; }
.av-chip i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); }
.av-chip.on { background: var(--ink); color: var(--surface); }
.av-chip.on i { color: rgb(255 255 255 / 72%); }
/* 动作一行一个 */
.av-list { margin-top: 10px; background: var(--surface); border-radius: 22px; padding: 2px 14px; }
.av-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; min-width: 0; }
.av-row + .av-row { border-top: 1px solid var(--line); }
.av-pic { flex: none; width: 72px; height: 72px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); object-fit: contain; display: block; }
.av-vid { position: relative; overflow: hidden; }
.av-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-vid .i { position: absolute; right: 6px; bottom: 6px; color: var(--surface); fill: currentColor; }
.av-nopic { flex: none; width: 72px; height: 72px; border-radius: 14px; background: var(--avhs); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--avh) 24%, transparent); color: var(--avh); display: grid; place-items: center; font-size: 28px; font-weight: 700; line-height: 1; }
.av-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.av-mid > b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-mu { font-size: 13px; color: var(--ink-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.av-meta span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-mid mark { background: var(--accent-soft); color: var(--accent-text); border-radius: 4px; padding: 0 1px; }
.av-lv { flex: none; height: 20px; padding: 0 7px; border-radius: 7px; font-style: normal; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; background: var(--good-soft); color: var(--good); }
.av-lv.adv { background: var(--accent-soft); color: var(--accent-text); }
.av-best { flex: none; text-align: right; min-width: 58px; display: flex; flex-direction: column; }
.av-best b { font-size: 21px; font-weight: 700; color: var(--accent-text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.av-best b small { font-size: 12px; font-weight: 600; margin-left: 1px; }
.av-best > small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.av-more { margin-top: 10px; height: 46px; border: 0; border-radius: 16px; background: var(--surface); color: var(--accent-text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
/* 其他部位：一行一段 */
.av-others { margin-top: 10px; background: var(--surface); border-radius: 22px; padding: 2px 14px; }
.av-o { display: flex; align-items: center; gap: 12px; padding: 11px 0; cursor: pointer; min-width: 0; }
.av-o + .av-o { border-top: 1px solid var(--line); }
.av-o > .i { flex: none; color: var(--muted); }
.av-th { flex: none; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; position: relative; background: var(--metal); display: grid; place-items: center; }
.av-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.av-th.draw { background: var(--surface); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--avh) 30%, transparent); }
.av-th b { font-size: 22px; color: var(--avh); }
.av-om { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.av-om b { font-size: 15px; font-weight: 600; }
.av-om b i { font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.av-om small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
/* 搜索结果 */
.av-found { margin: 14px 2px 0; font-size: 14px; color: var(--ink-2); }
.av-found b { font-weight: 700; color: var(--ink); }
.av-gh { display: flex; align-items: center; gap: 8px; margin: 16px 2px 0; }
.av-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--avh); }
.av-gh h2 { margin: 0; font-size: 18px; font-weight: 700; }
.av-gh span { font-size: 13px; color: var(--muted); }
.av-body > .card { margin-top: 10px; }
/* 动作详情弹层 */
.av-hero { position: relative; }
.av-hero .move-frames.n1 img { aspect-ratio: 16 / 10; }
.av-hero > .av-lv { position: absolute; left: 10px; top: 10px; height: 24px; padding: 0 9px; font-size: 13px; }
.av-mus { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.av-mus em { font-style: normal; font-size: 13px; color: var(--muted); margin-right: 2px; }
.av-mus em:first-child { color: var(--ink); font-weight: 700; font-size: 15px; margin-right: 8px; }
.av-mus i { font-style: normal; font-size: 13px; font-weight: 600; height: 26px; padding: 0 10px; border-radius: 13px; display: inline-grid; place-items: center; background: var(--neutral-soft); color: var(--ink-2); }
.av-mus i.main { background: var(--accent-soft); color: var(--accent-text); }
.av-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.av-facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.av-facts > div { background: var(--bg); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.av-facts span { display: block; font-size: 12px; color: var(--muted); }
.av-facts b { display: block; font-size: 16px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-facts b.hot { color: var(--accent-text); }
.av-facts b.none { color: var(--muted); font-weight: 500; font-size: 14px; }
.av-facts b small { font-size: 12px; font-weight: 600; margin-left: 1px; }
.sheet-body .av-sec h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.av-steps, .av-pts { list-style: none; margin: 0; padding: 0; }
.av-steps li, .av-pts li { display: flex; gap: 10px; font-size: 15px; padding: 5px 0; line-height: 1.5; color: var(--ink); }
.av-sn { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.av-pm { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; background: var(--good-soft); color: var(--good); }
.av-pts.bad .av-pm { background: var(--accent-soft); color: var(--accent-text); }
.av-swap { background: var(--bg); border-radius: 16px; padding: 4px 14px; }
.av-swap:empty { display: none; }
.av-swap p { display: flex; gap: 12px; margin: 0; font-size: 14px; padding: 9px 0; line-height: 1.5; }
.av-swap p + p { border-top: 1px solid var(--line); }
.av-swap p span { flex: none; width: 64px; color: var(--muted); }
.av-swap p b { flex: 1; min-width: 0; font-weight: 500; color: var(--ink); }
.av-rk { display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 56px; border-radius: 16px; background: var(--neutral-soft); color: var(--ink); text-decoration: none; }
.av-rk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.av-rk-t b { font-size: 15px; font-weight: 700; }
.av-rk-t small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-tier { flex: none; display: inline-flex; }
.av-rk > .i { flex: none; color: var(--muted); }
/* §281 end */
/* 图鉴器械栏"按练哪儿找"（§282 需求 1、2）：拍照窄入口、部位卡（和动作页同一套）、三组器械卡、写着全身的一排、详情 */
.jx-shot { position: relative; margin-top: -8px; min-height: 46px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 0 6px 0 14px; cursor: pointer; color: var(--ink); font-size: 15px; }  /* 全局 label 是竖排、灰字 */
.jx-shot > .i { flex: none; color: var(--ink-2); }
.jx-shot b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.jx-shot small { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jx-go { flex: none; height: 34px; padding: 0 12px; border-radius: 12px; background: var(--metal); color: var(--metal-ink); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.jx-cap { margin: 6px 2px 0; }
.jx-all { --avh: var(--metal-ink); }
.jx-all .i { width: 40px; height: 40px; }
.jx-hd { display: flex; align-items: baseline; gap: 8px; margin: 20px 2px 0; min-width: 0; scroll-margin-top: 80px; }
.jx-hd h2 { margin: 0; font-size: 19px; font-weight: 700; flex: none; max-width: 100%; }
.jx-group { margin-top: 4px; }
.jx-gh { display: flex; align-items: center; gap: 8px; margin: 16px 2px 10px; }
.jx-gh h3 { margin: 0; font-size: 16px; font-weight: 700; }
.jx-gh span { font-size: 13px; color: var(--muted); }
.jx-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--violet); }
.jx-g-free .jx-dot { background: var(--accent); }
.jx-g-cardio .jx-dot { background: var(--good); }
.jx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.jx-card { min-width: 0; background: var(--surface); border-radius: 18px; padding: 8px 8px 12px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.jx-pic { position: relative; height: 112px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; margin-bottom: 6px; }
.jx-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }  /* 绝对定位铺满图框：在网格里写 height:100% 会跟着宽度变成正方形，宽屏下只露出图片顶上的白底 */
.jx-pic > b { font-size: 34px; font-weight: 800; color: var(--good); }
.jx-n { position: absolute; right: 6px; bottom: 6px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--metal); color: var(--metal-ink); font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.jx-name { font-size: 15px; font-weight: 700; padding: 0 4px; }
.jx-aka, .jx-tr, .jx-can { font-size: 12px; color: var(--muted); padding: 0 4px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.jx-aka { -webkit-line-clamp: 1; }
.jx-tr { color: var(--ink-2); }
.jx-tr mark { background: none; color: var(--accent-text); font-weight: 700; }
.jx-can { margin-top: 4px; }
.jx-can em { font-style: normal; font-weight: 700; color: var(--ink-2); }
.jx-whole { display: flex; gap: 10px; margin: 10px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.jx-whole::-webkit-scrollbar { display: none; }
.jx-wc { flex: none; width: 132px; background: var(--surface); border-radius: 16px; padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.jx-wc b { font-size: 14px; padding: 0 2px; }
.jx-wc small { font-size: 12px; color: var(--muted); padding: 0 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.jx-wpic { position: relative; height: 80px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; margin-bottom: 4px; }
.jx-wpic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.jx-wpic b { font-size: 26px; color: var(--good); }
.jx-aka-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.jx-trains { margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--sunken); display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.jx-trains span { flex: none; font-size: 12px; color: var(--muted); }
.jx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.jx-facts > div { min-width: 0; padding: 9px 12px; border-radius: 14px; background: var(--sunken); display: flex; flex-direction: column; }
.jx-facts small { font-size: 12px; color: var(--muted); }
.jx-facts b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jx-parts p { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.jx-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.jx-pgrid span { padding: 6px 4px; border-radius: 12px; background: var(--avhs); color: var(--avh); font-size: 12px; text-align: center; display: flex; flex-direction: column; }
.jx-pgrid b { font-size: 17px; }
.jx-pgrid b small { font-size: 11px; font-weight: 500; margin-left: 1px; }
.jx-steps { margin: 0; padding: 0; list-style: none; counter-reset: jx; display: grid; gap: 8px; }
.jx-steps li { counter-increment: jx; position: relative; padding-left: 30px; font-size: 14px; line-height: 1.55; }
.jx-steps li::before { content: counter(jx); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.jx-warn { margin: 0; padding: 4px 12px; list-style: none; border-radius: 14px; background: var(--heat-soft); }
.jx-warn li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; font-size: 14px; color: var(--ink); }
.jx-warn li + li { border-top: 1px solid var(--surface); }
.jx-warn .i { flex: none; margin-top: 3px; color: var(--heat); }
.jx-h3s { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.jx-unsure { background: var(--gold-soft); color: var(--gold-2); border-radius: 14px; padding: 10px 12px; }
/* §282 jx end */
/* 图鉴食物栏"一口里有什么"（§282 需求 3–5）：三段色条（蛋白质、碳水、脂肪各占热量多少，只表示比例）、一行一个的列表、详情 */
.sw-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 12px 2px 8px; font-size: 12px; color: var(--muted); }
.sw-legend b { font-weight: 600; color: var(--ink-2); margin-right: auto; }
.sw-legend span { display: inline-flex; align-items: center; gap: 4px; }
.sw-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.sw-p { background: var(--dz-pro); } .sw-c { background: var(--dz-carb); } .sw-f { background: var(--dz-fat); }
.sw-t-p { color: var(--dz-pro); } .sw-t-c { color: color-mix(in srgb, var(--dz-carb) 70%, var(--ink)); } .sw-t-f { color: var(--dz-fat); }
.sw-bar { display: flex; gap: 2px; height: 7px; border-radius: 4px; overflow: hidden; margin-top: 7px; }
.sw-bar i { display: block; min-width: 3px; font-style: normal; }
.sw-bar.big { height: 30px; border-radius: 9px; gap: 3px; margin-top: 8px; }
.sw-bar.big i { display: flex; align-items: center; padding: 0 8px; font-size: 12px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; overflow: hidden; }
.sw-bar.big .sw-c { color: var(--ink); }
.sw-line { display: flex; gap: 10px; margin-top: 4px; font-size: 12px; font-weight: 600; }
.sw-found { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 14px 2px 0; font-size: 14px; color: var(--ink-2); }
.sw-found small { font-size: 12px; color: var(--muted); }
.sw-box { background: var(--surface); border-radius: 20px; padding: 2px 14px; }
.sw-row { width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.sw-row + .sw-row { border-top: 1px solid var(--line); }
.sw-row .food-tile { margin-top: 2px; }
.sw-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sw-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sw-top b { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-kc { flex: none; font-size: 17px; font-weight: 800; color: var(--ink); }
.sw-kc small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.sw-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.sw-n { font-size: 12px; opacity: .7; }
.sw-new { width: 100%; margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 18px; background: var(--surface); font: inherit; text-align: left; cursor: pointer; }
.sw-new span:last-child { display: flex; flex-direction: column; }
.sw-new b { font-size: 15px; }
.sw-new small { font-size: 12px; color: var(--muted); }
.sw-brand { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surface); margin-bottom: 10px; }
.sw-brand > span { display: flex; flex-direction: column; min-width: 0; }
.sw-brand b { font-size: 17px; }
.sw-brand b small { font-size: 12px; font-weight: 500; color: var(--muted); }
.sw-brand > span > small { font-size: 12px; color: var(--muted); }
.sw-hero .food-tile { border-radius: 18px; }
.sw-meta { margin: 0; font-size: 13px; color: var(--muted); }
.sw-card { padding: 14px; border-radius: 18px; background: var(--sunken); display: grid; gap: 4px; }
.sw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sw-head > b { font-size: 30px; font-weight: 800; line-height: 1.1; }
.sw-head > b small { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-left: 4px; }
.sw-head > small { font-size: 12px; color: var(--muted); }
.sw-why { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.sw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.sw-cell { padding: 8px 10px; border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; min-width: 0; }
.sw-cell > small:first-child { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.sw-cell > small:first-child i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.sw-cell b { font-size: 20px; font-weight: 800; }
.sw-cell b small { font-size: 12px; font-weight: 600; margin-left: 2px; }
.sw-cell > small:last-child { font-size: 11px; color: var(--muted); }
.sw-minor { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sw-minor span { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px; border-radius: 12px; background: var(--surface); font-size: 13px; color: var(--muted); }
.sw-minor b { font-size: 15px; color: var(--ink); }
.sw-minor b small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.sw-g { min-width: 64px; text-align: center; font-size: 20px; font-weight: 800; }
.sw-g small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.sw-tot { margin-top: 8px; display: grid; gap: 6px; }
.sw-tot > small { font-size: 12px; color: var(--muted); }
.sw-tot > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sw-tot span { padding: 7px 8px; border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; min-width: 0; }
.sw-tot span b { font-size: 17px; font-weight: 800; }
.sw-tot span small { font-size: 11px; color: var(--muted); }
.sw-sizes { display: grid; gap: 6px; }
.sw-sizes button { border: 0; border-radius: 14px; padding: 8px 6px; background: var(--sunken); font: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; cursor: pointer; min-width: 0; }
.sw-sizes button b { font-size: 13px; }
.sw-sizes button span { font-size: 16px; font-weight: 800; color: var(--ink); }
.sw-sizes button span small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 1px; }
.sw-sizes button > small { font-size: 11px; color: var(--muted); }
.sw-sizes button.on { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
/* §282 sw end */
/* 图鉴方案栏"一周摆在眼前"（§282 需求 6–8）：跟着博主练三步、方案卡（轮练色块不标周几、动作图串）、详情、饮食四顿 */
.pk-s0 { --pk: var(--accent); } .pk-s1 { --pk: var(--violet); } .pk-s2 { --pk: var(--good); }
.pk-s3 { --pk: var(--gold); } .pk-s4 { --pk: var(--heat); } .pk-s5 { --pk: var(--ink-2); }
.vt-top { display: grid; gap: 12px; }
.pk-steps { display: flex; align-items: stretch; gap: 4px; }
.pk-steps > span { flex: 1; min-width: 0; padding: 8px 6px; border-radius: 12px; background: var(--sunken); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.pk-steps > span .i { color: var(--accent-text); }
.pk-steps b { font-size: 13px; }
.pk-steps small { font-size: 11px; color: var(--muted); line-height: 1.35; }
.pk-arrow { flex: none; align-self: center; color: var(--muted); }
.pk-hd { display: flex; align-items: baseline; gap: 8px; margin: 18px 2px 0; }
.pk-hd h2 { margin: 0; font-size: 19px; font-weight: 700; flex: none; }
.pk-hd span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-note { margin: 4px 2px 10px; font-size: 12px; color: var(--muted); }
.pk-list { display: grid; gap: 12px; }
.pk-card { display: grid; gap: 8px; padding: 14px; cursor: pointer; min-width: 0; }
.pk-top { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.pk-top > b { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
.chip.pk-blog { flex: none; background: color-mix(in srgb, var(--violet) 12%, var(--surface)); color: var(--violet); }
.pk-goals { flex: none; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 50%; }
.pk-facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; font-size: 13px; }
.pk-facts dt { color: var(--muted); }
.pk-facts dd { margin: 0; color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--ink-2); }
.pk-meta .i { color: var(--muted); }
.pk-meta .i + .i, .pk-meta .i:not(:first-child) { margin-left: 8px; }
.pk-dayrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pk-dayrow > b { font-size: 14px; color: var(--ink); }
.pk-dayrow small { margin-left: auto; font-size: 12px; }
.pk-seg { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--sunken); }
.pk-seg button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 3px 10px; border-radius: 8px; cursor: pointer; }
.pk-seg button.on { background: var(--ink); color: var(--surface); }
.pk-round { display: flex; gap: 4px; align-items: stretch; }
.pk-round > span { flex: 1; min-width: 0; height: 30px; border-radius: 9px; background: var(--pk); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-round > span.pk-s3 { color: var(--surface); }
.pk-loop { flex: none; width: 26px; border-radius: 9px; background: var(--sunken); color: var(--muted); display: grid; place-items: center; }
.pk-moves { display: grid; gap: 6px; margin-top: 2px; }
.pk-mrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pk-tag { flex: none; min-width: 52px; max-width: 72px; height: 24px; padding: 0 6px; border-radius: 8px; background: color-mix(in srgb, var(--pk) 14%, var(--surface)); color: var(--pk); font-size: 12px; font-weight: 700; display: grid; place-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-ths { flex: 1; min-width: 0; display: flex; gap: 4px; overflow: hidden; }
.pk-th { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); object-fit: contain; display: grid; place-items: center; }
.pk-nopic { background: var(--avhs); color: var(--avh); font-size: 16px; font-weight: 800; border-color: transparent; }
.pk-mrow > small { flex: none; font-size: 12px; color: var(--muted); }
.pk-rounds { padding: 12px; border-radius: 16px; background: var(--sunken); display: grid; gap: 8px; }
.pk-rounds > p { margin: 0; font-size: 14px; font-weight: 700; }
.pk-rounds > p small { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.pk-rounds > div { display: grid; gap: 4px; }
.pk-rounds > div > small { font-size: 12px; color: var(--muted); }
.pk-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }  /* 排在器械那块后面，同级覆盖成两列 */
.pk-sess { margin-top: 10px; border-radius: 16px; background: var(--sunken); padding: 4px 12px 6px; }
.pk-sh { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.pk-sh i { width: 10px; height: 10px; border-radius: 3px; background: var(--pk); }
.pk-sh b { font-size: 15px; color: var(--pk); }
.pk-sh small { margin-left: auto; font-size: 12px; color: var(--muted); }
.pk-it { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--surface); }
.pk-it .pk-th { width: 48px; height: 48px; }
.pk-it > span { min-width: 0; display: flex; flex-direction: column; }
.pk-it b { font-size: 14px; }
.pk-it small { font-size: 12px; color: var(--ink-2); }
.pk-it .pk-itn { color: var(--muted); }
.pk-sum { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pk-meals { display: grid; gap: 6px; }
.pk-mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pk-meal { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pk-meal .food-tile.cover { border-radius: 10px; aspect-ratio: 1; font-size: 22px; margin-bottom: 3px; }
.pk-mk { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); }
.pk-mk i { width: 7px; height: 7px; border-radius: 2px; background: var(--pk); }
.pk-meal b { font-size: 15px; font-weight: 800; }
.pk-meal b small { font-size: 10px; font-weight: 500; color: var(--muted); margin-left: 1px; }
.pk-mn { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-mbar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.pk-mbar i { background: var(--pk); }
.pk-per { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.pk-per b { font-size: 15px; color: var(--ink); }
.pk-suit { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* §282 pk end */
