/* 疗愈师端页面骨架（QZ-029）。组件全部来自《且坐设计系统》v2.2 的 qz-components.css，
   这里只放 QZ-010 交付页画板上的排布（原来写在 style 属性里的），只用 token，不写字面颜色。 */
html, body { margin: 0; min-height: 100%; background: var(--color-bg-page); }
[hidden] { display: none !important; }

#app { min-height: 100vh; min-height: 100dvh; }
.screen { min-height: 100vh; min-height: 100dvh; }

/* 通用小件 */
.muted { margin: 0; color: var(--color-text-secondary); }
.plain { margin: 0; }
.footnote { margin: 0; color: var(--color-text-tertiary); font-size: var(--font-size-200); }
.wrap-any { overflow-wrap: anywhere; }
.stack-2 { gap: var(--space-2); }
.stack-4 { gap: var(--space-4); }
.stack-5 { gap: var(--space-5); }
.stack-6 { gap: var(--space-6); }
.mt-3 { margin-top: var(--space-3); }
.self-start { align-self: flex-start; }
.notice--center { align-items: center; }
.flex-none { flex: none; }
.grow { flex: 1; min-width: 0; }

/* 登录：内容列最大宽 400 居中，光晕铺满 */
/* ---------- 登录（QZ-136，B 的画板）：照首页的气质。浅色暖米白 + 纸纹、墨绿宋体标题；深色暖黑底 + 顶上一团暖灯；
   左对齐书页排法，表单一列 400 宽；输入只有一条下划线；按钮是描边胶囊；底下只有备案号。颜色都用 token ---------- */
.login {
  --login-bg: var(--mark-rice); --login-head: var(--mark-green); --login-btn: var(--mark-green);
  position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; overflow: hidden; box-sizing: border-box;
  padding: 72px 36px 28px; background: var(--login-bg); color: var(--color-text-primary);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .login { --login-bg: var(--mark-night); --login-head: var(--mark-rice); --login-btn: var(--mark-rice); }
}
:root[data-theme="dark"] .login { --login-bg: var(--mark-night); --login-head: var(--mark-rice); --login-btn: var(--mark-rice); }
/* 浅色的纸纹（同首页），深色不要；深色顶上一团暖灯，浅色不要 */
.login__paper { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.login__paper rect { opacity: .05; }
.login__lamp { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .login__paper { display: none; }
  :root:not([data-theme="light"]) .login__lamp { display: block; }
}
:root[data-theme="dark"] .login__paper { display: none; }
:root[data-theme="dark"] .login__lamp { display: block; }
.login__lamp { position: absolute; left: -120px; right: -120px; top: -260px; height: 620px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--color-glow), var(--color-glow-mid) 55%, var(--color-glow-end)); }
.login__col { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; max-width: 400px; }
.login__mark { display: inline-flex; align-self: flex-start; min-height: var(--size-tap); align-items: center; color: var(--login-head); }
.login__title { margin: 44px 0 0; color: var(--login-head); font-family: "QZ Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif; font-size: 28px; font-weight: var(--font-weight-regular); letter-spacing: .12em; line-height: 1.4; }
.login__title--top { margin-top: 48px; }
.login__lead { margin: var(--space-3) 0 0; color: var(--color-text-secondary); letter-spacing: .04em; }
/* 平台联系方式（QZ-158）：号码不断行，点了拨打 */
.contact-tel { white-space: nowrap; }
.login__modes { display: flex; gap: 28px; margin-top: 36px; }
.login__mode { display: inline-flex; align-items: center; min-height: var(--size-tap); padding: 0; border: 0; background: none; color: var(--color-text-secondary); font: inherit; letter-spacing: .08em; cursor: pointer; }
.login__mode[aria-selected="true"] { color: var(--login-head); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 10px; }
.login__form { display: flex; flex-direction: column; }
.login__form > #login-notice:not(:empty), .login__form > [id$="-notice"]:not(:empty) { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.login__field { display: flex; flex-direction: column; margin-top: var(--space-5); }
.login__label { display: flex; justify-content: space-between; align-items: center; color: var(--color-text-secondary); font-size: var(--font-size-200); }
.login__line { display: flex; align-items: center; gap: var(--space-2); min-height: 52px; border-bottom: 1.5px solid var(--color-border-strong); }
.login__line:focus-within { border-bottom-color: var(--login-head); }
.login__field:has([aria-invalid="true"]) .login__line { border-bottom-color: var(--color-danger); }
.login__input { flex: 1; min-width: 0; height: 50px; padding: 0; border: 0; background: none; color: var(--color-text-primary); font: inherit; font-size: 17px; letter-spacing: .06em; outline: none; }
.login__input::placeholder { color: var(--color-text-tertiary); font-size: var(--font-size-input); letter-spacing: .02em; }
.login__act, .login__link, .login__eye { display: inline-flex; align-items: center; min-height: var(--size-tap); padding: 0; border: 0; background: none; color: var(--color-brand); font: inherit; font-size: var(--font-size-200); letter-spacing: .04em; white-space: nowrap; cursor: pointer; }
.login__act { font-size: 14px; }
.login__act:disabled { color: var(--color-text-tertiary); cursor: default; }
.login__label .login__link { min-height: 32px; }
.login__link--block { align-self: flex-start; }
.login__eye { justify-content: center; width: var(--size-tap); color: var(--color-text-secondary); }
.login__btn { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 32px; padding: 0 var(--space-5); border: 1.5px solid var(--login-btn); border-radius: var(--radius-full); background: none; color: var(--login-btn); font: inherit; font-size: var(--font-size-300); letter-spacing: .3em; cursor: pointer; }
.login__btn:disabled { border-color: var(--color-border); color: var(--color-text-tertiary); cursor: default; }
.login__btn--sec { border-color: var(--color-border-strong); color: var(--color-text-primary); letter-spacing: .1em; }
.login__form .login__btn--sec { margin-top: 0; }
.login__small { margin: var(--space-4) 0 0; color: var(--color-text-secondary); font-size: var(--font-size-200); line-height: 1.7; }
.login__back { position: absolute; top: 20px; left: 20px; z-index: 2; display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--size-tap); padding: 0; border: 0; background: none; color: var(--color-brand); font: inherit; cursor: pointer; }
.login .foot { position: relative; z-index: 1; margin: auto 0 0; padding-top: var(--space-8); color: var(--color-text-tertiary); font-size: var(--font-size-100); letter-spacing: .06em; text-align: center; }
.login .foot a { color: inherit; text-decoration: none; }
/* 电脑：表单一列 400 宽，靠左放在书页的位置（同首页的内容列） */
@media (min-width: 768px) {
  .login { padding: 120px 0 28px; align-items: center; }
  .login__col { width: 440px; max-width: none; }
  .login__col > *:not(.login__mark):not(.login__title):not(.login__lead):not(.login__modes) { max-width: 400px; }
  .login__title { font-size: 32px; }
}
/* 密码规则：边输边对，过了绿勾，没过红叉，没输灰 */
.pw-rules { display: flex; flex-direction: column; gap: var(--space-1); margin: var(--space-3) 0 0; padding: 0; list-style: none; font-size: var(--font-size-200); }
.pw-rules__item { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-secondary); }
.pw-rules__item.is-idle > svg { opacity: .4; }
.pw-rules__item.is-ok { color: var(--color-success); }
.pw-rules__item.is-no { color: var(--color-danger); }
/* 「我的 · 设登录密码 / 改登录密码」：输入框里右边一只眼睛 */
.pw-input { position: relative; display: flex; align-items: center; }
.pw-input .qz-input { flex: 1; padding-right: 52px; }
.pw-eye { position: absolute; right: 4px; }
.row-button { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }

/* 分组标题行 */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 24px; }

/* 出错、不存在、空：居中块 */
.center-block { display: flex; flex-direction: column; justify-content: center; min-height: 560px; }

/* 键值行（账户抽屉、已约抽屉） */
.kv { display: flex; justify-content: space-between; gap: var(--space-4); }
.kv > :first-child { color: var(--color-text-secondary); }
.kv > :last-child { min-width: 0; text-align: right; overflow-wrap: anywhere; }

