/* 首杀艺人页 · 第一幕「坐下来说话」的样式：由 cast_site.py 照抄 tools/cast_site/talk.css */
/* 首杀 · 「坐下来说话」这一幕（talk.css，11-15 重做成一块面板；底子是 Fable 设计员 fable-homes 的稿）
   一块面板就是一个场景：电脑上她站在左边（全身立绘，表情跟着回话换），右边顶上一条 HUD（这本玩的是什么、离下一步还差几、名次、一把小锁），中间对话，底下一个输入框；
   本子是从右边（手机上从底下）拉出来的抽屉。手机竖着拿时一栏：她缩成顶上的半身头像。
   外面要给它：tokens.css、firstblood.css、home.css（说话和本子的底子；艺人页的 cast.css 里就有）和原样的 /home/home-fx.css（记一笔的即时反馈）。真输入框、窄屏那些原来在 /home/home-live.css，搬进了下面 ⓪。
   全部挂在 .tk 底下，不碰页面别的幕。 */
/* ⓪ 真输入框、对话、窄屏的底子：原样搬自糖糖家的 /home/home-live.css（Fable bf23323）。那份不再引用：它有几条挂在整页的 .hm 上，
   放进艺人页会改到别的幕（实测：表情贴纸 .cs-say 点不动也没了悬停、名单条 .cs-castbar 变成横向滚动、档案卡内边距、手机上数据格子 .cs-stat 变窄，
   还有整页的焦点框和减少动态效果）。所以只搬管这一幕的规则，选择器和权重原样（现在排在 home-fx.css 后面，两边没有改同一属性的，先后换了不影响）；不认这一幕的几条（[hidden]、.sr-only、textarea、按钮禁用）收进 .tk 底下，
   改别的幕的那几条（.cs-*、.hm-how、.hm-thread、.hm-table、整页焦点框、整页减少动态）不搬。老糖糖家那页撤下以后 home-live.css 就没人用了。 */