/* 骨架尺寸 */
.sk-stat { height: 32px; }
.sk-avatar { width: 44px; height: 44px; flex: none; }
.sk-50 { width: 50%; } .sk-72 { width: 72%; } .sk-70 { width: 70%; } .sk-40 { width: 40%; } .sk-90 { width: 90%; }
.sk-day { height: 64px; border-radius: var(--radius-md); }
.sk-slot { height: 60px; border-radius: var(--radius-md); }
.sk-wide { grid-column: 1 / -1; }

/* 危机确认：1280 宽内容最大 640 居中 */
.narrow { width: 100%; max-width: 640px; margin-inline: auto; }

/* 档期 */
.day-empty { padding: var(--space-6) 0; text-align: center; }
.day-empty .muted { margin-bottom: var(--space-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.full-row { grid-column: 1 / -1; }
.pad-in { padding-inline: var(--space-4); }
.choice-tight { padding-inline: var(--space-3); }

/* 轻提示 */
.toast-host { position: fixed; left: 0; right: 0; bottom: calc(var(--size-bottomnav) + var(--space-5)); z-index: var(--z-toast); display: flex; justify-content: center; pointer-events: none; }
.toast-host .qz-toast { pointer-events: auto; }

/* 间距小件 */
.stack-1 { gap: var(--space-1); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-4 { margin-bottom: var(--space-4); }
.grid-2.grid-gap-2 { gap: var(--space-2); }
.small { font-size: var(--font-size-200); }
.tiny { color: var(--color-text-tertiary); font-size: var(--font-size-100); }
.pre-line { white-space: pre-line; }
.text-danger { color: var(--color-danger); }
.sub-wrap { white-space: normal; }
.row-static { cursor: default; }
.row-static:active { background: none; }
.row-control { min-height: var(--size-control); }
.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
th.th-num { text-align: right; }

/* 案主列表 */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.list-count { color: var(--color-text-secondary); font-size: var(--font-size-200); }
/* 筛过以后标题「没填 · n 位」在手机上单独一行、不折行，按钮在下一行（QZ-138 D 顺带） */
@media (max-width: 599px) {
  .list-head { flex-wrap: wrap; }
  .list-count--filtered { flex-basis: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.sk-count { display: block; width: 80px; }
.qz-card.filter-wide { display: none; }
@media (min-width: 960px) {
  .filter-phone { display: none; }
  .qz-card.filter-wide { display: flex; }
}

/* 个案详情：时间线、人物是「64px 左列 + 正文」 */
.pair-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-2); }
.pair-row__key { color: var(--color-text-secondary); }
}

/* 品牌 */
.greeting { min-height: 96px; }
.swatch { flex: none; width: 18px; height: 18px; border-radius: var(--radius-full); background: var(--color-brand); }
.preview-block { align-items: center; }
.preview-block--wide { display: none; }
.preview-cover { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; padding: 0 var(--space-5) var(--space-6); box-sizing: border-box; }
.preview-cover__main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: var(--space-10); }
.sk-preview { width: 195px; height: 422px; margin-inline: auto; border-radius: var(--radius-xl); }
.brand-form { display: flex; flex-direction: column; gap: var(--space-6); }
@media (min-width: 960px) {
  .preview-block--phone { display: none; }
  .preview-block--wide { display: flex; position: sticky; top: var(--space-4); }
}
/* 裁剪台里的图：按原图比例铺满，位置和缩放由脚本算 */
.qz-cropper__stage > img.cropper-img { position: absolute; top: 50%; left: 50%; max-width: none; object-fit: fill; transform-origin: center; user-select: none; -webkit-user-drag: none; }

/* ---------- QZ-092 模板库、轨迹图、对话练习 ---------- */
.stack-3 { gap: var(--space-3); }
.mt-2 { margin-top: var(--space-2); }
.inline-2 { gap: var(--space-2); }
.inline-3 { gap: var(--space-3); }
.wrap { flex-wrap: wrap; }
.self-center { align-self: center; }
.text-center { text-align: center; }
.quote-line { margin: 0; font-size: var(--font-size-400); font-weight: var(--font-weight-light); line-height: var(--line-height-relaxed); }
.points, .bullets { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; }
.points { padding-left: 1.4em; }
.bullets { padding-left: 1.2em; }
.loading-col { flex-direction: column; gap: var(--space-3); }

/* 空的提示位不占间距 */
.notice-slot:empty { display: none; }

/* 模板库：列表行右边的开关不占满整行；1280 宽左列表右详情，选中行用按下色 */
.switch-inline { width: auto; flex: none; padding-right: var(--space-4); }
.row-selected { background: var(--color-bg-pressed); }
.tpl-wide { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--space-6); align-items: start; }
.tpl-aside { position: sticky; top: calc(var(--size-topbar) + var(--space-4)); }

.ta-72 { min-height: 72px; } .ta-96 { min-height: 96px; } .ta-120 { min-height: 120px; }

/* 对话练习：顶栏右边放「结束」两个字，两侧格子放宽，不竖着换行 */
.topbar-wide { grid-template-columns: 72px minmax(0, 1fr) 72px; }
.topbar-wide .qz-btn { white-space: nowrap; padding-inline: var(--space-3); }
.entry-card { display: flex; align-items: center; gap: var(--space-3); text-align: left; text-decoration: none; color: inherit; }
.card-flush { padding: 0; }
.practice { display: flex; flex-direction: column; }
.practice__main { display: flex; flex-direction: column; min-height: calc(100dvh - var(--size-topbar) - var(--space-3)); }
.practice__notice { position: sticky; top: var(--size-topbar); z-index: 1; padding-top: var(--space-2); }
.practice-chat { flex: 1; padding-inline: 0; }
.practice__composer { position: sticky; bottom: 0; margin-inline: calc(var(--space-5) * -1); }
.meter { margin: 0; padding: 0 var(--space-4) max(var(--space-3), env(safe-area-inset-bottom, 0px)); background: var(--color-veil); color: var(--color-text-tertiary); font-size: var(--font-size-100); text-align: center; }
.practice__composer .qz-composer { padding-bottom: var(--space-2); }
.practice__aside { display: none; }
/* 练习中手机上收起底部导航 */
@media (max-width: 959px) {
  .shell--focus > .qz-bottomnav { display: none; }
  .shell--focus .qz-shell__body { padding-bottom: 0; }
}
@media (min-width: 960px) {
  .phone-only { display: none; }
  .practice { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-6); align-items: start; }
  .practice__aside { display: flex; position: sticky; top: calc(var(--size-topbar) + var(--space-4)); }
  .practice__composer { margin-inline: 0; }
}

/* 我的案主链接的二维码（QZ-094）：码本身固定白底黑块（深色模式也一样，才扫得出），外面用 token 的边框 */
.qr { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); margin: 0; }
.qr__code { width: 160px; padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-raised); }
.qr__svg { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }

/* 对练室（QZ-112，版面 QZ-110）：只排版，组件来自设计系统，只用 token */
.center { text-align: center; }
.room-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.room-card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); text-decoration: none; }
.room-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.room-card__name { font-size: var(--font-size-500); }
.group-title { margin: var(--space-2) 0 0; font-size: var(--font-size-300); font-weight: var(--font-weight-regular); }
.chip-row { display: flex; gap: var(--space-2); overflow-x: auto; margin-right: calc(var(--space-5) * -1); padding-right: var(--space-5); scrollbar-width: none; }
.chip-row > * { flex: none; }
.chip { min-height: 36px; padding-inline: var(--space-4); }
.chip--on { border-color: var(--color-brand); background: var(--color-brand); color: var(--color-on-brand); }
.archived summary, .hidden-box summary, .info-box summary { cursor: pointer; min-height: 28px; }
.archived summary { color: var(--color-text-secondary); }
.choice-pill { min-height: var(--size-tap); padding: var(--space-1) var(--space-4); border-radius: var(--radius-full); }
.loading-start { justify-content: flex-start; padding: var(--space-2) 0; }
.persona-name { margin: 0; font-size: var(--font-size-600); font-weight: var(--font-weight-light); }
.hidden-box { padding: var(--space-3) var(--space-4); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-md); }
.hidden-box summary { color: var(--color-brand); }
.info-box { padding: var(--space-3) var(--space-4); }
.info-box summary { color: var(--color-text-secondary); font-size: var(--font-size-200); }
.num-cell { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.caption-bottom { caption-side: bottom; padding-top: var(--space-2); text-align: left; }
.card-dashed { border-style: dashed; }
.btn-short { border-style: dashed; color: var(--color-text-secondary); }
/* 对话 / 复盘两个页签 */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-full); background: var(--color-bg-sunken); }
.tab { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: var(--radius-full); color: var(--color-text-secondary); text-decoration: none; }
.tab--on { background: var(--color-bg-surface); color: var(--color-text-primary); box-shadow: var(--shadow-sm); }
/* 练习页：一轮一轮，老师靠右；名字、轮次、想做的在气泡上下 */
.room-chat { gap: var(--space-4); }
.turn { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.turn--self { align-items: flex-end; }
.turn__who { color: var(--color-text-tertiary); font-size: var(--font-size-100); }
.turn__why { max-width: 82%; color: var(--color-text-secondary); font-size: var(--font-size-100); text-align: right; }
.tag-button { border: 0; cursor: pointer; font-family: inherit; }
.topbar-sub { display: block; color: var(--color-text-secondary); font-size: var(--font-size-100); }
.room-composer { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-5) max(var(--space-3), env(safe-area-inset-bottom, 0px)); background: var(--color-veil); }
.room-composer__send { align-items: flex-end; gap: var(--space-2); }
.room-composer__send > textarea { flex: 1; min-width: 0; }
.why-input { height: var(--size-tap); }
.draft { background: var(--color-bg-raised); }
.draft__reply { font-size: var(--font-size-300); }
/* 帮我回三条（QZ-134）：每条一块，方向标签、草稿、想做什么 / 留意、「用这条」；「已经知道的」折叠在下面 */
.draft-list { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.draft-item { padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-surface); }
.draft-item .draft__reply { margin: 0; }
.draft-known > summary { min-height: 44px; display: flex; align-items: center; color: var(--color-text-secondary); font-size: var(--font-size-200); cursor: pointer; }
.draft-known .bullets { margin: 0 0 var(--space-2); }
/* 复盘 */
.timeline { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding-left: 1.2em; }
.timeline li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
.timeline__t { color: var(--color-text-secondary); font-size: var(--font-size-200); }
.uncovered { display: flex; align-items: flex-start; gap: var(--space-2); }
.uncovered > :first-child { flex: none; }
.assist-area { min-height: 420px; font-size: var(--font-size-input); line-height: var(--line-height-relaxed); }
@media (min-width: 960px) {
  .room-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip-row { flex-wrap: wrap; margin-right: 0; padding-right: 0; }
  .room-composer { padding-inline: 0; background: none; }
}
/* 练习页顶上的提示、信息、轮数不吸顶（三行太占地方，聊天会从下面透出来）；底部按钮行在手机上收紧 */
.room-notice { padding-top: var(--space-2); }
.room-composer .chip-row { flex-wrap: wrap; margin-right: 0; padding-right: 0; }
.room-composer .chip-row .qz-btn { padding-inline: var(--space-3); }
.room-notice .section-head { flex-wrap: wrap; }
.room-notice .section-head > .muted { white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* 导入以前的个案（QZ-118d，版面 QZ-118a）：只排版，只用 token */
.step-title { margin: 0; font-size: var(--font-size-500); font-weight: var(--font-weight-regular); }
.file-row { padding-block: var(--space-3); }
.edit-rows { display: grid; grid-template-columns: 72px minmax(0, 1fr) var(--size-tap); gap: var(--space-2); align-items: center; }
.edit-rows:has(.edit-rows__who) { grid-template-columns: 88px minmax(0, 1fr) var(--size-tap); }
.edit-rows > input { height: var(--size-tap); padding-inline: var(--space-3); }
.tag-removable { min-height: 32px; padding: 0 var(--space-1) 0 var(--space-3); }
.tag-x { width: 28px; height: 28px; min-width: 28px; min-height: 28px; }
.emotion-input { max-width: 160px; height: var(--size-tap); }
.hint-tight { margin-top: calc(var(--space-4) * -1); }
a.qz-btn, a.qz-row__open { text-decoration: none; }

/* QZ-117「暂不开放」：虚线边、没有底色，能点（不是禁用）；工具页卡片、业绩目标四格、分享码占位。只用 token */
.is-soon { border: 1px dashed var(--color-border-strong); background: none; }
.qz-btn.is-soon { color: var(--color-text-secondary); }
.soon-card { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; text-align: left; font: inherit; cursor: pointer; }
.soon-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.soon-card__title { font-size: var(--font-size-400); }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.tool-card { display: flex; flex-direction: column; gap: var(--space-2); min-height: 140px; padding: var(--space-4); text-decoration: none; }
.tool-card .soon-card__head { flex-direction: column; align-items: flex-start; }
.goal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.goal-cell { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--color-bg-sunken); }
.goal-cell__value { color: var(--color-text-secondary); font-size: var(--font-size-500); font-weight: var(--font-weight-light); }
.share-code { align-self: flex-start; padding: var(--space-1) var(--space-4); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-full); color: var(--color-text-secondary); letter-spacing: .08em; }
@media (min-width: 960px) {
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 导入的案主详情（QZ-118d / QZ-120）照文档顺序排，不用个案详情手机上的 order */

/* 生命之树（QZ-124d，版面 QZ-124a）：草稿逐段改、导出页 A4。只用 token；导出页固定晨光（data-theme="light"） */
.tree-version { font-size: var(--font-size-500); font-weight: var(--font-weight-light); }
.tree-skeleton { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.tree-editing { box-shadow: 0 0 0 2px var(--color-brand); }
.tree-area { min-height: 220px; font-size: var(--font-size-input); line-height: var(--line-height-relaxed); }
.tree-text { line-height: var(--line-height-relaxed); }
.tree-list { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; }
.tree-props { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; padding-left: 1.4em; }
.tree-props li { display: list-item; padding-left: var(--space-1); }
.tree-props li > span { display: block; }
.tree-props li > .tree-text { margin-top: var(--space-1); }
.tree-props__title { font-size: var(--font-size-400); }
.tree-table td { vertical-align: top; }
.tree-rel-edit { display: flex; flex-direction: column; gap: var(--space-1); }
.tree-rel-edit__name { color: var(--color-text-secondary); font-size: var(--font-size-200); }
.tree-foot { padding-top: var(--space-2); }
/* 导出页：屏幕上是一张纸，上面一条工具条（不打印） */
.tree-export-page { display: flex; flex-direction: column; gap: var(--space-4); width: 100%; max-width: 794px; margin-inline: auto; }
.tree-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.tree-paper { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-10) var(--space-6); border-radius: var(--radius-lg); background: var(--color-bg-surface); box-shadow: var(--shadow-sm); color: var(--color-text-primary); }
.tree-paper__head { display: flex; flex-direction: column; gap: var(--space-2); text-align: center; }
.tree-paper__title { margin: 0; font-size: var(--font-size-700); font-weight: var(--font-weight-light); letter-spacing: .12em; }
.tree-paper__to { margin: var(--space-4) 0 0; font-size: var(--font-size-500); }
.tree-paper__by { margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-200); }
.tree-paper__section { display: flex; flex-direction: column; gap: var(--space-3); }
.tree-paper__section h2 { margin: 0; padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-border); font-size: var(--font-size-500); font-weight: var(--font-weight-regular); color: var(--color-brand); }
.tree-paper__sign { margin: var(--space-4) 0 0; text-align: right; }
.tree-paper__foot { display: flex; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--color-border); color: var(--color-text-tertiary); font-size: var(--font-size-100); }
.tree-paper .qz-table-wrap { overflow: visible; }
@media (max-width: 599px) {
  .tree-paper { padding: var(--space-8) var(--space-4); }
}
/* 打印：A4，导航、顶栏、工具条、提示都不出现；页脚每页写「AI 辅助整理，老师审阅」和「老师 · 第 n 页」 */
@page {
  size: A4;
  margin: 18mm 16mm 20mm;
  @bottom-left { content: "AI 辅助整理，老师审阅"; color: var(--color-text-tertiary); font-size: 9pt; }
  @bottom-right { content: var(--tree-signature, "") " · 第 " counter(page) " 页"; color: var(--color-text-tertiary); font-size: 9pt; }
}
@media print {
  html, body, #app { min-height: 0; background: none; }
  body.tree-export .qz-bottomnav, body.tree-export #topbar, body.tree-export .tree-bar, body.tree-export .tree-tip,
  body.tree-export #toast, body.tree-export #layer { display: none !important; }
  body.tree-export .qz-shell, body.tree-export .qz-shell__main { display: block; min-height: 0; }
  body.tree-export .qz-shell__body { display: block; padding: 0; }
  body.tree-export .tree-export-page { max-width: none; }
  body.tree-export .tree-paper { padding: 0; border-radius: 0; background: none; box-shadow: none; gap: 10mm; }
  body.tree-export .tree-paper__foot { display: none; }
  body.tree-export .tree-paper__section h2 { break-after: avoid; }
  body.tree-export .tree-table tr, body.tree-export .tree-props li, body.tree-export .tree-list li { break-inside: avoid; }
  body.tree-export .qz-page--glow { background: none; }
}
.tree-card-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tree-table { width: 100%; min-width: 0; table-layout: auto; }
.tree-table td:last-child { width: 100%; }
.tree-table th, .tree-table td { padding-inline: var(--space-3); }