.tk [hidden], .tk-chap [hidden] { display: none !important; }
.tk .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hm .hm-talk { scroll-margin-top: 18px; }
.hm .hm-chat__list { max-height: 640px; overflow-y: auto; overscroll-behavior: contain; }
.hm .hm-chat__head { flex-wrap: wrap; }
.hm .hm-mode-hint { max-width: 250px; }
.hm #hm-status { margin: 0; padding: 10px 16px; min-height: 34px; overflow-wrap: anywhere; }
.hm .hm-input { height: auto; min-height: 48px; border-radius: 16px; align-items: center; padding: 6px; flex-wrap: wrap; }
.tk textarea { flex: 1 1 120px; min-width: 0; width: 100%; resize: vertical; max-height: 160px; min-height: 38px; padding: 8px; border: 0; background: transparent; color: var(--fb-ink); font: 400 14px/22px var(--font-body); }
.hm .hm-mode button { border: 0; cursor: pointer; }
.hm .hm-chips button { background: var(--fb-surface-1); cursor: pointer; }
.tk button:disabled { opacity: .48; cursor: not-allowed; }
.hm .hm-account { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hm .hm-account label { font: 400 12px/20px var(--font-body); color: var(--fb-ink-2); }
.hm .hm-account input { accent-color: var(--her); }
.hm .hm-msg { width: 100%; overflow-wrap: anywhere; }
.hm .hm-msg__bubble { min-width: 0; white-space: pre-wrap; }
.hm .hm-msg--me .hm-msg__name { font-size: 11px; color: var(--fb-ink-3); }
.hm .hm-msg--quiet .hm-msg__note { grid-row: 1; justify-self: stretch; text-align: right; }
.hm .hm-msg--me.hm-msg--quiet .hm-msg__bubble { grid-row: 2; }
.hm .hm-msg--her.hm-msg--quiet .hm-msg__face { grid-row: 2; }
.hm .hm-msg--her.hm-msg--quiet .hm-msg__bubble { grid-row: 2; }
.hm .hm-msg--quiet .hm-msg__bubble { border-style: dashed; }
.hm .hm-chat.is-quiet .hm-chat__list { background: repeating-linear-gradient(135deg, transparent 0 14px, #ffffff05 14px 16px); }
.hm .hm-react { justify-self: end; }
.hm .hm-mode-hint, .hm .hm-quota { line-height: 20px; }
.hm .hm-quota { flex-wrap: wrap; }
.hm .hm-quota #hm-reset { font-size: 11px; }
.hm .hm-entry__text { white-space: pre-wrap; }
.hm .hm-book { align-content: start; }
.hm .hm-rank ol { list-style: none; padding: 0; display: grid; gap: 5px; }
.hm .hm-entries { max-height: 480px; overflow: auto; }
.hm .hm-entry__meta { overflow-wrap: anywhere; }
.hm.cs--m .hm-two { grid-template-columns: 1fr; }
.hm.cs--m .hm-chat__list { max-height: 480px; min-height: 130px; }
.hm.cs--m .hm-book { padding: 18px 16px 18px 32px; }
.hm.cs--m .hm-chat__head .hm-mode-hint { margin: 0; max-width: none; width: 100%; }
.hm.cs--m .hm-input .hm-mode { order: 0; }
.hm.cs--m .hm-input textarea { order: 2; flex-basis: 100%; }
.hm.cs--m .hm-input #hm-send { margin-left: auto; order: 1; }
.hm .hm-entries { overflow-x: hidden; overflow-y: auto; }
.hm:not(.cs--m) .hm-book { display: flex; flex-direction: column; gap: 14px; }
.hm:not(.cs--m) .hm-book > #hm-book:has(> .hm-entries) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.hm:not(.cs--m) .hm-entries { flex: 1 1 0; min-height: 0; max-height: none; }

/* 不在艺人页里（外面没有艺人页的框）：自己定她的颜色。艺人页里这几个由 .cs-profile 定，这里不覆盖 */
.tk--solo { --her: var(--a); --her-glow: color-mix(in oklch, var(--a) 72%, #ffffff); --her-ink: var(--a-ink, var(--fb-night)); --her-fill: var(--her); }
/* 名牌色很深的两位（陆总、玄机）：色块、选中的键用浓底那一档提亮过的颜色（--her-wash），不然深色压在深底上看不见 */
.cs-profile { --her-fill: var(--her-wash, var(--her)); }
.tk .hm-tabs button[aria-pressed="true"], .tk .hm-mode button[aria-pressed="true"] { background: var(--her-fill, var(--her)); }
.cs-profile .tk-chap .cs-chap__no { background: var(--her-fill, var(--her)); }
.cs-profile.fb-a-luzong .tk-chap .cs-chap__go.fb-btn--join, .cs-profile.fb-a-xuanji .tk-chap .cs-chap__go.fb-btn--join { --face: var(--her-fill); --edge: var(--her-glow); }
.tk { scroll-margin-top: 16px; --tk-shell: 0px; }
/* 顶上钉着全站导航（往下翻就是细条 --fb-shell-slim，电脑 44px、手机 52px）：面板让出它那一条，标题不被盖（11-15 老板截图 /home/tangtang#talk；main c34f127） */
html.has-fb-shell .tk { --tk-shell: var(--fb-shell-slim, 44px); scroll-margin-top: calc(var(--tk-shell) + 8px); }
html.has-fb-shell .tk .tk-panel { scroll-margin-top: calc(var(--tk-shell) + 8px); }

/* ───────── ① 面板：一块就是一个场景（她、她说的话、你一个输入框）。卡片的样子照艺人页那套：她的颜色、圆角、底下一道深色的边 ───────── */
.tk .tk-panel { position: relative; display: grid; grid-template-columns: minmax(200px, 30%) minmax(0, 1fr); align-items: stretch; gap: 0; margin: 0;
  height: clamp(var(--tk-min, 360px), calc(var(--V, 100dvh) - var(--S, 0px) - var(--tk-gap, 32px) - var(--tk-shell)), 760px);
  border: 1px solid var(--card-line, color-mix(in srgb, var(--her) 45%, var(--fb-line))); border-radius: var(--fb-radius-lg); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--her) 34%, transparent), transparent 60%), linear-gradient(180deg, color-mix(in srgb, var(--her) 12%, var(--card, var(--fb-surface-1))), var(--card, var(--fb-surface-1)) 50%);
  box-shadow: 0 5px 0 var(--f-deep, rgba(0,0,0,.45)); }
/* 她：电脑上站在左边，全身立绘贴着面板底；表情跟着回话换（换的那一下淡一下） */
.tk .tk-fig { position: relative; margin: 0; min-width: 0; overflow: hidden; background: radial-gradient(70% 55% at 50% 92%, color-mix(in srgb, var(--her) 46%, transparent), transparent 72%); }
.tk .tk-fig::after { content: ""; position: absolute; inset: auto 0 0; height: 18%; background: linear-gradient(0deg, color-mix(in srgb, var(--her) 22%, var(--fb-night)), transparent); pointer-events: none; }
/* 全身立绘是同一张画布（960×1260、按身高统一比例画的）。量过 17 位所有样子：人最高顶到画布 8.7%（南风），脚在 98.5%。
   放大到 122%、往上提 8%：最高的那位头顶还留 2% 多，个子小的也站得够大（视觉小说那样）；脚下那一截（约 12%）淡进底下的渐变 */
.tk .tk-fig img { position: absolute; left: 50%; top: -8%; height: 122%; width: auto; max-width: none; translate: -50% 0; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); transition: opacity .14s ease-out; user-select: none; }
.tk .tk-fig img.is-swap { opacity: .2; }
/* 右边：顶上一条（她是谁 + HUD），中间对话，底下一个输入框 */
.tk .tk-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 0; border-left: 1px solid color-mix(in srgb, var(--her) 22%, var(--fb-line)); border-radius: 0; background: color-mix(in srgb, var(--fb-night) 55%, transparent); overflow: hidden; }
.tk .tk-top { flex: none; display: flex; align-items: center; gap: 10px 12px; min-width: 0; padding: 10px 12px; border-bottom: 1px solid color-mix(in srgb, var(--her) 18%, var(--fb-line)); }
.tk .tk-who { flex: none; display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 34%; }
.tk .tk-bust { display: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: var(--her); box-shadow: 0 0 0 2px var(--fb-night), 0 0 0 3px var(--her); }
.tk .tk-who__t { display: grid; min-width: 0; }
.tk .tk-who__t > b { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 24px; letter-spacing: .04em; color: var(--fb-ink); white-space: nowrap; }
.tk .tk-thread { min-width: 0; overflow: hidden; color: var(--fb-ink-3); font-size: 12px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.tk a.tk-thread { color: var(--fb-ink-2); }
.tk a.tk-thread .tk-thread__go { color: var(--her-glow); }
@media (hover: hover) { .tk a.tk-thread:hover .tk-thread__go { text-decoration: underline; } }
/* 她这个月的心愿比分（糖糖：家帖回复数 vs 掌柜）：一条小比分，谁多谁的条长；她领先时亮；你当众说一句，她那一格跳一下 */
.tk .tk-wish { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 2px; color: var(--fb-ink-3); font-size: 11px; line-height: 16px; white-space: nowrap; cursor: help; }
.tk .tk-wish__k { flex: none; }
.tk .tk-wish__dot { flex: none; opacity: .6; }
.tk .tk-wish__v { position: relative; display: inline-flex; align-items: baseline; gap: 3px; min-width: 0; padding: 0 5px; border-radius: 3px; overflow: hidden; color: var(--fb-ink-2); }
.tk .tk-wish__v i { position: absolute; inset: auto auto 0 0; width: calc(var(--w, 0) * 1%); height: 2px; background: color-mix(in srgb, var(--a, var(--her)) 80%, white); }
.tk .tk-wish__v b { font-weight: 500; }
.tk .tk-wish__v em { font: 400 13px/16px var(--font-latin); font-style: normal; color: var(--fb-ink); }
.tk .tk-wish.is-ahead .tk-wish__v.is-her { background: color-mix(in srgb, var(--her) 26%, transparent); }
.tk .tk-wish.is-ahead .tk-wish__v.is-her em { color: var(--her-glow); }
.tk .tk-wish.is-bump .tk-wish__v.is-her { animation: tk-bump .6s cubic-bezier(.2, 1.6, .4, 1) 1; }
@keyframes tk-bump { 30% { transform: scale(1.18); background: color-mix(in srgb, var(--her-glow) 40%, transparent); } }
.tk .hm-chat__list { flex: 1 1 0; min-height: 0; max-height: none; padding: 16px 16px 10px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.tk .tk-toasts { position: absolute; z-index: 6; top: 74px; left: calc(30% + (70% / 2)); translate: -50% 0; display: grid; justify-items: center; gap: 6px; width: max-content; max-width: min(92%, 520px); pointer-events: none; }
.tk .tk-toast { padding: 8px 16px; border-radius: var(--fb-radius-pill); border: 1px solid color-mix(in srgb, var(--her-glow) 60%, transparent); background: rgba(10,13,15,.94); color: var(--fb-ink); font: 700 14px/20px var(--font-body); box-shadow: var(--fb-shadow-pop); text-align: center; animation: tk-toast .32s cubic-bezier(.2,.9,.3,1.2) both; }
.tk .tk-toast.is-up { border-color: var(--fb-neon-green); color: var(--fb-neon-green); }
.tk .tk-toast.is-down { border-color: var(--fb-rust); color: var(--fb-rust-text); }
.tk .tk-toast.is-big { padding: 10px 20px; border: 0; background: var(--fb-gold); color: var(--fb-on-gold); font-size: 16px; }
.tk .tk-toast.is-warn { border-color: var(--fb-line-strong); color: var(--fb-ink-2); font-weight: 500; }
.tk .tk-toast.is-out { opacity: 0; translate: 0 -6px; transition: opacity .3s, translate .3s; }
@keyframes tk-toast { from { opacity: 0; translate: 0 10px; scale: .92; } }

/* ───────── ② 对话：她的话一律在左（她就站在左边），你的在右；她用自己的号回在 Discord 家帖的，给一个链接 ───────── */
.tk .hm-msg--her { grid-template-columns: minmax(0, 1fr); max-width: 86%; }
.tk .hm-msg--her .hm-msg__bubble { border-radius: 4px 16px 16px 16px; font-size: 15px; line-height: 25px; }
.tk .hm-msg--me .hm-msg__name { font-size: 11px; line-height: 16px; color: var(--fb-ink-3); }
.tk .tk-hello .hm-msg__note { grid-row: auto; justify-self: start; text-align: left; color: var(--fb-ink-3); font-size: 11px; line-height: 16px; }
.tk .tk-first { color: var(--fb-ink-3); font-size: 13px; line-height: 21px; text-wrap: pretty; }
.tk .tk-dc { justify-self: start; color: var(--her-glow); font-size: 12px; line-height: 18px; text-decoration: none; white-space: nowrap; }
.tk .tk-dc:hover { text-decoration: underline; }
.tk .tk-typing .hm-msg__bubble { display: inline-flex; gap: 5px; padding: 14px 16px; }
.tk .tk-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--her-glow); opacity: .35; animation: tk-dot 1.1s infinite; }
.tk .tk-typing i:nth-child(2) { animation-delay: .18s; } .tk .tk-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes tk-dot { 30% { opacity: 1; translate: 0 -3px; } }
/* 被叫来的那位（@）：接在主人的回话后面，带她的头像、用她自己的颜色，头上一行写明是客人叫来的 */
.tk .tk-calls { display: grid; gap: 14px; }
.tk .hm-msg--her.is-called { grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; row-gap: 3px; }
.tk .hm-msg--her.is-called .hm-msg__face { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 36px; height: 36px; --s: 36px; background: var(--a); box-shadow: 0 0 0 2px var(--fb-night), 0 0 0 3px var(--a); }
.tk .hm-msg--her.is-called .hm-msg__bubble { grid-column: 2; background: color-mix(in srgb, var(--a) 14%, var(--fb-surface-2)); border-color: color-mix(in srgb, var(--a) 42%, var(--fb-line)); }
.tk .hm-msg--her.is-called .tk-dc { grid-column: 2; color: color-mix(in srgb, var(--a) 70%, white); }
.tk .hm-msg--her.is-called.is-off .hm-msg__bubble { background: transparent; border-style: dashed; color: var(--fb-ink-2); font-size: 14px; line-height: 22px; }
.tk .hm-msg--her.is-called.tk-typing i { background: var(--a); }
.tk .tk-called { grid-column: 2; justify-self: start; min-width: 0; color: var(--fb-ink-3); font-size: 12px; line-height: 16px; }
.tk .tk-called b { color: color-mix(in srgb, var(--a) 70%, white); font-weight: 700; }
/* 你那句叫了谁：「@南风」排在你那句前面 */
.tk .tk-at-name { color: color-mix(in srgb, var(--a) 70%, white); font-weight: 700; }
.tk .hm-msg--me .tk-at-name { color: color-mix(in srgb, var(--a) 55%, white); }
/* 被叫来的那位底下一行：她也记了你一笔（照 Discord 里被 @ 时的规矩）、在 Discord 里看、带回去 */
.tk .tk-called__foot { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.tk .tk-called__vd { justify-self: start; }
/* 跑腿：差事卡（她托你的事，在对话的最后）、「带回去给 XX」 */
.tk .tk-errand { display: grid; gap: 6px; margin-top: 6px; padding: 10px 12px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--fb-gold) 70%, transparent); background: color-mix(in srgb, var(--fb-gold) 8%, var(--fb-night)); }
.tk .tk-errand__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.tk .tk-errand__h i { font-style: normal; }
.tk .tk-errand__h b { color: var(--fb-gold); font: 700 14px/20px var(--font-body); }
.tk .tk-errand__h small { margin-left: auto; color: var(--fb-ink-3); font: 400 12px/18px var(--font-latin); }
.tk .tk-errand__ask { color: var(--fb-ink); font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.tk .tk-errand__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tk .tk-errand__tip { color: var(--fb-ink-3); font-size: 12px; line-height: 18px; }
.tk .tk-carry { justify-self: start; --face: var(--fb-gold); --edge: color-mix(in srgb, var(--fb-gold) 70%, white); --key: color-mix(in srgb, var(--fb-gold) 45%, #000); --txt: var(--fb-on-gold); }

/* ───────── ③ 一个输入框：开关在框里，快捷话在框上（框空着、刚进来时才有），规矩和剩几句是两条小提示 ───────── */
.tk .tk-dock { position: relative; flex: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px 12px 12px; border-top: 1px solid color-mix(in srgb, var(--her) 18%, var(--fb-line)); }   /* 一栏、最窄可到 0：输入框那一行按面板的宽排，不按字框自带的宽度把整栏撑出去（手机上多了 @ 键以后会撑出去） */
.tk .tk-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tk .tk-chips::-webkit-scrollbar { display: none; }
.tk .tk-chips button { flex: none; gap: 6px; }
.tk .tk-chip__q { padding: 0 5px; border-radius: 3px; background: var(--fb-surface-3); color: var(--fb-ink-2); font: 500 11px/17px var(--font-body); font-style: normal; }
.tk .tk-input { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 8px; height: auto; min-height: 50px; padding: 6px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--her) 35%, var(--fb-line-strong)); background: var(--fb-night); }
.tk .tk-input:focus-within { border-color: var(--her-glow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--her-glow) 22%, transparent); }
.tk .tk-mode { align-self: center; }
.tk .tk-mode button { height: 30px; padding: 0 11px; }
.tk .tk-input textarea { flex: 1 1 auto; width: auto; min-width: 0; align-self: center; resize: none; min-height: 36px; max-height: 120px; padding: 7px 4px; font-size: 15px; line-height: 22px; }
.tk .tk-input #hm-send { align-self: center; min-width: 52px; height: 36px; }
.tk .hm-chat.is-quiet .tk-input { border-style: dashed; }
.tk .tk-tip { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: calc(100% - 2px); padding: 9px 12px; border-radius: 12px; background: rgba(10,13,15,.96); border: 1px solid color-mix(in srgb, var(--her-glow) 45%, transparent); color: var(--fb-ink-2); font-size: 13px; line-height: 20px; box-shadow: var(--fb-shadow-pop); text-wrap: pretty; animation: tk-toast .22s ease-out both; }
/* @ 叫人：框里的 @ 键（悄悄说时灰着，点了说为什么）、名单（框上面，只在名单里头上下滚）、框里那枚小牌（自己一行，排在字的上面） */
.tk .tk-at { flex: none; align-self: center; width: 32px; height: 32px; padding: 0; border: 1px solid color-mix(in srgb, var(--her) 45%, var(--fb-line-strong)); border-radius: 50%; background: none; color: var(--her-glow); font: 700 16px/30px var(--font-body); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tk .tk-at:hover, .tk .tk-at[aria-expanded="true"] { background: color-mix(in srgb, var(--her) 24%, transparent); }
.tk .tk-at[aria-disabled="true"], .tk .tk-at:disabled { border-style: dashed; color: var(--fb-ink-3); opacity: .5; cursor: not-allowed; }
.tk .tk-tags { display: none; }
.tk .tk-input.has-tag { flex-wrap: wrap; }
.tk .tk-input.has-tag .tk-tags { display: flex; flex: 1 1 100%; order: -1; flex-wrap: wrap; gap: 6px; min-width: 0; padding: 2px 2px 0; }
.tk .tk-input.has-tag textarea, .cs--m .tk .tk-input.has-tag textarea, .tk.cs--m .tk-input.has-tag textarea { flex-basis: 0; }   /* 小牌另起一行以后，字那一行照样一行排下（手机上那条「输入框排一行」的规则更具体，这里跟上） */
.tk .tk-tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; padding: 2px 2px 2px 3px; border-radius: var(--fb-radius-pill); border: 1px solid color-mix(in srgb, var(--a) 65%, transparent); background: color-mix(in srgb, var(--a) 20%, var(--fb-night)); color: var(--fb-ink); }
.tk .hm-input .tk-tag, .tk .hm-input .tk-tag span { flex: none; padding-left: 0; }   /* home.css 给输入框里每个 span 都 flex:1（旧的假输入框留下的）：小牌、头像不跟着撑开 */
.tk .tk-tag b { font: 700 13px/20px var(--font-body); white-space: nowrap; }
.tk .tk-tag small { overflow: hidden; color: var(--fb-ink-3); font-size: 11px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.tk .tk-tag.is-off { border-style: dashed; background: none; }
.tk .tk-tag.is-off .fb-avatar { filter: grayscale(1); opacity: .6; }
.tk .tk-tag.is-off b { color: var(--fb-ink-3); text-decoration: line-through; }
.tk .tk-tag__x { flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--fb-ink-2); font: 500 15px/22px var(--font-body); cursor: pointer; }
.tk .tk-tag__x:hover { background: rgba(255,255,255,.18); color: var(--fb-ink); }
.tk .tk-pick { position: absolute; z-index: 5; left: 12px; right: 12px; bottom: calc(100% - 2px); max-width: 420px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 0 4px 4px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--her-glow) 45%, var(--fb-line-strong)); background: #0a0d0f; box-shadow: var(--fb-shadow-pop); animation: tk-toast .18s ease-out both; }   /* 名单不透底：底下的对话不从名单里透出来 */
.tk .tk-pick__h { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 0 -4px 4px; padding: 8px 12px 6px; background: rgba(10,13,15,.98); border-bottom: 1px solid var(--fb-line); }
.tk .tk-pick__h b { color: var(--fb-ink); font: 700 13px/18px var(--font-body); }
.tk .tk-pick__h span { min-width: 0; color: var(--fb-ink-3); font-size: 12px; line-height: 18px; }
.tk .tk-pick__row { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 4px 10px 4px 6px; border-radius: 10px; color: var(--fb-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tk .tk-pick__row b { font: 600 15px/20px var(--font-body); white-space: nowrap; }
.tk .tk-pick__row small { margin-left: auto; overflow: hidden; color: var(--fb-ink-3); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.tk .tk-pick__row:hover { background: rgba(255,255,255,.06); }
.tk .tk-pick__row.is-active { background: color-mix(in srgb, var(--a) 26%, transparent); box-shadow: inset 3px 0 0 var(--a); }
.tk .tk-pick__row[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.tk .tk-pick__none { padding: 10px 12px; color: var(--fb-ink-3); font-size: 13px; line-height: 20px; }
.tk .tk-quota { justify-self: end; margin: -2px 6px 0 0; color: var(--fb-ink-3); font-size: 12px; line-height: 16px; cursor: help; }
.tk .tk-quota.is-low { color: var(--fb-gold); }
.tk .tk-quota__reset { color: var(--fb-ink-3); }
.tk .tk-gate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--her-glow) 55%, var(--fb-line-strong)); border-radius: 16px; background: color-mix(in srgb, var(--her) 9%, var(--fb-night)); }
.tk .tk-gate .fb-btn { flex: none; white-space: nowrap; }
.tk .tk-gate span { flex: 1 1 200px; min-width: 0; color: var(--fb-ink-2); font-size: 13px; line-height: 20px; text-wrap: pretty; }
.tk #hm-login.is-call { animation: tk-call .9s var(--fb-ease-out) 2; }
@keyframes tk-call { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 4px var(--fb-night), 0 0 0 7px var(--her-glow), 0 0 26px color-mix(in srgb, var(--her-glow) 70%, transparent); } }
/* 全店每天只收她几句的（壹号）：说完了，输入框的位置是她自己那句 */
.tk .tk-rest { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--her) 12%, var(--fb-night)); }
.tk .tk-rest img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: var(--her); }
.tk .tk-rest p { display: grid; gap: 2px; min-width: 0; }
.tk .tk-rest b { color: var(--fb-ink); font: 500 15px/23px var(--font-body); }
.tk .tk-rest small { color: var(--fb-ink-3); font-size: 12px; line-height: 17px; }