/* 工作台首页（QZ-127 重排，B 的画板 https://claude.ai/artifact/XNVD1L9Vh5AGtBLKAGvmmf）：问候、日期、题记 → 需要留意一行 → 今天的预约 → 最近聊过 → 工具。
   宋体标题，细线分隔，不填色块。颜色只用 token：标题用字标色 color-mark（晨光墨绿、黄昏米白），人像上的小圆点用暖赭 color-tea。
   宋体字库是思源宋体常规的子集（常用 3500 字 + 题记里的字，scripts/build-serif-font.mjs 生成），名字里不在字库的字逐字顺延系统宋体 */
@font-face { font-family: "QZ Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/serif-400.woff") format("woff"); }
.serif { font-family: "QZ Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif; font-weight: var(--font-weight-regular); }
.dash { display: flex; flex-direction: column; width: 100%; max-width: 880px; margin-inline: auto; padding: var(--space-4) var(--space-1) var(--space-6); box-sizing: border-box; }
.dash-greet { margin: 0; font-size: 28px; line-height: var(--line-height-tight); letter-spacing: .06em; color: var(--color-mark); }
.dash-date { margin: var(--space-2) 0 0; color: var(--color-text-secondary); font-size: var(--font-size-200); letter-spacing: .04em; }
.dash-epigraph { max-width: 300px; margin: 28px 0 0; }
.dash-epigraph blockquote { margin: 0; color: var(--color-text-tertiary); font-size: 15px; line-height: 1.9; letter-spacing: .06em; }
.dash-epigraph figcaption { margin-top: var(--space-1); color: var(--color-text-tertiary); font-size: var(--font-size-100); text-align: right; }
.dash-attention { display: flex; align-items: center; min-height: var(--size-tap); margin-top: 36px; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); color: var(--color-text-primary); font-size: 15px; text-decoration: none; }
.dash-attention .qz-icon { margin-left: auto; color: var(--color-text-secondary); }
.dash-body { display: flex; flex-direction: column; }
.dash-pair { display: flex; flex-direction: column; }
.dash-section { display: flex; flex-direction: column; gap: var(--space-3); margin-top: 44px; }
.dash-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.dash-section__head h2 { margin: 0; color: var(--color-mark); font-size: 19px; }
.dash-more { display: inline-flex; align-items: center; min-height: var(--size-tap); color: var(--color-brand); font-size: var(--font-size-200); text-decoration: none; }
.dash-rows { display: flex; flex-direction: column; }
.dash-row { display: flex; align-items: baseline; gap: var(--space-4); min-height: 52px; padding: 14px 0; box-sizing: border-box; border-bottom: 1px solid var(--color-border); color: var(--color-text-primary); text-decoration: none; }
.dash-row__time { width: 48px; flex: none; color: var(--color-brand); font-family: var(--font-numeric); }
.dash-row__note { margin-left: auto; color: var(--color-text-secondary); font-size: var(--font-size-200); }
.dash-row--client { align-items: center; gap: 14px; min-height: 60px; padding: var(--space-2) 0; }
/* 今天的预约（QZ-152）：左边时间和人进档期，右边记一笔 / 已记 / 没来 */
.dash-row--booking { align-items: center; gap: var(--space-2); padding-block: var(--space-2); }
.dash-row--booking .dash-row__open { gap: var(--space-4); align-items: baseline; }
.dash-row--booking .dash-row__note { margin-left: 0; }
.dash-row__done { color: var(--color-text-secondary); font-size: var(--font-size-200); text-decoration: none; white-space: nowrap; }
button.dash-row__tag--link { background: none; font: inherit; font-size: var(--font-size-100); cursor: pointer; }
.dash-row__avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--color-bg-pressed); color: var(--color-mark); font-size: 15px; }
.dash-row__who { display: flex; flex-direction: column; min-width: 0; }
.dash-row__who .dash-row__note { margin-left: 0; }
.dash-row__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--space-1) var(--space-2); margin-left: auto; }
.dash-row__new { color: var(--color-brand); font-size: var(--font-size-100); white-space: nowrap; }
/* 「今日待跟进」的小标签（QZ-127 补 2）：细边小字，不用色块 */
.dash-row__tag { padding: 1px 6px; border: 1px solid var(--color-border); border-radius: var(--radius-full); color: var(--color-text-secondary); font-size: var(--font-size-100); line-height: 1.6; white-space: nowrap; }
/* 「额度用完」单独成链接时（QZ-150d）：一行分两块，左边整块进个案详情，右边小标签去「我的」 */
.dash-row--split { gap: var(--space-2); }
.dash-row__open { display: flex; flex: 1; align-items: center; gap: 14px; min-width: 0; align-self: stretch; color: inherit; text-decoration: none; }
.dash-row__tag--link { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-2); border-color: var(--color-border-strong); color: var(--color-brand); text-decoration: none; }
.dash-empty { margin: 0; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); color: var(--color-text-secondary); font-size: 14px; }
.dash-empty p { margin: 0; }
.dash-error { display: flex; flex-direction: column; gap: var(--space-3); margin-top: 44px; color: var(--color-text-secondary); }
.dash-error p { margin: 0; }
.dash-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dash-tool { display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 64px; padding: 0 var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: none; color: var(--color-text-primary); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
/* 业绩目标（暂不开放，QZ-137 子汶 11/9）：「工具」那一块上面单独一行，手机、宽屏一样；上下细线，和「需要留意」那一行同一种安静的样子 */
.dash-tool__tag { padding: 1px var(--space-2); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-full); font-size: var(--font-size-100); }
/* 顶栏人像和「需要留意」的小圆点：暖赭，不用橙红、不闪 */
.dash-avatar { position: relative; }
.dash-avatar__dot { position: absolute; top: 6px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: var(--radius-full); background: var(--color-tea); color: var(--color-bg-page); font-family: var(--font-numeric); font-size: 11px; line-height: 16px; text-align: center; }
/* 「需要你留意」表 */
.att-list { display: flex; flex-direction: column; }
.att-row { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); }
.att-row__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.att-row__name { font-size: 17px; }
.att-row__meta { color: var(--color-text-secondary); font-size: var(--font-size-200); }
.att-row__actions { display: flex; gap: var(--space-2); }
.att-row--older { flex-direction: row; flex-wrap: wrap; align-items: center; padding: var(--space-2) 0; }
.att-row--older .att-row__head { justify-content: flex-start; }
.att-row--older .att-row__name { font-size: 16px; }
.att-row--older .att-row__actions { margin-left: auto; }
.att-ack { border-color: var(--color-brand); color: var(--color-brand); }
.att-older { margin: var(--space-2) 0 0; color: var(--color-text-secondary); font-size: var(--font-size-200); font-weight: var(--font-weight-regular); }
.att-me { display: flex; align-items: center; min-height: var(--size-tap); color: var(--color-text-primary); font-size: 14px; text-decoration: none; }
.att-me .qz-icon { margin-left: auto; color: var(--color-text-secondary); }
.attention-pop .qz-sheet__title { color: var(--color-mark); font-size: 22px; font-weight: var(--font-weight-regular); }
@media (min-width: 960px) {
  .dash { padding: 56px 0 var(--space-8); }
  .dash-greet { font-size: 36px; }
  .dash-date { margin-top: 10px; font-size: 14px; }
  .dash-epigraph { max-width: 26em; margin-top: 32px; }
  .dash-epigraph blockquote { font-size: 16px; }
  .dash-attention { min-height: 48px; margin-top: 40px; }
  .dash-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .dash-section { margin-top: 48px; }
  .dash-section__head h2 { font-size: 20px; }
  .dash-row--client { align-items: baseline; min-height: 52px; padding: 14px 0; }
  .dash-row--client .dash-row__avatar { display: none; }
  .dash-row--split { align-items: center; padding-block: var(--space-1); }
  .dash-row__open { align-items: baseline; padding-block: 10px; }
  .dash-row__who { flex-direction: row; align-items: baseline; gap: var(--space-4); }
  .dash-tools { gap: var(--space-3); }
  /* 宽屏：「需要你留意」是人像下方的小面板 */
  .attention-pop.qz-scrim { align-items: flex-start; justify-content: flex-end; padding: 76px 40px 0 0; background: none; }
  .attention-pop .qz-sheet { width: 360px; max-height: 70vh; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
  .attention-pop .qz-sheet__grip { display: none; }
}


/* 生命故事轨迹图（QZ-132，B 的画板 https://claude.ai/artifact/XRhK5sBCfzJfBN5SXPBrvb）：顶上一条「草稿」、三个标签带保存状态、记录 / 底稿 / 轨迹图。
   图本身的颜色在 gt-draw.js（画在 SVG 的 style 里，日间 / 夜间跟主题，导出白底）；这里只用 token */
.gt-page { gap: var(--space-4); }
.gt-strip { display: flex; align-items: center; gap: var(--space-2); padding: 6px var(--space-3); border-radius: var(--radius-md); background: var(--color-bg-sunken); color: var(--color-text-secondary); font-size: var(--font-size-200); }
.gt-strip .qz-icon { flex: none; }
.gt-tabs { display: flex; align-items: flex-end; gap: var(--space-1); border-bottom: 1px solid var(--color-border); }
.gt-tab { display: inline-flex; align-items: center; min-height: var(--size-tap); padding: 0 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--color-text-secondary); text-decoration: none; }
.gt-tab.is-on { border-bottom-color: var(--color-brand); color: var(--color-text-primary); font-weight: 500; }
.gt-save { margin-left: auto; align-self: center; padding-bottom: var(--space-1); color: var(--color-text-tertiary); font-size: var(--font-size-100); }
.gt-save.is-dirty { color: var(--color-text-secondary); }
.gt-save-notice:empty { display: none; }
.gt-notice .qz-icon { flex: none; margin-top: 2px; }
.gt-row { display: flex; align-items: center; gap: var(--space-2); }
.gt-row--wrap { flex-wrap: wrap; }
.gt-actions > .qz-btn { flex: 1 1 140px; padding-inline: var(--space-3); white-space: nowrap; }
.gt-row--wrap > .tiny.grow { flex: 1 1 180px; }
.gt-row > .grow { flex: 1 1 0; min-width: 0; }
.gt-check { display: flex; align-items: flex-start; gap: 10px; min-height: var(--size-tap); padding: var(--space-1) 0; cursor: pointer; }
.gt-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--color-brand); }
.gt-paste { min-height: 150px; }
.gt-paste.is-error { border-color: var(--color-danger); }
.gt-count { margin-left: auto; white-space: nowrap; font-family: var(--font-numeric); }
.gt-count.is-error, .gt-over { color: var(--color-danger); }
.gt-over { margin: 0; font-size: var(--font-size-200); }
.gt-cost { margin: 0; }
.gt-row.tiny { justify-content: space-between; }
.gt-hyp { color: var(--color-text-tertiary); }
/* 底稿 */
.gt-form { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; margin: 0; padding: 0; border: 0; }
.gt-item { padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-raised); }
.gt-item__head { display: flex; align-items: center; gap: var(--space-1); color: var(--color-text-secondary); font-size: var(--font-size-200); }
.gt-item__head > span { flex: 1; }
.gt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2); }
.gt-grid--time { grid-template-columns: 7.5em minmax(0, 1fr); }
.gt-field .qz-textarea { min-height: var(--size-control); padding: 10px var(--space-4); border-radius: var(--radius-lg); resize: vertical; field-sizing: content; }
.gt-field { gap: var(--space-1); min-width: 0; }
.gt-field .qz-input, .gt-field .qz-textarea { font-size: var(--font-size-300); }
.gt-rows { display: flex; flex-direction: column; }
.gt-row-item { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-1) 0; border-bottom: 1px solid var(--color-border); }
.gt-row-item:last-child { border-bottom: 0; }
.gt-row-item.is-open { padding-bottom: var(--space-3); }
.gt-line { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--size-tap); padding: var(--space-1) 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gt-line .grow { flex: 1; min-width: 0; }
.gt-line .qz-icon { flex: none; color: var(--color-text-secondary); }
.gt-mini { flex: none; width: 18px; height: 18px; box-sizing: border-box; border: 1.5px solid var(--color-text-primary); background: var(--color-bg-surface); }
.gt-mini--F { border-radius: 50%; }
.gt-mini--U { width: 15px; height: 15px; margin: 0 1.5px; transform: rotate(45deg); }
.gt-mini.is-client { border-width: 3px; }
.gt-mini.is-deceased { background: repeating-linear-gradient(45deg, var(--color-text-primary) 0 1px, transparent 1px 4px); }
.gt-mini.is-obstacle { background: var(--color-text-primary); }
.gt-danger { color: var(--color-danger); }
.gt-list { display: flex; flex-direction: column; }
.gt-list__row { display: flex; align-items: center; gap: var(--space-1); border-bottom: 1px solid var(--color-border); }
.gt-list__row:last-child { border-bottom: 0; }
.gt-list__row .qz-input { flex: 1; margin: var(--space-1) 0; }
.gt-list__text { flex: 1; min-height: var(--size-tap); padding: var(--space-2) 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: text; }
/* 轨迹图：按原尺寸画在细边圆角框里，比屏宽的左右滑动；两边有内容时边上淡出 */
.gt-complaint, .gt-belief { margin: 0; color: var(--color-text-primary); }
.gt-complaint { font-size: 18px; line-height: 1.6; }
.gt-belief { font-size: 16px; line-height: 1.7; }
.gt-fig { position: relative; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-surface); }
.gt-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.gt-scroll:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.gt-fig::before, .gt-fig::after { content: ""; position: absolute; top: 0; bottom: 0; width: 28px; pointer-events: none; opacity: 0; transition: opacity var(--duration-fast) var(--ease-standard); }
.gt-fig::before { left: 0; background: linear-gradient(90deg, var(--color-bg-surface), transparent); }
.gt-fig::after { right: 0; background: linear-gradient(270deg, var(--color-bg-surface), transparent); }
.gt-fig.has-left::before, .gt-fig.has-right::after { opacity: 1; }
/* 图比框窄（宽屏常见）时不写「左右滑动看全图」 */
.gt-swipe { display: none; }
.gt-fig.can-scroll + .gt-row .gt-swipe { display: inline; }
.gt-figure { width: max-content; min-width: 100%; }
.gt-figure > svg { display: block; margin: 0 auto; }
.gt-figure--drag .gt-node { cursor: grab; touch-action: none; }
.gt-figure.is-dragging, .gt-figure.is-dragging .gt-node { cursor: grabbing; }
.gt-timeline { display: flex; flex-direction: column; }
.gt-timeline__item { display: flex; flex-direction: column; gap: var(--space-1); padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.gt-timeline__item:last-child { border-bottom: 0; }
.gt-time { color: var(--color-text-tertiary); font-size: var(--font-size-100); font-variant-numeric: tabular-nums; }
.gt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gt-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: var(--radius-full); background: var(--color-bg-sunken); color: var(--color-text-secondary); font-size: var(--font-size-100); }
.gt-chip--trauma { background: var(--color-brand-soft); color: var(--color-on-brand-soft); }
.gt-look { color: var(--color-brand); font-size: var(--font-size-200); }
@media (min-width: 960px) {
  .gt-page.narrow { max-width: 760px; }
}
/* 打印：A4 横向，一页图一页表（只在点「打印」时出现） */
.gt-print { display: none; }
@page gt-landscape {
  size: A4 landscape;
  margin: 12mm;
  @bottom-left { content: "草稿 · 由 AI 整理，需疗愈师核对"; color: var(--color-text-tertiary); font-size: 9pt; }
  @bottom-right { content: "第 " counter(page) " 页"; color: var(--color-text-tertiary); font-size: 9pt; }
}
@media print {
  body.is-printing-gt > :not(.gt-print) { display: none !important; }
  body.is-printing-gt .gt-print { display: block; color: var(--color-text-primary); }
  .gt-print__page { page: gt-landscape; break-after: page; }
  .gt-print__page:last-child { break-after: auto; }
  .gt-print__figure { display: flex; align-items: center; justify-content: center; height: 180mm; }
  .gt-print__figure > svg { width: 100%; height: 180mm; }
  .gt-print__table { display: block; columns: 2; column-gap: 10mm; font-size: 10pt; }
  .gt-print__table h1 { column-span: all; margin: 0 0 2mm; font-size: 14pt; }
  .gt-print__notice { column-span: all; margin: 0 0 4mm; color: var(--color-text-secondary); }
  .gt-print__complaint { column-span: all; margin: 0 0 4mm; }
  .gt-print__table .qz-card { break-inside: avoid; margin-bottom: 4mm; padding: 0; border: 0; box-shadow: none; background: none; }
}

/* ---------- 生命之树：空白模板、代填、化名案例（QZ-138，B 的画板 1–12） ---------- */
.lt-pair > .qz-btn { flex: 1 1 0; }
.lt-link { display: inline-flex; align-items: center; gap: var(--space-2); align-self: flex-start; min-height: 44px; color: var(--color-brand); font-size: var(--font-size-200); text-decoration: none; }
.lt-link > svg { flex: none; }
.lt-steps { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--font-size-200); }
.lt-paper-page { display: flex; flex-direction: column; gap: var(--space-4); width: 100%; max-width: 794px; margin-inline: auto; }
.lt-bar { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
/* 模板纸面：A4 竖版的样子，宋体，白底黑字；每问下面留横线 */
.lt-sheet { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-8) var(--space-6); border-radius: var(--radius-lg); background: var(--color-bg-raised); box-shadow: var(--shadow-sm); color: var(--color-text-primary); font-family: "QZ Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif; font-size: var(--font-size-200); line-height: 1.75; }
.lt-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.lt-sheet__head h1 { margin: 0; font-size: var(--font-size-600); font-weight: var(--font-weight-regular); letter-spacing: .12em; }
.lt-sheet__brand { flex: none; color: var(--color-text-secondary); font-family: var(--font-sans); font-size: var(--font-size-100); }
.lt-note { padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); font-family: var(--font-sans); }
.lt-note p { margin: 0; }
.lt-block, .lt-keep { display: flex; flex-direction: column; gap: var(--space-2); }
.lt-block h2 { margin: var(--space-4) 0 0; padding-bottom: var(--space-1); border-bottom: 1px solid var(--color-text-primary); font-size: var(--font-size-400); font-weight: var(--font-weight-regular); letter-spacing: .1em; }
.lt-sub { margin: 0; color: var(--color-text-secondary); font-family: var(--font-sans); font-size: var(--font-size-100); }
.lt-q { display: flex; flex-direction: column; margin-top: var(--space-2); }
.lt-q b { font-weight: var(--font-weight-medium, 500); }
.lt-lines { display: flex; flex-direction: column; }
.lt-line { display: block; height: 28px; border-bottom: 1px solid var(--color-border-strong); }
.lt-rel { width: 100%; border-collapse: collapse; }
.lt-rel th, .lt-rel td { padding: var(--space-2) var(--space-1); border-bottom: 1px solid var(--color-border-strong); text-align: left; font-weight: var(--font-weight-regular); vertical-align: middle; }
.lt-rel th { color: var(--color-text-secondary); font-family: var(--font-sans); font-size: var(--font-size-100); }
.lt-rel td:nth-child(3) { width: 34%; }
.lt-circles { display: inline-flex; gap: var(--space-1); font-family: var(--font-sans); }
.lt-circles i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid var(--color-text-primary); border-radius: 50%; font-size: 11px; font-style: normal; }
.lt-box { text-align: center; }
.lt-sheet__foot { display: flex; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--color-border); color: var(--color-text-tertiary); font-family: var(--font-sans); font-size: var(--font-size-100); }
@media (max-width: 599px) {
  .lt-sheet { padding: var(--space-6) var(--space-4); }
  .lt-rel th:nth-child(2), .lt-rel td:nth-child(2) { white-space: nowrap; }
  .lt-circles { gap: 2px; }
  .lt-circles i { width: 18px; height: 18px; }
}
/* 化名案例：两个标签、填的表一问一答 */
.lt-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--color-border); }
.lt-tab { min-height: 44px; padding: 0 var(--space-4); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--color-text-secondary); font: inherit; cursor: pointer; }
.lt-tab.is-on { border-bottom-color: var(--color-brand); color: var(--color-text-primary); font-weight: var(--font-weight-medium, 500); }
.lt-answer { display: flex; flex-direction: column; gap: 2px; }
.lt-answer__q { color: var(--color-text-secondary); font-size: var(--font-size-200); }
.lt-improve { margin-left: var(--space-2); vertical-align: middle; }
.lt-unzoom { display: none; }
.lt-print-only { display: none; }
/* 放大看：只留正文、字放大，给案主当面看 */
body.lt-zoom #topbar, body.lt-zoom .qz-bottomnav, body.lt-zoom .lt-bar-note, body.lt-zoom .lt-tip { display: none !important; }
body.lt-zoom .lt-case-paper { font-size: var(--font-size-400); line-height: 1.9; }
body.lt-zoom .lt-case-paper .tree-text, body.lt-zoom .lt-case-paper p, body.lt-zoom .lt-case-paper li, body.lt-zoom .lt-case-paper td { font-size: var(--font-size-400); }
body.lt-zoom .lt-unzoom { display: inline-flex; position: fixed; background: var(--color-bg-raised); box-shadow: var(--shadow-sm); right: var(--space-4); bottom: calc(var(--space-4) + env(safe-area-inset-bottom)); z-index: 5; }
/* 代填：每块一张卡，点标题展开收起；七段每段六个圆钮 + 一两句 + 最想改善；底部起草按钮贴底 */
.lt-block-head { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lt-block-card > p { margin: 0; }
.lt-progress-row { display: flex; justify-content: space-between; gap: var(--space-3); }
.lt-prog { position: relative; height: 4px; border-radius: 2px; background: var(--color-border); overflow: hidden; }
.lt-prog > i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--color-brand); }
.lt-area { min-height: 0; resize: vertical; }
.lt-seg { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.lt-seg__item { min-width: 40px; min-height: 40px; padding: 0 var(--space-3); border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-full); background: none; color: var(--color-text-primary); font: inherit; font-size: var(--font-size-200); cursor: pointer; }
.lt-seg__item.is-on { border-color: var(--color-brand); background: var(--color-brand-soft); color: var(--color-on-brand-soft); font-weight: var(--font-weight-medium, 500); }
.lt-rel-edit .lt-seg { flex-wrap: nowrap; gap: 6px; }
.lt-rel-edit .lt-seg__item { flex: 1 1 0; min-width: 0; padding: 0; }
.lt-rel-edit { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-raised); }
.lt-rel-edit__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); color: var(--color-text-secondary); font-size: var(--font-size-200); }
.lt-improve-check { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; }
.lt-improve-check input { width: 20px; height: 20px; accent-color: var(--color-brand); }
.lt-dock { position: sticky; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) 0 var(--space-4); border-top: 1px solid var(--color-border); background: var(--color-bg-page); }
/* 手机上底部导航也是贴底的，起草条贴在导航上面 */
@media (max-width: 959px) {
  .lt-dock { bottom: calc(var(--size-bottomnav) + env(safe-area-inset-bottom, 0px)); }
}
/* 打印：模板 A4 竖版，右上角品牌名，页脚「生命之树 · 采集表」和「第 n 页 / 共 m 页」；案例页脚「示例报告 · AI 辅助整理，老师审阅」 */
@page lt-template {
  size: A4;
  margin: 18mm 18mm 18mm;
  @top-right { content: var(--lt-brand, ""); color: var(--color-text-tertiary); font-size: 9pt; }
  @bottom-left { content: "生命之树 · 采集表"; color: var(--color-text-tertiary); font-size: 9pt; }
  @bottom-right { content: "第 " counter(page) " 页 / 共 " counter(pages) " 页"; color: var(--color-text-tertiary); font-size: 9pt; }
}
@page lt-case {
  size: A4;
  margin: 18mm 16mm 20mm;
  @bottom-left { content: "示例报告 · AI 辅助整理，老师审阅"; color: var(--color-text-tertiary); font-size: 9pt; }
  @bottom-right { content: "化名案例 · 第 " counter(page) " 页"; color: var(--color-text-tertiary); font-size: 9pt; }
}
@media print {
  body.lt-paper-mode .qz-bottomnav, body.lt-paper-mode #topbar, body.lt-paper-mode .lt-bar, body.lt-paper-mode .lt-tip, body.lt-paper-mode .lt-bar-note,
  body.lt-paper-mode .lt-unzoom, body.lt-paper-mode #toast, body.lt-paper-mode #layer { display: none !important; }
  body.lt-paper-mode .qz-shell, body.lt-paper-mode .qz-shell__main { display: block; min-height: 0; }
  body.lt-paper-mode .qz-shell__body { display: block; padding: 0; }
  body.lt-paper-mode .qz-page--glow { background: none; }
  body.lt-paper-mode .lt-paper-page { max-width: none; }
  .lt-sheet { page: lt-template; padding: 0; border-radius: 0; background: none; box-shadow: none; font-size: 10.5pt; }
  .lt-sheet__brand, .lt-sheet__foot { display: none; }
  .lt-block h2 { break-after: avoid; }
  .lt-keep { break-inside: avoid; }
  .lt-q, .lt-rel tr { break-inside: avoid; }
  .lt-line { height: 9mm; }
  .lt-print-only { display: block; }
  .lt-case-paper { page: lt-case; padding: 0; border-radius: 0; background: none; box-shadow: none; gap: 8mm; }
  .lt-case-paper .tree-paper__foot { display: none; }
  .lt-case-paper .tree-paper__section h2 { break-after: avoid; }
  .lt-answer, .lt-case-paper .tree-table tr, .lt-case-paper .tree-props li { break-inside: avoid; }
}