/* ───────── ④ HUD：这本玩的是什么、离下一步还差几、名次；点了拉出整本。没有本子的：她随身那样东西。小锁去线索本 ───────── */
.tk .hm-two .tk-hud { flex: 1 1 auto; display: flex; align-items: stretch; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; }   /* home-fx 单栏时把 .hm-hud 排成五格的网格：这里的 HUD 自己排 */
.tk .tk-hud__open { position: relative; flex: 1 1 auto; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 52px; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--her) 40%, var(--fb-line)); border-radius: 14px; background: rgba(10,13,15,.55); color: var(--fb-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--fb-dur-state), transform var(--fb-dur-state) var(--fb-ease-pop); -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .tk .tk-hud__open:hover { border-color: var(--her-glow); transform: translateY(-1px); } }
.tk .tk-panel.is-book .tk-hud__open { border-color: var(--her-glow); }
.tk .tk-hud .hm-dock { position: absolute; left: -6px; top: -8px; }
.tk .tk-score { flex: none; display: flex; align-items: baseline; gap: 4px; }
.tk .tk-score b { font: 400 30px/1 var(--font-latin); color: var(--her-glow); }
.tk .tk-score small { color: var(--fb-ink-3); font-size: 12px; }
.tk .tk-score .hm-delta { align-self: center; }
.tk .tk-game { flex: 1 1 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; min-width: 0; }
.tk .tk-game__track { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tk .tk-game__what { display: grid; min-width: 0; }
.tk .tk-game__what b { overflow: hidden; color: var(--fb-ink); font: 700 13px/18px var(--font-body); text-overflow: ellipsis; white-space: nowrap; }
.tk .tk-game__what small { overflow: hidden; color: var(--fb-ink-3); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
/* 攒数：一排小印章（盖了的填上她的字） */
.tk .tk-game.is-tally .tk-game__track i { display: grid; place-items: center; width: 22px; height: 22px; border: 1px dashed var(--fb-line-strong); border-radius: 50%; color: var(--her-ink, var(--fb-night)); font: 400 12px/1 var(--font-display); font-style: normal; }
.tk .tk-game.is-tally .tk-game__track i.is-on { border: 0; background: var(--her-fill, var(--her)); box-shadow: inset 0 0 0 2px var(--fb-night), 0 0 0 1px var(--her-glow); }
/* 记账：一条分数条，满了就是名分那条线 */
.tk .tk-game.is-ledger .tk-game__track { width: clamp(80px, 12vw, 180px); height: 10px; border-radius: 3px; background: var(--fb-surface-3); overflow: hidden; }
.tk .tk-game.is-ledger .tk-game__track i { display: block; width: calc(var(--v, 0) * 1%); height: 100%; background: repeating-linear-gradient(90deg, var(--her-glow) 0 6px, color-mix(in srgb, var(--her-glow) 70%, transparent) 6px 8px); transition: width .5s cubic-bezier(.2,.8,.2,1); }
/* 楼层：一座小楼（一层一块，越往上越高；你住的那层亮着） */
.tk .tk-game.is-tower .tk-game__track { align-items: flex-end; gap: 3px; height: 26px; }
.tk .tk-game.is-tower .tk-game__track i { width: 9px; height: 8px; background: color-mix(in srgb, var(--her) 30%, var(--fb-surface-3)); }
.tk .tk-game.is-tower .tk-game__track i:nth-child(1) { height: 26px; } .tk .tk-game.is-tower .tk-game__track i:nth-child(2) { height: 21px; } .tk .tk-game.is-tower .tk-game__track i:nth-child(3) { height: 16px; } .tk .tk-game.is-tower .tk-game__track i:nth-child(4) { height: 12px; }
.tk .tk-game.is-tower .tk-game__track i.is-on { background: var(--her-fill, var(--her)); }
.tk .tk-game.is-tower .tk-game__track i.is-you { background: var(--fb-gold); box-shadow: 0 0 8px var(--fb-gold); }
/* 差一点就到名分：进度亮起来；到了：金色 */
.tk .tk-game.is-near .tk-game__track { animation: tk-near 1.6s ease-in-out infinite; }
.tk .tk-game.is-near .tk-game__what small { color: var(--fb-gold); }
@keyframes tk-near { 50% { filter: drop-shadow(0 0 6px var(--fb-gold)) brightness(1.25); } }
.tk .tk-game.is-got .tk-game__what b { color: var(--fb-gold); }
.tk .tk-hud .hm-plate { flex: none; }
.tk .tk-hud__more { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--fb-ink-3); font-size: 12px; line-height: 16px; white-space: nowrap; }
.tk .tk-hud__more i { font-style: normal; }
.tk .tk-own { display: grid; min-width: 0; }
.tk .tk-own b { color: var(--fb-ink); font: 700 14px/20px var(--font-body); }
.tk .tk-own small { overflow: hidden; color: var(--fb-ink-3); font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.tk .tk-hud__open.is-own { flex: 0 1 auto; }
.tk .tk-lock { flex: none; display: grid; place-items: center; width: 40px; border: 1px dashed color-mix(in srgb, var(--fb-ink-2) 55%, transparent); border-radius: 12px; color: var(--fb-ink-2); text-decoration: none; transition: border-color var(--fb-dur-state), color var(--fb-dur-state); }
.tk .tk-lock { gap: 2px; align-content: center; }
.tk .tk-lock i { display: grid; place-items: center; width: 22px; height: 22px; background: var(--fb-surface-3); color: var(--fb-ink-2); font: 700 11px/1 var(--font-body); font-style: normal; --fb-n: 3px; }
.tk .tk-lock__n { font: 400 10px/12px var(--font-latin); color: var(--fb-ink-3); }
.tk .tk-lock.is-ready { border-style: solid; border-color: var(--fb-gold); color: var(--fb-gold); animation: tk-near 1.6s ease-in-out infinite; }
.tk .tk-lock.is-ready i { background: color-mix(in srgb, var(--fb-gold) 30%, var(--fb-night)); color: var(--fb-gold); }
.tk .tk-lock.is-ready .tk-lock__n { color: var(--fb-gold); }
.tk .tk-lock.is-open { border-style: solid; border-color: var(--her-glow); }
.tk .tk-lock.is-open i { background: var(--her-fill, var(--her)); color: var(--her-ink, var(--fb-night)); }
@media (hover: hover) { .tk .tk-lock:hover { border-color: var(--her-glow); color: var(--her-glow); } }

/* ───────── ⑤ 整本：抽屉（电脑上从右边拉出来盖住对话那一格，手机上盖住整块面板） ───────── */
.tk .tk-panel > .tk-drawer { position: absolute; z-index: 5; top: 0; right: 0; bottom: 0; left: auto; display: flex; flex-direction: column; gap: 10px; width: min(480px, 70%); height: auto; max-height: none; margin: 0; padding: 14px 14px 12px 40px; border-radius: var(--fb-radius-lg) 0 0 var(--fb-radius-lg); box-shadow: -14px 0 34px rgba(0,0,0,.45); translate: 102% 0; transition: translate .22s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.tk .tk-panel > .tk-drawer.is-open { translate: 0 0; }
.tk .tk-drawer .hm-book__top { flex: none; display: flex; align-items: baseline; gap: 4px 10px; }
.tk .tk-drawer .hm-book__top h3 { margin-right: 2px; }
.tk .tk-close { margin-left: auto; padding: 4px 12px; border: 1px solid var(--fb-line-strong); border-radius: var(--fb-radius-pill); background: none; color: var(--fb-ink-2); font: 500 12px/18px var(--font-body); cursor: pointer; }
.tk .tk-drawer .hm-tabs { flex: none; }
.tk .tk-drawer #hm-book { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.tk .tk-drawer #hm-book > .hm-entries { flex: none; max-height: none; overflow: visible; }
.tk .tk-account { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding-top: 8px; border-top: 1px dashed var(--fb-line); }
/* 不许横着滚（老板截图：本子那栏底下多一条横向滚动条）：长的引用折两行收尾，章、字都不撑宽格子 */
.tk .hm-entry, .tk .hm-entry__text, .tk .hm-entry__meta { min-width: 0; }
.tk .hm-entry__text { overflow-wrap: anywhere; }
.tk .hm-entry__meta { flex-wrap: wrap; }
.tk .hm-quote { display: -webkit-box; max-width: 100%; min-width: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; text-align: left; }

/* ───────── ⑥ 本子里头（抽屉里摆的：你那一页、印章格、招牌小件、魔王城、今天） ───────── */
.tk .hm-book__top { flex-wrap: wrap; row-gap: 2px; }
.tk .hm-book__top small { flex: 1 1 120px; min-width: 0; }   /* 本子名长的（魔王城名册、人类观察报告）：底下那行字自己折，音效那颗键留在第一行 */
.tk .hm-book > #hm-book { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tk .hm-next { color: var(--fb-ink-2); font-size: 12px; line-height: 18px; }
.tk .hm-next.is-got { color: var(--fb-gold); }
.tk .hm-rule { width: 100%; height: 0; margin: 2px 0; border: 0; border-top: 1px dashed var(--fb-line-strong); }
.tk .hm-you .hm-you__n { font-family: var(--font-latin); font-size: 40px; line-height: 44px; color: var(--her-glow); }   /* cast.css 里那份 home.css 还是旧写法（.hm-you span 把大数压成了 12px），这里补回来 */
.tk .hm-sub { display: flex; align-items: baseline; gap: 8px; color: var(--fb-ink-3); font-size: 12px; line-height: 16px; }
.tk .hm-sub b { color: var(--fb-ink-2); font-weight: 700; }
.tk .tk-today__h { display: block; color: var(--fb-ink); font: 700 13px/20px var(--font-body); }
.tk .tk-today__who { color: var(--fb-ink-3); font-size: 11px; line-height: 16px; }
.tk .hm-piece { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--fb-radius-md); background: color-mix(in srgb, var(--her) 10%, var(--fb-night)); }
.tk .hm-piece__k { color: var(--fb-ink-3); font-size: 11px; line-height: 16px; letter-spacing: .08em; }
.tk .hm-piece__v { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 32px; letter-spacing: .04em; color: var(--her-glow); overflow-wrap: anywhere; }
.tk .hm-piece__v::before { content: "「"; opacity: .6; } .tk .hm-piece__v::after { content: "」"; opacity: .6; }
.tk .hm-piece__s { color: var(--fb-ink-2); font-size: 13px; line-height: 20px; }
/* 攒数：印章格。一格一件具体的东西；第五格（过线那格）挂着名分 */
.tk .hm-stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 8px; padding-top: 8px; }
.tk .hm-seal { position: relative; display: grid; justify-items: center; align-content: start; gap: 5px; min-width: 0; padding: 0; border: 0; background: none; color: var(--fb-ink-3); font: inherit; cursor: default; -webkit-tap-highlight-color: transparent; }
.tk .hm-seal__face { display: grid; place-items: center; width: min(100%, 60px); aspect-ratio: 1; border: 1px dashed var(--fb-line-strong); border-radius: 50%; color: var(--fb-ink-off, var(--fb-ink-3)); font: 400 12px/1 var(--font-latin); }
.tk .hm-seal[data-shape="square"] .hm-seal__face { border-radius: 9px; }
.tk .hm-seal[data-shape="tall"] .hm-seal__face { width: min(62%, 38px); aspect-ratio: 38 / 60; border-radius: 6px 6px 16px 16px; }
.tk .hm-seal.is-on { cursor: pointer; }
.tk .hm-seal.is-on .hm-seal__face { border: 2px solid var(--her-glow); background: color-mix(in srgb, var(--her) 24%, var(--fb-night)); color: var(--her-glow); font: 400 27px/1 var(--font-display); rotate: var(--r, -5deg); box-shadow: inset 0 0 0 3px var(--fb-night), inset 0 0 0 4px color-mix(in srgb, var(--her-glow) 50%, transparent); transition: rotate var(--fb-dur-state) var(--fb-ease-pop), box-shadow var(--fb-dur-state); }
.tk .hm-seal[data-shape="tall"].is-on .hm-seal__face { font-size: 21px; }
.tk .hm-seal.is-on:nth-child(3n+2) { --r: 4deg; } .tk .hm-seal.is-on:nth-child(3n) { --r: -2deg; }
.tk .hm-seal.is-on[aria-pressed="true"] .hm-seal__face { rotate: 0deg; box-shadow: inset 0 0 0 3px var(--fb-night), inset 0 0 0 4px color-mix(in srgb, var(--her-glow) 50%, transparent), 0 0 0 2px var(--fb-night), 0 0 0 4px var(--her-glow), 0 0 18px color-mix(in srgb, var(--her-glow) 60%, transparent); }
.tk .hm-seal.is-new .hm-seal__face { animation: tk-seal calc(var(--fxk, 1) * .5s) cubic-bezier(.5, 0, 1, .7) 1 both; }   /* 新盖的章：跟对话里那枚章一样从上面砸下来 */
@keyframes tk-seal { 0% { transform: translateY(-22px) scale(2.2); opacity: 0; } 55% { transform: translateY(0) scale(.9); opacity: 1; } 78% { transform: translateY(-3px) scale(1.08); } 100% { transform: none; } }
.tk .hm-seal__cap { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 15px; }
.tk .hm-seal.is-on .hm-seal__cap { color: var(--fb-ink-2); }
.tk .hm-seal.is-on[aria-pressed="true"] .hm-seal__cap { color: var(--her-glow); }
.tk .hm-seal__line { position: absolute; top: -9px; left: 50%; translate: -50% 0; padding: 0 6px; border: 1px dashed color-mix(in srgb, var(--her-glow) 70%, transparent); background: var(--fb-night); color: var(--her-glow); font: 700 10px/15px var(--font-body); white-space: nowrap; z-index: 1; }
.tk .hm-seal.is-got .hm-seal__line { border: 0; padding: 1px 7px; background: var(--fb-gold); color: var(--fb-on-gold); clip-path: polygon(0 2px, 2px 2px, 2px 0, calc(100% - 2px) 0, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0 calc(100% - 2px)); }
.tk .hm-pick { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--fb-radius-md); background: var(--fb-night); border-left: 3px solid var(--her-glow); }
.tk .hm-pick b { color: var(--her-glow); font: 700 12px/16px var(--font-body); }
.tk .hm-pick p { color: var(--fb-ink); font: 400 14px/22px var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere; text-wrap: pretty; }
.tk .hm-pick .hm-quote { justify-self: start; max-width: 100%; }
/* 阿辣：全店一起攒的那条；玄机：求一签 */
.tk .hm-drive { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--fb-radius-md); background: color-mix(in srgb, var(--her) 10%, var(--fb-night)); }
.tk .hm-drive__top { display: flex; align-items: baseline; gap: 8px; color: var(--fb-ink-2); font-size: 12px; line-height: 18px; }
.tk .hm-drive__top b { font-family: var(--font-latin); font-weight: 400; font-size: 22px; line-height: 24px; color: var(--her-glow); }
.tk .hm-drive__bar { height: 10px; border-radius: 2px; background: var(--fb-surface-3); overflow: hidden; }
.tk .hm-drive__bar i { display: block; width: calc(var(--v, 0) * 1%); height: 100%; background: repeating-linear-gradient(90deg, var(--her-glow) 0 6px, transparent 6px 8px); }
.tk .hm-drive p { color: var(--fb-ink-3); font-size: 12px; line-height: 18px; }
.tk .hm-draw { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--fb-radius-md); background: color-mix(in srgb, var(--her) 10%, var(--fb-night)); }
.tk .hm-draw__tube { position: relative; flex: none; width: 34px; height: 44px; margin-top: 12px; border: 2px solid var(--her-glow); border-top: 0; border-radius: 3px 3px 10px 10px; background: color-mix(in srgb, var(--her) 28%, var(--fb-night)); }
.tk .hm-draw__tube::before { content: ""; position: absolute; left: 6px; right: 6px; bottom: 100%; height: 14px; background: linear-gradient(90deg, var(--her-glow) 0 3px, transparent 3px 6px, var(--her-glow) 6px 9px, transparent 9px 12px, var(--her-glow) 12px 15px, transparent 15px) 0 0 / 18px 100% no-repeat; transform-origin: 50% 100%; }
.tk .hm-draw:hover .hm-draw__tube::before { animation: tk-shake .5s steps(4, jump-none) 2; }
@keyframes tk-shake { 0%, 100% { rotate: 0deg; } 25% { rotate: -8deg; } 75% { rotate: 8deg; } }
.tk .hm-draw p { flex: 1 1 auto; min-width: 0; color: var(--fb-ink-2); font-size: 12px; line-height: 18px; }
.tk .hm-draw .fb-btn { flex: none; --face: var(--her-fill, var(--her)); --edge: var(--her-glow); --key: color-mix(in srgb, var(--her) 55%, #000); --txt: var(--her-ink, var(--fb-night)); }
/* 记账 · 陆总：估值涨跌柱 */
.tk .hm-chart { display: grid; gap: 6px; padding: 10px 12px 8px; border-radius: var(--fb-radius-md); background: var(--fb-night); }
.tk .hm-chart__bars { position: relative; display: flex; align-items: center; gap: 4px; height: 84px; }
.tk .hm-chart__bars::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px dashed var(--fb-line-strong); }
.tk .hm-chart__bars i { flex: 1 1 0; max-width: 20px; height: calc(var(--h) * 1px); background: var(--fb-neon-green); translate: 0 -50%; }
.tk .hm-chart__bars i.is-down { background: var(--fb-rust); translate: 0 50%; }
.tk .hm-chart__bars i.is-last { box-shadow: 0 0 0 2px var(--fb-night), 0 0 0 3px var(--fb-ink); }
.tk .hm-chart__foot { display: flex; justify-content: space-between; gap: 8px; color: var(--fb-ink-3); font-size: 11px; line-height: 16px; }
/* 记账 · 冷月：成立 / 不成立 */
.tk .hm-vsum { display: flex; flex-wrap: wrap; gap: 8px; }
.tk .hm-vsum span { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: var(--fb-radius-md); background: var(--fb-night); color: var(--fb-ink-2); font-size: 12px; line-height: 18px; }
.tk .hm-vsum b { font-family: var(--font-latin); font-weight: 400; font-size: 20px; line-height: 22px; color: var(--fb-neon-cyan); }
.tk .hm-vsum .is-no b { color: var(--fb-rust-text); }
.tk .hm-verdict { grid-column: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 11px; line-height: 16px; color: var(--fb-ink-3); }
.tk .hm-verdict em { padding: 0 6px; border-radius: 3px; background: var(--fb-cyan-tint); color: var(--fb-neon-cyan); font-style: normal; font-weight: 700; }
.tk .hm-verdict.is-no em { background: var(--fb-rust-tint); color: var(--fb-rust-text); }
/* 楼层 · 凌霄：魔王城。左边是城（一层一块，住着人的层亮着窗），右边是这层住着谁 */
.tk .hm-tower { display: grid; gap: 3px; }
.tk .hm-floor { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 34px; padding: 0 10px 0 0; border-radius: var(--fb-radius-sm); }
.tk .hm-floor__block { justify-self: center; display: flex; align-items: center; justify-content: center; gap: 5px; height: 30px; width: calc(44px + var(--w, 0) * 8px); background: color-mix(in srgb, var(--her) 52%, var(--fb-night)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--her-glow) 62%, transparent); clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% 100%, 0 100%); }
.tk .hm-floor__block i { width: 5px; height: 9px; background: color-mix(in srgb, var(--her) 16%, var(--fb-night-deep, #000)); }
.tk .hm-floor__block i.is-lit { background: var(--fb-gold); box-shadow: 0 0 6px var(--fb-gold); }
.tk .hm-floor__txt { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; min-width: 0; color: var(--fb-ink-3); font-size: 12px; line-height: 17px; }
.tk .hm-floor__txt b { color: var(--fb-ink-2); font: 400 13px/17px var(--font-latin); white-space: nowrap; }
.tk .hm-floor__txt em { padding: 0 6px; background: var(--fb-surface-3); color: var(--fb-ink-2); font-style: normal; font-size: 11px; line-height: 16px; border-radius: 3px; white-space: nowrap; }
.tk .hm-floor__txt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk .hm-floor.is-line .hm-floor__txt em { background: color-mix(in srgb, var(--fb-gold) 22%, var(--fb-night)); color: var(--fb-gold); }
.tk .hm-floor.is-you { background: color-mix(in srgb, var(--her) 26%, var(--fb-night)); box-shadow: 0 0 0 1px var(--her-glow); }
.tk .hm-floor.is-you .hm-floor__block { background: var(--her); box-shadow: inset 0 0 0 1px var(--her-glow), 0 0 14px color-mix(in srgb, var(--her-glow) 70%, transparent); }
.tk .hm-floor.is-you .hm-floor__txt b { color: #fff; } .tk .hm-floor.is-you .hm-floor__txt { color: var(--fb-ink); }
.tk .hm-floor.is-you .hm-floor__txt em { background: var(--her-glow); color: var(--fb-night); font-weight: 700; }
.tk .hm-floor--top .hm-floor__block { height: 22px; width: 30px; background: none; box-shadow: none; clip-path: none; }
.tk .hm-floor--top .hm-floor__block::before { content: ""; width: 27px; height: 9px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 9 3%22 shape-rendering=%22crispEdges%22%3E%3Cpath fill=%22%23f2c14e%22 d=%22M0 0h1v1H0zM4 0h1v1H4zM8 0h1v1H8zM0 1h2v1H0zM3 1h3v1H3zM7 1h2v1H7zM0 2h9v1H0z%22/%3E%3C/svg%3E") center / 100% 100% no-repeat; image-rendering: pixelated; }
.tk .hm-floor--out { margin-top: 5px; padding-top: 5px; border-top: 1px dashed var(--fb-line-strong); border-radius: 0; }
.tk .hm-floor--out .hm-floor__block { height: 16px; background: none; box-shadow: none; clip-path: none; border-bottom: 2px solid var(--fb-line-strong); }
.tk .hm-floor--out.is-you { border-radius: var(--fb-radius-sm); border-top-color: transparent; }

/* ───────── ⑦ 没有本子的几位：抽屉里是她自己的东西 ───────── */
.tk .hm-own__body { display: grid; align-content: start; gap: 12px; }
.tk .hm-own__note { color: var(--fb-ink-3); font-size: 12px; line-height: 19px; text-wrap: pretty; }
/* 零号 · 开机登记簿：登录了翻到你那一行（字照 kaiji_texts.json 的凭证卡） */
.tk .hm-reg { display: grid; gap: 8px; padding: 16px 18px 14px; border-radius: var(--fb-radius-md); background: #e9edf0; color: #1b2530; font: 400 14px/22px var(--font-body); box-shadow: 0 5px 0 var(--f-deep, rgba(0,0,0,.4)); }
.tk .hm-reg > :nth-child(2) { padding-bottom: 8px; border-bottom: 1px dashed rgba(27,37,48,.3); }
.tk .hm-reg small { color: #55626e; font-size: 11px; letter-spacing: .12em; }
.tk .hm-reg b { font: 400 30px/34px var(--font-latin); color: #0f1720; }
.tk .hm-reg b span { font: 700 14px/20px var(--font-body); margin: 0 4px; }
.tk .hm-reg p { color: #1b2530; }
.tk .hm-reg em { justify-self: start; padding: 0 8px; border: 1.5px solid #b0362c; border-radius: 3px; color: #b0362c; font: 700 12px/20px var(--font-body); font-style: normal; rotate: -3deg; }
.tk .hm-reg i { justify-self: end; color: #55626e; font-style: normal; font-size: 13px; }
.tk .hm-reg--shut { place-items: center; min-height: 150px; text-align: center; background: color-mix(in srgb, var(--her) 22%, var(--fb-night)); color: var(--fb-ink-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--her-glow) 40%, transparent), 0 5px 0 var(--f-deep, rgba(0,0,0,.4)); }
.tk .hm-reg--shut > :nth-child(2) { padding-bottom: 0; border-bottom: 0; }
.tk .hm-reg--shut b { font: 400 24px/30px var(--font-display); letter-spacing: .1em; color: var(--her-glow); }
/* 壹号 · 称呼清单；弹窗 · 手账；白秤 · 估价卡；南风 · 成绩本：都是纸上的几行字 */
.tk .hm-paper { display: grid; gap: 0; padding: 6px 16px 10px; border-radius: var(--fb-radius-md); background: var(--fb-night); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--her-glow) 26%, transparent); }
.tk .hm-paper > * { padding: 9px 0; border-bottom: 1px dashed var(--fb-line); font: 400 15px/24px var(--font-body); color: var(--fb-ink); }
.tk .hm-paper > :last-child { border-bottom: 0; }
.tk .hm-paper small { display: block; color: var(--fb-ink-3); font-size: 11px; line-height: 16px; }
.tk .hm-paper .is-dim { color: var(--fb-ink-3); }
.tk .hm-paper .is-blank { display: flex; align-items: baseline; gap: 8px; color: var(--fb-ink-2); }
.tk .hm-paper .is-blank::after { content: ""; flex: 1 1 auto; border-bottom: 2px solid var(--her-glow); translate: 0 -4px; }
.tk .hm-paper s { color: var(--fb-ink-3); text-decoration-color: var(--fb-rust-text); text-decoration-thickness: 2px; margin-right: 10px; }
.tk .hm-paper .is-num { font: 400 22px/28px var(--font-latin); color: var(--her-glow); letter-spacing: .04em; }
.tk .hm-paper .is-num small { display: inline; margin-left: 8px; font-family: var(--font-body); letter-spacing: 0; }

/* ───────── ⑧ 幕图上她头边那句话（照她的头在原图上的位置算好了 left / top，摆不下就不摆）；账号脚本挂在幕名底下那枚写死「她的小本本」的小牌收起来（HUD 已经说了） ───────── */
.tk-chap .hm-say { position: absolute; z-index: 2; left: 0; top: 0; visibility: hidden; border-radius: 4px 16px 16px 16px; background: rgba(10,13,15,.9); border: 1px solid color-mix(in srgb, var(--her) 45%, var(--fb-line)); box-shadow: var(--fb-shadow-pop); color: var(--fb-ink); text-shadow: none; }
.tk-chap .hm-say.is-on { visibility: visible; }
.tk-chap .hm-say::before { content: ""; position: absolute; left: -10px; top: 14px; border: 6px solid transparent; border-right-color: color-mix(in srgb, var(--her) 45%, var(--fb-line)); border-left: 0; }
.tk-chap .hm-say.is-left { border-radius: 16px 4px 16px 16px; }
.tk-chap .hm-say.is-left::before { left: auto; right: -10px; border: 6px solid transparent; border-left-color: color-mix(in srgb, var(--her) 45%, var(--fb-line)); border-right: 0; }
.tk-chap .hm-say__in { max-height: min(40vh, 280px); overflow-y: auto; padding: 12px 16px; font: 500 16px/25px var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; }
.tk-chap .hm-say small { display: block; margin-bottom: 4px; color: var(--her-glow); font-size: 12px; line-height: 16px; font-weight: 500; }
@media (max-height: 480px) { .tk-chap .hm-say__in { font-size: 14px; line-height: 22px; padding: 9px 12px; } }
html.ix .ix-wrap .tk-chap .hm-say { opacity: 0; translate: 0 10px; }
html.ix .ix-wrap.is-cur .tk-chap .hm-say { opacity: 1; translate: none; transition: opacity .5s .7s, translate .6s cubic-bezier(.2, .8, .2, 1) .7s; }
.tk-chap .cs-chap__cap .ac-home-nudge { display: none; }   /* 账号脚本那枚写死了「她的小本本」：这一幕用下面这枚按本子名字和称呼写的（第二步跟账号那边对成一枚） */

/* ───────── ⑨ 版式 ───────── */
/* 平板、手机横着拿：她那一栏窄一点，名字收起来（她就站在那儿） */
.cs--s .tk .tk-panel, .tk.cs--s .tk-panel { grid-template-columns: minmax(140px, 26%) minmax(0, 1fr); }
/* 名字、家帖那一行照样留着（这一块是她的家帖，平板、手机横着拿也要看得出），只是收小一号 */
.cs--s .tk .tk-who, .tk.cs--s .tk-who { max-width: 30%; }
.cs--s .tk .tk-who__t > b, .tk.cs--s .tk-who__t > b { font-size: 16px; line-height: 20px; }
.cs--s .tk .tk-thread__who, .tk.cs--s .tk-thread__who { display: none; }   /* 名字就在上面一行：「家帖 · 在 Discord 里看 ↗」 */
.cs--s .tk .tk-hud__more span, .tk.cs--s .tk-hud__more span { display: none; }   /* 「本子」两个字收起来，留本子的小图标；省下的地方给「还差几」 */
.cs--s .tk .tk-hud__open, .tk.cs--s .tk-hud__open { gap: 10px; padding: 6px 10px; }
.cs--s .tk .tk-toasts, .tk.cs--s .tk-toasts { left: calc(26% + 74% / 2); }
.cs--s .tk .tk-game.is-ledger .tk-game__track, .tk.cs--s .tk-game.is-ledger .tk-game__track { width: clamp(40px, 7vw, 90px); }
.cs--s .tk .tk-game__what, .tk.cs--s .tk-game__what { min-width: 64px; }   /* 「哥哥姐姐 / 还差几」比那条进度条要紧：条让着字 */
.cs--s .tk .tk-game.is-tally .tk-game__track i, .tk.cs--s .tk-game.is-tally .tk-game__track i { width: 16px; height: 16px; font-size: 9px; }
.cs--s .tk .tk-game.is-tally .tk-game__track, .tk.cs--s .tk-game.is-tally .tk-game__track { gap: 2px; }
/* 手机竖着拿：一栏。她缩成顶上的半身头像（表情照样跟着换），HUD 接在下面；面板差不多一屏高；本子从底下拉上来盖住整块 */
.cs--m .tk .tk-panel, .tk.cs--m .tk-panel { grid-template-columns: minmax(0, 1fr); height: clamp(420px, calc(100dvh - var(--tk-shell) - 16px), 820px); }
.cs--m .tk .tk-fig, .tk.cs--m .tk-fig { display: none; }
.cs--m .tk .tk-main, .tk.cs--m .tk-main { border-left: 0; }
.cs--m .tk .tk-top, .tk.cs--m .tk-top { flex-wrap: wrap; padding: 10px; }
.cs--m .tk .tk-who, .tk.cs--m .tk-who { display: flex; flex: 1 1 100%; max-width: none; }
.cs--m .tk .tk-bust, .tk.cs--m .tk-bust { display: block; }
.cs--m .tk .hm-two .tk-hud, .tk.cs--m .hm-two .tk-hud { flex: 1 1 100%; }
/* 手机上 HUD 排两行：上面分数、名次、本子；下面这本玩的是什么、还差几 */
.cs--m .tk .tk-hud__open:not(.is-own), .tk.cs--m .tk-hud__open:not(.is-own) { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "score plate . more" "game game game game"; gap: 6px 10px; }
.cs--m .tk .tk-score, .tk.cs--m .tk-score { grid-area: score; } .cs--m .tk .tk-hud__open .hm-plate, .tk.cs--m .tk-hud__open .hm-plate { grid-area: plate; justify-self: start; } .cs--m .tk .tk-hud__more, .tk.cs--m .tk-hud__more { grid-area: more; } .cs--m .tk .tk-game, .tk.cs--m .tk-game { grid-area: game; }
.cs--m .tk .tk-chips, .tk.cs--m .tk-chips { flex-wrap: wrap; overflow: visible; }
.cs--m .tk .tk-hud__open, .tk.cs--m .tk-hud__open { gap: 10px; padding: 6px 10px; }
.cs--m .tk .tk-hud__more span, .tk.cs--m .tk-hud__more span { display: none; }
.cs--m .tk .tk-game.is-ledger .tk-game__track, .tk.cs--m .tk-game.is-ledger .tk-game__track { width: clamp(56px, 22vw, 120px); }
.cs--m .tk .tk-game.is-tally .tk-game__track i, .tk.cs--m .tk-game.is-tally .tk-game__track i { width: 18px; height: 18px; font-size: 10px; }
.cs--m .tk .tk-toasts, .tk.cs--m .tk-toasts { left: 50%; top: 132px; }
.cs--m .tk .hm-msg--her, .tk.cs--m .hm-msg--her { max-width: 92%; }
.cs--m .tk .tk-panel > .tk-drawer, .tk.cs--m .tk-panel > .tk-drawer { width: 100%; padding-left: 32px; border-radius: var(--fb-radius-lg); box-shadow: 0 -14px 34px rgba(0,0,0,.45); translate: 0 104%; }
.cs--m .tk .tk-panel > .tk-drawer.is-open, .tk.cs--m .tk-panel > .tk-drawer.is-open { translate: 0 0; }
.cs--m .tk .tk-mode button, .tk.cs--m .tk-mode button { padding: 0 9px; }
.cs--m .tk .tk-input, .tk.cs--m .tk-input { gap: 6px; }
.cs--m .tk .tk-at, .tk.cs--m .tk-at { width: 30px; height: 30px; line-height: 28px; }
.cs--m .tk .tk-input textarea, .tk.cs--m .tk-input textarea { order: 0; flex-basis: auto; }   /* 窄屏老规矩把输入框排到第二行：这里一行排下 */
.cs--m .tk .tk-input #hm-send, .tk.cs--m .tk-input #hm-send { order: 0; margin-left: 0; }
/* 屏幕矮（手机横着拿）：顶上那条、输入框都收紧，对话多留一点 */
@media (max-height: 480px) {
  .tk { --tk-min: 280px; --tk-gap: 12px; }   /* 手机横着拿：一屏只有三百来像素高，面板压到「导航以下、屏幕底以上」放得下 */
  .tk .tk-top { padding: 6px 10px; }
  .tk .tk-hud__open { min-height: 42px; padding: 4px 10px; gap: 8px; }
  .tk .tk-score b { font-size: 24px; }
  .tk .tk-lock { width: 34px; }
  .tk .hm-chat__list { padding: 10px 12px 6px; }
  .tk .tk-dock { gap: 6px; padding: 6px 10px 8px; }
  .tk .tk-input { min-height: 44px; padding: 4px; }
  .tk .tk-tip { font-size: 12px; line-height: 18px; }
  .tk .tk-toasts { top: 58px; }
}
.tk a:focus-visible, .tk button:focus-visible, .tk textarea:focus-visible, .tk input:focus-visible, .tk-chap a:focus-visible { outline: 2px solid var(--her-glow); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tk *, .tk-chap .hm-say { animation: none !important; transition: none !important; } .tk .tk-panel > .tk-drawer { transition: none; } }