/* 案主页（QZ-150，B 的画板 1–9）：基础档案 → 来源 → 会见 / 个案记录 → 全案计划 → AI 对话。颜色只用 token。
   手机一列；电脑（≥960）档案和来源并排，记录和轨迹图 / 生命之树小卡 2 : 1，其余整行 */
.cp-top { position: sticky; top: var(--size-topbar); z-index: var(--z-sticky); display: flex; flex-direction: column; gap: var(--space-2); margin: calc(var(--space-3) * -1) calc(var(--space-5) * -1) 0; padding: var(--space-2) var(--space-5); background: var(--color-veil); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.cp-anchors { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; }
.cp-anchors::-webkit-scrollbar { display: none; }
.cp-anchor { flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-full); color: var(--color-text-secondary); font-size: var(--font-size-200); text-decoration: none; }
.cp-anchor[aria-current] { border-color: transparent; background: var(--color-brand-soft); color: var(--color-on-brand-soft); }
/* 需要你留意：一行小字 + 暖赭小圆点（同工作台人像上的点），不用告警色 */
.cp-pointer { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: var(--size-tap); padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-md); background: var(--color-bg-sunken); color: var(--color-text-secondary); font: inherit; font-size: var(--font-size-200); text-align: left; cursor: pointer; }
.cp-pointer__dot { flex: none; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-tea); }
.cp-pointer__text { flex: 1; min-width: 0; }
.cp-pointer__go { flex: none; color: var(--color-brand); }
.cp-page { display: flex; flex-direction: column; gap: var(--space-8); }
.cp-sec { display: flex; flex-direction: column; gap: var(--space-3); scroll-margin-top: 140px; }
.cp-sec__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 36px; }
.cp-sec__title { margin: 0; font-size: var(--font-size-400); font-weight: var(--font-weight-regular); }
.cp-act { min-height: 36px; padding-inline: var(--space-2); }
.qz-card.cp-kv, .qz-card.cp-recs { padding: var(--space-1) var(--space-4); }
.cp-kv__row { display: flex; align-items: baseline; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.cp-kv__row:last-child { border-bottom: 0; }
.cp-kv__key { flex: none; width: 72px; color: var(--color-text-secondary); font-size: var(--font-size-200); }
.cp-kv__val { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cp-kv__row > .qz-btn { align-self: center; }
.cp-empty .muted { margin: 0; }
.cp-rec { display: flex; flex-direction: column; gap: var(--space-1); width: 100%; padding: var(--space-3) 0; border: 0; border-bottom: 1px solid var(--color-border); background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.cp-rec:last-child, .cp-rec:has(+ .cp-more) { border-bottom: 0; }
.cp-rec--static { cursor: default; }
.cp-rec__meta { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-tertiary); font-size: var(--font-size-100); }
.cp-rec__title { font-size: var(--font-size-300); }
.cp-rec__body { display: -webkit-box; overflow: hidden; color: var(--color-text-secondary); font-size: 14px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cp-recs--all .cp-rec__body { display: block; white-space: pre-line; }
.cp-more { display: inline-flex; align-items: center; min-height: var(--size-tap); color: var(--color-brand); font-size: var(--font-size-200); text-decoration: none; }
.cp-rec-row { display: flex; flex-direction: column; gap: var(--space-3); }
.cp-rec-main { min-width: 0; }
.cp-minis { order: -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.cp-mini { display: flex; flex-direction: column; gap: var(--space-1); min-height: 64px; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg-surface); color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.cp-mini--soon { border-style: dashed; border-color: var(--color-border-strong); }
.cp-mini__title { font-size: 14px; font-weight: var(--font-weight-regular); }
.cp-clamp { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.cp-view-title { font-size: var(--font-size-300); }
.cp-pair { display: flex; flex-direction: column; gap: var(--space-8); }
.cp-extras { padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
/* 手机记录先列 3 条：第 4、5 条只在电脑上；「全部 n 条」只差这两条时只在手机上 */
@media (max-width: 959px) {
  .cp-rec--desk { display: none; }
  .cp-rec:nth-child(3):has(~ .cp-rec--desk) { border-bottom: 0; }
}
@media (min-width: 960px) {
  /* 电脑地方够，跳转标签不跟着滚，也不铺底色（铺了在晨光、黄昏背景上会多出一条色块） */
  .cp-top { position: static; margin: calc(var(--space-2) * -1) 0 0; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
  .cp-rec-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
  .cp-minis { order: 0; grid-template-columns: minmax(0, 1fr); }
  .cp-more--phone { display: none; }
}

/* 「我的 · 案主聊天额度」（QZ-150c）：从案主列表点「额度用完」过来滚到这里，标题不被顶栏挡住 */
.me-quota { scroll-margin-top: calc(var(--size-topbar) + var(--space-3)); }
.me-quota:focus { outline: none; }

/* 套系和订单（QZ-151，B 的画板 1–6）：一单一行，名称和实收一行，下面哪天买、用了几次、用完了、退款，多次的单一排小圆点 */
.qz-card.od-list { padding: var(--space-1) var(--space-4); }
.od-row { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); color: inherit; text-decoration: none; }
.od-row:last-child { border-bottom: 0; }
.od-row__top { display: flex; align-items: baseline; gap: var(--space-2); }
.od-row__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.od-row__money, .pf-num { font-family: var(--font-numeric); font-variant-numeric: tabular-nums; white-space: nowrap; }
.od-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); color: var(--color-text-tertiary); font-size: var(--font-size-100); }
.od-dots { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.od-dots i { width: 12px; height: 12px; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-full); box-sizing: border-box; }
.od-dots i.is-on { border-color: var(--color-brand); background: var(--color-brand); }
.od-who--gone { color: var(--color-text-tertiary); }
.od-choice { align-items: flex-start; padding-block: var(--space-3); }
.od-choice input { margin-top: 2px; }
.od-none { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); }
.od-refund { display: flex; align-items: center; gap: var(--space-2); }
.od-refund .qz-btn { min-height: 32px; padding-inline: var(--space-2); }
.od-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-1); }
.od-sub .cp-more { min-height: 0; }

/* 业绩（QZ-151，画板 10–15）：进度条、两张大数字卡、上下月 */
.pf-progress { display: flex; flex-direction: column; gap: var(--space-2); }
.pf-progress__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); }
.pf-progress__line > .pf-num { margin-left: auto; }
.pf-bar { position: relative; height: 8px; overflow: hidden; border-radius: var(--radius-full); background: var(--color-bg-sunken); }
.pf-bar i { position: absolute; inset: 0 auto 0 0; border-radius: var(--radius-full); background: var(--color-brand); }
.pf-refund { padding: 0 var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-full); color: var(--color-text-secondary); font-size: var(--font-size-100); white-space: nowrap; }
.pf-dash .muted { margin: 0; }
.pf-month { display: flex; align-items: center; justify-content: center; gap: var(--space-3); }
.pf-month__label { margin: 0; min-width: 9em; font-size: var(--font-size-400); font-weight: var(--font-weight-regular); text-align: center; }
.pf-next svg { transform: scaleX(-1); }
.pf-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.pf-big__num { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-family: var(--font-numeric); font-size: var(--font-size-700); font-weight: var(--font-weight-light); line-height: 1.2; font-variant-numeric: tabular-nums; }
.pf-lists { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
@media (min-width: 960px) {
  .pf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-lists { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
}

/* 档期（QZ-152，B 的画板 1–12）：月视图 + 当天；电脑左边月、右边天。颜色只用 token */
.sch-bar { position: relative; display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--size-tap); }
.sch-bar__title { margin: 0; min-width: 8em; font-size: var(--font-size-400); font-weight: var(--font-weight-regular); text-align: center; }
.sch-bar__sum { display: flex; flex-direction: column; align-items: center; min-width: 10em; text-align: center; }
.sch-bar__sum b { font-weight: var(--font-weight-regular); }
.sch-bar__today { position: absolute; right: 0; }
.sch-next svg { transform: scaleX(-1); }
.sch-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sch-grid__wd { padding: var(--space-1) 0; color: var(--color-text-tertiary); font-size: var(--font-size-100); text-align: center; }
.sch-sk { height: 64px; margin: 2px; border-radius: var(--radius-sm); }
.sch-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; min-height: 76px; padding: var(--space-1) 2px 6px; overflow: hidden; border-top: 1px solid var(--color-border); color: inherit; text-decoration: none; }
.sch-cell__d { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--radius-full); font-family: var(--font-numeric); font-size: var(--font-size-200); font-variant-numeric: tabular-nums; }
.sch-cell.is-out .sch-cell__d { color: var(--color-text-disabled); }
.sch-cell.is-past .sch-cell__d { color: var(--color-text-secondary); }
.sch-cell.is-now .sch-cell__d { background: var(--color-brand); color: var(--color-on-brand); }
.sch-cell.is-cur { border-radius: var(--radius-md); box-shadow: inset 0 0 0 1.5px var(--color-brand); }
.sch-cell__nm { max-width: 100%; padding: 0 var(--space-1); overflow: hidden; border-radius: 6px; background: var(--color-brand-soft); color: var(--color-on-brand-soft); font-size: 11px; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; }
.sch-cell__nm.is-done { background: var(--color-bg-sunken); color: var(--color-text-secondary); }
.sch-cell__more, .sch-cell__open { color: var(--color-text-secondary); font-size: 11px; line-height: 14px; }
.sch-cell__open { color: var(--color-text-tertiary); }
.sch-legend { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); color: var(--color-text-secondary); font-size: var(--font-size-100); }
.sch-legend i { display: inline-block; width: 10px; height: 10px; margin-right: var(--space-1); border-radius: 3px; vertical-align: -1px; }
.sch-legend__nm { background: var(--color-brand-soft); }
.sch-legend__open { border: 1px dashed var(--color-border-strong); }
.sch-sl { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.sch-sl__tm { display: flex; flex-direction: column; padding-top: var(--space-3); color: var(--color-text-secondary); font-family: var(--font-numeric); font-size: var(--font-size-200); line-height: 1.3; font-variant-numeric: tabular-nums; }
.sch-sl__tm small { color: var(--color-text-tertiary); font-size: 11px; }
.sch-card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg-surface); }
.sch-card.is-open, .sch-card.is-gone { border-style: dashed; border-color: var(--color-border-strong); background: none; }
.sch-card.is-closed { border-color: transparent; background: var(--color-bg-sunken); color: var(--color-text-secondary); }
.sch-card__open { display: flex; flex-direction: column; gap: var(--space-1); width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sch-card__name { font-size: var(--font-size-300); }
.sch-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); color: var(--color-text-secondary); font-size: var(--font-size-100); }
.sch-card__logged { display: flex; gap: var(--space-1); align-items: flex-start; padding-top: var(--space-2); border-top: 1px solid var(--color-border); color: var(--color-text-secondary); font-size: var(--font-size-200); }
.sch-card__logged .qz-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--color-success); }
.sch-card__todo { color: var(--color-text-primary); font-size: var(--font-size-200); }
.sch-card__acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sch-gone { padding: 0 2px; color: var(--color-text-tertiary); font-size: var(--font-size-100); }
.sch-now { display: flex; align-items: center; gap: var(--space-2); color: var(--color-danger); font-size: 11px; }
.sch-now::after { content: ""; flex: 1; height: 1px; background: var(--color-danger); opacity: .6; }
.sch-head { display: flex; justify-content: flex-end; gap: var(--space-2); }
.sch-desk { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
/* 抽屉：开关一行、每周哪几天、每天的档位、重复几周、改约的空档 */
.sch-switch { display: flex; align-items: center; gap: var(--space-3); min-height: 52px; cursor: pointer; }
.sch-switch__input { flex: none; position: relative; width: 44px; height: 26px; margin: 0; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-full); background: var(--color-bg-sunken); -webkit-appearance: none; appearance: none; cursor: inherit; }
.sch-switch__input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: var(--radius-full); background: var(--color-border-strong); transition: left .15s; }
.sch-switch__input:checked { border-color: var(--color-brand); background: var(--color-brand); }
.sch-switch__input:checked::after { left: 21px; background: var(--color-bg-surface); }
.sch-switch__input:disabled { opacity: .5; }
.sch-switch__input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.sch-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sch-wd__day, .sch-chip { min-height: 40px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: none; color: var(--color-text-primary); font: inherit; font-size: 14px; cursor: pointer; }
.sch-chip { min-width: 64px; padding: 0 var(--space-3); border-radius: var(--radius-full); font-family: var(--font-numeric); font-variant-numeric: tabular-nums; }
.sch-wd__day[aria-pressed="true"], .sch-chip[aria-pressed="true"] { border-color: transparent; background: var(--color-brand-soft); color: var(--color-on-brand-soft); }
.qz-card.sch-times { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4); }
.sch-times__row { display: flex; align-items: center; gap: var(--space-2); }
.sch-times__time { width: 96px; }
.sch-times__min { width: 80px; }
.sch-from { display: flex; align-items: flex-end; gap: var(--space-2); }
.sch-from > .qz-field { flex: 1; }
.sch-weeks { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.sch-step { display: inline-flex; align-items: center; border: 1px solid var(--color-border-strong); border-radius: var(--radius-full); }
.sch-step__n { min-width: 56px; font-weight: var(--font-weight-regular); text-align: center; }
.sch-ctx { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-bg-sunken); color: var(--color-text-secondary); font-size: var(--font-size-200); }
.sch-ctx b { color: var(--color-text-primary); font-size: 14px; font-weight: var(--font-weight-regular); }
.sch-pick { display: flex; flex-direction: column; gap: var(--space-2); }
.sch-pick__opts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sch-people { max-height: 300px; overflow-y: auto; }
.sch-people > * { flex: none; }
.sch-danger .qz-row__title { color: var(--color-danger); }
@media (min-width: 960px) {
  .sch-desk { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-8); align-items: start; }
  .sch-panel { padding-left: var(--space-8); border-left: 1px solid var(--color-border); }
  .sch-month .sch-cell { align-items: stretch; min-height: 118px; padding: 6px var(--space-2) var(--space-2); gap: 3px; }
  .sch-month .sch-cell__d { align-self: flex-start; }
  .sch-month .sch-cell__nm { padding: 0 6px; font-size: var(--font-size-100); line-height: 20px; text-align: left; }
  .sch-month .sch-cell__more, .sch-month .sch-cell__open { padding-left: 6px; font-size: var(--font-size-100); }
}
/* 案主页记录上面一行「下次」+「约下次」（QZ-152 画板 7）：同「需要你留意」那一行的底色 */
.cp-next { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3); border-radius: var(--radius-md); background: var(--color-bg-sunken); font-size: var(--font-size-200); }
.cp-next__text { flex: 1; min-width: 0; color: var(--color-text-secondary); text-decoration: none; }
